/* RideMN1 2027 site look.
   Job: one stylesheet for every page. Navy and RideMN1 orange, very large condensed capitals for titles, pill
   buttons, cards, and the ride's own drawings (routes, wheel, bike, ribbon) as quiet backgrounds.
   Rules this file keeps:
   - Readers are mostly older: body text is 19px (18px on phones), every button and row is at least 56px tall,
     nothing moves, nothing appears only on hover.
   - The site's security policy allows only its own files: no outside fonts or pictures, no pictures written into
     this file. Titles use Barlow Condensed Bold, hosted here (SIL Open Font License, text in licenses/); the
     device's own condensed font shows until it loads. The licence is also served as barlow-condensed-ofl.txt.
   - Orange is a fill behind dark lettering, or lettering on navy. Orange lettering on white is too faint to read.
   - No coloured stripe down the left edge of a card or note (owner rule, all sites).
   Order: tokens, base, buttons, menu, banner, home sections in page order, inner pages, footer, phone rules. */
@font-face {
    font-family: "Barlow Condensed";
    src: url(barlow-condensed-bold.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy: #14304b;
    --navy-deep: #0d2135;
    --orange: #f48215;
    --orange-ink: #1a1204;
    --orange-deep: #9c4400;
    --cream: #fdf1e2;
    --cream-line: #f1dfc6;
    --ink: #1c2730;
    --body: #2f3a42;
    --muted: #55626b;
    --line: #d3d9de;
    --mist: #f3f5f7;
    --white: #fff;
    --note: #fff8e6;
    --control: 3.5rem;
    --radius: 1rem;
    --pill: 99rem;
    --content: 70rem;
    --reading: 44rem;
    --display: "Barlow Condensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-padding-block-start: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--body); background: var(--white); font-size: 1.1875rem; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
/* Extend the hit area of each inline fragment without changing the line box. */
main :is(p:not(.route-map-reference), li) a[href]:not(.button, .touch-link) {
    position: relative;
    padding-block: .75rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 1rem; color: var(--navy); line-height: 1.05; }
h1, h2, .display {
    font-family: var(--display);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 strong, h1 strong { font-weight: inherit; }
h3 { font-size: 1.5rem; line-height: 1.2; }
hr { border: 0; border-top: 1px solid var(--line); }
.container { width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto; }
.narrow { max-width: 52rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 4px solid #2f8fd6; outline-offset: 3px; }
.skip-link {
    position: fixed;
    z-index: 5;
    top: .75rem;
    left: .75rem;
    display: inline-flex;
    align-items: center;
    min-block-size: var(--control);
    padding: .6rem 1rem;
    background: var(--white);
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Buttons: orange pill for the main action, white pill for the rest. */
.button, .touch-link, .familiar-actions > a, .familiar-contacts > a, .start-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--control);
    min-inline-size: var(--control);
    max-inline-size: 100%;
    padding: .7rem 1.75rem;
    border: 2px solid var(--navy);
    border-radius: var(--pill);
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.button-primary, .familiar-actions > a, #orangeButton, .start-card a, .site-footer .familiar-contacts > a {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--orange-ink);
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}
.button:hover, .touch-link:hover, .familiar-actions > a:hover, .start-card a:hover { text-decoration: underline; }
.button:disabled { border-color: var(--line); background: var(--mist); color: var(--muted); box-shadow: none; }
.actions, .section-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
.section-actions:last-child { margin-block-end: 0; }
.contact-actions a { flex: 1 1 15rem; }

/* The road line that divides the page: a navy strip with a dashed white centre line. */
.road-line {
    block-size: 16px;
    background:
        repeating-linear-gradient(90deg, var(--white) 0 46px, transparent 46px 84px) center / 100% 4px no-repeat,
        var(--navy-deep);
}

/* Menu bar */
.site-header { position: sticky; top: 0; z-index: 3; background: var(--navy-deep); color: var(--white); }
.header-inner { display: flex; justify-content: center; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5rem; }
.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 4rem;
    padding: .4rem 1.4rem;
    border-bottom: 4px solid transparent;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current] { border-bottom-color: var(--orange); }
.site-header a:focus-visible, .site-footer a:focus-visible, .hero a:focus-visible, .navy-band a:focus-visible { outline-color: #ffd08a; }

/* Banner: riders under a navy wash, the ride name as large as the screen allows. */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); text-align: center; }
.hero > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 42%; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(13, 33, 53, .74), rgba(13, 33, 53, .88));
}
.hero-copy { position: relative; z-index: 2; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem); }
.hero h1, .hero h2 { margin: 0; color: var(--white); line-height: .95; }
.hero h1 { font-size: clamp(3.6rem, 13.5vw, 10.5rem); }
.hero h1 span { color: var(--orange); }
.hero h2 { margin-block-start: .5rem; font-size: clamp(2rem, 5.4vw, 4.25rem); }
.hero-copy > div > p { margin: .9rem 0 0; font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
.hero-dates {
    display: inline-block;
    margin: 1.5rem 0 0;
    padding: .5rem 1.5rem;
    border: 2px solid var(--orange);
    border-radius: var(--pill);
    font-size: clamp(1.1875rem, 2vw, 1.5rem);
    font-weight: 700;
}
.familiar-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .familiar-actions { justify-content: center; margin-block-start: 2rem; }
.hero .familiar-actions a { min-inline-size: 13rem; min-block-size: 4rem; font-size: 1.3125rem; }
.hero .familiar-actions a + a { border-color: var(--white); background: var(--white); color: var(--navy); }

/* Three ways in, straight under the banner. */
.start-cards { position: relative; z-index: 2; }
.start-cards .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-block-start: -3rem; }
.start-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border-top: 8px solid var(--orange);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 26px rgba(13, 33, 53, .2);
    text-align: center;
}
.start-card img { block-size: 5.25rem; inline-size: auto; }
.start-card-title { margin: .9rem 0 .25rem; color: var(--navy); font-size: 2.5rem; line-height: 1; }
.start-card p { margin-block-end: 1.25rem; }
.start-card a { margin-block-start: auto; inline-size: 100%; }

