/* =====================================================================
   FishingBuddy — Design System v3 "North Water"
   Premium editorial dark theme · PP Neue Montreal (self-hosted)
   This file loads AFTER per-page inline styles and is the source of
   truth for the shared shell + sitewide component elevation.
   ===================================================================== */

/* ----------------------------- Fonts ------------------------------- */
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Thin.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-ThinItalic.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-ThinItalic.woff") format("woff");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Light.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Book.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Book.woff") format("woff");
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Regular.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Italic.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Medium.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-Bold.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/PPNeueMontreal-BoldItalic.woff2") format("woff2"),
         url("fonts/PPNeueMontreal-BoldItalic.woff") format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ----------------------------- Tokens ------------------------------ */
:root {
    /* Brand gold — champagne, warm, restrained */
    --accent: #dfaf4e;
    --accent-strong: #ecc372;
    --accent-deep: #b98a2e;
    --accent-soft: rgba(223, 175, 78, 0.1);
    --accent-line: rgba(223, 175, 78, 0.3);

    /* Waters */
    --water: #0c272d;
    --pine: #11302a;
    --mist: #17403a;

    /* Canvas */
    --bg: #060f11;
    --surface: #0c1a1e;
    --surface-2: #102227;
    --surface-3: #153036;
    --line: rgba(198, 226, 220, 0.09);
    --line-strong: rgba(198, 226, 220, 0.17);

    --white: #f4f8f7;
    --black: #030809;

    --gray-900: #0c1a1e;
    --gray-800: #122328;
    --gray-700: #21373d;
    --gray-600: #3a5158;
    --gray-500: #778f95;
    --gray-400: #a5b8bc;
    --gray-300: #cedadc;
    --gray-200: #e3ebec;
    --gray-100: #f2f6f6;

    --primary: #060f11;
    --secondary: #0c1a1e;

    --text: #eef4f3;
    --text-muted: #a5b8bc;
    --text-faint: #778f95;

    --maxw: 1180px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.32), 0 24px 64px rgba(0, 0, 0, 0.36);
    --glow: 0 0 0 1px var(--accent-line), 0 18px 50px rgba(0, 0, 0, 0.4);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ----------------------------- Base -------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font);
    font-weight: 400;
    background:
        radial-gradient(ellipse 75% 50% at 10% -10%, rgba(23, 64, 58, 0.38), transparent 55%),
        radial-gradient(ellipse 55% 38% at 95% -2%, rgba(12, 39, 45, 0.5), transparent 52%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Fine film-grain veil */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(223, 175, 78, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

img { max-width: 100%; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-tight {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skip link for a11y */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--black);
    padding: 0.6rem 1rem;
    font-weight: 700;
    z-index: 3000;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --------------------------- Typography ---------------------------- */
h1, h2, h3, h4,
.section-header h2,
.page-header h1,
.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
    text-wrap: balance;
}

h2 span,
.section-header h2 span,
.page-header h1 span,
.fishing-accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.eyebrow,
.section-label,
.resource-kicker,
.tutorial-category,
.spots-title,
.category-title .section-label {
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* --------------------------- Navigation ---------------------------- */
nav {
    background: rgba(6, 15, 17, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.25s var(--ease);
}
.logo:hover { opacity: 0.9; transform: translateY(-1px); }
.logo img {
    height: 58px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.nav-links {
    display: flex;
    gap: 0.1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.84rem;
    letter-spacing: -0.01em;
    padding: 0.45rem 0.72rem;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.btn-primary,
.nav-links a.btn-primary,
.nav-links a.btn.btn-primary {
    background: var(--accent);
    color: #1c1400 !important;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 20px rgba(223, 175, 78, 0.18);
    transition: background 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.btn-primary:hover,
.nav-links a.btn-primary:hover {
    background: var(--accent-strong);
    color: #1c1400 !important;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 26px rgba(223, 175, 78, 0.26);
}

.mobile-menu,
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.4rem;
}

@media (max-width: 920px) {
    .mobile-menu,
    .mobile-menu-btn { display: inline-flex; }

    .logo img { height: 48px; }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(8, 19, 22, 0.98);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem 1.35rem;
        gap: 0.15rem;
        transform: translateX(-100%);
        transition: transform 0.3s var(--ease);
        z-index: 999;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { text-align: left; margin: 0; }
    .nav-links a { display: block; padding: 0.9rem 0.85rem; border-radius: 10px; font-size: 1rem; }
    .nav-links a.btn-primary { text-align: center; margin-top: 0.5rem; border-radius: 12px; }
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s var(--ease);
}
.btn.btn-primary { padding: 0.9rem 1.75rem; border-radius: 999px; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.btn .icon-arrow { transition: transform 0.22s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon-arrow { width: 15px; height: 15px; }

/* ----------------------------- Sections ---------------------------- */
section { padding: 5.5rem 0; position: relative; }
@media (min-width: 768px) { section { padding: 7.5rem 0; } }

.section-header {
    text-align: left;
    margin-bottom: 3.25rem;
    max-width: 780px;
}
.section-header h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    margin-bottom: 1.1rem;
}
.section-header p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 350;
    line-height: 1.7;
}

/* Numbered editorial section header */
.section-index {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.section-index .num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-faint);
}
.section-index .rule { flex: 0 0 2.4rem; height: 1px; background: var(--accent); align-self: center; }
.section-index .tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Scroll reveal (opt-in via .reveal; JS adds .in) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ================================================================
   HOMEPAGE — Hero
   ================================================================ */
.hero-home {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 9.5rem 0 4.5rem;
    isolation: isolate;
}

.hero-home .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("canada-fishing.png");
    background-size: cover;
    background-position: center 38%;
    transform: scale(1.06);
    animation: heroDrift 22s var(--ease) forwards;
    overflow: hidden;
}
@keyframes heroDrift {
    from { transform: scale(1.12); }
    to   { transform: scale(1.02); }
}

.hero-home .hero-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Reduced motion: drop the loop, keep the still */
@media (prefers-reduced-motion: reduce) {
    .hero-home .hero-bg video { display: none; }
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 15, 17, 0.66) 0%, rgba(6, 15, 17, 0.3) 34%, rgba(6, 15, 17, 0.86) 78%, var(--bg) 100%),
        linear-gradient(90deg, rgba(6, 15, 17, 0.62) 0%, rgba(6, 15, 17, 0.12) 55%, rgba(6, 15, 17, 0.38) 100%);
}
.hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 42% 34% at 22% 62%, rgba(223, 175, 78, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
    color: var(--gray-300);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    animation: heroFadeUp 0.9s var(--ease) 0.15s both;
}
.hero-kicker::before {
    content: "";
    width: 2.6rem;
    height: 1px;
    background: var(--accent);
}

.hero-home h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.9rem);
    max-width: 21ch;
    margin-bottom: 1.9rem;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero-home h1 .line { white-space: nowrap; }
@media (max-width: 560px) {
    .hero-home h1 .line { white-space: normal; }
}
.hero-home h1 .line-wrap { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-home h1 .line {
    display: block;
    transform: translateY(110%);
    animation: lineReveal 1.1s var(--ease) forwards;
}
.hero-home h1 .line-wrap:nth-child(1) .line { animation-delay: 0.12s; }
.hero-home h1 .line-wrap:nth-child(2) .line { animation-delay: 0.3s; }
@keyframes lineReveal { to { transform: translateY(0); } }

.hero-home .subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 350;
    color: var(--gray-200);
    max-width: 33rem;
    line-height: 1.7;
    margin-bottom: 2.4rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    animation: heroFadeUp 0.9s var(--ease) 0.68s both;
}

.cta-group {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    animation: heroFadeUp 0.9s var(--ease) 0.95s both;
}

.hero-ask {
    width: min(720px, 100%);
    margin-bottom: 1.35rem;
    animation: heroFadeUp 0.9s var(--ease) 0.78s both;
}

.cta-group-secondary {
    gap: 0.75rem;
}

.cta-group-secondary .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.84rem;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid rgba(244, 248, 247, 0.14);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(244, 248, 247, 0.28);
    color: var(--white);
    transform: translateY(-1px);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stats ribbon under hero copy */
.hero-stats {
    margin-top: 3.6rem;
    padding-top: 1.9rem;
    border-top: 1px solid rgba(244, 248, 247, 0.16);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 760px;
    animation: heroFadeUp 0.9s var(--ease) 1s both;
}
.hero-stats .stat-item h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.hero-stats .stat-item h3 em { color: var(--accent); font-style: normal; }
.hero-stats .stat-item p {
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-home { min-height: 86vh; padding: 8rem 0 3.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

/* ================================================================
   Community catches — swipe card stack
   ================================================================ */
.catch-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.catch-stack-stage {
    position: relative;
    width: min(300px, 100%);
    height: 400px;
    perspective: 1000px;
    perspective-origin: 50% 40%;
}

.catch-stack-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.catch-stack-cards.is-dragging {
    cursor: grabbing;
}

.catch-card {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(223, 175, 78, 0.12);
    transform-origin: center bottom;
    will-change: transform;
    touch-action: none;
    user-select: none;
}

.catch-card.is-top {
    cursor: grab;
}

.catch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.catch-card-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3.5rem 1rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 15, 17, 0.55) 35%, rgba(6, 15, 17, 0.92) 100%);
    pointer-events: none;
}

