/* ==========================================================================
   Parklands Dart Club
   Inter is loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each
   page <head>. An @import here would block rendering until the font CSS lands.
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Restrained club palette: one deep navy, one working blue, greys. */
    --navy: #12304f;
    --navy-dark: #0c2138;
    --navy-light: #1c4570;
    --blue: #1c5fa8;
    --blue-dark: #164b85;

    --ink: #1a2430;
    --text: #313d4b;
    --text-muted: #5d6b7a;
    --text-on-navy: rgba(255, 255, 255, 0.82);

    --line: #dbe1e8;
    --line-strong: #b9c3ce;
    --surface: #ffffff;
    --surface-alt: #f5f7fa;

    /* Pulled from the club playing shirt: electric blue over navy. */
    --electric: #17a9e8;
    --electric-dark: #0f8bc2;
    --electric-glow: rgba(23, 169, 232, 0.35);

    --error: #a3231f;
    --success: #1a6b3c;

    --radius: 6px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 2px rgba(18, 48, 79, 0.06);
    --shadow-md: 0 1px 3px rgba(18, 48, 79, 0.1), 0 4px 12px rgba(18, 48, 79, 0.06);

    --measure: 68ch;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    max-width: var(--measure);
}

a {
    color: var(--blue);
}

img {
    max-width: 100%;
}

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

/* ==========================================================================
   Accessibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 2px;
}

.hero a:focus-visible,
.cta-section a:focus-visible,
.page-header a:focus-visible,
footer a:focus-visible {
    outline-color: #ffffff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo img {
    height: 46px;
    width: auto;
}

/* The club name is a <span>, not an <h1>: each page has one <h1>, its own. */
.logo .logo-title {
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.85rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a.active {
    color: var(--navy);
    border-bottom-color: var(--blue);
}

.burger {
    display: none;
    background: none;
    border: 0;
    padding: 0.4rem;
    cursor: pointer;
    line-height: 0;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button,
.view-all {
    display: inline-block;
    background: var(--blue);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid var(--blue);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cta-button:hover,
.view-all:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* On navy panels the filled blue button disappears, so invert it. */
.hero .cta-button,
.cta-section .cta-button {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--navy);
}

.hero .cta-button:hover,
.cta-section .cta-button:hover {
    background: #e8eef5;
    border-color: #e8eef5;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Text-only hero. No photography here at all: the message sits on solid navy,
   and the space alongside carries the playing schedule rather than an image. */
.hero {
    position: relative;
    color: #ffffff;
    padding: 84px 0 88px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 58%, var(--navy-light) 100%);
    overflow: hidden;
}

/* Faint concentric rings, a nod to a board face. Static, drawn in CSS, and
   low enough in contrast to read as texture rather than decoration. */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -140px;
    width: 620px;
    height: 620px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 46px);
    pointer-events: none;
}

/* Electric edge along the bottom, echoing the kit. */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric) 0%, var(--blue) 55%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
}

.hero-content {
    max-width: 34rem;
}

/* Schedule panel: fills the space beside the headline with the answer to the
   first question a new player has, instead of an image. */
.hero-panel {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 1.6rem 1.75rem;
    box-shadow: 0 20px 40px rgba(4, 16, 28, 0.3);
}

.hero-panel h2 {
    color: #8fd8f7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-panel dl {
    margin: 0;
}

.hero-panel dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel dt {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.hero-panel dt small {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62);
}

.hero-panel dd {
    margin: 0;
    text-align: right;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.hero-panel .panel-foot {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.68);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem 0.35rem 0.7rem;
    border: 1px solid rgba(23, 169, 232, 0.5);
    border-radius: 100px;
    background: rgba(23, 169, 232, 0.12);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8fd8f7;
}

.hero-kicker::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--electric);
    box-shadow: 0 0 0 4px var(--electric-glow);
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.25rem, 5.6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--electric);
}

.hero-content p {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
}

.hero-tagline {
    display: block;
    margin: 1.1rem 0 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(143, 216, 247, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

/* Secondary action: outlined, so the primary still leads. */
.button-ghost {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

/* ==========================================================================
   Stat band
   ========================================================================== */

.stat-band {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
}

.stat-band dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem 2rem;
}

.stat-band div {
    text-align: center;
}

.stat-band dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.3rem;
}

.stat-band dd {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--electric);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Photo strip
   ========================================================================== */

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.photo-strip a {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    line-height: 0;
}

.photo-strip img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.photo-strip a:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

.photo-strip span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 0.85rem;
    background: linear-gradient(180deg, transparent, rgba(8, 26, 44, 0.85));
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-header {
    background: var(--navy);
    color: #ffffff;
    padding: 64px 0;
    position: relative;
    border-bottom: 3px solid var(--electric);
}

.page-header .container {
    max-width: 1120px;
}

.page-header h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-on-navy);
    font-size: 1.0625rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.content-section,
.features,
.upcoming-events {
    padding: 72px 0;
}

.section-tinted,
.section-pale {
    background-color: var(--surface-alt);
}

.section-title,
.features h2,
.upcoming-events h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* Short accent rule above section headings, in the kit blue. */
.section-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--electric);
    margin-bottom: 0.9rem;
}

