/* tokens */

@font-face {
    font-family: Bricolage;
    src: url(/assets/fonts/bricolage-grotesque.85f55a58a31e.woff2) format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Instrument;
    src: url(/assets/fonts/instrument-sans.6219bc4bfdfc.woff2) format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Instrument;
    src: url(/assets/fonts/instrument-sans-italic.d228ca3e0dab.woff2) format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #F7F5F0;
    --surface: #FFFFFF;
    --ink: #1F2328;
    --muted: #596169;
    --line: #D7DDD9;
    --accent: #0F6E78;
    --ice: #E3F1F2;
    --focus: #075460;
    --verdict-yes: #075460;
    --verdict-yes-fill: #E3F1F2;
    --verdict-maybe: #715015;
    --verdict-maybe-fill: #FBF1D9;
    --verdict-no: #8B3434;
    --verdict-no-fill: #FCECEC;
    --verdict-other: #4C5369;
    --verdict-other-fill: #EBEDF5;
    --display: Bricolage,system-ui,sans-serif;
    --text: Instrument,system-ui,sans-serif;
    --measure: 68ch;
    --radius: 12px;
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    color-scheme: light;
}

/* base */

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.65 var(--text);
    overflow-wrap: break-word;
}

a {
    color: var(--accent);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
    border-radius: 3px;
}

h1, h2, h3, dt, .wordmark {
    font-family: var(--display);
    font-optical-sizing: auto;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem,7vw,4.4rem);
    font-weight: 700;
    letter-spacing: -.035em;
    margin: 0 0 1.4rem;
}

h2 {
    font-size: clamp(1.65rem,4vw,2.3rem);
    font-weight: 650;
    letter-spacing: -.025em;
    margin: 2.7rem 0 1rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 .6rem;
}

p {
    margin: 0 0 1.1rem;
}

ul, ol {
    padding-left: 1.4rem;
}

li+li {
    margin-top: .45rem;
}

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

figure {
    margin: 2rem 0;
}

figcaption, .muted, .dates, .source-meta, .legal-entity {
    color: var(--muted);
    font-size: .87rem;
}

figcaption {
    margin-top: .9rem;
}

/* layout */

section {
    margin-block: var(--space-5);
}

.container {
    width: min(100% - 2rem,1120px);
    margin-inline: auto;
}

.prose {
    max-width: var(--measure);
    margin-inline: auto;
}

.lead {
    font-size: 1.16rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 58ch;
}

main {
    padding-block: 2rem 3.5rem;
    min-height: 50vh;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .8rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    font-size: .85rem;
    color: var(--muted);
    align-items: center;
}

.breadcrumbs li+li {
    margin: 0;
}

