/*
Theme Name: UKGCG
Theme URI: https://www.theukgolfcourseguide.co.uk
Author: The UK Golf Course Guide
Description: The UK Golf Course Guide — a comprehensive directory of UK golf courses.
Version: 1.10.3
License: GNU General Public License v2 or later
Text Domain: ukgcg
*/

/* ============================================================
   FONTS: self-hosted variable fonts (SIL Open Font Licence,
   see assets/fonts/OFL-*.txt). Latin and Latin Extended only.
   ============================================================ */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
    /* Brand greens */
    --green-900: #0d1f05;
    --green-800: #173404;
    --green-700: #27500A;
    --green-600: #3B6D11;
    --green-500: #4d8a17;
    --green-400: #639922;
    --green-300: #97C459;
    --green-200: #C0DD97;
    --green-100: #D8ECBA;
    --green-50:  #EAF3DE;

    /* Neutrals */
    --white:     #ffffff;
    --grey-50:   #f8f9f7;
    --grey-100:  #f0f2ed;
    --grey-200:  #e2e6dc;
    --grey-300:  #c8cebd;
    --grey-400:  #9aa38a;
    --grey-500:  #6b7560;
    --grey-600:  #4a5240;
    --grey-700:  #323b29;
    --grey-800:  #1e2518;
    --grey-900:  #111508;

    /* Semantic */
    --color-bg:           var(--white);
    --color-bg-secondary: var(--grey-50);
    --color-bg-tertiary:  var(--grey-100);
    --color-text:         var(--grey-800);
    --color-text-muted:   var(--grey-500);
    --color-text-light:   var(--grey-400);
    --color-border:       var(--grey-200);
    --color-border-dark:  var(--grey-300);
    --color-accent:       var(--green-600);
    --color-accent-hover: var(--green-700);

    /* Typography */
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'Courier New', Courier, monospace;

    /* Spacing */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   1.5rem;
    --space-xl:   2rem;
    --space-2xl:  3rem;
    --space-3xl:  4rem;
    --space-4xl:  6rem;

    /* Layout */
    --container-max:   1280px;
    --container-wide:  1440px;
    --container-narrow: 800px;
    --gutter:          2rem;

    /* Radius */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1);
    --shadow-lg:  0 8px 24px rgba(0,0,0,.12);
    --shadow-xl:  0 16px 48px rgba(0,0,0,.15);

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-accent-hover); }

ul, ol { list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--grey-800);
    font-weight: 600;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.heading-xl { font-size: clamp(2rem, 4vw, 3rem); }
.heading-lg { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.heading-md { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.heading-sm { font-size: 1.25rem; }
.heading-xs { font-size: 1rem; }

.label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.label--green {
    color: var(--green-600);
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    background: var(--green-800);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--green-700);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--green-50) !important;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Club seal mark + site name */
.site-logo__mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: block;
}

.site-logo__name {
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1.1;
}

.site-logo:hover .site-logo__name { color: var(--green-100); }

@media (max-width: 480px) {
    .site-logo__mark { width: 38px; height: 38px; }
    .site-logo__name { font-size: 1.0625rem; }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.site-nav a {
    color: var(--green-200);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.site-nav a:hover { color: var(--white); }

.site-nav a.current-menu-item { color: var(--white); }

.header-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.header-search:hover {
    border-color: rgba(255,255,255,.25);
}

.header-search svg {
    width: 14px;
    height: 14px;
    color: var(--green-200);
}

.header-search span {
    font-size: 0.8rem;
    color: var(--green-200);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--green-200);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: var(--green-800);
}

@media (max-width: 768px) {
    .hero { height: 480px; }
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.hero__slide.is-active { opacity: 1; }

.hero__slide--fallback {
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 50%, var(--green-700) 100%);
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 28, 4, 0.9) 0%,
        rgba(10, 28, 4, 0.5) 50%,
        rgba(10, 28, 4, 0.15) 100%
    );
    z-index: 1;
}

/* Full height, so the content sits at the bottom of the hero as intended */
.hero > .container { height: 100%; }

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--space-2xl);
}

.hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-300);
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

@media (max-width: 768px) {
    .hero__eyebrow { color: var(--green-200); }
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    color: var(--green-50);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    max-width: 560px;
}

.hero__subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 440px;
}

.hero__search {
    display: flex;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 480px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero__search-icon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: rgba(255,255,255,.5);
}

.hero__search-icon svg {
    width: 16px;
    height: 16px;
}

.hero__search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 10px;
    color: var(--white);
    font-size: 0.875rem;
}

.hero__search input::placeholder {
    color: rgba(255,255,255,.45);
}

.hero__search button {
    background: var(--green-600);
    border: none;
    color: var(--white);
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.hero__search button:hover {
    background: var(--green-700);
}

.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,.1);
}

.hero__stat-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--green-200);
}

.hero__stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,.5);
    margin-left: 0.5rem;
}

/* Hero "Courses near me", shown by JS when the browser offers geolocation */
.hero__locate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: var(--space-sm);
    min-height: 24px;
}

.hero__locate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 2px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.3);
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.hero__locate:hover { color: var(--white); text-decoration-color: currentColor; }
.hero__locate svg { width: 14px; height: 14px; color: var(--green-300); }
.hero__locate.is-busy { opacity: .6; cursor: progress; }

.hero__locate-msg {
    font-size: 0.75rem;
    color: rgba(255,255,255,.65);
}

/* Hero controls */
/* Sits in the content's bottom padding so it is never pushed under the header */
.hero__dots {
    position: absolute;
    left: 0;
    bottom: var(--space-md);
    display: flex;
    gap: 6px;
}

.hero__dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background var(--transition);
}

.hero__dot.is-active { background: var(--green-300); }

.hero__caption {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 3;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-full);
    padding: 4px 14px;
    font-size: 0.7rem;
    color: rgba(255,255,255,.7);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.hero__caption:hover { color: var(--white); background: rgba(0,0,0,.55); }

.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.hero__nav:focus { outline: none; }
.hero__nav:focus-visible .hero__nav-btn {
    outline: 2px solid var(--green-300);
    outline-offset: 2px;
}

.hero__nav--prev { left: var(--space-lg); }
.hero__nav--next { right: var(--space-lg); }

