:root {
    --black: #111111;
    --red: #c1121f;
    --white: #ffffff;
    --gray: #f3f3f3;
    --muted: #555555;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.65;
}

.container {
    max-width: 1050px;
    margin: auto;
    padding: 0 24px;
}

header {
    background: var(--black);
    color: white;
    border-bottom: 5px solid var(--red);
}

.brand {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.version {
    border: 1px solid #888;
    padding: 2px 10px;
    font-size: 12px;
}

.hero {
    padding: 65px 0 40px;
}

.eyebrow {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.03;
    letter-spacing: -2px;
    font-weight: 950;
    margin: 18px 0;
}

h1 span { color: var(--red); }
h2 { line-height: 1.3; }
.hero h2 { font-size: 28px; }
.hero p { max-width: 650px; }

.notice {
    border-left: 5px solid var(--black);
    background: var(--gray);
    padding: 18px 24px;
    margin-bottom: 24px;
}

.notice p { margin-bottom: 0; }

.emergency {
    background: var(--red);
    color: white;
    padding: 24px;
    margin-bottom: 40px;
}

.emergency h2 { margin-top: 0; }
.emergency p { margin-bottom: 0; }

.section-title {
    font-size: 28px;
    border-bottom: 3px solid var(--black);
    padding-bottom: 12px;
}

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

.tile {
    border: 2px solid var(--black);
    border-top: 5px solid var(--red);
    padding: 22px;
}

.number {
    font-size: 34px;
    color: var(--red);
    font-weight: 900;
}

.tile h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 8px 0;
}

.tile p { color: var(--muted); }

.tile small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.offline {
    margin-top: 45px;
    background: var(--gray);
    padding: 26px;
    border-left: 5px solid var(--red);
}

.offline h2 { margin-top: 0; }

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    background: var(--red);
    color: white;
    border: 2px solid var(--red);
    padding: 13px 18px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

button.secondary {
    background: white;
    color: var(--black);
    border-color: var(--black);
}

button:focus-visible, a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 4px;
}

.principles {
    padding: 35px 0 45px;
    max-width: 750px;
}

footer {
    background: var(--black);
    color: white;
    border-top: 5px solid var(--red);
    padding: 35px 0;
    text-align: center;
}

footer strong { letter-spacing: 2px; }
footer p { font-size: 13px; color: #ddd; }

@media (max-width: 760px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 35px; }
    .container { padding: 0 16px; }
}

@media (max-width: 440px) {
    .grid { grid-template-columns: 1fr; }
    .tile { padding: 18px; }
    .actions button { width: 100%; }
    .logo { font-size: 14px; }
}

.emergency .support-link {
    color: #ffffff;
    font-weight: 800;
}

.tile a, .principles a, .notice a {
    color: #a50e19;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* DS-09B DIRECTORY */

.directory-controls {
    background: #f3f3f3;
    border-left: 5px solid #c1121f;
    padding: 22px;
    margin-bottom: 24px;
}

.directory-controls label {
    display: block;
    font-weight: 800;
    margin: 12px 0 6px;
}

.directory-controls input,
.directory-controls select {
    width: 100%;
    padding: 14px;
    font: inherit;
    color: #111111;
    background: #ffffff;
    border: 2px solid #111111;
    border-radius: 0;
}

.directory-controls button {
    margin-top: 16px;
}

.directory-controls input:focus-visible,
.directory-controls select:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

[data-support-card] {
    overflow-wrap: anywhere;
}

#support-count {
    font-weight: 800;
}


/* DS-UI-02 */

:root {
    --black: #111111;
    --red: #c1121f;
    --white: #ffffff;
    --gray: #f5f5f5;
    --muted: #595959;
    --border: #e2e2e2;
    --radius: 12px;
}

body {
    background: #fafafa;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

header {
    border-bottom-width: 3px;
}

.brand {
    min-height: 68px;
}

.logo {
    font-size: 18px;
    letter-spacing: 0.6px;
    font-weight: 850;
}

.hero {
    padding: 48px 0 28px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 64px);
    letter-spacing: -1.6px;
    line-height: 1.08;
    margin: 12px 0;
}

.hero h2 {
    font-size: 23px;
}

.hero p {
    margin: 12px 0;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.1px;
    font-weight: 800;
}

.section-title {
    font-size: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-top: 28px;
}

.notice,
.offline {
    border-left-width: 3px;
    border-radius: var(--radius);
    padding: 18px;
    background: #f0f0f0;
}

.emergency {
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
}

.emergency h2 {
    font-size: 22px;
}

.grid {
    gap: 14px;
}

.tile {
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.035);
}

.tile h3 {
    font-size: 20px;
    letter-spacing: -.4px;
    line-height: 1.25;
    margin: 6px 0 10px;
}

.tile p {
    font-size: 15px;
    line-height: 1.55;
    margin: 10px 0;
}

.tile .eyebrow {
    color: var(--red);
    font-size: 10px;
    letter-spacing: .8px;
    margin: 0 0 10px;
}

.tile small {
    display: block;
    font-size: 11px;
    letter-spacing: 0;
    color: #666;
    font-weight: 500;
}