.catch-card-species {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--white);
}

.catch-card-location {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--gray-300);
}

.catch-card-angler {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.catch-stack-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(300px, 100%);
    gap: 1rem;
}

.catch-stack-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

.catch-stack-next {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--gray-200);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.catch-stack-next:hover {
    border-color: rgba(223, 175, 78, 0.4);
    color: var(--accent-strong);
    background: rgba(223, 175, 78, 0.08);
}

@media (max-width: 560px) {
    .catch-stack-stage {
        height: min(400px, 72vw * 1.33);
        width: min(280px, 72vw);
    }
    .catch-stack-foot {
        width: min(280px, 72vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .catch-card {
        transition: none !important;
        cursor: default;
    }
    .catch-card:not(.is-top) {
        display: none;
    }
}

/* ================================================================
   Community catches — swipe card stack
   ================================================================ */
.community-catches {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse 80% 60% at 15% 0%, rgba(223, 175, 78, 0.06), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(17, 48, 42, 0.35), transparent 50%),
        var(--bg);
    overflow: hidden;
}

.community-catches-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.community-catches-copy .section-index {
    margin-bottom: 1rem;
}

.community-catches-copy h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.community-catches-copy p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.community-catches-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .community-catches-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .community-catches-copy p {
        margin-left: auto;
        margin-right: auto;
    }
    .community-catches-actions {
        justify-content: center;
    }
    .community-catches-copy .section-index {
        justify-content: center;
    }
}

