/* ─────────────────────────────────────────────────────────────────────────────
   Nikalas Foundation site header — ContactStrip.razor (.nft-*) + Header.razor (.nfh-*).
   Both sit inside MainLayout's fixed .site-topbar (app.css); --topbar-h below is the
   exact height of that bar and drives <main>'s top offset.

   Colour: palette navy #06366B / blue #0B4D8C / orange #FF8500 / text #172B4D.
   Orange TEXT uses --nfh-orange-text (#BF5600, 4.6:1 on white) because #FF8500 on
   white is 2.4:1; the bright orange is kept for bars, icons and the Donate button.

   Specificity: responsive-normalize.css (loaded last) sets img[width][height]{height:auto}
   and clamps loose SVGs — hence img[width] selectors and .svg-noclamp on every icon.
   ───────────────────────────────────────────────────────────────────────────── */

.rioc-app {
    --nfh-navy: var(--nfd-navy, #102F65);
    --nfh-blue: #0B4D8C;
    --nfh-orange: #FF8500;
    --nfh-orange-text: #BF5600;
    --nfh-orange-tint: #FFF4E6;
    --nfh-text: var(--nfd-text, #26364D);
    --nfh-muted: var(--nfd-muted, #64748B);
    --nfh-surface: #F1F4F9;
    --nfh-line: #E6EBF3;
    --nfh-ease: cubic-bezier(.2, .7, .2, 1);

    --topbar-h: 120px;          /* 40 strip + 80 header */
}

.rioc-app .site-topbar {
    background: #fff;
    box-shadow: 0 8px 24px -14px rgba(6, 54, 107, .35);
}

/* ── Top information strip ─────────────────────────────────────────────────── */

.nft {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, #042a55 0%, var(--nfh-navy) 45%, var(--nfh-blue) 100%);
}
/* Orange corner tab on the left: full strip height with a curved right edge.
   It fills only the empty margin left of the centred content (max-width 1320px + 24px padding), so it never
   sits behind the tagline; on narrower screens it shrinks to nothing instead of covering the text. */
.nft::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(0px, calc((100% - 1320px) / 2 + 14px), 300px);
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FF7900'/%3E%3Cstop offset='1' stop-color='%23FFA33A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H62C80 0 88 24 100 40H0Z' fill='url(%23g)'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
}

.nft__inner {
    position: relative;
    max-width: 1320px;
    height: 40px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nft p.nft__tagline {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, .94);
    text-transform: none;
    white-space: nowrap;
}
.nft__tagline span { overflow: hidden; text-overflow: ellipsis; }
.nft__cap { flex: none; width: 20px; height: 20px; color: var(--nfh-orange); }

.nft__contact {
    flex: none;
    display: flex;
    align-items: center;
    gap: 18px;
}
.nft__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease-out;
}
.nft__item svg { flex: none; width: 15px; height: 15px; color: var(--nfh-orange); }
.nft__item:hover { color: #FFC27A; }
.nft__login svg { color: #fff; }

.nft__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .24); }

.nft__social { display: flex; gap: 4px; }
.nft__social a {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    transition: background-color .18s ease-out, transform .18s ease-out;
}
.nft__social a:hover { background: var(--nfh-orange); transform: translateY(-1px); }
.nft__social svg { width: 16px; height: 16px; }

.nft a:focus-visible {
    outline: 2px solid #FFAD42;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── Main header bar ───────────────────────────────────────────────────────── */

.nfh {
    position: relative;
    background: #fff;
    font-family: inherit;
}

.nfh__inner {
    max-width: 1320px;
    height: 80px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nfh__logo { flex: none; display: block; line-height: 0; }
.nfh .nfh__logo img[width] {
    display: block;
    width: auto;
    height: 54px;
    max-width: none;
}

/* Nav: centred in the space between logo and actions. */
.nfh__nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 1vw, 14px);
}
.nfh__item { position: relative; }

.nfh__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nfh-text);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: color .2s ease-out;
}
/* Orange bar grows from the left on hover; stays on the active item. */
.nfh__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--nfh-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s var(--nfh-ease);
}
.nfh__link:hover,
.nfh__link.is-active,
.nfh__item:hover > .nfh__link,
.nfh__item:focus-within > .nfh__link { color: var(--nfh-orange-text); }
.nfh__link:hover::after,
.nfh__link.is-active::after,
.nfh__item:hover > .nfh__link::after,
.nfh__item:focus-within > .nfh__link::after { transform: scaleX(1); }

