@import 'variables.css';
@import 'layout.css';
@import 'forms.css';
@import 'admin.css';

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--dps-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dps-text);
    background-color: #F8F9FB;
    background-image:
        radial-gradient(1100px 650px at 85% -10%, rgba(27, 31, 59, 0.035), transparent 62%),
        radial-gradient(800px 500px at -10% 25%, rgba(182, 141, 32, 0.035), transparent 60%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--dps-gold);
    color: var(--dps-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* FocusOnNavigate focuses the page heading for assistive technology; the
   heading is not interactive, so the visual ring is suppressed. */
h1:focus,
h1:focus-visible {
    outline: none;
}

h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--dps-gold-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--dps-navy);
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--dps-gold);
    outline-offset: 3px;
}

.dps-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dps-main {
    flex: 1 0 auto;
}

.dps-container {
    width: min(var(--dps-page-width), 100% - (var(--dps-gutter) * 2));
    margin-inline: auto;
}

.dps-container--narrow {
    width: min(1025px, 100% - (var(--dps-gutter) * 2));
}

.dps-section {
    padding-block: clamp(2.75rem, 6vw, 5rem);
}

.dps-section--alt {
    border-block: 1px solid var(--dps-border);
    background: var(--dps-surface-alt);
}

.dps-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.dps-section-head h2 {
    margin-top: 0.4rem;
}

.dps-section-head--stack {
    display: block;
    max-width: 760px;
    margin-bottom: 2rem;
}

.dps-section-intro {
    max-width: 72ch;
    color: var(--dps-text-muted);
}

.dps-eyebrow {
    display: inline-block;
    color: var(--dps-gold-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.dps-suit {
    color: var(--dps-gold);
}

.dps-suit--red {
    color: #E3685A;
}

.dps-suit-row {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--dps-gold);
    font-size: 1.15rem;
}

.dps-suit-row span:nth-child(even) {
    color: #E3685A;
}

.dps-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--dps-border-strong);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--dps-gold-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dps-badge--muted {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
}

.dps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--dps-gold);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dps-gold-soft), var(--dps-gold));
    color: var(--dps-black);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--dps-transition),
        box-shadow var(--dps-transition),
        background var(--dps-transition),
        color var(--dps-transition);
}

.dps-button:hover {
    color: var(--dps-black);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(212, 175, 55, 0.25);
}

.dps-button--ghost {
    border-color: var(--dps-border-strong);
    background: transparent;
    color: var(--dps-gold-dark);
}

.dps-button--ghost:hover {
    background: rgba(182, 141, 32, 0.1);
    color: var(--dps-navy);
}

.dps-button--small {
    padding: 0.5rem 0.95rem;
    font-size: 0.74rem;
}

.dps-button--block {
    width: 100%;
}

.dps-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--dps-gold-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.dps-link-arrow span {
    transition: transform var(--dps-transition);
}

.dps-link-arrow:hover span {
    transform: translateX(4px);
}

.dps-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    border-radius: var(--dps-radius-sm);
    background: var(--dps-gold);
    color: var(--dps-black);
    font-weight: 700;
}

.dps-skip-link:focus {
    top: 1rem;
    color: var(--dps-black);
}

.dps-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dps-status-card,
.dps-coming-soon {
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    background: var(--dps-surface);
    box-shadow: var(--dps-shadow-soft);
    text-align: center;
}

.dps-status-card h1,
.dps-coming-soon h1,
.dps-coming-soon h2 {
    margin-top: 0.25rem;
}

.dps-status-card p,
.dps-coming-soon p {
    max-width: 60ch;
    margin-inline: auto;
    color: var(--dps-text-muted);
}

.dps-status-card .dps-actions,
.dps-coming-soon .dps-actions {
    justify-content: center;
    margin-top: 1.5rem;
}

.dps-section--status {
    padding-block: clamp(3rem, 8vw, 6rem);
}

.dps-document-head {
    margin-bottom: 1.75rem;
}

