/* Wedding website themes (builder preview + /w/<name>) */
.ws { --c1: #7a1538; --c2: #f29d0c; --bg: #fff8ef; --ink: #2b1430; --soft: #6c5869; --card: #ffffff; --hero-ink: #fff4dc;
  --hero: radial-gradient(ellipse at 50% 30%, #8a1c46 0%, #4a0b24 60%, #2c0716 100%);
  background: var(--bg); color: var(--ink); font-family: "Hind", system-ui, sans-serif; line-height: 1.6; min-height: 100%; }
.ws * { box-sizing: border-box; }
.ws-royal { --c1: #152657; --c2: #e3c06e; --bg: #f6f4ee; --ink: #141a33; --soft: #59607a; --hero-ink: #f4ecd8; --hero: linear-gradient(180deg, #0d1838, #152657 60%, #0d1838); }
.ws-blush { --c1: #b5446e; --c2: #e89bb5; --bg: #fff6f7; --ink: #4a2d3a; --soft: #7d5868; --hero-ink: #4a2d3a; --hero: linear-gradient(180deg, #fde6ea, #fff3f4); }
.ws-ivory { --c1: #a17c2f; --c2: #c9a24a; --bg: #fbf6ec; --ink: #1f1a14; --soft: #5b5246; --hero-ink: #1f1a14; --hero: linear-gradient(180deg, #f3ead7, #fbf6ec); }
.ws-sage { --c1: #3f6b3a; --c2: #8fb07e; --bg: #f4f8f2; --ink: #1f2e1d; --soft: #4d6249; --hero-ink: #1f2e1d; --hero: linear-gradient(180deg, #dcebd6, #f1f7ee); }

.ws-hero { background: var(--hero); color: var(--hero-ink); text-align: center; padding: 64px 20px 56px; display: grid; justify-items: center; gap: 12px; position: relative; }
.ws-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--c2) 0 14px, transparent 14px 22px); opacity: .8; }
.ws-photo { width: 180px; height: 180px; border-radius: 50%; background: center 25% / cover no-repeat; border: 6px solid var(--c2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.ws-kicker { letter-spacing: .25em; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--c2); margin: 0; }
.ws-names { font-family: "Great Vibes", "Tiro Devanagari Hindi", cursive; font-weight: 400; font-size: clamp(48px, 11vw, 92px); line-height: 1.1; margin: 0; color: var(--c2); }
.ws-blush .ws-names, .ws-ivory .ws-names, .ws-sage .ws-names { color: var(--c1); }
.ws-amp { font-family: "Cormorant Garamond", serif; font-size: .5em; vertical-align: middle; }
.ws-date { font-family: "Rozha One", "Tiro Devanagari Hindi", serif; font-size: clamp(20px, 4.5vw, 28px); margin: 0; }
.ws-tag { max-width: 520px; margin: 0; opacity: .85; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; }
.ws-count { display: flex; gap: 10px; margin: 8px 0; flex-wrap: wrap; justify-content: center; }
.ws-count > div { min-width: 70px; padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.ws-blush .ws-count > div, .ws-ivory .ws-count > div, .ws-sage .ws-count > div { background: rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .08); }
.ws-count b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ws-count span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 26px; border-radius: 999px; border: 0; background: var(--c2); color: #2b1430; font: 700 16px "Hind", sans-serif; text-decoration: none; cursor: pointer; }
.ws-blush .ws-btn, .ws-ivory .ws-btn, .ws-sage .ws-btn { background: var(--c1); color: #fff; }
.ws-btn-o { background: transparent !important; color: var(--c1) !important; border: 2px solid var(--c1); }
.ws-sec { max-width: 760px; margin: 0 auto; padding: 44px 20px 8px; text-align: center; }
.ws-sec h2 { font-family: "Cormorant Garamond", "Tiro Devanagari Hindi", serif; font-weight: 600; font-size: 34px; color: var(--c1); margin: 0 0 14px; }
.ws-sec h2::after { content: ""; display: block; width: 60px; height: 3px; margin: 8px auto 0; background: var(--c2); border-radius: 3px; }
.ws-story { font-size: 18px; white-space: pre-line; }
.ws-muted { color: var(--soft); }
.ws-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; text-align: left; }
.ws-ev { background: var(--card); border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .35); border-top: 4px solid var(--c2); }
.ws-ev h3 { margin: 0 0 4px; font-size: 20px; color: var(--c1); }
.ws-ev p { margin: 0 0 4px; }
.ws-ev a { color: var(--c1); font-weight: 700; text-decoration: none; }
.ws-when { font-weight: 700; }
.ws-venue { font-size: 18px; margin-bottom: 14px; }
.ws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ws-gallery div { aspect-ratio: 1; border-radius: 14px; background: center / cover no-repeat; }
.ws-form { display: grid; gap: 14px; text-align: left; background: var(--card); padding: 22px; border-radius: 20px; box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .35); }
.ws-form label { display: grid; gap: 6px; font-weight: 600; }
.ws-form input:not([type=radio]):not([type=checkbox]), .ws-form textarea { font: inherit; padding: 12px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .18); background: #fff; color: #222; width: 100%; }
.ws-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.ws-form legend { font-weight: 600; margin-bottom: 6px; }
.ws-form .ws-r { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.ws-form .ws-r input { width: 20px; height: 20px; accent-color: var(--c1); }
.ws-msg { margin: 0; font-weight: 600; }
.ws-msg.err { color: #b42318; }
.ws-foot { text-align: center; padding: 40px 20px 30px; color: var(--soft); font-size: 14px; }
.ws-foot a { color: var(--c1); }

/* public page chrome */
body.ws-page { margin: 0; background: #fff8ef; }
.ws-banner { position: sticky; top: 0; z-index: 10; background: #2b1430; color: #fff6ea; padding: 10px 16px; text-align: center; font-size: 14px; }
.ws-banner a { color: #f29d0c; }
.ws-owner { max-width: 960px; margin: 24px auto; padding: 0 16px; font-family: "Hind", sans-serif; }
.ws-owner .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.ws-owner .tiles div { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .4); }
.ws-owner .tiles b { display: block; font-size: 28px; }
.ws-owner table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.ws-owner th, .ws-owner td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.ws-owner .tbl { overflow-x: auto; border-radius: 14px; box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .4); }
.ws-empty { max-width: 520px; margin: 80px auto; text-align: center; padding: 0 20px; font-family: "Hind", sans-serif; }

/* builder preview frame */
.ws-frame { height: min(78vh, 900px); overflow: auto; border-radius: 18px; box-shadow: var(--shadow); background: #fff; }
.ws-frame .ws-hero { padding-top: 40px; }

/* owner panel + empty page: always dark text on the light page, even when the phone is in dark mode */
body.ws-page { color: #2b1430; color-scheme: light; }
.ws-owner, .ws-empty { color: #2b1430; }
.ws-owner h2 { font: 600 30px "Cormorant Garamond", serif; color: #7a1538; margin: 0 0 6px; }
.ws-owner .tiles div { color: #6c5869; font-size: 14px; border-top: 4px solid #f29d0c; }
.ws-owner .tiles b { color: #2b1430; font-size: 32px; line-height: 1.1; }
.ws-owner .tiles div.hl { background: #7a1538; color: #ffe9c2; border-top-color: #7a1538; }
.ws-owner .tiles div.hl b { color: #fff; }
.ws-owner table, .ws-owner th, .ws-owner td { color: #2b1430; }
.ws-owner th { background: #f6eef2; font-weight: 700; }
.ws-owner .ws-dl { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 2px solid #7a1538; background: #fff; color: #7a1538; font: 700 15px "Hind", sans-serif; cursor: pointer; }
.ws-owner .ws-dl:hover { background: #7a1538; color: #fff; }
.ws-owner .muted { color: #6c5869; }
.ws-owner h3 { font: 700 15px "Hind", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6c5869; margin: 18px 0 4px; }