.nfh__caret { flex: none; width: 15px; height: 15px; transition: transform .2s ease-out; }
.nfh__item:hover .nfh__caret,
.nfh__item:focus-within .nfh__caret { transform: rotate(180deg); }

.nfh a:focus-visible,
.nfh button:focus-visible {
    outline: 2px solid var(--nfh-orange);
    outline-offset: 3px;
}

/* Dropdowns (only for admin-menu items that have children). CSS-only: hover / focus-within. */
.nfh__drop,
.nfh__fly {
    position: absolute;
    z-index: 30;
    min-width: 230px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nfh-line);
    border-radius: 14px;
    box-shadow: 0 22px 44px -16px rgba(6, 54, 107, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s linear .18s;
}
.nfh__drop {
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 8px);
}
.nfh__drop::before {          /* hover bridge across the gap */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}
.nfh__item:hover > .nfh__drop,
.nfh__item:focus-within > .nfh__drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}
.nfh__sub { position: relative; }
.nfh__fly { top: -9px; left: calc(100% + 8px); transform: translateX(6px); }
.nfh__sub:hover > .nfh__fly,
.nfh__sub:focus-within > .nfh__fly { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Right after a navigation (hjc.closeNav adds .is-navigating) keep panels shut until the pointer leaves. */
.nfh__nav.is-navigating .nfh__drop,
.nfh__nav.is-navigating .nfh__fly { opacity: 0 !important; visibility: hidden !important; }

.nfh__drop-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nfh-text);
    text-decoration: none;
    border-radius: 9px;
    white-space: nowrap;
    transition: background-color .15s ease-out, color .15s ease-out;
}
.nfh__drop-link:hover,
.nfh__drop-link.is-active { background: var(--nfh-orange-tint); color: var(--nfh-orange-text); }
.nfh__fly-caret { font-size: 18px; line-height: 1; }

/* ── Actions: search, cart, account, Donate, burger ───────────────────────── */

.nfh__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nfh__icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nfh-surface);
    color: var(--nfh-navy);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease-out, color .2s ease-out, transform .2s ease-out;
}
.nfh__icon-btn svg { width: 21px; height: 21px; }
.nfh__icon-btn:hover { background: var(--nfh-orange-tint); color: var(--nfh-orange-text); transform: translateY(-1px); }
.nfh__icon-btn.is-open { background: var(--nfh-navy); color: #fff; }

.nfh__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--nfh-orange-text);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nfh__donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    /* Deeper than #FF8500 at the text so the white 19px bold label keeps ≥3:1. */
    background: linear-gradient(135deg, #FF8500 0%, #EE7100 45%, #D86000 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 24px -10px rgba(232, 104, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s ease-out, box-shadow .2s ease-out, filter .2s ease-out;
}
.nfh__donate svg { flex: none; width: 18px; height: 18px; transition: transform .25s var(--nfh-ease); }
.nfh__donate:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 30px -12px rgba(232, 104, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nfh__donate:hover svg { transform: scale(1.14); }
.nfh__donate:active { transform: translateY(0); }

/* Signed-in account area. */
.nfh__account { display: flex; align-items: center; gap: 8px; }
.nfh__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--nfh-line);
    border-radius: 999px;
    color: var(--nfh-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease-out, color .2s ease-out, background-color .2s ease-out;
}
.nfh__chip svg { width: 16px; height: 16px; }
.nfh__chip:hover { border-color: var(--nfh-orange); color: var(--nfh-orange-text); background: var(--nfh-orange-tint); }