/* ================================================================
   HOMEPAGE — Feature pillars
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    grid-column: span 4;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%), var(--surface);
    padding: 1.9rem 1.7rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    min-height: 215px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:nth-child(1),
.feature-card:nth-child(2) { grid-column: span 6; min-height: 250px; }
.feature-card:nth-child(n+3) { grid-column: span 3; min-height: 235px; padding: 1.7rem 1.4rem; }

.feature-card::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 1px solid rgba(223, 175, 78, 0.14);
    background: radial-gradient(circle, rgba(223, 175, 78, 0.07), transparent 65%);
    transition: transform 0.35s var(--ease);
}
.feature-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}
.feature-card:hover::after { transform: scale(1.25); }

.feature-number {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent-line);
    padding-bottom: 0.45rem;
    margin-bottom: 1.15rem;
}
.feature-card h3 {
    font-size: 1.32rem;
    margin-bottom: 0.7rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 350;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ================================================================
   HOMEPAGE — Resource hub
   ================================================================ */
.resource-hub {
    background:
        radial-gradient(circle at 8% 15%, rgba(223, 175, 78, 0.07), transparent 26rem),
        radial-gradient(circle at 85% 0%, rgba(23, 64, 58, 0.42), transparent 28rem),
        linear-gradient(180deg, rgba(6, 15, 17, 0.4), var(--surface));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 1.4rem;
    align-items: stretch;
}

.resource-panel {
    background:
        linear-gradient(160deg, rgba(223, 175, 78, 0.13), rgba(17, 48, 42, 0.42) 60%),
        var(--surface-2);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-xl);
    padding: clamp(1.7rem, 4vw, 2.7rem);
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}
.resource-panel::after {
    content: "";
    position: absolute;
    right: -7rem;
    top: 16%;
    width: 19rem;
    height: 19rem;
    border: 1px solid rgba(244, 248, 247, 0.1);
    border-radius: 50%;
    pointer-events: none;
}
.resource-panel h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin-bottom: 1rem;
}
.resource-panel > p {
    color: var(--gray-300);
    font-weight: 350;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.quick-path { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.quick-path a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    background: rgba(3, 8, 9, 0.34);
    border: 1px solid rgba(244, 248, 247, 0.12);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, transform 0.25s var(--ease), background 0.2s ease;
    position: relative;
    z-index: 1;
}
.quick-path a:hover {
    border-color: var(--accent);
    background: rgba(3, 8, 9, 0.5);
    transform: translateX(5px);
}
.quick-path strong { font-weight: 500; }
.quick-path span { color: var(--gray-400); font-size: 0.78rem; white-space: nowrap; }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.resource-card,
.season-card,
.species-resource-card,
.province-card,
.checklist-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 60%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.45rem;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.resource-card:hover,
.season-card:hover,
.species-resource-card:hover,
.province-card:hover,
.checklist-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.resource-card h3,
.season-card h3,
.species-resource-card h3,
.province-card h3,
.checklist-card h3 {
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 0.55rem;
}
.resource-card p,
.season-card p,
.species-resource-card p,
.province-card p,
.checklist-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 350;
    line-height: 1.62;
}
.resource-kicker { display: inline-flex; margin-bottom: 0.8rem; }

.province-card a,
.resource-card a {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: gap 0.2s var(--ease), color 0.2s ease;
}
.province-card a::after,
.resource-card a::after { content: "→"; transition: transform 0.2s var(--ease); }
.province-card a:hover::after,
.resource-card a:hover::after { transform: translateX(3px); }
.province-card a:hover,
.resource-card a:hover { color: var(--accent-strong); }

