:root {
    --fox-bg: #f5f7f9;
    --fox-surface: #ffffff;
    --fox-surface-soft: #f8fafc;
    --fox-border: #d9e0e8;
    --fox-text: #171f2b;
    --fox-muted: #6b7480;
    --fox-primary: #153761;
    --fox-primary-dark: #0c2748;
    --fox-accent: #229f8f;
    --fox-blue: #4d86a4;
    --fox-danger: #b42318;
    --fox-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    --fox-radius: 4px;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--fox-text);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
    flex: 1 0 auto;
}

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

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

.btn {
    border-radius: 7px;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--fox-primary);
    --bs-btn-border-color: var(--fox-primary);
    --bs-btn-hover-bg: var(--fox-primary-dark);
    --bs-btn-hover-border-color: var(--fox-primary-dark);
}

.btn-light {
    --bs-btn-color: var(--fox-primary-dark);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: var(--fox-primary-dark);
    --bs-btn-hover-bg: #eef4f7;
    --bs-btn-hover-border-color: #eef4f7;
}

.btn-quiet {
    color: var(--fox-text);
    background: #edf2f6;
    border-color: #edf2f6;
}

.btn-quiet:hover {
    color: var(--fox-primary);
    background: #e6edf7;
    border-color: #e6edf7;
}

.site-utility {
    min-height: 40px;
    color: #fff;
    background: #2c2c2c;
    font-size: 0.78rem;
}

.site-utility .container {
    min-height: 40px;
}

.site-utility a,
.site-utility button {
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-utility a:hover,
.site-utility button:hover {
    color: #fff;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 94px;
    background: #fff;
    border-bottom: 1px solid #e7ebf0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
    color: var(--fox-text);
}

.site-navbar .nav-link {
    padding-right: 20px;
    padding-left: 20px;
    color: #2a3442;
    border-radius: 4px;
    font-size: 1.02rem;
    font-weight: 700;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--fox-accent);
    background: #eef7f6;
}

.site-navbar .navbar-toggler {
    border-color: var(--fox-border);
}

.site-navbar .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    display: block;
    width: 172px;
    max-width: 42vw;
    height: auto;
}

.site-footer {
    margin-top: auto;
    padding: 34px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #2c2c2c;
    border-top: 0;
}