.hero__nav-btn {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.6);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.hero__nav:hover .hero__nav-btn { background: rgba(0,0,0,.55); }

@media (max-width: 768px) {
    /* Arrows would sit over the search box; the dots still change slides */
    .hero__nav { display: none; }
    .hero__dot { width: 20px; }
    .hero__caption { top: auto; bottom: var(--space-sm); right: var(--space-md); }
}
.hero__nav-btn svg { width: 16px; height: 16px; }

/* ============================================================
   REGION NAVIGATION STRIP
   ============================================================ */

.region-strip {
    background: var(--green-800);
    border-top: 1px solid var(--green-700);
}

.region-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.region-strip__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-right: 1px solid var(--green-700);
    color: var(--green-50) !important;
    transition: background var(--transition);
}

.region-strip__item:last-child { border-right: none; }
.region-strip__item:hover { background: var(--green-700); }

.region-strip__name {
    font-size: 0.875rem;
    font-weight: 500;
}

.region-strip__count {
    font-size: 0.75rem;
    color: var(--green-400);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--grey-800);
}

.section-link {
    font-size: 0.8125rem;
    color: var(--green-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.section-link:hover svg { transform: translateX(3px); }

/* ============================================================
   COURSE CARDS
   ============================================================ */

.courses-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 1rem;
}

/* Five cards: the lead card spans two rows beside a 2 x 2 block, so rows are always full */
.courses-grid .course-card--featured { grid-row: span 2; }

@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }
    .courses-grid .course-card--featured { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.course-card--featured .course-card__image {
    height: auto;
    flex: 1;
    min-height: 220px;
}

.course-card--featured .course-card__image img {
    position: absolute;
    inset: 0;
}

.course-card--featured .course-card__body { flex: 0 0 auto; }

.course-card__image {
    height: 120px;
    background: var(--green-50);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-card__image img {
    transform: scale(1.04);
}

.course-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
}

.course-card__image-placeholder svg {
    width: 36px;
    height: 36px;
    color: var(--green-400);
    opacity: .6;
}

.course-card__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(to top, rgba(10,28,4,.85), transparent);
}

.course-card__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(192, 221, 151, .2);
    color: var(--green-100);
    border: 1px solid rgba(192, 221, 151, .3);
    margin-bottom: 4px;
}

.course-card__image-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-50);
    line-height: 1.3;
}

.course-card__image-location {
    font-size: 0.75rem;
    color: var(--green-200);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card__image-location svg {
    width: 11px;
    height: 11px;
}

.course-card__body {
    padding: 0.875rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 4px;
    line-height: 1.3;
}

.course-card__location {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card__location svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.course-card__excerpt {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex: 1;
}

.course-card__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-700);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */

/* Homepage blog: a lead post beside a compact list of the latest others */
.blog-home {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .blog-home { grid-template-columns: 1fr; align-items: start; }
    .home-blog-list { grid-template-rows: none; }
    .home-blog-lead__image { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}

.home-blog-lead,
.home-blog-row {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.home-blog-lead:hover,
.home-blog-row:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.home-blog-lead { display: flex; flex-direction: column; }

/* The lead photo takes whatever height the list beside it needs */
.home-blog-lead__image {
    position: relative;
    display: block;
    flex: 1;
    min-height: 260px;
    background: var(--green-50);
    overflow: hidden;
}

.home-blog-lead__image img { position: absolute; inset: 0; }

.home-blog-lead__image img,
.home-blog-row__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-blog-lead__body { padding: 1.25rem 1.375rem 1.375rem; }

.home-blog-lead__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--grey-800);
    margin-bottom: 8px;
}

.home-blog-lead__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.home-blog-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
}

.home-blog-row {
    display: grid;
    grid-template-columns: 38% 1fr;
}

.home-blog-row__image {
    display: block;
    min-height: 120px;
    background: var(--green-50);
    overflow: hidden;
}

.home-blog-row__body {
    padding: .875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-blog-row__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--grey-800);
    margin-bottom: 4px;
}

.home-blog-lead__title a:hover,
.home-blog-row__title a:hover { color: var(--green-700); }

.blog-home__topic {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 6px;
}

.blog-home__sponsored {
    padding: 1px 7px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    letter-spacing: .06em;
    color: var(--color-text-muted);
}

.blog-home__meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.home-blog-row .blog-home__meta { margin-top: 2px; }

/* Topic pills under the blog section */
.home-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-xl);
}

.home-topics__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--grey-800);
    margin-right: 4px;
}

.home-topics__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--green-800);
    transition: border-color var(--transition), background var(--transition);
}

.home-topics__pill:hover { border-color: var(--green-300); background: var(--green-50); }

.home-topics__count {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.home-topics__all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-600);
}

.home-topics__all svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
    .home-topics__label { width: 100%; }
    .home-topics__all { margin-left: 0; width: 100%; margin-top: 4px; }
}

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

@media (max-width: 900px) {
    .articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card__image {
    display: block;
    height: 180px;
    background: var(--green-50);
    overflow: hidden;
}

.article-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card__image-placeholder svg {
    width: 28px;
    height: 28px;
    color: var(--green-400);
    opacity: .5;
}

.article-card__body {
    padding: 1rem;
}

.article-card__type {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 6px;
}

.article-card__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1.35;
    margin-bottom: 6px;
}

.article-card__excerpt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.article-card__meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ============================================================
   CLUB CTA BANNER
   ============================================================ */

.club-cta {
    background: var(--green-50);
    border-top: 1px solid var(--green-100);
    border-bottom: 1px solid var(--green-100);
    padding: var(--space-2xl) 0;
}

.club-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .club-cta__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* Photo behind the band under a dark green overlay; the cards become frosted glass */
.club-cta--photo {
    position: relative;
    background: var(--green-800) var(--club-cta-bg-sm) center / cover no-repeat;
    border: 0;
    padding: calc(var(--space-2xl) * 1.5) 0;
}

@media (min-width: 769px) {
    .club-cta--photo { background-image: var(--club-cta-bg); }
}

.club-cta--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 31, 5, .76), rgba(13, 31, 5, .58));
}

/* A soft diagonal band of light that drifts across the photo as the page scrolls.
   main.js sets --shine from 0 (band entering at the bottom) to 1 (leaving at the top). */
.club-cta--photo { overflow: hidden; }