/* Home sections */
.familiar-section { padding-block: clamp(2.75rem, 5.5vw, 5rem); background: var(--white); }
.familiar-copy { max-inline-size: var(--reading); }
.familiar-section h2::after, .page-heading h1::after {
    content: "";
    display: block;
    inline-size: 5rem;
    block-size: 6px;
    margin-block-start: .8rem;
    border-radius: 3px;
    background: var(--orange);
}
.centered h2, .centered > .container > p { text-align: center; }
.centered h2::after { margin-inline: auto; }
.centered h3 { text-align: center; }
.familiar-section h3 { margin-block: 2rem .75rem; }
.familiar-section ul { margin-block: .5rem 1.25rem; padding-inline-start: 1.4em; }
.familiar-section li + li { margin-block-start: .6rem; }
.familiar-section li::marker { color: var(--orange-deep); }
.cream-band { border-block: 1px solid var(--cream-line); background: var(--cream) url(wheel-soft.svg) left -14rem bottom -15rem / 32rem no-repeat; }
.cream-band-right { background-position: right -14rem top -15rem; }
.navy-band { background: var(--navy) url(wheel-light.svg) right -12rem center / 34rem no-repeat; color: var(--white); }
.navy-band h2, .navy-band a { color: var(--white); }
.navy-band .button-primary { color: var(--orange-ink); }
.wide { max-inline-size: 62rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-inline-size: var(--content); }
.framed {
    inline-size: 100%;
    border: 8px solid var(--white);
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(13, 33, 53, .22);
    object-fit: cover;
}
.split figure, figure.crossings, figure.archive-crossings { margin: 0; }
figure.crossings img, figure.archive-crossings img { inline-size: 100%; }
figcaption { margin-block-start: .6rem; color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.4; text-align: center; }

