/* Fajr Tax & Advisory — site styles. Mobile-first. */
@font-face { font-family: "Lora"; src: url("/fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --navy: #0B1F35;
  --navy-2: #17334D;
  --navy-deep: #07172A;
  --gold: #D8B878;
  --gold-soft: #E9D5A8;
  --gold-ink: #86672D;          /* gold for text on light backgrounds (AA) */
  --ivory: #FAF7F0;
  --ivory-2: #F3EEE3;
  --gray: #EEF0F3;
  --line: #E4DFD3;
  --line-dark: rgba(216, 184, 120, .22);
  --ink: #142233;
  --body: #344255;
  --muted: #5F6B7A;
  --on-navy: #E8ECF1;
  --on-navy-muted: #AEB9C7;
  --danger: #9B2C2C;
  --ok: #2F6B4F;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 31, 53, .05), 0 8px 28px rgba(11, 31, 53, .07);
  --shadow-lift: 0 2px 4px rgba(11, 31, 53, .06), 0 16px 40px rgba(11, 31, 53, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--body); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .96rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); box-shadow: 0 8px 24px rgba(216, 184, 120, .28); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; box-shadow: 0 8px 24px rgba(11, 31, 53, .22); }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgba(232, 236, 241, .35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--navy); border-color: rgba(11, 31, 53, .25); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: rgba(155, 44, 44, .4); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row.center { justify-content: center; }
.text-link { font-weight: 600; text-decoration: none; color: var(--navy-2); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 53, .97); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav-desktop { display: none; }
.nav-link { color: var(--on-navy); text-decoration: none; font-size: .93rem; font-weight: 500; letter-spacing: .01em; padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-link:hover, .nav-link.is-current { color: var(--gold); border-bottom-color: var(--gold); }
.nav-mobile summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 5px; }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--gold); transition: transform .3s var(--ease), opacity .2s; }
.nav-mobile[open] .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile[open] .burger i:nth-child(2) { opacity: 0; }
.nav-mobile[open] .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-sheet { position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); border-bottom: 1px solid var(--line-dark); padding: 12px var(--gutter) 24px; display: grid; gap: 4px; box-shadow: 0 24px 40px rgba(0, 0, 0, .25); animation: sheet .3s var(--ease); }
.nav-sheet .nav-link { font-size: 1.12rem; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav-sheet .btn { margin-top: 14px; }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 960px) {
  .nav-desktop { display: flex; align-items: center; gap: 30px; }
  .nav-mobile { display: none; }
  .header-inner { height: 80px; }
  .brand img { height: 56px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--on-navy); text-align: center; padding: 72px 0 0; }