.club-cta--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,
        rgba(255, 255, 255, 0) 28%,
        rgba(255, 255, 255, .08) 40%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .08) 60%,
        rgba(255, 255, 255, 0) 72%);
    transform: translate3d(calc(var(--shine, .5) * 160% - 80%), 0, 0);
    transition: transform .2s ease-out;
    will-change: transform;
}

/* No movement: a static faint highlight through the middle instead */
@media (prefers-reduced-motion: reduce) {
    .club-cta--photo::after { transform: none; transition: none; opacity: .6; }
}

.club-cta--photo .container { position: relative; z-index: 1; }

.club-cta__card {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: 0 8px 32px rgba(10, 28, 4, .12);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
}

.club-cta--photo .club-cta__icon { background: rgba(232, 243, 226, .9); }

.club-cta__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(10, 28, 4, .04), 0 4px 16px rgba(10, 28, 4, .05);
    padding: var(--space-xl);
}

@media (max-width: 640px) {
    .club-cta__card { padding: var(--space-lg); }
}

.club-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-700);
    margin-bottom: var(--space-md);
}

.club-cta__icon svg { width: 18px; height: 18px; stroke-width: 1.75; }

.club-cta__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 4px;
}

.club-cta__card h3 {
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    color: var(--green-800);
    line-height: 1.3;
    margin-bottom: 6px;
}

.club-cta__card > p:not(.club-cta__eyebrow) {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.club-cta__points {
    list-style: none;
    margin: var(--space-md) 0 var(--space-lg);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.club-cta__points li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--green-800);
}

.club-cta__points svg { width: 14px; height: 14px; color: var(--green-600); }

/* Push the buttons to the same line when the cards differ in height */
.club-cta__card .btn { margin-top: auto; }

.club-cta--photo .club-cta__card {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .club-cta--photo .club-cta__card { background: rgba(23, 52, 4, .88); }
}

.club-cta--photo .club-cta__icon { background: rgba(255, 255, 255, .16); color: var(--white); }
.club-cta--photo .club-cta__eyebrow { color: var(--green-200); }
.club-cta--photo .club-cta__card h3 { color: var(--white); }
.club-cta--photo .club-cta__card > p:not(.club-cta__eyebrow) { color: rgba(255, 255, 255, .85); }
.club-cta--photo .club-cta__points li { color: rgba(255, 255, 255, .92); }
.club-cta--photo .club-cta__points svg { color: var(--green-300); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--green-600);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--green-700);
    color: var(--white);
}

.btn--dark {
    background: var(--green-800);
    color: var(--green-50);
}

.btn--dark:hover {
    background: var(--green-700);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--green-700);
    border: 1px solid var(--green-300);
}

.btn--light {
    background: var(--white);
    color: var(--green-800);
}

.btn--light:hover { background: var(--green-50); color: var(--green-900); }

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .8);
}

.btn--outline-light:hover { background: var(--white); color: var(--green-800); }

.btn--outline-dark {
    background: transparent;
    color: var(--green-800);
    border: 1px solid var(--green-800);
}

.btn--outline-dark:hover {
    background: var(--green-800);
    color: var(--green-50);
}

.btn--outline:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.btn svg {
    width: 15px;
    height: 15px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--green-800);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--green-50);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-brand svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--green-300);
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--green-200);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.site-footer__bottom {
    border-top: 1px solid var(--green-700);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .site-footer__bottom { flex-direction: column; text-align: center; }
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--green-300);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--green-400);
}

.footer-legal a:hover { color: var(--green-200); }

/* "Cookie settings" re-opens the consent banner; looks like the links beside it */
.footer-legal__button {
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.75rem;
    color: var(--green-400);
    cursor: pointer;
}

.footer-legal__button:hover { color: var(--green-200); }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

.section {
    padding: var(--space-2xl) 0;
}

.section--tight { padding-bottom: 0; }

/* Popular counties: photo tiles with the name over a soft gradient */
.county-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .county-tiles { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

.county-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-50);
}

.county-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.county-tile:hover img { transform: scale(1.04); }

.county-tile__text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem .875rem .75rem;
    background: linear-gradient(to top, rgba(10, 28, 4, .75), rgba(10, 28, 4, 0));
    display: flex;
    flex-direction: column;
}

.county-tile__name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
}

.county-tile__count {
    font-size: 0.75rem;
    color: rgba(255,255,255,.75);
}

.section--alt {
    background: var(--grey-50);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.search-form__input {
    flex: 1;
    min-width: 200px;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition);
    background: var(--white);
}

.search-form__input:focus {
    border-color: var(--green-400);
}

/* ============================================================
   RESPONSIVE NAVIGATION
   ============================================================ */

@media (max-width: 900px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--green-800);
        flex-direction: column;
        padding: var(--space-md) var(--gutter);
        border-top: 1px solid var(--green-700);
        gap: var(--space-md);
    }

    .site-nav.is-open { display: flex; }

    .mobile-menu-toggle { display: flex; }

    .header-search { display: none; }

    .region-strip__inner { grid-template-columns: repeat(2, 1fr); }

    .region-strip__item:nth-child(2) { border-right: none; }
    .region-strip__item:nth-child(3) { border-right: 1px solid var(--green-700); border-top: 1px solid var(--green-700); }
    .region-strip__item:nth-child(4) { border-top: 1px solid var(--green-700); }
}

@media (max-width: 480px) {
    :root { --gutter: 1rem; }
    .region-strip__inner { grid-template-columns: repeat(2, 1fr); }
    .hero__stats { gap: var(--space-lg); }
    .hero__stat-label { display: none; }
}

/* ============================================================
   WORDPRESS CORE OVERRIDES
   ============================================================ */

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 6px;
}

.alignleft { float: left; margin: 0 var(--space-lg) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.aligncenter { margin: var(--space-md) auto; text-align: center; }

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.breadcrumb {
    background: var(--grey-50);
    border-bottom: 1px solid var(--color-border);
    padding: 0.625rem 0;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.breadcrumb__list li {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.breadcrumb__list li + li::before {
    content: '/';
    margin: 0 0.5rem;
    color: var(--color-border-dark);
}

.breadcrumb__list a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.breadcrumb__list a:hover { color: var(--green-600); }

.breadcrumb__list li[aria-current="page"] {
    color: var(--green-600);
    font-weight: 500;
}

/* ============================================================
   SINGLE COURSE — HEADER BAND
   ============================================================ */

.course-header {
    background: var(--green-800);
    padding: var(--space-lg) 0;
}

.course-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
}

.course-header__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 0.625rem;
}

.course-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(192,221,151,.15);
    color: var(--green-100);
    border: 1px solid rgba(192,221,151,.25);
}

