/* ==========================================================================
   Gambusa "Clear water" theme: the cleaner, TimeItUp-style look.
   Loaded AFTER style.css and overrides it, so removing the <link> in layouts/app.blade.php brings the old look back.
   See the "Gambusa redesign" Figma file for the mockups this follows.
   ========================================================================== */

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

:root {
    --paper: #F5F8FA;
    --paper-deep: #EAF0F4;
    --ink: #13222D;
    --specimen: #0F2B3D;
    --specimen-light: #183D55;
    --teal: #1F7A72;
    --teal-light: #E6F3F1;
    --teal-deep: #176760;
    --persimmon: #EE6F2B;
    --persimmon-dark: #D35C1C;
    --ochre: #E0A12E;
    --brass: #C8D4DD;          /* was the brass of the old borders: now a cool light border */
    --brass-dark: #5C6C79;
    --line: #E2E8ED;
    --line-soft: #EDF1F4;
    --surface: #FFFFFF;
    --surface-soft: #F7FAFB;
    --surface-raised: #FFFFFF;
    --text-muted: #5C6C79;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(15, 43, 61, .05), 0 8px 24px rgba(15, 43, 61, .06);
    --shadow-soft: 0 1px 2px rgba(15, 43, 61, .05), 0 8px 24px rgba(15, 43, 61, .06);
    --shadow-lift: 0 2px 4px rgba(15, 43, 61, .06), 0 16px 40px rgba(15, 43, 61, .12);
    --font-display: 'Sora', 'Inter', sans-serif;
    --font-head: 'Sora', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Inter', system-ui, sans-serif;
}

