/* =========================================================
   Poster Studio: flat, editorial UI. Hairlines, compact controls,
   one accent (Sehjeevan green) for primary actions.
   ========================================================= */
.studio {
  --s-ink: #141414; --s-muted: #6f6a62; --s-line: #e6e2da; --s-soft: #f6f4ef; --s-radius: 6px;
  min-height: 100vh; background: #fff;
}
.studio .topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--s-line); }
.studio .btn { border-radius: var(--s-radius); box-shadow: none; }
.studio .btn-primary { background: var(--s-ink); }
.studio .btn-primary:hover { background: #000; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; height: calc(100vh - 67px); }

.panel { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--s-line); }
.stepper { list-style: none; margin: 0; padding: 0 clamp(20px, 3.4vw, 48px); display: flex; gap: clamp(16px, 2.4vw, 36px); border-bottom: 1px solid var(--s-line); }
.stepper li { min-width: 0; }
.stepper button {
  display: flex; align-items: baseline; gap: 8px; border: 0; background: none; cursor: pointer; padding: 18px 0 15px;
  font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--s-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.stepper button:hover { color: var(--s-ink); }
.stepper .dot { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper .lbl { white-space: nowrap; }
.stepper button.done { color: var(--s-ink); }
.stepper button.done .dot { color: var(--green); }
.stepper button[aria-current="step"] { color: var(--s-ink); border-bottom-color: var(--s-ink); font-weight: 600; }

.steps { flex: 1; overflow-y: auto; padding: 0 clamp(20px, 3.4vw, 48px) 32px; }
.step { max-width: 600px; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.step-head { margin: 36px 0 26px; }
.step-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.05; margin: 0; color: var(--red); }
.step-head p { color: var(--s-muted); margin: .5rem 0 0; font-size: 1rem; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(20px, 3.4vw, 48px); border-top: 1px solid var(--s-line); background: #fff; }
.step-nav #backBtn { box-shadow: none; padding-left: 0; color: var(--s-muted); }
.step-nav #backBtn:hover { color: var(--s-ink); }
.step-nav #backBtn:disabled { visibility: hidden; }
.step-nav #nextBtn { background: var(--green-deep); }
.step-nav #nextBtn:hover { background: #24562f; }
.step-nav #nextBtn[hidden] { display: none; }

.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; min-height: 0; overflow: hidden; background: var(--s-soft); }
.stage-box { width: 100%; flex: 1; display: grid; place-items: center; min-height: 0; }
.poster-scale { position: relative; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .1); overflow: hidden; }
.poster-scale .poster { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage-meta { color: var(--s-muted); font-family: var(--sans); font-size: .85rem; margin: 14px 0 0; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; height: auto; }
  .stage { order: -1; height: 52vh; border-bottom: 1px solid var(--s-line); padding: 16px; }
  .panel { border-right: 0; }
  .steps { overflow: visible; }
  .step-nav { position: sticky; bottom: 0; z-index: 5; }
  .stepper { position: sticky; top: 63px; z-index: 5; background: #fff; gap: 18px; overflow-x: auto; }
  .stepper .lbl { display: none; }
  .stepper button[aria-current="step"] .lbl { display: inline; }
}

/* ---------- fields ---------- */
.group { padding: 22px 0; border-top: 1px solid var(--s-line); }
.step-head + .group { border-top: 0; padding-top: 0; }
.glabel, .field > span {
  display: block; font-family: var(--sans); font-weight: 600; font-size: .74rem; color: var(--s-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.field > span { margin-bottom: 6px; }
.field > span em, .toggle em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--s-muted); margin-left: .35em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 0 12px; height: 44px; background: #fff;
  font-size: .98rem; min-width: 0; transition: border-color .15s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cdc8be; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--s-ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 14px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .field:last-child { grid-column: 1 / -1; } }

.seg { display: inline-flex; border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 0 14px; height: 38px; font-family: var(--sans); font-weight: 500; font-size: .92rem; cursor: pointer; color: var(--s-muted); transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid var(--s-line); }
.seg button:hover { color: var(--s-ink); background: var(--s-soft); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--s-ink); color: #fff; }
.seg button:disabled { opacity: .35; cursor: default; background: none; }
.field .seg { align-self: flex-start; }
.seg.big { display: flex; margin-bottom: 14px; }
.seg.big button { flex: 1; height: 44px; font-size: .98rem; }
.seg.mini button { height: 30px; padding: 0 10px; font-size: .82rem; }

.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 4px; }
#regSuggest { margin: 0 0 10px; }
.suggest button { border: 1px solid var(--s-line); cursor: pointer; border-radius: var(--s-radius); padding: 0 10px; height: 30px; font-family: var(--sans); font-size: .86rem; font-weight: 500; background: #fff; color: var(--s-ink); }
.suggest button:hover { border-color: var(--s-ink); }
.suggest button[aria-pressed="true"] { border-color: var(--green); color: var(--green-deep); background: #f1f8f0; }

.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { flex: none; width: 36px; height: 20px; border-radius: 999px; background: #d9d4ca; position: relative; transition: background .2s; margin-top: 2px; }
.toggle .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.toggle input:checked + .track { background: var(--green-deep); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.toggle b { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.toggle small { display: block; color: var(--s-muted); font-size: .9rem; margin-top: 2px; }
.reveal-box { margin: 16px 0 0 48px; animation: stepIn .25s ease; }
.reveal-box[hidden] { display: none; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.check input { accent-color: var(--green-deep); width: 16px; height: 16px; }
.linkish { border: 0; background: none; padding: 0; color: var(--s-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; }
.linkish:hover { color: var(--s-ink); }

/* ---------- editions ---------- */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed { display: flex; flex-direction: column; border: 1px solid var(--s-line); cursor: pointer; text-align: left; border-radius: 8px; overflow: hidden; background: #fff; padding: 0; transition: border-color .15s; }
.ed:hover { border-color: #bdb7ab; }
.ed[aria-checked="true"] { border-color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-ink); }
.ed .sw { position: relative; height: 104px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; font-family: var(--caps); font-weight: 800; text-transform: uppercase; border-bottom: 1px solid var(--s-line); }
.ed .sw .a { font-size: .9rem; }
.ed .sw .b { font-size: 1.7rem; line-height: .95; margin-top: 2px; }
.ed .sw i { position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; border-radius: 3px; }
.ed .sw i + i { right: 32px; }
.ed .tx { display: block; padding: 12px 16px 14px; }
.ed .tx b { display: block; font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.ed .tx .hi { color: var(--green-deep); font-weight: 500; font-family: 'Anek Devanagari', sans-serif; margin-left: 4px; }
.ed .tx small { display: block; color: var(--s-muted); margin-top: 2px; font-size: .86rem; }
.ed[aria-checked="true"] .sw::before { content: '✓'; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--s-ink); color: #fff; font-family: var(--sans); font-size: .75rem; display: grid; place-items: center; }

/* ---------- storytellers ---------- */
.selected { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--s-line); }
.selected:empty { border-top: 0; }
.selected:empty::before { content: 'No storytellers yet. Pick from the list below.'; display: block; padding: 18px 0; color: var(--s-muted); border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.sel { border-bottom: 1px solid var(--s-line); animation: stepIn .2s ease; }
.sel-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.sel .ph { width: 48px; height: 48px; border-radius: var(--s-radius); overflow: hidden; flex: none; background: var(--s-soft); }
.sel .ph img { width: 100%; height: 100%; object-fit: cover; }
.sel-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sel .nm { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-input { border: 0; border-bottom: 1px dashed transparent; background: none; padding: 1px 0 0; font-family: 'Anek Devanagari', sans-serif; font-size: .95rem; color: var(--green-deep); width: 100%; max-width: 260px; }
.hi-input:hover { border-bottom-color: var(--s-line); }
.hi-input:focus { outline: 0; border-bottom: 1px solid var(--s-ink); }
.hi-input::placeholder { color: #b5afa4; }
.sel .tools { display: flex; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: var(--s-radius); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--s-muted); }
.icon-btn:hover:not(:disabled), .icon-btn.on { background: var(--s-soft); color: var(--s-ink); }
.icon-btn:disabled { opacity: .25; cursor: default; }
.sel-edit { padding: 0 0 14px 62px; }
.sel-photos { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sel-photos span { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--s-muted); margin-right: 4px; }
.sel-photos button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; cursor: pointer; background: none; }
.sel-photos button[aria-pressed="true"] { border-color: var(--s-ink); box-shadow: 0 0 0 1px var(--s-ink); }
.sel-photos img { width: 100%; height: 100%; object-fit: cover; }
.sel textarea { display: block; width: 100%; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 10px 12px; background: #fff; font-size: .92rem; line-height: 1.5; resize: vertical; min-height: 140px; }
.sel textarea:focus { outline: 0; border-color: var(--s-ink); }
.sel-edit .linkish { margin-top: 8px; }

.picker-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.picker-bar input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0; padding: 0 2px; height: 38px; background: none; font-size: .98rem; }
.picker-bar input:focus { outline: 0; border-bottom-color: var(--s-ink); }
.picker-bar .seg button { height: 32px; font-size: .86rem; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 12px; }
.pk { position: relative; border: 0; cursor: pointer; background: none; padding: 0; text-align: left; }
.pk .ph { display: block; aspect-ratio: 1; border-radius: var(--s-radius); overflow: hidden; background: var(--s-soft); transition: box-shadow .15s; }
.pk .ph img { width: 100%; height: 100%; object-fit: cover; transition: scale .3s ease; }
.pk:hover .ph img { scale: 1.04; }
.pk b { display: block; font-family: var(--sans); font-size: .82rem; line-height: 1.2; margin-top: 6px; font-weight: 500; color: var(--s-ink); }
.pk[aria-pressed="true"] .ph { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--s-ink); }
.pk[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--s-ink); color: #fff; font-size: .7rem; display: grid; place-items: center; }

/* ---------- add someone new ---------- */
.pk-add .ph { display: grid; place-items: center; border: 1px dashed #c9c3b8; background: #fff; color: var(--s-ink); }
.pk-add:hover .ph { border-color: var(--s-ink); background: var(--s-soft); }
.pk-wrap { position: relative; }
.pk-wrap .pk { width: 100%; }
.pk-edit { position: absolute; left: 6px; top: 6px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--s-ink); font-size: .74rem; font-weight: 600; padding: 3px 7px; cursor: pointer; }
.pk-edit:hover { background: #fff; }

.person-dlg { border: 0; padding: 0; border-radius: 10px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: #fff; color: var(--s-ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.person-dlg::backdrop { background: rgba(20, 20, 20, .45); }
.person-dlg[open] { animation: stepIn .2s ease; }
.pd-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--s-line); }
.pd-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.pd-body { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 22px; }
.drop { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed #c9c3b8; border-radius: 8px; background: var(--s-soft); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--s-ink); background: #efece5; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; color: var(--s-muted); pointer-events: none; }
.drop-empty b { color: var(--s-ink); font-weight: 600; font-size: .95rem; }
.drop-empty small { font-size: .8rem; }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.drop.has .drop-empty { visibility: hidden; }
.drop.has::after { content: 'Change photo'; position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); border-radius: 4px; padding: 4px 8px; font-size: .78rem; font-weight: 600; pointer-events: none; }
.drop-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); font-weight: 600; font-size: .9rem; }
.drop-busy[hidden] { display: none; }
.pd-fields .field textarea { min-height: 96px; }
.pd-error { margin: 0; padding: 0 22px; min-height: 0; color: var(--red); font-size: .9rem; font-weight: 500; }
.pd-error:not(:empty) { padding-bottom: 12px; }
.pd-foot { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--s-line); }
.pd-note { margin-left: auto; color: var(--s-muted); font-size: .85rem; }
.linkish.danger { color: var(--red); }
.pd-foot .btn:disabled { opacity: .5; cursor: progress; }
@media (max-width: 640px) {
  .pd-body { grid-template-columns: 1fr; }
  .drop { width: 60%; justify-self: center; }
  .pd-note { display: none; }
  .pd-foot .btn { margin-left: auto; }
}

/* ---------- download ---------- */
.download .seg { margin-bottom: 12px; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--s-line); border-radius: 8px; overflow: hidden; }
@media (max-width: 1200px) { .formats { grid-template-columns: 1fr 1fr; } }
.fmt { border: 0; cursor: pointer; text-align: left; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 3px; transition: background .15s; }
.fmt + .fmt { border-left: 1px solid var(--s-line); }
@media (max-width: 1200px) { .fmt:nth-child(3) { border-left: 0; } .fmt:nth-child(n + 3) { border-top: 1px solid var(--s-line); } }
.fmt:hover { background: var(--s-soft); }
.fmt b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.fmt span { color: var(--s-muted); font-size: .84rem; line-height: 1.3; }
.fmt.dark { background: var(--s-ink); color: #fff; }
.fmt.dark span { color: rgba(255, 255, 255, .65); }
.fmt.dark:hover { background: #000; }
.fmt:disabled { opacity: .5; cursor: progress; }
.status { min-height: 1.4em; margin: 12px 0 0; color: var(--green-deep); font-weight: 500; font-size: .92rem; }
.status.err { color: var(--red); }
.download.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { background: transparent; } 30% { background: #f1f8f0; } }

/* =========================================================
   The poster: 1080 × 1527 (A4 proportions), grows with content.
   Always a light paper background; editions differ in accent pieces
   (date card, badge, photo rings, signature graphic). Green base band.
   ========================================================= */
.poster {
  --bg: #f7f2e8; --ink: #1d3325; --muted: #4a574d; --t1: #9b2a2b; --t2: #3f8f4e;
  --line: rgba(29, 51, 37, .13); --tile: #3f8f4e; --tile-ink: #fff; --badge: #9b2a2b; --badge-ink: #fff;
  --ring: #3f8f4e; --leaf: #3f8f4e; --band: #1f5a35; --band-ink: #fff; --glow: rgba(244, 185, 66, .28);
  --bio: 19px;
  --head: 'League Spartan', 'Anek Devanagari', sans-serif; /* all-caps pieces only */
  --ui: 'Inter', 'Anek Devanagari', sans-serif;
  position: relative; overflow: hidden; width: 1080px; min-height: 1527px; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: 'Inter', 'Anek Devanagari', sans-serif;
}
.poster * { box-sizing: border-box; }
.poster.ed-english { --bg: #f5f3ee; --tile: #9b2a2b; --badge: #1f5a35; --ring: #9b2a2b; --leaf: #9b2a2b; }
.poster.ed-children { --bg: #fbf3df; --tile: #e8913a; --badge: #3f8f4e; --ring: #e8913a; --leaf: #e8913a; --glow: rgba(232, 145, 58, .35); }
.poster.ed-poetry { --bg: #f8efe9; --tile: #7a2224; --badge: #7a2224; --ring: #7a2224; --leaf: #7a2224; --glow: rgba(242, 160, 143, .3); }

.p-grain { position: absolute; inset: 0; background: url('../assets/img/grain.png'); opacity: .35; pointer-events: none; }
.p-leaves { position: absolute; top: -30px; right: -70px; width: 500px; height: 500px; color: var(--leaf); opacity: .09; pointer-events: none; }
.p-leaves.low { top: auto; right: auto; bottom: 260px; left: -150px; width: 360px; height: 360px; transform: rotate(160deg); opacity: .06; }
.p-dots { position: absolute; right: 60px; top: 330px; width: 140px; height: 140px; opacity: .22; pointer-events: none;
  background-image: radial-gradient(circle, #e8913a 4px, transparent 5px); background-size: 28px 28px; }

.p-main { position: relative; flex: 1; display: flex; flex-direction: column; padding: 44px 72px 0; }
.p-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 28px; }
.p-logo { width: 230px; height: auto; display: block; }
.p-session { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--t1); border: 2px solid currentColor; border-radius: 999px; padding: 10px 18px 7px; margin-bottom: 18px; }

.p-hero { display: grid; grid-template-columns: 1fr 250px; gap: 36px; align-items: stretch; }
.p-titles { align-self: end; }
.p-over { font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 600; font-size: 23px; color: var(--t2); margin-bottom: 8px; }
.p-t1 { font-family: var(--head); font-weight: 800; font-size: 72px; line-height: .95; letter-spacing: -.5px; white-space: nowrap; text-transform: uppercase; color: var(--t1); }
.p-t2 { font-family: var(--head); font-weight: 800; font-size: 150px; line-height: .82; letter-spacing: -2px; color: var(--t2); white-space: nowrap; margin-top: 12px; text-transform: uppercase; }
.p-edition { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; background: var(--badge); color: var(--badge-ink); border-radius: 999px; padding: 13px 24px 9px; }
.p-edition .hi { font-family: 'Anek Devanagari', sans-serif; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 23px; opacity: .9; margin-top: -3px; }
.p-edition .hi::before { content: '·'; margin-right: 12px; opacity: .6; }

.p-date { background: var(--tile); color: var(--tile-ink); border-radius: 32px; padding: 26px 18px 22px; text-align: center; transform: rotate(3deg); box-shadow: 0 18px 40px rgba(29, 51, 37, .2); font-family: var(--head); }
.p-date .wd { font-weight: 700; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.p-date .dd { font-weight: 800; font-size: 134px; line-height: .85; letter-spacing: -5px; margin: 14px 0 4px; }
.p-date .my { font-weight: 700; font-size: 25px; letter-spacing: .04em; text-transform: uppercase; }
.p-date .tm { font-weight: 700; font-size: 22px; margin-top: 14px; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, .3); white-space: nowrap; }
.p-date .tm small { display: block; font-size: 16px; letter-spacing: .06em; opacity: .75; margin-top: 3px; }
.p-date.tba .dd { font-size: 64px; letter-spacing: -1px; padding: 18px 0; }

.p-people { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 34px 0 60px; }
.p-card { display: grid; grid-template-columns: 176px 1fr; gap: 34px; align-items: center; padding: 20px 0; border-top: 2px solid var(--line); }
.p-card:last-child { border-bottom: 2px solid var(--line); }
.p-people.names .p-card { grid-template-columns: 150px 1fr; padding: 18px 0; }
.p-ph { position: relative; width: 100%; aspect-ratio: 1; border-radius: 46px; overflow: hidden; box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px var(--ring); background: #e8e2d4; }
.p-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.circle .p-ph { border-radius: 50%; }
.ed-children .p-card:nth-child(odd) .p-ph { transform: rotate(-3deg); }
.ed-children .p-card:nth-child(even) .p-ph { transform: rotate(3deg); --ring: #3f8f4e; }
.ed-children .p-card:nth-child(3n) .p-ph { --ring: #9b2a2b; }
.p-name { font-family: var(--ui); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -1.2px; color: var(--t1); }
.p-name .hi { display: inline-block; font-family: 'Anek Devanagari', sans-serif; font-weight: 600; font-size: 27px; letter-spacing: 0; color: var(--t2); margin-left: 14px; }
.p-bio { margin-top: 12px; font-family: 'Inter', 'Anek Devanagari', sans-serif; font-size: var(--bio); line-height: 1.55; color: var(--muted); }
.p-bio p { margin: 0 0 .6em; }
.p-bio p:last-child { margin-bottom: 0; }
.p-bio[lang="en"] { line-height: 1.5; letter-spacing: -.1px; }
.p-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font-family: var(--ui); font-weight: 600; font-size: 32px; border: 3px dashed var(--line); border-radius: 30px; margin: 34px 0 60px; }

.p-kids { display: block; width: 58%; height: auto; margin: -40px auto 0; position: relative; z-index: 1; }

/* green base with a wavy top edge and a soft painted watermark */
.p-band { position: relative; background: var(--band); color: var(--band-ink); padding: 26px 72px 26px; }
.p-wave { position: absolute; left: 0; top: -44px; width: 100%; height: 46px; display: block; }
.p-wave path { fill: var(--band); }
.p-band-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle at 88% 18%, var(--glow), transparent 38%),
    radial-gradient(circle at 4% 120%, rgba(155, 42, 43, .38), transparent 42%),
    radial-gradient(circle at 55% 140%, rgba(120, 190, 120, .28), transparent 45%); }
.p-band-art .lf { position: absolute; color: #6fae72; opacity: .22; }
.p-band-art .lf.a { right: -60px; bottom: -120px; width: 360px; height: 360px; transform: rotate(-20deg); }
.p-band-art .lf.b { right: 250px; top: -70px; width: 180px; height: 180px; transform: rotate(150deg); opacity: .12; }
.p-band-art .lf.c { left: -70px; top: -40px; width: 200px; height: 200px; transform: rotate(40deg); opacity: .1; color: #f4b942; }
.p-band-row { position: relative; display: flex; align-items: center; gap: 40px; }
.p-facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px 60px; }
.p-fact small { display: block; font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 600; font-size: 18px; opacity: .78; }
.p-fact b { display: block; font-family: var(--ui); font-weight: 700; font-size: 31px; line-height: 1.1; margin-top: 2px; letter-spacing: -.3px; }
.p-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 500; font-size: 22px; }
.p-invite b { font-family: var(--ui); font-weight: 700; font-size: 24px; background: var(--band-ink); color: var(--band); border-radius: 999px; padding: 9px 20px; }
.p-note { font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 500; font-size: 21px; line-height: 1.4; margin-top: 16px; opacity: .92; max-width: 760px; }
.p-link { display: inline-block; margin-top: 14px; font-family: var(--ui); font-weight: 700; font-size: 22px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 18px; word-break: break-all; }
.p-qr { flex: none; margin-left: auto; text-align: center; }
.p-qr .box { width: 156px; height: 156px; background: #fff; border-radius: 22px; padding: 14px; }
.p-qr svg { width: 100%; height: 100%; display: block; }
.p-qr small { display: block; font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 600; font-size: 17px; margin-top: 8px; }
.p-sign { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1.5px solid rgba(255, 255, 255, .22); font-family: 'Inter', 'Anek Devanagari', sans-serif; font-weight: 500; font-size: 17px; opacity: .85; }