.course-header__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--green-50);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-header__address {
    font-size: 0.8125rem;
    color: var(--green-300);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-header__address svg { width: 13px; height: 13px; flex-shrink: 0; }

.course-header__yardage {
    text-align: right;
    flex-shrink: 0;
}

.course-header__yardage-label {
    display: block;
    font-size: 0.7rem;
    color: var(--green-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.course-header__yardage-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-200);
    line-height: 1;
}

.course-header__yardage-value span {
    font-size: 1rem;
    color: var(--green-400);
}

@media (max-width: 640px) {
    .course-header__inner { flex-direction: column; align-items: flex-start; }
    .course-header__yardage { text-align: left; }
}

/* ============================================================
   SINGLE COURSE — LAYOUT
   ============================================================ */

.course-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0 var(--space-3xl);
    align-items: start;
}

/* Let wide tables scroll inside their wrapper instead of widening the column */
.course-content,
.course-sidebar { min-width: 0; }

@media (max-width: 900px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SINGLE COURSE — GALLERY
   ============================================================ */

.course-gallery {
    margin-bottom: var(--space-xl);
}

.course-gallery__grid {
    display: grid;
    gap: 6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.course-gallery__grid--1 { grid-template-columns: 1fr; }
.course-gallery__grid--2 { grid-template-columns: 1fr 1fr; }
.course-gallery__grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }

.course-gallery__grid--3 .course-gallery__item:first-child {
    grid-row: 1 / 3;
}

.course-gallery__item {
    display: block;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    background: var(--green-50);
    aspect-ratio: 16/9;
}

.course-gallery__grid--3 .course-gallery__item:first-child {
    aspect-ratio: unset;
}

.course-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-gallery__item:hover img { transform: scale(1.03); }
.course-gallery__item[hidden] { display: none; }

.course-gallery__count {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.course-gallery__count svg { width: 14px; height: 14px; }
.course-gallery__credit { margin-left: auto; }

.course-gallery__more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23,52,4,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================================
   SINGLE COURSE — SECTIONS
   ============================================================ */

.course-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.course-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.course-section__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--grey-800);
    margin-bottom: var(--space-md);
}

.course-section__intro {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.course-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--grey-700);
}

.course-description p + p { margin-top: var(--space-md); }

.course-section__title-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    vertical-align: middle;
}
.course-section__title-meta svg { width: 14px; height: 14px; }

.course-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--grey-700);
}
.course-text p + p { margin-top: var(--space-sm); }

.course-section__cta { margin-top: var(--space-lg); }

.course-section__small {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Key facts: figures in a row, course type and architect underneath */
.course-facts {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 1px;
    margin: 0 0 var(--space-2xl);
    background: var(--green-800);
    border: 1px solid var(--green-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.course-facts--1 { --cols: 1; }
.course-facts--2 { --cols: 2; }
.course-facts--3 { --cols: 3; }

.course-facts__item {
    background: var(--white);
    padding: 0.875rem 1.125rem;
}

/* Course type and architect share the row below the figures */
.course-facts__item--wide { grid-column: span calc(var(--cols, 4) / 2); }
.course-facts--0 .course-facts__item--wide,
.course-facts--1 .course-facts__item--wide,
.course-facts--3 .course-facts__item--wide { grid-column: 1 / -1; }
/* A lone type or architect row takes the full width rather than leaving a gap */
.course-facts--2 .course-facts__item--wide:nth-child(odd):last-child,
.course-facts--4 .course-facts__item--wide:nth-child(odd):last-child { grid-column: 1 / -1; }

.course-facts dt {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-800);
    margin-bottom: 4px;
}

.course-facts dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--grey-800);
    line-height: 1.4;
}

.course-facts dd.course-facts__figure {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--green-800);
    font-variant-numeric: lining-nums;
}

@media (max-width: 640px) {
    .course-facts { --cols: 2; }
    .course-facts .course-facts__item--wide { grid-column: 1 / -1; }
}

/* Contact card: under the key facts on phones/tablets, in the sidebar on desktop */
.course-contact--inline { display: none; }

@media (max-width: 900px) {
    .course-contact--inline { display: block; margin-bottom: var(--space-2xl); }
    .course-contact--sidebar { display: none; }
}

/* Dress code and similar notes */
.course-note {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
    padding: 0.875rem 1rem;
    background: var(--grey-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--grey-700);
}
.course-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--green-600); }
.course-note__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Green fees */
.tee-table.fee-table td:not(:first-child),
.tee-table.fee-table th:not(:first-child) { text-align: left; }
.fee-table__price { font-weight: 600; color: var(--grey-800); white-space: nowrap; }
.fee-table__notes { color: var(--color-text-muted); font-size: 0.8125rem; }

/* Facilities */
.facility-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.625rem var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.facility-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--grey-700);
}

.facility-list svg {
    width: 16px;
    height: 16px;
    padding: 3px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-600);
    box-sizing: content-box;
}

.course-checked {
    margin: calc(-1 * var(--space-lg)) 0 var(--space-2xl);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.course-checked a { color: var(--green-600); }

/* Photo viewer */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(13,31,5,.94);
}

.lightbox::backdrop { background: rgba(13,31,5,.6); }

.lightbox__figure {
    position: absolute;
    inset: 3.5rem 4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    pointer-events: none;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100% - 2rem);
    object-fit: contain;
    border-radius: var(--radius-md);
    pointer-events: auto;
}

.lightbox__caption { font-size: 0.8rem; color: var(--green-200); }

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.12);
    color: var(--white);
    cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .course-facts { grid-template-columns: 1fr 1fr; }
    .lightbox__figure { inset: 3.5rem 0.5rem; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
}

/* ============================================================
   TEE CARD TABLE
   ============================================================ */

.tee-table-wrap {
    overflow-x: auto;
}

.tee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tee-table thead tr {
    background: var(--grey-50);
    border-bottom: 2px solid var(--color-border);
}

.tee-table th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tee-table th:not(:first-child) { text-align: center; }