.province-meta,
.species-meta {
    color: var(--text-faint);
    font-size: 0.78rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

/* ================================================================
   HOMEPAGE — Province / season / species / checklist grids
   ================================================================ */
.province-grid,
.season-grid,
.species-resource-grid,
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1rem;
}

.province-guide { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 30%); }

.season-guide {
    background:
        radial-gradient(circle at 80% 12%, rgba(223, 175, 78, 0.06), transparent 24rem),
        var(--bg);
}
.season-card { position: relative; overflow: hidden; }
.season-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(223, 175, 78, 0.1));
}
.season-window {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.species-resource { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }

.species-resource-card ul,
.checklist-card ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0;
}
.species-resource-card li,
.checklist-card li {
    color: var(--text-muted);
    font-size: 0.87rem;
    font-weight: 350;
    line-height: 1.5;
    padding-left: 1.05rem;
    position: relative;
}
.species-resource-card li::before,
.checklist-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0;
}

/* Season intro blocks */
.season-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.1rem;
    margin-bottom: 2.2rem;
}
.season-principle,
.season-clues {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 60%), var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.season-principle { padding: 2rem; position: relative; }
.season-principle::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(223, 175, 78, 0.1));
}
.season-principle h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.95rem);
    line-height: 1.16;
    margin-bottom: 0.9rem;
    font-weight: 500;
}
.season-principle p:last-child { color: var(--text-muted); font-size: 0.94rem; font-weight: 350; line-height: 1.68; }

.season-clues { display: grid; gap: 0; }
.season-clue { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.season-clue:last-child { border-bottom: none; }
.season-clue strong { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 0.3rem; }
.season-clue span { color: var(--text-muted); font-size: 0.87rem; font-weight: 350; line-height: 1.55; }

/* Temperature + timing cards */
.temperature-guide, .shore-timing-guide { margin-top: 2.6rem; }
.temperature-guide > h3, .shore-timing-guide > h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.temperature-grid, .shore-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.temperature-card, .timing-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 50%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.temperature-card:hover, .timing-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.temperature-band {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}
.temperature-card h3, .timing-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; font-weight: 500; }
.temperature-card p, .timing-card p { color: var(--text-muted); font-size: 0.88rem; font-weight: 350; line-height: 1.6; margin-bottom: 0.6rem; }
.temperature-card ul, .timing-card ul, .season-card ul { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.7rem; padding: 0; }
.temperature-card li, .timing-card li, .season-card li {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 350;
    line-height: 1.5;
    padding-left: 1.05rem;
    position: relative;
}
.temperature-card li::before, .timing-card li::before, .season-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0;
}

/* ================================================================
   HOMEPAGE — Trip planner
   ================================================================ */
.trip-planner {
    background:
        radial-gradient(circle at 16% 18%, rgba(223, 175, 78, 0.1), transparent 26rem),
        linear-gradient(140deg, rgba(17, 48, 42, 0.5), rgba(6, 15, 17, 0.2)),
        var(--bg);
    overflow: hidden;
}
.planning-card {
    background: rgba(8, 18, 21, 0.82);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-xl);
    padding: clamp(1.7rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-2);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.planning-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.planning-card > p { color: var(--gray-300); font-weight: 350; margin-bottom: 1.6rem; max-width: 46rem; }
.planning-card .checklist-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

/* ================================================================
   HOMEPAGE — City cards
   ================================================================ */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.1rem;
}
.city-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}
.city-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

.city-header {
    padding: 1.5rem 1.5rem 1.2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 90% -30%, rgba(223, 175, 78, 0.16), transparent 60%),
        var(--surface-3);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.city-header h3 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0;
}
.city-header .season {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    opacity: 1;
}

.city-content { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.spots-title { margin-bottom: 0.9rem; margin-top: 0.2rem; }
.city-content .spots-title + .spots-list { margin-top: 0; }

.spots-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
    max-height: 292px;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) transparent;
}
.spots-list::-webkit-scrollbar { width: 4px; }
.spots-list::-webkit-scrollbar-track { background: transparent; }
.spots-list::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 2px; border: none; }

.spot-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, padding-left 0.2s var(--ease);
    font-size: 0.87rem;
}
.spot-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-line);
    padding-left: 1.1rem;
}
.spot-name { font-weight: 500; }
.spot-detail { font-size: 0.73rem; color: var(--text-faint); text-align: right; white-space: nowrap; }

