/* Public site layout: header, mobile drawer, footer. Moved out of MainLayout.razor so browsers can cache it. */
/* ══ Public theme tokens (v1.29.0) ═════════════════════════════════════
   Every brand colour on the public site reads from these. A theme swaps the
   brand (navy) and accent (gold); dark mode swaps the surfaces and ink.
   Set on <html> by motion.js before first paint: data-theme, data-mode. */
:root {
    --pub-brand: #2c3e50;            /* theme's dark brand colour */
    --pub-brand-rgb: 44, 62, 80;
    --pub-gold: #c9a961;
    --pub-gold-d: #b8964d;
    --pub-gold-ink: #8a6d3a;         /* accent as text on light backgrounds */
    --pub-gold-rgb: 201, 169, 97;
    --pub-on-gold: #2c3e50;          /* text placed on the accent */

    --pub-navy: var(--pub-brand);
    --pub-navy-2: color-mix(in srgb, var(--pub-brand) 88%, #ffffff);
    --pub-navy-deep: color-mix(in srgb, var(--pub-brand) 78%, #000000);
    --pub-navy-rgb: var(--pub-brand-rgb);

    --pub-ink: var(--pub-brand);
    --pub-ink-rgb: var(--pub-brand-rgb);
    --pub-ink-2: #5a6c7d;
    --pub-ink-3: #64748b;
    --pub-bg: #f8f6f3;
    --pub-surface: #ffffff;
    --pub-cream: #f4f1ea;
    --pub-line: #ede9e3;
    --pub-muted-bg: #f1f5f9;
    --pub-warm: #fff8e7;             /* cream callouts */
    color-scheme: light;
}

/* ── Themes ── */
html[data-theme="sage"] {
    --pub-brand: #23382f; --pub-brand-rgb: 35, 56, 47;
    --pub-gold: #b8995a; --pub-gold-d: #9f8243; --pub-gold-ink: #75602d; --pub-gold-rgb: 184, 153, 90;
    --pub-on-gold: #1c2d25;
}
html[data-theme="claret"] {
    --pub-brand: #4a1c2a; --pub-brand-rgb: 74, 28, 42;
    --pub-gold: #cf9d86; --pub-gold-d: #b98066; --pub-gold-ink: #8a5240; --pub-gold-rgb: 207, 157, 134;
    --pub-on-gold: #3a1621;
}
html[data-theme="slate"] {
    --pub-brand: #334155; --pub-brand-rgb: 51, 65, 85;
    --pub-gold: #a9b6c6; --pub-gold-d: #8e9cad; --pub-gold-ink: #536379; --pub-gold-rgb: 169, 182, 198;
    --pub-on-gold: #1f2937;
}

/* ── Dark mode (works with every theme) ── */
html[data-mode="dark"] {
    --pub-navy: color-mix(in srgb, var(--pub-brand) 55%, #0b0d11);
    --pub-navy-2: color-mix(in srgb, var(--pub-brand) 60%, #1a1d24);
    --pub-navy-deep: color-mix(in srgb, var(--pub-brand) 45%, #07080b);
    --pub-ink: #ece7dc;
    --pub-ink-rgb: 236, 231, 220;
    --pub-ink-2: #b6bec9;
    --pub-ink-3: #8f99a6;
    --pub-gold-ink: var(--pub-gold);
    --pub-bg: #111419;
    --pub-surface: #1a1e26;
    --pub-cream: #222731;
    --pub-line: rgba(255, 255, 255, .10);
    --pub-muted-bg: #20252e;
    --pub-warm: #252219;
    color-scheme: dark;
}
html[data-mode="dark"] body { background: var(--pub-bg); color: var(--pub-ink); }
html[data-mode="dark"] img:not([src$=".svg"]) { filter: brightness(.92); }
/* ── Skip to content (keyboard/screen-reader users) ─── */
.skip-to-content-link {
    position: absolute;
    top: -60px;
    left: 8px;
    z-index: 100000;
    background: var(--pub-navy);
    color: #f4f1ea;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease-in-out;
}
.skip-to-content-link:focus {
    top: 0;
    outline: 3px solid var(--pub-gold);
    outline-offset: 2px;
}

/* ── Reset & globals ──────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root { --mud-zindex-popover: 9999; }

html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--pub-navy-deep);
}

/* ── Accessibility overrides (DO NOT REMOVE) ──────── */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
/* Settings are applied as classes on <html> by prefs.js (once, so sizes never compound). */
html.text-small  { font-size: 90%; }
html.text-large  { font-size: 112.5%; }
/* High contrast is done with colour tokens (see end of file); a CSS filter here used to break
   the fixed header and tab bar. */
.dyslexia-font, .dyslexia-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.12em !important;
    line-height: 1.8 !important;
}
.underline-links a { text-decoration: underline !important; }
.show-progress #scroll-progress { display: block !important; }

/* ── Compact nav overrides ───────────────────────── */
.compact-nav .custom-appbar {
    height: 70px !important;
    background: var(--pub-navy-deep) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.compact-nav .nav-links {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.compact-nav .site-subtitle {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
}
.compact-nav .site-title {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
.compact-nav .hdr-right {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.compact-nav .page-content-wrapper {
    padding-top: 70px !important;
    background: linear-gradient(to bottom, var(--pub-gold) 70px, var(--pub-bg) 70px) !important;
}

/* ── MudBlazor override: prevent MudMainContent adding its own appbar-height padding ── */
.mud-main-content {
    padding-top: 0 !important;
}

/* ── Appbar ───────────────────────────────────────── */
.custom-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--pub-navy-deep);
    transition: height 0.3s ease, box-shadow 0.3s ease;
    height: 130px;
}

.custom-appbar.scrolled {
    height: 70px;
    background: var(--pub-navy-deep);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.appbar-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
}

/* ── Desktop header ───────────────────────────────── */
.desktop-header {
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

@media (min-width: 1264px) {
    .desktop-header { display: flex; }
}

/* Left slot (settings) */
.hdr-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Right slot (scrolled CTA) */
.hdr-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.hdr-right-visible {
    opacity: 1;
    pointer-events: auto;
}

.hdr-scrolled-book {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--pub-gold), var(--pub-gold-d));
    color: var(--pub-on-gold) !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(var(--pub-gold-rgb),0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}
.hdr-scrolled-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--pub-gold-rgb),0.44);
}

/* Centre column */
.hdr-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 10px 80px;
}

/* Settings button (desktop + mobile) */
.hdr-settings-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(var(--pub-gold-rgb),0.3);
    border-radius: 8px;
    color: rgba(244,241,234,0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hdr-settings-btn:hover {
    background: rgba(var(--pub-gold-rgb),0.15);
    border-color: rgba(var(--pub-gold-rgb),0.6);
    color: var(--pub-gold);
}
.hdr-settings-mob {
    border: none;
    background: none;
}

/* ── Site title ───────────────────────────────────── */
.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #f4f1ea;
    font-size: 1.55rem;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: margin-top 0.3s ease, font-size 0.3s ease;
    white-space: nowrap;
}
.title-compact { margin-top: 8px !important; }

/* ── Subtitle ─────────────────────────────────────── */
.site-subtitle {
    font-size: 9.5px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--pub-gold);
    font-weight: 500;
    margin: 3px 0 0;
    max-height: 20px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.3s ease;
}
.subtitle-hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* ── Nav links wrapper ────────────────────────────── */
.nav-links {
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
}
.nav-visible {
    max-height: 80px;
    opacity: 1;
}

/* ── Ornamental divider ───────────────────────────── */
.nav-orn {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    gap: 10px;
    padding: 5px 60px 4px;
}
.nav-orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--pub-gold-rgb),0.42));
}
.nav-orn-line-r {
    background: linear-gradient(to left, transparent, rgba(var(--pub-gold-rgb),0.42));
}
.nav-orn-gem {
    width: 4px;
    height: 4px;
    background: var(--pub-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── Mobile header ────────────────────────────────── */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 4px;
}
@media (min-width: 1264px) {
    .mobile-header { display: none; }
}

.mobile-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    color: #f4f1ea;
}