.tee-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.tee-table td:not(:first-child) {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tee-table tr:last-child td { border-bottom: none; }
.tee-table td:first-child { white-space: nowrap; }
.tee-table tr:hover td { background: var(--grey-50); }

.tee-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid;
    vertical-align: middle;
    margin-right: 8px;
}

/* ============================================================
   VENUES WITH MORE THAN ONE COURSE
   Summary table, a course bar that sticks under the site header,
   then one section per course built from the usual course blocks.
   ============================================================ */

.venue-table__link {
    font-weight: 600;
    color: var(--green-700);
}
.venue-table__link:hover { color: var(--green-800); text-decoration: underline; }

.venue-tabs {
    position: sticky;
    top: var(--venue-tabs-top, 0px);
    z-index: 20;
    margin: 0 0 var(--space-xl);
    background: var(--white);
    border-bottom: 1px solid var(--color-border);
}

.venue-tabs__inner {
    display: flex;
    gap: var(--space-sm);
    padding: 0.625rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.venue-tabs__inner::-webkit-scrollbar { display: none; }

.venue-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1px solid var(--green-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-700);
    white-space: nowrap;
}
.venue-tabs__tab:hover { background: var(--green-50); color: var(--green-800); }
.venue-tabs__tab[aria-selected="true"] {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--green-50);
}

.venue-tabs__holes {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-700);
}
.venue-tabs__tab[aria-selected="true"] .venue-tabs__holes {
    background: rgba(192,221,151,.15);
    color: var(--green-100);
}

/* Clear the site header and course bar when jumping to a course */
.venue-course { scroll-margin-top: calc(var(--venue-tabs-top, 0px) + var(--venue-tabs-height, 3.5rem) + var(--space-md)); }

.venue-course__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-800);
    margin-bottom: var(--space-xs);
}

.venue-course__summary {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.venue-course .course-facts { margin-bottom: var(--space-lg); }
.venue-course .course-description { margin-bottom: var(--space-lg); }
.venue-course .course-gallery { margin-bottom: var(--space-lg); }

.venue-course__subtitle {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--grey-800);
    margin: var(--space-lg) 0 var(--space-sm);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-card__title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-card__body { padding: 1rem; }

.sidebar-card--cta {
    background: var(--green-50);
    border-color: var(--green-100);
    padding: 1rem;
}

.sidebar-card__cta-title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    color: var(--green-800);
    margin-bottom: 6px;
}

.sidebar-card__cta-text {
    font-size: 0.8rem;
    color: var(--green-600);
    line-height: 1.5;
    margin-bottom: 0.875rem;
}

/* Contact items */
.contact-item {
    display: flex;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item svg {
    width: 15px;
    height: 15px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item__label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}

.contact-item__value {
    font-size: 0.875rem;
    color: var(--grey-700);
    display: block;
}

.contact-item__value--link { color: var(--green-600); }
.contact-item__value--link:hover { color: var(--green-700); }

/* Map */
.sidebar-card--map { padding: 0; }

.course-map {
    position: relative;
    z-index: 0; /* keep Leaflet's panes under the site header */
    height: 220px;
    background: var(--green-50);
}

.sidebar-card--map .sidebar-card__body { display: grid; gap: 0.75rem; }

.sidebar-address {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.btn--block { width: 100%; justify-content: center; }

/* Social links in the contact card */
.contact-item--social { flex-wrap: wrap; gap: 6px; }

.social-pill {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--green-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green-700);
}
.social-pill:hover { background: var(--green-50); color: var(--green-800); }

/* Nearby courses */
.nearby-list { padding: 0.5rem 0; }

.nearby-item { border-bottom: 1px solid var(--color-border); }
.nearby-item:last-child { border-bottom: none; }

.nearby-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--grey-700) !important;
    transition: background var(--transition);
    gap: var(--space-sm);
}

.nearby-item__link:hover { background: var(--grey-50); }

.nearby-item__name {
    display: block;
    font-size: 0.875rem;
    color: var(--green-600);
}

.nearby-item__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.nearby-item__link svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.sidebar-more-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--green-600);
    font-weight: 500;
    border-top: 1px solid var(--color-border);
    transition: background var(--transition);
}

.sidebar-more-link:hover { background: var(--grey-50); color: var(--green-700); }
.sidebar-more-link svg { width: 14px; height: 14px; }

/* ============================================================
   ENQUIRY FORM
   ============================================================ */

.enquiry-form { }

.enquiry-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (max-width: 580px) {
    .enquiry-form__row { grid-template-columns: 1fr; }
}

.form-field {
    margin-bottom: var(--space-md);
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--grey-800);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(59,109,17,.1);
}

.form-field textarea { resize: vertical; min-height: 100px; }

.form-footer-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

.form-message {
    margin-top: var(--space-md);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.form-message--success {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-700);
}

.form-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */

.archive-header {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.archive-header--region {
    background: var(--green-800);
}

.archive-header--region .archive-header__title,
.archive-header--region .archive-header__count {
    color: var(--green-50);
}

.archive-header--region .label--green {
    color: var(--green-300);
}

.archive-header--region .archive-header__count a {
    color: var(--green-200);
}

.archive-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.archive-header__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--grey-800);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.archive-header__count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.archive-header__count strong { color: var(--grey-700); }

.archive-header__search { flex-shrink: 0; }

.inline-search {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    gap: 0;
}

.inline-search svg {
    width: 15px;
    height: 15px;
    color: var(--color-text-muted);
    margin: 0 10px;
    flex-shrink: 0;
}

.inline-search input {
    border: none;
    outline: none;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    min-width: 200px;
    background: transparent;
}

.inline-search button {
    background: var(--green-600);
    color: var(--white);
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.inline-search button:hover { background: var(--green-700); }

/* ============================================================
   ARCHIVE GRID — Course list cards
   ============================================================ */

.archive-layout {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .archive-grid { grid-template-columns: 1fr; }
}

.course-list-card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: 1fr auto;
    transition: box-shadow var(--transition), transform var(--transition);
}

.course-list-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.course-list-card__image {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 80px;
    background: var(--green-50);
    overflow: hidden;
    display: block;
}

.course-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-list-card:hover .course-list-card__image img { transform: scale(1.05); }

.course-list-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
}

