:root {
    --fs-content-width: 1480px;
    --fs-reading-width: 820px;
    --fs-header-h: 82px;
    --fs-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fs-heading-font: var(--fs-body-font);
    --fs-bg: #f6faf9;
    --fs-surface: #ffffff;
    --fs-surface-raised: #ffffff;
    --fs-surface-soft: #edf7f4;
    --fs-surface-accent: #dff2ed;
    --fs-text: #203b39;
    --fs-text-soft: #607875;
    --fs-heading: #0b2d2b;
    --fs-brand: #08766f;
    --fs-brand-hover: #055f5a;
    --fs-brand-soft: #d9f2ed;
    --fs-aqua: #168f9c;
    --fs-border: rgba(16, 65, 61, .13);
    --fs-border-strong: rgba(16, 65, 61, .24);
    --fs-shadow-sm: 0 6px 24px rgba(16, 65, 61, .07);
    --fs-shadow: 0 22px 65px rgba(16, 65, 61, .12);
    --fs-focus: #d9a928;
    --fs-danger: #b42318;
    --fs-success: #087f5b;
    --fs-on-brand: #ffffff;
    --fs-radius-sm: 12px;
    --fs-radius: 20px;
    --fs-radius-lg: 32px;
    color-scheme: light;
}

html[data-fishspot-theme="dark"] {
    --fs-bg: #071615;
    --fs-surface: #0d2321;
    --fs-surface-raised: #112b28;
    --fs-surface-soft: #12312e;
    --fs-surface-accent: #173b37;
    --fs-text: #e9f4f2;
    --fs-text-soft: #a9c2be;
    --fs-heading: #ffffff;
    --fs-brand: #4cc7ba;
    --fs-brand-hover: #72d9cf;
    --fs-brand-soft: #173d39;
    --fs-aqua: #67ccd5;
    --fs-border: rgba(229, 247, 243, .13);
    --fs-border-strong: rgba(229, 247, 243, .25);
    --fs-shadow-sm: 0 8px 28px rgba(0, 0, 0, .24);
    --fs-shadow: 0 24px 70px rgba(0, 0, 0, .36);
    --fs-focus: #f0c75c;
    --fs-danger: #ff9b93;
    --fs-success: #6ed7b1;
    --fs-on-brand: #041716;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fs-bg); }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--fs-text);
    background: var(--fs-bg);
    font-family: var(--fs-body-font);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: color .2s ease, background-color .2s ease;
}
body.admin-bar { --fs-admin: 32px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
:where(.alignwide) { max-width: var(--fs-content-width) !important; }
:where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) { max-width: var(--fs-reading-width); }

body, p, li, dd, dt, label, input, select, textarea, button { color: var(--fs-text); }
h1, h2, h3, h4, h5, h6, .wp-block-post-title {
    color: var(--fs-heading);
    font-family: var(--fs-heading-font);
    letter-spacing: -.025em;
}
a { color: var(--fs-brand); text-underline-offset: .18em; }
a:hover { color: var(--fs-brand-hover); }
:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: 3px; }

