/* =============================================================
   SGLN BPP — Main Stylesheet (v1.1.0)
   South Gippsland Biodiversity Protection Plan
   Brand: BPP Style Guide (Naina Indira Design, October 2024)
   Fonts (web alternatives named in the style guide):
     EB Garamond — headings and body (Garamond Premier Pro)
     Jost        — tracked capitals and UI (Futura)
     Caveat      — occasional accent words (Rollerscript)
   ============================================================= */

/* ---------- Custom Properties ---------- */
:root {
    /* Primary palette */
    --emerald:        #1d635d;
    --emerald-dark:   #153c27;
    --fern:           #618054;
    --ocean-dark:     #003a53;
    --ocean-light:    #457694;
    --gold:           #ad8405;
    --gold-pale:      #d9b75e;

    /* Secondary palette */
    --aqua:           #769d9f;
    --orchid:         #805b6c;
    --terracotta:     #ad6751;

    /* Neutral palette */
    --clay:           #8e7b65;
    --rock:           #4f4f51;
    --soil:           #5c4a43;
    --sand:           #cbb396;
    --sand-light:     #f3efe7;

    /* Tints (style guide: "% tints of any of the brand colours can be used") */
    --ocean-tint:     #e8eff3;
    --ocean-tint-2:   #d3e0e8;
    --rule:           #9fb4c2;

    /* Utility */
    --bg:             #f7f4ee;
    --white:          #ffffff;
    --text:           #2a2a2a;
    --text-muted:     #555555;

    /* Spacing & layout */
    --radius-card:    10px;
    --radius-image:   0 56px 0 0;   /* the style guide's curved corner */
    --shadow:         0 2px 16px rgba(0, 30, 45, 0.08);
    --shadow-hover:   0 8px 30px rgba(0, 30, 45, 0.14);
    --transition:     0.22s ease;
    --max-width:      1280px;
    --gutter:         clamp(1rem, 4vw, 3rem);

    --font-serif:     'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:      'Jost', 'Futura', 'Century Gothic', Arial, sans-serif;
    --font-accent:    'Caveat', 'Segoe Script', cursive;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.0625rem;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: 2px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed !important;
    top: 8px; left: 8px;
    width: auto; height: auto;
    clip: auto;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--white);
    color: var(--ocean-dark);
    font-family: var(--font-sans);
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
}

.bpp-svg { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--mid    { max-width: 980px; }
.container--wide   { max-width: 1160px; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.admin-bar .site-header { top: 32px; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem var(--gutter);
}

/* Wordmark: the plan's title set in the brand serif, as on the plan cover (no logo) */
.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 48px;
    color: var(--emerald);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-line {
    font-family: var(--font-serif);
    font-size: 1.24rem;
    font-weight: 500;
    letter-spacing: 0.005em;
}

/* Nav */
.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-menu li { position: relative; }
.nav-menu a {
    display: block;
    padding: 0.45rem 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    white-space: nowrap;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover { color: var(--emerald); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_parent > a { color: var(--emerald); }

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 330px;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0, 30, 45, 0.14);
    z-index: 300;
    padding: 0.5rem 0;
    border-top: 3px solid var(--ocean-light);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: normal;
    line-height: 1.35;
}
.nav-menu .sub-menu a:hover { background: var(--ocean-tint); }
.nav-menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.65em;
    opacity: 0.6;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: var(--gold-pale);
    color: var(--ocean-dark);
    border-radius: 4px;
    white-space: nowrap;
    transition: background var(--transition);
}
.header-cta:hover { background: #cfa94a; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
    border-radius: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ocean-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================
   BUTTONS
   ============================================================= */
.btn-solid,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.3;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
}
.btn-solid:hover,
.btn-outline:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 0.95rem; }
.btn-meta { opacity: 0.8; font-weight: 400; }

.btn-solid--gold          { background: var(--gold-pale); color: var(--ocean-dark); }
.btn-solid--gold:hover    { background: #cfa94a; }
.btn-solid--emerald       { background: var(--emerald); color: var(--white); }
.btn-solid--emerald:hover { background: var(--emerald-dark); }
.btn-solid--ocean         { background: var(--ocean-dark); color: var(--white); }
.btn-solid--ocean:hover   { background: #002438; }

.btn-outline { border: 1.5px solid currentColor; padding: 0.68rem 1.45rem; }
.btn-outline.btn-lg { padding: 0.83rem 1.65rem; }
.btn-outline--white        { color: var(--white); }
.btn-outline--white:hover  { background: rgba(255, 255, 255, 0.14); }
.btn-outline--ocean        { color: var(--ocean-dark); }
.btn-outline--ocean:hover  { background: var(--ocean-dark); color: var(--white); }

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity var(--transition), gap var(--transition);
}
.btn-text:hover { gap: 0.55rem; }
.btn-text--emerald { color: var(--emerald); }

/* =============================================================
   SECTION COMMON
   ============================================================= */
.section-label,
.page-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 0.6rem;
}
.section-label--light { color: var(--sand); }

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.18;
    color: var(--ocean-dark);
    margin-bottom: 1rem;
}
.section-heading--light { color: var(--white); }

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 660px;
    line-height: 1.7;
}
.section-description--light { color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; line-height: 1.7; }