.species-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.2rem 0 1.2rem; }
.species-tag {
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 0.32rem 0.7rem;
    border: 1px solid rgba(223, 175, 78, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
    position: relative;
    overflow: hidden;
    font-size: 0.87rem;
}
.store-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-line);
    transform: translateY(-1px);
    box-shadow: none;
}
.store-icon { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--gray-700); }
.store-content { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.store-name { font-weight: 500; color: var(--white); }
.store-detail { color: var(--text-faint); font-size: 0.73rem; font-style: normal; }

.city-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: auto; padding-top: 1.3rem; }
.city-link {
    padding: 0.68rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.city-link:hover { background: var(--accent); border-color: var(--accent); color: #1c1400; }

/* ================================================================
   Partner spotlight (replaces old ad banners)
   ================================================================ */
.partner-strip { padding: 0; margin: 0; }
.partner-banner {
    background:
        radial-gradient(circle at 4% 30%, rgba(223, 175, 78, 0.1), transparent 40%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 55%),
        var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: clamp(1.6rem, 4vw, 2.4rem);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-1);
}
.partner-banner::after {
    content: "";
    position: absolute;
    right: -4rem;
    top: -6rem;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(223, 175, 78, 0.16);
    border-radius: 50%;
    pointer-events: none;
}
.partner-label {
    display: inline-flex;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-faint);
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.partner-banner h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 500; margin-bottom: 0.55rem; letter-spacing: -0.025em; }
.partner-banner p { color: var(--text-muted); font-weight: 350; font-size: 0.95rem; max-width: 34rem; margin-bottom: 0; }
.partner-banner .btn { flex-shrink: 0; }
@media (max-width: 768px) {
    .partner-banner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
}

/* Partner page components */
.partner-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.tier-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 60%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tier-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.tier-card.featured { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(223, 175, 78, 0.1), rgba(17, 48, 42, 0.35) 60%), var(--surface-2); }
.tier-card.featured::before {
    content: "Most popular";
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}
.tier-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.tier-card h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 0.6rem; }
.tier-card > p { color: var(--text-muted); font-weight: 350; font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.2rem; }
.tier-card ul { list-style: none; display: grid; gap: 0.55rem; margin: 0 0 1.8rem; padding: 0; }
.tier-card li {
    color: var(--gray-300);
    font-size: 0.88rem;
    font-weight: 350;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.55;
}
.tier-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.tier-card .btn { margin-top: auto; justify-content: center; }

/* ================================================================
   Tutorials
   ================================================================ */
.tutorials { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 55%); border-top: 1px solid var(--line); }
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
    margin-top: 0;
}
.tutorial-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.tutorial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-2);
}
.tutorial-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: var(--gray-800);
    overflow: hidden;
}
.tutorial-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease), opacity 0.3s ease;
    opacity: 0.88;
}
.tutorial-card:hover .tutorial-thumbnail img { transform: scale(1.05); opacity: 1; }
.tutorial-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 15, 17, 0.55));
    pointer-events: none;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(6, 15, 17, 0.72);
    border: 1px solid rgba(244, 248, 247, 0.3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    padding-left: 3px;
    transition: all 0.25s var(--ease);
    z-index: 1;
}
.tutorial-card:hover .play-button {
    background: var(--accent);
    border-color: var(--accent);
    color: #1c1400;
    transform: translate(-50%, -50%) scale(1.08);
}
.tutorial-content { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.tutorial-category { margin-bottom: 0.55rem; }
.tutorial-title { font-size: 1.12rem; font-weight: 500; color: var(--white); margin-bottom: 0.6rem; line-height: 1.32; letter-spacing: -0.015em; }
.tutorial-description { color: var(--text-muted); font-size: 0.88rem; font-weight: 350; line-height: 1.58; margin-bottom: 1rem; }
.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-faint);
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}
.tutorial-duration { display: flex; align-items: center; gap: 0.25rem; }
.tutorial-channel { font-weight: 500; }

/* ================================================================
   FAQ
   ================================================================ */
.faq .container { max-width: 900px; }
.faq-accordion, .faq-list { width: 100%; margin-top: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: background 0.25s ease; }
.faq-item:hover { background: rgba(255, 255, 255, 0.015); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-align: left;
    padding: 1.45rem 0.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.25s ease;
    font-family: inherit;
}
.faq-question:hover, .faq-question:focus { color: var(--accent); outline: none; }
.faq-icon, .faq-chevron { width: 18px; height: 18px; transition: transform 0.3s var(--ease); flex-shrink: 0; color: var(--text-faint); }
.faq-item.active .faq-icon,
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); background: transparent; }
.faq-item.active .faq-answer { max-height: 320px; }
.faq-answer-content, .faq-answer p {
    padding: 0 0.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 350;
    line-height: 1.72;
    max-width: 60ch;
}

/* ================================================================
   Shared page headers (subpages)
   ================================================================ */
.page-header {
    position: relative;
    padding: 5.5rem 0 3.75rem !important;
    background:
        radial-gradient(ellipse 62% 80% at 0% 0%, rgba(23, 64, 58, 0.32), transparent 55%),
        radial-gradient(ellipse 40% 50% at 100% 10%, rgba(223, 175, 78, 0.05), transparent 60%),
        linear-gradient(180deg, #0a181c 0%, var(--bg) 100%) !important;
    border-bottom: 1px solid var(--line) !important;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.page-header .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    background: transparent !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent-line) !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 999px !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.page-header h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.9rem) !important;
    margin-bottom: 1.1rem !important;
    max-width: 20ch;
    font-weight: 700 !important;
}
.page-header p {
    font-size: 1.06rem !important;
    font-weight: 350 !important;
    color: var(--text-muted) !important;
    max-width: 38rem !important;
    line-height: 1.7 !important;
}