/* Consistent, accessible button system for WordPress blocks and FishSpot controls. */
:where(.wp-element-button, .wp-block-button__link, button, input[type="button"], input[type="submit"], input[type="reset"], .button, .fishspot-button) {
    min-height: 44px;
    border: 1px solid var(--fs-border-strong);
    border-radius: 999px;
    padding: .76rem 1.2rem;
    color: var(--fs-text);
    background: var(--fs-surface);
    font: inherit;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
:where(.wp-element-button, .wp-block-button__link, input[type="submit"], .button-primary, .fishspot-button--primary) {
    color: var(--fs-on-brand) !important;
    background: var(--fs-brand) !important;
    border-color: var(--fs-brand) !important;
}
:where(.wp-element-button, .wp-block-button__link, input[type="submit"], .button-primary, .fishspot-button--primary):hover {
    color: var(--fs-on-brand) !important;
    background: var(--fs-brand-hover) !important;
    border-color: var(--fs-brand-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--fs-brand) 25%, transparent);
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline,
.fishspot-button--secondary {
    color: var(--fs-brand) !important;
    background: var(--fs-surface) !important;
    border-color: color-mix(in srgb, var(--fs-brand) 65%, var(--fs-border)) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.fishspot-button--secondary:hover {
    color: var(--fs-on-brand) !important;
    background: var(--fs-brand) !important;
    border-color: var(--fs-brand) !important;
}
.fishspot-button--light { color: #0a312e !important; background: #fff !important; border-color: #fff !important; }
.fishspot-button--light:hover { color: #fff !important; background: transparent !important; }
:where(button, input, .wp-element-button, .wp-block-button__link)[disabled],
:where(button, input, .wp-element-button, .wp-block-button__link)[aria-disabled="true"] { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }
.fishspot-button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
    max-width: 100%;
    min-height: 46px;
    border: 1px solid var(--fs-border-strong);
    border-radius: 13px;
    padding: .72rem .85rem;
    color: var(--fs-text);
    background: var(--fs-surface);
    font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--fs-text-soft); opacity: .82; }

/* Main header: native WordPress menu location + account + colour mode. */
.fishspot-header {
    position: sticky;
    top: var(--fs-admin, 0px);
    z-index: 1000;
    min-height: var(--fs-header-h);
    color: var(--fs-text);
    background: color-mix(in srgb, var(--fs-bg) 88%, transparent);
    border-bottom: 1px solid var(--fs-border);
    box-shadow: 0 8px 30px rgba(7, 43, 40, .06);
    backdrop-filter: blur(20px) saturate(145%);
}
.fishspot-header-row {
    display: flex;
    width: min(calc(100% - 40px), var(--fs-content-width));
    min-height: var(--fs-header-h);
    margin-inline: auto;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}
.fishspot-brand, .fishspot-site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    line-height: 0;
}
.fishspot-brand img, .fishspot-site-logo img {
    display: block;
    width: min(232px, 32vw);
    max-height: calc(var(--fs-header-h) - 24px);
    height: auto;
    object-fit: contain;
}
html[data-fishspot-theme="dark"] .fishspot-brand img,
html[data-fishspot-theme="dark"] .fishspot-site-logo img { filter: brightness(0) invert(1); }

.fishspot-primary-menu { position: relative; flex: 1 1 auto; min-width: 0; }
.fishspot-primary-menu__panel { display: flex; justify-content: center; }
.fishspot-primary-menu__list,
.fishspot-primary-menu__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.fishspot-primary-menu__list { display: flex; align-items: center; justify-content: center; gap: 4px; }
.fishspot-primary-menu__list > li { position: relative; }
.fishspot-primary-menu__list a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: .62rem .8rem;
    border-radius: 12px;
    color: var(--fs-text);
    font-size: .96rem;
    font-weight: 680;
    text-decoration: none;
    white-space: nowrap;
}
.fishspot-primary-menu__list a:hover,
.fishspot-primary-menu__list .current-menu-item > a,
.fishspot-primary-menu__list .current-menu-ancestor > a {
    color: var(--fs-brand);
    background: var(--fs-brand-soft);
}
.fishspot-primary-menu__list .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 1010;
    display: none;
    width: 240px;
    padding: 8px;
    color: var(--fs-text);
    background: var(--fs-surface-raised);
    border: 1px solid var(--fs-border);
    border-radius: 16px;
    box-shadow: var(--fs-shadow);
}
.fishspot-primary-menu__list .sub-menu .sub-menu { left: calc(100% + 8px); top: 0; }
.fishspot-primary-menu__list li:hover > .sub-menu,
.fishspot-primary-menu__list li:focus-within > .sub-menu { display: block; }
.fishspot-primary-menu__list .sub-menu a { min-height: 40px; white-space: normal; }
.fishspot-mobile-menu-toggle { display: none; width: 46px; min-width: 46px; padding: 0; place-items: center; }
.fishspot-menu-setup { display: inline-flex; padding: .55rem .8rem; border: 1px dashed var(--fs-border-strong); border-radius: 10px; font-size: .85rem; text-decoration: none; }