.section-header { margin-bottom: 2.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-description { margin: 0 auto; }
.section-header--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header--split .section-heading { margin-bottom: 0; }

.section-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald);
}
.section-viewall:hover { text-decoration: underline; text-underline-offset: 3px; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* =============================================================
   HERO
   ============================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 62vw, 680px);
    display: flex;
    background: var(--ocean-dark);
}
.hero-image-wrap { position: absolute; inset: 0; }
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0, 30, 28, 0.78) 0%, rgba(0, 58, 83, 0.5) 55%, rgba(0, 58, 83, 0.15) 100%),
        linear-gradient(to top, rgba(0, 20, 30, 0.45), transparent 45%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: end;
}

.hero-text-block { color: var(--white); max-width: 640px; }
.hero-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 0.9rem;
}
.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.4vw, 3.9rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.1rem;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.9rem;
    max-width: 540px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* =============================================================
   E-NEWSLETTER SIGN-UP
   ============================================================= */
.enews {
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.5rem;
}
.enews--hero {
    background: rgba(0, 32, 44, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.enews--light {
    background: var(--ocean-tint);
    color: var(--text);
    margin: 1.5rem 0;
}
.enews-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.enews--hero .enews-title { color: var(--sand); }
.enews--light .enews-title { color: var(--emerald); }
.enews-text { font-size: 1rem; line-height: 1.5; margin-bottom: 0.9rem; }
.enews--hero .enews-text { color: rgba(255, 255, 255, 0.88); }
.entry-content .enews p { margin-bottom: 0.6rem; }
.enews-row { display: flex; gap: 0.5rem; }
.enews-row input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid rgba(0, 58, 83, 0.25);
    border-radius: 4px;
}
.enews-row input[type="email"]:focus { outline: 3px solid var(--gold-pale); outline-offset: 1px; border-color: var(--ocean-light); }
.enews-btn {
    padding: 0.72rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 0;
    border-radius: 4px;
    background: var(--gold-pale);
    color: var(--ocean-dark);
    transition: background var(--transition);
}
.enews-btn:hover { background: #cfa94a; }
.enews--light .enews-btn { background: var(--ocean-dark); color: var(--white); }
.enews--light .enews-btn:hover { background: #002438; }
.enews-msg { font-family: var(--font-sans); font-size: 0.92rem; margin-bottom: 0.6rem; }
.enews-msg--ok { font-size: 1.05rem; }
.enews--hero .enews-msg--err { color: #ffd9cf; }
.enews--light .enews-msg--err { color: #9b3a24; }
.enews-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   INTRO / ABOUT
   ============================================================= */
.intro-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.intro-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.intro-text p { margin-bottom: 1rem; }
.intro-text .btn-text { margin-top: 0.5rem; }

.vision-quote {
    margin: 1.6rem 0 1.4rem;
    padding: 1.1rem 0 1.1rem 1.4rem;
    border-left: 3px solid var(--gold-pale);
}
.vision-quote p {
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--ocean-light);
    margin: 0;
}
.intro-text .vision-quote p { margin: 0; }
.vision-quote .vision-label {
    font-family: var(--font-accent);
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.intro-image-wrap { position: relative; }
.intro-image-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-image);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--fern);
}
.intro-image { width: 100%; height: 100%; object-fit: cover; }
.intro-watermark {
    position: absolute;
    right: -2.5rem;
    bottom: -3rem;
    width: 150px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* =============================================================
   AT A GLANCE
   ============================================================= */
.glance-section { background: var(--ocean-tint); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.glance-item { display: flex; flex-direction: column; gap: 0.35rem; }
.glance-num {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    color: var(--ocean-dark);
}
.glance-label { font-size: 1rem; line-height: 1.45; color: var(--rock); max-width: 250px; }
.glance-source {
    margin-top: 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* =============================================================
   VIDEO
   ============================================================= */
.video-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--white); }
.video-frame { margin: 0; }
.video-ratio {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0 40px 0 0;
    overflow: hidden;
    background: var(--ocean-dark);
    box-shadow: var(--shadow);
}
.video-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame figcaption {
    margin-top: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* =============================================================
   NINE STRATEGIC DIRECTIONS (home + The Plan page)
   ============================================================= */
.sd-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--sand-light); }
.sd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    list-style: none;
    counter-reset: none;
}
/* On The Plan page the grid sits inside .entry-content, whose list and link rules would add
   a second set of numbers, item spacing and underlined emerald card text. */
.entry-content .sd-grid { margin: 1.5rem 0 2rem; list-style: none; }
.entry-content .sd-card { margin: 0; }
.entry-content .sd-card a { color: var(--text); text-decoration: none; }
.sd-card a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem 1.4rem 1.2rem 4.4rem;
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid rgba(0, 58, 83, 0.08);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.sd-card a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: rgba(69, 118, 148, 0.4); }
.sd-card-num {
    position: absolute;
    left: 1.2rem;
    top: 1.1rem;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ocean-light);
}
.sd-card-title {
    font-family: var(--font-serif);
    font-size: 1.14rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ocean-dark);
    margin-bottom: 0.8rem;
}
.sd-card-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--emerald);
}

