@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..700&family=Inter:wght@400..700&display=swap');

/* Vinterbaderne Brand Design System
   Tema: "Koldt møder varmt" – nordisk ro.
   Kold fjord/petroleum som grundtone, varm saunagus-glød til handlinger. */
:root {
    color-scheme: light;

    /* Kold base – fjord/petroleum (hovedfarve for vinterbadning) */
    --primary-blue: #0f5d6e;
    --primary-blue-hover: #0b4a58;
    --primary-blue-light: #e2eff2;
    --primary-blue-dark: #08333d;

    /* Sekundær kold tone – sø-teal */
    --accent-teal: #0e7c8b;
    --accent-teal-light: #def1f3;

    /* Varm handlingsfarve – saunagus/ember (CTA og highlights) */
    --accent-warm: #c2511f;
    --accent-warm-hover: #a23f15;
    --accent-warm-light: #fbe7da;
    --accent-warm-glow: #e3742f;

    /* Status farver (afstemt mod nordisk palette) */
    --success-color: #2f8559;
    --warning-color: #d9912b;
    --danger-color: #c5402f;
    --info-color: var(--primary-blue);

    /* Neutrale farver – tåge, sand og sten */
    --text-primary: #1b2a2f;
    --text-secondary: #51626a;
    --text-muted: #7c8a91;
    --background-primary: #ffffff;
    --background-secondary: #f3f1ec;
    --background-tertiary: #e3ddd2;

    /* UI elementer – blødere, mere taktilt udtryk */
    --border-radius: 10px;
    --border-radius-small: 6px;
    --border-radius-large: 16px;
    --box-shadow: 0 1px 2px rgba(8, 51, 61, 0.06), 0 4px 14px rgba(8, 51, 61, 0.06);
    --box-shadow-hover: 0 8px 28px rgba(8, 51, 61, 0.14);

    /* Typografi – nordisk-redaktionelt fontpar */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body-font: var(--font-sans);

    /* Legacy compatibility */
    --color-accent: var(--primary-blue);
    --color-accent-hover: var(--primary-blue-hover);
    --color-border: var(--background-tertiary);
    --color-border-strong: #cbb9a6;
    --color-bg-card: var(--background-primary);
    --color-bg-muted: var(--background-secondary);
    --color-text: var(--text-primary);
    --color-text-muted: var(--text-muted);
    --color-danger: var(--danger-color);
    --radius: var(--border-radius);
    --hero-heading-color: #ffffff;
    --hero-subheading-color: #ffffff;
    --focus-ring-color: color-mix(in srgb, var(--primary-blue) 55%, #9bb6d6);
    --focus-ring-shadow: color-mix(in srgb, var(--primary-blue) 24%, transparent);

    /* Color mappings for compatibility with existing styles */
    --heading-color-primary: #103b46;
    --heading-color-secondary: #b4471f;
}

/* Systemstyret dark mode – lun "sauna-aften" frem for koldt sort.
   Tokens omdefineres, så hele sitet (inkl. komponenters .razor.css) følger med. */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        /* Kold base løftes til lysere fjordtoner, så den læses på mørk bund */
        --primary-blue: #4aa6b8;
        --primary-blue-hover: #69bccd;
        --primary-blue-light: #16323a;
        --primary-blue-dark: #0c2227;

        --accent-teal: #4cb3c2;
        --accent-teal-light: #15323a;

        /* Varm handlingsfarve gløder fortsat i mørket */
        --accent-warm: #e3742f;
        --accent-warm-hover: #f08a47;
        --accent-warm-light: #3a2114;
        --accent-warm-glow: #f5a45f;

        --success-color: #46a875;
        --warning-color: #e0a541;
        --danger-color: #e06a59;
        --info-color: var(--primary-blue);

        /* Neutrale toner – varmt mørkt træ og dæmpet røg */
        --text-primary: #eef2f1;
        --text-secondary: #b6c2c4;
        --text-muted: #8a999c;
        --background-primary: #16201f;
        --background-secondary: #111917;
        --background-tertiary: #28332f;

        --box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.38);
        --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);

        --color-border: var(--background-tertiary);
        --color-border-strong: #3c4a45;

        --focus-ring-color: color-mix(in srgb, var(--primary-blue) 70%, #ffffff);
        --focus-ring-shadow: color-mix(in srgb, var(--primary-blue) 40%, transparent);

        --heading-color-primary: #e9f1f0;
        --heading-color-secondary: #f0a373;
    }

    body {
        background:
            linear-gradient(rgba(13, 20, 19, 0.86), rgba(13, 20, 19, 0.92)),
            url('/images/bg.jpg') center / cover no-repeat fixed;
    }

    /* Hold hero-tekst læsbar med en lidt dybere overlejring i mørkt tema */
    .hero {
        background:
            linear-gradient(to bottom, rgba(6, 18, 22, 0.62), rgba(6, 18, 22, 0.72)),
            url('/images/hero.jpg') center / cover no-repeat;
    }

    /* Sektions-kort må ikke lyse hvidt på mørk bund */
    .section-header-card {
        background: linear-gradient(135deg, var(--primary-blue-light), var(--background-primary) 70%);
        border-color: var(--background-tertiary);
    }

    .admin-header {
        background: linear-gradient(135deg, var(--primary-blue-light), var(--accent-teal-light));
    }
}

