:root {
    --ink: #172033;
    --muted: #647087;
    --line: #e5e9f0;
    --surface: #ffffff;
    --soft: #f4f7fb;
    --brand: #e32636;
    --brand-dark: #b91422;
    --success: #16754a;
    --success-soft: #eaf8f1;
    --danger: #b4232e;
    --danger-soft: #fff0f1;
    --shadow: 0 18px 50px rgba(29, 39, 65, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--brand-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.shell {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(229, 233, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner {
    min-height: 74px;
}

.brand img {
    width: 142px;
}

.main-nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.main-nav a,
.site-footer a {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.17), transparent 28%),
        linear-gradient(135deg, #111a2c 0%, #263658 55%, #8b1723 130%);
}

.hero-inner {
    padding-block: 72px 110px;
}

.hero-copy {
    max-width: 760px;
}

.hero h1,
.page-header h1 {
    margin: 8px 0 18px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.2rem, 5.5vw, 4.3rem);
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #dce3f0;
    font-size: 1.12rem;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ff9aa3;
}

.page-grid,
.content-page {
    padding-block: 38px 72px;
}

.home-content {
    margin-top: -74px;
}

.content-card,
.article-list {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content-card {
    padding: clamp(24px, 5vw, 56px);
}

.lookup-card {
    margin-block: 28px 42px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #dfe4ec;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #f7f9fc 100%);
}

.lookup-heading h2 {
    margin: 4px 0 4px;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.25;
}

.lookup-heading p,
.privacy-note {
    margin: 0;
    color: var(--muted);
}

.lookup-form {
    margin-top: 22px;
}

.lookup-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.92rem;
    font-weight: 750;
}

.lookup-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.lookup-controls input,
.lookup-controls button {
    min-height: 54px;
    border-radius: 10px;
    font: inherit;
}

.lookup-controls input {
    width: 100%;
    padding: 0 16px;
    border: 1px solid #cbd2df;
    color: var(--ink);
    background: #fff;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lookup-controls input:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(227, 38, 54, 0.14);
}

.lookup-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 24px;
    border: 0;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.lookup-controls button:hover {
    background: var(--brand-dark);
}

.lookup-controls button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.privacy-note {
    margin-top: 9px;
    font-size: 0.82rem;
}

.spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lookup-results {
    margin-top: 22px;
}

.result-message,
.violation-card {
    padding: 18px;
    border-radius: 12px;
}

.result-message.success {
    border: 1px solid #b9e2ce;
    color: var(--success);
    background: var(--success-soft);
}

.result-message.error {
    border: 1px solid #f0c2c6;
    color: var(--danger);
    background: var(--danger-soft);
}

.result-summary {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.violation-card {
    margin-top: 12px;
    border: 1px solid #f0c2c6;
    background: #fffafa;
}

.violation-card h3 {
    margin: 0 0 12px;
}

.violation-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.35fr) 1fr;
    gap: 12px;
    padding-block: 8px;
    border-top: 1px solid #f0e4e5;
}

.violation-row dt {
    color: var(--muted);
    font-weight: 700;
}

.violation-row dd {
    margin: 0;
    white-space: pre-line;
}

.prose {
    font-size: 1.03rem;
}

.prose h2,
.prose h3 {
    margin-top: 1.7em;
    margin-bottom: 0.55em;
    line-height: 1.28;
}

.prose h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.prose p,
.prose ul,
.prose ol {
    margin-block: 0.9em;
}

.prose figure {
    margin: 28px 0;
}

.prose figure img {
    width: 100%;
    border-radius: 14px;
}

.prose figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 10px;
    border: 1px solid var(--line);
    text-align: left;
}

.article-list {
    margin-top: 28px;
    padding: clamp(24px, 4vw, 38px);
}

.article-list h2 {
    margin: 3px 0 20px;
}

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

.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.article-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-card span {
    display: block;
    padding: 15px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    max-width: 900px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.page-header time {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    padding-block: 34px;
    border-top: 1px solid #dfe4ec;
    background: #fff;
}

.site-footer p {
    margin: 4px 0 0;
    color: var(--muted);
}

@media (max-width: 760px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a:nth-child(3) {
        display: none;
    }

    .hero-inner {
        padding-block: 52px 92px;
    }

    .lookup-controls,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .lookup-controls button {
        width: 100%;
    }

    .violation-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .footer-inner {
        flex-direction: column;
    }
}