section.hero:not(.page-header) h1 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
    color: var(--white) !important;
}
section.hero:not(.page-header) h1 span,
section.hero:not(.page-header) .fishing-accent {
    color: var(--accent) !important;
    -webkit-text-fill-color: var(--accent) !important;
}

/* Header stat chips on subpages */
.header-stats { margin-top: 1.8rem; }
.header-stat {
    border: 1px solid var(--line-strong) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 999px !important;
}

/* ================================================================
   Subpage component elevation (overrides page-inline styles)
   ================================================================ */
.filter-tabs {
    background: var(--surface-2) !important;
    border: 1px solid var(--line);
    border-radius: 999px !important;
    padding: 0.32rem !important;
}
.filter-tab { border-radius: 999px !important; font-family: var(--font) !important; }
.filter-tab.active, .filter-tab:hover { background: var(--accent) !important; color: #1c1400 !important; }

.gear-card, .species-card, .technique-card, .river-card, .location-card,
.fact-card, .mistake-card, .tip-card, .next-card, .buy-card, .compare-card,
.type-card, .fly-card, .spot-card, .step-link {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 60%), var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.gear-card:hover, .species-card:hover, .technique-card:hover, .river-card:hover,
.location-card:hover, .fact-card:hover, .mistake-card:hover, .tip-card:hover,
.next-card:hover, .buy-card:hover, .compare-card:hover, .type-card:hover,
.fly-card:hover, .spot-card:hover, .step-link:hover {
    border-color: var(--accent-line) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-2) !important;
}

.table-wrapper {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--surface) !important;
    overflow-x: auto;
}
table { border-collapse: collapse; }
th {
    font-size: 0.68rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: var(--surface-2) !important;
    border-bottom: 1px solid var(--line-strong) !important;
}
td { border-bottom: 1px solid var(--line) !important; }
tr:last-child td { border-bottom: none !important; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025) !important; }

.cta-strip {
    background:
        radial-gradient(circle at 10% 20%, rgba(223, 175, 78, 0.12), transparent 40%),
        linear-gradient(150deg, rgba(17, 48, 42, 0.55), rgba(6, 15, 17, 0.3)),
        var(--surface) !important;
    border: 1px solid var(--accent-line) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-2);
}

.safety-banner {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 120, 90, 0.34) !important;
    background: linear-gradient(150deg, rgba(255, 120, 90, 0.08), transparent 60%), var(--surface) !important;
}

.badge, .difficulty-badge, .edible-badge, .essential-tag, .river-tag, .spot-tag {
    border-radius: 999px !important;
    letter-spacing: 0.06em;
}

/* ================================================================
   Ask FishingBuddy — hero bar, floating dock, conversation
   ================================================================ */

