/*
 * Single place to change the look of the site.
 * Change the colors, fonts, art and shape variables below; everything else follows.
 * Art files live in static/img/ (SVG). Replace a file or point a variable at another one.
 */
:root {
    /* ---- Colors ---- */
    --brand: #1d5a64;          /* peacock teal: primary buttons, links, brand mark */
    --brand-dark: #133e45;     /* headings, hover state */
    --brand-soft: #e4efee;     /* tinted teal surface: active nav pill, chips */
    --accent: #c8a052;         /* antique gold: small highlights, accent button */
    --accent-dark: #a9823a;    /* accent hover, focus ring */
    --accent-ink: #84621f;     /* gold for text on light backgrounds (AA contrast) */
    --terracotta: #a8553a;     /* small warm touches (event icons) */
    --paper: #faf7f0;          /* page background (light ivory) */
    --paper-alt: #f3ede0;      /* sand: table headers, hover rows, chips */
    --card-bg: #ffffff;        /* cards, forms, tables */
    --ink: #24211d;            /* body text */
    --ink-soft: #625a50;       /* muted text */
    --line: #ebe3d3;           /* hairlines and card borders */
    --input-line: #d9cfbb;     /* form field borders */
    --nav-bg: rgba(250, 247, 240, .82);  /* translucent header (blurred behind) */
    --footer-bg: #12363c;      /* deep teal footer */

    /* ---- Fonts ---- */
    /* To swap a font: add its woff2 files to static/fonts/, declare them in css/fonts.css
       (@font-face) and put the family name first in the matching variable below.
       Keep 'Noto Sans Telugu' in both lists so Telugu text always has a matching face. */
    --font-heading: 'Eczar', 'Noto Sans Telugu', 'Palatino Linotype', Georgia, serif;   /* festive display face */
    --font-body: 'Mukta', 'Noto Sans Telugu', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* ---- Art (set to none to switch off) ---- */
    --art-page: none;                             /* optional pattern behind the whole page, e.g. url('../img/kolam-tile.svg') */
    --art-page-opacity: 0.08;                     /* 0 = hidden, 1 = strong */
    --art-hero: url('../img/mandala.svg');        /* faint mandala on the right of the home hero */
    --art-hero-opacity: 0.30;
    --art-footer: url('../img/mandala.svg');      /* faint mandala in the footer corner */
    --art-footer-opacity: 0.10;

    /* ---- Shape ---- */
    --radius: 1.25rem;         /* cards, tables, list groups */
    --radius-sm: .8rem;        /* inputs, alerts, small tiles */
    --shadow: 0 1px 2px rgba(36, 33, 29, .04), 0 4px 16px rgba(36, 33, 29, .05);
    --shadow-hover: 0 2px 6px rgba(36, 33, 29, .06), 0 14px 34px rgba(36, 33, 29, .11);
    --shadow-lg: 0 2px 8px rgba(36, 33, 29, .05), 0 24px 48px -12px rgba(19, 62, 69, .22);

    /* Bootstrap hooks (no need to edit) */
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--font-body);
    --bs-secondary-color: var(--ink-soft);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 29, 90, 100;
    --bs-link-hover-color: var(--brand-dark);
    --bs-link-hover-color-rgb: 19, 62, 69;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius);
}

/* ---- Base ---- */
body { position: relative; background-color: var(--paper); font-size: 1.0625rem; line-height: 1.6;   /* Mukta runs small */
       background-image: radial-gradient(1000px 520px at 100% -10%, rgba(200, 160, 82, .10), transparent 70%); }