.fishspot-header-tools { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.fishspot-icon-button {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    width: 46px;
    min-height: 46px;
    padding: 0;
    color: var(--fs-text);
    background: var(--fs-surface);
    border-color: var(--fs-border);
    border-radius: 50%;
    box-shadow: var(--fs-shadow-sm);
}
.fishspot-icon-button:hover { color: var(--fs-brand); background: var(--fs-brand-soft); border-color: var(--fs-brand); }
.fishspot-account-menu { position: relative; }
.fishspot-account-trigger { display: flex; width: auto; border-radius: 999px; padding: 3px 7px 3px 3px; gap: 2px; }
.fishspot-nav-avatar { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--fs-brand-soft); }
.fishspot-nav-avatar--guest { display: grid; place-items: center; color: var(--fs-brand); }
.fishspot-nav-avatar--guest svg { width: 23px; height: 23px; }
.fishspot-chevron { display: inline-flex; }
.fishspot-chevron svg { width: 16px; height: 16px; }
.fishspot-account-trigger[aria-expanded="true"] .fishspot-chevron { transform: rotate(180deg); }
.fishspot-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 1100;
    width: min(330px, calc(100vw - 28px));
    padding: 9px;
    color: var(--fs-text);
    background: var(--fs-surface-raised);
    border: 1px solid var(--fs-border);
    border-radius: 18px;
    box-shadow: var(--fs-shadow);
}
.fishspot-account-dropdown[hidden] { display: none; }
.fishspot-account-dropdown__identity { display: grid; padding: 11px 12px 13px; border-bottom: 1px solid var(--fs-border); margin-bottom: 5px; }
.fishspot-account-dropdown__identity strong { color: var(--fs-heading); }
.fishspot-account-dropdown__identity span { color: var(--fs-text-soft); font-size: .84rem; overflow-wrap: anywhere; }
.fishspot-account-dropdown a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: var(--fs-text); text-decoration: none; }
.fishspot-account-dropdown a:hover { color: var(--fs-brand); background: var(--fs-brand-soft); }
.fishspot-account-dropdown a svg { flex: 0 0 21px; }
.fishspot-account-dropdown__separator { display: block; height: 1px; margin: 5px 8px; background: var(--fs-border); }
.fishspot-theme-toggle .fishspot-theme-icon { display: inline-flex; }
.fishspot-theme-toggle .fishspot-theme-icon--moon { display: none; }
html[data-fishspot-theme="dark"] .fishspot-theme-toggle .fishspot-theme-icon--sun { display: none; }
html[data-fishspot-theme="dark"] .fishspot-theme-toggle .fishspot-theme-icon--moon { display: inline-flex; }

