:root {
    --primary: #267cab;
    --on-primary: #fff;
    --accent: #f2bb45;
    --on-accent: #111827;
    --background: #f4f7fa;
    --ink: #192c40;
    --muted: #607286;
    --line: #dce5ec;
    --surface: #fff;
    --soft: #eef3f7;
    --radius: 10px;
    --shadow: 0 1px 2px rgb(15 23 42/.05),0 5px 16px rgb(15 23 42/.04);
    --shadow-lg: 0 12px 32px rgb(15 23 42/.09)
}

* {
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility
}

a {
    color: var(--primary);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

h1, h2, h3 {
    margin: 0 0 .7rem;
    line-height: 1.18;
    letter-spacing: -.018em;
    overflow-wrap: anywhere
}

h1 {
    font-size: clamp(1.85rem,3.4vw,2.8rem);
    font-weight: 750
}

h2 {
    font-size: 1.3rem
}

h3 {
    font-size: 1.08rem
}

p {
    margin: 0 0 .75rem
}

button, input, select, textarea {
    font: inherit
}

button, a, input, select, textarea, summary {
    touch-action: manipulation
}

    a:focus-visible, button:focus-visible, summary:focus-visible {
        outline: 3px solid color-mix(in srgb,var(--primary) 70%,white);
        outline-offset: 3px
    }

.container {
    width: min(1180px,calc(100% - 40px));
    margin-inline: auto
}

.gov-strip {
    padding: 5px 0;
    background: #f9a303  /*#153348*/;
    color: #fff;
    font-size: .75rem
}

    .gov-strip a {
        color: #fff
    }

.brand-row {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink)
}

    .brand:hover {
        text-decoration: none
    }

    .brand img {
        width: 62px;
        height: 62px;
        object-fit: contain
    }

    .brand small {
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: .7rem;
        font-weight: 650;
        letter-spacing: .12em;
        text-transform: uppercase
    }

    .brand strong {
        display: block;
        font-size: 1.45rem;
        line-height: 1.15;
        letter-spacing: -.025em
    }

.transparency {
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-size: .78rem;
    line-height: 1.35
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255/.94);
    border-block: 1px solid var(--line);
    box-shadow: 0 3px 12px rgb(15 23 42/.04);
    backdrop-filter: blur(12px)
}



.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px
}

    .desktop-nav a {
        padding: 12px 9px;
        border-radius: 6px;
        font-size: 0.73rem;
        font-weight:600 /*750*/;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

        .desktop-nav a:hover {
            background: var(--soft);
            text-decoration: none;
            color: black;
        }

.mobile-nav {
    display: none
}

.hero {
    overflow: hidden;
    background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,white),var(--surface));
    border-bottom: 1px solid var(--line)
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
    gap: 36px;
    padding-block: 38px
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--primary);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase
}

.hero h1 {
    max-width: 590px;
    font-size: clamp(2.1rem,4.2vw,3.45rem)
}

.hero-description {
    max-width: 520px;
    color: var(--muted);
    font-size: 1rem
}

.hero-news {
    min-height: 220px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*background: linear-gradient(145deg,var(--primary),color-mix(in srgb,var(--primary) 78%,#122b3d));*/
    background: #f2bb45;
    color: var(--on-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg)
}

    .hero-news .eyebrow, .hero-news a {
        color: inherit
    }

    .hero-news h2 {
        margin: 12px 0 20px;
        font-size: 1.65rem;
        font-weight: 650
    }

.hero-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg)
}

.btn {
    min-height: 38px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42/.08);
    transition: .15s ease
}

    .btn:hover {
        transform: translateY(-1px);
        filter: brightness(.97);
        text-decoration: none;
        box-shadow: 0 6px 14px rgb(15 23 42/.1)
    }

    .btn:disabled {
        opacity: .6;
        cursor: wait;
        transform: none
    }

.secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--line);
    box-shadow: none
}