.dps-document-head h1 {
    margin-top: 0.4rem;
    margin-bottom: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.dps-document {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    background: var(--dps-surface);
    box-shadow: var(--dps-shadow-soft);
}

.dps-document > :first-child {
    margin-top: 0;
}

.dps-document > :last-child {
    margin-bottom: 0;
}

.dps-document h2 {
    margin: 2rem 0 0.75rem;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.dps-document p {
    margin-bottom: 1rem;
}

.dps-document__quote {
    padding-left: 1rem;
    border-left: 3px solid var(--dps-gold);
    color: var(--dps-navy);
    font-style: italic;
}

.dps-document ul,
.dps-document ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.dps-document ol {
    padding-left: 1.7rem;
}

.dps-document li {
    margin-bottom: 0.5rem;
}

.dps-document li:last-child {
    margin-bottom: 0;
}

.dps-document li::marker {
    color: var(--dps-gold-dark);
}

.dps-document__meta {
    margin: 1.5rem 0 0;
    color: var(--dps-text-muted);
    font-size: 0.82rem;
}

.dps-table-wrap {
    overflow-x: auto;
}

.dps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.dps-table th,
.dps-table td {
    padding: 0.7rem 0.6rem;
    border: 1px solid rgba(23, 26, 32, 0.14);
    line-height: 1.35;
    text-align: center;
}

.dps-table thead th {
    background: var(--dps-black);
    color: var(--dps-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dps-table thead tr:first-child th {
    color: var(--dps-gold);
    letter-spacing: 0.1em;
}

.dps-table tbody th {
    background: var(--dps-navy-deep);
    color: var(--dps-white);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.dps-table tbody td {
    background: rgba(182, 141, 32, 0.14);
    color: var(--dps-black);
    font-weight: 700;
}

.dps-table tbody tr:nth-child(even) td {
    background: rgba(182, 141, 32, 0.24);
}

.dps-table tbody tr.dps-table__pause th,
.dps-table tbody tr.dps-table__pause td {
    background: linear-gradient(135deg, #DDBE63, var(--dps-gold));
    color: var(--dps-black);
    border-color: rgba(23, 26, 32, 0.22);
    font-weight: 700;
}

.dps-table tbody tr.dps-table__pause th {
    text-align: center;
    white-space: normal;
}

.dps-table--levels td {
    white-space: nowrap;
}

.dps-document__note {
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--dps-gold);
    background: rgba(182, 141, 32, 0.08);
    color: var(--dps-text-muted);
    font-size: 0.88rem;
}

.dps-document__note strong {
    color: var(--dps-gold-dark);
}

.dps-notice {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px dashed var(--dps-border-strong);
    border-radius: var(--dps-radius);
    background: rgba(182, 141, 32, 0.06);
    color: var(--dps-text-muted);
}

.dps-notice h2 {
    color: var(--dps-gold-dark);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dps-notice p:last-child {
    margin-bottom: 0;
}

.dps-alert {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--dps-radius-sm);
    font-size: 0.9rem;
}

.dps-alert--error {
    border: 1px solid rgba(224, 92, 75, 0.5);
    background: rgba(192, 57, 43, 0.16);
    color: #9B251D;
}

.dps-alert--warning {
    border: 1px solid var(--dps-border-strong);
    background: rgba(212, 175, 55, 0.1);
    color: #705307;
}

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 0.7rem 3rem 0.7rem 1.25rem;
    border-top: 1px solid var(--dps-border-strong);
    background: var(--dps-surface-alt);
    color: var(--dps-text);
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.4);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .dps-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 560px) {
    .dps-document {
        padding: 1rem 0.75rem;
    }

    .dps-document-head h1 {
        font-size: clamp(1.3rem, 6.2vw, 2.2rem);
    }

    .dps-table {
        font-size: 0.78rem;
    }

    .dps-table th,
    .dps-table td {
        padding: 0.45rem 0.2rem;
    }

    .dps-table thead th {
        font-size: 0.6rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .dps-table thead th[rowspan] {
        width: 38%;
    }

    .dps-table tbody th {
        font-size: 0.74rem;
        white-space: normal;
    }

    .dps-table--levels {
        font-size: 0.74rem;
    }

    .dps-table--levels th,
    .dps-table--levels td {
        padding: 0.4rem 0.15rem;
    }

    .dps-table--levels thead th {
        white-space: normal;
    }
}

@media (max-width: 400px) {
    .dps-table th,
    .dps-table td {
        padding: 0.4rem 0.12rem;
    }

    .dps-table thead th {
        font-size: 0.56rem;
    }

    .dps-table tbody th {
        font-size: 0.7rem;
    }

    .dps-table--levels {
        font-size: 0.68rem;
    }

    .dps-table--levels th,
    .dps-table--levels td {
        padding: 0.35rem 0.1rem;
    }
}

@media (max-width: 360px) {
    .dps-table--levels {
        font-size: 0.62rem;
    }

    .dps-table--levels th,
    .dps-table--levels td {
        padding: 0.3rem 0.06rem;
    }
}