.site-footer .text-body,
.site-footer .text-secondary {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.site-footer-brand {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 800;
}

.site-footer-copy {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

.site-footer-info {
    display: flex;
    max-width: 760px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: right;
}

.maintenance-page {
    display: flex;
    width: 100%;
    min-height: 620px;
    align-items: center;
    padding: 88px 0;
    background:
            linear-gradient(135deg, rgba(21, 55, 97, 0.08), rgba(34, 159, 143, 0.08)),
            #f8fbfd;
}

.maintenance-container {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
}

.maintenance-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 48px;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    box-shadow: var(--fox-shadow);
    text-align: center;
}

.maintenance-logo {
    width: 180px;
    max-width: 58vw;
    height: auto;
    margin-bottom: 32px;
}

.maintenance-panel h1 {
    margin: 10px 0 16px;
    color: var(--fox-primary-dark);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0;
}

.maintenance-panel p {
    margin: 0;
    color: var(--fox-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.maintenance-panel .maintenance-note {
    margin-top: 10px;
    color: var(--fox-text);
    font-weight: 700;
}

.home-visual {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid #e7edf4;
}

.home-visual-overlay {
    display: flex;
    min-height: 0;
    align-items: center;
    padding: 70px 0 76px;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
    gap: 54px;
    align-items: center;
}

.home-hero-copy {
    max-width: 440px;
}

.home-hero-copy .eyebrow {
    margin-bottom: 14px;
    color: var(--fox-accent);
}

.home-hero-copy h1 {
    margin: 0;
    color: #081a33;
    font-size: 3.35rem;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.home-hero-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    color: var(--fox-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-contact-band .eyebrow {
    color: #79ddcf;
}

.home-product-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-map-image {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.home-shortcuts {
    padding: 72px 0 54px;
    background: #fff;
}

.section-title-center {
    margin-bottom: 42px;
    text-align: center;
}

.section-title-center h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.section-title-center span {
    display: block;
    width: 72px;
    height: 1px;
    margin: 22px auto 0;
    background: #c7cdd4;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.shortcut-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 26px 18px;
    color: #fff;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.shortcut-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.shortcut-card strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.shortcut-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.84);
    border-radius: 4px;
    font-weight: 800;
}

.shortcut-card-navy {
    background: #18365b;
}

.shortcut-card-blue {
    background: var(--fox-blue);
}

.shortcut-card-teal {
    background: var(--fox-accent);
}

.home-board-strip {
    padding: 22px 0 70px;
    background: #fff;
}

.board-preview {
    height: 100%;
}

.board-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 3px solid #171f2b;
}

.board-preview-head strong {
    font-size: 1.12rem;
    font-weight: 800;
}

.board-preview-head a {
    color: #171f2b;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.board-preview-item {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    color: var(--fox-text);
    border-bottom: 1px solid #e5e9ee;
}

.board-preview-item:hover {
    color: var(--fox-accent);
}

.board-preview-link:hover .board-preview-date {
    color: var(--fox-accent);
}

.board-preview-title-wrap {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.board-preview-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.board-preview-date {
    flex: 0 0 auto;
    color: var(--fox-muted);
    font-weight: 700;
}

.board-preview-new {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--fox-accent);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.board-preview-board {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 7px;
    color: var(--fox-primary);
    background: #edf4f8;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.board-preview-empty {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 16px 0;
    color: var(--fox-muted);
    border-bottom: 1px solid #e5e9ee;
    font-weight: 700;
}

.home-showcase {
    padding: 78px 0;
    background: var(--fox-bg);
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-section-head h2,
.home-contact-inner h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.showcase-card {
    display: block;
    color: var(--fox-text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--fox-radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.showcase-card:hover {
    color: var(--fox-primary);
    border-color: #c7d2de;
}

.showcase-body {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 24px;
}

.showcase-body small {
    color: var(--fox-accent);
    font-weight: 800;
}

.showcase-body strong {
    color: var(--fox-text);
    font-size: 1.08rem;
    font-weight: 800;
}

.home-contact-band {
    padding: 54px 0;
    color: #fff;
    background: #153761;
}

.home-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.home-contact-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.page-hero {
    padding: 54px 0 34px;
    background: var(--fox-surface);
    border-bottom: 1px solid var(--fox-border);
}

.page-hero-inner {
    max-width: 760px;
}

.page-hero h1,
.admin-heading h1 {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.page-hero p:not(.eyebrow),
.admin-heading p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--fox-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    margin: 0;
    color: var(--fox-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.section-block {
    padding: 38px 0;
}

.surface-panel,
.table-panel,
.auth-panel,
.metric-card,
.feature-card,
.post-detail {
    background: var(--fox-surface);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow);
}

.surface-panel,
.auth-panel {
    padding: 28px;
}

.feature-card {
    height: 100%;
    padding: 24px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #b8c7dd;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.11);
}

.feature-card h2,
.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
}

.feature-card p,
.text-muted-readable {
    color: var(--fox-muted);
    line-height: 1.7;
}

.content-body {
    line-height: 1.85;
    white-space: normal;
}

.post-detail {
    padding: 28px;
}

.post-meta {
    color: var(--fox-muted);
    font-size: 0.92rem;
}

.table-panel {
    overflow: hidden;
    box-shadow: none;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--fox-muted);
    background: var(--fox-surface-soft);
    border-bottom: 1px solid var(--fox-border);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
}

.table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.table-row-link {
    color: var(--fox-text);
    font-weight: 700;
}

.table-row-link:hover {
    color: var(--fox-primary);
}

.empty-state {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--fox-muted);
    background: var(--fox-surface);
    border: 1px dashed #b8c7dd;
    border-radius: var(--fox-radius);
}

.empty-state-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--fox-primary);
    background: #eef4ff;
    border-radius: 8px;
    font-weight: 800;
}

.auth-page {
    width: min(100%, 1040px);
}

.auth-panel h1 {
    font-weight: 800;
    letter-spacing: 0;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fox-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

.admin-shell {
    padding: 34px 0 54px;
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    padding: 16px;
    background: var(--fox-surface);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow);
}

.admin-sidebar-title {
    padding: 8px 10px 14px;
    color: var(--fox-muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

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

.admin-nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--fox-text);
    border-radius: 7px;
    font-weight: 700;
}

.admin-nav-link:hover {
    color: var(--fox-primary);
    background: #eef4ff;
}

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.d-flex > .admin-heading {
    flex: 1;
    margin-bottom: 0;
}

.metric-card {
    padding: 22px;
    box-shadow: none;
}

.metric-label {
    color: var(--fox-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.metric-value {
    margin-top: 8px;
    color: var(--fox-text);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.badge-soft {
    color: var(--fox-primary);
    background: #eef4ff;
}

.badge-soft-green {
    color: var(--fox-accent);
    background: #e7f6f4;
}

.table-number {
    width: 82px;
    text-align: center;
}

.table-writer {
    width: 140px;
}

.table-count {
    width: 90px;
}

.table-date {
    width: 130px;
}

@media (max-width: 991.98px) {
    .site-navbar {
        min-height: auto;
    }

    .site-navbar .navbar-collapse {
        padding-top: 14px;
    }

    .site-navbar .nav-link {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nav-actions {
        align-items: stretch !important;
        padding-top: 10px;
    }

    .home-visual-overlay {
        padding: 32px 0 38px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-hero-copy {
        max-width: 680px;
    }

    .home-hero-copy h1 {
        font-size: 2.8rem;
    }

    .home-product-map {
        min-height: 0;
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .home-contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .site-utility {
        display: none;
    }

    .brand-logo {
        width: 138px;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 18px;
    }

    .site-footer-info {
        text-align: left;
    }

    .home-visual-overlay {
        padding: 24px 0 28px;
    }

    .home-hero-copy h1 {
        font-size: 2.25rem;
    }

    .home-hero-copy p:not(.eyebrow) {
        font-size: 1rem;
    }

    .home-product-map-image {
        border-radius: 6px;
    }

    .home-shortcuts {
        padding: 50px 0 34px;
    }

    .section-title-center {
        margin-bottom: 28px;
    }

    .section-title-center h2,
    .home-section-head h2,
    .home-contact-inner h2 {
        font-size: 1.65rem;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-card {
        min-height: 126px;
    }

    .home-board-strip,
    .home-showcase {
        padding: 48px 0;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 40px 0 28px;
    }

    .page-hero h1,
    .admin-heading h1 {
        font-size: 2.05rem;
    }

    .surface-panel,
    .auth-panel,
    .post-detail {
        padding: 20px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-number,
    .table-writer,
    .table-count,
    .table-date {
        width: auto;
    }
}