/* Hamburger */
.mob-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.mob-hamburger span {
    display: block;
    width: 100%;
    height: 1.8px;
    background: #f4f1ea;
    border-radius: 2px;
}

/* Mobile appbar fixed height */
@media (max-width: 1263px) {
    .custom-appbar { height: 64px !important; }
}

/* ── Mobile Drawer Nav ────────────────────────────── */
.mob-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1b2737;
    overflow: hidden;
}

.mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 18px;
    background: linear-gradient(135deg, var(--pub-navy) 0%, #1a2534 100%);
    border-bottom: 2px solid var(--pub-gold);
    flex-shrink: 0;
}

.mob-nav-brand { display: flex; align-items: center; gap: 12px; }

.mob-brand-crest {
    width: 42px;
    height: 42px;
    background: rgba(var(--pub-gold-rgb),0.12);
    border: 1.5px solid rgba(var(--pub-gold-rgb),0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-nav-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #f4f1ea;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.mob-nav-brand-sub {
    font-size: 0.65rem;
    color: var(--pub-gold);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-top: 2px;
}

.mob-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.mob-nav-close:hover { background: rgba(255,255,255,0.16); }

.mob-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mob-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.18s, border-color 0.18s, transform 0.14s;
}
.mob-nav-item:hover {
    background: rgba(var(--pub-gold-rgb),0.1);
    border-color: rgba(var(--pub-gold-rgb),0.22);
    transform: translateX(-2px);
}
.mob-nav-item.mob-active {
    background: rgba(var(--pub-gold-rgb),0.16);
    border-color: rgba(var(--pub-gold-rgb),0.5);
}

