:root {
    --ink: #173133;
    --muted: #526668;
    --teal: #075b5e;
    --teal-dark: #034548;
    --teal-soft: #d9eeee;
    --coral: #c84f3d;
    --coral-dark: #a63d2e;
    --yellow-soft: #fff1bd;
    --blue-soft: #dcecf5;
    --green-soft: #dfeee2;
    --rose-soft: #f5e1df;
    --surface: #ffffff;
    --surface-alt: #f4f7f6;
    --line: #cbd7d6;
    --focus: #ffbf47;
    --danger: #a42929;
    --success: #17683d;
    --shadow: 0 12px 30px rgba(23, 49, 51, .1);
    --radius: 8px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.6; letter-spacing: 0; }
body.text-large { font-size: 21px; }
img, video { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: 3.2rem; margin-bottom: 1.3rem; }
h2 { font-size: 2.15rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; transform: translateY(-160%); background: var(--focus); color: #1c2525; font-weight: 700; padding: 12px 18px; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: .6rem; color: var(--teal); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 6px; padding: 10px 20px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); color: #fff; }
.button-accent { background: var(--coral); color: #fff; }
.button-accent:hover { background: var(--coral-dark); color: #fff; }
.button-secondary { border-color: var(--teal); background: #fff; color: var(--teal-dark); }
.button-secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.button-light { border-color: var(--ink); background: rgba(255,255,255,.88); color: var(--ink); }
.button-light:hover { background: #fff; color: var(--ink); }
.full-button { width: 100%; }

.utility-bar { background: var(--teal-dark); color: #fff; }
.utility-inner { min-height: 45px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.language-switch { display: flex; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; overflow: hidden; }
.language-option, .text-size-button { min-height: 38px; border: 0; background: transparent; color: #fff; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.language-option.is-active { background: #fff; color: var(--teal-dark); }
.text-size-button { min-width: 48px; }
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { min-height: 88px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--teal); }
.brand-mark { display: inline-grid; width: 48px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: .85rem; font-weight: 900; }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.desktop-nav a { color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; }
.header-search { display: flex; align-items: stretch; }
.header-search input { width: 145px; min-height: 46px; border: 1px solid var(--line); border-radius: 5px 0 0 5px; padding: 8px 12px; }
.header-search button { border: 0; border-radius: 0 5px 5px 0; background: var(--teal); color: #fff; font-weight: 700; padding: 8px 14px; cursor: pointer; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: 620px; overflow: hidden; background: #e8edeb; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 32%, rgba(255,255,255,.15) 60%, rgba(255,255,255,0) 78%); }
.hero-inner { position: relative; z-index: 1; min-height: 620px; display: flex; align-items: center; }
.hero-copy { width: min(560px, 48%); padding-block: 54px; }
.hero h1 { font-size: 4rem; margin-bottom: .7rem; color: var(--teal-dark); }
.hero-claim { max-width: 520px; margin-bottom: 1.1rem; color: var(--ink); font-size: 1.65rem; font-weight: 800; line-height: 1.25; }
.hero-text { max-width: 520px; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.band { background: var(--surface-alt); }
.quick-search { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 38px; }
.search-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.search-layout h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.large-search-form label { display: block; font-weight: 800; margin-bottom: 8px; }
.input-action { display: grid; grid-template-columns: 1fr auto; }
.input-action input { min-width: 0; min-height: 56px; border: 2px solid #809493; border-radius: 6px 0 0 6px; padding: 10px 16px; }
.input-action .button { min-height: 56px; border-radius: 0 6px 6px 0; }

.section { padding-block: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { min-height: 280px; display: flex; flex-direction: column; padding: 28px; border: 1px solid transparent; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.topic-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-1 { background: var(--teal-soft); }
.topic-2 { background: var(--yellow-soft); }
.topic-3 { background: var(--blue-soft); }
.topic-number { margin-bottom: auto; color: var(--teal-dark); font-size: .82rem; font-weight: 900; }
.topic-card h3 { margin-top: 24px; margin-bottom: 8px; }
.topic-card p { color: #364b4d; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; font-weight: 800; }
.topics-header { background: var(--yellow-soft); }
.topic-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.topic-overview-item { border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); background: #fff; padding: 26px; }
.topic-overview-2 { border-top-color: var(--coral); }
.topic-overview-3 { border-top-color: #367da0; }
.topic-overview-4 { border-top-color: var(--success); }
.topic-overview-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.topic-overview-heading span { color: var(--muted); font-size: .78rem; font-weight: 900; }
.topic-overview-heading h3 { margin: 0; }
.topic-overview-item > p { color: var(--muted); }
.topic-overview-item ul { margin: 20px 0 0; padding-left: 1.25rem; }
.topic-overview-item li { margin-bottom: 7px; }
.topic-overview-item li::marker { color: var(--coral); }
.topics-more-band { background: var(--blue-soft); padding-block: 64px; }
.topics-more-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.topics-more-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.topics-more-links a, .topics-more-links span { min-height: 54px; display: flex; align-items: center; border-bottom: 1px solid #9db6c2; color: var(--ink); font-weight: 800; text-decoration: none; }
.topics-more-links a:hover { color: var(--coral-dark); text-decoration: underline; }
.topics-more-links span { color: var(--muted); font-weight: 700; }
.news-band { background: #eef4f2; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { min-height: 290px; display: flex; flex-direction: column; padding: 28px; border-top: 5px solid var(--coral); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.news-card time { margin-top: auto; color: var(--muted); font-size: .85rem; }
.news-meta, .card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--teal); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.dgs-badge, .demo-label { display: inline-flex; width: fit-content; border-radius: 4px; background: var(--yellow-soft); color: #5b4700; padding: 3px 8px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.feature-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.feature-copy p:not(.eyebrow) { max-width: 560px; }
.facility-highlight { padding: 36px; border: 1px solid var(--line); border-left: 8px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow); }
.facility-type { color: var(--muted); }
.competence-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.level { display: inline-flex; width: fit-content; align-items: center; border-radius: 4px; padding: 5px 10px; font-size: .85rem; }
.level-very_good { background: #ccead8; color: #0d5830; }
.level-good { background: var(--teal-soft); color: var(--teal-dark); }
.level-basic { background: var(--yellow-soft); color: #614c00; }
.level-none { background: var(--rose-soft); color: #7d2d25; }
.level-unknown { background: #e8eceb; color: #465655; }
.states-band { background: var(--teal-dark); color: #fff; }
.states-band .eyebrow { color: #9edcda; }
.states-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.state-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.state-links a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; text-decoration: none; }
.state-links a:hover { color: var(--yellow-soft); }
.glossary-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.term-list { display: flex; flex-wrap: wrap; gap: 12px; }
.glossary-link { border: 0; border-bottom: 3px dotted var(--coral); background: transparent; color: inherit; padding: 0 2px; cursor: pointer; font-weight: inherit; }
.term-button { min-height: 50px; border: 2px solid var(--teal); border-radius: 5px; padding: 8px 18px; color: var(--teal-dark); font-weight: 800; }
.term-button:hover { background: var(--teal-soft); }
.glossary-dialog { width: min(620px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.glossary-dialog::backdrop { background: rgba(9, 31, 32, .72); }
.dialog-content { padding: 34px; }
.dialog-explanation { font-size: 1.12rem; }
.dialog-video { margin-block: 20px; background: #111; }
.dialog-video video { width: 100%; }

.page-header { padding-block: 62px; border-bottom: 1px solid var(--line); }
.narrow-heading { max-width: 920px; }
.narrow-heading h1 { margin-bottom: 12px; }
.narrow-heading > p:last-child { max-width: 760px; font-size: 1.12rem; }
.directory-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; padding-block: 56px 90px; align-items: start; }
.filter-panel { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.filter-panel h2 { font-size: 1.3rem; }
.filter-panel label { margin-top: 8px; font-weight: 800; }
.filter-panel input, .filter-panel select, .admin-form input, .admin-form select, .admin-form textarea, .moderation-item select { width: 100%; min-height: 50px; border: 2px solid #809493; border-radius: 5px; background: #fff; padding: 9px 12px; }
.filter-panel .button { margin-top: 12px; }
.reset-link { text-align: center; }
.results-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.results-heading h2 { margin: 0; }
.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.directory-card { min-height: 290px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.directory-card h3 a { color: var(--ink); text-decoration: none; }
.directory-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.empty-state { padding: 34px; border-left: 6px solid var(--coral); background: var(--surface-alt); }
.availability-list { padding-left: 1.3rem; }
.availability-list li::marker { color: #8b9493; }
.availability-list li.available::marker { color: var(--success); }
.detail-page, .article-page { padding-block: 40px 100px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 45px; font-size: .9rem; }
.detail-header { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: start; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.lead { font-size: 1.3rem; color: #334b4d; }
.contact-block { padding: 26px; background: var(--teal-soft); border-radius: var(--radius); }
.contact-block h2 { font-size: 1.3rem; }
.contact-block address { margin-bottom: 16px; font-style: normal; }
.contact-block a { display: block; margin-top: 8px; font-weight: 800; }
.competence-section, .services-section, .reviews-section { padding-top: 62px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-item { min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.skill-item > span { font-weight: 800; }
.skill-item small { color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; padding-left: 1.4rem; }
.check-list li::marker { color: var(--success); }
.review-item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 0; }
.ratings div { border-top: 3px solid var(--teal); padding-top: 10px; }
.ratings dt { color: var(--muted); font-size: .82rem; }
.ratings dd { margin: 0; font-weight: 800; }
.article-page { max-width: 900px; }
.article-header { margin-bottom: 46px; }
.article-header time { color: var(--muted); }
.dgs-section { margin-block: 46px; padding: 30px; border-left: 8px solid var(--coral); background: var(--surface-alt); }
.video-placeholder { min-height: 260px; display: grid; place-items: center; background: var(--ink); color: #fff; text-align: center; }
.transcript { margin-top: 16px; }
.transcript summary, .advanced-fields summary { cursor: pointer; color: var(--teal-dark); font-weight: 800; }
.article-body { font-size: 1.12rem; }
.article-body p { margin-bottom: 1.5rem; }
.prototype-note { margin-top: 50px; padding: 22px; border-left: 6px solid var(--coral); background: var(--yellow-soft); }
.state-content { display: grid; gap: 70px; padding-block: 70px 100px; }
.compact-list { grid-template-columns: repeat(3, 1fr); }
.compact-list .directory-card { min-height: 200px; }
.search-page-form { max-width: 760px; margin-top: 28px; }
.search-results { padding-block: 60px 100px; }
.result-list { display: grid; gap: 12px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result > span { color: var(--teal); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.search-result h3 { margin: 4px 0; }
.search-result p { margin: 0; color: var(--muted); }

.contact-header { background: var(--surface-alt); }
.contact-section { padding-block: 52px 96px; }
.contact-shell { max-width: 1060px; }
.contact-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--teal); border-radius: 6px; margin-bottom: 48px; overflow: hidden; }
.contact-tab, .video-source-tab { min-height: 58px; border: 0; background: #fff; color: var(--teal-dark); padding: 10px 18px; cursor: pointer; font-weight: 800; }
.contact-tab + .contact-tab, .video-source-tab + .video-source-tab { border-left: 1px solid var(--teal); }
.contact-tab.is-active, .video-source-tab.is-active { background: var(--teal); color: #fff; }
.contact-panel { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 7vw, 82px); align-items: start; }
.contact-intro { padding-top: 10px; }
.contact-intro h2 { margin-bottom: 14px; }
.contact-intro p:last-child { color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; border-top: 6px solid var(--coral); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-alt); padding: clamp(22px, 4vw, 36px); }
.contact-form .field label { display: block; margin-bottom: 6px; font-weight: 800; }
.contact-form input:not([type='checkbox']):not([type='file']), .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; border: 2px solid #809493; border-radius: 5px; background: #fff; padding: 10px 12px; }
.contact-form textarea { resize: vertical; }
.field-wide { grid-column: 1 / -1; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: .84rem; }
.optional-label { color: var(--muted); font-size: .82rem; font-weight: 400; }
.consent-field { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.consent-field input { width: 22px; height: 22px; margin: 4px 0 0; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; border-top: 1px solid var(--line); padding-top: 24px; }
.form-submit p { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: .88rem; }
.button:disabled { cursor: wait; opacity: .68; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-success, .form-error-summary { margin-bottom: 32px; border-left: 7px solid var(--success); background: #e2f1e8; padding: 20px 24px; }
.form-error-summary { border-color: var(--danger); background: #f7e5e5; }
.form-success strong, .form-error-summary strong { display: block; margin-bottom: 3px; font-size: 1.15rem; }
.form-success p, .form-error-summary p { margin: 0; }
.video-field { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.video-field legend { padding-inline: 7px; font-weight: 800; }
.video-source-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--teal); border-radius: 5px; margin-bottom: 20px; overflow: hidden; }
.video-source-tab { min-height: 50px; }
.video-source-tab:disabled { cursor: not-allowed; opacity: .55; }
.camera-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #101819; color: #fff; }
.camera-stage video { width: 100%; height: 100%; object-fit: contain; }
.camera-stage p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; }
.camera-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.recording-status { min-height: 30px; margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.file-picker { display: grid; gap: 3px; border: 2px dashed #809493; border-radius: 6px; background: #fff; padding: 18px; cursor: pointer; }
.file-picker:hover { border-color: var(--teal); background: var(--teal-soft); }
.file-picker span { color: var(--muted); font-size: .84rem; }
.video-source-panel input[type='file'] { width: 100%; margin-top: 12px; }
.upload-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; margin-top: 18px; background: #101819; }

.site-footer { background: #142f31; color: #dbe6e5; padding-top: 62px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: 8px; color: #dbe6e5; }
.footer-brand { color: #fff; font-size: 1.4rem; font-weight: 900; }
.footer-heading { color: #fff; font-weight: 900; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.2); padding-block: 18px; font-size: .82rem; }

.login-body { min-height: 100vh; display: grid; place-items: center; background: #e8efed; padding: 24px; }
.login-panel { width: min(480px, 100%); padding: 42px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.login-brand { margin-bottom: 38px; }
.admin-form { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { margin: 5px 0 0; color: var(--danger); font-weight: 700; }
.check-field { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-field input { width: 22px; height: 22px; }
.back-link { display: block; margin-top: 22px; text-align: center; }
.admin-body { background: #f2f5f4; font-size: 16px; }
.admin-topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 24px; }
.admin-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.1rem; font-weight: 900; text-decoration: none; }
.admin-topbar .brand-mark { width: 42px; }
.admin-account { display: flex; align-items: center; gap: 18px; }
.admin-account form { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-weight: 800; text-decoration: underline; }
.admin-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 230px 1fr; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #fff; padding: 24px 14px; }
.admin-nav a, .nav-disabled { min-height: 46px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; padding: 8px 14px; color: var(--ink); font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { background: var(--teal-soft); color: var(--teal-dark); }
.nav-disabled { color: #7c8988; }
.nav-disabled small { font-weight: 400; }
.admin-main { min-width: 0; padding: 38px clamp(24px, 5vw, 70px) 80px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.admin-page-header h1 { margin: 0; font-size: 2.4rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.admin-stat-grid div { min-height: 130px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.admin-stat-grid strong { color: var(--teal); font-size: 2.2rem; line-height: 1; }
.admin-stat-grid span { margin-top: 10px; color: var(--muted); }
.admin-section { margin-top: 44px; }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-actions a { min-height: 84px; display: flex; align-items: center; border: 1px solid var(--line); border-left: 6px solid var(--coral); border-radius: var(--radius); background: #fff; padding: 18px; font-weight: 800; text-decoration: none; }
.status-message, .error-summary { margin-bottom: 25px; border-left: 6px solid var(--success); background: #e2f1e8; padding: 16px 20px; }
.error-summary { border-color: var(--danger); background: #f7e5e5; }
.admin-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.admin-header-actions form { margin: 0; }
.maintenance-toggle { border-color: var(--coral); background: #fff; color: var(--coral-dark); }
.maintenance-toggle > span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.maintenance-toggle-active { border-color: var(--success); background: #e2f1e8; color: #104b2d; }
.maintenance-toggle-active > span { background: var(--success); }
.maintenance-status { margin-bottom: 28px; border-left: 6px solid var(--coral); background: var(--yellow-soft); padding: 16px 20px; }
.maintenance-body { min-height: 100vh; display: grid; place-items: center; background: var(--surface-alt); padding: 24px; }
.maintenance-page { width: min(720px, 100%); border-top: 8px solid var(--teal); background: #fff; padding: clamp(32px, 7vw, 72px); box-shadow: var(--shadow); }
.maintenance-page .brand-mark { margin-bottom: 34px; }
.maintenance-page h1 { color: var(--teal-dark); }
.maintenance-page > p:last-child { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #e7edeb; }
.status { display: inline-flex; border-radius: 4px; padding: 3px 8px; font-size: .8rem; font-weight: 800; }
.status-published { background: #dcefe3; color: #155b36; }
.status-draft { background: #e8eceb; color: #485756; }
.wide-form { max-width: 820px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 30px; }
.advanced-fields { border: 1px solid var(--line); border-radius: 5px; padding: 16px; }
.advanced-fields[open] { display: grid; gap: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 1px solid var(--line); border-radius: 5px; padding: 18px; }
.role-options legend { padding-inline: 8px; font-weight: 800; }
.role-options .check-field { min-height: 48px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-alt); padding: 8px 12px; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.moderation-list { display: grid; gap: 16px; }
.moderation-item { display: grid; grid-template-columns: 1fr 250px; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.moderation-item form { display: grid; align-content: start; gap: 8px; }

@media (max-width: 1050px) {
    .desktop-nav, .header-search { display: none; }
    .mobile-nav { display: block; margin-left: auto; position: relative; }
    .mobile-nav summary { min-height: 48px; display: flex; align-items: center; border: 2px solid var(--teal); border-radius: 5px; padding: 8px 14px; color: var(--teal-dark); font-weight: 800; cursor: pointer; }
    .mobile-nav nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 12px; }
    .mobile-nav nav a { min-height: 50px; display: flex; align-items: center; padding: 8px 10px; font-weight: 800; text-decoration: none; }
    .topic-grid, .news-grid, .topic-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    body { font-size: 17px; }
    body.text-large { font-size: 19px; }
    .shell { width: min(calc(100% - 32px), var(--shell)); }
    h1 { font-size: 2.35rem; }
    h2 { font-size: 1.7rem; }
    .utility-inner { justify-content: space-between; }
    .header-main { min-height: 74px; }
    .brand { font-size: 1.05rem; }
    .brand-mark { width: 42px; }
    .hero, .hero-inner { min-height: 580px; }
    .hero > img { object-position: 66% center; }
    .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 54%, rgba(255,255,255,.65) 100%); }
    .hero-inner { align-items: flex-start; }
    .hero-copy { width: 100%; padding-top: 44px; }
    .hero h1 { font-size: 3rem; }
    .hero-claim { font-size: 1.35rem; }
    .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 360px); }
    .search-layout, .feature-layout, .states-layout, .glossary-intro, .detail-header, .contact-panel, .topics-more-layout { grid-template-columns: 1fr; gap: 32px; }
    .input-action { grid-template-columns: 1fr; gap: 8px; }
    .input-action input, .input-action .button { border-radius: 6px; }
    .section { padding-block: 58px; }
    .section-heading { display: block; margin-bottom: 26px; }
    .topic-grid, .news-grid, .directory-list, .compact-list, .skill-grid, .topic-overview-grid, .topics-more-links { grid-template-columns: 1fr; }
    .topic-card { min-height: 235px; }
    .state-links { grid-template-columns: 1fr; }
    .directory-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
    .filter-panel { position: static; }
    .ratings { grid-template-columns: repeat(2, 1fr); }
    .check-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
    .admin-nav a, .nav-disabled { flex: 0 0 auto; }
    .admin-main { padding: 26px 16px 60px; }
    .admin-page-header { align-items: flex-start; flex-direction: column; }
    .admin-stat-grid, .admin-actions { grid-template-columns: repeat(2, 1fr); }
    .field-grid, .moderation-item, .role-options { grid-template-columns: 1fr; }
    .contact-section { padding-block: 34px 64px; }
    .contact-tabs { margin-bottom: 34px; }
    .contact-form { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .wide-form, .login-panel { padding: 22px; }
    .admin-account > span { display: none; }
}

@media (max-width: 420px) {
    .brand > span:last-child { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .admin-stat-grid, .admin-actions { grid-template-columns: 1fr; }
    .ratings { grid-template-columns: 1fr; }
    .contact-tabs, .video-source-tabs { grid-template-columns: 1fr; }
    .contact-tab + .contact-tab, .video-source-tab + .video-source-tab { border-top: 1px solid var(--teal); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .utility-bar, .site-header, .site-footer, .hero-actions, .filter-panel { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