/* ---- Base ---- */
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body::before { display: none; }                       /* the old paper grain */
.wrap { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
main { padding: 32px 0 80px; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
a { color: var(--teal); }
.mono { font-family: var(--font-body); }
/* the small uppercase labels that used to be monospace */
.section-kicker, .eyebrow { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.page-head h1 { font-size: 2.2rem; }
.page-head p.sub { font-family: var(--font-body); color: var(--text-muted); font-size: .95rem; }

/* ---- Header ---- */
header.site { background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; }
header.site .wrap { max-width: 1312px; min-height: 72px; }
header.site .brand { color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; text-shadow: none; }
header.site .brand-mark img { filter: none; }
header.site .primary-nav a, header.site nav a { color: #33444F; opacity: 1; font-weight: 500; font-size: .95rem; }
header.site .primary-nav a { padding: 8px 12px; margin-left: 2px; border-radius: 8px; border-bottom: 0; }
header.site .primary-nav a:hover { background: var(--surface-soft); color: var(--ink); text-decoration: none; border-bottom: 0; }
header.site .primary-nav a.active { color: var(--teal); background: var(--teal-light); font-weight: 600; }
header.site form.nav-search input { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
header.site form.nav-search input:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(31, 122, 114, .15); }
header.site .login-link { color: var(--ink); font-weight: 600; }
header.site .header-cta { border-radius: 10px; font-weight: 600; box-shadow: none; }
header.site .header-cta[href*="register"] { background: var(--teal); }
header.site .header-cta[href*="register"]:hover { background: var(--teal-deep); }
.life-list-badge { background: #FFF0E6; border: 0; box-shadow: none; border-radius: 10px; color: #B84E14; }
.life-list-badge::before, .life-list-star, .life-list-label small { display: none; }
.life-list-label strong { color: #B84E14; font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: 0; }
.life-list-badge:hover { background: #FFE5D3; transform: none; box-shadow: none; }
.life-list-seal { background: transparent; border: 0; box-shadow: none; color: #B84E14; }
.life-list-seal svg { stroke: #B84E14; }
.nav-avatar { background: var(--teal); color: #fff; border: 0; }
.account-dropdown { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); }
.account-dropdown::before { display: none; }
header.site .account-dropdown a, header.site .account-dropdown .menu-logout { color: var(--ink); border-radius: 8px; }
header.site .account-dropdown a:hover, header.site .account-dropdown .menu-logout:hover { background: var(--surface-soft); color: var(--teal); }
.nav-badge { background: var(--persimmon); color: #fff; font-family: var(--font-body); font-weight: 700; }

/* the old header rules were written for a dark bar: pale text and dimmed links. Reset them for the white one. */
header.site .header-tools > a { color: var(--ink); opacity: 1; font-weight: 600; }
header.site .header-tools > a:hover { background: var(--surface-soft); color: var(--teal); }
header.site .header-tools > a.header-cta { color: #fff; padding: 9px 16px; }
header.site .header-tools > a.header-cta:hover { background: var(--persimmon-dark); color: #fff; }
header.site .header-tools > a.header-cta[href*="register"]:hover { background: var(--teal-deep); }
header.site form.nav-search .search-mark { border-color: #5C6C79; }
header.site form.nav-search .search-mark::after { background: #5C6C79; }
header.site form.nav-search input::placeholder { color: #8A99A5; }

/* ---- Buttons ---- */
.btn { background: var(--teal); color: #fff; border-radius: 10px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; padding: 11px 20px; }
.btn:hover { background: var(--teal-deep); }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: var(--teal-deep); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--surface-soft); color: var(--teal); border-color: var(--brass); }
.btn.danger { background: #E5484D; }
.btn.small { padding: 7px 14px; font-size: .84rem; border-radius: 8px; }

/* ---- Cards and callouts ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; box-shadow: none; }
.flash { border-radius: 12px; box-shadow: none; }
.specimen-tag { background: var(--teal-light); border: 0; color: var(--teal-deep); border-radius: 999px; min-height: 0; padding: 6px 14px; gap: 8px; }
.specimen-tag::before { width: 6px; height: 6px; background: var(--teal); box-shadow: none; }
.specimen-tag .sp-name { font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: inherit; }
a.specimen-tag:hover { background: #D5ECE8; text-decoration: none; }
.ledger { border: 0; background: transparent; }
.ledger dt, .ledger dd { background: transparent; border-bottom: 1px solid var(--line-soft); }
.ledger dt { color: var(--text-muted); font-family: var(--font-body); }

/* ---- Home: hero ---- */
.home-hero { background: linear-gradient(180deg, #EAF5F4 0%, #F5F8FA 100%) !important; background-image: none; border: 0; border-radius: 28px; box-shadow: none; min-height: 0; padding: 56px 56px 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; color: var(--ink); overflow: visible; }
.home-hero-shade { display: none; }
.home-hero-content { max-width: none; padding: 0; color: var(--ink); position: static; }
.home-kicker { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; background: #FFF0E6; color: #B84E14; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.home-kicker span { display: none; }
.home-hero h1 { color: var(--ink); font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1.04; margin: 22px 0 0; text-shadow: none; }
.home-hero h1 em { font-style: normal; color: var(--teal); }
.home-hero p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; max-width: 34rem; margin: 20px 0 0; }
.home-hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero-actions .btn { padding: 14px 26px; font-size: 1rem; background: var(--teal); color: #fff; border: 0; }
.home-hero-actions .btn:hover { background: var(--teal-deep); }
.home-hero-actions .hero-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.home-hero-actions .hero-secondary:hover { background: var(--surface-soft); color: var(--teal); }
.home-proof { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; color: var(--text-muted); font-size: .9rem; border: 0; }
.home-proof span, .home-proof span:first-child { display: flex; flex-direction: column; padding: 0; border: 0; font-family: var(--font-body); color: var(--text-muted); }
.home-proof strong { color: var(--ink); font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: 0; }
.home-hero-visual { position: relative; min-height: 440px; }
.home-hero-visual::before { content: ''; position: absolute; right: -36px; top: -28px; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #DCEEF0; }
.hero-photo { position: relative; height: 440px; border-radius: 26px; background-size: cover; background-position: 62% center; box-shadow: 0 24px 60px rgba(15, 43, 61, .25); }
.hero-float { position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 43, 61, .16); padding: 12px 16px; color: var(--ink); max-width: 320px; }
.hero-float:hover { text-decoration: none; }
.hero-float .avatar { width: 38px; height: 38px; flex: none; }
.hero-float strong { display: block; font-size: .9rem; font-weight: 600; }
.hero-float small { color: var(--text-muted); font-size: .78rem; }

/* ---- Home: quick actions, headings, sidebar ---- */
.home-quick-actions { gap: 20px; margin-top: 24px; }
.quick-action { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.quick-action:hover { border-color: var(--brass); box-shadow: var(--shadow-lift); text-decoration: none; }
.quick-icon { background: var(--teal-light); color: var(--teal); border-radius: 12px; border: 0; font-family: var(--font-body); font-weight: 700; }
.quick-action strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.quick-action small { color: var(--text-muted); font-family: var(--font-body); }
.quick-arrow { color: #9AA9B4; }
.section-heading { border: 0; }
.section-heading h2 { font-size: 2rem; }
.text-link { color: var(--teal); font-weight: 600; font-family: var(--font-body); }
.home-side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.home-side-card h3 { font-size: 1.15rem; }
.community-stats strong { font-family: var(--font-head); }
.join-card { background: var(--specimen); border: 0; color: #fff; }
.join-card h3 { color: #fff; }
.join-card p { color: #A9BBC8; }
.join-mark { background: rgba(255, 255, 255, .1); border: 0; }

/* ---- Catch cards ---- */
.social-catch-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.social-catch-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.social-catch-card .stamp { display: none; }
.catch-card-head { border: 0; background: transparent; }
.observation-label { background: #EEF2F5; color: var(--text-muted); border: 0; border-radius: 99px; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .72rem; padding: 3px 10px; }
.social-catch-card .body h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.social-catch-card .meta, .catch-author small { color: var(--text-muted); font-family: var(--font-body); }
.catch-avatar, .avatar { background: var(--teal); color: #fff; }
.view-catch { color: var(--teal); font-weight: 600; font-family: var(--font-body); }

/* ---- Footer ---- */
footer.site { background: #fff; color: var(--text-muted); border-top: 1px solid var(--line); box-shadow: none; }
footer.site .footer-logo { color: var(--ink); font-family: var(--font-head); font-weight: 700; text-shadow: none; }
footer.site p { color: var(--text-muted); }
footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--teal); text-decoration: none; }
footer.site .footer-links strong { color: var(--ink); font-family: var(--font-body); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
footer.site .footer-bottom { border-top: 1px solid var(--line); color: var(--text-muted); }

/* ---- Forms and tables ---- */
.field input, .field select, .field textarea, input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea { border-radius: 10px; border: 1px solid var(--line); background: #fff; font-family: var(--font-body); }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(31, 122, 114, .15); }
.field label, label { font-family: var(--font-body); }
table th { font-family: var(--font-body); }

@media (max-width: 900px) {
    .wrap { padding-left: 18px; padding-right: 18px; }
    .home-hero { grid-template-columns: 1fr; padding: 32px 22px 36px; gap: 32px; border-radius: 22px; }
    .home-hero-visual { min-height: 0; }
    .hero-photo { height: 260px; }
    .hero-float { left: 12px; bottom: -18px; }
    .home-proof { gap: 24px; }
}

/* ---- Detail pages ---- */
.catch-detail h1 { font-size: 2.2rem; line-height: 1.1; }
.catch-detail p.sub, .species-head p.sub { font-weight: 500; }

/* ---- Page titles, empty photo tiles ---- */
.label-rule::before { display: none; }
.label-rule { border-bottom: 0; }
.photo-empty { background-color: #E9EFF3; background-image: none; color: #9FB2BF; }
.catch-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.catch-card .stamp { background: #fff; color: var(--teal-deep); border-radius: 8px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; }
.catch-card .body h3 { font-family: var(--font-head); font-weight: 600; }
.empty-state { background: #fff; border: 1px dashed var(--brass); border-radius: 16px; }

/* ---- Signed-in header: the old rules assumed a dark bar ---- */
.account-menu summary, .account-menu summary .account-name { color: var(--ink); }
.account-menu summary { border-radius: 10px; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--surface-soft); }
.account-name { font-weight: 600; font-size: .88rem; }

/* ---- Phones ---- */
header.site .primary-nav { scrollbar-width: none; }
header.site .primary-nav::-webkit-scrollbar { display: none; }
header.site .primary-nav a { white-space: nowrap; }
@media (max-width: 900px) {
    .hero-float { left: 10px; right: 10px; max-width: none; padding: 10px 12px; bottom: -22px; }
    .hero-float strong { font-size: .8rem; }
    .hero-float small { font-size: .72rem; }
    .home-hero { margin-bottom: 18px; }
    .quick-action { padding: 16px 18px; }
}

/* ---- Logged-out landing page (calm, centred, lots of air) ---- */
.lp-hero { text-align: center; padding: 72px 0 24px; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(31,122,114,.10), transparent 70%); }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .85rem; text-decoration: none; box-shadow: 0 1px 2px rgba(19,34,45,.05); }
.lp-pill-tag { background: var(--persimmon); color: #fff; font-weight: 700; font-size: .7rem; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.lp-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); margin: 28px auto 0; max-width: 14em; text-wrap: balance; }
.lp-hero h1 em { font-style: normal; color: var(--teal); }
.lp-sub { max-width: 36em; margin: 22px auto 0; font-size: 1.12rem; line-height: 1.6; color: #4A5C69; }
.lp-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.lp-actions .btn { padding: 14px 26px; font-size: 1rem; }
.lp-proof { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; font-size: .9rem; color: #5B6C78; }
.lp-proof strong { color: var(--ink); font-family: var(--font-head); }
.lp-window { max-width: 960px; margin: 56px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(15,43,61,.35), 0 2px 6px rgba(15,43,61,.06); overflow: hidden; }
.lp-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.lp-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DDE3; }
.lp-window-bar span { margin: 0 auto; transform: translateX(-24px); font-size: .75rem; color: #7A8A95; background: #EEF2F5; padding: 3px 28px; border-radius: 6px; }
.lp-window-body { padding: 28px; }
.lp-window-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.lp-window-head h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 0; }
.lp-window-head p { margin: 4px 0 0; color: #5B6C78; font-size: .92rem; }
.lp-chip { background: #E3F2F0; color: var(--teal); font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.lp-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.lp-stats span { display: block; font-size: .78rem; color: #6A7B87; }
.lp-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1.15; margin-top: 4px; color: var(--ink); }
.lp-stats small { color: #8A9AA5; font-size: .75rem; }
.lp-rows { display: grid; gap: 10px; }
.lp-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff; }
.lp-row:hover { border-color: #BFD6D3; background: #FAFDFD; }
.lp-thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; background: #E3F2F0 center/cover no-repeat; display: grid; place-items: center; }
.lp-row-text { flex: 1; min-width: 0; }
.lp-row-text strong, .lp-row-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row-text small { color: #6A7B87; font-size: .82rem; }
.lp-row-by { font-size: .8rem; color: var(--teal); font-weight: 600; }
.lp-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 1040px; margin: 72px auto 0; padding: 0 8px; text-align: center; }
.lp-idea-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #E3F2F0; color: var(--teal); font-weight: 700; font-family: var(--font-head); }
.lp-ideas h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 16px 0 8px; }
.lp-ideas p { color: #5B6C78; line-height: 1.6; margin: 0; }
.lp-section { padding: 112px 0 24px; }
.lp-heading { text-align: center; max-width: 36em; margin: 0 auto 44px; }
.lp-heading h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 10px 0 12px; }
.lp-heading p { color: #5B6C78; font-size: 1.05rem; margin: 0; }
.lp-grid { grid-template-columns: repeat(3, 1fr); }
.lp-cta { margin: 96px 0 24px; padding: 72px 24px; border-radius: 28px; background: var(--specimen); color: #fff; text-align: center; background-image: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(79,195,183,.28), transparent 70%); }
.lp-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.03em; margin: 0 0 12px; color: #fff; }
.lp-cta p { color: #B7CAD6; margin: 0 0 28px; font-size: 1.05rem; }
@media (max-width: 900px) {
    .lp-hero { padding-top: 40px; }
    .lp-window-body { padding: 18px; }
    .lp-stats { grid-template-columns: 1fr; }
    .lp-ideas { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
    .lp-grid { grid-template-columns: 1fr; }
    .lp-section { padding-top: 72px; }
    .lp-window-bar span { display: none; }
    .lp-row-by { display: none; }
}
.lp-actions .btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.lp-actions .btn:hover { background: #12756B; border-color: #12756B; }
.lp-actions .btn.hero-secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.lp-actions .btn.hero-secondary:hover { background: #F5F8FA; border-color: #C8D4DD; }
.lp-cta .btn { background: #1A9488; border-color: #1A9488; color: #fff; padding: 14px 28px; }

/* ---- Species + catch pages follow the landing look ---- */
.lp-heading-page { margin: 40px auto 36px; }
.lp-heading-page h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.035em; margin: 10px 0 12px; }
.lp-search { max-width: 440px; margin: 24px auto 0; }
.lp-search input { width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1rem; box-shadow: 0 1px 2px rgba(19,34,45,.05); }
.species-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.species-grid .catch-card { height: 100%; }
@media (max-width: 1000px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .species-grid { grid-template-columns: 1fr; } }
.home-catch-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .home-catch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-catch-grid { grid-template-columns: 1fr; } }

.catch-detail { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; gap: 44px; box-shadow: 0 20px 60px -30px rgba(15,43,61,.25); }
.catch-detail h1 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; }
.catch-detail .photo-full { border-radius: 14px; }
.detail-section { max-width: 920px; margin-left: auto !important; margin-right: auto !important; margin-top: 72px !important; }
.detail-section > h2 { font-family: var(--font-head) !important; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem) !important; letter-spacing: -.03em; text-align: center; margin: 0 0 24px; }
.detail-section > h2 .label-rule { display: inline; }
.detail-section .catch-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .catch-detail { padding: 18px; gap: 24px; } .detail-section .catch-grid { grid-template-columns: 1fr; } .detail-section { margin-top: 48px !important; } }
.detail-section, .catch-detail + section, section.detail-section { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 20px !important; padding: 32px !important; box-shadow: 0 20px 60px -34px rgba(15,43,61,.22) !important; }
.catch-detail + section, .catch-detail ~ section:not(.detail-section) { background: #fff; }
.detail-section .note, .catch-detail .note, .catch-detail + * .note { background: #F5F8FA !important; border: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important; }
.comments { max-width: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; box-shadow: 0 20px 60px -34px rgba(15,43,61,.22); margin-top: 28px; }

/* ---- Waters and Field Notes ---- */
.lp-search-wide { max-width: 620px; display: flex; gap: 10px; }
.lp-search-wide input { flex: 1; }
.lp-search-wide select { width: auto; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.lp-heading-action { margin-top: 18px; }
.water-grid { grid-template-columns: repeat(4, 1fr); }
.water-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(19,34,45,.04); transition: box-shadow .15s, transform .15s, border-color .15s; }
.water-card:hover { border-color: #BFD6D3; box-shadow: 0 14px 34px -18px rgba(15,43,61,.3); transform: translateY(-2px); }
.water-card strong { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; }
.water-card small { color: #6A7B87; font-size: .85rem; }
.water-type { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: #E3F2F0; color: var(--teal); padding: 3px 10px; border-radius: 999px; }
.water-unchecked { color: #9A7A2E; font-size: .75rem; }
.lp-tags { justify-content: center; margin: -8px 0 36px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(19,34,45,.04); transition: box-shadow .15s, transform .15s; }
.article-card:hover { box-shadow: 0 14px 34px -18px rgba(15,43,61,.3); transform: translateY(-2px); }
.article-link { color: var(--ink); text-decoration: none; flex: 1; }
.article-meta { font-size: .78rem; color: var(--teal); font-weight: 600; }
.article-card h3 { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; margin: 8px 0; }
.article-card p { color: #5B6C78; line-height: 1.55; margin: 0; font-size: .95rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-tags a { font-size: .75rem; color: var(--teal); background: #EEF6F5; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
@media (max-width: 1000px) { .water-grid { grid-template-columns: repeat(2, 1fr); } .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .water-grid, .article-grid { grid-template-columns: 1fr; } .lp-search-wide { flex-direction: column; } .lp-search-wide select { padding: 12px 18px; } }
.lp-heading-action .btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.lp-heading-action .btn.hero-secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }

/* ---- Landing hero: the water photo behind the headline ---- */
.lp-hero { background: none; padding-top: 24px; }
.lp-banner { position: relative; border-radius: 28px; overflow: hidden; background-size: cover; background-position: center 40%; color: #fff; }
.lp-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,42,.55) 0%, rgba(10,30,42,.62) 55%, rgba(10,30,42,.78) 100%); }
.lp-banner-inner { position: relative; padding: 64px 24px 150px; }
.lp-banner .lp-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(6px); }
.lp-banner h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.lp-banner h1 em { color: #7FE0D3; }
.lp-banner .lp-sub { color: #E4EEF2; }
.lp-banner .lp-proof { color: #D5E3EA; }
.lp-banner .lp-proof strong { color: #fff; }
.lp-banner .lp-actions .btn.hero-secondary { background: rgba(255,255,255,.95); }
.lp-hero .lp-window { margin-top: -96px; position: relative; }
@media (max-width: 900px) {
    .lp-banner { border-radius: 20px; }
    .lp-banner-inner { padding: 40px 18px 110px; }
    .lp-hero .lp-window { margin-top: -64px; }
}

/* ---- Phone: a slimmer header and a compact preview ---- */
@media (max-width: 700px) {
    header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; min-height: 0; padding-top: 8px; padding-bottom: 6px; }
    header.site .brand-cluster { order: 1; flex: 1 1 auto; min-width: 0; }
    header.site .header-tools { order: 2; margin-left: auto; flex: none; }
    header.site .primary-nav { order: 3; flex: 0 0 100%; }
    header.site .header-tools > a { padding: 8px 12px; font-size: .85rem; }
    .lp-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
    .lp-stats > div { padding: 10px 10px; }
    .lp-stats span { font-size: .68rem; }
    .lp-stats strong { font-size: 1.35rem; }
    .lp-stats small { display: none; }
    .lp-window-head p { display: none; }
    .lp-banner h1 { font-size: 2.35rem; }
}
@media (max-width: 700px) {
    header.site .brand-cluster { flex: 1 1 0 !important; width: auto !important; }
    header.site .header-tools { gap: 4px; }
}
.lp-rows { grid-template-columns: minmax(0, 1fr); }
.lp-row { min-width: 0; }
@media (max-width: 560px) { .detail-section { padding: 20px !important; } .comments { padding: 20px; } }

/* Every button is teal; orange stays for small badges only. */
.btn:not(.secondary):not(.danger):not(.hero-secondary) { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn:not(.secondary):not(.danger):not(.hero-secondary):hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.lp-cta .btn:not(.secondary) { background: #1A9488; border-color: #1A9488; }
.lp-cta .btn:not(.secondary):hover { background: #20A99B; border-color: #20A99B; }
.join-card .btn { background: #1A9488; }
.lp-heading-action { display: flex; justify-content: center; }

/* Header never spills sideways: drop the search box, then the username, then wrap the menu onto its own row. */
@media (max-width: 1300px) { header.site form.nav-search { display: none; } }
@media (max-width: 1100px) { header.site .account-menu .account-name { display: none; } }
@media (max-width: 960px) {
    header.site .wrap { flex-wrap: wrap; padding-bottom: 0; }
    header.site .primary-nav { order: 3; flex: 0 0 100%; width: 100%; overflow-x: auto; padding: 2px 0 8px; }
    header.site .header-tools { margin-left: auto; }
}

/* Profile: keep the name clear of the cover photo's bottom edge. */
@media (min-width: 601px) { .profile-header .who { padding-bottom: 0; margin-bottom: -18px; } .profile-header { margin-bottom: 32px; } }

/* ---- Signed-in home: short welcome banner, overlapping quick actions, feed, community row ---- */
.mh-hero .lp-banner-inner { padding: 48px 24px 118px; }
.mh-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.mh-hero .home-quick-actions { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: -62px auto 0; padding: 0 20px; background: none; border: 0; box-shadow: none; }
.mh-hero .quick-action { min-width: 0; }
.mh-feed { padding-top: 76px; }
.mh-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 72px auto 0; }
.mh-extras .home-side-card, .mh-extras .sidebar-widget { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; min-width: 0; }
.mh-extras .sidebar-widget { text-align: center; }
.mh-extras .side-card-btn { width: auto; display: inline-block; }
@media (max-width: 860px) {
    .mh-hero .lp-banner-inner { padding: 36px 18px 100px; }
    .mh-hero .home-quick-actions { grid-template-columns: minmax(0, 1fr); margin-top: -56px; padding: 0; gap: 10px; }
    .mh-feed { padding-top: 56px; }
    .mh-extras { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}
.mh-hero .quick-action { text-align: left; }
@media (max-width: 560px) {
    .mh-hero .lp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
    .mh-hero .lp-proof span { display: flex; flex-direction: column; align-items: center; font-size: .76rem; line-height: 1.25; }
    .mh-hero .lp-proof strong { font-size: 1.4rem; }
}

/* ---- Sponsors: a quiet "supporting Gambusa" card (feed, species, water) and a supported-by line in the footer ---- */
.sponsor-card { display: flex; flex-direction: column; background: #FAFCFC; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; text-align: left; min-width: 0; }
.sponsor-media { display: block; position: relative; background: #F1F6F7; aspect-ratio: 4 / 3; overflow: hidden; }
.sponsor-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sponsor-body { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.sponsor-kicker { margin: 0 0 6px; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.sponsor-card h3 { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.25; margin: 0 0 8px; }
.sponsor-card h3 a { color: var(--ink); text-decoration: none; }
.sponsor-card h3 a:hover { color: var(--teal); }
.sponsor-text { margin: 0 0 14px; color: #4F616D; font-size: .92rem; line-height: 1.5; }
.sponsor-cta { align-self: flex-start; margin-top: auto; }
.sponsor-wide { flex-direction: row; max-width: 920px; margin: 50px 12.5px 0; }
.sponsor-wide .sponsor-media { flex: 0 0 260px; aspect-ratio: auto; min-height: 190px; }
.sponsor-wide .sponsor-body { justify-content: center; }
@media (max-width: 640px) {
    .sponsor-wide { flex-direction: column; margin-top: 40px; margin-left: 0; margin-right: 0; }
    .sponsor-wide .sponsor-media { flex: none; aspect-ratio: 16 / 9; }
}
footer.site .footer-sponsors { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-muted); }
footer.site .footer-sponsors a { color: var(--teal); font-weight: 600; }
footer.site .footer-sponsors .footer-sponsor-more { font-weight: 500; }