.home-content {
    padding-block: 30px
}

.section-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

    .section-heading h1, .section-heading h2 {
        margin: 0
    }

    .section-heading > a {
        white-space: nowrap;
        font-size: .82rem;
        font-weight: 650
    }

.story-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .18s ease
}

    .story-card:hover, .quick-cards > a:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg)
    }

.card-cover {
    width: 100%;
    height: 160px;
    object-fit: cover
}

.card-content {
    padding: 17px
}

.meta {
    margin-bottom: 11px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: .7rem
}

    .meta span {
        color: var(--primary);
        font-weight: 750
    }

.story-card h3 {
    font-size: 1.18rem
}

    .story-card h3 a {
        color: var(--ink)
    }

.story-card p {
    color: var(--muted);
    font-size: .875rem
}

.read-link {
    font-size: .82rem;
    font-weight: 750
}

.quick-cards {
    margin: 22px 0 28px
}

    .quick-cards > a {
        padding: 17px 18px;
        background: var(--surface);
        color: var(--ink);
        border: 1px solid var(--line);
        border-top: 3px solid var(--primary);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        transition: .16s ease
    }

        .quick-cards > a:hover {
            text-decoration: none
        }

    .quick-cards span {
        color: var(--primary);
        font-size: .7rem;
        font-weight: 800
    }

    .quick-cards h3 {
        margin: 6px 0 4px
    }

    .quick-cards p {
        margin: 0;
        color: var(--muted);
        font-size: .84rem
    }

.content-columns {
    display: grid;
    grid-template-columns: minmax(0,2.15fr) minmax(260px,.85fr);
    gap: 20px
}

.panel {
    min-width: 0;
    margin-bottom: 18px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

    .panel h2 {
        font-size: 1.1rem
    }

    .panel .section-heading a {
        font-size: .78rem
    }

.table-scroll {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: .86rem
}

th {
    background: var(--soft);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase
}

th, td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

tbody tr:hover {
    background: color-mix(in srgb,var(--primary) 3%,white)
}

td small {
    display: block;
    color: var(--muted);
    font-size: .69rem
}

td:first-child {
    white-space: nowrap
}

.link-panel {
    padding: 0;
    overflow: hidden
}

    .link-panel h2 {
        margin: 0;
        padding: 15px 18px;
        background: var(--primary);
        /*color: var(--on-primary)*/
    }

    .link-panel > a {
        padding: 10px 18px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        font-size: .83rem
    }

        .link-panel > a:hover {
            background: var(--soft);
            text-decoration: none
        }

    .link-panel p {
        padding: 18px;
        color: var(--muted);
        font-size: .84rem
    }

.notice-row {
    padding: 11px 0;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--line)
}

    .notice-row:last-child {
        border-bottom: 0
    }

    .notice-row span {
        min-width: 54px;
        color: var(--muted);
        font-size: .72rem
    }

    .notice-row strong {
        font-size: .86rem;
        font-weight: 600
    }

footer {
    padding-top: 32px;
    background: #f2bb45 /*#132f43*/;
    color: #111827; /*#e6edf3*/
}

    footer h2 {
        font-size: 1.1rem
    }

    footer a {
        color: #111827 /*#cae8f8*/;
        text-decoration: none;
    }

    footer a:hover {
        font-weight: 600;
        text-decoration: none;
    }

    footer p, .footer-link {
        font-size: 0.82rem
    }

.footer-link {
    display: block;
    margin-bottom: 5px
}

.footer-bottom {
    margin-top: 24px;
    padding-block: 14px;
    border-top: 1px solid rgb(255 255 255/.12);
    font-size: 0.72rem
}

.page-banner {
    padding: 28px 0;
    background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 8%,white),var(--surface));
    border-bottom: 1px solid var(--line)
}

    .page-banner h1 {
        margin: 0
    }

.page-content {
    min-height: 50vh;
    padding-block: 26px
}