.course-list-card__placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--green-400);
    opacity: .5;
}

.course-list-card__body {
    padding: 0.75rem 1rem;
    min-width: 0;
}

.course-list-card__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.course-list-card__title a { color: var(--grey-800); }
.course-list-card__title a:hover { color: var(--green-600); }

.course-list-card__address {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.course-list-card__address svg { width: 11px; height: 11px; flex-shrink: 0; }

.course-list-card__tags { display: flex; gap: 4px; flex-wrap: wrap; }

.course-list-card__actions {
    padding: 0 1rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn--sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: var(--grey-50);
    color: var(--grey-700);
}

@media (max-width: 640px) {
    .course-list-card { grid-template-columns: 80px 1fr; }
}

/* ============================================================
   COUNTY GRID — Region page
   ============================================================ */

.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
}

.county-card {
    display: block;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.county-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
    transform: translateY(-2px);
}

.county-card__inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 1rem 1.125rem;
}

.county-card__icon {
    width: 36px;
    height: 36px;
    background: var(--green-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}

.county-card:hover .county-card__icon { background: var(--green-100); }

.county-card__icon svg {
    width: 18px;
    height: 18px;
    color: var(--green-500);
}

.county-card__body { flex: 1; min-width: 0; }

.county-card__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--grey-800);
    line-height: 1.3;
}

.county-card__count {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.county-card svg:last-child {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.county-card:hover svg:last-child { transform: translateX(3px); }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--white);
    color: var(--grey-700);
    transition: all var(--transition);
    gap: 4px;
}

.pagination .page-numbers:hover {
    border-color: var(--green-400);
    color: var(--green-600);
    background: var(--green-50);
}

.pagination .page-numbers.current {
    background: var(--green-600);
    border-color: var(--green-600);
    color: var(--white);
}

.pagination .page-numbers svg { width: 14px; height: 14px; }

.no-results {
    font-size: 1rem;
    color: var(--color-text-muted);
    padding: var(--space-2xl) 0;
    text-align: center;
}

/* ============================================================
   ARTICLE — SINGLE POST
   ============================================================ */

.single-article { padding-bottom: var(--space-3xl); }

.article-header { padding: var(--space-xl) 0 0; }

.article-header__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.article-type-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-50);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--green-100);
}

.article-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.article-header__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    color: var(--grey-800);
    margin-bottom: var(--space-md);
}

.article-header__excerpt {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--grey-500);
    margin-bottom: var(--space-xl);
}

.article-hero-image {
    margin-bottom: var(--space-xl);
}

.article-hero-image__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
}

.article-body {
    padding-top: var(--space-lg);
}

/* Sponsored notice */
.sponsored-notice {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

/* ============================================================
   FLEXIBLE CONTENT BLOCKS
   ============================================================ */

.fc-block {
    margin-bottom: var(--space-xl);
}

/* Prose styles shared by text blocks */
.prose {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--grey-700);
}

.prose p + p { margin-top: 1em; }
.prose h2 { font-family: var(--font-serif); font-size: 1.375rem; margin: 1.75em 0 0.75em; color: var(--grey-800); }
.prose h3 { font-family: var(--font-serif); font-size: 1.125rem; margin: 1.5em 0 0.5em; color: var(--grey-800); }
.prose ul, .prose ol { padding-left: 1.5em; margin: 1em 0; }
.prose li { margin-bottom: 0.4em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--green-700); }
.prose strong { font-weight: 600; color: var(--grey-800); }
.prose em { font-style: italic; }
.prose blockquote { border-left: 3px solid var(--green-300); padding-left: 1rem; margin: 1.5em 0; color: var(--grey-500); }
.prose img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }

/* Tables in page content (e.g. the cookie table on the Privacy Policy) */
.prose table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.5rem 0.75rem; border: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--grey-800); background: var(--grey-50); }
@media (max-width: 640px) {
    .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Lead paragraph variant */
.fc-text-block--lead .prose p:first-child {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--grey-600);
    font-weight: 300;
}

/* Pull Quote */
.pull-quote {
    border-left: 4px solid var(--green-400);
    margin: 0;
    padding: var(--space-md) var(--space-xl);
    background: var(--green-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote__text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--grey-700);
    font-style: italic;
}

.pull-quote__attribution {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.pull-quote__attribution cite { font-style: normal; font-weight: 500; }

/* Image block */
.fc-image--full { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.fc-image--float-left { float: left; width: 45%; margin: 0 var(--space-lg) var(--space-md) 0; }
.fc-image--float-right { float: right; width: 45%; margin: 0 0 var(--space-md) var(--space-lg); }

.fc-image__figure { margin: 0; }
.fc-image__img { width: 100%; border-radius: var(--radius-md); }
.fc-image__caption { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; margin-top: 8px; }

/* Gallery */
.fc-gallery__grid { display: grid; gap: 6px; }
.fc-gallery__grid--2 { grid-template-columns: repeat(2, 1fr); }
.fc-gallery__grid--3 { grid-template-columns: repeat(3, 1fr); }
.fc-gallery__grid--4 { grid-template-columns: repeat(4, 1fr); }

.fc-gallery__item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.fc-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.fc-gallery__caption { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; margin-top: 8px; }

/* Video */
.fc-video__wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); }
.fc-video__wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.fc-video__caption { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; margin-top: 8px; }

/* Two column */
.fc-two-column__grid { display: grid; gap: var(--space-xl); }
@media (max-width: 640px) { .fc-two-column__grid { grid-template-columns: 1fr !important; } }