.hero-inner { position: relative; z-index: 1; padding-bottom: 120px; max-width: 900px; }
.eyebrow { font: 600 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.hero .eyebrow, .section-navy .eyebrow, .page-hero-navy .eyebrow { color: var(--gold); }
.hero-title { color: #fff; font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.08; margin-bottom: .45em; }
.hero-title em { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-lede { font-size: clamp(1.03rem, 2.6vw, 1.22rem); color: var(--on-navy-muted); max-width: 640px; margin: 0 auto 30px; }
.hero .btn-row { justify-content: center; }
.hero .btn-row .btn { flex: 1 1 220px; max-width: 280px; }
.hero-horizon { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: center; color: var(--gold); pointer-events: none; }
.hero-sun { width: min(300px, 74vw); height: auto; opacity: .85; position: relative; bottom: 6px; }
.sunrise-rays line { opacity: .85; }
.hero-sun .sunrise-rays { animation: rays 1.6s var(--ease) both .3s; transform-origin: 100px 70px; }
.hero-sun .sunrise-sun { animation: rise 1.4s var(--ease) both .1s; }
@keyframes rays { from { opacity: 0; transform: scale(.85); } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@media (min-width: 760px) { .hero { padding-top: 110px; } .hero-inner { padding-bottom: 150px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0 64px; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy .lede { color: var(--on-navy-muted); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.lede { font-size: 1.1rem; color: var(--muted); }
@media (min-width: 760px) { .section { padding: 96px 0; } .section-tight { padding: 56px 0 96px; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-decoration: none; color: var(--body); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; opacity: .8; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(216, 184, 120, .7); color: var(--body); }
.card h3 { margin: 14px 0 10px; }
.card p { flex: 1; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ivory); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-more { font-weight: 600; font-size: .92rem; color: var(--navy-2); }
.card-link:hover .card-more { color: var(--gold-ink); }
.card-dark { background: var(--navy-2); border-color: var(--line-dark); color: var(--on-navy); box-shadow: none; }
.card-dark h4 { color: #fff; margin: 12px 0 16px; font-size: 1.15rem; flex: 1; }
.card-dark .card-more { color: var(--gold); }
.card-dark:hover { color: var(--on-navy); border-color: var(--gold); }

/* ---------- Split / pillars ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 72px; } .split-center { align-items: center; } }
.pillars, .principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pillars li, .principles li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.pillars li:last-child, .principles li:last-child { border-bottom: 1px solid var(--line); }
.pillars h3 { font-size: 1.18rem; margin-bottom: 4px; }
.pillars p, .principles p { margin: 0; color: var(--muted); }
.pillar-n { font: 500 1.05rem/1.6 var(--serif); color: var(--gold-ink); font-style: italic; }
.principles li { padding: 28px 0; }
.principles h2 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); margin-bottom: 8px; }

/* ---------- Ask feature (home) ---------- */
.ask-feature { position: relative; overflow: hidden; }
.ask-feature::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid var(--line-dark); pointer-events: none; }
.steps-mini { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.steps-mini li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 500 1.1rem var(--serif); }
.steps-mini b { color: #fff; font-weight: 600; }
.steps-mini span { color: var(--on-navy-muted); font-size: .95rem; }
.latest-qa { margin-top: 56px; }
.latest-h { font-size: 1.1rem; color: var(--gold) !important; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--ivory-2); color: var(--gold-ink); margin-right: 6px; }
.card-dark .tag { background: rgba(216, 184, 120, .14); color: var(--gold); align-self: flex-start; }
.tag-soft { background: var(--gray); color: var(--muted); }
.tag-warn { background: #FBEBDD; color: #8A4B14; }

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--ivory); }
.cta-inner { display: flex; flex-direction: column; align-items: center; max-width: 720px; }
.cta-sun { width: 150px; color: var(--gold); margin-bottom: 14px; }
.cta .lede { max-width: 520px; }

/* ---------- Page heroes ---------- */
.page-hero { background: var(--ivory); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; }
.page-hero .lede { max-width: 680px; margin-bottom: 0; }
.page-hero-sm { padding: 44px 0 32px; }
.page-hero-navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); border-bottom: 0; }
.page-hero-navy h1 { color: #fff; }
.page-hero-navy .lede { color: var(--on-navy-muted); }
@media (min-width: 760px) { .page-hero { padding: 88px 0 64px; } .page-hero-sm { padding: 64px 0 44px; } }

/* ---------- Services ---------- */
.services-wrap { padding-top: 24px; padding-bottom: 40px; }
.service { padding: 44px 0; border-bottom: 1px solid var(--line); display: grid; gap: 20px; scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service-head p:last-child { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--gray); color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 1.6px solid var(--gold-ink); border-bottom: 1.6px solid var(--gold-ink); transform: rotate(-45deg); }
.fine { font-size: .86rem; color: var(--muted); line-height: 1.55; }
@media (min-width: 900px) { .service { grid-template-columns: 1fr 1fr; gap: 64px; padding: 72px 0; } .service .fine { grid-column: 2; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; counter-reset: t; padding: 0; margin: 28px 0 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 52px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 500 .95rem var(--serif); }
.timeline li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
input, select, textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #CDD3DB; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(216, 184, 120, .35); }
.field-help { font-size: .82rem; color: var(--muted); margin: 0; text-align: right; }
.field-help.is-near { color: #8A4B14; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: .94rem; color: var(--body); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--navy); }
.check-sm { font-size: .85rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warn { margin: 0; font-size: .9rem; padding: 12px 14px; background: #FCF6E8; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; color: #5B4A22; }
.notice { font-size: .92rem; padding: 12px 14px; background: var(--ivory-2); border-radius: 8px; color: var(--body); }
.error-box { background: #FBEEEE; border: 1px solid #EBC7C7; color: #7A2121; border-radius: 10px; padding: 14px 16px; font-size: .94rem; }
.error-box ul { margin: 6px 0 0; padding-left: 20px; }
.error-box p { margin: 0; }
.success { background: #EFF6F2; border: 1px solid #C6DED0; border-radius: 12px; padding: 22px; }
.success h3 { color: var(--ok); }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-inline input, .form-inline select { width: auto; flex: 1 1 180px; }

/* ---------- Panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-raised { box-shadow: var(--shadow-lift); border-color: transparent; }
.panel h2 { font-size: 1.45rem; }
.panel-title { margin-bottom: 18px; }
@media (min-width: 760px) { .panel { padding: 36px; } }

/* ---------- Ask page ---------- */
.ask-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .ask-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; } .ask-grid .panel { margin-top: -96px; position: relative; } }
.h-small { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 500 1rem var(--serif); }
.steps b { color: var(--ink); }
.steps span { color: var(--muted); font-size: .95rem; }
.note-card { background: var(--ivory); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.note-card h3 { font-size: 1.1rem; }
.note-card ul { margin: 0; padding-left: 18px; font-size: .94rem; color: var(--body); display: grid; gap: 8px; }

/* Confirmation */
.confirm { text-align: center; }
.confirm-sun { width: 110px; color: var(--gold); margin: 0 auto 10px; }
.confirm .lede { max-width: 540px; margin: 0 auto 26px; }
.linkbox { display: grid; gap: 10px; margin: 0 auto 14px; max-width: 640px; }
.linkbox input { font-size: .86rem; background: var(--ivory); text-align: center; }
@media (min-width: 640px) { .linkbox { grid-template-columns: 1fr auto; } .linkbox input { text-align: left; } }
.ref-line { color: var(--muted); }
.tips { text-align: left; max-width: 560px; margin: 20px auto 26px; padding-left: 20px; color: var(--body); display: grid; gap: 6px; font-size: .95rem; }
.confirm .btn-row { justify-content: center; }

/* Status */
.loading { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 30px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
@media (min-width: 760px) { .status-card { padding: 36px; } }
.status-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.status-head .eyebrow { margin-bottom: 4px; }
.status-ref { font-size: 1.15rem; color: var(--ink); margin: 0; }
.status-pill { display: inline-block; font: 600 .78rem/1 var(--sans); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.status-submitted { background: var(--gray); color: #3D4A5A; }
.status-under_review { background: #FCF2DC; color: #7A5715; }
.status-answered { background: #E6F2EB; color: #24573E; }
.status-published { background: var(--navy); color: var(--gold); }
.status-closed { background: #F1ECEC; color: #6B4545; }
.progress { list-style: none; padding: 0; margin: 22px 0 10px; display: flex; gap: 6px; }
.progress li { flex: 1; font-size: .72rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--gray); line-height: 1.3; }
.progress li.done { border-top-color: var(--gold); color: var(--ink); }
.progress li.current { font-weight: 600; }
.status-note { color: var(--muted); }
.qbox, .abox { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.qbox-public { border-top: 0; padding: 22px; background: var(--ivory); border-radius: var(--radius); margin-top: 0; }
.qtext { white-space: pre-wrap; color: var(--ink); font-size: 1.04rem; overflow-wrap: anywhere; }
.qbox-public .qtext { font-family: var(--serif); font-size: 1.15rem; font-style: italic; margin: 0; }
.meta { font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.pub-notice { margin-top: 22px; padding: 18px 20px; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.pub-notice p { margin: 0 0 6px; }
.pub-notice .text-link { color: var(--gold); }

/* Prose */
.prose { color: var(--body); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; }
.abox .prose { font-size: 1.04rem; }

/* Library */
.search { display: flex; gap: 8px; margin-top: 26px; max-width: 620px; }
.search input { flex: 1; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1) 10px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); font-size: .9rem; font-weight: 500; background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.result-count { font-size: .9rem; color: var(--muted); }
.qa-list { display: grid; gap: 14px; }
@media (min-width: 760px) { .qa-list { grid-template-columns: 1fr 1fr; gap: 20px; } .qa-list-compact { grid-template-columns: 1fr; } }
.qa-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--body); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(216, 184, 120, .7); color: var(--body); }
.qa-card h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.qa-card p { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, .6); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: .94rem; color: var(--muted); }
.pager a { font-weight: 600; text-decoration: none; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .88rem; color: var(--muted); margin: 0; }
.meta-line .tag { margin: 0; }
.disclaimer-box { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.cta-strip { display: grid; gap: 14px; background: var(--ivory); border-radius: var(--radius); padding: 22px; margin: 30px 0; }
.cta-strip p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .cta-strip { grid-template-columns: 1fr auto; align-items: center; } }
.related-h { margin-top: 10px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.booking-frame { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.booking-frame iframe { width: 100%; height: 640px; border: 0; display: block; }
.contact-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.meta-label { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 360px; }
.footer-h { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; line-height: 1.6; }
.footer-legal p:last-child { margin: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* Reveal animation (only when JS is running and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.admin { background: #F6F7F9; }
.admin-bar { background: var(--navy); display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); gap: 12px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.admin-brand img { height: 32px; width: auto; }
.admin-logout { display: flex; gap: 10px; align-items: center; }
.admin-user { color: var(--on-navy-muted); font-size: .86rem; }
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; padding: 0 var(--gutter); }
.admin-nav a { flex: none; padding: 14px 12px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; }
.admin-nav a.is-active, .admin-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.admin-main { max-width: 1160px; margin: 0 auto; padding: 28px var(--gutter) 80px; display: grid; gap: 20px; align-content: start; }
.admin-main h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0; }
.admin-main .panel { padding: 22px; }
.admin-cols { display: grid; gap: 20px; }
@media (min-width: 960px) { .admin-cols { grid-template-columns: 1fr 1fr; } .admin-cols-single { grid-template-columns: 1fr; } }
.admin-auth { max-width: 420px; margin: 8vh auto 0; width: 100%; }
.admin-auth h1 { font-size: 1.6rem; margin-bottom: 18px; }
.panel-danger { border-color: #EBC7C7; }
.panel-private { background: #FFFBF4; border-color: #F0DDB8; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok { background: #E6F2EB; color: #24573E; }
.flash-warn { background: #FCF2DC; color: #7A5715; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--muted); font-size: .86rem; display: grid; gap: 4px; }
a.stat:hover { border-color: var(--gold); }
.stat-n { font: 500 1.9rem/1.1 var(--serif); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters select, .filters input { width: auto; flex: 1 1 160px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.filters select { background-position: calc(100% - 20px) 18px, calc(100% - 15px) 18px; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFBFC; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--gray); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-hover tbody tr:hover { background: #FBFAF6; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .clip { max-width: 420px; }
.tbl a { text-decoration: none; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { border-top: 1px solid var(--gray); }
.admin-list a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-size: .92rem; }
.admin-list .muted { font-size: .86rem; }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cat-row input[name="name"] { flex: 1 1 180px; width: auto; min-height: 40px; padding: 8px 12px; }
.w-num { width: 76px !important; min-height: 40px; padding: 8px 10px; }
.inquiry.is-handled { opacity: .65; }
.setup-steps { padding-left: 20px; display: grid; gap: 10px; }
.setup-key { background: var(--ivory); padding: 4px 8px; border-radius: 6px; word-break: break-all; font-size: 1.05rem; letter-spacing: .05em; }
.break { word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Utilities and fixes */
[hidden] { display: none !important; }
.status-card:focus { outline: none; }
.panel .h-small, .status-card .h-small, .admin-main .h-small { font-size: .8rem; }
.admin-main .panel h2.h-small { margin-bottom: 12px; }
.status-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; } .status-foot .fine { margin: 0; }
.panel .error-box { margin-bottom: 16px; }
.prose p + ul { margin-top: -.4em; }