.filters {
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px
}

    .filters > div:first-child {
        flex: 2;
        min-width: 210px
    }

    .filters > div {
        flex: 1;
        min-width: 130px
    }

    .filters .btn {
        margin-bottom: 1px
    }

    .filters a {
        padding-bottom: 8px;
        font-size: .83rem
    }

label {
    display: block;
    margin: 13px 0 5px;
    font-size: .8rem;
    font-weight: 700
}

input:not([type=checkbox]):not([type=color]), textarea, select {
    width: 100%;
    min-height: 39px;
    padding: 7px 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid #bdcad5;
    border-radius: 7px;
    transition: .15s ease
}

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)
    }

.checkbox-row {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 8px
}

.hint {
    margin: 5px 0 11px;
    color: var(--muted);
    font-size: .75rem
}

.result-count {
    color: var(--muted);
    font-size: .82rem
}

.pagination {
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px
}

    .pagination span {
        font-size: .8rem
    }

.article {
    max-width: 820px;
    min-height: 60vh;
    padding-block: 34px
}

    .article > .eyebrow {
        margin-top: 22px
    }

    .article h1 {
        font-size: clamp(1.9rem,3.6vw,2.65rem)
    }

.article-meta {
    margin-bottom: 18px;
    padding-bottom: 15px;
    display: flex;
    gap: 20px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: .8rem
}

.article-summary {
    color: var(--muted);
    font-size: 1.05rem
}

.article-cover {
    width: 100%;
    max-height: 440px;
    margin: 18px 0;
    object-fit: cover;
    border-radius: var(--radius)
}

.prose {
    font-size: 1rem;
    line-height: 1.72;
    overflow-wrap: anywhere
}

    .prose h2, .prose h3 {
        margin-top: 22px
    }

    .prose ul, .prose ol {
        padding-left: 22px
    }

    .prose table {
        display: block;
        overflow: auto
    }

    .prose blockquote {
        margin-inline: 0;
        padding: 10px 18px;
        background: var(--surface);
        border-left: 4px solid var(--primary);
        border-radius: 0 var(--radius) var(--radius) 0
    }

.attachment {
    margin-top: 24px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 210px minmax(0,1fr)
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 14px;
    background: linear-gradient(180deg,#17384e,#10283a);
    color: #fff
}

.admin-brand {
    display: block;
    margin-bottom: 26px;
    padding-inline: 8px;
    color: #fff;
    font-size: 1.35rem
}

    .admin-brand strong {
        color: #8fd2f5
    }

.admin-sidebar > p {
    padding-inline: 8px;
    color: #9fb6c6;
    font-size: .63rem;
    letter-spacing: .14em
}

.admin-sidebar nav {
    display: grid;
    gap: 3px
}

    .admin-sidebar nav a {
        padding: 8px 10px;
        color: #e1edf4;
        border-radius: 7px;
        font-size: .82rem;
        font-weight: 550
    }

        .admin-sidebar nav a.active, .admin-sidebar nav a:hover {
            background: rgb(255 255 255/.1);
            color: #fff;
            text-decoration: none
        }

.admin-sidebar .logout {
    margin: 20px 8px 0;
    padding: 7px 11px;
    background: transparent;
    color: #fff;
    border: 1px solid rgb(255 255 255/.28);
    border-radius: 7px;
    font-size: .8rem;
    cursor: pointer
}

.admin-main {
    min-width: 0;
    max-width: 1500px;
    width: 100%;
    padding: 28px
}

    .admin-main h1 {
        font-size: 2rem
    }

.stats strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1.15
}

.stats span {
    color: var(--muted);
    font-size: .8rem
}

.editor-columns {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(270px,.85fr);
    gap: 18px
}

.message:not(:empty) {
    margin-bottom: 16px;
    padding: 11px 14px;
    background: color-mix(in srgb,var(--primary) 9%,white);
    border: 1px solid color-mix(in srgb,var(--primary) 22%,white);
    border-radius: 7px
}