/* Affiliate block */
.fc-affiliate-block {
    background: var(--grey-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.fc-affiliate-block__disclosure {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    background: var(--grey-100);
    padding: 6px 1.25rem;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.fc-affiliate-block__inner {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    align-items: center;
}

@media (max-width: 580px) { .fc-affiliate-block__inner { flex-direction: column; } }

.fc-affiliate-block__image {
    width: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fc-affiliate-block__image img { width: 100%; height: auto; }

.fc-affiliate-block__heading {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.fc-affiliate-block__description {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

/* Article footer */
.article-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.article-footer__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.article-footer__nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.article-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--grey-700) !important;
    max-width: 45%;
    transition: color var(--transition);
}

.article-nav-link:hover { color: var(--green-600) !important; }
.article-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.article-nav-link span { font-size: 0.875rem; line-height: 1.4; }
.article-nav-link small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: 3px; }
.article-nav-link--next { margin-left: auto; text-align: right; flex-direction: row-reverse; }

/* ============================================================
   MISSING ICON ADDITIONS (add to ukgcg_icon function)
   ============================================================ */
/* phone, mail, globe, map icons needed — add to functions.php ukgcg_icon() */


/* ============================================================
   COURSE ARCHIVE — search, filters, A–Z
   ============================================================ */

.archive-header--courses {
    background: var(--green-50);
}

.archive-header__intro {
    max-width: 640px;
    font-size: 1rem;
    color: var(--grey-600);
    margin-bottom: var(--space-lg);
}

.course-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto;
    gap: var(--space-md);
    align-items: end;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
    margin-top: var(--space-md);
}

.course-filters__field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--grey-600);
    margin-bottom: 6px;
}

.course-filters__field select,
.course-filters__input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.875rem;
    color: var(--grey-800);
}

.course-filters__field select {
    padding: 0 0.75rem;
}

.course-filters__input {
    display: flex;
    align-items: center;
}

.course-filters__input svg {
    width: 15px;
    height: 15px;
    margin: 0 10px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.course-filters__input input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 0.875rem;
}

.course-filters__input:focus-within,
.course-filters__field select:focus {
    border-color: var(--green-500);
    outline: 2px solid var(--green-100);
}

.course-filters__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.course-filters__actions .btn { height: 42px; white-space: nowrap; }

.course-filters__reset {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.course-filters__reset:hover { color: var(--green-600); }

@media (max-width: 900px) {
    .course-filters { grid-template-columns: 1fr 1fr; }
    .course-filters__field--search { grid-column: 1 / -1; }
    .course-filters__actions { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
    .course-filters { grid-template-columns: 1fr; padding: var(--space-md); }
}

.az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: var(--space-md);
}

.az-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--grey-700);
    background: var(--white);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.az-nav__item:hover {
    border-color: var(--green-400);
    color: var(--green-600);
}

.az-nav__item.is-active {
    background: var(--green-600);
    border-color: var(--green-600);
    color: var(--white);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-lg);
}

.results-bar__count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.results-bar__count strong { color: var(--grey-800); }

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 12px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-700);
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-chip svg { width: 13px; height: 13px; }

.filter-chip:hover {
    background: var(--green-100);
    color: var(--green-800);
}

.no-results a { color: var(--green-600); text-decoration: underline; }

/* ============================================================
   COUNTY CARDS — parent areas, sub-area links, county index
   ============================================================ */

.county-card__inner { color: inherit; text-decoration: none; }

.county-card__children {
    list-style: none;
    margin: 0;
    padding: 0 1.125rem 0.875rem 4.25rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.county-card__children a {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--grey-600);
    padding: 3px 0;
    border-bottom: 1px dashed var(--color-border);
}

.county-card__children li:last-child a { border-bottom: none; }
.county-card__children a:hover { color: var(--green-600); }
.county-card__children span { color: var(--color-text-light); font-size: 0.75rem; }

.subarea-nav {
    background: var(--grey-50);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.subarea-nav .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.subarea-nav__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-right: 4px;
}

.subarea-nav .filter-chip { padding: 4px 12px; }
.subarea-nav .filter-chip span { color: var(--green-500); font-size: 0.75rem; }

.archive-header--region .archive-header__count a { margin-left: 0.5rem; text-decoration: underline; }

.county-index__intro { max-width: 720px; padding-top: var(--space-xl); }

.county-index__nation { scroll-margin-top: 80px; }

.archive-header--region .archive-header__count strong { color: var(--white); }

/* ============================================================
   COURSE SEARCH — near me, distances, name matches
   ============================================================ */

.course-filters__locate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: 30px;
    margin-right: 6px;
    padding: 0 10px;
    border: 1px solid var(--green-200);
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.course-filters__locate[hidden] { display: none; }
.course-filters__locate svg { width: 13px; height: 13px; margin: 0; color: currentColor; }
.course-filters__locate:hover { background: var(--green-100); }
.course-filters__locate.is-busy { opacity: .6; cursor: progress; }

.course-list-card__distance {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--green-600);
    margin-bottom: 2px;
}

.name-matches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-lg);
    padding: 0.75rem 1rem;
    background: var(--grey-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.name-matches__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-right: 4px;
}

/* Whole course card links to the course page (the title link covers the card) */
.course-list-card { position: relative; cursor: pointer; }
.course-list-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.course-list-card__title a:focus-visible { outline: none; }
.course-list-card:has(.course-list-card__title a:focus-visible) {
    outline: 2px solid var(--green-500);
    outline-offset: 2px;
}
.course-list-card:hover .course-list-card__title a { color: var(--green-600); }

/* ============================================================
   BLOG (index, cards, post extras) — added 2026-10-25
   ============================================================ */

.blog-index { padding: var(--space-xl) var(--gutter) var(--space-3xl); }
.blog-index__header { max-width: 760px; margin-bottom: var(--space-2xl); }
.blog-index__title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--grey-800); line-height: 1.15; }
.blog-index__intro { font-size: 1.0625rem; color: var(--grey-500); margin-top: var(--space-sm); line-height: 1.6; }

.blog-topics { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.blog-topics__chip {
    font-size: 0.8125rem; font-weight: 500; color: var(--grey-600);
    padding: 6px 14px; border: 1px solid var(--color-border-dark); border-radius: var(--radius-full);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.blog-topics__chip:hover { border-color: var(--green-600); color: var(--green-700); }
.blog-topics__chip.is-active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl) var(--space-lg); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-lead { margin-bottom: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-border); }

.blog-card { display: flex; flex-direction: column; }
.blog-card__image { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-50); margin-bottom: var(--space-md); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card__image img { transform: scale(1.03); }
.blog-card--no-image .blog-card__body { border-top: 3px solid var(--green-600); padding-top: var(--space-md); }
.blog-card__topic { font-size: 0.6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px; }
.blog-card__title { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; color: var(--grey-800); }
.blog-card__title a:hover { color: var(--green-700); }
.blog-card__excerpt { font-size: 0.9rem; line-height: 1.6; color: var(--grey-500); margin-top: var(--space-sm); }
.blog-card__meta { font-size: 0.75rem; color: var(--color-text-light); margin-top: var(--space-sm); }