.nfh__profile { position: relative; }
.nfh__user {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--nfh-navy);
    cursor: pointer;
    font: inherit;
}
.nfh__user .nfh__caret { width: 14px; height: 14px; }
.nfh__user.is-open .nfh__caret { transform: rotate(180deg); }
.nfh__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nfh-blue), var(--nfh-navy));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.nfh__avatar--lg { width: 46px; height: 46px; font-size: 16px; }

.nfh__menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.nfh__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 41;
    width: 260px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nfh-line);
    border-radius: 14px;
    box-shadow: 0 22px 44px -16px rgba(6, 54, 107, .4);
    animation: nfh-drop .18s ease-out;
}
.nfh__menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--nfh-line);
}
.nfh__menu-id { display: flex; flex-direction: column; min-width: 0; }
.nfh__menu-name { font-weight: 700; color: var(--nfh-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfh__menu-role { font-size: 12.5px; color: var(--nfh-muted); }
.nfh__menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--nfh-text);
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease-out, color .15s ease-out;
}
.nfh__menu-item:hover { background: var(--nfh-orange-tint); color: var(--nfh-orange-text); }
.nfh__menu-item--danger { color: #B42318; }
.nfh__menu-item--danger:hover { background: #FEF3F2; color: #B42318; }
.nfh__menu-count {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--nfh-orange-tint);
    color: var(--nfh-orange-text);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.nfh__menu-sep { height: 1px; margin: 6px 4px; background: var(--nfh-line); }
.nfh__menu-form { margin: 0; }

/* Burger (tablet/mobile only). */
.nfh__burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--nfh-surface);
    cursor: pointer;
    transition: background-color .2s ease-out;
}
.nfh__burger span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--nfh-navy);
    transition: transform .25s var(--nfh-ease), opacity .2s ease-out;
}
.nfh__burger:hover { background: var(--nfh-orange-tint); }
.nfh__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nfh__burger.is-open span:nth-child(2) { opacity: 0; }
.nfh__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Search panel (drops below the header) ─────────────────────────────────── */

.nfh__search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 25;
    padding: 14px 24px 16px;
    background: #fff;
    border-top: 1px solid var(--nfh-line);
    box-shadow: 0 20px 30px -20px rgba(6, 54, 107, .4);
    animation: nfh-drop .2s ease-out;
}
.nfh__search-inner {
    max-width: 820px;
    height: 54px;
    margin: 0 auto;
    padding: 0 7px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--nfh-line);
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.nfh__search-inner:focus-within {
    border-color: var(--nfh-orange);
    box-shadow: 0 0 0 4px rgba(255, 133, 0, .15);
}
.nfh__search-ico { flex: none; width: 20px; height: 20px; color: var(--nfh-muted); }
.nfh .nfh__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nfh-text);
    font: inherit;
    font-size: 16px;
}
/* Our own clear button replaces the browser's. */
.nfh__search-input::-webkit-search-cancel-button,
.nfh-drawer__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.nfh__search-clear,
.nfh__search-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--nfh-muted);
    cursor: pointer;
    transition: background-color .15s ease-out, color .15s ease-out;
}
.nfh__search-clear svg,
.nfh__search-close svg { width: 18px; height: 18px; }
.nfh__search-clear:hover,
.nfh__search-close:hover { background: var(--nfh-surface); color: var(--nfh-text); }
.nfh__search-go {
    flex: none;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--nfh-navy);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease-out;
}
.nfh__search-go:hover { background: var(--nfh-blue); }

/* ── Mobile slide-out drawer ───────────────────────────────────────────────── */