/* Modern homepage. */
.fishspot-home-container { width: min(calc(100% - 40px), var(--fs-content-width)); margin-inline: auto; }
.fishspot-home-hero {
    position: relative;
    display: grid;
    min-height: min(760px, 86vh);
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: var(--fs-bg);
}
.fishspot-home-hero__image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}
.fishspot-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fs-bg) 99%, transparent) 0%, color-mix(in srgb, var(--fs-bg) 94%, transparent) 43%, color-mix(in srgb, var(--fs-bg) 28%, transparent) 78%);
}
.fishspot-home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 170px;
    background: linear-gradient(transparent, var(--fs-bg));
}
.fishspot-home-hero__content { width: min(calc(100% - 40px), var(--fs-content-width)); margin-inline: auto; }
.fishspot-home-hero__content > * { max-width: 700px; }
.fishspot-home-hero h1 { margin: 12px 0 20px; font-size: clamp(2.65rem, 5.4vw, 5.55rem); line-height: .99; }
.fishspot-home-hero__lead { max-width: 650px; font-size: clamp(1.08rem, 1.45vw, 1.34rem); color: var(--fs-text-soft); }
.fishspot-eyebrow { margin-bottom: 8px; color: var(--fs-brand) !important; font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.fishspot-section { padding-block: clamp(64px, 8vw, 116px); color: var(--fs-text); background: var(--fs-bg); }
.fishspot-section--soft { background: var(--fs-surface-soft); }
.fishspot-section h2 { max-width: 850px; margin: 0 0 16px; font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.06; }
.fishspot-section-lead { max-width: 760px; margin: 0 0 30px; color: var(--fs-text-soft); font-size: 1.08rem; }
.fishspot-home-map-section .fishspot-map-widget { margin-top: 32px; }
.fishspot-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.fishspot-feature-grid article,
.fishspot-home-post-card,
.fishspot-home-widgets .fishspot-widget {
    color: var(--fs-text);
    background: var(--fs-surface-raised);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow-sm);
}
.fishspot-feature-grid article { padding: 30px; transition: transform .18s ease, box-shadow .18s ease; }
.fishspot-feature-grid article:hover { transform: translateY(-4px); box-shadow: var(--fs-shadow); }
.fishspot-feature-grid img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 18px; }
.fishspot-feature-grid h3 { margin: 0 0 10px; font-size: 1.3rem; }
.fishspot-feature-grid p { margin-bottom: 0; color: var(--fs-text-soft); }
.fishspot-home-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.fishspot-home-post-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.fishspot-home-post-card:hover { transform: translateY(-4px); box-shadow: var(--fs-shadow); }
.fishspot-home-post-card__image { display: block; overflow: hidden; background: var(--fs-surface-soft); }
.fishspot-home-post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.fishspot-home-post-card:hover .fishspot-home-post-card__image img { transform: scale(1.035); }
.fishspot-home-post-card__image img[src$=".svg"] { object-fit: contain; padding: 22px; }
.fishspot-home-post-card__content { padding: 24px; }
.fishspot-home-post-card__content h3 { margin: 6px 0 11px; font-size: 1.28rem; }
.fishspot-home-post-card__content h3 a { color: var(--fs-heading); text-decoration: none; }
.fishspot-home-post-card__content h3 a:hover { color: var(--fs-brand); }
.fishspot-home-post-card__content > p:not(.fishspot-home-post-card__meta) { color: var(--fs-text-soft); }
.fishspot-home-post-card__meta { margin: 0; color: var(--fs-brand); font-size: .82rem; font-weight: 750; }
.fishspot-text-link { font-weight: 780; text-decoration: none; }
.fishspot-home-ad { padding-block: 22px; }
.fishspot-home-ad .widget { margin: 0; }
.fishspot-home-widgets, .fishspot-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fishspot-home-widgets .fishspot-widget { padding: 26px; }
.fishspot-home-cta { color: #fff; background: linear-gradient(135deg, #064e50, #08766f 58%, #168f9c); }
.fishspot-home-cta :where(h2, p) { color: #fff; }
.fishspot-home-cta__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 30px; }
.fishspot-home-cta__inner img { width: 78px; height: 78px; filter: brightness(0) invert(1); }
.fishspot-empty-state { padding: 24px; background: var(--fs-surface); border: 1px dashed var(--fs-border-strong); border-radius: 16px; }

/* Footer. */
.fishspot-footer { color: #eaf6f3; background: #082725; }
.fishspot-footer__inner { padding-block: clamp(52px, 7vw, 88px) 30px; }
.fishspot-footer__brand { max-width: 590px; }
.fishspot-footer .fishspot-brand img { filter: brightness(0) invert(1); }
.fishspot-footer :where(h1, h2, h3, h4, p, li, label) { color: #eaf6f3; }
.fishspot-footer a { color: #c8eee8; }
.fishspot-footer a:hover { color: #fff; }
.fishspot-footer-widgets { margin-top: 38px; }
.fishspot-footer__bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); }
.fishspot-footer__bottom p { margin: 0; }
.fishspot-footer-menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }

/* WordPress media and content. */
.wp-block-image img, .wp-block-gallery img, .gallery img { max-width: 100%; height: auto; }
.wp-block-gallery img[src$=".svg"], .wp-block-image img[src$=".svg"], .gallery img[src$=".svg"] { object-fit: contain !important; padding: 12px; background: var(--fs-surface); border: 1px solid var(--fs-border); border-radius: 12px; }
.wp-block-table, .wp-block-calendar, .wp-block-search, .wp-block-query, .wp-block-comments { color: var(--fs-text); }
.wp-block-table table, .wp-block-table td, .wp-block-table th { border-color: var(--fs-border); }
.wp-block-quote { border-color: var(--fs-brand); color: var(--fs-text); }

.fishspot-map-template, .fishspot-map-template main { width: 100%; max-width: none !important; padding: 0 !important; }
.fishspot-map-template .fishspot-map-shell { min-height: calc(100svh - var(--fs-header-h) - var(--fs-admin, 0px)); border-radius: 0; border-inline: 0; }
.fishspot-map-page .fishspot-footer { display: none; }
.fishspot-skip-link { position: fixed; left: 10px; top: -120px; z-index: 1200; padding: 12px 16px; color: #0d302f; background: #fff; border-radius: 8px; }
.fishspot-skip-link:focus { top: calc(var(--fs-admin, 0px) + 10px); }
.fishspot-back-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: grid; place-items: center; width: 50px; height: 50px; min-height: 50px; padding: 0; border-radius: 50%; color: var(--fs-on-brand); background: var(--fs-brand); border: 1px solid color-mix(in srgb, var(--fs-on-brand) 20%, transparent); box-shadow: var(--fs-shadow); opacity: 0; transform: translateY(12px); pointer-events: none; }
.fishspot-back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 1100px) {
    .fishspot-header-row { gap: 10px; }
    .fishspot-brand img, .fishspot-site-logo img { width: min(205px, 28vw); }
    .fishspot-primary-menu__list a { padding-inline: .58rem; font-size: .9rem; }
    .fishspot-home-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .fishspot-primary-menu { order: 3; flex: 0 0 auto; }
    .fishspot-mobile-menu-toggle { display: grid; }
    .fishspot-primary-menu__panel {
        position: fixed;
        left: 14px;
        right: 14px;
        top: calc(var(--fs-admin, 0px) + var(--fs-header-h) + 8px);
        z-index: 1050;
        display: none;
        max-height: calc(100svh - var(--fs-admin, 0px) - var(--fs-header-h) - 24px);
        overflow: auto;
        padding: 12px;
        background: var(--fs-surface-raised);
        border: 1px solid var(--fs-border);
        border-radius: 20px;
        box-shadow: var(--fs-shadow);
    }
    .fishspot-primary-menu__panel.is-open { display: block; }
    .fishspot-primary-menu__list { display: grid; align-items: stretch; justify-content: stretch; gap: 3px; }
    .fishspot-primary-menu__list a { min-height: 46px; padding: .72rem .82rem; font-size: 1rem; white-space: normal; }
    .fishspot-primary-menu__list .sub-menu,
    .fishspot-primary-menu__list .sub-menu .sub-menu {
        position: static;
        display: grid;
        width: auto;
        margin: 3px 0 6px 14px;
        padding: 3px 0 3px 10px;
        border: 0;
        border-left: 2px solid var(--fs-border-strong);
        border-radius: 0;
        box-shadow: none;
    }
    .fishspot-header-tools { margin-left: auto; }
}

@media (max-width: 782px) {
    body.admin-bar { --fs-admin: 46px; }
    .fishspot-header { --fs-header-h: 70px; }
    .fishspot-header-row { width: min(calc(100% - 22px), var(--fs-content-width)); min-height: 70px; gap: 6px; }
    .fishspot-brand img, .fishspot-site-logo img { width: min(182px, 43vw); max-height: 47px; }
    .fishspot-icon-button, .fishspot-mobile-menu-toggle { min-width: 42px; width: 42px; min-height: 42px; }
    .fishspot-account-trigger { width: 42px; padding: 2px; }
    .fishspot-chevron { display: none; }
    .fishspot-nav-avatar { width: 36px; height: 36px; }
    .fishspot-home-hero { min-height: 680px; }
    .fishspot-home-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--fs-bg) 99%, transparent) 0%, color-mix(in srgb, var(--fs-bg) 94%, transparent) 68%, color-mix(in srgb, var(--fs-bg) 62%, transparent) 100%); }
    .fishspot-feature-grid, .fishspot-home-widgets, .fishspot-footer-widgets { grid-template-columns: 1fr; }
    .fishspot-home-cta__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .fishspot-footer__bottom { display: grid; }
}

