/* Drawn at 90% (tools/dev/scalecss.py). */
/* The program as guests see it, on the wedding's guest page and in the host's
   previews (programcard.js). */

.pcard { container-type: inline-size; position: relative; overflow: hidden; box-sizing: border-box; margin: 0 0 21.5px; padding: min(29%, 153px) 9% min(20%, 99px); border: 1px solid #ece4d9; border-radius: 16px; background: #fbf7f2; box-shadow: 0 5.5px 20px rgba(31, 27, 22, .08); text-align: center; color: #1f1b16; }
/* A hairline inside the edge. The gold frame is cut into nine, so its corners keep their size on any card. */
.pcard::after { content: ''; position: absolute; inset: 9px; border: 1px solid #efe7dc; border-radius: 11px; pointer-events: none; }
.pcard.gold::after { inset: 5.5px; border: 57.5px solid transparent; border-radius: 0; border-image: url(/invitations/art/program/gold-frame.webp) 200 / 64px stretch; }
.pcart { position: absolute; width: min(58%, 306px); height: auto; pointer-events: none; }
.pcart.top { left: 0; top: 0; }
.pcart.bottom { right: 0; bottom: 0; }
.pcard .pcnames { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(27px, 11.6cqw, 48.6px); line-height: 1.12; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance; }
.pcard .pctitle { position: relative; z-index: 1; margin: 11px 0 0; font-family: var(--display); font-size: clamp(14.4px, 5.4cqw, 21.6px); letter-spacing: .06em; }
.pcmark { display: flex; align-items: center; justify-content: center; gap: 9px; margin: clamp(12.5px, 5cqw, 21.5px) 0; color: #c9b7ac; }
.pcmark::before, .pcmark::after { content: ''; width: min(26%, 108px); height: 1px; background: #cdbfb3; }
.pcmark svg { display: block; width: 16px; height: 16px; }
.pcmark svg path { fill: currentColor; stroke: none; }
.pcparts { position: relative; z-index: 1; display: grid; gap: clamp(11.5px, 4.6cqw, 20px); margin: 0; padding: 0; list-style: none; font-family: var(--display); font-weight: 500; font-size: clamp(11.2px, 3.9cqw, 14.4px); letter-spacing: .22em; text-transform: uppercase; }
.pcparts summary { list-style: none; cursor: pointer; }
.pcparts summary::-webkit-details-marker { display: none; }
.pcparts details p { margin: 5.5px 0 0; font-family: var(--text, Inter, sans-serif); font-style: italic; font-weight: 400; font-size: 12.6px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pcard .pchint { position: relative; z-index: 1; margin: 18px 0 0; font-size: 11.2px; font-style: italic; color: var(--muted); }

.program { container-type: inline-size; box-sizing: border-box; width: 100%; max-width: 576px; margin: 0 auto; }
/* With sections to read, where there is room: the card on the left, in sight while they are read on the right.
   Where there isn't (a phone, the host's preview), the card, then the sections, as before. */
.program.paired { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0 48px; }
.program.paired > .programside { flex: 1 1 360px; max-width: 460px; }
.program.paired > .programmain { flex: 1 1 440px; max-width: 576px; }
@container (min-width: 900px) {
  .program.paired > .programside { position: sticky; top: 76px; }
  .program.paired > .programmain { max-width: none; }
  .program .sectionbody ul.partylist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
/* A section of the program: a place card, its kind in small capitals in the wedding's color, its title in the serif, centered; opened below an ornament. */
.program .placecard { background: #fffdf8; box-shadow: inset 0 0 0 6.5px #fffdf8, inset 0 0 0 7px #d9c9ae, 0 5.5px 20px rgba(31, 27, 22, .13); padding: 7px; }
.program .part { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(21.6px, 3vw, 28.8px); line-height: 1.2; }
.program .section { display: block; margin: 0 0 18px; }
.program .section summary { cursor: pointer; list-style: none; text-align: center; padding: 18px 14.5px 14.5px; display: flex; flex-direction: column; align-items: center; gap: 5.5px; }
.program .section summary::-webkit-details-marker { display: none; }
.program .section summary::after { content: ''; width: 7px; height: 7px; margin-top: 2px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.program .section[open] summary::after { transform: translateY(3.5px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .program .section summary::after { transition: none; } }
.program .sectionlabel { font-size: 10.8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.program .sectiontitle { font-family: var(--display); font-weight: 500; font-size: clamp(21.6px, 3vw, 27px); line-height: 1.15; }
.program .sectionbody { padding: 0 18px 23.5px; text-align: center; }
.program .sectionbody > p { line-height: 1.6; margin: 16px 0 0; }
.program .sectionbody > p.long { text-align: left; }
.program .ornament { position: relative; display: block; width: 83px; height: 8px; margin: 3.5px auto 0; background: linear-gradient(#d9c9ae, #d9c9ae) left center / 32.5px 1px no-repeat, linear-gradient(#d9c9ae, #d9c9ae) right center / 32.5px 1px no-repeat; }
.program .ornament::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4.5px; height: 4.5px; background: var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
.program .sectionbody ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; }
.program .sectionbody li strong { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; }
.program .sectionbody li .role { color: var(--muted); font-style: italic; font-size: 13.5px; }
.program .memory .opening { display: block; min-height: 0; color: var(--muted); font-style: italic; white-space: pre-wrap; margin: 16px 0 0; }
.program .memory .ornament { margin-top: 25px; }
.program .remembered { margin-top: 23.5px; }
.program .remembered .portrait { display: inline-block; padding: 4.5px; border: 1px solid #d9c9ae; border-radius: 50%; margin-bottom: 11px; }
.program .remembered img { width: 93.5px; height: 115px; border-radius: 50%; object-fit: cover; display: block; background: #e9e2d6; }
.program .remembered .part { font-size: clamp(19.8px, 2.6vw, 25.2px); }
.program .remembered .relation { color: var(--muted); font-style: italic; margin: 2px 0 0; }
.program .remembered .years { color: var(--muted); font-size: 10.8px; font-weight: 600; letter-spacing: .24em; margin: 5.5px 0 0; }