button {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
}

button.secondary {
    border: 1px solid #cccccc;
}

.directory-controls {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}

.directory-controls label {
    font-size: 13px;
    margin: 10px 0 6px;
    font-weight: 700;
}

.directory-controls input,
.directory-controls select {
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    min-height: 44px;
}

.directory-controls button {
    margin-top: 12px;
}

#support-count {
    font-size: 13px;
    margin: 14px 0 4px;
}

.directory-controls small {
    font-size: 12px;
    color: #666666;
}

.principles {
    padding: 20px 0;
}

.principles h2 {
    font-size: 23px;
    letter-spacing: -.5px;
}

footer {
    border-top-width: 3px;
    margin-top: 30px;
    padding: 26px 0;
}

@media (max-width: 760px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand {
        min-height: 60px;
    }

    .logo {
        font-size: 16px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: 28px 0 20px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 46px);
        letter-spacing: -1.2px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tile {
        padding: 16px;
    }

    .tile h3 {
        font-size: 19px;
    }

    .tile p {
        font-size: 14px;
        margin: 8px 0;
    }

    .notice,
    .offline,
    .emergency {
        padding: 16px;
        font-size: 14px;
    }

    .directory-controls {
        padding: 14px;
    }

    .directory-controls button {
        width: auto;
    }

    .section-title {
        font-size: 22px;
    }

    .principles h2 {
        font-size: 21px;
    }
}


/* DS-UI-03 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header .brand {
    min-height: 64px;
}

.site-header .logo {
    font-size: 20px;
    letter-spacing: -.5px;
    font-weight: 750;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: 0;
    color: #ffffff;
}

.site-menu {
    padding-bottom: 16px;
}

.site-menu a {
    display: block;
    padding: 13px 0;
    color: #ffffff;
    text-decoration: none;
    border-top: 1px solid #333333;
    font-size: 15px;
}

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

.support-page .hero h1 {
    font-weight: 800;
    font-size: clamp(36px, 7vw, 58px);
    letter-spacing: -1.5px;
}

.support-page .notice {
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.support-page .notice p {
    margin: 6px 0 0;
}

.support-page .section-title {
    margin-top: 18px;
}

.support-page .directory-controls {
    border: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.search-field {
    position: relative;
}

.search-field svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
}

.directory-controls .search-field input {
    padding: 13px 12px 13px 42px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
    min-height: 48px;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.directory-controls .quick-filters button {
    background: transparent;
    color: #111111;
    border: 1px solid #dddddd;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    min-height: 44px;
    margin: 0;
}

.directory-controls .quick-filters
button[aria-pressed="true"] {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.filter-toolbar #support-count {
    color: #555555;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.directory-controls #filter-toggle {
    background: transparent;
    border: 0;
    color: #555555;
    margin: 0;
    padding: 8px 10px;
    font-weight: 600;
}

#advanced-filters {
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 14px;
    border-radius: 12px;
    margin-top: 8px;
}

.privacy-note {
    display: block;
    margin-top: 4px;
}

.contact-card {
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    box-shadow: none;
}

.contact-card .eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .3px;
    font-weight: 650;
    color: #b10f1b;
}

.contact-card h3 {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.5px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 12px;
    margin-top: 14px;
    border-top: 1px solid #eeeeee;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 11px;
    background: #f1f1f1;
    color: #111111;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    border-radius: 9px;
}

.contact-actions svg {
    width: 16px;
    height: 16px;
}

.contact-details {
    margin-top: 12px;
    font-size: 13px;
    color: #555555;
}

.contact-details summary {
    cursor: pointer;
    padding: 8px 0;
    font-weight: 500;
}

@media (min-width: 761px) {
    .support-page .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header .logo {
        font-size: 19px;
    }

    .support-page .hero {
        padding-top: 22px;
    }

    .support-page .hero h1 {
        font-size: 38px;
    }

    .contact-card {
        padding: 16px;
    }

    .contact-card h3 {
        font-size: 20px;
    }
}


/* DS-UI-04 */

.site-footer {
    padding: 32px 0;
    border-top: 3px solid #c1121f;
    background: #111111;
    color: #ffffff;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.footer-brand strong {
    font-size: 21px;
    letter-spacing: -.5px;
}

.site-footer p {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.6;
}

.footer-principles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 20px;
    color: #dddddd;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #333333;
    padding-top: 18px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
}

.hacklab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
    min-height: 44px;
}

.site-footer .footer-license {
    color: #aaaaaa;
    font-size: 12px;
}

.site-footer .footer-motto {
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
}

#back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

#back-to-top[hidden] {
    display: none !important;
}

#back-to-top:hover {
    background: #c1121f;
}

.legal-page {
    max-width: 850px;
}

.legal-page .principles {
    padding: 12px 0;
    max-width: none;
}

.legal-page .principles h2 {
    font-size: 21px;
}

@media (max-width: 760px) {
    .site-footer {
        padding-bottom: 75px;
    }

    .legal-page .principles h2 {
        font-size: 19px;
    }

    #back-to-top {
        right: 14px;
    }
}