@media (max-width: 620px) {
    .fishspot-home-container, .fishspot-home-hero__content { width: min(calc(100% - 24px), var(--fs-content-width)); }
    .fishspot-home-posts { grid-template-columns: 1fr; }
    .fishspot-button-row { display: grid; }
    .fishspot-button-row .fishspot-button { width: 100%; }
    .fishspot-account-dropdown { position: fixed; top: calc(var(--fs-admin, 0px) + 66px); right: 12px; }
    .fishspot-theme-toggle { display: inline-grid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* FishSpot 1.2.3: the account dashboard uses the configurable main container. */
.wp-block-post-content > .fishspot-dashboard.alignwide,
.wp-block-post-content .fishspot-dashboard.alignwide {
    width: min(calc(100% - clamp(24px, 4vw, 64px)), var(--fs-content-width));
    max-width: var(--fs-content-width) !important;
    margin-inline: auto !important;
}

/* FishSpot 1.2.5 — force theme variables over stale Site Editor global colours. */
html[data-fishspot-theme="light"],
html[data-fishspot-theme="light"] body {
    color-scheme: light;
    color: var(--fs-text) !important;
    background-color: var(--fs-bg) !important;
}

html[data-fishspot-theme="dark"],
html[data-fishspot-theme="dark"] body {
    color-scheme: dark;
    color: var(--fs-text) !important;
    background-color: var(--fs-bg) !important;
}

html[data-fishspot-theme] :where(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
    color: var(--fs-heading) !important;
}

html[data-fishspot-theme] :where(p, li, dt, dd, label) {
    color: var(--fs-text);
}

body.fishspot-account-page main.wp-block-group {
    width: 100%;
    max-width: none !important;
}

body.fishspot-account-page .wp-block-post-content,
body.fishspot-account-page .entry-content {
    width: 100%;
    max-width: none !important;
}

body.fishspot-account-page .wp-block-post-content .fishspot-dashboard.alignwide,
body.fishspot-account-page .entry-content .fishspot-dashboard.alignwide {
    position: relative;
    left: 50%;
    width: min(calc(100vw - clamp(24px, 5vw, 72px)), var(--fs-content-width, 1480px)) !important;
    max-width: none !important;
    margin-inline: 0 !important;
    transform: translateX(-50%);
}

@media (max-width: 820px) {
    body.fishspot-account-page .wp-block-post-content .fishspot-dashboard.alignwide,
    body.fishspot-account-page .entry-content .fishspot-dashboard.alignwide {
        width: min(calc(100vw - 24px), var(--fs-content-width, 1480px)) !important;
    }
}

/* FishSpot 1.2.17 — tighter mobile account workspace. */
@media (max-width: 700px) {
    body.fishspot-account-page .wp-block-post-content .fishspot-dashboard.alignwide,
    body.fishspot-account-page .entry-content .fishspot-dashboard.alignwide {
        width: min(calc(100vw - 16px), var(--fs-content-width, 1480px)) !important;
    }
}

@media (max-width: 700px) {
    body.fishspot-account-page .fishspot-back-top {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

/* FishSpot 1.2.38 — preserve the original brand colours in the dark header. */
html[data-fishspot-theme="dark"] .fishspot-header .fishspot-brand,
html[data-fishspot-theme="dark"] .fishspot-header .fishspot-site-logo {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(248,252,251,.96);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

html[data-fishspot-theme="dark"] .fishspot-header .fishspot-brand img,
html[data-fishspot-theme="dark"] .fishspot-header .fishspot-site-logo img {
    filter: none !important;
}

@media (max-width: 600px) {
    html[data-fishspot-theme="dark"] .fishspot-header .fishspot-brand,
    html[data-fishspot-theme="dark"] .fishspot-header .fishspot-site-logo {
        padding: 4px 7px;
        border-radius: 12px;
    }
}

/* FishSpot 1.2.38 — enforce accessible footer contrast over WordPress global colours. */
html[data-fishspot-theme="light"] .fishspot-footer {
    color: #f2fbf9 !important;
    background: #073b3c !important;
}

html[data-fishspot-theme="dark"] .fishspot-footer {
    color: #edf9f7 !important;
    background: #051f20 !important;
}

html[data-fishspot-theme] .fishspot-footer :where(
    h1, h2, h3, h4, h5, h6,
    .wp-block-heading,
    p, li, dt, dd, label, small, strong
) {
    color: inherit !important;
}

html[data-fishspot-theme] .fishspot-footer a,
html[data-fishspot-theme] .fishspot-footer a:visited {
    color: #bcefe9 !important;
    text-decoration-color: rgba(188, 239, 233, .55);
}

html[data-fishspot-theme] .fishspot-footer a:hover,
html[data-fishspot-theme] .fishspot-footer a:focus-visible {
    color: #ffffff !important;
    text-decoration-color: currentColor;
}

html[data-fishspot-theme] .fishspot-footer__brand > p {
    color: rgba(242, 251, 249, .86) !important;
}

html[data-fishspot-theme] .fishspot-footer__bottom {
    color: rgba(242, 251, 249, .82) !important;
    border-top-color: rgba(255, 255, 255, .22);
}

html[data-fishspot-theme] .fishspot-footer .widget,
html[data-fishspot-theme] .fishspot-footer .wp-block-group {
    color: inherit;
}

/* FishSpot 1.2.38 — tighter mobile hero spacing. */
@media (max-width: 782px) {
    .fishspot-home-hero {
        min-height: auto;
        align-items: start;
        padding-block: 22px 44px;
    }

    .fishspot-home-hero__content {
        padding-top: 0;
    }

    .fishspot-home-hero h1 {
        margin-top: 10px;
        margin-bottom: 16px;
        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    .fishspot-home-hero__lead {
        margin-bottom: 22px;
    }
}

@media (max-width: 620px) {
    .fishspot-home-hero {
        padding-block: 18px 34px;
    }

    .fishspot-home-hero__content > .fishspot-eyebrow {
        margin-bottom: 6px;
    }

    .fishspot-home-hero__lead {
        font-size: 1.02rem;
    }
}

/* FishSpot 1.2.38 — sticky header, mobile appearance control and original-colour footer logo. */
.wp-site-blocks > header.wp-block-template-part {
    position: sticky;
    top: var(--fs-admin, 0px);
    z-index: 1200;
    margin: 0;
}

.wp-site-blocks > header.wp-block-template-part .fishspot-header {
    position: relative;
    top: auto;
}

.fishspot-mobile-menu-actions {
    display: none;
}

.fishspot-footer .fishspot-footer-logo {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(248,252,251,.97);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.fishspot-footer .fishspot-footer-logo img,
html[data-fishspot-theme="dark"] .fishspot-footer .fishspot-footer-logo img,
html[data-fishspot-theme="light"] .fishspot-footer .fishspot-footer-logo img {
    filter: none !important;
}

/* The standalone ranking page reuses the exact homepage ranking-section wrapper. */
body.fishspot-ranking-page main#main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
}

body.fishspot-ranking-page main#main-content > .wp-block-post-title {
    display: none;
}

body.fishspot-ranking-page main#main-content > .wp-block-post-content,
body.fishspot-ranking-page .entry-content.wp-block-post-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fishspot-ranking-page .fishspot-home-ranking-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 960px) {
    .fishspot-theme-toggle--desktop {
        display: none !important;
    }

    .fishspot-mobile-menu-actions {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--fs-border);
    }

    .fishspot-mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        color: var(--fs-text);
        background: var(--fs-surface-soft);
        border: 1px solid var(--fs-border);
        border-radius: 13px;
        box-shadow: none;
        text-align: left;
    }

    .fishspot-mobile-theme-toggle .fishspot-theme-icon {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }

    .fishspot-mobile-theme-toggle [data-theme-toggle-label] {
        font-weight: 780;
    }
}

@media (max-width: 620px) {
    .fishspot-footer .fishspot-footer-logo {
        padding: 5px 8px;
        border-radius: 12px;
    }

}

/* FishSpot 1.2.38 — correct sticky header offset around the WordPress admin bar. */
:root {
    --fs-admin-sticky-offset: 0px;
}

body.admin-bar {
    --fs-admin-sticky-offset: 32px;
}

.wp-site-blocks > header.wp-block-template-part {
    top: var(--fs-admin-sticky-offset, 0px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --fs-admin-sticky-offset: 46px;
    }
}

/* WordPress changes the mobile admin bar to position:absolute at this width.
   Once it scrolls away, the site header must stick to the viewport edge. */
@media screen and (max-width: 600px) {
    body.admin-bar {
        --fs-admin-sticky-offset: 0px;
    }

    body.admin-bar .wp-site-blocks > header.wp-block-template-part {
        top: 0;
    }
}

/* FishSpot 1.2.38 — keep account avatar beside the mobile hamburger. */
@media (max-width: 960px) {
    .fishspot-header-row {
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .fishspot-header-tools {
        margin-left: auto;
        margin-right: 0;
    }

    .fishspot-primary-menu {
        margin-left: 2px;
    }
}

@media (max-width: 782px) {
    .fishspot-primary-menu {
        margin-left: 0;
    }
}

/* FishSpot 1.2.38 — pin mobile account and menu controls to the right edge. */
@media (max-width: 960px) {
    .fishspot-header-row,
    .wp-block-group.alignwide.fishspot-header-row {
        width: calc(100% - 22px) !important;
        max-width: none !important;
        margin-inline: 11px !important;
        justify-content: flex-start !important;
    }

    .fishspot-site-logo,
    .fishspot-brand {
        order: 1;
    }

    .fishspot-header-tools {
        order: 2;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex: 0 0 auto;
    }

    .fishspot-primary-menu {
        order: 3;
        flex: 0 0 auto;
        margin-left: 4px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 420px) {
    .fishspot-header-row,
    .wp-block-group.alignwide.fishspot-header-row {
        width: calc(100% - 16px) !important;
        margin-inline: 8px !important;
    }

    .fishspot-primary-menu {
        margin-left: 2px !important;
    }
}


/* FishSpot 1.2.46 — wider Fish Encyclopedia page canvas. */
.fishspot-fish-encyclopedia-page .fishspot-encyclopedia-container {
    width: 100%;
    max-width: none !important;
    margin-inline: auto;
}

/* FishSpot 1.2.48 — remove constrained-layout padding from the encyclopedia canvas. */
.fishspot-fish-encyclopedia-page .fishspot-encyclopedia-container,
.fishspot-fish-encyclopedia-page .fishspot-encyclopedia-container.has-global-padding {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

/* FishSpot Theme 1.2.51 — polished encyclopedia canvas. */
.fishspot-fish-encyclopedia-page {
    overflow: clip;
}

.fishspot-fish-encyclopedia-page .fishspot-encyclopedia-container {
    min-width: 0;
}