.section-intro {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.block {
    margin-top: 2.75rem;
}

/* Rule above a section heading, in place of the old decorative flourishes. */
.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    /* Accent edge instead of an emoji. */
    border-top: 3px solid var(--electric);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================================================
   Fixtures table
   ========================================================================== */

.fixtures {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 0.9375rem;
}

.fixtures caption {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.fixtures th,
.fixtures td {
    text-align: left;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.fixtures thead th {
    background: var(--surface-alt);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.fixtures tbody tr:last-child th,
.fixtures tbody tr:last-child td {
    border-bottom: 0;
}

.fixtures tbody th {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy);
    white-space: nowrap;
    border-left: 3px solid var(--electric);
}

.fixtures tbody tr:hover td,
.fixtures tbody tr:hover th {
    background: #f0f8fd;
}

.fixtures .time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Event list (annual fixtures)
   ========================================================================== */

.events-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.event-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--navy-light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.event-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
}

.event-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.event-item .time {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Community photo
   ========================================================================== */

.community-photo {
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.community-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.community-photo figcaption {
    padding: 0.9rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--line);
}

/* ==========================================================================
   Call to action
   ========================================================================== */

.cta-section {
    position: relative;
    color: #ffffff;
    padding: 72px 0;
    background: var(--navy-dark);
    border-top: 3px solid var(--electric);
}

.cta-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--text-on-navy);
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   Membership
   ========================================================================== */

.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.membership-cards.single-plan {
    max-width: 26rem;
}

.membership-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.membership-card h2,
.membership-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.price span {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.membership-card ul {
    list-style: none;
    margin-bottom: 1.75rem;
}

.membership-card ul li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
}

.membership-card ul li:last-child {
    border-bottom: 0;
}

.membership-detail {
    margin-top: 3rem;
    max-width: var(--measure);
}

.membership-detail ul {
    margin: 0.75rem 0 0 1.25rem;
}

.membership-detail ul li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   Panels and lists
   ========================================================================== */

.info-panel {
    margin-top: 2.5rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.section-pale .info-panel,
.section-tinted .info-panel {
    background: var(--surface);
}

.info-panel h3 {
    margin-bottom: 0.5rem;
}

.info-panel .note {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.panel-list {
    margin: 0.75rem 0 0 1.25rem;
}

.panel-list li {
    margin-bottom: 0.35rem;
}

.hours-list {
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.hours-list div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.hours-list dt {
    font-weight: 600;
    color: var(--navy);
    min-width: 7rem;
}

.hours-list dd {
    margin: 0;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--surface);
}

.contact-card h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0;
    font-size: 0.9375rem;
}

.contact-card a {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-card .card-note {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.committee-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: var(--surface);
}

.committee-card .role {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.committee-card .name {
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.committee-card a {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Form
   ========================================================================== */

.contact-form {
    max-width: 34rem;
    margin-top: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contact-form h2 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.form-required-note {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}

/* The hint inside a <label> must stay inline. */
label .form-required-note {
    display: inline;
    margin: 0;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    /* A near-white border made the fields effectively invisible before. */
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

/* Bot trap: invisible to people, so anything submitted here is junk. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-button {
    background: var(--blue);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.submit-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.submit-button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* Replaces the alert() the form used to fire. */
.form-status {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    background: #eef7f1;
    color: var(--success);
    border-left-color: var(--success);
}

.form-status.is-error {
    background: #fbeeee;
    color: var(--error);
    border-left-color: var(--error);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

/* Column flow rather than a grid: the photographs are a mix of portrait and
   landscape, and a fixed-ratio grid would centre-crop faces out of the
   portrait shots. */
.gallery-grid {
    columns: 3 300px;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item figcaption {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
}

.gallery-item figcaption strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9375rem;
}

.gallery-item figcaption span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.gallery-note {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--navy-dark);
    color: var(--text-on-navy);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.footer-col p,
.footer-col address {
    font-size: 0.9375rem;
    font-style: normal;
    color: var(--text-on-navy);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.45rem;
}

.footer-col a {
    color: var(--text-on-navy);
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    max-width: none;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-page {
    padding: 96px 0;
}

.error-page .code {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.error-page h1 {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78%, 300px);
        background: var(--surface);
        border-left: 1px solid var(--line);
        box-shadow: -8px 0 24px rgba(18, 48, 79, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 5rem 1.75rem 2rem;
        transform: translateX(100%);
        transition: transform 0.2s ease-out;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .burger.active .line1 {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 60px 0 64px;
    }

    /* Stack the panel, with the photograph following the message. */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hero-content {
        max-width: none;
    }

    .hero-content p {
        font-size: 1.0625rem;
    }

    .hero-actions .cta-button,
    .hero-actions .button-ghost {
        text-align: center;
        flex: 1 1 auto;
    }

    .stat-band dl {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-band dd {
        font-size: 1.625rem;
    }

    .photo-strip img {
        height: 170px;
    }

    .gallery-grid {
        columns: 1;
    }

    .content-section,
    .features,
    .upcoming-events {
        padding: 56px 0;
    }

    /* Reflow the fixtures table into stacked rows on narrow screens. */
    .fixtures,
    .fixtures thead,
    .fixtures tbody,
    .fixtures tr,
    .fixtures th,
    .fixtures td {
        display: block;
    }

    .fixtures thead {
        display: none;
    }

    .fixtures tbody tr {
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 0;
    }

    .fixtures tbody tr:last-child {
        border-bottom: 0;
    }

    .fixtures th,
    .fixtures td {
        border-bottom: 0;
        padding: 0.3rem 1.25rem;
    }

    .fixtures tbody th {
        font-size: 1rem;
        padding-top: 0.9rem;
    }

    .hours-list dt {
        min-width: 100%;
    }
}