/* =============================================================
   LANDSCAPE ZONES (home + Landscapes page)
   ============================================================= */
.landscapes-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--white); }
.landscapes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
}
.entry-content .landscapes-grid { margin: 1.5rem 0 2rem; }
.landscape-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.1rem 1.4rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 5px solid var(--ls-tint, var(--sand));
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}
.entry-content a.landscape-card { color: var(--text); text-decoration: none; }
.landscape-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.landscape-map-icon { width: 120px; height: 120px; margin: 0 auto 0.9rem; }
.entry-content .landscape-map-icon { margin: 0 auto 0.9rem; border-radius: 0; }
.landscape-name {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ls-ink, var(--ocean-dark));
    margin-bottom: 0.6rem;
}
.entry-content .landscape-name { margin-top: 0; font-size: 1.28rem; color: var(--ls-ink, var(--ocean-dark)); }
.landscape-fact { font-size: 0.93rem; line-height: 1.45; color: var(--rock); margin-bottom: 0.25rem; }
.entry-content .landscape-fact { margin-bottom: 0.25rem; }
.landscape-fact strong { font-weight: 600; color: var(--text); }

/* =============================================================
   BIODIVERSITY ICONS (style guide icons, as supplied)
   ============================================================= */
.biodiversity-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--ocean-tint); }
.bio-icons-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1rem;
}
.entry-content .bio-icons-grid { margin: 1.5rem 0 2rem; }
.bio-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
    color: var(--ocean-dark);
    text-decoration: none;
    transition: transform var(--transition);
}
.entry-content a.bio-icon-item { color: var(--ocean-dark); text-decoration: none; }
.bio-icon-item:hover { transform: translateY(-3px); }
.bio-icon {
    width: 84px;
    max-width: 100%;
    height: auto;          /* height follows width, so the icons stay square when a narrow grid column limits the width */
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform var(--transition);
}
.entry-content .bio-icon { margin: 0; border-radius: 0; }
.bio-icon-item:hover .bio-icon { transform: scale(1.05); }
.bio-icon-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

/* =============================================================
   HOW THE PLAN WAS DEVELOPED + PARTNERS
   ============================================================= */
.developed-section { padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem); background: var(--white); }
.developed-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.developed-figure { margin: 0; }
.developed-figure img,
.bpp-figure img {
    width: 100%;
    border-radius: var(--radius-image);
    box-shadow: var(--shadow);
}
.developed-figure figcaption,
.bpp-figure figcaption,
.entry-content figcaption {
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.developed-text p { margin-bottom: 1rem; }

.stage-list {
    list-style: none;
    counter-reset: stage;
    margin: 1.4rem 0 1.6rem;
    padding: 0;
}
.entry-content .stage-list { margin-left: 0; list-style: none; }
.stage-list li {
    counter-increment: stage;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 0.9rem;
    line-height: 1.55;
}
.stage-list li::before {
    content: counter(stage);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ocean-light);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stage-list strong { color: var(--ocean-dark); font-weight: 600; }

.partners { margin-top: clamp(3rem, 6vw, 4.5rem); }
.partners-heading {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--emerald);
    margin-bottom: 1.2rem;
}
.partners-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-track {
    display: flex;
    width: max-content;
    list-style: none;
    animation: bpp-marquee 70s linear infinite;
}
.partners-track-wrap:hover .partners-track,
.partners-track-wrap:focus-within .partners-track { animation-play-state: paused; }
.partner { padding-right: 0.8rem; }
.partner span {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(0, 58, 83, 0.18);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--ocean-dark);
    white-space: nowrap;
}
.partner img { height: 56px; width: auto; }
.partners-note {
    margin-top: 1.3rem;
    text-align: center;
    font-size: 0.98rem;
    font-style: italic;
    color: var(--text-muted);
}
@keyframes bpp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================================
   READ / DOWNLOAD THE PLAN
   ============================================================= */
