/* ==========================================================================
   TAAN — Trekking Agencies' Association of Nepal
   Home page stylesheet
   Design direction: "High Altitude Register"
   Palette : alpine forest green / snow / glacier blue / monastery marigold /
             rhododendron crimson  (Nepal-specific, not generic gov-portal)
   Type    : Archivo (variable width) display · Newsreader body · JetBrains Mono data
   Signature: contour-ridge motif + map-legend elevation tags
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --ink: #028929;
    --ink-2: #028929;
    --ink-3: #028929; /* brand green */
    --text: #000000; /* body copy: pure black, kept apart from the brand green */
    --snow: #ffffff; /* page ground, and text on the dark bands */
    --snow-2: #f3f6f3; /* alternating band tint, warmed towards the green */
    --glacier: #1e88b0;
    --glacier-d: #12617e;
    --glacier-l: #7fc6e0;
    --marigold: #ff9600;
    --marigold-d: #ff9600; /* legible orange for light backgrounds */
    --rhodo: #a32338;
    --stone: #7b8b9c;
    --stone-d: #222222;
    /* The footer's own ground: navy rather than the brand green, so the page
       closes on a different colour from the header it opened with. */
    --navy: #0e2440;
    --navy-d: #0a1b30;

    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: rgba(2, 137, 41, 0.14);

    /* Professional sans-serif family site-wide. */
    --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ff-display: var(--ff-sans);
    --ff-body: var(--ff-sans);
    --ff-mono: var(--ff-sans);

    --shell: 1280px;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    /* Section padding. At the old 7.5rem two adjacent bands put 240px of
       empty space between their content; the page read as a series of
       islands. Tightened so sections sit close enough to be read as one
       document, with colour and rules doing the separating instead. */
    --sec-y: clamp(2.5rem, 4.5vw, 4.25rem);

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 20px;

    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ---------- 2. Base ------------------------------------------------------ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--snow);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.72;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    background: var(--snow-2);
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

::selection {
    background: var(--marigold);
    color: var(--text);
}

:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- 3. Layout helpers ------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.band {
    padding-block: var(--sec-y);
}
.band--dark {
    background: var(--ink);
    color: var(--snow);
}
.band--tint {
    background: var(--snow-2);
}
/* Sections are told apart by their background; where two plain ones follow
   each other there is no change of colour to do it, so a hairline does.
   The home page's membership panel (#join) is its own boxed card butted up
   to the section above, so it needs no divider. */
.band + .band:not(.band--tint):not(.band--dark):not(.tims-apply-band):not(#join) {
    border-top: 1px solid var(--line-light);
}
.tims-apply-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: url("../images/layout-img/everest_cover.jpg");
    background-size: cover;
    background-position: center;
}
.home-support-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: url("../images/layout-img/breadcumb.JPG");
    background-size: cover;
    background-position: center;
}
.home-support-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 20, 8, 0.72) 0%, rgba(0, 45, 16, 0.58) 45%, rgba(0, 20, 8, 0.66) 100%);
    z-index: 0;
}
.home-support-band > .shell {
    position: relative;
    z-index: 1;
}

/* Section head — map-legend styling is the through-line of the page */
.legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--marigold-d);
    margin-bottom: 1.1rem;
}
.band--dark .legend,
.finder .legend,
.join .legend {
    color: var(--marigold);
}
.legend::before {
    content: "";
    width: 26px;
    height: 10px;
    flex: none;
    background: currentColor;
    clip-path: polygon(0 100%, 26% 22%, 44% 62%, 68% 0, 100% 100%);
}

.sec-title {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    max-width: 24ch;
}
.sec-lede {
    max-width: 62ch;
    margin-top: 1.1rem;
    font-size: 1.125rem;
    color: var(--stone-d);
}
.band--dark .sec-lede,
.finder .sec-lede,
.join .sec-lede {
    color: #b9c8d6;
}

/* On dark grounds the brighter marigold reads better than the deep orange. */
.band--dark .legend,
.page-banner .legend,
.contact-band .legend,
.finder .legend,
.join .legend,
.tims .legend,
.notice-board .legend,
.site-foot .legend {
    color: var(--marigold);
}

/* Plain section head (eyebrow + title) sitting above its content. */
.sec-head {
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.sec-head .sec-title {
    margin-bottom: 0;
}
.sec-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    margin-bottom: clamp(1.5rem, 2.4vw, 2.1rem);
}
/* The heading block was 12px too wide to sit beside its standfirst, so the
   pair wrapped and left half the row empty. Letting the heading give way
   keeps them on one line until there is genuinely no room. */
.sec-head--split > *:first-child {
    flex: 1 1 32ch;
    min-width: 0;
}
.sec-head--split > *:last-child:not(:first-child) {
    flex: 0 1 38ch;
}

/* Elevation tag — the recurring map-legend chip */
.elev {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.28rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn-taan,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition:
        transform 0.3s var(--ease),
        background-color 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease);
    cursor: pointer;
}
.btn-taan {
    background: var(--marigold);
    color: var(--text);
}
.btn-taan:hover {
    background: #f5b450;
    color: var(--text);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}
/* The outline button fills on hover. It used to fill with its own text colour
   and then set the label to black — which on a light section meant a black
   pill with black words on it. On light grounds it fills green with white
   words; on dark grounds it fills white with dark words. */
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost:hover span,
.btn-ghost:hover i,
.btn-ghost:focus-visible span,
.btn-ghost:focus-visible i {
    color: #fff;
}

.hero .btn-ghost:hover,
.band--dark .btn-ghost:hover,
.tims-apply-band .btn-ghost:hover,
.join .btn-ghost:hover,
.site-foot .btn-ghost:hover,
.hero .btn-ghost:focus-visible,
.band--dark .btn-ghost:focus-visible,
.tims-apply-band .btn-ghost:focus-visible,
.join .btn-ghost:focus-visible,
.site-foot .btn-ghost:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--text);
}
.hero .btn-ghost:hover span,
.hero .btn-ghost:hover i,
.band--dark .btn-ghost:hover span,
.band--dark .btn-ghost:hover i,
.tims-apply-band .btn-ghost:hover span,
.tims-apply-band .btn-ghost:hover i,
.join .btn-ghost:hover span,
.join .btn-ghost:hover i,
.site-foot .btn-ghost:hover span,
.site-foot .btn-ghost:hover i {
    color: var(--text);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 2px;
    border-bottom: 1.5px solid currentColor;
    transition: gap 0.3s var(--ease);
}
.link-arrow:hover {
    gap: 0.95rem;
    color: var(--ink-3);
}
.band--dark .link-arrow {
    color: var(--marigold);
}