.familiar-registration {
    margin: 0 auto 2.75rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    font-size: 1.3125rem;
    font-weight: 700;
    text-align: center;
}
#AboutTheRide { padding-block-end: 0; }
#AboutTheRide h2 { display: flex; flex-direction: column; align-items: center; margin-block-end: 0; }
#AboutTheRide h2::before { content: ""; inline-size: 4.5rem; block-size: 4.5rem; margin-block-end: .75rem; background: url(ribbon-wheel.svg) center / contain no-repeat; }
#awareness-ride { padding-block-start: 0; }
/* Owner: this title stays on one line where the screen allows; it may run wider than the text column. */
@media (min-width: 54rem) { #awareness-ride h2 { font-size: 2.875rem; white-space: nowrap; } }
.organizer-note {
    margin-block: 1.25rem 1.5rem;
    padding: .75rem 1rem;
    border: 1px dashed #b98a1c;
    border-radius: .5rem;
    background: var(--note);
    color: #4a3b12;
    font-size: 1.125rem;
    line-height: 1.55;
    text-align: start;
}
.organizer-note p { margin-block: .2rem 0; }
.organizer-note a { color: #4a3b12; }
.ride-quote {
    margin-block: 2rem 0;
    padding: 1.75rem 2rem 1.75rem 5.5rem;
    border-radius: var(--radius);
    background: var(--navy) url(ribbon.svg) 1.5rem center / 2.5rem no-repeat;
    color: var(--white);
    font-size: 1.3125rem;
    font-style: italic;
    line-height: 1.6;
}

/* A Different Bike Tour: the points as ticks, the crossings drawing, the photos. */
#different-bike-tour .familiar-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3.5rem; align-items: center; max-inline-size: var(--content); }
#different-bike-tour .familiar-copy > * { grid-column: 1; }
#different-bike-tour .crossings { grid-column: 2; grid-row: 1 / span 2; inline-size: 100%; }
#different-bike-tour .familiar-gallery, #different-bike-tour .organizer-note { grid-column: 1 / -1; }
.tick-list { padding: 0; list-style: none; }
.familiar-section .tick-list { padding-inline-start: 0; }
.tick-list li { position: relative; padding-inline-start: 2.5rem; }
.tick-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .45em;
    inline-size: 1.1rem;
    block-size: 1.1rem;
    border: 4px solid var(--orange);
    border-radius: 50%;
    background: var(--white);
}
.familiar-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-block-start: 1rem; }
.familiar-gallery img { aspect-ratio: 4 / 3; }

/* Transport and ways to take part sit together as two cards. */
#ride-transport { padding-block-end: 0; }
.info-card {
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--mist);
}
.info-card.bike-corner { background: var(--mist) url(bike.svg) right 1.5rem top 1.5rem / 9rem no-repeat; }
.info-card.bike-corner h2 { max-inline-size: calc(100% - 9rem); }

/* Route & Dates */
.route-art { inline-size: 100%; margin-block: 1.5rem 2rem; }
.route-dates-line strong { color: var(--navy); font-size: 1.5rem; }
.familiar-section .ride-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; text-align: center; }
.familiar-section .ride-stats li {
    margin: 0;
    padding: 1rem .5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(13, 33, 53, .1);
    color: var(--navy);
    font-family: var(--display);
    font-stretch: condensed;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}