/* ---- Shared ask bar (hero + dock) ---- */
.ask-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.65rem 0.65rem 1.15rem;
    min-height: 3.75rem;
    background:
        linear-gradient(135deg, rgba(223, 175, 78, 0.12) 0%, rgba(6, 15, 17, 0.88) 45%),
        rgba(8, 18, 20, 0.92);
    border: 1px solid rgba(223, 175, 78, 0.42);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(223, 175, 78, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-ask .ask-bar {
    min-height: 4.25rem;
    padding: 0.85rem 0.85rem 0.85rem 1.25rem;
    border-color: rgba(223, 175, 78, 0.48);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(223, 175, 78, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ask-field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ask-typewriter {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    pointer-events: none;
    color: var(--text-faint);
    font-size: inherit;
    line-height: 1.35;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.18s ease;
}
.ask-typewriter.hidden {
    opacity: 0;
}

.ask-typewriter-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ask-typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    background: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
    animation: askCursorBlink 1.05s step-end infinite;
}
@keyframes askCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ask-bar-input {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.35;
    padding: 0.35rem 0;
    outline: none;
}

.hero-ask .ask-bar-input {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-ask .ask-typewriter {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.ask-bar-send {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #1c1400;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1.15rem;
    min-height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.ask-bar-send:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.hero-ask .ask-bar-send {
    font-size: 0.95rem;
    padding: 0.8rem 1.35rem;
}

/* ---- Floating dock (bottom center, after scroll) ---- */
.ask-dock {
    position: fixed;
    left: 50%;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(130%);
    z-index: 2500;
    width: min(640px, calc(100% - 1.5rem));
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.55s var(--ease),
        opacity 0.45s ease;
}
.ask-dock.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

body.has-ask-dock footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

/* ---- Legacy launcher (unused) ---- */
.ask-launcher {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 0.85rem 0.85rem 1.35rem;
    min-height: 4.25rem;
    background:
        linear-gradient(135deg, rgba(223, 175, 78, 0.1) 0%, rgba(6, 15, 17, 0.72) 42%),
        rgba(6, 15, 17, 0.65);
    border: 1px solid rgba(223, 175, 78, 0.38);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    cursor: text;
    text-align: left;
    font-family: inherit;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(223, 175, 78, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.ask-launcher:hover {
    border-color: rgba(223, 175, 78, 0.62);
    transform: translateY(-3px);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(223, 175, 78, 0.2),
        0 0 40px rgba(223, 175, 78, 0.12);
}
.ask-launcher:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.ask-launcher .ask-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.55rem;
    border-radius: 10px;
    background: var(--accent);
    color: #1c1400;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 18px rgba(223, 175, 78, 0.35);
}

.ask-launcher .ask-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(223, 175, 78, 0.8);
    flex-shrink: 0;
    animation: askPulse 2.4s ease-in-out infinite;
}
@keyframes askPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.72); opacity: 0.65; }
}
.ask-launcher .ask-hint {
    flex: 1;
    color: var(--white);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ask-launcher .ask-go {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #1c1400;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 0.8rem 1.35rem;
    box-shadow: 0 6px 22px rgba(223, 175, 78, 0.32);
    transition: background 0.2s ease, transform 0.2s var(--ease);
}
.ask-launcher:hover .ask-go {
    background: var(--accent-strong);
}

.ask-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(2, 6, 7, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.ask-overlay.open { display: flex; }

.ask-panel {
    position: relative;
    width: min(560px, 100%);
    height: min(92dvh, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(223, 175, 78, 0.07), transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(17, 48, 42, 0.35), transparent 50%),
        linear-gradient(180deg, #081316 0%, #060f11 100%);
    border: 1px solid rgba(198, 226, 220, 0.1);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    animation: askSheetIn 0.44s var(--ease) both;
}
.ask-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223, 175, 78, 0.45), transparent);
    pointer-events: none;
}
@keyframes askSheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: none; }
}

.ask-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem 0.75rem;
    flex-shrink: 0;
}
.ask-handle {
    display: none;
}
.ask-head-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ask-head .ask-title {
    flex: 1;
    line-height: 1;
}
.ask-head .ask-title strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--gray-100);
}
.ask-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.ask-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.ask-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) transparent;
}
.ask-msg {
    max-width: 88%;
    font-size: 0.94rem;
    font-weight: 350;
    line-height: 1.65;
    letter-spacing: -0.01em;
    animation: askMsgIn 0.32s var(--ease) both;
}
.ask-msg p {
    margin: 0;
}
.ask-msg p + p,
.ask-msg ul + p,
.ask-msg p + ul {
    margin-top: 0.65rem;
}
.ask-msg ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: none;
}
.ask-msg li {
    position: relative;
    padding-left: 0.15rem;
    margin-top: 0.4rem;
}
.ask-msg li:first-child { margin-top: 0; }
.ask-msg li::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}
@keyframes askMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.ask-msg.user {
    align-self: flex-end;
    padding: 0.7rem 1rem;
    background: rgba(223, 175, 78, 0.11);
    color: var(--gray-100);
    border-radius: 16px 16px 4px 16px;
    white-space: pre-wrap;
    word-break: break-word;
}
.ask-msg.bot {
    align-self: flex-start;
    padding: 0 0 0 1rem;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(223, 175, 78, 0.32);
    color: var(--gray-200);
    border-radius: 0;
    max-width: 100%;
}
.ask-msg.error {
    border-left-color: rgba(255, 120, 90, 0.5);
    color: #f0b3a3;
}

.ask-typing { display: inline-flex; gap: 5px; padding: 0.35rem 0.1rem; }
.ask-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.45;
    animation: askBlink 1.2s infinite;
}
.ask-typing i:nth-child(2) { animation-delay: 0.18s; }
.ask-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes askBlink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

.ask-intro { text-align: left; padding: 0.5rem 0.25rem 0.75rem; }
.ask-intro p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 350;
    line-height: 1.55;
    max-width: none;
    margin: 0 0 1rem;
}
.ask-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}
.ask-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    color: var(--gray-300);
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.ask-chip:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

.ask-compose {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent, rgba(6, 15, 17, 0.6));
    border-top: 1px solid rgba(198, 226, 220, 0.06);
}
.ask-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(198, 226, 220, 0.12);
    color: var(--white);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 0.8rem 1rem;
    min-height: 46px;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ask-input::placeholder { color: var(--text-faint); }