/* ---------- 5. Top utility bar ------------------------------------------ */
.util {
    background: var(--ink);
    color: var(--marigold);
    font-family: var(--ff-mono);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-dark);
}
.util .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    min-height: 42px;
    padding-block: .35rem;
}
.util-left {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
@media (max-width: 767.98px) {
    .util {
        font-size: .64rem;
        letter-spacing: .03em;
    }
    .util .shell {
        justify-content: center;
        gap: .35rem .75rem;
        min-height: auto;
        padding-block: .45rem;
    }
    .util-left, .util-right {
        justify-content: center;
        gap: .35rem .75rem;
        width: 100%;
        text-align: center;
        flex-wrap: wrap;
    }
    .util-left > span, .util-right > span, .util-right a {
        text-align: center;
    }
    .util-sep { display: none; }
}
.util a {
    transition: color 0.25s var(--ease);
}
.util a:hover {
    color: var(--snow);
}
.util-official {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.util-flag {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 0.95;
    background: none;
    flex: none;
}
.util-sep {
    color: rgba(233, 161, 59, 0.4);
}

/* ---------- 6. Header / nav --------------------------------------------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-light);
    transition:
        padding 0.35s var(--ease),
        background-color 0.35s var(--ease);
}
.site-head .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    transition: padding 0.35s var(--ease);
}
.site-head.is-stuck .shell {
    padding-block: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: none;
    min-width: 0;
}
.brand img {
    height: 72px;
    width: auto;
    max-width: 100%;
    background: none;
    transition: height 0.35s var(--ease);
}
.site-head.is-stuck .brand img {
    height: 54px;
}
@media (max-width: 767.98px) {
    .site-head .shell { padding-block: .7rem; gap: .75rem; }
    .site-head.is-stuck .shell { padding-block: .5rem; }
    .brand { flex: 1; }
    .brand img { height: 52px; }
    .site-head.is-stuck .brand img { height: 46px; }
    .head-actions .burger { width: 42px; height: 42px; font-size: 1.5rem; }
}
.brand-txt {
    display: none;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: var(--text);
    text-transform: uppercase;
    max-width: 15ch;
}
.brand-txt small {
    display: block;
    font-family: var(--ff-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--marigold);
    margin-top: 0.25rem;
}
@media (min-width: 1200px) {
    .brand-txt {
        display: block;
    }
}

.nav-main {
    display: none;
}
@media (min-width: 992px) {
    .nav-main {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list > li {
    position: relative;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--stone-d);
    padding: 0.7rem 0.7rem;
    border-radius: var(--r-sm);
    transition: color 0.25s var(--ease);
}
.nav-link:hover,
.nav-list > li:hover > .nav-link,
.nav-link.is-active {
    color: var(--ink-3);
}
.nav-link.is-active {
    background: rgba(0,139,50,.08);
}
.nav-link i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--snow);
    border: 1px solid var(--line-light);
    border-radius: var(--r-md);
    padding: 0.55rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.25s var(--ease),
        transform 0.25s var(--ease),
        visibility 0.25s;
    box-shadow: 0 24px 50px rgba(0, 76, 22, 0.16);
}
.nav-list > li:hover > .drop,
.nav-list > li:focus-within > .drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.drop--right {
    left: auto;
    right: 0;
}
.drop a {
    display: block;
    font-family: var(--ff-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--stone-d);
    padding: 0.5rem 0.7rem;
    border-radius: var(--r-sm);
    transition:
        background-color 0.2s,
        color 0.2s,
        padding-left 0.2s var(--ease);
}
.drop a:hover {
    background: var(--snow-2);
    color: var(--text);
    padding-left: 1rem;
}

/* Mega menu for trekking regions */
.drop--mega {
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(720px, 90vw);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem 0.5rem;
    padding: 1.1rem;
}
.nav-list > li:hover > .drop--mega,
.nav-list > li:focus-within > .drop--mega {
    transform: translate(-50%, 0);
}
/* A centred mega menu on a nav item in the right half of the bar hangs off
   the edge of the page. Those align to their item's right instead. */
.drop--mega.drop--right {
    left: auto;
    right: 0;
    transform: translate(0, 8px);
}
.nav-list > li:hover > .drop--mega.drop--right,
.nav-list > li:focus-within > .drop--mega.drop--right {
    transform: translate(0, 0);
}
/* Menu items use a menu line height, not the body's 1.75, so a name that
   wraps ("Restricted Area Trekking Permit") stays compact and rows line up. */
.drop--mega {
    align-items: start;
    row-gap: 0.15rem;
}
.drop--mega a {
    line-height: 1.35;
    padding: 0.55rem 0.75rem;
}
/* "All permits" and similar links sit in their own row under the list. */
.drop--mega .mega-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line-light);
}
.drop--mega .mega-foot a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-3, #028929);
}
.drop--mega .mega-foot a:hover {
    padding-left: 0.75rem;
    background: var(--snow-2);
    color: var(--ink-3, #028929);
}
.drop--mega .mega-foot a i {
    transition: transform 0.2s var(--ease);
}
.drop--mega .mega-foot a:hover i {
    transform: translateX(3px);
}
.drop--mega .mega-head {
    grid-column: 1 / -1;
    font-family: var(--ff-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 0.7rem 0.6rem;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 0.5rem;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
}
.head-actions .btn-taan {
    padding: 0.7rem 1.15rem;
    font-size: 0.76rem;
}
.head-actions .btn-ghost {
    padding: 0.7rem 1.15rem;
    font-size: 0.76rem;
    color: #cfdce7;
}

.burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 1.5px solid var(--line-light);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 1.3rem;
}
@media (min-width: 992px) {
    .burger {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .head-actions .btn-ghost {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .head-actions .btn-taan {
        display: none;
    }
}

/* Offcanvas (mobile nav): a light panel, logo bar on top, sections as an
   accordion, sub-pages as an indented list with the current page marked. */
.offcanvas.taan-canvas {
    --cv-text: #102642;
    --cv-muted: #5f6f81;
    --cv-line: #e6ece7;
    --cv-green: var(--ink-3, #028929);
    --cv-tint: rgba(2, 137, 41, 0.07);
    background: #fff;
    color: var(--cv-text);
    width: min(380px, 88vw);
    border-left: 0;
    box-shadow: -12px 0 40px rgba(16, 38, 66, 0.18);
}
.taan-canvas .offcanvas-header {
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cv-line);
}
.taan-canvas .canvas-logo {
    height: 48px;
    width: auto;
    max-width: calc(100% - 3.5rem);
    object-fit: contain;
    /* Images get a grey placeholder background site-wide; not the logo. */
    background: transparent;
}
.taan-canvas .btn-close {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0 -0.4rem 0 auto;
    border-radius: 50%;
    background-size: 0.85rem;
    opacity: 0.6;
    filter: none;
    transition: background-color 0.2s, opacity 0.2s;
}
.taan-canvas .btn-close:hover,
.taan-canvas .btn-close:focus {
    opacity: 1;
    background-color: #f1f5f2;
    box-shadow: none;
}
.taan-canvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.5rem;
}
.taan-canvas .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-icon-width: 0.9rem;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f6f81' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23028929' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}
.taan-canvas .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--cv-line);
    border-radius: 0 !important;
}
.taan-canvas .accordion-button {
    background: transparent;
    color: var(--cv-text);
    font-family: var(--ff-sans, inherit);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    padding: 1.05rem 0.1rem;
    border-radius: 0 !important;
}
.taan-canvas .accordion-button:not(.collapsed),
.taan-canvas .accordion-button.is-active {
    color: var(--cv-green);
}
.taan-canvas .accordion-button::after {
    filter: none;
    opacity: 1;
}
.taan-canvas .accordion-body {
    padding: 0 0 0.9rem 0.15rem;
}
.taan-canvas .accordion-body a {
    display: block;
    margin-left: 0.1rem;
    padding: 0.55rem 0.85rem;
    border-left: 2px solid var(--cv-line);
    color: var(--cv-muted);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.taan-canvas .accordion-body a:hover {
    color: var(--cv-green);
    background: var(--cv-tint);
}
.taan-canvas .accordion-body a.is-current {
    color: var(--cv-green);
    font-weight: 600;
    background: var(--cv-tint);
    border-left-color: var(--cv-green);
}
/* Actions at the foot of the menu. */
.taan-canvas .canvas-actions {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.6rem;
}
.taan-canvas .canvas-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.taan-canvas .canvas-actions .canvas-primary {
    background: var(--cv-green);
    color: #fff;
}
.taan-canvas .canvas-actions .canvas-primary:hover {
    background: #027a24;
}
.taan-canvas .canvas-actions .canvas-secondary {
    border: 1px solid var(--cv-line);
    color: var(--cv-text);
    background: #fff;
}
.taan-canvas .canvas-actions .canvas-secondary:hover {
    border-color: var(--cv-green);
    color: var(--cv-green);
}

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
    position: relative;
    /* Was 92vh: on a laptop that pushed the buttons under the fold and left
       the words floating in the middle of a photograph. */
    min-height: clamp(520px, 78vh, 780px);
    display: flex;
    align-items: flex-end;
    color: var(--snow);
    overflow: hidden;
    background: var(--ink);
}
.hero-stage {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}
.hero-slide.is-on {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 9s linear;
}
.hero-slide.is-on img {
    transform: scale(1);
}

/* A banner uploaded as a logo rather than a photograph: it sits as a
   watermark on the association's own photography instead of being stretched
   across the frame behind the words. */
