/* ============================================================
   Visit Ebonyi — Design System
   ------------------------------------------------------------
   Tailwind (via CDN) provides the utility layer; this file owns
   the design tokens, the component layer, motion and a11y polish.

   Structure:
     1. Tokens (:root)            6. Cards
     2. Base / reset              7. Forms
     3. Accessibility             8. Feedback (toast/alert/empty)
     4. Typography helpers        9. Motion & effects
     5. Buttons / chips          10. Section-specific (hero/reader/prose)

   RULE: every colour comes from a token below. No hardcoded hex in views.
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    /* --- Brand palette (Phase 2) --- */
    --forest:      #0F5132;
    --forest-50:   #E9F1EC;
    --forest-100:  #C6DDD0;
    --forest-200:  #9FC6B0;
    --forest-300:  #6BAA8C;
    --forest-400:  #3C8E68;
    --forest-500:  #1E7A46;
    --forest-600:  #15693B;
    --forest-700:  #0F5132;
    --forest-800:  #0B3D26;
    --forest-900:  #082B1B;

    --emerald:     #1E7A46;
    --emerald-500: #1E7A46;   /* legacy alias */
    --emerald-600: #15693B;   /* legacy alias */
    --emerald-2:   #26935C;
    --leaf:        #1E7A46;
    --moss:        #52796F;

    --gold:        #D4A017;
    --gold-400:    #E3B84B;
    --gold-500:    #D4A017;
    --gold-600:    #B8860B;

    --sand:        #F7F3EB;
    --cream:       #FFFDF8;
    --ink:         #14241D;
    --charcoal:    #1F2937;
    --clay:        #B45309;
    --white:       #FFFFFF;

    /* --- Semantic roles --- */
    --color-bg:       var(--sand);
    --color-surface:  var(--white);
    --color-text:     var(--ink);
    --color-muted:    #6B7280;
    --color-border:   #E5E7EB;
    --color-primary:  var(--forest);
    --color-accent:   var(--gold);
    --color-success:  var(--emerald);
    --color-danger:   #DC2626;
    --color-info:     var(--gold);

    /* --- Spacing scale (8px base) --- */
    --space-1:  0.5rem;   /*  8px */
    --space-2:  1rem;     /* 16px */
    --space-3:  1.5rem;   /* 24px */
    --space-4:  2rem;     /* 32px */
    --space-5:  2.5rem;   /* 40px */
    --space-6:  3rem;     /* 48px */
    --space-8:  4rem;     /* 64px */
    --space-10: 5rem;     /* 80px */
    --space-12: 6rem;     /* 96px */

    /* --- Radius --- */
    --radius-sm:   0.5rem;
    --radius:      0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-2xl:  2rem;
    --radius-full: 9999px;

    /* --- Shadows --- */
    --shadow-sm:   0 1px 2px rgba(11,58,42,.06);
    --shadow:      0 10px 30px -12px rgba(11,58,42,.22);
    --shadow-soft: 0 18px 40px -18px rgba(11,58,42,.35);
    --shadow-lg:   0 26px 50px -18px rgba(11,58,42,.4);
    --shadow-gold: 0 12px 26px -8px rgba(212,160,23,.55);

    /* --- Typography --- */
    --font-display: "Playfair Display", Georgia, serif;
    --font-body:    Poppins, Inter, system-ui, sans-serif;
    --text-display: clamp(2.75rem, 6vw, 5rem);
    --text-h1:      clamp(2.25rem, 4.5vw, 3.5rem);
    --text-h2:      clamp(1.75rem, 3vw, 2.5rem);
    --text-h3:      clamp(1.3rem, 2vw, 1.75rem);
    --text-body:    1rem;
    --text-small:   0.875rem;
    --text-caption: 0.75rem;
    --leading-tight: 1.1;
    --leading-snug:  1.35;
    --leading-body:  1.7;

    /* --- Motion --- */
    --ease:     cubic-bezier(.22, 1, .36, 1);
    --dur-fast: .2s;
    --dur:      .4s;
    --dur-slow: .7s;

    /* --- Gradients --- */
    --grad-forest:  linear-gradient(135deg, #0B3D26 0%, #0F5132 45%, #1E7A46 100%);
    --grad-gold:    linear-gradient(135deg, #E3B84B 0%, #D4A017 100%);
    --grad-overlay: linear-gradient(to top, rgba(8,43,27,.96) 0%, rgba(8,43,27,.55) 55%, rgba(8,43,27,.25) 100%);
}

/* ============================================================
   2. BASE
   ============================================================ */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

[x-cloak] { display: none !important; }

::selection { background: var(--gold); color: var(--forest-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 8px; border: 2px solid var(--sand); }
::-webkit-scrollbar-track { background: var(--sand); }

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
/* Visible focus ring for keyboard users (mouse clicks stay clean). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip-to-content link (first tab stop). */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 300;
    background: var(--gold); color: var(--forest-900);
    padding: .7rem 1.1rem; font-weight: 600; border-radius: 0 0 .6rem 0;
}
.skip-link:focus { left: 0; }

/* Inline validation: highlight fields flagged server-side (see main.js). */
.field-error {
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .25) !important;
}