.plan-feature-section {
    position: relative;
    overflow: hidden;
    background: var(--ocean-dark);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.plan-feature-section::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 360px;
    height: 360px;
    background: url('../img/wm-kookaburra.webp') no-repeat center / contain;
    opacity: 0.16;
    pointer-events: none;
}
.plan-feature-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.plan-feature-cover img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition);
}
.plan-feature-cover a:hover img { transform: translateY(-4px) rotate(-0.5deg); }
.plan-feature-text { color: var(--white); max-width: 620px; }
.plan-feature-text .section-description--light { margin-bottom: 2rem; }
.plan-feature-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* =============================================================
   BIOLINKS MAP (home): a still picture of the map + a link to its page
   ============================================================= */
.biolinks-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--emerald-dark); }
.biolinks-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.biolinks-text { color: var(--white); max-width: 560px; }
.biolinks-text .section-description--light { margin-bottom: 2rem; }
.biolinks-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }   /* brochure above the map button */
.biolinks-preview { display: block; }
.biolinks-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-image);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition);
}
.biolinks-preview:hover img { transform: translateY(-4px); }
@media (max-width: 960px) {
    .biolinks-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .biolinks-actions { flex-direction: column; align-items: stretch; }
    .biolinks-actions a { justify-content: center; }
}

/* =============================================================
   GET INVOLVED
   ============================================================= */
.involved-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--fern); }
.involved-inner {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.involved-text .section-description--light { margin: 0.5rem 0 1.6rem; }
.involved-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.involved-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.4rem 1.3rem;
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
}
.involved-card:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }
.involved-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.involved-card p { font-size: 0.98rem; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }

/* =============================================================
   NEWS
   ============================================================= */
.news-section { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--sand-light); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.news-card-image-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-light); }
.news-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card-image--placeholder { object-fit: contain; padding: 1rem; opacity: 0.9; }
.news-card:hover .news-card-image { transform: scale(1.04); }
.news-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.news-card-date {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--clay);
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}
.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ocean-dark);
    margin-bottom: 0.45rem;
}
.news-card-title a:hover { color: var(--emerald); }
.news-card-excerpt { font-size: 0.98rem; color: var(--text-muted); line-height: 1.6; }
.news-events-note {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
}
.news-events-note a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   PAGE HERO & TITLE BARS
   ============================================================= */
.page-hero {
    position: relative;
    height: clamp(240px, 32vw, 420px);
    overflow: hidden;
    background: var(--ocean-dark);
}
.page-hero-image-wrap { position: absolute; inset: 0; }
.page-hero-image-wrap figure { width: 100%; height: 100%; margin: 0; }
.page-hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 30, 20, 0.05) 30%, rgba(0, 25, 35, 0.6) 100%);
    z-index: 1;
}
.page-hero--group::after { background: linear-gradient(to bottom, transparent 60%, rgba(0, 25, 35, 0.25)); }
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
}
.page-hero .page-eyebrow a,
.page-title-bar .page-eyebrow a { color: inherit; }
.page-hero .page-eyebrow,
.page-title-bar .page-eyebrow { color: var(--sand); }
.page-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-title-bar {
    position: relative;
    overflow: hidden;
    background: var(--ocean-dark);
    padding: clamp(2.2rem, 5vw, 3.6rem) 0;
    color: var(--white);
}
.page-title-bar::after {
    content: '';
    position: absolute;
    right: clamp(-80px, -4vw, -20px);
    top: -30px;
    width: 260px;
    height: 260px;
    background: url('../img/wm-fern.webp') no-repeat center / contain;
    opacity: 0.28;
    pointer-events: none;
}
.page-title-bar .container { position: relative; z-index: 1; }
.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.18;
    max-width: 900px;
}
.page-title-sub { margin-top: 0.6rem; font-size: 1.12rem; color: rgba(255, 255, 255, 0.86); max-width: 680px; }

.page-title-bar--sd { background: var(--ocean-light); }
.page-title-bar--sd .page-eyebrow { color: rgba(255, 255, 255, 0.9); }
.page-title-bar--sd .page-eyebrow span { margin: 0 0.35rem; opacity: 0.7; }
.sd-title-num {
    display: inline-block;
    margin-right: 0.2em;
    color: var(--gold-pale);
}

.page-title-bar--group { background: var(--ocean-tint); color: var(--text); }
.page-title-bar--group::after { opacity: 0.5; }
.page-title-bar--group .page-title { color: var(--ocean-dark); }
.page-title-bar--group .page-eyebrow { color: var(--emerald); }
.group-head { display: flex; align-items: center; gap: 1.2rem; }
.group-icon { width: 96px; height: 96px; flex-shrink: 0; }

.page-title-bar--post .post-date {
    margin-top: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand);
}

/* =============================================================
   PAGE / POST CONTENT
   ============================================================= */