.hero-slide.is-mark {
    background: url("../images/page-banner.jpg") center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-slide.is-mark img {
    width: min(42%, 560px);
    height: auto;
    max-height: 68%;
    object-fit: contain;
    margin-right: clamp(1rem, 6vw, 6rem);
    opacity: 0.22;
    filter: grayscale(1) brightness(1.9);
    transform: none;
}

.hero .shell {
    position: relative;
    z-index: 2;
    width: 100%;
    /* The quick-desk cards below are pulled up over the hero by 3.5rem, so
       the counter and dots have to clear them. */
    padding-bottom: clamp(5.5rem, 9vw, 7.5rem);
    padding-top: clamp(6rem, 12vw, 9rem);
}

.hero-copy {
    max-width: 46rem;
}

/* No overlay sits between the photograph and the words, so the words carry a
   soft shadow of their own to stay readable over bright snow and sky. */
.hero h1,
.hero-sub {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
    font-weight: 680;
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 17ch;
    margin: 0;
    color: var(--snow);
}
.hero h1 em {
    font-style: normal;
    color: var(--marigold);
}
.hero-sub {
    max-width: 52ch;
    margin: 1.1rem 0 0;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    color: #d7e3d9;
}


.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}
.hero .btn-ghost {
    color: var(--snow);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 20, 8, 0.25);
    backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover {
    background: var(--snow);
    border-color: var(--snow);
}

/* Slide counter + dots */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-counter {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
}
.hero-counter b {
    color: var(--marigold);
    font-weight: 600;
}
.hero-dots {
    display: flex;
    gap: 0.45rem;
}
.hero-dots button {
    width: 30px;
    height: 3px;
    border: 0;
    padding: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition:
        background-color 0.3s var(--ease),
        width 0.3s var(--ease);
}
.hero-dots button:hover {
    background: rgba(255, 255, 255, 0.55);
}
.hero-dots button.is-on {
    width: 48px;
    background: var(--marigold);
}

@media (max-width: 640px) {
    .hero {
        min-height: clamp(480px, 86vh, 640px);
    }
    .hero-slide.is-mark img {
        width: 70%;
        opacity: 0.1;
    }
}

/* Ridge divider — the page signature */
.ridge {
    display: block;
    width: 100%;
    height: auto;
}
.ridge--hero {
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 3;
}

/* ---------- 8. Quick desk (overlapping action cards) -------------------- */
.desk {
    margin-top: -3.5rem;
    position: relative;
    z-index: 5;
}
.desk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 60px rgba(0, 76, 22, 0.12);
    overflow: hidden;
}
.desk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.6rem 1.4rem;
    background: #fff;
    color: var(--text);
    transition: background-color 0.3s var(--ease);
}
/* Hairline dividers between cards, inset from the panel edges. */
.desk-card + .desk-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1px;
    background: var(--line-light);
}
/* Green accent along the top edge on hover. */
.desk-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.desk-card:hover,
.desk-card:focus-visible {
    background: #fbfdfb;
    color: var(--text);
}
.desk-card:hover::after,
.desk-card:focus-visible::after {
    transform: scaleX(1);
}
.desk-card:focus-visible {
    outline: 2px solid var(--marigold);
    outline-offset: -2px;
}

.desk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.desk-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(2, 137, 41, 0.08);
    color: var(--ink);
    font-size: 1.4rem;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.desk-card:hover .desk-icon,
.desk-card:focus-visible .desk-icon {
    background: var(--ink);
    color: #fff;
}
.desk-eyebrow {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 150, 0, 0.1);
    color: #b86a00;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.desk-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--text);
}
.desk-card p {
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--stone-d);
}
/* margin-top: auto pins the footer to the bottom so the link rows line up
   across cards of different text lengths. */
.desk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line-light);
}
.desk-go {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}
.desk-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    color: var(--ink);
    font-size: 0.95rem;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease),
        transform 0.3s var(--ease);
}
.desk-card:hover .desk-arrow,
.desk-card:focus-visible .desk-arrow {
    background: var(--marigold);
    border-color: var(--marigold);
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 1199.98px) {
    .desk-card {
        padding: 1.5rem 1.3rem 1.25rem;
    }
}
@media (max-width: 991.98px) {
    .desk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .desk-card:nth-child(odd)::before {
        display: none;
    }
    .desk-card:nth-child(n + 3) {
        border-top: 1px solid var(--line-light);
    }
}
@media (max-width: 575.98px) {
    .desk {
        margin-top: -2rem;
    }
    /* On phones the panel splits into separate cards with space between. */
    .desk-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    .desk-card {
        padding: 1.3rem 1.2rem 1.1rem;
        border: 1px solid var(--line-light);
        border-radius: var(--r-md);
        box-shadow: 0 10px 28px rgba(0, 76, 22, 0.1);
        overflow: hidden;
    }
    .desk-card::before {
        display: none;
    }
    .desk-card:nth-child(n + 3) {
        border-top: 1px solid var(--line-light);
    }
    .desk-top {
        margin-bottom: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .desk-card,
    .desk-card::after,
    .desk-icon,
    .desk-arrow {
        transition: none;
    }
    .desk-card:hover .desk-arrow,
    .desk-card:focus-visible .desk-arrow {
        transform: none;
    }
}

/* ---------- 9. Intro / about -------------------------------------------- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
@media (min-width: 992px) {
    .intro-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}
@media (max-width: 991.98px) {
    .intro-grid {
        gap: 2rem;
    }
}

/* The collage has a fixed height and every photograph fills its cell. The
   images used to set their own proportions — 3:4.4 for the tall one, 4:3 for
   the two beside it — and two 4:3 frames plus a gap are not the height of one
   3:4.4 frame, so the columns never ended level. Now the grid decides the
   shape and the photographs are cropped to it. */
.intro-figures {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.9rem;
    /* Tall enough to hold its own beside the text column it sits next to. */
    height: clamp(380px, 46vw, 640px);
}
.intro-figures img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: var(--r-md);
}
.intro-figures .fig-tall {
    grid-row: 1 / span 2;
}
.intro-figures .fig-wide {
    grid-column: 2;
}
.intro-figures--mobile { display: none; }
@media (max-width: 991.98px) {
    .intro-figures--desktop { display: none; }
    .intro-figures--mobile {
        display: grid;
        height: clamp(280px, 60vw, 420px);
        margin: 1rem 0 1.5rem;
    }
    .intro-grid .sec-title {
        margin-bottom: 0;
    }
}
@media (max-width: 575px) {
    .intro-figures {
        height: 300px;
        gap: 0.6rem;
    }
    .est-stamp {
        right: 12px;
        bottom: 12px;
        width: 96px;
        height: 96px;
        font-size: .56rem;
    }
    .est-stamp b { font-size: 1.3rem; }
}
.est-stamp {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 108px;
    height: 108px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    border: 4px solid #fff;
    font-family: var(--ff-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
    box-shadow: 0 12px 30px rgba(0, 76, 22, 0.28);
}
.est-stamp b { font-size: 1.3rem; }
}
.est-stamp {
    position: absolute;
    right: -14px;
    bottom: -22px;
    width: 118px;
    height: 118px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--rhodo);
    color: #fff;
    font-family: var(--ff-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
    box-shadow: 0 14px 34px rgba(163, 35, 56, 0.35);
}
.est-stamp b {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}
.intro-points {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 2rem;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-light);
}
.intro-points li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--stone-d);
}
.intro-points li b {
    color: var(--text);
    font-weight: 700;
}
.intro-points i {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: rgba(2, 137, 41, 0.1);
    color: var(--ink);
    font-size: 0.8rem;
}

/* Intro copy: calmer size and leading. Justified paragraphs (set in the
   admin) space by word only and fall back to left-aligned on phones, where
   a narrow column would open wide gaps. */
.intro-lede {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--stone-d);
}
.intro-lede p {
    margin: 0 0 1rem;
}
.intro-lede p:last-child {
    margin-bottom: 0;
}
.intro-lede [style*="justify"] {
    text-justify: inter-word;
    hyphens: manual;
    -webkit-hyphens: manual;
}
@media (max-width: 575.98px) {
    .intro-lede [style*="justify"] {
        text-align: left !important;
    }
}

/* ---------- 10. Counter band -------------------------------------------- */
.count-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1.25rem;
}
.count-item {
    min-width: 0;
    border-left: 1px solid var(--line-dark);
    padding-left: 1.1rem;
}
.count-num {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 1.8vw, 1.9rem);
    line-height: 1;
    color: var(--marigold);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .count-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .count-grid {
        grid-template-columns: 1fr;
    }
}
.count-label {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    /* Read against the green band these sit on, not the ink one they were
       picked for. */
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.7rem;
}
.count-note {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.35rem;
    line-height: 1.5;
}
.count-item {
    border-left-color: rgba(255, 255, 255, 0.22);
}