.ask-input:focus {
    border-color: rgba(223, 175, 78, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.ask-send {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #1c1400;
    border: none;
    font-family: inherit;
    font-weight: 700;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.ask-send:hover:not(:disabled) { background: var(--accent-strong); transform: translateY(-1px); }
.ask-send:disabled { opacity: 0.4; cursor: default; }

body.ask-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
body.ask-open .ask-dock {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .ask-dock,
    .ask-typewriter,
    .ask-typewriter-cursor,
    .ask-panel,
    .ask-msg {
        transition: none;
        animation: none;
    }
    .ask-dock.visible {
        transform: translateX(-50%) translateY(0);
    }
    .ask-typewriter-cursor {
        opacity: 0;
    }
}

@media (min-width: 769px) {
    .ask-overlay {
        align-items: stretch;
    }
    .ask-panel {
        width: min(520px, 100%);
        height: 100%;
        max-height: 100%;
        margin: 0 auto;
        border-radius: 0;
        border-left: 1px solid rgba(198, 226, 220, 0.08);
        border-right: 1px solid rgba(198, 226, 220, 0.08);
        animation: askPanelIn 0.38s var(--ease) both;
    }
    @keyframes askPanelIn {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ---- Mobile: hero + dock + chat ---- */
@media (max-width: 768px) {
    .hero-ask {
        width: 100%;
        margin-bottom: 1.1rem;
    }
    .hero-ask .ask-bar {
        min-height: 3.75rem;
        padding: 0.75rem 0.75rem 0.75rem 1rem;
        border-radius: 16px;
    }
    .hero-ask .ask-bar-input {
        font-size: 16px;
    }
    .cta-group-secondary {
        width: 100%;
    }
    .cta-group-secondary .btn {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
    }
    .ask-dock {
        width: calc(100% - 1rem);
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
    .ask-bar {
        min-height: 3.5rem;
        padding: 0.55rem 0.55rem 0.55rem 0.85rem;
        gap: 0.55rem;
        border-radius: 16px;
    }
    .ask-bar-input {
        font-size: 16px;
    }
    .ask-bar-send {
        padding: 0.65rem 0.95rem;
        min-height: 44px;
    }
    .ask-panel {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .ask-panel::before {
        left: 2rem;
        right: 2rem;
    }
    .ask-head {
        padding: 0.65rem 1rem 0.5rem;
        padding-top: max(0.65rem, env(safe-area-inset-top));
    }
    .ask-handle {
        display: block;
        align-self: center;
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: rgba(198, 226, 220, 0.22);
    }
    .ask-head-row {
        width: 100%;
    }
    .ask-close {
        width: 40px;
        height: 40px;
    }
    .ask-msgs {
        padding: 0.35rem 1rem 1rem;
        min-height: 0;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .ask-msg {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .ask-msg.user {
        max-width: 88%;
        padding: 0.7rem 0.95rem;
    }
    .ask-msg.bot {
        max-width: 100%;
        padding: 0 0 0 0.85rem;
    }
    .ask-compose {
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        gap: 0.5rem;
        flex-shrink: 0;
    }
    .ask-input {
        font-size: 16px;
        min-height: 48px;
        padding: 0.8rem 1rem;
        border-radius: 14px;
    }
    .ask-send {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }
    body.has-ask-dock footer {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    }
}

/* ================================================================
   Editorial trust note (end of guides)
   ================================================================ */
.editorial-note {
    max-width: var(--maxw);
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}
.editorial-note-inner {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 60%), var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
}
.editorial-note-inner h2 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.editorial-note-inner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 350;
    line-height: 1.7;
    max-width: 70ch;
    margin-bottom: 0.5rem;
}
.editorial-note-inner p:last-child { margin-bottom: 0; }
.editorial-note-inner a { color: var(--accent); text-decoration: none; }
.editorial-note-inner a:hover { color: var(--accent-strong); }

/* ================================================================
   Footer
   ================================================================ */
footer {
    background: linear-gradient(180deg, var(--bg), #050c0e);
    border-top: 1px solid var(--line);
    padding: 5rem 0 2.25rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 80vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

footer, .footer-brand, .footer-section, .footer-grid { text-align: left !important; }
.footer-brand { margin-bottom: 3rem; max-width: 30rem; }
.footer-brand .logo img { height: 108px; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; font-weight: 350; line-height: 1.65; margin-top: 1.2rem; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 2.25rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    font-family: var(--font);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    margin-bottom: 1.1rem;
}
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.34rem 0;
    font-size: 0.9rem;
    font-weight: 350;
    transition: color 0.18s ease, padding-left 0.2s var(--ease);
}
.footer-section a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
    color: var(--text-faint);
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ================================================================
   Responsive — homepage grids
   ================================================================ */
@media (max-width: 1024px) {
    .resource-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .resource-grid { grid-template-columns: 1fr; }
    .season-intro { grid-template-columns: 1fr; }
    .city-grid { grid-template-columns: 1fr; }
    .cta-group { justify-content: flex-start; }
    section { padding: 4.5rem 0; }
}

/* ================================================================
   Motion preferences
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
