:root {
    --blue-dark: #142EB9;
    --green: #B7E5CE;
    --green-light: #90c9ad;
    --green-profile: #effff8;
    --white-help: #F4F9F6;
    --gray: #6E6E6E;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background: var(--white);
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand-logo {
    height: 44px;
    width: auto;
    border-radius: 8px;
    display: block;
}

.site-nav a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
    margin-left: 24px;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: var(--green);
}

.hero-inner {
    text-align: center;
    padding: 64px 24px 72px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 32px;
    box-shadow: 0 12px 30px rgba(20, 46, 185, 0.25);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--blue-dark);
    margin: 0 0 16px;
}

.hero-tagline {
    max-width: 560px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.5;
    color: #244;
    color: #1f3a2f;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.store-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--blue-dark);
    color: var(--white);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 14px;
    min-width: 190px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px rgba(20, 46, 185, 0.3);
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(20, 46, 185, 0.35);
}

.store-button-label {
    font-size: 12px;
    opacity: 0.85;
}

.store-button-name {
    font-size: 18px;
    font-weight: 700;
}

/* Features */
.features {
    padding: 72px 0;
    background: var(--white-help);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.feature-card h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 0 10px;
}

.feature-card p {
    margin: 0;
    color: var(--gray);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    padding: 28px 0;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: underline;
    margin: 0 10px;
}

/* Legal pages */
.legal-hero {
    background: var(--green);
    padding: 40px 24px;
    text-align: center;
}

.legal-hero .brand-logo {
    height: 56px;
    border-radius: 12px;
}

.legal-hero h1 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 900;
    color: var(--blue-dark);
    margin: 20px 0 0;
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    line-height: 1.6;
}

.legal h2 {
    color: var(--blue-dark);
    font-size: 20px;
    margin-top: 36px;
}

.legal h3 {
    font-size: 16px;
    margin-top: 24px;
}

.legal p, .legal li {
    color: #333;
}

.legal ul {
    padding-left: 20px;
}

.legal .updated {
    color: var(--gray);
    font-size: 14px;
}

.legal a {
    color: var(--blue-dark);
}

/* Embedded mode: page is loaded raw inside the mobile app (react-native-render-html) */
body.embedded .site-header,
body.embedded .legal-hero,
body.embedded .site-footer {
    display: none;
}

body.embedded .legal {
    padding: 16px 0;
}

/* Informational pages and mobile navigation, matching the existing Sept X palette. */
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.site-nav a { margin-left: 0; }
.header-inner { gap: 20px; }
.brand { flex: 0 0 auto; }
.brand-logo { width: 44px; height: 44px; }
.hero-logo { object-fit: contain; }
.editorial { padding: 64px 0; }
.editorial-inner { max-width: 900px; line-height: 1.75; }
.editorial h2, .editorial h3, .guide h2 { color: var(--blue-dark); }
.editorial h2 { margin-top: 40px; }
.editorial h2:first-child { margin-top: 0; }
.editorial a, .guide a { color: var(--blue-dark); }
.guide-links { margin: 32px 0 48px; }
.guide-links h3 { margin: 0 0 12px; }
.guide-links a { display: inline-block; margin-top: 16px; font-weight: 600; }
.editorial details { border-bottom: 1px solid #dce8e1; padding: 16px 0; }
.editorial summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); }
.editorial details p { margin-bottom: 0; }
.guide-hero { padding: 36px 0 48px; background: var(--green); }
.guide-hero h1 { max-width: 900px; color: var(--blue-dark); font-size: clamp(28px, 4vw, 40px); line-height: 1.25; }
.guide-hero p { max-width: 760px; line-height: 1.7; }
.guide-breadcrumb { font-size: 13px; line-height: 1.7; }
.guide-breadcrumb a { color: var(--blue-dark); }
.guide { max-width: 840px; padding: 32px 24px 64px; margin: 0 auto; line-height: 1.8; }
.guide h2 { font-size: 23px; line-height: 1.35; margin-top: 36px; }
.guide li { margin-bottom: 10px; }
.guide-cta { margin-top: 40px; padding: 24px; background: var(--white-help); border-radius: 20px; }
.guide-cta h2 { margin-top: 0; }
.guide-cta .store-buttons { justify-content: flex-start; }
.guide-cta .store-button { color: var(--white); }
.brand-note { max-width: 760px; margin: 20px auto 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) {
  .site-nav { gap: 10px 14px; }
  .site-nav a { font-size: 13px; }
  .header-inner { gap: 14px; }
  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .guide-hero { padding-top: 24px; padding-bottom: 32px; }
  .guide-cta { padding: 20px; }
}

/* Club directory: scoped styles preserve the existing site palette. */
.club-directory { padding-top: 32px; padding-bottom: 24px; }
.club-note { font-size: 14px; line-height: 1.7; color: #454545; }
.club-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin: 24px 0; padding: 24px; background: var(--white-help); border-radius: 18px; }
.club-filters label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.club-filters input[type=search], .club-filters select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #72817a; border-radius: 8px; font: inherit; background: white; }
.club-filters > div { min-width: 0; }
.club-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.club-filters .club-checkbox { display: flex; align-items: center; gap: 10px; margin: 0; line-height: 1.5; }
.club-checkbox input { width: 18px; height: 18px; flex: 0 0 auto; }
.club-filters button { padding: 10px 16px; border: 1px solid var(--blue-dark); border-radius: 8px; font: inherit; color: var(--blue-dark); background: white; cursor: pointer; }
.club-filters input:focus-visible, .club-filters select:focus-visible, .club-filters button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.club-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.club-card { padding: 24px; border: 1px solid #dce8e1; border-radius: 20px; overflow-wrap: anywhere; }
.club-card h2 { margin-top: 8px; color: var(--blue-dark); font-size: 23px; line-height: 1.35; }
.club-location { font-size: 13px; color: #454545; }
.club-address, .club-card dd { font-size: 15px; line-height: 1.7; }
.club-card dt { font-weight: 700; margin-top: 18px; }
.club-card dd { margin: 7px 0 0; }
.club-links { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 16px; line-height: 1.6; }
.club-links a, .club-empty a, .guide-hero a { color: var(--blue-dark); }
.club-checked { margin-bottom: 0; color: #555; font-size: 12px; line-height: 1.6; }
.club-empty { padding: 24px; background: var(--white-help); border-radius: 12px; line-height: 1.7; }
.club-card[hidden], .club-empty[hidden], .club-filters[hidden] { display: none; }
@media (max-width: 800px) { .club-grid, .club-filters { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .club-card, .club-filters { padding: 18px; } }