/* ---------- 11. President ------------------------------------------------ */
.prez-section {
    background: linear-gradient(180deg, #f7f8f5 0%, #ffffff 100%);
}
.prez-card {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 20, 8, 0.06);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 24px 60px rgba(0, 20, 8, 0.05);
}
@media (max-width: 991px) {
    .prez-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.prez-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Square portrait in an orange frame (thin white line between frame and photo). */
.prez-photo-ring {
    position: relative;
    width: min(280px, 72vw);
    aspect-ratio: 1;
    padding: 7px;
    border-radius: 10px;
    background: var(--marigold, #f39c12);
    box-shadow: 0 18px 40px rgba(0, 20, 8, 0.12);
}
.prez-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    background: #e9ecea;
    border: 3px solid #fff;
}
.prez-photo-caption {
    margin-top: 1.25rem;
}
.prez-photo-caption strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.2;
}
.prez-photo-caption span {
    display: block;
    margin-top: .35rem;
    font-family: var(--ff-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--marigold-d, #b06c12);
}
.prez-body {
    position: relative;
}
.prez-quote-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(176,108,18,.1);
    color: var(--marigold-d, #b06c12);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 991px) {
    .prez-quote-mark { margin-left: auto; margin-right: auto; }
}
.prez-message {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.9;
    color: var(--stone-d, #4b5563);
    max-width: 62ch;
}
@media (max-width: 991px) {
    .prez-message { margin-left: auto; margin-right: auto; }
}
.prez-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}
@media (max-width: 991px) {
    .prez-byline { justify-content: center; }
}
.prez-byline-rule {
    width: 42px;
    height: 2px;
    background: var(--marigold);
    flex: none;
}
.prez-byline-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.prez-byline-role {
    font-size: .86rem;
    color: var(--stone-d, #6b7280);
}
.prez-cta {
    margin-top: 1.75rem;
}
@media (max-width: 991px) {
    .prez-cta { align-self: center; }
}

/* ---------- 12. What TAAN does ------------------------------------------ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 1199.98px) {
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
}
/* Section intro beside the heading: a touch smaller than a lede, sitting
   level with the title's last line. */
.work-head .sec-lede {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-top: 0;
}
/* Vision: an intro column with a photograph, beside the commitments as a
   numbered list with hairline dividers. */
.vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 992px) {
    .vision {
        grid-template-columns: 5fr 7fr;
        gap: clamp(3rem, 6vw, 5.5rem);
        align-items: start;
    }
    .vision-intro {
        position: sticky;
        top: 7rem;
    }
}
.vision-intro .sec-title {
    margin-bottom: 1rem;
}
.vision-intro .sec-lede {
    margin: 0;
    max-width: 42ch;
}
.vision-photo {
    margin: 2rem 0 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 44px rgba(0, 30, 10, 0.14);
}
.vision-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 991.98px) {
    .vision-photo {
        aspect-ratio: 16 / 9;
    }
}
.vision-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-light);
}
.vision-item {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 0 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line-light);
}
.vision-num {
    font-family: var(--ff-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--ink-3, #028929);
    padding-top: 0.2rem;
}
.vision-num::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    margin-top: 0.55rem;
    background: var(--marigold);
    transition: width 0.3s var(--ease);
}
.vision-item:hover .vision-num::after {
    width: 2.5rem;
}
.vision-item h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}
.vision-item h3 i {
    font-size: 1.05rem;
    color: var(--ink-3, #028929);
}
.vision-item p {
    margin: 0;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--stone-d);
}
@media (max-width: 575.98px) {
    .vision-item {
        grid-template-columns: 2.5rem 1fr;
        gap: 0 1rem;
        padding: 1.4rem 0;
    }
    .vision-item h3 {
        font-size: 1.08rem;
    }
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.4vw, 2rem);
    overflow: hidden;
    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s var(--ease),
        border-color 0.35s var(--ease);
}
/* Green accent slides in along the top edge on hover. */
.work-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 137, 41, 0.22);
    box-shadow: 0 18px 40px rgba(0, 76, 22, 0.1);
}
.work-card:hover::after {
    transform: scaleX(1);
}
.work-card i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.35rem;
    border-radius: 14px;
    background: rgba(2, 137, 41, 0.08);
    color: var(--ink);
    font-size: 1.45rem;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.work-card:hover i {
    background: var(--ink);
    color: #fff;
}
.work-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}
.work-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--stone-d);
}
@media (prefers-reduced-motion: reduce) {
    .work-card,
    .work-card::after,
    .work-card i {
        transition: none;
    }
    .work-card:hover {
        transform: none;
    }
}

/* ---------- 13. Regions -------------------------------------------------- */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.15rem;
}
/* There are nine trekking sections, so three across fills every row. The
   mosaic's wide and tall tiles were leaving a ragged last row. */
@media (min-width: 992px) {
    .region-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .region-grid .region--wide {
        grid-column: auto;
    }
    .region-grid .region--tall {
        min-height: 310px;
    }
}
.region {
    position: relative;
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    min-height: 310px;
    color: var(--snow);
    background: var(--ink-2);
    isolation: isolate;
}
.region--tall {
    min-height: 420px;
}
@media (min-width: 992px) {
    .region--wide {
        grid-column: span 2;
    }
}
.region img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
    z-index: -2;
}
.region::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 76, 22, 0.06) 22%,
        rgba(0, 76, 22, 0.88) 100%
    );
    transition: background 0.4s var(--ease);
}
.region:hover img {
    transform: scale(1.07);
}
.region:hover::after {
    background: linear-gradient(
        180deg,
        rgba(0, 76, 22, 0.3) 0%,
        rgba(0, 76, 22, 0.94) 100%
    );
}
.region-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.region-body h3 {
    font-size: 1.35rem;
    /* Two-line section names were running up into the trail-count chip. */
    margin: 0;
    line-height: 1.24;
}
.region-body .elev {
    align-self: flex-start;
}
.region-body p {
    margin: 0;
    font-size: 0.93rem;
    color: #c9d7e2;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.45s var(--ease),
        opacity 0.35s var(--ease);
}
.region:hover .region-body p,
.region:focus-visible .region-body p {
    max-height: 7rem;
    opacity: 1;
}
@media (hover: none) {
    .region-body p {
        max-height: 7rem;
        opacity: 1;
    }
}
.region .elev {
    align-self: flex-start;
    color: var(--marigold);
}

/* ---------- 14. Member finder ------------------------------------------- */
.finder {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-2);
    color: var(--snow);
    padding: clamp(2.25rem, 5vw, 4rem);
}
.finder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.taan.org.np/public/images/search-cover.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}
.finder > * {
    position: relative;
}
.finder-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.9rem;
    max-width: 900px;
}
@media (min-width: 768px) {
    .finder-form {
        grid-template-columns: 1.4fr 1fr auto;
    }
}
.finder-form .fld {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1.15rem;
}
.finder-form .fld i {
    color: var(--marigold);
}
.finder-form input,
.finder-form select {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--snow);
    font-family: var(--ff-body);
    font-size: 1rem;
    padding: 0.78rem 0;
}
.finder-form input::placeholder {
    color: #93a7b8;
}
.finder-form select option {
    background: var(--ink);
}
.finder-form input:focus,
.finder-form select:focus {
    outline: none;
}
.finder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.3rem;
}
.finder-tags span {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b6c6d4;
}
.finder-tags a {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    transition:
        border-color 0.25s,
        color 0.25s;
}
.finder-tags a:hover {
    border-color: var(--marigold);
    color: var(--marigold);
}

/* ---------- 15. Permits (tabs + table) ---------------------------------- */
.permit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.permit-tabs button {
    font-family: var(--ff-display);
    font-weight: 620;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--line-light);
    background: transparent;
    color: var(--stone-d);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.permit-tabs button.is-on {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--snow);
}
.permit-panel {
    display: none;
}
.permit-panel.is-on {
    display: block;
    animation: fadeUp 0.5s var(--ease) both;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}
