/* The invitation wording pages (/nusach/, built by scripts/build_nusach.mjs), on top of /shared/page.css */
.top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.top .logo img { width:150px; height:auto; display:block; }
.topnav { display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; }
.topnav > a:not(.btn) { color:var(--gold-hi); font-weight:700; text-decoration:none; }
.crumbs { margin-top:34px; display:flex; flex-wrap:wrap; gap:4px 8px; font-size:.92rem; color:var(--muted); }
.crumbs a { color:var(--muted); text-decoration:none; }
.crumbs a:hover { color:var(--gold-hi); }
.crumbs [aria-current] { color:#d8c08a; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:10px 22px; border:0; border-radius:999px; cursor:pointer; text-decoration:none; font-family:"Drugulin"; font-weight:400; font-size:1.1rem; color:#1b0a10; background:linear-gradient(100deg,#b8913f,#f3d98b 50%,#c9a24b); box-shadow:0 6px 18px rgba(0,0,0,.3); transition:transform .15s; }
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:scale(.97); }
.btn.sm { min-height:42px; padding:8px 18px; font-size:1rem; }
.ghost { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 20px; border-radius:999px; border:1.5px solid rgba(201,162,75,.7); color:var(--gold-hi); font-weight:700; text-decoration:none; background:rgba(0,0,0,.18); cursor:pointer; transition:background .15s, border-color .15s; }
.ghost:hover { background:rgba(201,162,75,.12); border-color:var(--gold); }
.btn svg, .ghost svg, .go svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.copy .ok { display:none; }
.copy.done .ok { display:block; }
.copy.done .cp { display:none; }

.jump { margin-top:24px; display:flex; flex-wrap:wrap; gap:8px; }
.jump a { padding:7px 18px; border-radius:999px; border:1px solid rgba(201,162,75,.45); background:rgba(122,30,46,.28); color:var(--ivory); font-weight:700; text-decoration:none; }
.jump a:hover { border-color:var(--gold); }
.hint { margin-top:10px; color:var(--muted); font-size:.93rem; }