/* Global focus styling (subtle but clearly visible) */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 1px solid var(--focus-ring-color);
    outline-offset: 1px;
    box-shadow: 0 0 0 1px var(--focus-ring-shadow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible:not([tabindex="-1"]),
summary:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
fluent-button:focus-visible,
fluent-text-field:focus-visible,
fluent-text-area:focus-visible,
fluent-select:focus-visible,
fluent-date-picker:focus-visible,
fluent-time-picker:focus-visible,
fluent-nav-link:focus-visible,
fluent-nav-group:focus-visible {
    outline: 1px solid var(--focus-ring-color);
    outline-offset: 1px;
    box-shadow: 0 0 0 1px var(--focus-ring-shadow);
    border-radius: var(--border-radius-small);
}

#maincontent:focus,
#maincontent:focus-visible,
#maincontent:focus-within,
.body-content:focus,
.body-content:focus-visible,
.body-content:focus-within,
fluent-body-content:focus,
fluent-body-content:focus-visible,
fluent-body-content:focus-within {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

/* Font hierarki */
.text-display {
    font-family: var(--font-display);
    font-size: 2.75rem;   /* Store overskrifter */
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.text-h1 {
    font-family: var(--font-display);
    font-size: 2rem;      /* 32px - H1 overskrifter */
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.text-h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;    /* 24px - H2 overskrifter */
    font-weight: 600;
    line-height: 1.35;
}

.text-body {
    font-size: 1rem;      /* 16px - Body text */
    font-weight: 400;
    line-height: 1.65;
}

.text-caption {
    font-size: 0.875rem;  /* 14px - Captions og metadata */
    font-weight: 400;
    line-height: 1.5;
}

/* Skip link accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: #111827;
    color: #fff;
    border-radius: .25rem;
    margin-right: .75rem;
}

/* Base typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.fluent-nav-text {
    font-family: var(--font-sans);
}

h1 {
    color: var(--heading-color-primary);
    font-weight: 600;
    line-height: 1.15;
}

h2 {
    color: var(--heading-color-secondary);
    font-weight: 600;
    line-height: 1.25;
}

small {
    font-size: 0.72em;
}

h3, h4 {
    color: var(--heading-color-primary);
    font-weight: 600;
}

body {
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        linear-gradient(rgba(243, 241, 236, 0.92), rgba(243, 241, 236, 0.92)),
        url('/images/bg.jpg') center / cover no-repeat fixed;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Error States */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.error-state h3 {
    color: var(--danger-color);
    margin: 1rem 0 0.5rem 0;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Admin UI Differentiation */
.admin-container {
    border-top: 3px solid var(--accent-teal);
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--accent-teal-light));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-badge {
    background: var(--accent-teal);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-small);
    text-transform: uppercase;
    font-weight: 600;
}

.admin-card {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--background-primary);
    box-shadow: var(--box-shadow);
}

/* Global spacing for Fluent cards across pages */
fluent-card {
    display: block;
}

.content > fluent-card + fluent-card,
.content > .fluent-card + .fluent-card {
    margin-top: 1rem;
}

/* Global vertical rhythm in page content to avoid glued sections/cards */
.content > * + * {
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .admin-card {
        padding: 1rem;
    }
}

/* Stats Grid for Admin */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.stat-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: var(--font-sans);
}