.fee-table th,
.fee-table td {
    text-align: left;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--line-light);
    vertical-align: top;
}
.fee-table thead th {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom-width: 1.5px;
}
.fee-table tbody tr {
    transition: background-color 0.25s;
}
.fee-table tbody tr:hover {
    background: #fff;
}
.fee-table td.amt {
    font-family: var(--ff-mono);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}
.fee-note {
    font-family: var(--ff-mono);
    font-size: 0.74rem;
    color: var(--stone);
    margin-top: 1.1rem;
    letter-spacing: 0.04em;
}
.table-scroll {
    overflow-x: auto;
}

/* ---------- 16. TIMS ----------------------------------------------------- */
.tims {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (min-width: 992px) {
    .tims {
        grid-template-columns: 1.05fr 0.95fr;
    }
}
.tims-card {
    background: linear-gradient(140deg, var(--glacier-d), var(--ink-2) 78%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--r-md);
    padding: 1.9rem;
    color: var(--snow);
    box-shadow: 0 28px 60px rgba(0, 76, 22, 0.3);
}
.tims-card .row-k {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}
.tims-card .row-k:last-child {
    border-bottom: 0;
}
.tims-card .row-k span:first-child {
    color: #b6c6d4;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}
.tims-chip {
    width: 46px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--marigold), #c9821f);
    margin-bottom: 1.3rem;
}
.steps {
    list-style: none;
    counter-reset: s;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 1.1rem;
}
.steps li {
    display: flex;
    gap: 1rem;
    counter-increment: s;
}
.steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--ff-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--marigold);
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    flex: none;
}
.steps b {
    display: block;
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: 1rem;
}
.steps p {
    margin: 0.2rem 0 0;
    font-size: 0.94rem;
    color: #b9c8d6;
}

/* ---------- 17. Sustainability pledge ----------------------------------- */
.pledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.pledge {
    border-top: 2px solid var(--ink);
    padding-top: 1.2rem;
}
.pledge .k {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rhodo);
    margin-bottom: 0.6rem;
}
.pledge h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.pledge p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--stone-d);
}

/* ---------- 18. News / notices ------------------------------------------ */
.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 992px) {
    .news-layout {
        grid-template-columns: 1.55fr 0.95fr;
        gap: 3rem;
        /* The board is as tall as the notices in it, rather than stretching
           to match the stories beside it. */
        align-items: start;
    }
}

.news-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--line-light);
}
@media (min-width: 600px) {
    .news-card {
        grid-template-columns: 220px 1fr;
        gap: 1.6rem;
    }
}
.news-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.news-thumb {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.news-card:hover .news-thumb img {
    transform: scale(1.06);
}
.news-date {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.6rem;
}
.news-card h3 {
    font-size: 1.28rem;
    line-height: 1.22;
}
.news-card h3 a:hover {
    color: var(--ink-3);
}
.news-card p {
    font-size: 0.96rem;
    color: var(--stone-d);
    margin: 0.7rem 0 0.9rem;
}

.notice-board {
    background: var(--ink);
    color: var(--snow);
    border-radius: var(--r-md);
    padding: 1.75rem;
}
.notice-board h3 {
    font-size: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-dark);
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    max-height: 380px;
    overflow-y: auto;
}
.notice-list li {
    padding: 0.95rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.notice-list a {
    display: block;
    font-size: 0.96rem;
    color: #d3dfe9;
    transition: color 0.25s;
}
.notice-list a:hover {
    color: var(--marigold);
}
.notice-list .d {
    display: block;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.3rem;
}
.notice-list::-webkit-scrollbar {
    width: 4px;
}
.notice-list::-webkit-scrollbar-thumb {
    background: var(--glacier-d);
    border-radius: 4px;
}
.tag-new {
    font-family: var(--ff-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    background: var(--rhodo);
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* ---------- 19. Gallery -------------------------------------------------- */
.gal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .gal {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 190px;
    }
}
.gal a {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    display: block;
}
@media (min-width: 768px) {
    .gal a:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .gal a:nth-child(6) {
        grid-column: span 2;
    }
}
.gal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.9s var(--ease);
}
@media (min-width: 768px) {
    .gal img {
        aspect-ratio: auto;
    }
}
.gal a::after {
    content: "+";
    font-family: var(--ff-display);
    font-weight: 400;
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 76, 22, 0.55);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.gal a:hover img {
    transform: scale(1.08);
}
.gal a:hover::after {
    opacity: 1;
}

/* ---------- 20. Membership CTA ------------------------------------------ */
.join {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: var(--snow);
    background: var(--ink);
}
.join img.join-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.join-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: clamp(2.25rem, 5vw, 4rem);
}
@media (min-width: 992px) {
    .join-inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
        align-items: center;
    }
}
.join-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.75rem;
}
.join-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--stone-d, #222) !important;
}
.band--dark .join-list li,
.join .join-list li,
.prez-stage .join-list li {
    color: rgba(255, 255, 255, 0.94) !important;
}
.join-list i {
    color: var(--marigold);
    margin-top: 0.3rem;
    flex: none;
}
.join-panel {
    background: rgba(0, 76, 22, 0.72);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-md);
    padding: 1.75rem;
    backdrop-filter: blur(6px);
}
.join-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}
/* The steps inside the panel sit on a green wash, not the ink the shared
   .steps colours were chosen for. */
.join-panel .steps p {
    color: rgba(255, 255, 255, 0.8);
}
.join-panel .steps b {
    color: var(--snow);
}

/* ---------- 21. Partners / accreditation -------------------------------- */
.partners-head {
    text-align: center;
    margin-bottom: 2rem;
}
.partners-head .legend {
    justify-content: center;
    color: var(--ink-3);
}
.partners-head .legend::before {
    background: linear-gradient(90deg, var(--ink-3) 0 50%, var(--marigold) 50% 100%);
    clip-path: none;
    width: 34px;
    height: 4px;
    border-radius: 999px;
}
.partners-head .sec-lede {
    color: var(--stone-d);
}
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
}
.partner-logo-card {
    width: min(220px, calc(50% - .75rem));
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(2, 137, 41, 0.14);
    border-top: 4px solid var(--ink-3);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(16, 38, 66, 0.04);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.partner-logo-card:nth-child(even) {
    border-top-color: var(--marigold);
}
.partner-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 38, 66, 0.08);
    border-color: rgba(2, 137, 41, 0.24);
}
.partner-logo-card img {
    max-height: 74px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}
@media (max-width: 575.98px) {
    .partner-logo-card {
        width: 100%;
        max-width: 320px;
    }
}

/* ---------- 22. Support strip ------------------------------------------- */
.support {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .support {
        grid-template-columns: 1.3fr 0.7fr;
    }
}
.support-num {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--marigold);
    letter-spacing: -0.01em;
}

/* ---------- 23. Footer --------------------------------------------------- */
.site-foot {
    background: var(--navy);
    color: #b7c6d8;
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
/* One divider between the footer columns and the copyright strip. The
   columns used to draw their own bottom border as well, with a 3.5rem gap
   before this one, so the footer showed two lines with nothing between. */
.site-foot .foot-bottom {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.75rem;
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-grid h4 {
    font-size: 0.8rem;
    font-family: var(--ff-mono);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--marigold);
    margin-bottom: 1.25rem;
}
.foot-logo {
    margin-bottom: 1.25rem;
}
.foot-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}
.foot-grid ul a {
    font-size: 0.95rem;
    transition:
        color 0.25s,
        padding-left 0.25s var(--ease);
}
.foot-grid ul a:hover {
    color: var(--marigold);
    padding-left: 0.35rem;
}
.foot-grid p {
    font-size: 0.95rem;
    margin: 0 0 1rem;
}
.foot-contact {
    display: grid;
    gap: 0.7rem;
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}
.foot-contact div {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}
.foot-contact i {
    color: var(--marigold);
    margin-top: 0.15rem;
}