.blog-card--featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: center; }
.blog-card--featured.blog-card--no-image { grid-template-columns: 1fr; max-width: 760px; }
.blog-card--featured .blog-card__image { margin-bottom: 0; }
.blog-card--featured .blog-card__title { font-size: clamp(1.5rem, 3vw, 2.125rem); }
.blog-card--featured .blog-card__excerpt { font-size: 1.0625rem; }
@media (max-width: 760px) { .blog-card--featured { grid-template-columns: 1fr; gap: var(--space-md); } }

.blog-index .pagination, .blog-index .nav-links { margin-top: var(--space-2xl); display: flex; gap: var(--space-sm); }

/* Post byline, author box, related */
.article-byline { font-size: 0.8125rem; color: var(--color-text-muted); margin: calc(-1 * var(--space-md)) 0 var(--space-xl); display: flex; gap: 8px; flex-wrap: wrap; }
.author-box { background: var(--grey-50); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.author-box__name { font-weight: 600; color: var(--grey-800); margin-bottom: 4px; }
.author-box__bio { font-size: 0.875rem; line-height: 1.65; color: var(--grey-600); }
.related-posts { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); margin-top: var(--space-2xl); border-top: 1px solid var(--color-border); }
.related-posts__title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--grey-800); margin-bottom: var(--space-lg); }

/* Text blocks: slightly larger reading size for long posts */
.single-article .prose { font-size: 1rem; }
.single-article .prose h2 { font-size: 1.5rem; }

/* In short box */
.fc-key-points { background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: var(--space-lg) var(--space-xl); }
.fc-key-points__title { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: var(--space-sm); }
.fc-key-points__body ul { margin: 0; }
.fc-key-points__body li { margin-bottom: 0.35em; }

/* Course cards */
.fc-course-cards__heading { font-family: var(--font-serif); font-size: 1.25rem; color: var(--grey-800); margin-bottom: var(--space-md); }
.fc-course-cards__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.fc-course-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: box-shadow var(--transition), transform var(--transition); }
.fc-course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fc-course-card__image { aspect-ratio: 5 / 2; background: linear-gradient(135deg, var(--green-50), var(--green-100)); display: flex; align-items: center; justify-content: center; color: var(--green-400); }
.fc-course-card__image img { width: 100%; height: 100%; object-fit: cover; }
.fc-course-card__image svg { width: 24px; height: 24px; opacity: .6; }
.fc-course-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: 4px; }
.fc-course-card__title { font-family: var(--font-serif); font-weight: 600; color: var(--grey-800); line-height: 1.3; }
.fc-course-card__meta { font-size: 0.8rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; }
.fc-course-card__meta svg { width: 13px; height: 13px; }
.fc-course-card__link { font-size: 0.8rem; font-weight: 500; color: var(--green-600); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.fc-course-card__link svg { width: 14px; height: 14px; }

/* Advert slot */
.fc-ad { text-align: center; padding: var(--space-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.fc-ad__label { display: block; font-size: 0.625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: var(--space-sm); }
.fc-ad__slot { display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.fc-ad--banner .fc-ad__slot { max-width: 728px; min-height: 100px; }
.fc-ad--in-article .fc-ad__slot { max-width: 728px; min-height: 100px; }
.fc-ad--box .fc-ad__slot { width: 300px; max-width: 100%; min-height: 250px; }
@media (min-width: 769px) {
    .fc-ad--banner .fc-ad__slot { min-height: 90px; }
}
.fc-ad__slot:not(.fc-ad__slot--pair) > ins { width: 100%; }
/* Full-width strip: one or two fixed 336 × 280 units, created by ukgcgAdPair() at render time */
.fc-ad__slot--pair { flex-wrap: wrap; gap: 24px; min-height: 280px; }
.fc-ad__slot--pair > * { flex: none; }
.fc-ad__ph { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--grey-50), var(--grey-50) 10px, var(--grey-100) 10px, var(--grey-100) 20px); border: 1px dashed var(--grey-300); border-radius: var(--radius-md); font-size: 0.8rem; color: var(--grey-500); }
/* Google had nothing to show: drop that unit (the other stays centred); when none is filled, hide the slot, label and all */
.fc-ad__slot--pair > ins[data-ad-status="unfilled"] { display: none !important; } /* beats the unit's inline display:inline-block */
.fc-ad:has(ins[data-ad-status="unfilled"]):not(:has(ins:not([data-ad-status="unfilled"]))),
.fc-ad--empty { display: none; }

/* Where ukgcg_ad_slot() puts them */
.ad-band .fc-ad { margin: var(--space-xl) 0 0; }
.fc-ad--course { margin: calc(-1 * var(--space-2xl) + var(--space-md)) 0 var(--space-2xl); border-top: 0; padding-top: 0; } /* the section above already draws the rule */
.fc-ad--post { margin-bottom: var(--space-xl); }
.fc-ad--page { margin-top: var(--space-2xl); }
.fc-ad--index { margin: var(--space-lg) 0 0; }
.fc-ad--list,
.fc-ad--grid { grid-column: 1 / -1; padding: var(--space-sm) 0; }
.fc-ad--blog { margin-top: var(--space-xl); }
.fc-ad--sidebar { border: 0; padding: 0; }
@media (max-width: 900px) {
    .fc-ad--sidebar { display: none; }
}
.fc-ad__slot--placeholder { background: repeating-linear-gradient(45deg, var(--grey-50), var(--grey-50) 10px, var(--grey-100) 10px, var(--grey-100) 20px); border: 1px dashed var(--grey-300); border-radius: var(--radius-md); font-size: 0.8rem; color: var(--grey-500); }

/* Sources */
.fc-sources { border-top: 1px solid var(--color-border); padding-top: var(--space-lg); }
.fc-sources__title { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); margin-bottom: var(--space-sm); }
.fc-sources__body { font-size: 0.8125rem; line-height: 1.6; color: var(--grey-500); }
.fc-sources__body ul { padding-left: 1.2em; }
.fc-sources__body li { list-style: disc; margin-bottom: 0.3em; }

/* Header photo credit (blog posts) */
.article-credit { font-size: .75rem; color: var(--color-text-light); margin-bottom: var(--space-lg); }
.article-credit a { color: inherit; text-decoration: underline; }