.mob-nav-item-left { display: flex; align-items: center; gap: 13px; }

.mob-nav-icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(var(--pub-gold-rgb),0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s;
}
.mob-nav-icon-pill.mob-icon-active { background: var(--pub-gold); }

.mob-nav-label {
    font-size: 0.97rem;
    font-weight: 500;
    color: #f4f1ea;
    letter-spacing: 0.1px;
}
.mob-nav-item.mob-active .mob-nav-label {
    color: var(--pub-gold);
    font-weight: 600;
}

.mob-nav-utils {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.mob-util-dot { color: rgba(244,241,234,0.18); }

.mob-nav-util-link {
    font-size: 0.72rem;
    color: rgba(244,241,234,0.45);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}
.mob-nav-util-link:hover { color: rgba(244,241,234,0.85); }

.mob-nav-footer {
    padding: 12px 14px 22px;
    flex-shrink: 0;
}

.mob-nav-book {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--pub-gold) 0%, var(--pub-gold-d) 100%);
    color: var(--pub-on-gold);
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 18px rgba(var(--pub-gold-rgb),0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}
.mob-nav-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(var(--pub-gold-rgb),0.42);
}

/* ── Page content wrapper ─────────────────────────── */
.page-content-wrapper {
    width: 100%;
    overflow-x: hidden;
    padding-top: 64px;
    background: linear-gradient(to bottom, var(--pub-gold) 64px, var(--pub-bg) 64px);
}

@media (min-width: 1264px) {
    .page-content-wrapper.page-expanded {
        padding-top: 130px;
        background: linear-gradient(to bottom, var(--pub-gold) 130px, var(--pub-bg) 130px);
    }
    /* Keep the same padding when the header shrinks. Swapping 130px -> 70px here made the whole
       page jump up 60px the moment you scrolled; by then the top band is off-screen anyway. */
    .page-content-wrapper.page-compact {
        padding-top: 130px;
        background: linear-gradient(to bottom, var(--pub-gold) 130px, var(--pub-bg) 130px);
    }
}

/* ── Scroll-to-top ────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--pub-navy) 0%, var(--pub-navy-2) 100%);
    color: var(--pub-gold);
    border: 1px solid rgba(var(--pub-gold-rgb),0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(60px);
    pointer-events: none;
}
.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-to-top.hidden {
    opacity: 0;
    transform: translateY(60px);
    pointer-events: none;
}
.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--pub-navy-2) 0%, var(--pub-navy) 100%);
    border-color: rgba(var(--pub-gold-rgb),0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ── Footer ───────────────────────────────────────── */