body { display: flex; flex-direction: column; min-height: 100vh; }   /* footer stays at the bottom on short pages */
body > main { flex: 1 0 auto; width: 100%; }
body::before {                       /* optional page pattern, never blocks clicks */
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--art-page); background-size: 120px; opacity: var(--art-page-opacity);
}
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--font-heading); font-weight: 600; }  /* Eczar is loaded in weight 600 only */
h1, h2, h3, h4, h5, h6 { color: var(--brand-dark); letter-spacing: -.01em; }
::selection { background: rgba(200, 160, 82, .30); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.text-secondary, .text-muted { color: var(--ink-soft) !important; }
a { text-underline-offset: .2em; }
main.container > h1:first-child, main.container > .d-flex:first-child:has(h1) { margin-top: .5rem; }  /* on the row, so title and button stay centred */
.bg-brand { background-color: var(--brand) !important; }
.border-accent { border-color: var(--accent) !important; }

/* ---- Navbar: translucent sticky header with hairline ---- */
.site-nav {
    --bs-navbar-color: var(--ink-soft); --bs-navbar-hover-color: var(--brand-dark);
    --bs-navbar-active-color: var(--brand-dark); --bs-navbar-brand-color: var(--brand-dark);
    --bs-navbar-brand-hover-color: var(--brand-dark);
    padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.site-nav::before {                  /* blur lives on a pseudo element so the offcanvas stays fixed to the viewport */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--nav-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-nav:has(.offcanvas.show), .site-nav:has(.offcanvas.showing), .site-nav:has(.offcanvas.hiding) { z-index: 1050; }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.4rem; line-height: 1;
                letter-spacing: .08em; color: var(--brand-dark); }
.brand-mark {                        /* small logo tile: gold lotus on teal */
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(200, 160, 82, .45), 0 4px 10px -4px rgba(19, 62, 69, .5); font-size: 1.15rem; letter-spacing: 0;
}
.site-nav .navbar-nav { gap: .15rem; }
.site-nav .nav-link { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .95rem;
                      border-radius: 999px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.site-nav .nav-link .bi { color: var(--accent-ink); font-size: 1.1rem; }
.site-nav .nav-link:hover { background: rgba(29, 90, 100, .07); }
.site-nav .nav-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.navbar-toggler { border: 0; min-width: 44px; min-height: 44px; padding: 0; border-radius: 12px; color: var(--brand-dark); font-size: 1.6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(29, 90, 100, .2); }
.nav-user { max-width: 14rem; padding: .35rem .85rem; border-radius: 999px; background: var(--paper-alt); color: var(--ink-soft); font-weight: 500; }
.navbar .nav-actions .btn-icon { padding: 0 .6rem; }
/* Account and admin dropdown menus */
.nav-menu-btn { position: relative; }
.nav-menu-btn.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-badge {                        /* count of items waiting for review on the Admin button */
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #2b1d05; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.site-menu { min-width: 15rem; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius);
             box-shadow: 0 12px 32px -12px rgba(19, 62, 69, .35); background: #fff; }
.site-menu .dropdown-header { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
                              color: var(--accent-ink); padding: .4rem .75rem; margin: 0; max-width: 16rem; }
.site-menu .dropdown-item { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .75rem;
                            border-radius: var(--radius-sm); color: var(--ink); }
.site-menu .dropdown-item .bi { color: var(--accent-ink); font-size: 1.05rem; }
.site-menu .dropdown-item:hover, .site-menu .dropdown-item:focus { background: var(--paper-alt); color: var(--brand-dark); }
.site-menu .dropdown-item.active, .site-menu .dropdown-item:active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.site-menu .dropdown-divider { margin: .35rem .25rem; border-color: var(--line); }

/* Offcanvas menu below md */
.site-nav .offcanvas { --bs-offcanvas-width: min(320px, 86vw); background: var(--paper); border-left: 1px solid var(--line); }
.site-nav .offcanvas-header { border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
.site-nav .offcanvas-header .btn-close { width: 44px; height: 44px; padding: 0; margin: 0 0 0 auto; }
.site-nav .offcanvas-body .nav-link { border-radius: var(--radius-sm); padding: .7rem 1rem; }
@media (min-width: 768px) {            /* menu inline from md (navbar-expand-md) */
    .site-nav .offcanvas-body { flex-grow: 1; margin-left: 1.25rem; }
    .site-nav .nav-link { padding: .5rem .8rem; white-space: nowrap; }
    .site-nav .nav-link .bi { display: none; }
}

/* ---- Buttons ---- */
/* Buttons are flex boxes so icon and label stay centred when min-height (touch target, see below) is taller
   than Bootstrap's padding + line-height. With inline-block the extra height went below the label. */
.btn { display: inline-flex; align-items: center; justify-content: center;
       border-radius: 999px; font-weight: 600; letter-spacing: .01em; padding-left: 1.25rem; padding-right: 1.25rem;
       transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-brand:hover, .btn-accent:hover { box-shadow: 0 8px 18px -8px rgba(19, 62, 69, .55); }
.btn-brand {
    --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-active-color: #fff;
}
.btn-outline-brand {
    --bs-btn-color: var(--brand); --bs-btn-bg: rgba(255, 255, 255, .6); --bs-btn-border-color: rgba(29, 90, 100, .35);
    --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-soft); --bs-btn-active-border-color: var(--brand); --bs-btn-active-color: var(--brand-dark);
}
.btn-accent {
    --bs-btn-color: #2a2110; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #2a2110; --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); --bs-btn-active-color: #2a2110;
}
.btn-ghost {                         /* quiet icon buttons in the header */
    --bs-btn-color: var(--brand-dark); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-soft); --bs-btn-active-border-color: transparent;
}
.btn-outline-secondary {             /* row actions: soft neutral chips */
    --bs-btn-color: var(--ink-soft); --bs-btn-bg: var(--card-bg); --bs-btn-border-color: var(--input-line);
    --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-bg: var(--paper-alt); --bs-btn-hover-border-color: var(--input-line);
    --bs-btn-active-color: var(--brand-dark); --bs-btn-active-bg: var(--paper-alt); --bs-btn-active-border-color: var(--input-line);
}

/* ---- Hero (home page) ---- */
.hero {
    position: relative; overflow: hidden; color: var(--ink); border-bottom: 1px solid var(--line);
    padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
    background: radial-gradient(640px 420px at 88% 30%, rgba(200, 160, 82, .16), transparent 70%),
                radial-gradient(560px 380px at 0% 100%, rgba(29, 90, 100, .04), transparent 70%), var(--paper);
}
.hero::after {                        /* faint mandala peeking in from the right */
    content: ""; position: absolute; pointer-events: none; width: 620px; height: 620px; right: -200px; top: 50%;
    transform: translateY(-50%); background: var(--art-hero) center / contain no-repeat; opacity: var(--art-hero-opacity);
}
.hero > .container { position: relative; z-index: 1; }
.hero-ornament { display: inline-flex; align-items: center; gap: .6rem; color: var(--accent-dark); font-size: 1.1rem; }
.hero-ornament::before, .hero-ornament::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.hero-ornament::after { transform: scaleX(-1); }
.hero h1 { color: var(--brand-dark); font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; margin: 1rem 0; }
.hero .lead { color: var(--accent-ink); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; margin-bottom: .75rem; }
.hero-intro { color: var(--ink-soft); max-width: 38rem; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
/* Highlight card for the next upcoming event */
.next-event { position: relative; overflow: hidden; color: var(--ink); border-radius: 1.5rem;
              background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-lg); max-width: 30rem; margin-left: auto; }
.next-event::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
a.next-event:hover { box-shadow: var(--shadow-lg), var(--shadow-hover); }
.next-event-label { display: inline-flex; align-items: center; padding: .2rem .75rem; border-radius: 999px; background: var(--brand-soft);
                    color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.next-event-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto;
                   width: 58px; height: 62px; border-radius: 16px; background: linear-gradient(160deg, var(--brand), var(--brand-dark));
                   color: #fff; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; }
.next-event-date small { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: .2rem; }
.next-event-link { display: inline-flex; align-items: center; color: var(--brand); font-weight: 700; }

/* ---- Section titles: heading with a short gold-to-terracotta bar ---- */
.section-title { position: relative; display: block; font-size: clamp(1.55rem, 3vw, 2rem); margin-bottom: 1.5rem; padding-bottom: .9rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
                        background: linear-gradient(90deg, var(--accent), var(--terracotta)); }
section { padding-bottom: .5rem; }
main > section + section { margin-top: 1rem; }

/* ---- Cards ---- */
.card { --bs-card-bg: var(--card-bg); --bs-card-border-color: var(--line); --bs-card-border-radius: var(--radius);
        --bs-card-inner-border-radius: calc(var(--radius) - 1px); --bs-card-spacer-x: 1.25rem; --bs-card-spacer-y: 1.25rem;
        border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.shadow-sm { box-shadow: var(--shadow) !important; }
a.card, .card.h-100 { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover, .card.h-100:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover) !important; border-color: rgba(200, 160, 82, .55); }
.card-title, .card-header { font-family: var(--font-heading); }
.card-header { background: var(--paper-alt); border-bottom-color: var(--line); }
/* Cards marked with a gold left border (news): thin gold accent instead of a heavy stripe */
.card.border-start.border-accent { border: 1px solid var(--line) !important; box-shadow: inset 3px 0 0 var(--accent), var(--shadow) !important; }
.card.border-start.border-accent:hover { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-hover) !important; }
.event-icon { display: inline-grid; place-items: center; width: 2em; height: 2em; flex: 0 0 auto; border-radius: .6em;
              font-size: 1.3rem; color: var(--terracotta); background: rgba(168, 85, 58, .09); }
.ad-card { background: linear-gradient(180deg, #fffaf0 0, var(--card-bg) 45%); }
.ad-card .badge.text-bg-secondary { background: var(--paper-alt) !important; color: var(--ink-soft) !important; }
.list-group { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-group-item { background: var(--card-bg); border-color: var(--line); padding: .9rem 1.25rem; transition: background-color .15s ease; }
.list-group-item-action:hover { background: var(--paper-alt); }
.badge { border-radius: 999px; font-weight: 600; padding: .4em .75em; }
.badge.text-bg-warning { background-color: #efdcae !important; color: #4a3a12 !important; }
.alert { border-radius: var(--radius-sm); }
.nav-pills .nav-link { border-radius: 999px; color: var(--brand); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav-pills .nav-link.active { background: var(--brand); color: #fff; }

/* ---- Forms ---- */
.form-label { font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .4rem; }
.form-text { color: var(--ink-soft); }
.form-control, .form-select { background-color: #fff; border: 1px solid var(--input-line); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.form-select { padding-right: 2.5rem; }
.form-control:hover, .form-select:hover { border-color: #c9bb9e; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 90, 100, .15); }
.form-control::placeholder { color: #9a9083; }
.form-check-input { width: 1.25em; height: 1.25em; border-color: var(--input-line); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 90, 100, .15); }

/* ---- Tables (admin, reports): table sits on a rounded white surface ---- */
.table-responsive { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(200, 160, 82, .06); --bs-table-border-color: var(--line); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table > thead > tr > * { background: var(--paper-alt); color: var(--ink-soft); font-family: var(--font-body); font-size: .78rem;
                          font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table > tbody > tr:hover > * { --bs-table-bg-state: rgba(200, 160, 82, .06); }

/* ---- Footer ---- */
.site-footer { position: relative; overflow: hidden; color: #d5e2df; background: var(--footer-bg); }
.site-footer::after {                 /* faint mandala in the corner */
    content: ""; position: absolute; pointer-events: none; width: 420px; height: 420px; right: -140px; bottom: -180px;
    background: var(--art-footer) center / contain no-repeat; opacity: var(--art-footer-opacity);
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.footer-brand strong { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.25; color: #fff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .06); }
.footer-heading { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
                  color: var(--accent); margin-bottom: .5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #e7efec; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: #a9bfbb; }

/* ---- Mobile and touch friendliness ---- */
html { -webkit-text-size-adjust: 100%; }
.btn, .form-control, .form-select { min-height: 44px; }   /* comfortable touch targets */
.btn-sm { min-height: 36px; }
/* Icon buttons: square 44x44 touch target on phones. Always add aria-label and title.
   Text next to the icon is optional: <span class="d-none d-sm-inline ms-sm-2">Text</span> */
.btn-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
            padding: 0 .75rem; line-height: 1; }
.btn-icon .bi { font-size: 1.15rem; line-height: 1; }
/* Icons in buttons and menu links: the icon box is exactly the glyph, centred by the flex parent
   (instead of Bootstrap Icons' -.125em baseline nudge, which sits high next to Mukta) */
.btn .bi, .nav-link .bi { display: inline-flex; line-height: 1; }
.btn-danger-icon, .btn-outline-danger.btn-icon { --bs-btn-color: #b02a37; }
.row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; max-width: 96px; }
input, select, textarea { font-size: 16px; }              /* stops iOS zooming into fields */
img { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }
@media (max-width: 991.98px) {
    .hero::after { width: 460px; height: 460px; right: -200px; top: 30%; opacity: calc(var(--art-hero-opacity) * .6); }
    .next-event { margin-left: 0; max-width: none; }
}
@media (min-width: 576px) { .row-actions { max-width: none; } .navbar .nav-actions .btn-icon { padding: 0 .9rem; } }
@media (max-width: 575.98px) {
    html, body { overflow-x: hidden; }
    body { font-size: 1rem; }
    main, .hero h1, .card, td, dd { overflow-wrap: anywhere; }
    .navbar-brand { font-size: 1.25rem; margin-right: .25rem; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; }
    .hero { padding: 2rem 0 2.25rem; }
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1.15rem; }
    .hero-actions .btn-lg { width: 100%; }
    .table > :not(caption) > * > * { padding: .6rem .5rem; }
    .display-6 { font-size: 1.75rem; }
    .site-footer .row { --bs-gutter-y: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .card, .list-group-item, .site-nav .nav-link { transition: none !important; transform: none !important; }
}

/* ---- Anchor targets: keep section headings visible below the sticky header ---- */
section[id], [id].anchor-target { scroll-margin-top: 84px; }
