/* Visual revamp for the non-quiz content pages (about, contact, privacy, ksa,
   formulas, faq) to match the new index.html look. Loaded AFTER quiz.css and
   content.css. Deliberately NOT loaded on the 13 quiz subject pages - those
   keep their existing (already-tuned) shell untouched.

   Strategy: content.css already styles every class these pages use, driven
   entirely by the :root custom properties defined in quiz.css. So instead of
   rewriting that CSS, this file (a) re-points those tokens at the new
   palette/radius/shadow, (b) undoes the app-shell's single-viewport flex/
   overflow-hidden body (built for the quiz screen, wrong for a scrolling
   content page), and (c) adds the new nav/footer chrome + a few elevation
   touches that content.css never had. */

:root {
    --surface-0:    #ffffff;
    --surface-1:    #f6f8fb;
    --surface-2:    #eef2f9;
    --line:         #e3e8f0;
    --line-subtle:  #ecf0f6;
    --line-strong:  #94a3b8;
    --ink-900:      #0d1b2a;
    --ink-700:      #334155;
    --ink-500:      #64748b;
    --accent:       #2563eb;
    --accent-tint:  #eef4ff;
    --accent-100:   #dbe7fd;
    --accent-600:   #1d4ed8;
    --accent-700:   #1d4ed8;
    --chrome-900:   #0d1b2a;
    --chrome-900-hover: #1d2f45;
    --shadow-card:  0 1px 2px rgba(13,27,42,.04), 0 12px 32px -16px rgba(13,27,42,.12);
    --correct:      #0f9d6e;
    --correct-tint: #e6f7f0;
    --wrong:        #dc2626;
    --wrong-tint:   #fef2f2;
    --flag:         #b45309;
    --flag-tint:    #fef3e0;
    --radius-sm:    10px;
    --radius:       16px;
}

/* ── Undo the quiz app-shell's single-viewport body (no #sidebar here) ──── */
html, body { height: auto; }
body { display: block; height: auto; overflow: visible; background: var(--surface-0); }

/* ── Shared page shell ────────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 44px 28px 96px; display: flex; align-items: flex-start; gap: 32px; }
.page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.content-inner { margin: 0 auto; } /* centers single-column pages (contact, privacy) that have no #refArea sibling */
@media (max-width: 900px) { .page-wrap { padding: 32px 20px 72px; } }

/* ── Top nav (matches index.html) ────────────────────────────────────── */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--ink-900); font-family: var(--font-ui); }
.brand-tld { color: var(--accent); font-weight: 600; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { font-size: 14.5px; font-weight: 500; color: var(--ink-700); text-decoration: none; }
nav.links a:hover, nav.links a.current { color: var(--accent); }
@media (max-width: 860px) { nav.links { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 999px; padding: 11px 20px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; font-family: var(--font-ui); border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.55); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-900); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer (matches index.html) ─────────────────────────────────────── */
footer { background: var(--ink-900); color: rgba(255,255,255,.65); padding: 64px 0 28px; font-size: 14px; font-family: var(--font-ui); margin-top: 40px; }
footer .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
footer .foot-brand { color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
footer .foot-grid p { max-width: 280px; line-height: 1.6; margin: 0; }
footer .foot-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
footer .foot-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 10px; }
footer .foot-col a:hover { color: #fff; }
footer .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 13px; }
@media (max-width: 860px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ── Page hero: give it some visual weight instead of a flat bordered box ── */
.page-hero { background: linear-gradient(160deg, var(--accent-tint), var(--surface-0) 60%); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-7) var(--sp-6); box-shadow: var(--shadow-card); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }

/* ── Elevation pass: these were flat bordered boxes before, now lifted ── */
.content-card, .stat-card, .faq-card, .toc-card, .subject-section,
.email-card, .reasons, .privacy-section, .banner, .ref-panel, .quick-links,
.subjects-panel, .note, .pillar {
    box-shadow: var(--shadow-card);
}

/* ── Fade-up entrance (content.css's version is quiz-only; redeclare so it
   keeps working once this page no longer loads inside the quiz shell) ─── */
@keyframes revampFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-up { animation: revampFadeUp .35s ease forwards; }