.nfh-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(4, 22, 52, .55);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    animation: nfh-fade .22s ease-out;
}
.nfh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    width: min(380px, 88vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -24px 0 48px rgba(4, 22, 52, .28);
    animation: nfh-slide .3s var(--nfh-ease);
}

.nfh-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 18px;
    border-bottom: 1px solid var(--nfh-line);
}
.nfh-drawer__logo { line-height: 0; }
.nfh-drawer .nfh-drawer__logo img[width] { display: block; width: auto; height: 42px; max-width: none; }
.nfh-drawer__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nfh-surface);
    color: var(--nfh-navy);
    cursor: pointer;
}
.nfh-drawer__close svg { width: 20px; height: 20px; }
.nfh-drawer a:focus-visible,
.nfh-drawer button:focus-visible,
.nfh-drawer input:focus-visible { outline: 2px solid var(--nfh-orange); outline-offset: 2px; }

.nfh-drawer__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    margin: 16px 18px 8px;
    padding: 0 5px 0 14px;
    border: 1.5px solid var(--nfh-line);
    border-radius: 999px;
}
.nfh-drawer__search:focus-within { border-color: var(--nfh-orange); }
.nfh-drawer__search > svg { flex: none; width: 18px; height: 18px; color: var(--nfh-muted); }
.nfh-drawer .nfh-drawer__search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nfh-text);
    font: inherit;
    font-size: 15.5px;
}
.nfh-drawer__search button {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nfh-navy);
    color: #fff;
    cursor: pointer;
}
.nfh-drawer__search button svg { width: 17px; height: 17px; }

.nfh-drawer__nav { padding: 6px 12px; }
.nfh-drawer .dnav-item { border-bottom: 1px solid var(--nfh-surface); }
.nfh-drawer .dnav-item:last-child { border-bottom: 0; }
.nfh-drawer .dnav-row {
    display: flex;
    align-items: center;
    margin: 3px 0;
    border-radius: 10px;
    background: none;
    transition: background-color .15s ease-out;
}
.nfh-drawer .dnav-row.is-active { background: var(--nfh-orange-tint); box-shadow: inset 3px 0 0 var(--nfh-orange); }
.nfh-drawer .dnav-link {
    flex: 1;
    display: block;
    padding: 13px 12px;
    color: var(--nfh-text);
    font-size: 16.5px;
    font-weight: 600;
    text-decoration: none;
}
.nfh-drawer .dnav-row.is-active .dnav-link,
.nfh-drawer .dnav-link:hover { color: var(--nfh-orange-text); }
.nfh-drawer .dnav-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--nfh-navy);
    cursor: pointer;
}
.nfh-drawer .dnav-toggle svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
.nfh-drawer .dnav-toggle.open svg { transform: rotate(180deg); }
.nfh-drawer .dnav-children { padding-bottom: 6px; }
.nfh-drawer .dnav-children .dnav-link { font-size: 15px; font-weight: 500; padding-block: 10px; }

.nfh-drawer .nfh-drawer__donate {
    margin: 12px 18px 6px;
    height: 52px;
}

.nfh-drawer__account {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 8px 18px 16px;
}
.nfh-drawer__account a,
.nfh-drawer__account button {
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--nfh-navy);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.nfh-drawer__account a:hover,
.nfh-drawer__account button:hover { color: var(--nfh-orange-text); }

.nfh-drawer__contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #F6F8FC;
    border-top: 1px solid var(--nfh-line);
}
.nfh-drawer__contact > a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nfh-text);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.nfh-drawer__contact > a svg { flex: none; width: 17px; height: 17px; color: var(--nfh-orange); }
.nfh-drawer__social { display: flex; gap: 10px; margin-top: 4px; }
.nfh-drawer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nfh-navy);
    color: #fff;
    transition: background-color .18s ease-out;
}
.nfh-drawer__social a:hover { background: var(--nfh-orange-text); }
.nfh-drawer__social svg { width: 18px; height: 18px; }

