/* Juhapura design system — derived from design/Juhapura Website/*.dc.html */
/* Self-hosted fonts (static/fonts/README.md) */
/* Jost, latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.7b6ea3dd2de2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost, latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin.41a72a3a0ae3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Noto Sans Gujarati, gujarati */
@font-face {
  font-family: 'Noto Sans Gujarati';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/noto-sans-gujarati-gujarati.98acec1d4371.woff2") format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

:root {
  /* Sage palette (colorhunt bdd2b6-a2b29f-798777) on a light olive background, 26 Nov 2026. The four colours are light, so they are
     surfaces, rules and borders; text stays in ink, green and --accent, all 4.5:1 or better on every surface. */
  --green: #0D4A29;
  --green-dark: #0A3A20;
  --sage-1: #BDD2B6;
  --sage-2: #A2B29F;
  --sage-3: #798777;
  --sage-tint: #D8E0C7;          /* sage-1 mixed into the background: bands, group rows */
  --accent: #4F5C4D;             /* small text, labels, underlines, hover: 5.8:1 on the background */
  --accent-dark: #3F4A3E;
  --accent-on-dark: #BDD2B6;     /* accents on green: 6.4:1 */
  --cream: #E7EBD8;            /* light olive page background (option B, 26 Nov 2026) */
  --paper: #F5F7EE;
  --paper-2: #EEF1E4;
  --sand: #D8E0C7;
  --line: #C5CDB5;
  --line-strong: #A2B29F;
  --line-soft: #D6DCC7;
  --line-faint: #E1E6D3;
  --ink: #17241C;
  --ink-2: #3E4A43;
  --muted: #5B6660;
  --faint: #5E6B5C;
  --ok: #1F7A45;
  --bad: #A3321F;
  --gutter: clamp(16px, 4vw, 48px);
  --gu: 'Noto Sans Gujarati', 'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.site-footer :focus-visible, .band-dark :focus-visible, .list-hero :focus-visible, .prayer :focus-visible, .box.dark :focus-visible, .cta-band :focus-visible { outline-color: var(--accent-on-dark); }
main:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 6px; font-weight: 500; }
.skip-link:focus { top: 12px; color: var(--cream); }
::placeholder { color: var(--faint); opacity: 1; }
body { font-family: 'Jost', 'Noto Sans Gujarati', system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--accent); }
input, button, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--sage-1); color: var(--green); }
[hidden] { display: none !important; }
.gu { font-family: var(--gu); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--green); color: var(--cream); }
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 32px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 80px); }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }

/* ── Type ───────────────────────────────────────────────── */
.eyebrow { font-size: 13px; letter-spacing: .32em; color: var(--accent); font-weight: 500; margin-bottom: 10px; text-transform: uppercase; }
.label { font-size: 12px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.display { font-size: clamp(40px, 6vw, 72px); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; color: var(--green); text-wrap: balance; }
.h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; color: var(--green); text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; color: var(--green); text-wrap: balance; }
.h3 { font-size: 28px; font-weight: 400; color: var(--green); margin-bottom: 14px; }
.h1 + .lead { margin-top: 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.muted { color: var(--muted); }
.link-line { font-size: 16px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link-line.subtle { color: var(--muted); border-color: var(--line-strong); }
.prose { font-size: 17px; color: var(--ink-2); max-width: 680px; white-space: pre-line; overflow-wrap: anywhere; }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; padding: 13px 22px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; min-height: 48px; line-height: 1.2; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-dark); color: var(--cream); }
.btn-gold { background: var(--accent); color: var(--paper); }
.btn-gold:hover { background: var(--accent-dark); color: var(--paper); }
.btn-light { background: var(--accent-on-dark); color: var(--green); }
.btn-light:hover { background: var(--sage-2); color: var(--green); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { font-size: 14px; font-weight: 400; padding: 8px 12px; min-height: 40px; border-radius: 6px; }
.btn-block { width: 100%; }
.chip { font-size: 14px; color: var(--green); background: transparent; border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 14px; cursor: pointer; white-space: nowrap; display: inline-block; }
.chip:hover { border-color: var(--accent); background: var(--paper); color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }
.linkbtn { background: none; border: none; border-bottom: 1px solid var(--accent); font-size: 15px; color: var(--green); cursor: pointer; padding: 0 0 1px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-top: 3px solid var(--green); border-bottom: 1px solid var(--line-strong); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(13, 74, 41, .08); }
.site-header .bar { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header .logo img { height: 64px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; min-width: 0; }
.nav a { font-size: 17px; font-weight: 500; color: var(--green); padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--sage-tint); color: var(--green); }
.nav a.is-active { background: var(--sage-1); color: var(--green); }
.login-btn { margin-left: 4px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: none; border: none; cursor: pointer; color: var(--green); }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-link { font-size: 15px; color: var(--ink); padding: 8px; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 4px 8px 4px 4px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--sand); }
.account-menu summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.account-menu[open] summary svg { transform: rotate(180deg); }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(13, 74, 41, .14); padding: 6px; display: flex; flex-direction: column; z-index: 60; }
.account-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; display: flex; flex-direction: column; min-width: 0; }
.account-menu .who strong { font-weight: 500; color: var(--green); }
.account-menu .who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-menu .menu a, .account-menu .menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; color: var(--ink); padding: 9px 12px; border-radius: 6px; background: none; border: none; cursor: pointer; }
.account-menu .menu a:hover, .account-menu .menu button:hover { background: var(--cream); color: var(--green); }
.account-menu .menu form { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
.account-menu .menu button { color: var(--bad); }
.mobile-account { margin-top: 16px; display: flex; flex-direction: column; }
.mobile-account .label { margin-bottom: 4px; }
.mobile-account a.sub { font-size: 17px; color: var(--ink-2); padding: 10px 4px; }
.mobile-account form { margin-top: 12px; align-self: flex-start; }
.anchor { scroll-margin-top: 100px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px 16px 20px; display: flex; flex-direction: column; }
.mobile-menu a.item { font-size: 20px; color: var(--green); padding: 14px 4px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
.mobile-menu a.item.is-active::after { content: '●'; color: var(--accent); }
.mobile-menu .btn { margin-top: 16px; align-self: flex-end; }
/* Six links need about 1000px beside the logo; below that the menu button takes over. */
@media (max-width: 1023px) {
  .nav, .header-tools .account-link, .header-tools .account-menu, .header-tools .login-btn { display: none; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: flex; }
}
@media (max-width: 759px) { .site-header .logo img { height: 50px; } }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: #C5CFC8; }
.site-footer .inner { padding-top: clamp(40px, 6vw, 64px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 28px; margin-bottom: 40px; }
.footer-grid .brand { grid-column: span 2; min-width: min(100%, 240px); }
.footer-grid .brand img { height: 50px; width: auto; }
.footer-grid .brand p { font-size: 15px; max-width: 320px; margin-top: 18px; color: #AEBBB2; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 12px; font-weight: 400; letter-spacing: .28em; color: var(--accent-on-dark); margin-bottom: 6px; }
.footer-col a { color: #C5CFC8; font-size: 15px; padding: 3px 0; }
.footer-col a:hover { color: var(--cream); }
.footer-base { border-top: 1px solid rgba(244, 241, 234, .12); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #8FA096; }

/* ── Forms ──────────────────────────────────────────────── */
.searchbar { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 6px 6px 18px; box-shadow: 0 1px 0 var(--line); }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar svg { fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; flex-shrink: 0; }
.searchbar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 17px; color: var(--ink); padding: 10px 0; }
.searchbar .btn { min-height: 0; padding: 12px 20px; font-size: 15px; }
.filters { margin-top: 36px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 4px; }
.filter { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; }
.filter:hover { background: var(--cream); }
.filter select { border: none; background: transparent; font-size: 17px; color: var(--ink); outline: none; cursor: pointer; padding: 2px 0; width: 100%; }
.filter .chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.filter .chips .chip { padding: 5px 12px; }
.list-hero { background: var(--green); color: var(--cream); padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 116px); }
.list-hero .pill { display: inline-block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; background: rgba(244, 241, 234, .12); color: var(--accent-on-dark); margin-bottom: 18px; }
.list-hero .h1 { color: var(--cream); }
.list-hero .lead { color: #C9D3CC; margin-top: 14px; }
.filters.floating { position: relative; z-index: 2; margin-top: calc(-1 * clamp(44px, 5vw, 60px)); border-color: var(--line); box-shadow: 0 18px 44px rgba(13, 74, 41, .14); padding: 10px; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.filters.floating .filter { border: 1px solid var(--line-soft); background: var(--paper); }
.filters.floating .filter:hover { border-color: var(--line-strong); background: var(--paper); }
.filters .search-btn { border-radius: 8px; font-size: 17px; min-height: 58px; }
.select-sm { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 6px; padding: 7px 10px; font-size: 15px; color: var(--ink); outline: none; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 15px; color: var(--ink-2); }
.input { border: 1px solid var(--line-strong); background: var(--paper-2); border-radius: 7px; padding: 12px 14px; font-size: 16px; outline: none; color: var(--ink); width: 100%; }
.input:focus { border-color: var(--accent); background: var(--paper); }
.errorlist { list-style: none; color: var(--bad); font-size: 14px; }
.messages { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.messages li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 6px; }
.messages li.error { border-left-color: var(--bad); }

/* ── Cards & badges ─────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.grid-cards.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); min-width: 0; }
.card:hover { color: var(--ink); }
.card .media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card.text-only { border-top: 2px solid var(--sage-2); padding-top: 16px; }
.card.text-only .title { font-size: 20px; }
.card .media img.photo, .gallery img.photo { position: absolute; inset: 0; }
/* Listing photos: the whole photo (posters keep their text) over a blurred, enlarged copy that fills the frame. */
.card .media img.photo-bg, .gallery img.photo-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(20px) saturate(1.1); opacity: .85; }
.card .media img.photo.fit, .gallery img.photo.fit { object-fit: contain; z-index: 1; }
.gallery .main { position: relative; overflow: hidden; }
.card .media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card .media .badge.right { left: auto; right: 12px; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .kicker { font-size: 13px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.card .when { font-size: 13px; color: var(--faint); white-space: nowrap; }
.card .title { font-size: 21px; font-weight: 500; color: var(--green); line-height: 1.2; overflow-wrap: anywhere; }
.card a.title:hover { color: var(--accent); }
.card .spec { font-size: 15px; color: var(--muted); }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card .price { font-size: 20px; color: var(--ink); }
.card .actions { display: flex; gap: 8px; }
.grid-cards.boxed { gap: clamp(20px, 2.4vw, 28px); }
.pcard { gap: 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { border-color: var(--green); box-shadow: 0 14px 30px rgba(13, 74, 41, .1); transform: translateY(-2px); }
.pcard .media { border-radius: 0; }
.pcard .body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.pcard .meta-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pcard .meta-line span:last-child { text-align: right; }
.pcard .title { font-size: 20px; }
.pcard .foot { margin-top: auto; padding-top: 14px; flex-wrap: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line-soft); border-radius: 99px; padding: 3px 10px; }
.price-block { display: flex; flex-direction: column; min-width: 0; }
.price-block strong { font-size: 23px; font-weight: 500; color: var(--green); line-height: 1.15; }
.price-block small { font-size: 13px; color: var(--muted); }
.btn-icon { width: 40px; padding: 0; justify-content: center; }
.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--sage-tint) 70%, var(--paper)), var(--sage-tint)); color: var(--accent-dark); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.placeholder img, .card .media .placeholder img { width: 56px; height: 56px; opacity: .5; object-fit: contain; }
.badge { display: inline-block; font-size: 12px; letter-spacing: .12em; padding: 5px 10px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; line-height: 1.3; }
.badge-clear { background: var(--green); color: var(--cream); }
.badge-poa { background: #F4E7C6; color: #6B4F12; }
.badge-juni { background: #EADFD8; color: #6B3A22; }
.badge-soft { background: var(--paper); color: var(--green); }
.badge-gold { background: var(--accent-on-dark); color: var(--green); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line-faint); color: var(--ink); min-height: 168px; }
.tile:hover { background: var(--cream); color: var(--ink); }
.tile .num { font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.tile .name { font-size: 21px; font-weight: 500; color: var(--green); }
.tile .desc { font-size: 15px; color: var(--muted); line-height: 1.45; flex: 1; }
.tile .count { font-size: 14px; color: var(--green); }

.list-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); align-items: center; }
.list-row:hover { color: var(--ink); background: var(--paper-2); }
.datebox { text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 0; background: var(--cream); }
.datebox .d { font-size: 26px; font-weight: 500; line-height: 1; color: var(--green); }
.datebox .m { font-size: 12px; letter-spacing: .18em; color: var(--accent); margin-top: 4px; text-transform: uppercase; }
.row-title { font-size: 18px; font-weight: 500; color: var(--green); }
.row-sub { font-size: 15px; color: var(--muted); }

.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cell .name { font-size: 18px; font-weight: 500; color: var(--green); }
.cell .links { display: flex; gap: 16px; margin-top: 10px; font-size: 14px; }
.cell .links a { border-bottom: 1px solid var(--line-strong); }
.status-open { color: var(--ok); }
.status-closed { color: var(--bad); }

/* ── Home ───────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero .gu-line { font-family: var(--gu); font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); margin-top: 16px; }
.hero .lead { margin-top: 22px; }
.hero form { margin-top: 34px; max-width: 560px; }
@media (min-width: 760px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.popular { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.popular > span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.hero-art { display: grid; gap: 20px; justify-items: center; min-width: 0; }
.arch { position: relative; width: min(100%, 400px); aspect-ratio: 4 / 5; }
.arch::before, .arch::after { content: ''; position: absolute; clip-path: var(--arch); pointer-events: none; }
.arch::before { inset: 0; background: var(--accent); }
.arch::after { inset: 1.5px; background: var(--cream); }
.arch img { position: absolute; top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; clip-path: var(--arch); z-index: 1; }
.arch figcaption { position: absolute; bottom: -22px; right: 0; font-size: 11px; color: var(--faint); }
:root { --arch: polygon(0% 100%,0% 38%,1% 32%,3.5% 26.5%,7.5% 21%,13% 16%,20% 11.5%,28% 7.5%,37% 4%,44% 1.8%,50% 0%,56% 1.8%,63% 4%,72% 7.5%,80% 11.5%,87% 16%,92.5% 21%,96.5% 26.5%,99% 32%,100% 38%,100% 100%); }
.prayer { width: min(100%, 460px); background: var(--green); color: var(--cream); border-radius: 10px; padding: 18px 22px; }
.prayer .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.prayer .top .label { color: var(--accent-on-dark); letter-spacing: .28em; }
.prayer .top .next { font-size: 13px; color: #D3DECF; }
.prayer .times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; }
.prayer .times div { padding: 8px 2px; border-radius: 6px; }
.prayer .times .is-next { background: rgba(189, 210, 182, .14); }
.prayer .times small { display: block; font-size: 13px; color: #D3DECF; }
.prayer .prayer-link { color: #D3DECF; border-color: var(--sage-3); }
.prayer .prayer-link:hover { color: var(--cream); }
.prayer .times strong { font-size: 17px; font-weight: 500; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs .chip { font-size: 15px; padding: 9px 18px; }

/* ── Detail pages ───────────────────────────────────────── */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--faint); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs .here { color: var(--ink); overflow-wrap: anywhere; }
.pager-mini { display: flex; align-items: center; gap: 8px; }
.pager-mini a { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--green); display: flex; align-items: center; justify-content: center; }
.pager-mini a:hover { border-color: var(--green); }
.pager-mini svg, .pager svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 28px; height: clamp(300px, 42vw, 520px); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.is-broken { display: none; }
.gallery .main, .gallery .side > div { position: relative; border-radius: 8px; overflow: hidden; min-height: 0; background: var(--line-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--green); font-size: 14px; padding: 7px 12px; border-radius: 6px; }
.detail { display: flex; flex-wrap: wrap; gap: clamp(28px, 3.4vw, 56px); align-items: flex-start; padding-top: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.detail .body { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.detail aside { position: sticky; top: 110px; flex: 0 1 300px; min-width: min(100%, 270px); display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 18px 16px 18px 0; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: 19px; font-weight: 400; color: var(--green); }
.bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; list-style: none; }
.bullets li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.bullets.checks li::before { width: 18px; height: 18px; border-radius: 0; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%231F7A45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.panel.strong { border-color: var(--line-strong); padding: 24px; }
.contact-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--accent-on-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; letter-spacing: .06em; flex-shrink: 0; text-transform: uppercase; }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.emi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; align-items: center; }
.emi label { display: flex; flex-direction: column; gap: 8px; }
.emi label > span { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.emi label output { color: var(--green); }
.emi input[type=range] { accent-color: var(--green); }
.emi .result { background: var(--green); color: var(--cream); border-radius: 10px; padding: 28px; }
.emi .result .label { color: var(--accent-on-dark); letter-spacing: .28em; }
.emi .result .amount { font-size: 44px; line-height: 1.1; margin-top: 8px; }
.emi .result .amount small { font-size: 18px; color: #C5CFC8; }
.tenure-rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.tenure-rows > div:last-child { border-bottom: 1px solid var(--line); }
.tenure-rows .badge { align-self: start; justify-self: start; }
.pager { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { flex: 1 1 260px; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); min-width: 0; }
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager a.all:only-child { margin: 0 auto; }
.pager a.all { flex: 0 1 auto; justify-content: center; font-size: 15px; color: var(--green); background: transparent; white-space: nowrap; }
.pager .t { display: block; font-size: 18px; font-weight: 500; color: var(--green); margin-top: 2px; overflow-wrap: anywhere; }
.pager .s { display: block; font-size: 14px; color: var(--muted); }
.pager svg { color: var(--accent); flex-shrink: 0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; font-size: 15px; color: var(--muted); }
.empty { padding: 64px 0; text-align: center; color: var(--muted); font-size: 17px; }
.cta-band .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; line-height: 1.1; text-wrap: balance; }
.cta-band p { font-size: 17px; color: #C5CFC8; margin-top: 12px; max-width: 620px; }

/* ── Lists with sidebar (directory, scholarships) ───────── */
.with-aside { display: flex; flex-wrap: wrap; gap: clamp(28px, 3.4vw, 56px); align-items: flex-start; padding-top: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.with-aside > .main { flex: 1 1 520px; min-width: 0; }
.with-aside > aside { position: sticky; top: 110px; flex: 0 1 300px; min-width: min(100%, 270px); display: flex; flex-direction: column; gap: 16px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 17px; color: var(--ink-2); }
.list-head strong { color: var(--green); font-weight: 500; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .strip[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.strip a { text-align: left; border-right: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; color: var(--green); }
.strip a:hover, .strip a.is-on { background: var(--paper); color: var(--green); }
.strip a.is-on { box-shadow: inset 0 -2px 0 var(--accent); }
.strip b { font-size: 16px; font-weight: 500; }
.strip small { font-size: 14px; color: var(--muted); }
@media (max-width: 759px) {
  .strip { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); }
  .strip a { flex: 0 0 auto; padding: 14px 18px; white-space: nowrap; }
}
.place { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.place .info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.place .name-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.place .name { font-size: 20px; font-weight: 500; color: var(--green); overflow-wrap: anywhere; }
.place .name:hover { color: var(--accent); }
.place .cat { font-size: 12px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.place .where { font-size: 15px; color: var(--muted); }
.place .hours { font-size: 14px; color: var(--ok); }
.place .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.box .label { margin-bottom: 12px; display: block; }
.box h3, .box .aside-h { font-size: 20px; font-weight: 500; color: var(--green); }
.box p { font-size: 15px; color: var(--muted); margin: 6px 0 16px; }
.box.dark { background: var(--green); color: var(--cream); border-color: var(--green); }
.box.dark .label { color: var(--accent-on-dark); }
.box.dark p { color: #C5CFC8; }
.kv { display: flex; flex-direction: column; gap: 16px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; font-size: 16px; overflow-wrap: anywhere; }
.line-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink); }
.line-links a:hover { color: var(--green); }
.line-links a span:last-child { color: var(--muted); white-space: nowrap; }
.box.dark .line-links a { color: var(--cream); border-color: rgba(244, 241, 234, .15); }
.box.dark .line-links a span:last-child { color: var(--accent-on-dark); font-size: 18px; }
.sch { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.sch .top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sch .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.due { font-size: 14px; color: var(--ok); }
.due.soon { color: var(--bad); }
.due.closed { color: var(--faint); }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); font-size: 16px; color: var(--ink-2); white-space: pre-line; }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--accent-on-dark); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.deadline .big { font-size: 28px; color: var(--green); line-height: 1.15; }

/* ── Simple pages ───────────────────────────────────────── */
.narrow { max-width: 760px; }
.prose-page h2 { font-size: 26px; font-weight: 400; color: var(--green); margin: 36px 0 10px; }
.prose-page p { font-size: 17px; color: var(--ink-2); }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 20px 24px; margin-top: 32px; font-size: 18px; color: var(--green); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.features > div { padding: 32px clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line-faint); }
.features .num { font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.features .name { font-size: 21px; font-weight: 500; color: var(--green); margin: 8px 0 6px; }
.features p { color: var(--muted); }
.features > div:last-child { border-right: 0; }
@media (max-width: 759px) { .features > div { padding-left: 0; padding-right: 0; border-right: 0; } .features > div + div { border-top: 1px solid var(--line-faint); } }
@media (min-width: 760px) { .features > div:first-child { padding-left: 0; } }
.contact-list { display: flex; flex-direction: column; margin-top: 32px; }
.contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.center-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px var(--gutter); }
.center-page .mark { width: 64px; height: 64px; margin: 0 auto 24px; }
.center-page .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.auth { max-width: 440px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter); }
.auth .head { text-align: center; margin-bottom: 28px; }
.auth .head img { width: 56px; height: 56px; margin: 0 auto 18px; }
.auth .head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 400; color: var(--green); line-height: 1.1; }
.auth .head p { color: var(--muted); margin-top: 8px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth .switch { text-align: center; margin-top: 24px; color: var(--muted); }

.auth-split { max-width: 1100px; margin: clamp(24px, 5vw, 64px) auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.auth-brand { background: var(--green); color: var(--cream); border-radius: 14px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 40px; position: sticky; top: 110px; min-height: 520px; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: url("../img/juhapura-mark-gold.245299616dfb.svg") no-repeat center / contain; opacity: .12; pointer-events: none; }
.auth-brand .logo { height: 56px; width: auto; align-self: flex-start; }
.auth-brand .pitch { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-brand .eyebrow { color: var(--accent); margin: 0; }
.auth-brand h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; line-height: 1.1; color: var(--cream); }
.auth-brand ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: rgba(244, 241, 234, .82); }
.auth-brand li { display: flex; gap: 12px; align-items: baseline; }
.auth-brand li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.auth-brand .foot { font-size: 14px; color: rgba(244, 241, 234, .6); }
.auth-main { display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; justify-self: center; padding: clamp(8px, 2vw, 24px) 0; }
.auth-main .head { margin-bottom: 24px; }
.auth-main .head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 400; color: var(--green); line-height: 1.1; }
.auth-main .head p { color: var(--muted); margin-top: 8px; }
.auth-main form { display: flex; flex-direction: column; gap: 16px; }
.auth-main .switch { text-align: center; margin-top: 24px; color: var(--muted); }
@media (max-width: 859px) {
  .auth-split { grid-template-columns: 1fr; gap: 28px; }
  .auth-brand { gap: 16px; padding: 24px; position: relative; top: auto; min-height: 0; }
  .auth-brand .logo, .auth-brand ul, .auth-brand .foot { display: none; }
  .auth-brand h2 { font-size: 26px; }
  .auth-brand::after { width: 160px; height: 160px; right: -40px; bottom: -50px; }
}
.article { margin-top: 28px; font-size: 18px; color: var(--ink-2); line-height: 1.75; overflow-wrap: anywhere; }
.article p { margin-bottom: 1.15em; }

/* ── Nikah ───────────────────────────────────────────── */
.nk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.nk-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.nk-card .who { display: flex; gap: 16px; align-items: center; }
.nk-card .name { font-size: 21px; font-weight: 500; color: var(--green); line-height: 1.2; }
.nk-card .name:hover { color: var(--accent); }
.nk-card .sub { font-size: 14px; color: var(--muted); }
.nk-card .rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 15px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.nk-card .rows span:nth-child(odd) { color: var(--faint); }
.nk-card .acts { display: flex; gap: 8px; margin-top: auto; }
.nk-card .acts > * { flex: 1; }
.nk-lock { width: 64px; height: 80px; border-radius: 32px 32px 6px 6px; background: var(--line-soft); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--faint); font-size: 18px; overflow: hidden; }
.nk-lock img { width: 100%; height: 100%; object-fit: cover; }
.nk-lock svg, .nk-photo svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nk-lock.sm { width: 56px; height: 70px; border-radius: 28px 28px 6px 6px; color: var(--green); }
.nk-lock.on { background: var(--sage-1); }
.verified { font-size: 13px; color: var(--ok); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.btn-sent { background: #E5F0E8; color: var(--ok); border: 1px solid var(--ok); }
.nk-photo { aspect-ratio: 4 / 5; border-radius: 160px 160px 12px 12px; background: var(--line-soft); border: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; color: var(--muted); overflow: hidden; position: relative; }
.nk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.nk-thumbs img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 36px 36px 6px 6px; width: 100%; }
.nk-rows > div { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; overflow-wrap: anywhere; }
.nk-rows > div > span:first-child { color: var(--faint); }
.nk-feature { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.nk-feature:hover { border-color: var(--accent); color: var(--ink); }
.nk-feature.dark { background: var(--green); border-color: var(--green); color: var(--cream); }
.nk-feature.dark:hover { background: var(--green-dark); color: var(--cream); }
.nk-feature .quote { font-size: 26px; line-height: 1.2; color: var(--green); }
.nk-feature.dark .quote { color: var(--cream); }
.nk-feature.dark .label { color: var(--accent-on-dark); }
.nk-feature .more { font-size: 15px; color: var(--muted); margin-top: 6px; }
.nk-feature.dark .more { color: #C5CFC8; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 16px; }
.how .n { font-size: 28px; font-weight: 300; color: var(--accent); }
.how .t { font-size: 19px; font-weight: 500; color: var(--green); margin-top: 4px; }
.how p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.stepbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 28px; }
.stepbar button { display: flex; flex-direction: column; gap: 8px; background: none; border: none; padding: 0; text-align: left; font-size: 14px; color: var(--faint); cursor: pointer; }
.stepbar button::before { content: ''; height: 4px; border-radius: 2px; background: var(--line); display: block; }
.stepbar button.done::before, .stepbar button.is-on::before { background: var(--green); }
.stepbar button.is-on { color: var(--green); }
.stepbar button.has-errors { color: var(--bad); }
@media (max-width: 640px) { .stepbar button span { display: none; } }
.wizard [data-step][hidden] { display: none; }
.wizard-step { border: 0; display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.wizard-step .h3 { font-size: 26px; font-weight: 400; }
.wizard-step > .muted { margin-top: -8px; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 20px; padding-bottom: clamp(56px, 8vw, 96px); }
.submit-preview { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.submit-preview .card .media .placeholder { font-size: 15px; }
.review { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 8px 20px; font-size: 16px; }
.review .label { grid-column: 1 / -1; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.review .label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.review dt { color: var(--muted); }
.review dd { color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 899px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-preview { position: static; max-width: 420px; }
}
.wizard .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.wizard .nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.radio-cards > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.radio-cards label { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--paper); cursor: pointer; font-size: 17px; font-weight: 500; color: var(--green); }
.radio-cards label:has(input:checked) { border-color: var(--green); background: var(--cream); }
.radio-cards input { margin-top: 5px; accent-color: var(--green); }
.toggle-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--green); flex-shrink: 0; }
.inbox-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.inbox-tabs a { border-bottom: 2px solid transparent; padding: 14px 16px; font-size: 16px; color: var(--muted); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.inbox-tabs a.is-on { border-color: var(--accent); color: var(--green); }
.inbox-tabs .n { font-size: 13px; background: var(--line-soft); color: var(--ink-2); border-radius: 99px; padding: 1px 8px; }
.inbox-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.unlocked-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.kicker-ok { font-size: 12px; letter-spacing: .22em; color: var(--ok); }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.story .art { aspect-ratio: 4 / 3; border-radius: 200px 200px 12px 12px; overflow: hidden; background: var(--line-soft); display: flex; align-items: center; justify-content: center; }
.story .art img { width: 100%; height: 100%; object-fit: cover; }
.story .art .mark { width: 72px; opacity: .5; }
.story:nth-child(even) .art { order: 2; }
.story h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; color: var(--green); margin-top: 8px; line-height: 1.1; }
.story blockquote { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink); margin-top: 18px; line-height: 1.45; }
.checklist label { display: flex; gap: 12px; align-items: center; border-top: 1px solid rgba(244, 241, 234, .16); padding: 11px 0; cursor: pointer; font-size: 15px; }
.checklist input { width: 18px; height: 18px; accent-color: var(--accent-on-dark); flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: #AEBBB2; }
.status-pill { font-size: 12px; letter-spacing: .12em; padding: 5px 10px; border-radius: 4px; background: var(--green); color: var(--cream); text-transform: uppercase; }
.status-pill.pending { background: #F3E7C8; color: #6B4F12; }
.status-pill.rejected { background: #F4DDD8; color: var(--bad); }
.status-pill.paused { background: var(--line-soft); color: var(--ink-2); }
/* Ramadan timetable (/ramadan) */
.rmd {
  --rmd-bg: var(--cream); --rmd-sage-1: var(--sage-1); --rmd-sage-2: var(--sage-2); --rmd-sage-3: var(--sage-3);
  --rmd-paper: var(--paper); --rmd-tint: var(--sage-tint); --rmd-text-2: var(--accent-dark);
  background: var(--rmd-bg); color: var(--ink);
}
.rmd ::selection { background: var(--rmd-sage-1); color: var(--green); }
.rmd [lang="gu"] { font-family: var(--gu); }
.rmd [lang="hi"] { font-family: 'Noto Sans Devanagari', 'Jost', sans-serif; }
.rmd a:focus-visible, .rmd .btn:focus-visible { outline: 2px solid var(--rmd-sage-3); outline-offset: 3px; }

.ramadan { padding-top: 28px; padding-bottom: clamp(56px, 7vw, 96px); }
.ramadan-head { margin-top: 24px; max-width: 820px; }
.ramadan-sub { margin-top: 14px; font-size: 18px; color: var(--rmd-text-2); }
.ramadan-missing { margin-top: 24px; }
.ramadan-layout { display: grid; gap: 36px; margin-top: clamp(32px, 4vw, 52px); align-items: start; }
@media (min-width: 960px) {
  .ramadan-layout { grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .glance { position: sticky; top: 108px; }
}

.glance { display: grid; gap: 22px; }
.glance-panel { background: var(--rmd-sage-1); border-radius: 14px; padding: 22px 24px 24px; }
.glance-when { font-size: 15px; font-weight: 500; color: var(--green); }
.glance-times { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border-top: 1px solid var(--rmd-sage-2); }
.glance-times > div { padding-top: 14px; }
.glance-times > div + div { padding-left: 20px; border-left: 1px solid var(--rmd-sage-2); }
.glance-times dt { font-size: 14px; color: var(--rmd-text-2); }
.glance-times dd { margin: 4px 0 0; font-size: clamp(30px, 2.7vw, 35px); line-height: 1.05; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glance-range { font-size: 15px; color: var(--rmd-text-2); }
.glance-downloads { display: grid; gap: 10px; justify-items: start; }
.glance-h { font-size: 18px; font-weight: 500; color: var(--green); margin-bottom: 2px; }
.rmd .download { justify-content: space-between; background: var(--rmd-paper); border-color: var(--rmd-sage-2); }
.rmd .download:hover { background: var(--rmd-tint); border-color: var(--rmd-sage-3); color: var(--green); }
.rmd .download .muted { color: var(--rmd-text-2); }
.rmd .link-line.subtle { color: var(--rmd-text-2); border-color: var(--rmd-sage-2); }

.timetable-wrap { overflow-x: auto; border: 1px solid var(--rmd-sage-2); border-radius: 14px; background: var(--rmd-paper); }
.timetable { width: 100%; border-collapse: collapse; font-size: 16px; }
.timetable th, .timetable td { padding: 10px 16px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--rmd-sage-2) 45%, transparent); white-space: nowrap; }
.timetable thead th { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rmd-text-2); background: var(--rmd-paper); border-bottom-color: var(--rmd-sage-2); }
.timetable td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.timetable td.key { color: var(--green); font-weight: 500; }
.timetable td.col-fajr { color: var(--rmd-text-2); }
.timetable tr.ashra th { background: var(--rmd-tint); padding-top: 12px; padding-bottom: 12px; font-size: 15px; font-weight: 500; color: var(--green); border-bottom-color: var(--rmd-sage-2); }
.timetable tbody + tbody tr.ashra th { border-top: 1px solid var(--rmd-sage-2); }
.timetable tr.ashra span { color: var(--rmd-text-2); font-weight: 400; margin-left: 8px; }
.timetable tr.is-today td { background: var(--rmd-sage-1); color: var(--green); font-weight: 500; }
.timetable tbody:last-of-type tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .timetable th, .timetable td { padding: 9px 10px; font-size: 15px; } .timetable .col-fajr { display: none; } }

.rmd-duas { background: var(--rmd-tint); border-top: 1px solid var(--rmd-sage-2); border-bottom: 1px solid var(--rmd-sage-2); }
.duas { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.duas-head { max-width: 720px; }
.duas-head .lead { margin-top: 14px; max-width: 620px; color: var(--rmd-text-2); }
.duas-head .lead a { border-bottom: 1px solid var(--rmd-sage-3); }
.dua-list { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; gap: clamp(28px, 3.5vw, 40px); }
.dua { display: grid; gap: 14px; }
.dua-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.dua-title { font-size: 22px; font-weight: 400; color: var(--green); }
.dua-source { font-size: 13px; color: var(--rmd-text-2); }
.dua-arabic { font-family: 'Noto Naskh Arabic', serif; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.9; color: var(--ink); text-align: center; background: var(--rmd-bg); border: 1px solid var(--rmd-sage-2); border-radius: 12px; padding: clamp(14px, 2vw, 22px) clamp(16px, 3vw, 36px); text-wrap: balance; }
.dua-langs { display: grid; gap: 18px 48px; padding: 4px 4px 0; }
@media (min-width: 760px) { .dua-langs { grid-template-columns: 1fr 1fr; } }
.dua-when { font-size: 14px; font-weight: 500; color: var(--rmd-text-2); }
.dua-say { font-size: 17px; color: var(--ink); margin-top: 4px; }
.dua-meaning { font-size: 16px; color: var(--ink-2); margin-top: 6px; }

.rmd-notes a { border-bottom: 1px solid var(--rmd-sage-3); }

/* Home: About Juhapura */
.about-area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-area .gu-line { font-family: var(--gu); font-size: 19px; color: var(--muted); margin: 6px 0 18px; }
.about-area .gu-line span { font-family: 'Noto Sans Devanagari', sans-serif; }
.area-facts { margin: 0; border-top: 1px solid var(--line); }
.area-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-facts dt { color: var(--faint); font-size: 15px; padding-top: 2px; }
.area-facts dd { margin: 0; color: var(--ink); }
.area-facts dd a { color: var(--green); text-decoration: underline; text-decoration-color: var(--sage-2); text-underline-offset: 3px; }
@media (max-width: 860px) { .about-area { grid-template-columns: 1fr; } .area-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ── Forms: shared polish ───────────────────────────────── */
:where(form) :where(input[type=checkbox], input[type=radio]) { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.input { scroll-margin-top: 120px; }
.input[aria-invalid=true] { border-color: var(--bad); background: #FBF1EE; }
.input::placeholder { color: var(--faint); opacity: 1; }
.error-summary { border: 1px solid var(--bad); background: #FBF1EE; color: var(--bad); border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: 16px; scroll-margin-top: 120px; }
.error-summary:focus { outline: 2px solid var(--bad); outline-offset: 2px; }
.error-summary ul { list-style: none; margin-top: 6px; font-size: 15px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check-row input { margin-top: 2px; }
.check-list { border: 0; padding: 0; }
.check-list legend { font-size: 15px; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.check-list > div { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); cursor: pointer; }
.check-list label:has(input:checked) { border-color: var(--green); background: var(--cream); }
.sectioned-form { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: clamp(20px, 3vw, 32px); margin: 36px 0 72px; }
.form-section { border: 0; padding: 0; margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; }
.form-section legend { font-size: 24px; font-weight: 400; color: var(--green); padding: 0; margin-bottom: 14px; }
.form-section > .muted { margin-top: -8px; }
.sectioned-form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 18px; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .muted { font-size: 15px; }
.btn[aria-busy=true] { opacity: .7; cursor: progress; }
.password-wrap { position: relative; display: block; }
.password-wrap .input { padding-right: 76px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--green); cursor: pointer; }
.password-toggle:hover { background: var(--sage-tint); }
.auth-brand .eyebrow { color: var(--sage-1); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 8px; padding-bottom: 8px; }
.error-summary a { color: var(--bad); text-decoration: underline; text-underline-offset: 3px; }
.prayer .prayer-note { font-size: 14px; color: #D3DECF; margin-top: 12px; }
.cat-prayer { margin-top: 24px; }