/* ============================================================
   4. TYPOGRAPHY HELPERS  (one scale, fluid & responsive)
   ============================================================ */
.t-display { font-family: var(--font-display); font-size: var(--text-display); font-weight: 700; line-height: var(--leading-tight); letter-spacing: -0.02em; }
.t-h1      { font-family: var(--font-display); font-size: var(--text-h1); font-weight: 700; line-height: var(--leading-tight); }
.t-h2      { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 700; line-height: 1.15; }
.t-h3      { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; line-height: var(--leading-snug); }
.t-body    { font-size: var(--text-body); line-height: var(--leading-body); }
.t-small   { font-size: var(--text-small); line-height: var(--leading-snug); }
.t-caption { font-size: var(--text-caption); line-height: 1.3; }
.t-eyebrow { font-size: var(--text-small); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ---------- Gradient helpers ---------- */
.grad-forest { background: var(--grad-forest); }
.grad-gold   { background: var(--grad-gold); }
.text-grad-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-overlay { background: var(--grad-overlay); }

/* ============================================================
   5. BUTTONS & CHIPS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .8rem 1.6rem; border-radius: var(--radius-full);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    white-space: nowrap; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-800); box-shadow: var(--shadow); transform: translateY(-1px); }

/* .btn-gold kept as an alias of the secondary (accent) button. */
.btn-secondary, .btn-gold { background: var(--grad-gold); color: var(--forest-900); }
.btn-secondary:hover, .btn-gold:hover { filter: brightness(1.06); box-shadow: var(--shadow-gold); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }

.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: rgba(15,81,50,.08); }

.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); box-shadow: var(--shadow); }

.btn-icon { padding: 0; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-full); }

/* On dark backgrounds (hero/footer) an outline button needs light borders. */
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-on-dark:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Chips / badges ---------- */
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; line-height: 1;
    padding: .35rem .75rem; border-radius: var(--radius-full);
}
.chip-gold   { background: var(--gold); color: var(--forest-900); }
.chip-forest { background: var(--forest); color: #fff; }
.chip-soft   { background: var(--sand); color: var(--forest); }

/* ---------- Filter pills (category/type filters on listing pages) ---------- */
.filter-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .85rem; line-height: 1; padding: .55rem 1rem;
    border-radius: var(--radius-full); background: #fff;
    border: 1px solid var(--color-border); color: var(--charcoal);
    transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.filter-pill:hover { background: var(--sand); border-color: var(--forest-200); }
.filter-pill.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.filter-pill .count { opacity: .6; }

/* ---------- Primary navigation (header links, triggers, mega menu) ---------- */
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .3rem;
    background: none; border: 0; cursor: pointer; color: inherit;
    font-family: var(--font-body); font-size: .875rem; font-weight: 500; line-height: 1;
    transition: color var(--dur-fast) ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -.45rem; height: 2px; width: 0;
    background: var(--gold); transition: width var(--dur-fast) ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--gold); }
.nav-link .chev { transition: transform var(--dur-fast) ease; }

/* Dropdown / mega-menu panel (light surface below the dark header) */
.nav-panel {
    background: #fff; color: var(--ink);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.mega-eyebrow { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--color-muted); }
.mega-link {
    display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .6rem;
    border-radius: var(--radius); color: var(--ink);
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.mega-link:hover { background: var(--sand); color: var(--forest-800); }
.mega-link .ic { flex: none; color: var(--forest); margin-top: .1rem; }
.mega-link .lbl { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.mega-link .desc { display: block; font-size: .76rem; font-weight: 400; color: var(--color-muted); margin-top: .1rem; }
.mega-feature {
    display: flex; flex-direction: column; justify-content: flex-end;
    border-radius: var(--radius-lg); padding: 1.1rem; color: #fff;
    background: var(--grad-forest); position: relative; overflow: hidden; min-height: 100%;
}
.mega-feature:hover { color: #fff; }
.mega-feature .tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* Mobile nav section label */
.mnav-heading { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.45); padding: .75rem .25rem .25rem; }

/* Context-aware section sidebar links */
.section-nav-link {
    display: block; padding: .6rem .75rem; border-radius: var(--radius);
    font-size: .9rem; color: var(--charcoal);
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.section-nav-link:hover { background: var(--sand); color: var(--forest-800); }
.section-nav-link.is-active { background: var(--forest); color: #fff; font-weight: 600; }

/* Global search */
.search-shell { position: relative; }
.search-input {
    width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-full);
    padding: .75rem 1rem .75rem 2.75rem; background: #fff; color: var(--ink); font-size: .95rem;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.search-input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(30,122,70,.15); }
.search-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 60;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.search-suggest a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; color: var(--ink); }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--sand); }
.search-suggest .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-muted); font-weight: 700; }