.ftr-prebrand {
    border-bottom: 1px solid rgba(244,241,234,0.08);
    padding: 22px 28px;
}
.ftr-prebrand-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.ftr-prebrand-orn {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 340px;
    gap: 12px;
}
.ftr-orn-line {
    flex: 1;
    height: 1px;
    background: rgba(var(--pub-gold-rgb),0.28);
}
.ftr-orn-diamond {
    width: 5px;
    height: 5px;
    background: var(--pub-gold);
    display: block;
    transform: rotate(45deg);
    flex-shrink: 0;
}
.ftr-cta-link {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--pub-gold);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.ftr-cta-link:hover { opacity: 0.8; }

.ftr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 28px 40px;
}
@media (max-width: 1024px) {
    .ftr-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
    .ftr-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 32px; }
}

.ftr-col-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pub-gold);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.ftr-col-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pub-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--pub-gold-rgb),0.2);
}
.ftr-body {
    font-size: 13.5px;
    color: rgba(244,241,234,0.7);
    line-height: 1.75;
    margin: 0 0 16px;
}

/* Check-in/out */
.ftr-checkinout {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}
.ftr-cio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(244,241,234,0.65);
}
.ftr-cio-row strong { color: rgba(244,241,234,0.9); font-weight: 600; }

/* Contact rows */
.ftr-contact-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: rgba(244,241,234,0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}
.ftr-contact-muted { font-size: 12px; color: rgba(244,241,234,0.4); }
.ftr-link {
    color: rgba(244,241,234,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.ftr-link:hover { color: var(--pub-gold); }

/* Social */
.ftr-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.ftr-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244,241,234,0.08);
    color: rgba(244,241,234,0.75);
    transition: background 0.2s, color 0.2s;
}
.ftr-social-btn:hover {
    background: var(--pub-gold);
    color: var(--pub-on-gold);
}

/* Nav column */
.ftr-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.ftr-nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: rgba(244,241,234,0.65);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.18s, padding-left 0.18s;
}
.ftr-nav-link:hover {
    color: var(--pub-gold);
    padding-left: 4px;
}
.ftr-nav-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(244,241,234,0.07);
}
.ftr-legal-link {
    font-size: 11.5px;
    color: rgba(244,241,234,0.38);
    text-decoration: none;
    transition: color 0.18s;
}
.ftr-legal-link:hover { color: rgba(244,241,234,0.7); }
.ftr-legal-sep { color: rgba(244,241,234,0.2); }

/* Payment chips */
.ftr-payment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.ftr-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(244,241,234,0.8);
}
.ftr-stripe-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: rgba(244,241,234,0.4);
    margin-top: 2px;
}

/* Bottom bar */
.ftr-bottom {
    border-top: 1px solid rgba(244,241,234,0.08);
    padding: 18px 28px;
}
.ftr-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.ftr-copy {
    font-size: 12px;
    color: rgba(244,241,234,0.45);
}
.ftr-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ftr-bottom-link {
    font-size: 12px;
    color: rgba(244,241,234,0.38);
    text-decoration: none;
    transition: color 0.18s;
}
.ftr-bottom-link:hover { color: rgba(244,241,234,0.7); }
.ftr-cookie-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.ftr-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(244,241,234,0.38);
}
.ftr-credit-link {
    color: rgba(var(--pub-gold-rgb), 0.85) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s;
}
.ftr-credit-link:hover { color: var(--pub-gold) !important; text-decoration: underline; }
.ftr-version {
    font-size: 11px;
    color: rgba(244,241,234,0.18);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .ftr-bottom-inner { justify-content: center; text-align: center; }
    .ftr-prebrand { padding: 18px 16px; }
}

/* ── MudBlazor dropdown override ─────────────────── */
.professional-dropdown-popover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--pub-surface) !important;
}
.professional-dropdown-popover .mud-menu-item:hover {
    background-color: var(--pub-bg) !important;
}
.professional-dropdown-popover .mud-icon-root {
    color: var(--pub-gold) !important;
}

/* ══ Mobile app shell (v1.29.0, design with v0) ════════════════════════ */
:root { --app-tab-h: 0px; --app-safe-b: 0px; }   /* no tab bar on desktop */

.app-tabbar { display: none; }