.subscribe {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.subscribe input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    color: var(--snow);
    font-family: var(--ff-body);
}
.subscribe input::placeholder {
    color: #7b8b9c;
}
.subscribe input:focus {
    outline: none;
    border-color: var(--marigold);
}
.subscribe button {
    border: 0;
    border-radius: 999px;
    width: 48px;
    flex: none;
    background: var(--marigold);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.subscribe button:hover {
    background: #f5b450;
}
.form-msg {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    min-height: 1rem;
}

.socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.4rem;
}
.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}
.socials a:hover {
    background: var(--marigold);
    color: var(--text);
    border-color: var(--marigold);
    transform: translateY(-3px);
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.6rem 2rem;
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #7b8b9c;
}
.foot-bottom a:hover {
    color: var(--marigold);
}
.site-foot .foot-grid h4 {
    color: var(--snow);
}
.site-foot .foot-grid ul a,
.site-foot .foot-bottom a {
    color: #b7c6d8;
}
.site-foot .foot-contact i {
    color: var(--marigold);
}

/* ---------- 24. Back to top --------------------------------------------- */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--marigold);
    color: var(--snow);
    font-size: 1.15rem;
    display: grid;
    place-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.35s var(--ease);
    box-shadow: 0 12px 28px rgba(0, 76, 22, 0.3);
}
.to-top.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 767.98px) {
    .band {
        padding-block: clamp(2.75rem, 8vw, 3.75rem);
    }
}

/* ---------- 25. Motion --------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}
.reveal[data-d="1"] {
    transition-delay: 0.09s;
}
.reveal[data-d="2"] {
    transition-delay: 0.18s;
}
.reveal[data-d="3"] {
    transition-delay: 0.27s;
}
.reveal[data-d="4"] {
    transition-delay: 0.36s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *:not(.marquee-track),
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-slide img {
        transform: none;
    }
}

/* Short pages used to leave the page background showing under the footer,
   so the body fills the viewport and main takes up the slack. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

body > .site-foot {
    flex-shrink: 0;
}

/* Footer logo sits on a white plate so the full-colour mark stays legible
   against the green. */
.foot-logo {
    background: #fff;
    padding: 0.7rem 1rem;
    border-radius: var(--r-md);
    height: auto;
    max-width: 260px;
    width: 100%;
}

/* ---------- Legacy CMS page hero ---------------------------------------
   17 templates (page, faq, newsletter, committees, galleries …) still use
   this markup, whose styles lived in the disabled scss/style.css. Without
   them the banner image just flowed and the white <h1> landed on the light
   page background, invisible. This restores the overlay used elsewhere. */
.section-bg-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(280px, 34vw, 430px);
    overflow: clip;
    background: var(--ink);
}

.section-bg-banner .hero-bg {
    position: absolute;
    inset: 0;
}

.section-bg-banner .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-bg-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
}

.section-bg-banner > .container {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 7vw, 5rem);
}

.section-hero-title h1 {
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    color: var(--snow);
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- Digital TIMS band, plain white ------------------------------
   Same block as the image-backed CTA bands, but on a plain white ground.
   Only the copy that was hardcoded light needs restating; everything else
   inherits the light-context colours now that .band--dark is gone. */
.tims-band--plain {
    background: #fff;
}

.tims-band--plain .steps p,
.tims-band--plain .fee-note {
    color: var(--stone-d);
}

/* ---------- Breadcrumbs -------------------------------------------------
   One breadcrumb for the whole site, the permit pages' one: small mono type
   above the page title, the current page in marigold, no home icon. The
   templates got there by four different routes — a hand-rolled trail, two
   copies of it under other names, and Bootstrap's own — so all four are
   named here rather than rewritten one page at a time. */
.crumbs,
.permit-crumbs,
.breadcrumb-trail,
.departments-breadcrumb,
.committee-breadcrumb,
.breadcrumb-modern,
.page-banner .breadcrumb,
.section-bg-banner .breadcrumb,
.bg-breadcrumd .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    padding: 0;
    list-style: none;
    background: none;
    font-family: var(--ff-mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #cfdce7;
}

.crumbs a,
.permit-crumbs a,
.breadcrumb-trail a,
.departments-breadcrumb a,
.committee-breadcrumb a,
.breadcrumb-modern a,
.page-banner .breadcrumb a,
.section-bg-banner .breadcrumb a,
/* These older heroes paint their links with Bootstrap's .text-white, which
   carries !important, so this has to answer in kind. */
.bg-breadcrumd .breadcrumb a {
    color: #cfdce7 !important;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.crumbs a:hover,
.permit-crumbs a:hover,
.breadcrumb-trail a:hover,
.departments-breadcrumb a:hover,
.committee-breadcrumb a:hover,
.breadcrumb-modern a:hover,
.page-banner .breadcrumb a:hover,
.section-bg-banner .breadcrumb a:hover,
.bg-breadcrumd .breadcrumb a:hover {
    color: var(--marigold) !important;
}

.crumbs .sep,
.permit-crumbs .sep,
.breadcrumb-trail .sep,
.departments-breadcrumb .sep,
.committee-breadcrumb .sep {
    opacity: 0.45;
}

.crumbs .is-current,
.permit-crumbs .is-current,
.breadcrumb-trail .is-current,
.departments-breadcrumb .is-current,
.committee-breadcrumb .is-current,
.breadcrumb-modern .active,
.page-banner .breadcrumb .active,
.section-bg-banner .breadcrumb .active,
.bg-breadcrumd .breadcrumb .active {
    color: var(--marigold) !important;
}

/* The Bootstrap markup keeps its list items; only the separator and the
   colours need saying, since the rules above already lay the list out. */
.breadcrumb-modern .breadcrumb-item,
.page-banner .breadcrumb-item,
.section-bg-banner .breadcrumb-item,
.bg-breadcrumd .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #cfdce7;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before,
.page-banner .breadcrumb-item + .breadcrumb-item::before,
.section-bg-banner .breadcrumb-item + .breadcrumb-item::before,
.bg-breadcrumd .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0;
    color: inherit;
    opacity: 0.45;
}

/* The house icon several pages open with says nothing the word "Home" does
   not, and the permit pages never had one. */
.crumbs .bi-house-door-fill,
.permit-crumbs .bi-house-door-fill,
.breadcrumb-trail .bi-house-door-fill,
.departments-breadcrumb .bi-house-door-fill,
.committee-breadcrumb .bi-house-door-fill {
    display: none;
}

/* The trail belongs above the title. Most heroes print it underneath, so any
   hero holding one is laid out as a column and the trail moved to the front —
   one rule, rather than the same edit in nineteen templates. Written with
   :has() so it finds the bespoke heroes too, whatever they call themselves. */
.shell:has(> .crumbs),
.shell:has(> .permit-crumbs),
.shell:has(> .breadcrumb-trail),
.shell:has(> .departments-breadcrumb),
.shell:has(> .committee-breadcrumb),
.shell:has(> .breadcrumb),
.shell:has(> nav > .breadcrumb) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shell > .crumbs,
.shell > .permit-crumbs,
.shell > .breadcrumb-trail,
.shell > .departments-breadcrumb,
.shell > .committee-breadcrumb,
.shell > .breadcrumb,
.shell > nav:has(> .breadcrumb) {
    order: -1;
}

/* Same again for the older heroes, which wrap their trail in a nav inside
   .bg-breadcrumd rather than in a .shell. */
.bg-breadcrumd:has(> nav > .breadcrumb) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bg-breadcrumd > nav:has(> .breadcrumb) {
    order: -1;
}

/* ---------- Legacy hero banners ----------------------------------------
   A handful of older templates (a post, a member profile, a trail package)
   draw their hero as .inner-banner with the photo as a plain <img> and the
   title over it. That layout lived in scss/style.css, which is commented out
   of the layout, so these pages had no hero at all — a white band with white
   text in it. This gives them the same hero as everywhere else, so their
   breadcrumbs read the same way too. */
.inner-banner {
    position: relative;
    display: grid;
    isolation: isolate;
    background: var(--ink);
    overflow: clip;
}

.inner-banner > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inner-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: transparent;
}

.inner-banner__navbar {
    min-height: clamp(280px, 34vw, 430px);
    padding-block: clamp(3rem, 7vw, 5rem);
    color: var(--snow);
}