.breadcrumbs li+li::before {
    content: '/';
    margin-right: .8rem;
    color: var(--muted);
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    padding: .7rem .2rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumbs li>span {
    padding-block: .7rem;
}

/* header */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-inner {
    width: min(100% - 2rem,1120px);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem;
    padding-block: 1rem;
}

.wordmark {
    font-size: 1.27rem;
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -.04em;
}

.primary-nav {
    grid-row: 2;
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.25rem;
}

.primary-nav a, .primary-nav span, .language-switch a, .language-switch>span, .site-footer nav a, .site-footer nav span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.primary-nav a {
    text-decoration: none;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
}

.language-switch a {
    min-width: 44px;
    justify-content: center;
}

.language-switch a[aria-current=page] {
    color: var(--ink);
    text-decoration: none;
}

.language-switch>span[aria-hidden] {
    min-width: 0;
    color: var(--line);
}

.skip-link {
    position: absolute;
    top: .5rem;
    left: 1rem;
    transform: translateY(-200%);
    padding: .6rem 1rem;
    background: var(--surface);
    z-index: 2;
}

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

/* home */

.hero {
    padding: 2rem 0 2.5rem;
    margin-top: 0;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    max-width: 19ch;
}

.dot-band {
    background-image: radial-gradient(circle,var(--line) 1px,transparent 1.5px);
    background-size: 23px 23px;
    background-position: right top;
}

.hero p, .hero h1 {
    background: var(--paper);
}

.hero p {
    padding-top: .5rem;
}

.now-steps {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.now-steps li {
    counter-increment: steps;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin: 0;
}

.now-steps li::before {
    content: counter(steps,decimal-leading-zero);
    display: block;
    color: var(--accent);
    font: 600 1.4rem var(--display);
    margin-bottom: .7rem;
}

.now-steps p {
    margin: 0;
}

.case-paths {
    display: grid;
    gap: 1.4rem;
}

.case-paths article {
    border-top: 2px solid var(--accent);
    padding: 1.5rem 0;
}

.case-paths a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.pro-band {
    border-block: 1px solid var(--line);
    padding-block: 2rem;
}

.hero-copy {
    min-width: 0;
}

.hero-photo {
    margin: 0;
    min-width: 0;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
}

.hero-photo figcaption {
    background: var(--paper);
}

.pro-band p {
    margin: 0;
}

.pro-band a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* guide */

.summary-box, .callout {
    background: var(--ice);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-box h2 {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
}

.summary-box dl {
    margin: 0;
}

.summary-box dl>div+div {
    margin-top: 1.1rem;
}

.summary-box dt {
    font-size: 1rem;
    font-weight: 600;
}

.summary-box dd {
    margin: .3rem 0 0;
}

.callout {
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
    margin: 0;
}

.toc {
    border-block: 1px solid var(--line);
    margin-block: 2rem;
    padding-block: 1.3rem;
}

.toc h2 {
    font-size: 1.2rem;
    margin: 0;
}

.toc a {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.toc ol {
    margin-bottom: 0;
}

.toc a {
    border-inline-start: 3px solid transparent;
    padding-inline: .6rem .2rem;
}

.toc a[aria-current="true"] {
    border-inline-start-color: var(--accent);
    font-weight: 600;
}

.guide-layout {
    max-width: var(--measure);
    margin-inline: auto;
}

.guide-intro, .guide-body {
    min-width: 0;
    max-width: var(--measure);
}

.guide-cluster-label {
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .7rem;
}

.guide-cluster-label a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.guide h1 {
    font-size: clamp(2rem,6vw,3.4rem);
}

.guide h2 {
    scroll-margin-top: 1rem;
}

.guide sup {
    font-size: .72em;
    margin-left: .12em;
}

.sources {
    font-size: .92rem;
}

.sources li {
    padding: .4rem 0 .9rem;
}

.source-meta {
    display: block;
    margin-top: .25rem;
}

.sources a {
    overflow-wrap: anywhere;
}

details {
    border-top: 1px solid var(--line);
    padding: .25rem 0;
}

details:last-child {
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    padding: .8rem .2rem;
    min-height: 44px;
    font-weight: 600;
}

details p {
    padding: .6rem .2rem;
}

.guide-links {
    padding: 0;
    list-style: none;
}

.guide-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.12rem;
}

.diagram {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    max-width: 720px;
}

.diagram svg {
    width: 100%;
    font: 500 17px var(--text);
    fill: var(--ink);
}

.diagram>h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.diagram--wide {
    max-width: none;
}

.diagram-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Four steps: one, two or four columns, never three plus an orphan. */
.pdr-cards {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
    .pdr-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .pdr-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guide .pdr-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.diagram-cards>li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.diagram h4 {
    font: 600 1.05rem/1.35 var(--display);
    margin: .75rem 0 .5rem;
    text-wrap: balance;
}

.diagram-cards p, .panels-key p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.diagram .diagram-glyph {
    width: 180px;
    max-width: 100%;
    fill: none;
    margin-inline: auto;
}

.glyph-panel, .glyph-line, .glyph-arrow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glyph-rod {
    fill: none;
    stroke: var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glyph-board {
    fill: var(--ice);
    stroke: var(--accent);
    stroke-width: 2;
}

.glyph-secondary, .glyph-crack {
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glyph-crack {
    stroke: var(--verdict-no);
}

.glyph-access {
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-dasharray: 4 5;
}

.step-number {
    font: 600 1rem var(--display);
    color: var(--accent);
    margin-top: .75rem;
}

.pdr-cards h4 {
    margin-top: .4rem;
}

.diagram-cards p:last-child {
    margin-bottom: 0;
}

.verdict {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 5px;
    padding: .3rem .6rem;
    margin-top: auto;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
}

.diagram .verdict-glyph {
    width: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verdict--yes {
    color: var(--verdict-yes);
    background: var(--verdict-yes-fill);
}

.verdict--maybe {
    color: var(--verdict-maybe);
    background: var(--verdict-maybe-fill);
}

.verdict--no {
    color: var(--verdict-no);
    background: var(--verdict-no-fill);
}

.verdict--other {
    color: var(--verdict-other);
    background: var(--verdict-other-fill);
}

.hail-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
    text-align: center;
}

.hail-sizes li {
    margin: 0;
    min-width: 0;
}

.hail-sizes svg {
    max-width: 100px;
    margin-inline: auto;
}

.hail-panels {
    max-width: 640px;
}

.panels-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1.5rem;
    align-items: center;
}

.diagram .car-panels {
    max-width: 280px;
    margin-inline: auto;
}

.car-outline {
    fill: var(--paper);
    stroke: var(--muted);
    stroke-width: 2;
}

.panel-horizontal {
    fill: var(--accent);
    fill-opacity: .25;
    stroke: var(--accent);
    stroke-width: 2;
}

.panel-sides {
    fill: var(--ice);
    stroke: var(--muted);
    stroke-width: 1.5;
}

.panel-glass {
    fill: var(--surface);
    fill-opacity: .7;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 5 4;
}

.panel-marker circle {
    fill: var(--surface);
    stroke: var(--accent);
    stroke-width: 2;
}

.panel-marker text {
    fill: var(--ink);
    font: 600 17px var(--text);
}

.panels-key {
    margin: 0;
}

.panels-key li::marker {
    color: var(--accent);
    font-weight: 600;
}

.panels-key h4 {
    margin-top: 0;
}

.panels-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    font-size: .82rem;
}

.panels-legend li {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}

.panel-swatch {
    flex: 0 0 1.25rem;
    height: .9rem;
    border: 1px solid var(--accent);
}

.panel-swatch--horizontal {
    background: color-mix(in srgb, var(--accent) 25%, var(--paper));
}

.panel-swatch--glass {
    border: 2px dashed var(--accent);
    background: var(--surface);
}

.panel-swatch--sides {
    border-color: var(--muted);
    border-radius: .4rem;
    background: var(--ice);
}

.panel {
    fill: var(--ice);
    stroke: var(--accent);
    stroke-width: 2;
}

.rod {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
}

.reflector {
    fill: var(--ice);
    stroke: var(--line);
    stroke-width: 2;
}

.reflection-lines {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
}

.reflection-ray {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    stroke-dasharray: 5 6;
}

.push-arrow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
}

.diagram-leaders {
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
}

.diagram-key {
    display: grid;
    gap: 1.2rem;
}

.diagram-key dt {
    font-weight: 600;
}

.diagram-key dd {
    margin: .4rem 0 0;
    color: var(--muted);
}

.hail-scale circle {
    fill: var(--ice);
    stroke: var(--accent);
    stroke-width: 2;
}

.guide-cluster {
    margin-block: 2.5rem;
}

.guide-cluster>h2 {
    font-size: 1.5rem;
    margin: 0 0 .7rem;
}

.guide-cluster>p {
    color: var(--muted);
    max-width: var(--measure);
}

.guide-cards {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.guide-cards li {
    margin: 0;
    min-width: 0;
}

.guide-card {
    display: block;
    height: 100%;
    min-height: 44px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.guide-card h3 {
    color: var(--accent);
    line-height: 1.3;
}

.guide-card p {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.guide-card:hover, .guide-card:focus-visible {
    border-color: var(--accent);
    background: var(--ice);
}

.guide-card:hover h3, .guide-card:focus-visible h3 {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.guide-card--compact {
    padding: 1rem;
}

.guide-card--compact h3 {
    font-size: 1.08rem;
    margin-bottom: 0;
}

.card-cluster {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: .45rem;
}

.related-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.section-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: .65rem;
}

.cluster-photo {
    max-width: 560px;
}

.cluster-photo img, .guide figure img {
    border-radius: var(--radius);
}

.dates {
    margin-top: -.2rem;
    margin-bottom: 1.5rem;
}

.hail-scale {
    max-width: 560px;
}

.hail-scale svg {
    font-size: 20px;
}

/* directory */

.community-list {
    padding: 0;
    list-style: none;
}

.community-list li {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.community-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.community-list span {
    color: var(--muted);
    font-size: .9rem;
}

.listing-rows {
    list-style: none;
    padding: 0;
}

.listing-row {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.listing-row p {
    color: var(--muted);
    margin-bottom: .4rem;
}

.listing-row>a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    font-size: .82rem;
}

.service-tags li {
    margin: 0;
    background: var(--ice);
    border-radius: 4px;
    padding: .2rem .6rem;
}

.community-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1.2rem;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: var(--muted);
}

.community-names li {
    margin: 0;
}

.directory-coverage h2 {
    font-size: 1.3rem;
}

/* CTA */

.join-cta {
    background: var(--surface);
    background-image: radial-gradient(circle,var(--ice) 1.5px,transparent 2px);
    background-size: 28px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.join-cta h2 {
    font-size: 1.4rem;
    margin: 0 0 .8rem;
}

.join-cta p {
    max-width: 60ch;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.2rem;
}

.actions>a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--accent);
    color: var(--surface);
    padding: .7rem 1.1rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    width: 100%;
    text-align: center;
}

.button:hover {
    background: var(--focus);
}

.directory-teaser {
    max-width: var(--measure);
    margin-inline: auto;
    border-top: none;
    padding-top: 0;
}

.directory-teaser-card {
    display: flex;
    align-items: center;
    min-height: 44px;
    background: var(--ice);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.directory-teaser-card:hover, .directory-teaser-card:focus-visible {
    border-color: var(--accent);
}

.join-cta--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1rem;
    background: none;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1rem 0;
    margin: 1rem 0 0;
    font-size: .9rem;
}

.join-cta--compact p {
    margin: 0;
}

.join-cta--compact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.button:active {
    transform: scale(.97);
}

/* sponsored placements: boxed disclosure, separate from rows and editorial callouts */

.sponsored-region {
    max-width: var(--measure);
    margin: 2rem auto;
}

.sponsored {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
    overflow-wrap: anywhere;
}

.sponsored+.sponsored {
    margin-top: var(--space-2);
}

.sponsored-label {
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: .2rem .5rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.sponsored h2 {
    font-size: 1.2rem;
    margin: 0 0 var(--space-1);
}

.sponsored a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

.sponsored-note {
    color: var(--muted);
    font-size: .87rem;
    margin: var(--space-1) 0 0;
}

/* footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2.5rem;
    background: var(--surface);
    font-size: .92rem;
}

.site-footer p {
    max-width: 68ch;
}

.site-footer>a {
    min-height: 44px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.4rem;
    margin-block: 1rem;
}

.legal-entity {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.site-footer .container>a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* responsive */

@media (min-width:720px) {
    body {
        font-size: 18px;
    }

    .container, .header-inner {
        width: min(100% - 4rem,1120px);
    }

    .header-inner {
        grid-template-columns: 1fr auto auto;
        gap: 2rem;
    }

    .primary-nav {
        grid-row: auto;
        grid-column: auto;
        gap: 1.4rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .now-steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .case-paths {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 2rem;
    }

    .diagram-key {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .button {
        width: auto;
    }

    .listing-row {
        grid-template-columns: minmax(0,1fr) minmax(0,.65fr);
        align-items: center;
    }

    .listing-row>a {
        justify-self: end;
    }

    .summary-box {
        padding: 2rem;
    }

    main {
        padding-block: 3rem 4.5rem;
    }

    .guide-cards:not(.related-cards) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-names {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .hero--photo {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .hero--photo h1 {
        font-size: clamp(2.8rem, 4.8vw, 4.4rem);
    }

    .hero-photo img {
        aspect-ratio: 4 / 5;
    }

    .guide-cards:not(.related-cards) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Home shows two guides per cluster: keep them full width instead of leaving a third column empty. */
    .guide-cards:not(.related-cards):has(> li:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* responsive */

@media (min-width:1000px) {
    .now-steps {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media (min-width:1100px) {
    .guide-layout {
        display: grid;
        grid-template-columns: minmax(0, 68ch) 17rem;
        column-gap: 3rem;
        max-width: none;
        align-items: start;
    }

    .guide-intro {
        grid-column: 1;
        grid-row: 1;
    }

    .guide-body {
        grid-column: 1;
        grid-row: 2;
    }

    .guide-layout>.toc {
        grid-column: 2;
        grid-row: 1 / 3;
        position: sticky;
        top: 2rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        margin: 0;
        padding: 1rem .5rem;
        font-size: .9rem;
        scrollbar-gutter: stable;
    }

    .guide-layout>.toc ol {
        padding-left: 1.5rem;
    }

    .breadcrumbs--guide, .guide-page>.directory-teaser, .guide-page>.sponsored-region {
        margin-inline: 0;
    }
}

/* reduced motion */

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* print */

@media print {
    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .site-header, .site-footer, .join-cta, .skip-link, .language-switch, .toc, .directory-teaser {
        display: none;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    main {
        padding: 0;
    }

    .prose {
        max-width: none;
    }

    .guide-layout {
        display: block;
        max-width: none;
    }

    .guide-intro, .guide-body {
        max-width: none;
    }

    a {
        color: inherit;
    }

    h1 {
        font-size: 26pt;
    }

    h2 {
        font-size: 18pt;
        break-after: avoid;
    }

    figure, .summary-box, details {
        break-inside: avoid;
    }

    .summary-box, .callout {
        background: none;
        border: 1px solid #999;
    }

    .sponsored {
        background: none;
        border-color: #999;
        break-inside: avoid;
    }

    .sponsored-label, .sponsored-note {
        color: inherit;
    }

    details p {
        display: block;
    }

    section {
        margin-block: 1.5rem;
    }

    .dot-band {
        background-image: none;
    }

    .hero--photo, .guide-cards, .community-names {
        display: block;
    }

    .guide-card {
        background: none;
        color: inherit;
        margin-bottom: 1rem;
        break-inside: avoid;
    }

    .hero-photo img {
        aspect-ratio: auto;
        max-height: 240px;
        object-fit: contain;
    }

    .guide-card p {
        display: block;
        overflow: visible;
    }
}