/* Cookie card: compact, never covers the page. */
.cc-card {
    position: fixed; z-index: 1400; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px));
    padding: 16px 16px 14px; border-radius: 16px;
    background: var(--pub-navy); color: #f4f1ea;
    border: 1px solid rgba(var(--pub-gold-rgb), .35);
    box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .45);
    animation: cc-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-ico { color: var(--pub-gold); font-size: 20px !important; }
.cc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 700; color: var(--pub-gold); flex: 1; }
.cc-more { font-size: 12.5px; color: rgba(244, 241, 234, .75) !important; text-decoration: underline; }
.cc-more:hover { color: #fff !important; }
.cc-text { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: rgba(244, 241, 234, .82); }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btn { min-height: 44px; border-radius: 10px; font: 600 13.5px Inter, system-ui, sans-serif; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.cc-btn:active { transform: scale(.97); }
.cc-btn-ghost { background: transparent; color: #f4f1ea; border: 1.5px solid rgba(244, 241, 234, .38); }
.cc-btn-ghost:hover { border-color: #f4f1ea; }
.cc-btn-gold { background: linear-gradient(135deg, var(--pub-gold), var(--pub-gold-d)); color: var(--pub-on-gold); border: 0; }
.cc-btn:focus-visible { outline: 2px solid var(--pub-gold); outline-offset: 2px; }

@media (max-width: 1023.98px) {
    :root { --app-tab-h: 62px; --app-safe-b: env(safe-area-inset-bottom, 0px); }

    /* ── Bottom tab bar ── */
    .app-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
        height: calc(var(--app-tab-h) + var(--app-safe-b));
        padding: 0 4px var(--app-safe-b);
        background: color-mix(in srgb, var(--pub-surface) 88%, transparent);
        -webkit-backdrop-filter: saturate(1.6) blur(18px);
        backdrop-filter: saturate(1.6) blur(18px);
        border-top: 1px solid var(--pub-line);
        box-shadow: 0 -8px 28px -14px rgba(0, 0, 0, .25);
    }
    .app-tab {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-width: 0; padding: 0; border: 0; background: none; cursor: pointer;
        color: var(--pub-ink-3) !important; text-decoration: none !important;
        font: 600 10.5px/1.1 Inter, system-ui, sans-serif; letter-spacing: .1px;
        -webkit-tap-highlight-color: transparent;
        transition: color .18s, transform .12s;
    }
    .app-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .app-tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .app-tab svg circle { fill: currentColor; stroke: none; }
    .app-tab.on { color: var(--pub-ink) !important; }
    .app-tab.on::before {
        content: ""; position: absolute; top: 0; left: 50%; width: 26px; margin-left: -13px; height: 3px;
        border-radius: 0 0 3px 3px; background: var(--pub-gold);
    }
    .app-tab:active { transform: scale(.93); }
    .app-tab:focus-visible { outline: 2px solid var(--pub-gold); outline-offset: -4px; border-radius: 10px; }

    .app-tab-book { color: var(--pub-ink) !important; }
    .app-tab-book.on::before { display: none; }
    .app-tab-pill {
        display: grid; place-items: center; width: 56px; height: 42px; margin-top: -20px; border-radius: 21px;
        background: linear-gradient(135deg, var(--pub-gold), var(--pub-gold-d));
        color: var(--pub-on-gold);
        box-shadow: 0 8px 18px -4px rgba(var(--pub-gold-rgb), .6), 0 0 0 4px var(--pub-surface);
    }
    .app-tab-book.on .app-tab-pill { box-shadow: 0 8px 18px -4px rgba(var(--pub-gold-rgb), .6), 0 0 0 4px var(--pub-surface), 0 0 0 6px rgba(var(--pub-gold-rgb), .5); }
    .app-tab-pill svg { width: 22px; height: 22px; stroke-width: 1.9; }

    /* Room for the tab bar at the end of every page. */
    .mud-layout > footer { padding-bottom: calc(var(--app-tab-h) + var(--app-safe-b)); }
    .scroll-to-top { display: none !important; } /* the tab bar is always within reach */

    /* The back-to-top tooltip wrapper is an empty inline box that pushed the page down
       20px (on desktop that gap reads as the gold strip under the header). */
    .mud-layout > .mud-tooltip-root { position: absolute; }

    /* Phone header: flush with the page (the gold band is a desktop motif). */
    .custom-appbar { padding-top: env(safe-area-inset-top, 0px); height: calc(64px + env(safe-area-inset-top, 0px)) !important; }
    .page-content-wrapper,
    .page-content-wrapper.page-expanded,
    .page-content-wrapper.page-compact,
    .compact-nav .page-content-wrapper {
        padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
        background: var(--pub-bg) !important;
    }

    .dev-badge { bottom: calc(var(--app-tab-h) + var(--app-safe-b) + 8px) !important; padding: 6px 12px !important; font-size: 12px; }

    /* First-visit tips drop in under the header, clear of the tab bar and booking bar. */
    .tip-float { left: 10px !important; right: 10px !important; width: auto !important; bottom: auto !important; top: calc(64px + env(safe-area-inset-top, 0px) + 10px) !important; }

    /* Cookie card floats just above the tab bar. */
    .cc-card {
        left: 10px; right: 10px; width: auto;
        bottom: calc(var(--app-tab-h) + var(--app-safe-b) + 10px);
        padding: 14px 14px 12px; border-radius: 14px;
    }
    .cc-text { font-size: 12.5px; }

    .mob-nav-footer { padding-bottom: calc(18px + var(--app-safe-b)) !important; }
}

@media (prefers-reduced-motion: reduce) { .cc-card { animation: none; } }
.reduce-motion .cc-card { animation: none; }

/* ══ Dark mode: shared surfaces the per-page tokens don't reach ════════ */
html[data-mode="dark"] .mud-main-content { background: var(--pub-bg) !important; }
html[data-mode="dark"] .bk-section-num { box-shadow: inset 0 0 0 1.5px rgba(var(--pub-gold-rgb), .55); }
html[data-mode="dark"] .av-mob-instruction { background: rgba(46, 125, 50, .16) !important; border-color: rgba(76, 175, 80, .35) !important; color: var(--pub-ink-2) !important; }
html[data-mode="dark"] .av-mob-green-word { color: #81c784 !important; }
html[data-mode="dark"] .av-mob-cell.past { background: rgba(255, 255, 255, .07) !important; opacity: 1 !important; }
html[data-mode="dark"] .av-mob-cell.past .av-mob-num { color: rgba(255, 255, 255, .28); }

/* ══ High contrast (Settings) ═══════════════════════════════════════ */
html.high-contrast {
    --pub-ink-2: var(--pub-ink);
    --pub-ink-3: var(--pub-ink);
    --pub-line: rgba(var(--pub-ink-rgb), .45);
    --pub-gold-ink: color-mix(in srgb, var(--pub-gold-ink) 65%, #000);
}
html.high-contrast[data-mode="dark"] {
    --pub-ink: #ffffff; --pub-ink-rgb: 255, 255, 255;
    --pub-bg: #000000; --pub-surface: #0b0d11; --pub-cream: #15181e;
    --pub-gold-ink: var(--pub-gold);
}
html.high-contrast a:focus-visible, html.high-contrast button:focus-visible,
html.high-contrast input:focus-visible, html.high-contrast [tabindex]:focus-visible { outline: 3px solid var(--pub-gold) !important; outline-offset: 2px; }

/* Amber notices: bright in light mode; a dark amber tint with light text in dark mode. */
html[data-mode="dark"] :is(.pub-amber, .py-help-card, .access-notice, .bk-room-none, .cr-policy, .avd-week--no, .apt-hl-amber) {
    background: rgba(245, 158, 11, .12) !important;
    border-color: rgba(245, 158, 11, .38) !important;
    color: #fcd9a0 !important;
}
html[data-mode="dark"] :is(.pub-amber, .py-help-card, .access-notice, .bk-room-none, .cr-policy, .avd-week--no, .apt-hl-amber) :is(p, span, strong, div, li, .mud-typography) { color: #fcd9a0 !important; }
html[data-mode="dark"] .py-help-icon { background: rgba(245, 158, 11, .2) !important; color: #fcd34d !important; }