/* Header search trigger (icon button in the top bar) */
.icon-btn {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
    color: #fff; background: rgba(255,255,255,.1); transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.icon-btn:hover { background: var(--gold); color: var(--forest-900); }

/* Mobile bottom navigation bar */
.bottom-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px -18px rgba(11,58,42,.5);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    padding: .5rem 0 .55rem; font-size: .66rem; font-weight: 600; color: var(--color-muted);
    background: none; border: 0; cursor: pointer; min-height: 3.5rem;
}
.bottom-nav a.is-active, .bottom-nav a:hover, .bottom-nav button:hover { color: var(--forest); }
.bottom-nav a.is-active svg { color: var(--forest); }

/* Related / cross-link cards row (compact) */
.related-link {
    display: flex; gap: .85rem; align-items: center; padding: .6rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--color-border);
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.related-link:hover { border-color: var(--forest-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-link img, .related-link .ph { width: 3.25rem; height: 3.25rem; border-radius: var(--radius); object-fit: cover; flex: none; background: var(--sand); }

/* Footer social icon buttons */
.social-btn {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.social-btn:hover { background: var(--gold); color: var(--forest-900); transform: translateY(-2px); }

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    background: var(--color-surface); border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ============================================================
   7. FORMS
   ============================================================ */
.form-label { display: block; font-size: .85rem; font-weight: 500; color: var(--charcoal); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: .7rem .9rem; background: #fff; color: var(--ink); font-size: .95rem;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(30,122,70,.15);
}
.form-hint { font-size: .78rem; color: var(--color-muted); margin-top: .35rem; }
.form-error { font-size: .8rem; color: var(--color-danger); margin-top: .35rem; }

/* ---------- Admin forms (legacy aliases, kept in sync with tokens) ---------- */
.admin-label { display: block; font-size: .8rem; font-weight: 500; color: var(--charcoal); margin-bottom: .4rem; }
.admin-input { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .65rem .9rem; outline: none; background: #fff; }
.admin-input:focus { box-shadow: 0 0 0 2px var(--emerald); border-color: transparent; }

/* ============================================================
   8. FEEDBACK  (toast / alert / empty state)
   ============================================================ */
#toasts { position: fixed; top: 88px; right: 20px; z-index: 110; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.toast {
    display: flex; align-items: start; gap: 12px;
    background: #fff; color: var(--ink);
    border-radius: 14px; padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--emerald-500);
    transform: translateX(120%); opacity: 0;
    transition: transform .45s var(--ease), opacity .45s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast.success { border-left-color: var(--emerald-500); }
.toast.error   { border-left-color: var(--color-danger); }
.toast.info    { border-left-color: var(--gold); }
.toast .ico { width: 22px; height: 22px; flex: none; }
.toast .msg { font-size: .9rem; line-height: 1.35; }

.alert { display: flex; gap: .75rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--radius-lg); border-left: 4px solid var(--emerald-500); background: #fff; box-shadow: var(--shadow-sm); font-size: .9rem; }
.alert-success { border-left-color: var(--emerald-500); background: #F0FAF4; }
.alert-error   { border-left-color: var(--color-danger); background: #FEF2F2; }
.alert-info    { border-left-color: var(--gold); background: #FEFBF0; }

.empty-state { display: grid; place-items: center; text-align: center; gap: .75rem; padding: var(--space-8) var(--space-3); color: var(--color-muted); }
.empty-state .icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--forest-50); color: var(--forest); }

/* ============================================================
   9. MOTION & EFFECTS
   ============================================================ */
/* mesh / glow background blobs */
.mesh-bg { position: relative; overflow: hidden; }
.mesh-bg::before, .mesh-bg::after {
    content: ""; position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .5; pointer-events: none;
}
.mesh-bg::before { width: 460px; height: 460px; background: var(--emerald-2); top: -120px; right: -80px; }
.mesh-bg::after  { width: 420px; height: 420px; background: var(--gold); bottom: -140px; left: -60px; opacity: .25; }

/* Hero vignette (centered focus) */
.hero-vignette { background: radial-gradient(ellipse at center, transparent 0%, transparent 42%, rgba(8,43,31,.55) 100%); }

/* Hero (smooth crossfade + Ken Burns) */
.hero-slide { opacity: 0; transition: opacity 1.5s ease-in-out; will-change: opacity; }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.2); } }

/* Page preloader */
#preloader {
    position: fixed; inset: 0; z-index: 200;
    background: var(--grad-forest);
    display: grid; place-items: center;
    transition: opacity .6s ease, visibility .6s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-badge { display: grid; place-items: center; gap: 18px; }
.preloader-badge .preloader-logo { animation: pulse 1.4s ease-in-out infinite; }
.preloader-badge .ring { width: 38px; height: 38px; border-radius: 9999px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }

/* Page fade-in */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.page-in { animation: pageIn .5s ease both; }

/* Skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: #e8e6df; }
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Image fade-in over its skeleton container */
.img-fade { opacity: 0; transition: opacity .6s ease; }
.img-fade.is-loaded { opacity: 1; }

/* Subtle hover-zoom for media (reusable) */
.media-zoom { transition: transform var(--dur-slow) var(--ease); }
.group:hover .media-zoom { transform: scale(1.06); }

/* Top navigation progress bar */
#nprogress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
#nprogress .bar { height: 100%; width: 0; background: var(--grad-gold); box-shadow: 0 0 10px var(--gold); transition: width .25s ease, opacity .4s ease; }

/* ---------- Reduced motion: honour the OS setting (WCAG 2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    .hero-img { animation: none !important; transform: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .skeleton::after { animation: none !important; }
    .animate-bounce { animation: none !important; }
}

/* ============================================================
   10. SECTION-SPECIFIC
   ============================================================ */
/* Rich text (article body) */
.prose-custom h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--forest-800); margin: 1.6rem 0 .6rem; }
.prose-custom h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--forest-800); margin: 1.4rem 0 .5rem; }
.prose-custom p { margin: 0 0 1.1rem; line-height: var(--leading-body); }
.prose-custom a { color: var(--emerald-600); text-decoration: underline; }
.prose-custom ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.1rem; }
.prose-custom blockquote { border-left: 4px solid var(--gold); padding-left: 1rem; font-style: italic; color: #4b5563; margin: 1.2rem 0; }

/* Reusable interior page hero (title band) */
.page-hero { position: relative; overflow: hidden; background: var(--grad-forest); color: #fff; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .2; pointer-events: none;
    background:
        radial-gradient(circle at 25% 25%, var(--gold) 0, transparent 42%),
        radial-gradient(circle at 80% 60%, var(--moss) 0, transparent 45%);
}

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; }
.breadcrumbs a { color: inherit; opacity: .75; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; color: var(--gold); }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs [aria-current="page"] { font-weight: 600; opacity: 1; }