.page-content-wrap { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.page-content-wrap--tight { padding-top: 1.5rem; }

.entry-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
}
.entry-content > * + * { margin-top: 0; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
}
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); color: var(--ocean-light); }
.entry-content h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); color: var(--ocean-dark); }
.entry-content h4 { font-size: 1.15rem; color: var(--ocean-dark); }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.3rem 1.4rem; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--emerald-dark); }
.entry-content a.btn-solid,
.entry-content a.btn-outline { text-decoration: none; }
.entry-content a.btn-solid--gold { color: var(--ocean-dark); }
.entry-content a.btn-solid--ocean,
.entry-content a.btn-solid--emerald { color: var(--white); }
.entry-content a.btn-outline--ocean { color: var(--ocean-dark); }
.entry-content a.btn-outline--ocean:hover { color: var(--white); }
.entry-content strong { font-weight: 600; }

.entry-content blockquote {
    border-left: 3px solid var(--gold-pale);
    padding: 0.6rem 0 0.6rem 1.4rem;
    margin: 1.6rem 0;
    font-style: italic;
    font-size: 1.22rem;
    color: var(--ocean-light);
}
.entry-content blockquote p { margin-bottom: 0.3rem; }

.entry-content img { border-radius: var(--radius-image); }
.entry-content figure { margin: 1.8rem 0; }
.entry-content .wp-block-image img { width: 100%; height: auto; }
.entry-content .bpp-figure.bpp-figure--portrait { max-width: 420px; }
.entry-content .bpp-figure--map img { border-radius: 4px; box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.08); }

.entry-content .bpp-lead { font-size: 1.25rem; line-height: 1.6; color: var(--ocean-dark); }
.entry-content .bpp-accent {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--ocean-light);
    text-align: center;
    max-width: 560px;
    margin: 1.6rem auto;
}
.entry-content .bpp-source {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.entry-content .bpp-note {
    padding: 1rem 1.2rem;
    background: var(--sand-light);
    border-left: 3px solid var(--sand);
    font-size: 1rem;
}

/* generic tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}
.entry-content th {
    font-family: var(--font-serif);
    font-weight: 600;
    background: var(--ocean-light);
    color: var(--white);
    padding: 0.7rem 1rem;
    text-align: left;
}
.entry-content td { padding: 0.65rem 1rem; border-bottom: 1px dotted var(--rule); vertical-align: top; }

/* Download call-out (The Plan page) */
.bpp-callout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.6rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--ocean-tint);
    border-radius: var(--radius-card);
}
.entry-content .bpp-callout img { border-radius: 3px; box-shadow: 0 8px 22px rgba(0, 30, 45, 0.25); margin: 0; }
.bpp-callout h3 { margin-top: 0 !important; }
.bpp-callout p { margin-bottom: 0.9rem; font-size: 1.02rem; }
.bpp-callout-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Partner list (The Plan page) */
.entry-content .partner-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    columns: 2;
    column-gap: 2rem;
}
.entry-content .partner-list li {
    break-inside: avoid;
    padding: 0.45rem 0 0.45rem 1.4rem;
    margin: 0;
    border-bottom: 1px dotted var(--rule);
    position: relative;
}
.entry-content .partner-list li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 1rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--gold-pale);
}

/* Stats row (biodiversity group pages) */
.bpp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}
.entry-content .bpp-stats { margin-left: 0; list-style: none; }
.bpp-stats li {
    margin: 0;
    padding: 1.1rem 1.2rem;
    background: var(--ocean-tint);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.bpp-stats .stat-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ocean-dark);
}
.bpp-stats .stat-label { font-size: 0.95rem; line-height: 1.4; color: var(--rock); }

/* "In the plan" panel (biodiversity group pages) */
.bpp-inplan {
    margin: 2.4rem 0 1rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--ocean-tint-2);
    background: var(--white);
}
.entry-content .bpp-inplan h2 { margin-top: 0; font-size: 1.4rem; }
.bpp-inplan p:last-child { margin-bottom: 0; }

/* =============================================================
   STRATEGIC DIRECTION TABLES (objective / action / measure)
   ============================================================= */
.entry-content--sd > p,
.entry-content--sd > h2,
.entry-content--sd > h3,
.entry-content--sd > ul { max-width: 780px; }
.entry-content--sd .bpp-figure { max-width: 780px; }