/* four wordings side by side, two on a row */
.wordings { margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.wcard { display:flex; flex-direction:column; padding:24px; border-radius:18px; border:1px solid rgba(201,162,75,.45); background:linear-gradient(150deg, rgba(122,30,46,.34), rgba(20,8,10,.62)); scroll-margin-top:16px; }
.wcard h2 { font-family:"Drugulin"; font-weight:400; font-size:1.65rem; line-height:1.2; color:var(--gold-hi); }
.wcard .sn { margin-top:4px; color:#e0d6c4; font-size:.98rem; }
.wcard .acts { margin-top:16px; display:flex; flex-wrap:wrap; gap:10px; }

/* the invitation itself, laid out like the printed card */
.inv { position:relative; flex:1; margin-top:16px; padding:30px 28px 26px; border-radius:12px; text-align:center; font-family:"Frank Ruhl Libre", serif; font-weight:500; line-height:1.55; color:var(--ivory); border:1px solid rgba(201,162,75,.55); background:radial-gradient(90% 45% at 50% 0%, rgba(150,30,56,.38), transparent 70%), #0d0708; }
.inv::after { content:''; position:absolute; inset:7px; border:1px solid rgba(201,162,75,.22); border-radius:8px; pointer-events:none; }
.inv p { margin:0; }
.inv .bsd { margin:-14px 0 8px; text-align:start; font-size:.85rem; color:var(--gold); }
.inv .pasuk { color:var(--gold-hi); }
.inv .sim { display:flex; justify-content:space-between; color:var(--gold); font-size:.95rem; }
.inv .rebbe { color:var(--muted); font-size:.92rem; }
.inv .lead { margin-top:10px; }
.inv .couple { margin:12px 0 6px; }
.inv .couple b, .inv .name, .inv .groomLine, .inv .brideLine { font-weight:700; font-size:1.5rem; line-height:1.3; color:var(--gold-hi); }
.inv .groomLine, .inv .name { margin-top:10px; }
.inv .couple small { font-size:.92rem; font-weight:500; color:#e6dccb; }
.inv .amp { color:var(--gold); font-size:.95rem; }
.inv .sub { color:var(--gold); font-size:.95rem; }
.inv .date { margin-top:10px; }
.inv .greg, .inv .addr, .inv .note, .inv .geniza, .inv .grand1 { font-size:.88rem; color:#cbbfa8; }
.inv .times { font-weight:700; }
.inv .place { margin-top:8px; font-weight:700; color:var(--gold-hi); }
.inv .note { margin-top:8px; }
.inv .close { margin-top:12px; }
.inv .parents1 { margin-top:12px; font-weight:700; }
.inv .cols { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; }
.inv .parents2 p { font-weight:700; }
.inv .grand2 { margin-top:2px; }
.inv .grand2 p { font-size:.9rem; color:#e0d6c4; }
.inv .grandHead { margin-top:14px; color:var(--gold); font-size:.92rem; }
.inv .grand1 { margin-top:4px; }

.two { margin-top:48px; display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.panel { padding:24px 26px; border-radius:16px; border:1px solid rgba(201,162,75,.35); background:linear-gradient(120deg, rgba(201,162,75,.08), rgba(122,30,46,.22)); }
.panel h2, .sec h2 { font-family:"Drugulin"; font-weight:400; font-size:1.6rem; line-height:1.25; color:var(--gold-hi); }
.panel h3 { margin-top:16px; font-family:"Drugulin"; font-weight:400; font-size:1.15rem; color:var(--ivory); }
.panel ol, .panel ul { margin-top:10px; margin-inline-start:1.3em; display:grid; gap:6px; color:#e0d6c4; }
.panel li::marker { color:var(--gold); }
.panel li small { color:var(--muted); }
.panel .pn { margin-top:8px; color:#e0d6c4; font-size:.95rem; }
.sec { margin-top:48px; }
.abbr { margin-top:14px; display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.abbr div { padding:12px 16px; border-radius:12px; border:1px solid rgba(201,162,75,.22); background:rgba(255,255,255,.035); }
.abbr dt { font-family:"Frank Ruhl Libre", serif; font-weight:700; font-size:1.3rem; color:var(--gold-hi); }
.abbr dd { color:#e6dccb; }
.abbr dd + dd { color:var(--muted); font-size:.9rem; }
.faq { margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:22px 34px; }
.faq h3 { font-family:"Drugulin"; font-weight:400; font-size:1.22rem; color:var(--gold-hi); }
.faq p { margin-top:4px; color:#e0d6c4; }
.links { margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; }

.cta { margin-top:54px; padding:34px 32px; border-radius:20px; border:1px solid rgba(201,162,75,.6); display:grid; grid-template-columns:1.5fr 1fr; gap:26px; align-items:center; background:radial-gradient(80% 100% at 100% 0%, rgba(150,30,56,.55), transparent 70%), linear-gradient(140deg, rgba(201,162,75,.14), rgba(122,30,46,.3)); }
.cta h2 { font-family:"Drugulin"; font-weight:400; font-size:clamp(1.6rem, 3vw, 2.2rem); line-height:1.2; }
.cta p { margin-top:10px; color:#e6dccb; }
.cta .acts { display:grid; gap:10px; }

/* the hub: one card per event */
.events { margin-top:30px; display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.ecard { display:flex; flex-direction:column; gap:14px; padding:24px; border-radius:18px; border:1px solid rgba(201,162,75,.45); color:inherit; text-decoration:none; background:linear-gradient(150deg, rgba(122,30,46,.34), rgba(20,8,10,.62)); transition:transform .2s, border-color .2s; }
.ecard:hover { transform:translateY(-3px); border-color:var(--gold); }
/* the three big ones on the first row, the four others on the second */
@media (min-width:1001px) { .events { grid-template-columns:repeat(12, 1fr); } .ecard { grid-column:span 4; } .ecard:nth-child(n+4) { grid-column:span 3; } .ecard:nth-child(n+4) h2 { font-size:1.3rem; } }
.ecard h2 { font-family:"Drugulin"; font-weight:400; font-size:1.55rem; line-height:1.2; color:var(--gold-hi); }
.ecard > p { color:#e0d6c4; font-size:.97rem; }
.inv.mini { flex:none; margin-top:0; padding:24px 18px 18px; font-size:.92rem; }
.inv.mini .couple b, .inv.mini .name { font-size:1.25rem; }
.go { margin-top:auto; display:inline-flex; align-items:center; gap:6px; color:var(--gold-hi); font-weight:700; }

/* the mourning notices: quieter, ivory and grey instead of festive gold */
[data-ev="avel"] .inv { background:#0c0a0a; border-color:rgba(200,190,175,.45); }
[data-ev="avel"] .inv::after { border-color:rgba(200,190,175,.18); }
[data-ev="avel"] .inv .name, [data-ev="avel"] .inv .place { color:var(--ivory); }
[data-ev="avel"] .inv .pasuk, [data-ev="avel"] .inv .sub, [data-ev="avel"] .inv .bsd { color:#cbbfa8; }
[data-ev="avel"] .wcard { background:linear-gradient(150deg, rgba(60,40,44,.4), rgba(14,10,11,.7)); }

/* the digital invitation page: steps and what the email brings */
.tiles { margin-top:16px; display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.tile { position:relative; padding:22px 22px 20px; border-radius:16px; border:1px solid rgba(201,162,75,.35); background:linear-gradient(150deg, rgba(122,30,46,.3), rgba(20,8,10,.6)); }
.tile .ti { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; border:1px solid rgba(201,162,75,.5); background:rgba(201,162,75,.1); color:var(--gold-hi); }
.tile .ti svg, .okl svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tile h3 { margin-top:12px; font-family:"Drugulin"; font-weight:400; font-size:1.25rem; color:var(--gold-hi); }
.tile p { margin-top:4px; color:#e0d6c4; }
.tile .num { position:absolute; inset-inline-end:18px; top:14px; font-family:"Drugulin"; font-size:2rem; line-height:1; color:rgba(201,162,75,.35); }
.okl { margin-top:12px; list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:12px 26px; }
.okl li { display:flex; gap:10px; align-items:flex-start; color:#e6dccb; }
.okl svg { flex:none; margin-top:3px; color:var(--gold-hi); }

.toast { position:fixed; inset-inline:0; bottom:22px; z-index:20; width:max-content; max-width:calc(100% - 32px); margin:0 auto; padding:12px 20px; border-radius:12px; border:1px solid var(--gold); background:#1d0c10; color:var(--ivory); font-weight:700; box-shadow:0 12px 30px rgba(0,0,0,.5); opacity:0; transform:translateY(10px); transition:opacity .25s, transform .25s; pointer-events:none; }
.toast.on { opacity:1; transform:none; }
.toast.bad { border-color:#e08a98; }
footer.note { margin-top:54px; }
footer .cr { margin-top:8px; font-size:.85rem; }

@media (max-width:1000px) { .events { grid-template-columns:1fr 1fr; } }
@media (max-width:900px) { .wordings, .two, .faq, .cta, .okl { grid-template-columns:1fr; } .abbr, .tiles { grid-template-columns:1fr 1fr; } }
@media (max-width:600px) {
  .events, .abbr, .tiles.three { grid-template-columns:1fr; }
  .tiles:not(.three) { gap:10px; } .tiles:not(.three) .tile { padding:14px 12px; } .tiles:not(.three) .tile .ti { width:38px; height:38px; } .tiles:not(.three) .tile h3 { font-size:1.08rem; } .tiles:not(.three) .tile p { font-size:.92rem; }
  .top .logo img { width:118px; }
  .topnav > a:not(.btn) { display:none; }
  .crumbs { margin-top:24px; }
  .wcard, .panel, .ecard { padding:18px 16px; }
  .inv { padding:26px 14px 20px; }
  .inv .couple b, .inv .name, .inv .groomLine, .inv .brideLine { font-size:1.35rem; }
  .wcard .acts > *, .links > * { flex:1 1 100%; }
  .chips > * { flex:1 1 calc(50% - 5px); padding:10px 12px; }
  .abbr div { display:grid; grid-template-columns:6.2em 1fr; column-gap:12px; padding:10px 14px; }
  .abbr dt { grid-row:span 2; align-self:center; }
  .cta { padding:26px 18px; }
}
@media (prefers-reduced-motion:reduce) { .btn, .ecard, .toast { transition:none; } }