/* CKEditor authoring area (editorial form) */
.ck-editor__editable { min-height: 280px; }

/* Leaflet + OpenStreetMap maps */
.leaflet-map { min-height: 20rem; z-index: 0; }
#explore-map { height: 30rem; }
.leaflet-map.map-fullscreen { position: fixed; inset: 0; height: 100vh !important; width: 100vw; z-index: 1000; border-radius: 0; margin: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.map-filter { padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 500; background: var(--sand); color: var(--forest-800); transition: background 0.15s, color 0.15s; }
.map-filter:hover { background: #e2ebe4; }
.map-filter.is-active { background: var(--forest); color: #fff; }
#trip-map { height: 26rem; }
.trip-pin span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9999px; background: var(--forest); color: #fff; font-size: 0.8rem; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }

/* Save / favourite toggle */
.save-btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; transition: color .15s, background .15s; }
.save-btn .save-heart { transition: transform .15s ease; }
.save-btn:hover .save-heart { transform: scale(1.12); }
.save-btn.is-saved { color: var(--clay); }
.save-btn-icon { width: 2.5rem; height: 2.5rem; justify-content: center; border-radius: 9999px; background: rgba(255,255,255,.92); color: var(--forest-800); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.save-btn-icon.is-saved { color: var(--clay); background: #fff; }

/* YouTube brand button (kept out of views to avoid hardcoded hex) */
.bg-youtube { background: #FF0000; }

/* Magazine reader hardening */
.no-select { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.reading { background: var(--forest-900); font-family: var(--font-body); }

@media print { .no-print, body.reading * { display: none !important; } }