.ride-stats b { display: block; color: var(--orange-deep); font-size: 3.75rem; line-height: 1; }
.familiar-table { overflow-x: auto; margin-block: 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 16px rgba(13, 33, 53, .12); }
.route-table { width: 100%; border-collapse: collapse; background: var(--white); }
.route-table caption { padding: 1rem 1rem .75rem; color: var(--navy); font-weight: 700; text-align: center; }
.route-table th, .route-table td { padding: .9rem .85rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.route-table thead th { border-top: 0; background: var(--navy); color: var(--white); }
.route-table td:last-child, .route-table th:last-child { text-align: right; }
.route-table th[scope=row] { color: var(--navy); font-weight: 700; }
.route-table tbody tr:nth-child(even) { background: var(--mist); }
.route-table tfoot th, .route-table tfoot td, .route-table tfoot th[scope=row] { border-top: 0; background: var(--navy); color: var(--white); font-weight: 700; }
.route-table time { white-space: nowrap; }
.route-map-reference a { display: inline-block; min-block-size: var(--control); padding: .9rem .75rem; line-height: 1.5; }
#RouteDate .section-actions { justify-content: center; }

/* Registration card */
.ride-card { max-inline-size: 32rem; margin: 0 auto 1.5rem; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 24px rgba(13, 33, 53, .2); text-align: center; }
.familiar-section .ride-card h3 {
    margin: 0;
    padding: 1.4rem 1rem .3rem;
    border-top: 8px solid var(--orange);
    background: var(--navy);
    color: var(--white);
    font-family: var(--display);
    font-stretch: condensed;
    font-size: 2.25rem;
    text-transform: uppercase;
}
.ride-card > p { margin: 0; padding: 0 1rem 1.2rem; background: var(--navy); color: var(--white); font-size: 1.25rem; }
.familiar-section .ride-card ul { margin: 0; padding: .5rem 1.75rem 1rem; list-style: none; }
.familiar-section .ride-card li { margin: 0; padding: .75rem 0; }
.familiar-section .ride-card li + li { margin: 0; border-top: 1px solid var(--line); }
#RegisterForRideMN1 .section-actions, #donations .section-actions, #Volunteer .section-actions { justify-content: center; }
#RegisterForRideMN1 .button, #donations .button, #Volunteer .section-actions:not(.contact-actions) .button { min-inline-size: min(17rem, 100%); min-block-size: 4rem; overflow-wrap: anywhere; font-size: 1.3125rem; }
#additional-ride-details { padding-block-start: 0; }

/* More-information rows: the whole bar opens. */
.familiar-section details { margin-block: .6rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); }
.familiar-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-block-size: 4rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius);
    color: var(--navy);
    cursor: pointer;
    font-size: 1.3125rem;
    font-weight: 700;
    list-style: none;
}
.familiar-section summary::-webkit-details-marker { display: none; }
.familiar-section summary::after {
    content: "";
    flex: none;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border-radius: 50%;
    background:
        linear-gradient(var(--orange-ink) 0 0) center / 1.1rem 3px no-repeat,
        linear-gradient(var(--orange-ink) 0 0) center / 3px 1.1rem no-repeat,
        var(--orange);
}
.familiar-section details[open] { border-color: var(--orange); }
.familiar-section details[open] summary { border-radius: var(--radius) var(--radius) 0 0; background: var(--cream); }
.familiar-section details[open] summary::after { background: linear-gradient(var(--orange-ink) 0 0) center / 1.1rem 3px no-repeat, var(--orange); }
.familiar-detail { padding: 1rem 1.25rem 1.25rem; }
.familiar-section .familiar-detail-checklist { margin-block: 2rem; padding: .5rem 1.5rem; border-radius: var(--radius); background: var(--mist); }
.familiar-detail-checklist li { padding-block: .9rem; }
.familiar-detail-checklist li::before { inset-block-start: 1.3em; }
.familiar-detail-checklist li strong { font-weight: 600; }
.familiar-section .familiar-detail-checklist li + li { margin: 0; border-top: 1px solid var(--line); }
#orangeButton { scroll-margin-top: 1rem; }
.familiar-secondary-actions { justify-content: center; margin-block: 2rem; }
.familiar-secondary-actions a { flex: 1 1 14rem; min-block-size: 4rem; }
.familiar-secondary-actions + p { font-size: 1.375rem; line-height: 1.5; text-align: center; }