.bpp-sd-table-wrap { margin: 2.2rem 0 1rem; }
.entry-content .bpp-sd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.bpp-sd-table caption {
    caption-side: bottom;
    text-align: left;
    padding-top: 0.7rem;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.bpp-sd-table thead th {
    background: var(--ocean-light);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    text-align: left;
    border: 0;
}
.bpp-sd-table col.col-objective { width: 23%; }
.bpp-sd-table col.col-action    { width: 44%; }
.bpp-sd-table col.col-measure   { width: 33%; }
.bpp-sd-table td,
.bpp-sd-table th[scope="rowgroup"] {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border: 0;
    border-top: 1px dotted var(--rule);
    text-align: left;
}
.bpp-sd-table tbody tr:first-child > * { border-top: 1px dotted #6f8fa3; }
.bpp-sd-table th[scope="rowgroup"] {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ocean-dark);
    background: transparent;
}
.bpp-sd-table tbody:nth-of-type(odd) td,
.bpp-sd-table tbody:nth-of-type(odd) th { background: var(--ocean-tint); }
.bpp-sd-table tbody:nth-of-type(even) td,
.bpp-sd-table tbody:nth-of-type(even) th { background: var(--white); }
.bpp-sd-table td ul { margin: 0.4rem 0 0 1.2rem; }
.bpp-sd-table td li { margin-bottom: 0.15rem; }
.bpp-sd-table .is-empty::after { content: '\2014'; color: var(--rule); }
.entry-content .bpp-footnote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 900px;
}

/* =============================================================
   LANDSCAPE PAGES
   ============================================================= */
.page-main--landscape { --ls-tint: var(--sand); --ls-ink: var(--ocean-dark); }
.ls-photo {
    height: clamp(220px, 30vw, 400px);
    overflow: hidden;
    background: var(--ls-tint);
}
.ls-photo img,
.ls-photo figure { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.ls-head { padding: clamp(2rem, 5vw, 3.2rem) 0 0; }
.ls-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.page-eyebrow--dark { color: var(--emerald); }
.page-eyebrow--dark a:hover { text-decoration: underline; }
.ls-title {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.02;
    color: var(--ls-ink);
}
.ls-icon { width: clamp(96px, 13vw, 150px); height: auto; flex-shrink: 0; }
.ls-band {
    background: var(--ls-tint);
    color: #1f1f20;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
}

.entry-content--landscape .bpp-figure--map { margin: 1.5rem 0 2rem; }
.entry-content--landscape .bpp-figure--map img { max-width: 900px; margin: 0 auto; }
.entry-content--landscape .bpp-figure--map figcaption { text-align: center; }

.entry-content .bpp-ls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2rem;
    font-size: 1.02rem;
    line-height: 1.55;
}
.bpp-ls-table th,
.bpp-ls-table td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    text-align: left;
    border: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
}
.bpp-ls-table tr:first-child th,
.bpp-ls-table tr:first-child td { border-top: 1px dotted rgba(0, 0, 0, 0.35); }
.bpp-ls-table th {
    width: 24%;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f1f20;
    background: #efe9d6;
    background: color-mix(in srgb, var(--ls-tint) 42%, white);
}
.bpp-ls-table td {
    color: var(--text);
    background: #f7f4ea;
    background: color-mix(in srgb, var(--ls-tint) 14%, white);
}
.bpp-ls-table td p { margin: 0 0 0.6rem; }
.bpp-ls-table td p:last-child { margin-bottom: 0; }
.bpp-ls-table td ul { margin: 0 0 0 1.1rem; }
.bpp-ls-table td li { margin-bottom: 0.2rem; }

.ls-others { padding: 1rem 0 clamp(3rem, 6vw, 4.5rem); }
.ls-others-heading {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 1rem;
}
.ls-others-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.ls-others-list a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-card);
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.25;
    color: var(--ls-ink);
    transition: box-shadow var(--transition), transform var(--transition);
}
.ls-others-list a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ls-others-list img { width: 56px; height: 56px; flex-shrink: 0; }

/* =============================================================
   BIODIVERSITY GROUP PAGES
   ============================================================= */
.group-others { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.group-others-list {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ocean-tint-2);
}
.group-others-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ocean-dark);
    opacity: 0.8;
    transition: opacity var(--transition), transform var(--transition);
}
.group-others-list a:hover { opacity: 1; transform: translateY(-2px); }
.group-others-list img { width: 56px; height: 56px; }
.group-others-list .is-current a { opacity: 1; }
.group-others-list .is-current span { border-bottom: 2px solid var(--gold-pale); }

/* =============================================================
   STRATEGIC DIRECTION PAGE FURNITURE
   ============================================================= */
.sd-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 2.5rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--sand-light);
    border-radius: var(--radius-card);
}
.sd-download p { font-size: 1rem; color: var(--rock); max-width: 620px; }

.sd-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.sd-pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ocean-tint-2);
    border-radius: var(--radius-card);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.sd-pager-link:hover { box-shadow: var(--shadow); border-color: var(--ocean-light); }
.sd-pager-link--next { text-align: right; }
.sd-pager-label {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
}
.sd-pager-title { font-size: 1.05rem; line-height: 1.35; color: var(--ocean-dark); }
.sd-all { margin-top: 1.4rem; text-align: center; font-family: var(--font-sans); font-size: 0.9rem; }
.sd-all a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   BIOLINKS MAP PAGE (template-parts/page-map.php)
   ============================================================= */