/* Footer Styles */
.site-footer {
    background: var(--primary-blue-dark);
    color: white;
    padding: 2.5rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.footer-col.about p {
    font-size: 0.95rem;
}

.footer-col.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.links li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom img {
    width: 240px;
    height: auto;
    /*filter: brightness(0) invert(1);
    opacity: 0.9;*/
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Dark mode: footeren er allerede dyb fjord, men sidens baggrund er også mørk.
   En diskret top-kant giver footeren tydelig adskillelse fra indholdet ovenfor. */
@media (prefers-color-scheme: dark) {
    .site-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }
}

/* Seasonal logo in MainLayout is rendered from a child component, so keep size rule global. */
.header-brand .header-logo {
    width: 63px !important;
    height: 63px !important;
    max-width: 63px !important;
    max-height: 63px !important;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px;
    flex: 0 0 auto;
}

/* Responsive footer */
@media (max-width: 768px) {
    .header-brand .header-logo {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .site-footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-col.about {
        order: 1;
    }

    .footer-col.links {
        order: 2;
    }

    .footer-col.contact {
        order: 3;
    }
}

/* Plads til den klæbende mobil-CTA, så footer-indhold ikke skjules */
@media (max-width: 719.98px) {
    .site-footer {
        padding-bottom: calc(1rem + 72px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom img {
        width: 100px;
    }
}

/* Responsive Design Breakpoints */
.responsive-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* Tablet og op */
@media (min-width: 768px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animationer og Transitions */
.smooth-transition {
    transition: all 0.2s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* News/Nyheder UI Specifikationer - Global news card styles */
.news-card {
    background: var(--background-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.news-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-1px);
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: var(--font-sans);
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-read-more {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: var(--primary-blue-hover);
}

/* Status farver for nyheds-tilstande */
.news-published {
    color: var(--success-color);
}

.news-scheduled {
    color: var(--warning-color);
}

.news-draft {
    color: var(--text-muted);
}

/* Home grid layout */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 800px) {
    .home-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .home-grid > .hero {
        grid-column: 1 / -1; /* span both columns */
    }
}

/* Optional: keep readable measure in text column */
.readable { 
    max-width: 72ch;
    line-height: 1.5;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1.25rem clamp(3.5rem, 9vw, 6rem);
    color: #fff;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-large, 16px);
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(160deg, rgba(8, 51, 61, 0.72) 0%, rgba(8, 51, 61, 0.45) 45%, rgba(194, 81, 31, 0.55) 100%),
        url('/images/hero.jpg') center / cover no-repeat;
}

/* Drivende sauna-damp – blød og diskret, lægger sig over billedet */
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 80%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40% 55% at 25% 30%, rgba(255, 255, 255, 0.18), transparent 70%),
        radial-gradient(45% 50% at 70% 20%, rgba(255, 255, 255, 0.14), transparent 70%),
        radial-gradient(35% 45% at 50% 40%, rgba(227, 116, 47, 0.12), transparent 70%);
    filter: blur(6px);
    opacity: 0.9;
    animation: hero-steam 18s ease-in-out infinite alternate;
}

/* "Vandkant" – en blød bølge der afslutter hero mod indholdet */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 46px;
    z-index: 1;
    pointer-events: none;
    background: var(--background-secondary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='46' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46 V20 Q150 0 300 18 T600 18 T900 18 T1200 16 V46 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='46' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46 V20 Q150 0 300 18 T600 18 T900 18 T1200 16 V46 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 60ch;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: hero-rise 0.7s ease-out both;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-optical-sizing: auto;
    line-height: 1.04;
    font-size: clamp(2.3rem, 5.5vw + 1rem, 4.25rem);
    letter-spacing: -0.02em;
    color: var(--hero-heading-color);
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

.hero p {
    margin: 0;
    font-size: clamp(1.05rem, 1vw + .75rem, 1.35rem);
    line-height: 1.5;
    color: var(--hero-subheading-color);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Hero-dekor animationer */
@keyframes hero-steam {
    from {
        transform: translate3d(-3%, 0, 0) scale(1);
        opacity: 0.75;
    }
    to {
        transform: translate3d(3%, -4%, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respektér brugerens reduced-motion præference: stop al ikke-essentiel bevægelse */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }

    .hero .hero-content {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero call-to-action buttons (mobil-først: fuld bredde, store touch-targets) */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 22rem;
    margin-top: 0.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: var(--accent-warm);
    color: #fff;
    border: 2px solid var(--accent-warm);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-warm) 45%, transparent);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta:hover {
    background: var(--accent-warm-hover);
    border-color: var(--accent-warm-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px color-mix(in srgb, var(--accent-warm) 55%, transparent);
}

.hero-cta--ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.hero-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: none;
}

/* Tillids-chips under hero-handlinger */
.hero-trust {
    list-style: none;
    margin: 0.75rem 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-trust li {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .hero-cta {
        flex: 0 1 auto;
    }
}

/* Shared section shell for top-level content pages */
.section-hero {
    height: clamp(12.8rem, 30.4vh, 17.6rem);
    min-height: 0;
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.section-hero .hero-content {
    max-width: 72ch;
    margin-inline: auto;
    text-align: center;
}

.section-page {
    display: grid;
    gap: 1.75rem;
}

.section-header-card {
    background: linear-gradient(135deg, var(--primary-blue-light), #ffffff 62%);
    border: 1px solid var(--background-tertiary);
    border-radius: var(--border-radius-large);
    padding: 1.75rem;
    min-height: 165px;
}

.section-header-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.section-header-card .lead {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section-page {
        gap: 1.25rem;
    }

    .section-header-card {
        padding: 1.25rem;
        min-height: 140px;
    }
}

/* Ensure icon/text contrast for Accent buttons globally */
fluent-button[appearance="accent"] {
    --foreground-on-accent-rest: #ffffff;
    --foreground-on-accent-hover: #ffffff;
    --foreground-on-accent-active: #ffffff;
    --accent-foreground-rest: #ffffff;
    --accent-foreground-hover: #ffffff;
    --accent-foreground-active: #ffffff;
    color: #ffffff;
}

/* Warm "saunagus" action color on primary CTAs (cold base, warm action) */
fluent-button[appearance="accent"]::part(control) {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--accent-warm) 35%, transparent);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

fluent-button[appearance="accent"]:hover::part(control) {
    background: var(--accent-warm-hover);
    border-color: var(--accent-warm-hover);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-warm) 45%, transparent);
}

fluent-button[appearance="accent"]:active::part(control) {
    background: var(--accent-warm-hover);
    border-color: var(--accent-warm-hover);
    transform: translateY(1px);
}

fluent-button[appearance="accent"]::part(control),
fluent-button[appearance="accent"]::part(content),
fluent-button[appearance="accent"]::part(start),
fluent-button[appearance="accent"]::part(end),
fluent-button[appearance="accent"] fluent-icon {
    color: #ffffff !important;
}

fluent-button[appearance="accent"] fluent-icon,
fluent-button[appearance="accent"] fluent-icon[color],
fluent-button[appearance="accent"] fluent-icon[color="accent"] {
    --icon-color: #ffffff;
}

fluent-button[appearance="accent"] fluent-icon svg,
fluent-button[appearance="accent"] fluent-icon svg *,
fluent-button[appearance="accent"] fluent-icon::part(control),
fluent-button[appearance="accent"] fluent-icon::part(svg) {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* FluentIcon may render as direct slotted svg with inline fill: var(--accent-fill-rest) */
fluent-button[appearance="accent"] > svg[slot="start"],
fluent-button[appearance="accent"] > svg[slot="end"],
fluent-button[appearance="accent"] > span[slot="start"] svg,
fluent-button[appearance="accent"] > span[slot="end"] svg {
    --accent-fill-rest: #ffffff;
    --accent-fill-hover: #ffffff;
    --accent-fill-active: #ffffff;
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