/* Donations on navy, volunteers on white, sponsors on cream. */
#donations { background-image: url(ribbon-light.svg), url(wheel-light.svg); background-position: left 6% center, right -12rem center; background-size: 9rem, 34rem; background-repeat: no-repeat; }
#donations p, #Volunteer p { text-align: center; }
#Volunteer { background: var(--white) url(bike.svg) center bottom 1.5rem / 12rem no-repeat; padding-block-end: 11rem; }
.familiar-sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-block-start: 1.5rem; }
.familiar-sponsor-grid article { padding: 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 16px rgba(13, 33, 53, .1); text-align: center; }
.familiar-sponsor-grid article > a { display: grid; place-items: center; min-block-size: 9rem; padding: 1rem; }
.familiar-sponsor-grid img { inline-size: 100%; block-size: 7rem; object-fit: contain; }
.familiar-sponsor-grid h3 { margin-block: 1rem .5rem; }
.familiar-sponsor-grid h3 a { display: inline-flex; align-items: center; justify-content: center; min-block-size: var(--control); font-size: 1.3125rem; }

/* Inner pages: a navy title band, then cards. */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page-heading { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--navy) url(wheel-light.svg) right -10rem center / 32rem no-repeat; color: var(--white); }
.page-heading h1, .page-heading a { color: var(--white); }
.page-heading .button, .page-heading .touch-link { margin-block-start: 1rem; }
.page-heading .touch-link { border-color: var(--white); background: transparent; }
.page-heading .button-outline { border-color: var(--white); background: var(--white); color: var(--navy); }
.page-heading .button-primary { color: var(--orange-ink); }
.eyebrow { margin: 0 0 .75rem; color: #ffc98a; font-size: 1.125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section .eyebrow, .status-line { color: var(--orange-deep); font-weight: 700; }
.body-lead { max-width: 60ch; font-size: clamp(1.1875rem, 2vw, 1.375rem); }
.archive-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.archive-heading img { inline-size: 100%; aspect-ratio: 2; object-fit: cover; object-position: center 76%; border: 8px solid var(--white); border-radius: var(--radius); }
.archive-list { display: grid; gap: 1.25rem; max-width: 58rem; }
.archive-list article { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.archive-list h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.archive-list h2 a { display: inline-flex; align-items: center; min-block-size: var(--control); }
.archive-content { display: grid; gap: 1.25rem; max-width: 62rem; }
.archive-content p { margin: 0; }
.archive-content section { margin-block: .5rem; }
.archive-content section p { margin-block: .5rem; }
.archive-map { inline-size: 100%; border: 8px solid var(--white); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(13, 33, 53, .16); }
figure.archive-crossings { inline-size: min(100%, 30rem); margin-inline: auto; }
.review-note { margin-block: 1rem; padding: .9rem 1rem; border: 1px solid var(--cream-line); border-radius: .5rem; background: var(--cream); }
.review-note p { margin-top: .3rem; }
.intake-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(14rem, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.preview-card { padding: clamp(1.25rem, 4vw, 2.25rem); border-top: 8px solid var(--orange); border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 24px rgba(13, 33, 53, .14); }
.preview-card h2, .intake-aside h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.intake-aside { padding: 1.5rem; border-radius: var(--radius); background: var(--mist) url(wheel-soft.svg) right -6rem bottom -6rem / 14rem no-repeat; }
.intake-aside .touch-link { inline-size: 100%; margin-block-start: .5rem; }
fieldset { min-width: 0; margin: 1.75rem 0 0; padding: 1rem 0 0; border: 0; border-top: 2px solid var(--line); }
legend { padding: 0 .6rem 0 0; color: var(--navy); font-size: 1.3125rem; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .3rem; color: var(--ink); font-weight: 700; }
.field input:not([type=checkbox]), .field select, .field textarea {
    width: 100%;
    min-block-size: var(--control);
    padding: .6rem .75rem;
    border: 2px solid #8b98a2;
    border-radius: .5rem;
    background: var(--mist);
    color: var(--muted);
    font: inherit;
    opacity: 1;
}
.field .check-label { display: flex; align-items: flex-start; gap: .7rem; min-block-size: var(--control); }
.check-label input { inline-size: 1.6rem; block-size: 1.6rem; margin: .2rem 0 0; }
.form-end { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.form-end p { margin: 0; }
.form-end strong { display: block; color: var(--navy); }
.event-contact { display: grid; grid-template-columns: 1fr minmax(8rem, 13rem); gap: 2rem; align-items: center; }
.event-contact figure { margin: 0; }
.event-contact img { border: 6px solid var(--white); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(13, 33, 53, .2); }
.event-contact figcaption { margin-top: .6rem; font-weight: 700; text-align: center; }

/* Footer */
.site-footer { padding-block: 3rem; background: var(--navy-deep) url(bike-light.svg) right 4% center / 18rem no-repeat; color: #e7edf2; }
.footer-inner { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.site-footer .back-to-top { border-color: #9fb2c2; background: transparent; color: var(--white); }
.familiar-contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; font-style: normal; }
.site-footer .familiar-contacts > a { min-inline-size: min(16rem, 100%); }
.site-footer .familiar-contacts > a:last-child { min-inline-size: var(--control); padding: .5rem; border-color: var(--white); background: var(--white); box-shadow: none; }
.familiar-contacts img { width: 36px; height: 36px; }
.site-footer p { margin: 0; }
.site-footer .footer-inner > p > a { display: inline-flex; align-items: center; min-block-size: var(--control); padding-inline: .5rem; color: var(--white); }

@media (max-width: 54rem) {
    .start-cards .container { grid-template-columns: 1fr; margin-block-start: 1.5rem; }
    .start-card { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; padding: 1.25rem; }
    .start-card img { block-size: 3.5rem; }
    .start-card-title { margin: 0; align-self: center; }
    .start-card p { flex-basis: 100%; margin-block-end: .9rem; }
    .split, #different-bike-tour .familiar-copy, .intake-layout, .archive-heading { grid-template-columns: minmax(0, 1fr); }
    #different-bike-tour .crossings { grid-column: 1; grid-row: auto; inline-size: min(100%, 26rem); margin-inline: auto; }
    .familiar-section .ride-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .navy-band, .page-heading { background-size: 22rem; }
}
@media (max-width: 42rem) {
    :root { scroll-padding-block-start: 5.5rem; }
    body { font-size: 1.125rem; }
    .container { width: calc(100% - 2rem); }
    .header-inner { width: 100%; }
    .main-nav { display: grid; grid-template-columns: .7fr 1.25fr 1.15fr; gap: 0; align-items: stretch; width: 100%; }
    .main-nav a { min-inline-size: 0; padding-inline: .25rem; font-size: 1.125rem; line-height: 1.2; }
    .hero .familiar-actions { flex-direction: column; gap: .75rem; }
    .hero .familiar-actions a { inline-size: 100%; }
    .familiar-gallery, .familiar-sponsor-grid, .field-grid { grid-template-columns: minmax(0, 1fr); }
    .route-table th, .route-table td { padding: .7rem .4rem; }
    .section-actions, .familiar-secondary-actions, .actions { display: grid; }
    .touch-link, .section-actions .button { width: 100%; }
    .familiar-contacts { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .site-footer .familiar-contacts > a:last-child { justify-self: center; }
    .site-footer { background-position: center bottom 1rem; background-size: 11rem; padding-block-end: 9rem; }
    .info-card.bike-corner { background-size: 5.5rem; background-position: right 1rem top 1rem; }
    .info-card.bike-corner h2 { max-inline-size: calc(100% - 5.5rem); }
    .ride-quote { padding: 4.5rem 1.25rem 1.5rem; background-position: 1.25rem 1.25rem; }
    .cream-band { background-size: 22rem; }
    /* On a phone the paragraphs fill the band, so nothing is drawn behind them. */
    #donations { background-image: none; }
    .event-contact { grid-template-columns: 1fr; }
    .event-contact figure { max-width: 13rem; }
}