.page-title-bar--map { padding-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.map-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}
.map-title-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.map-open-btn { flex-shrink: 0; }
.map-intro { padding-top: clamp(1.4rem, 3vw, 2rem); padding-bottom: clamp(1.2rem, 2.5vw, 1.6rem); }
.map-intro-text {
    max-width: 54rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ocean-dark);
}
.map-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.2rem;
    color: var(--emerald);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.map-intro-link:hover { color: var(--emerald-dark); }
.map-embed {
    width: 100%;
    height: min(82vh, 860px);
    min-height: 560px;
    background: var(--ocean-tint);
    border-bottom: 1px solid var(--ocean-tint-2);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-embed-note { margin-top: 0.8rem; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-muted); }
.map-embed-note a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
    /* A shorter map leaves page above and below it to scroll with, since dragging on the map pans it. */
    .map-embed { height: 68vh; min-height: 420px; }
    .map-title-actions { width: 100%; }
    .map-open-btn { width: 100%; justify-content: center; }
}

/* =============================================================
   SINGLE POST / ARCHIVE
   ============================================================= */
.post-feature { margin: 0 0 2rem; }
/* Posts use the wide container (as the landscape pages do); running text keeps a readable
   measure while images, video, embeds and tables use the full width. */
.post-content > :where(p, ul, ol, h2, h3, h4, h5, blockquote) { max-width: 54rem; }
.post-feature img { width: 100%; border-radius: var(--radius-image); box-shadow: var(--shadow); }
.post-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.post-navigation a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald);
}
.post-back { margin-top: 1.5rem; font-family: var(--font-sans); font-size: 0.9rem; }
.post-back a { color: var(--emerald); }

.archive-body { padding: clamp(2.8rem, 6vw, 4.5rem) 0; background: var(--sand-light); }
.pagination,
.navigation.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--ocean-dark);
    box-shadow: var(--shadow);
}
.pagination .page-numbers.current { background: var(--ocean-dark); color: var(--white); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--ocean-dark);
    color: rgba(255, 255, 255, 0.88);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-watermark {
    position: absolute;
    right: -40px;
    bottom: 10px;
    width: 280px;
    height: 360px;
    background: url('../img/wm-lyrebird.webp') no-repeat center / contain;
    opacity: 0.12;
    pointer-events: none;
}
.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 1.1fr 1.3fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand { display: inline-block; margin-bottom: 1rem; }
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
}
.footer-tagline {
    font-size: 0.98rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.3rem;
    line-height: 1.55;
}
/* .site-footer prefix: must beat the .footer-col--* p rules below */
.site-footer .footer-heading {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1rem;
}
.footer-nav-menu { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav-menu a { font-size: 1rem; color: rgba(255, 255, 255, 0.85); transition: color var(--transition); }
.footer-nav-menu a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-col--contact p { font-size: 0.98rem; margin-bottom: 0.3rem; color: rgba(255, 255, 255, 0.85); }
.footer-col--contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer-col--contact a:hover { text-decoration-color: var(--white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-col--contact .social-icon { text-decoration: none; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transition: background var(--transition), color var(--transition);
}
.social-icon:hover { background: var(--gold-pale); color: var(--ocean-dark); }
.footer-col--acknowledgement p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); line-height: 1.6; margin-bottom: 0.7rem; }
.footer-bottom { position: relative; z-index: 1; background: rgba(0, 0, 0, 0.22); padding: 1rem 0; }
.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.02em;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--white); }

/* =============================================================
   MISC
   ============================================================= */