.bg-breadcrumd h1 {
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    color: var(--snow);
    margin: 0 0 0.6rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* The quick links that sit beside the title on those pages. */
.inner-banner .quick-view {
    gap: 1.4rem;
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inner-banner .quick-view a {
    color: #cfdce7;
    text-decoration: none;
}

.inner-banner .quick-view a:hover {
    color: var(--marigold);
}
.inner-banner .quick-view span {
    color: var(--marigold);
}
/* Trekking region: CKEditor italic lead -> green, not italic */
.region-copy p:first-child > i,
.region-copy p:first-child > em,
.region-copy p:first-child i:only-child,
.region-copy p:first-child em:only-child { font-style: normal !important; color: #028929 !important; font-weight: 600; }

/* ---------- Page banners: one fixed size on every inner page ------------
   Each page used to size its banner from its own padding, so heights varied
   from page to page with the title length. They now share one height per
   screen size. "html body" lifts this above the per-page <style> blocks and
   permit-page.css without !important.

   Image quality: banners are full-bleed with background-size: cover, so the
   photo is only ever scaled to fill the frame, never stretched out of shape.
   Uploads are served at their original resolution (nothing is resized on
   upload), and no filter or transform is applied, so the image renders at its
   native sharpness. For crisp results on large and retina screens, upload
   banner photos at least 2400px wide. */
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) {
    --banner-h: clamp(380px, 42vw, 600px);
    min-height: var(--banner-h);
    background-size: cover;
    background-repeat: no-repeat;
    image-rendering: auto;
}

/* Banners that are just a title block: fixed height, title centred in it. */
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner) > .shell,
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner) > .container {
    width: 100%;
}

/* .inner-banner sets its height on the inner navbar block. */
html body .inner-banner .inner-banner__navbar {
    min-height: var(--banner-h);
}

@media (max-width: 991.98px) {
    html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
            .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) {
        --banner-h: 400px;
    }
}
@media (max-width: 575.98px) {
    html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
            .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) {
        --banner-h: 330px;
    }
}

/* ---------- Banner legibility: soft left shade ---------------------------
   A smooth dark fade sits behind the text on the left and is gone by the
   middle of the banner, so the right side of the photo shows untouched and
   the text reads cleanly on any photo, however bright. */
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .trail-hero) {
    position: relative;
    isolation: isolate;
}
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .trail-hero)::before,
html body :is(.section-bg-banner, .inner-banner)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(4, 16, 9, 0.78) 0%,
            rgba(4, 16, 9, 0.62) 28%,
            rgba(4, 16, 9, 0.3) 50%,
            rgba(4, 16, 9, 0.08) 66%,
            rgba(4, 16, 9, 0) 78%);
}
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .trail-hero)::before {
    z-index: 0;
}
html body .section-bg-banner::after {
    z-index: 0;
}
html body .inner-banner::after {
    z-index: -1;
}
html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
        .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .trail-hero) > .shell,
html body .section-bg-banner > .container {
    position: relative;
    z-index: 1;
}
/* On narrow screens the text runs the full width, so the shade reaches
   further across. */
@media (max-width: 767.98px) {
    html body :is(.page-banner, .permit-hero, .member-banner, .secretariat-banner,
            .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .trail-hero)::before,
    html body :is(.section-bg-banner, .inner-banner)::after {
        background: linear-gradient(90deg,
            rgba(4, 16, 9, 0.76) 0%,
            rgba(4, 16, 9, 0.6) 60%,
            rgba(4, 16, 9, 0.38) 100%);
    }
}

/* Banner text: solid colours, a light shadow for crisp edges. */
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) h1 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.legend, .trail-kicker) {
    color: var(--marigold);
    font-weight: 700;
    text-shadow: none;
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.crumbs, .permit-crumbs,
        .breadcrumb-trail, .departments-breadcrumb, .committee-breadcrumb, .breadcrumb, .trail-breadcrumb) {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.crumbs, .permit-crumbs,
        .breadcrumb-trail, .departments-breadcrumb, .committee-breadcrumb, .breadcrumb, .trail-breadcrumb) a,
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) .breadcrumb-item {
    color: rgba(255, 255, 255, 0.92) !important;
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.crumbs, .permit-crumbs,
        .breadcrumb-trail, .departments-breadcrumb, .committee-breadcrumb, .breadcrumb, .trail-breadcrumb) a:hover {
    color: var(--marigold) !important;
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.sep,
        .breadcrumb-item + .breadcrumb-item::before) {
    opacity: 1;
    color: rgba(255, 255, 255, 0.55);
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.is-current, .breadcrumb .active) {
    color: var(--marigold) !important;
    font-weight: 600;
}

/* The committee and departments breadcrumbs use a bare <span>/</span> as the
   separator, so match it the same as .sep. */
html body :is(.committee-banner, .archive-banner, .departments-banner)
        :is(.committee-breadcrumb, .departments-breadcrumb) > span:not(.is-current) {
    opacity: 1;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Banner type scale: one size on every inner page --------------
   Matches the trekking-section banner, which set its own larger title; the
   other pages were still on the older, smaller size. */
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) h1,
html body .section-bg-banner .section-hero-title h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 18ch;
    margin: 0.2rem 0 1.25rem;
}
html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner,
        .secretariat-banner, .president-banner, .committee-banner, .archive-banner,
        .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.legend, .trail-kicker) {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
@media (max-width: 575.98px) {
    html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner, .secretariat-banner, .president-banner, .committee-banner, .archive-banner, .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) h1,
    html body .section-bg-banner .section-hero-title h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }
    html body :is(.page-banner, .section-bg-banner, .permit-hero, .member-banner, .secretariat-banner, .president-banner, .committee-banner, .archive-banner, .contact-page-banner, .departments-banner, .inner-banner, .trail-hero) :is(.crumbs, .permit-crumbs, .breadcrumb-trail,
            .departments-breadcrumb, .committee-breadcrumb, .breadcrumb, .trail-breadcrumb) {
        font-size: 0.88rem;
    }
}

/* ---------- One font family everywhere -----------------------------------
   Inter (var(--ff-sans)) is the only text face on the site. Bootstrap and
   Fancybox carry their own font stacks, and content pasted into CKEditor
   (often from Word) arrives with inline font-family / <font face> markup;
   all of it is pointed back at the site font here. Icon fonts are left
   alone. */
:root {
    --bs-font-sans-serif: var(--ff-sans);
    --bs-body-font-family: var(--ff-sans);
    --f-font-family: var(--ff-sans);
}
body,
button,
input,
select,
optgroup,
textarea,
.btn,
.form-control,
.form-select,
.tooltip,
.popover,
.dropdown-menu,
.modal,
.offcanvas,
.fancybox__container,
.fancybox__caption {
    font-family: var(--ff-sans);
}
/* Rich-text content: inline fonts from the editor fall back to the site's. */
main [style*="font-family"]:not(i):not([class*="bi-"]):not([class*="fa-"]),
main font[face],
.offcanvas [style*="font-family"]:not(i) {
    font-family: var(--ff-sans) !important;
}

/* ---------- Banner layout fixes (audit) ----------------------------------- */

/* Older template (.section-bg-banner: FAQ, Downloads, Album, Publications,
   Organisations chart, Previous committee ...): same content width and
   left edge as every other banner, title centred vertically, the decorative
   page-title icon (which drew a blank white box) hidden, and the small line
   above the title styled as the orange eyebrow used elsewhere. */
html body .section-bg-banner {
    align-items: center;
}
html body .section-bg-banner > .container {
    width: 100%;
    max-width: var(--shell);
    padding-inline: var(--gutter);
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
    margin-inline: auto;
}
html body .section-bg-banner .page-title-icon {
    display: none;
}
html body .section-bg-banner .section-hero-title > p:first-child:not(.breadcrumb-trail) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--marigold) !important;
}
html body .section-bg-banner .section-hero-title > p:first-child:not(.breadcrumb-trail)::before {
    content: "";
    width: 26px;
    height: 10px;
    flex: none;
    background: currentColor;
    clip-path: polygon(0 100%, 26% 22%, 44% 62%, 68% 0, 100% 100%);
}

/* Breadcrumbs the shared rules didn't know about: the secretariat page and
   the trail detail page. Same look, same place (above the title). */