@keyframes nfh-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes nfh-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nfh-drop  { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* Small desktop: tighter nav; staff chips fold into the profile menu. */
@media (max-width: 1279.98px) {
    .nfh__inner { gap: 16px; }
    .nfh .nfh__logo img[width] { height: 48px; }
    .nfh__nav { gap: 0; }
    .nfh__link { padding: 10px 9px; font-size: 15px; }
    .nfh__link::after { left: 9px; right: 9px; }
    .nfh__actions { gap: 10px; }
    .nfh__donate { padding: 0 20px; }
    .nfh__chip { display: none; }
    .nft p.nft__tagline { font-size: 13px; }
    /* Room for the full tagline: email becomes an icon (it keeps its aria-label), tighter gaps. */
    .nft__inner { gap: 16px; }
    .nft__contact { gap: 12px; }
    .nft__item[href^="mailto"] .nft__label { display: none; }
}

@media (max-width: 1279.98px) and (min-width: 1024px) {
    .nfh .nfh__logo img[width] { height: 48px; }
}

/* Tablet: nav moves into the drawer. */
@media (max-width: 1023.98px) {
    .rioc-app { --topbar-h: 112px; }        /* 40 + 72 */
    .nfh__inner { height: 72px; }
    .nfh .nfh__logo img[width] { height: 46px; }
    .nfh__nav { display: none; }
    .nfh__actions { margin-left: auto; }
    .nfh__burger { display: flex; }
    .nfh__account { display: none; }        /* account links live in the drawer */
    .nft__tagline { display: none !important; }
    .nft__inner { justify-content: flex-end; }
    /* Tagline hidden, links pushed right: the left side is free for a full-size tab. */
    .nft::before { width: 170px; }
}

/* Phones: compact strip (icons + phone), compact header, search lives in the drawer. */
@media (max-width: 767.98px) {
    .rioc-app { --topbar-h: 98px; }         /* 34 + 64 */
    .rioc-app .site-topbar { background: #fff; }
    /* Links are centred on phones: a small tab that stays clear of them (≈25px at 390, 18px at 320). */
    .nft::before { width: clamp(18px, calc((100% - 340px) / 2), 72px); }
    .nft__inner { height: 34px; padding: 0 12px; justify-content: center; gap: 12px; }
    .nft__contact { gap: 12px; }
    .nft__item[href^="mailto"] .nft__label,
    .nft__login span { display: none; }
    /* Icon-only links on phones: a 32px tap area (WCAG 2.2 target size) instead of the bare 15px icon. */
    .nft__contact { gap: 4px; }
    .nft__item { min-width: 32px; min-height: 32px; justify-content: center; border-radius: 8px; }
    .nft__social a { width: 32px; height: 32px; }
    .nft__social svg { width: 15px; height: 15px; }

    .nfh__inner { height: 64px; padding: 0 14px; gap: 10px; }
    .nfh .nfh__logo img[width] { height: 40px; }
    .nfh__search-toggle,
    .nfh__search { display: none; }
    .nfh__cart { width: 42px; height: 42px; }
    .nfh__actions { gap: 8px; }
    .nfh__burger { width: 42px; height: 42px; }
    .nfh__actions > .nfh__donate {
        height: 42px;
        padding: 0 15px;
        gap: 7px;
        font-size: 15px;
        background: #C45200;                /* 4.6:1 with white at this smaller size */
        box-shadow: 0 8px 18px -8px rgba(196, 82, 0, .7);
    }
    .nfh__actions > .nfh__donate svg { width: 18px; height: 18px; }
}

@media (max-width: 389.98px) {
    .nft__item .nft__label { display: none; }
    .nfh .nfh__logo img[width] { height: 34px; }
    .nfh__actions > .nfh__donate { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .nft *, .nfh *, .nfh-drawer, .nfh-drawer *, .nfh-drawer-overlay {
        transition: none !important;
        animation: none !important;
    }
}