.no-content { color: var(--text-muted); font-style: italic; padding: 2rem 0; }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.bio-icons-grid .fade-in:nth-child(2) { transition-delay: 0.04s; }
.bio-icons-grid .fade-in:nth-child(3) { transition-delay: 0.08s; }
.bio-icons-grid .fade-in:nth-child(4) { transition-delay: 0.12s; }
.bio-icons-grid .fade-in:nth-child(5) { transition-delay: 0.16s; }
.bio-icons-grid .fade-in:nth-child(6) { transition-delay: 0.2s; }
.bio-icons-grid .fade-in:nth-child(7) { transition-delay: 0.24s; }
.bio-icons-grid .fade-in:nth-child(8) { transition-delay: 0.28s; }
.bio-icons-grid .fade-in:nth-child(9) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    .partners-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0; padding: 0 var(--gutter); }
    .partners-track-wrap { -webkit-mask-image: none; mask-image: none; }
    .partner[aria-hidden="true"] { display: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
    .landscapes-grid { grid-template-columns: repeat(3, 1fr); }
    .bio-icons-grid { grid-template-columns: repeat(5, 1fr); row-gap: 1.6rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .group-others-list { grid-template-columns: repeat(5, 1fr); row-gap: 1.2rem; }
}

/* Header collapses to the menu button (the wordmark, 7 top-level items and the button need about 1220px) */
@media (max-width: 1260px) {
    .nav-toggle { display: flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        background: var(--white);
        box-shadow: 0 10px 24px rgba(0, 30, 45, 0.14);
        padding: 0.8rem var(--gutter) 1.4rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .header-nav.is-open { display: flex; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu > li { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
    .nav-menu a { font-size: 1.02rem; padding: 0.75rem 0.2rem; white-space: normal; }
    .nav-menu .sub-menu,
    .nav-menu li:hover > .sub-menu,
    .nav-menu li:focus-within > .sub-menu { display: none; }
    .nav-menu .menu-item-has-children > a::after { content: none; }
    .header-cta { justify-content: center; padding: 0.8rem 1rem; font-size: 0.95rem; }
}

@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; align-items: start; }
    .hero-section { min-height: 0; }
    .hero-enews { max-width: 560px; }
    .intro-inner,
    .developed-inner,
    .involved-inner { grid-template-columns: 1fr; }
    .intro-image-wrap { max-width: 560px; }
    .intro-watermark { display: none; }
    .glance-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-feature-inner { grid-template-columns: 1fr; }
    .plan-feature-cover { max-width: 260px; }
    .ls-others-list { grid-template-columns: repeat(2, 1fr); }
}

/* Tables become stacked cards on small screens */
@media (max-width: 760px) {
    .bpp-sd-table,
    .bpp-sd-table tbody,
    .bpp-sd-table tr,
    .bpp-sd-table td,
    .bpp-sd-table th[scope="rowgroup"] { display: block; width: 100%; }
    .bpp-sd-table colgroup,
    .bpp-sd-table thead { display: none; }
    .bpp-sd-table caption {
        display: block;
        width: 100%;
        padding: 0 0 0.8rem;
        font-size: 0.95rem;
    }
    .bpp-sd-table tbody {
        margin-bottom: 1rem;
        border-radius: var(--radius-card);
        overflow: hidden;
        border: 1px solid var(--ocean-tint-2);
    }
    .bpp-sd-table tbody:nth-of-type(odd) td,
    .bpp-sd-table tbody:nth-of-type(odd) th,
    .bpp-sd-table tbody:nth-of-type(even) td,
    .bpp-sd-table tbody:nth-of-type(even) th { background: var(--white); }
    .bpp-sd-table th[scope="rowgroup"] {
        background: var(--ocean-light) !important;
        color: var(--white);
        border-top: 0 !important;
        font-size: 1.05rem;
    }
    .bpp-sd-table th[scope="rowgroup"]::before {
        content: 'Objective';
        display: block;
        font-family: var(--font-sans);
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        opacity: 0.85;
        margin-bottom: 0.15rem;
    }
    .bpp-sd-table tr + tr td:first-of-type,
    .bpp-sd-table th + td { border-top: 1px dotted var(--rule); }
    .bpp-sd-table td { border-top: 0; padding: 0.7rem 1rem; }
    .bpp-sd-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-sans);
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--emerald);
        margin-bottom: 0.15rem;
    }
    .bpp-sd-table td.col-measure { background: var(--ocean-tint) !important; }
    .bpp-sd-table td.is-empty { display: none; }

    .bpp-ls-table,
    .bpp-ls-table tbody,
    .bpp-ls-table tr,
    .bpp-ls-table th,
    .bpp-ls-table td { display: block; width: 100% !important; }
    .bpp-ls-table th { border-bottom: 0; padding-bottom: 0.5rem; }
    .bpp-ls-table tr:first-child td { border-top: 0; }

    .bpp-callout { grid-template-columns: 1fr; }
    .bpp-callout img { max-width: 140px; }
    .entry-content .partner-list { columns: 1; }
    .sd-pager { grid-template-columns: 1fr; }
    .sd-pager-link--next { text-align: left; }
}

@media (max-width: 680px) {
    .brand-line { font-size: 1.04rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { justify-content: center; }
    .enews-row { flex-direction: column; }
    .sd-grid,
    .news-grid,
    .involved-cards { grid-template-columns: 1fr; }
    .landscapes-grid { grid-template-columns: repeat(2, 1fr); }
    .bio-icons-grid { grid-template-columns: repeat(3, 1fr); }
    .group-others-list { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .plan-feature-actions { flex-direction: column; align-items: stretch; }
    .plan-feature-actions a { justify-content: center; }
    .section-header--split { align-items: flex-start; }
    .ls-head-inner { align-items: flex-start; }
    .group-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .group-icon { width: 72px; height: 72px; }
    .ls-others-list { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .landscapes-grid { grid-template-columns: 1fr; }
    .glance-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}