html body :is(.secretariat-breadcrumb, .trail-breadcrumb) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}
html body :is(.secretariat-breadcrumb, .trail-breadcrumb) a {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
}
html body :is(.secretariat-breadcrumb, .trail-breadcrumb) a:hover {
    color: var(--marigold) !important;
}
html body :is(.secretariat-breadcrumb, .trail-breadcrumb) > span:not(.is-current):not(.current) {
    opacity: 1;
    color: rgba(255, 255, 255, 0.55);
}
html body :is(.secretariat-breadcrumb, .trail-breadcrumb) :is(.is-current, .current) {
    color: var(--marigold) !important;
    font-weight: 600;
}
html body .secretariat-breadcrumb .bi-house-door-fill {
    display: none;
}
html body :is(.secretariat-banner, .trail-hero) > .shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
html body :is(.secretariat-banner, .trail-hero) > .shell > :is(.secretariat-breadcrumb, .trail-breadcrumb) {
    order: -1;
}

/* Article and detail pages carry long titles (news posts, newsletters,
   trails, member and staff profiles). At the listing-page size they ran to
   three lines and pushed the banner taller; here the title steps down a size
   and runs a little wider. */
html body :is(.trail-hero, .page-banner:has(.story-meta), .page-banner:has(.nl-meta)) h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    max-width: 24ch;
    line-height: 1.08;
}
@media (max-width: 575.98px) {
    html body :is(.trail-hero, .page-banner:has(.story-meta), .page-banner:has(.nl-meta)) h1 {
        font-size: clamp(1.75rem, 7.5vw, 2.4rem);
    }
}

/* ---------- Layout consistency (site audit) --------------------------------
   Older templates lay their content out in Bootstrap's .container, which is
   wider (1320px) and has a narrower side gutter than the site's .shell, so
   their text started 64px further left than the logo, banner title and every
   other page. Inside the page body it now matches .shell exactly. */
main .container {
    max-width: var(--shell);
    padding-inline: var(--gutter);
}

/* Heading scale for content headings that carry no component class (older
   templates, editor content). "main :where(hN)" sits at element
   specificity: it replaces Bootstrap's oversized defaults (h1 40px, h3 28px)
   but never overrides a component that sizes its own headings. */
main :where(h1) { font-size: clamp(1.6rem, 3vw, 2.35rem); }
main :where(h2) { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
main :where(h3) { font-size: 1.25rem; line-height: 1.3; }
main :where(h4) { font-size: 1.1rem; line-height: 1.35; }
main :where(h5) { font-size: 1rem; line-height: 1.4; }
main :where(h6) { font-size: 0.9rem; line-height: 1.4; }

/* Section rhythm: older templates space their sections with Bootstrap's
   py-lg-5 / mt-lg-5 (48px) and py-3 on phones; every other page uses the
   shared --sec-y. */
main section:is(.py-lg-5, .py-3),
main .faq .col-lg-12.py-lg-5 {
    padding-top: var(--sec-y) !important;
    padding-bottom: var(--sec-y) !important;
}
main section.mt-lg-5 {
    margin-top: var(--sec-y) !important;
}

/* No page may scroll sideways on a phone. */
html,
body {
    overflow-x: clip;
}

/* Banner eyebrows: the permit pages' .permit-eyebrow and the trail page's
   .trail-kicker get the same weight, size and mountain mark as .legend. */
html body :is(.permit-hero, .trail-hero) :is(.permit-eyebrow, .trail-kicker) {
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    font-family: var(--ff-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--marigold);
    text-shadow: none;
}
html body .permit-hero .permit-eyebrow svg {
    width: 26px;
    height: 12px;
}
html body .trail-hero .trail-kicker::before {
    width: 26px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(0 100%, 26% 22%, 44% 62%, 68% 0, 100% 100%);
}

/* Phones: a long breadcrumb (detail pages) stays on one line, the current
   page's title is cut with an ellipsis instead of wrapping to three lines. */
@media (max-width: 575.98px) {
    html body :is(.crumbs, .permit-crumbs, .breadcrumb-trail, .departments-breadcrumb,
            .committee-breadcrumb, .secretariat-breadcrumb, .trail-breadcrumb) {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }
    html body :is(.crumbs, .permit-crumbs, .breadcrumb-trail, .departments-breadcrumb,
            .committee-breadcrumb, .secretariat-breadcrumb, .trail-breadcrumb) > * {
        flex: none;
    }
    html body :is(.crumbs, .permit-crumbs, .breadcrumb-trail, .departments-breadcrumb,
            .committee-breadcrumb, .secretariat-breadcrumb, .trail-breadcrumb) > :is(.is-current, .current) {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* The older template's title block lays out like the other banners:
   breadcrumb, eyebrow, title. */
html body .section-bg-banner .section-hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
html body .section-bg-banner .section-hero-title h1 {
    margin-bottom: 0 !important;
}

/* ---------- Navigation: current page ---------------------------------------
   The top-level item for the section you're in is highlighted (set in the
   header by route), and inside its dropdown / the mobile menu the exact page
   you're on is marked too. */
.drop a.is-current {
    background: rgba(0, 139, 50, 0.08);
    color: var(--ink-3);
    box-shadow: inset 3px 0 0 var(--ink-3);
}

/* Two plain (white) sections in a row: each keeps its full padding on the
   outside, but the seam between them is tightened. At full padding on both
   sides the boundary was ~130px of white with only a hairline in it, which
   read as an empty band (e.g. "Ways to walk across Nepal" → "What members
   sign up to" on the home page). */
.band:not(.band--tint):not(.band--dark):has(+ .band:not(.band--tint):not(.band--dark):not(.tims-apply-band):not(#join)) {
    padding-bottom: calc(var(--sec-y) * 0.6);
}
.band:not(.band--tint):not(.band--dark) + .band:not(.band--tint):not(.band--dark):not(.tims-apply-band):not(#join) {
    padding-top: calc(var(--sec-y) * 0.6);
}

/* ---------- Home page clean-up --------------------------------------------- */

/* Utility bar: icon and label spaced evenly; on phones it carries only the
   three links on one line — the "official website" line is dropped there. */
.util-left a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.util-flag {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 0;
}
@media (max-width: 767.98px) {
    .util-official {
        display: none !important;
    }
    .util .shell > .util-left:first-child {
        display: none;
    }
    .util-left {
        flex-wrap: nowrap;
        gap: 0 1rem !important;
        white-space: nowrap;
    }
}

/* Header: the menu sits against the right edge instead of stopping short. */
@media (min-width: 992px) {
    .site-head .nav-main {
        margin-left: auto;
    }
}

/* Hero buttons: equal width when they stack on phones. */
@media (max-width: 575.98px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta > a {
        justify-content: center;
        width: 100%;
    }
}

/* "What members sign up to": category labels in the brand orange used for
   every other eyebrow, not the one-off dark red. */
.pledge .k {
    color: var(--marigold-d);
    font-weight: 700;
}

/* Membership panel: a deep forest-green ground under the photo instead of
   the bright brand green, which washed the whole card out to neon. */
.join {
    background: #0d3a20;
}
.join img.join-bg {
    opacity: 0.32;
}
.join-panel {
    background: rgba(5, 30, 15, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}
.join-panel .btn-taan {
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}

/* Accreditation & partners: same eyebrow as every other section, and calm
   logo cards without the alternating green/orange top bars. */
.partners-head .legend {
    color: var(--marigold-d);
}
.partners-head .legend::before {
    width: 26px;
    height: 10px;
    border-radius: 0;
    background: currentColor;
    clip-path: polygon(0 100%, 26% 22%, 44% 62%, 68% 0, 100% 100%);
}
.partner-logo-card,
.partner-logo-card:nth-child(even) {
    border-top: 1px solid rgba(2, 137, 41, 0.14);
}


/* ---------- Titles in Literata -------------------------------------------
   Titles, the small labels above them ("subtitles") and breadcrumbs use the
   serif Literata; body text, buttons, menus and form fields stay in Inter.
   !important because many components set their own font on headings. */
:root {
    --ff-serif: "Literata", Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, h5, h6,
.sec-title,
.sub-title {
    font-family: var(--ff-serif) !important;
    letter-spacing: -0.005em;
}

/* Subtitles: the labels above titles. */
.legend,
.permit-eyebrow,
.trail-kicker,
.section-kicker {
    font-family: var(--ff-serif) !important;
}

/* Breadcrumbs on every banner. */
.breadcrumb-trail,
.crumbs,
.permit-crumbs,
.departments-breadcrumb,
.committee-breadcrumb,
.trail-breadcrumb,
.inner-banner .breadcrumb,
.section-bg-banner .breadcrumb {
    font-family: var(--ff-serif) !important;
}