.validation-message, .validation-errors {
    color: #b42318;
    font-size: .82rem
}

.theme-preview {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.badge {
    margin: 7px;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 999px;
    font-size: .72rem
}

.text-button {
    padding: 0;
    background: none;
    color: var(--primary);
    border: 0;
    font-weight: 650;
    text-align: left;
    cursor: pointer
}

.login-shell {
    max-width: 440px;
    margin: 46px auto;
    padding: 18px
}

    .login-shell > .panel {
        margin-top: 16px
    }

    .login-shell h1 {
        font-size: 1.9rem
    }

    .login-shell .btn {
        width: 100%;
        margin-top: 18px
    }

.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 10000;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px
}

    .skip-link:focus {
        top: 10px
    }

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    padding: 12px;
    background: #fff0c1;
    color: #222
}

.e-btn.e-primary, .e-grid .e-pager .e-currentitem {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--on-primary) !important
}

.e-grid {
    overflow: hidden;
    border-color: var(--line) !important;
    border-radius: 8px
}

    .e-grid a {
        color: var(--primary)
    }

    .e-grid .e-rowcell, .e-grid .e-headercell {
        padding-block: 8px !important
    }

.e-input-group input {
    min-height: unset !important
}

.preview {
    border-top: 3px solid var(--primary)
}

@media(max-width:1100px) {
    .admin-main {
        padding: 22px
    }

    .editor-columns {
        grid-template-columns: minmax(0,1fr)
    }

    .desktop-nav a {
        padding-inline: 6px;
        font-size: .68rem
    }

    .hero-inner {
        gap: 24px
    }
}

@media(max-width:767px) {
    .container {
        width: calc(100% - 28px)
    }

    .gov-strip {
        font-size: .68rem
    }

    .brand-row {
        min-height: 78px
    }

    .brand {
        gap: 10px
    }

        .brand strong {
            font-size: 1.17rem
        }

        .brand small {
            font-size: .62rem
        }

        .brand img {
            width: 48px;
            height: 48px
        }

    .transparency, .desktop-nav {
        display: none
    }

    .mobile-nav {
        display: block
    }

        .mobile-nav summary {
            padding: 10px 0;
            font-size: .85rem;
            /*font-weight: 750;*/
            cursor: pointer
        }

        .mobile-nav a {
            display: block;
            padding: 8px;
            font-size: .84rem;
            color: #111827 
        }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 26px
    }

    .hero h1 {
        font-size: 2.25rem
    }

    .hero-news {
        min-height: 175px;
        padding: 22px
    }

        .hero-news h2 {
            font-size: 1.4rem
        }

    .hero-image {
        height: 210px
    }

    .home-content {
        padding-block: 22px
    }

    .content-columns {
        grid-template-columns: 1fr
    }

    .panel {
        padding: 16px
    }

    .link-panel {
        padding: 0
    }

    .section-heading {
        align-items: flex-start
    }

        .section-heading h2 {
            font-size: 1.15rem
        }

    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 13px
    }

    .admin-brand {
        margin-bottom: 8px;
        padding-inline: 6px
    }

    .admin-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 2px
    }

        .admin-sidebar nav a {
            padding: 6px 8px;
            font-size: .75rem
        }

    .admin-sidebar > p {
        display: none
    }

    .admin-sidebar .logout {
        margin-top: 9px
    }

    .admin-main {
        padding: 20px 14px
    }

        .admin-main h1 {
            font-size: 1.7rem
        }

    .filters > div {
        flex-basis: 100%
    }

    .pagination {
        gap: 10px
    }

    .article {
        padding-block: 24px
    }

    .meta, .article-meta {
        flex-wrap: wrap
    }

    .theme-preview .btn {
        padding: 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .btn, .story-card, .quick-cards > a {
        transition: none
    }
}

.desktop-nav a {
    color: #111827
}