/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    color-scheme: light;
    --bg: #f8f4ec;
    --surface: #ffffff;
    --surface-2: #f1ebdc;
    --surface-elevated: #fffefb;
    --border: #e6dec9;
    --border-strong: #cfc4a8;
    --text: #2a2422;
    --text-muted: #6b5f53;
    --text-soft: #8b7f72;

    --accent: #c44a2a;
    --accent-hover: #a83e22;
    --accent-soft: #fdebe4;

    --accent-2: #1d5e6e;
    --accent-2-hover: #154857;
    --accent-2-soft: #def1f5;

    --warn: #d4a72c;
    --success: #4a8f53;

    --shadow-xs: 0 1px 2px rgba(42, 36, 34, 0.05);
    --shadow-sm: 0 2px 6px rgba(42, 36, 34, 0.06), 0 1px 2px rgba(42, 36, 34, 0.04);
    --shadow-md: 0 6px 16px rgba(42, 36, 34, 0.08), 0 2px 4px rgba(42, 36, 34, 0.04);
    --shadow-lg: 0 16px 40px rgba(42, 36, 34, 0.12), 0 4px 12px rgba(42, 36, 34, 0.06);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --container-max: 1240px;
    --header-h: 64px;

    --font-display: "Fraunces", "Iowan Old Style", "Apple Garamond", "Baskerville", Georgia, serif;
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1a1612;
    --surface: #24201c;
    --surface-2: #2f2a25;
    --surface-elevated: #2c2722;
    --border: #3a342e;
    --border-strong: #4a4239;
    --text: #f0e9dc;
    --text-muted: #c4b9a8;
    --text-soft: #968b7c;

    --accent: #e76c45;
    --accent-hover: #f17a55;
    --accent-soft: #3a2820;

    --accent-2: #4ba8be;
    --accent-2-hover: #6cbed1;
    --accent-2-soft: #1d3540;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================ RESET / BASE ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: var(--accent-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2-hover); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: var(--radius);
    font-weight: 600; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================================ HEADER ============================================ */
header.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex; align-items: center; gap: 16px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    color: var(--text); letter-spacing: -0.01em;
}
.logo:hover { color: var(--text); }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
}
.header-nav { display: flex; gap: 4px; margin-left: 8px; }
.header-nav a {
    color: var(--text-muted); font-weight: 500; font-size: 0.93rem;
    padding: 8px 12px; border-radius: var(--radius);
    transition: background-color 0.15s, color 0.15s;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-nav a.active { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius);
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.lang-select {
    appearance: none; -webkit-appearance: none;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 7px 28px 7px 12px;
    color: var(--text); font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat; background-position: right 8px center;
    transition: border-color 0.15s, background-color 0.15s;
}
.lang-select:hover { border-color: var(--border-strong); background-color: var(--surface-2); }
.hamburger { display: none; }

/* ============================================ HERO ============================================ */
.hero {
    position: relative;
    padding: 80px 20px 56px;
    text-align: center; overflow: hidden;
    background:
        radial-gradient(ellipse at top left, color-mix(in oklab, var(--accent) 14%, transparent), transparent 55%),
        radial-gradient(ellipse at top right, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 55%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" preserveAspectRatio="none" opacity="0.06"><path d="M0 100 Q300 30 600 100 T1200 100 V200 H0 Z" fill="%231d5e6e"/></svg>');
    background-repeat: repeat-x; background-position: bottom; background-size: 1200px 200px;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--text-muted);
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--border); box-shadow: var(--shadow-xs); margin-bottom: 18px;
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 25%, transparent);
}
h1.hero-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05;
    letter-spacing: -0.02em; margin: 0 0 16px; color: var(--text);
}
h1.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--text-muted); max-width: 620px; margin: 0 auto 28px;
}
.hero-search { position: relative; max-width: 520px; margin: 0 auto; }
.hero-search input {
    width: 100%; padding: 16px 18px 16px 50px;
    font: inherit; font-size: 1rem;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search input:focus {
    outline: none; border-color: var(--accent-2);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 20%, transparent), var(--shadow-md);
}
.hero-search svg.search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--text-soft); pointer-events: none;
}
.suggestions {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: var(--surface-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    max-height: 320px; overflow-y: auto; z-index: 50;
    display: none; text-align: left;
}
.suggestions.show { display: block; }
.suggestion-item {
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: var(--surface-2); }
.suggestion-item .name { font-weight: 600; }
.suggestion-item .loc { color: var(--text-muted); font-size: 0.85rem; margin-left: auto; }

.stats-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 32px;
    margin-top: 44px; padding-top: 28px;
    border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.stat { text-align: center; }
.stat .num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--accent); line-height: 1; letter-spacing: -0.01em;
}
.stat .lbl {
    margin-top: 4px; font-size: 0.84rem; color: var(--text-muted);
    font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
}

/* ============================================ FEATURED SHAPER ============================================ */
.featured-strip {
    max-width: var(--container-max); margin: -20px auto 0;
    padding: 0 20px; position: relative; z-index: 2;
}
.featured-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 18px 22px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.featured-card .featured-mark {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; padding: 5px 12px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    white-space: nowrap;
}
.featured-card .featured-body { flex: 1; min-width: 200px; }
.featured-card h3 {
    font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 4px;
    color: var(--text); letter-spacing: -0.01em;
}
.featured-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.featured-card .featured-link {
    padding: 9px 18px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.featured-card .featured-link:hover { background: var(--accent-hover); color: #fff; }

/* ============================================ CONTROL BAR ============================================ */
.control-bar {
    position: sticky; top: var(--header-h); z-index: 50;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border); padding: 12px 20px;
}
.control-inner {
    max-width: var(--container-max); margin: 0 auto;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.filter-chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--text);
    transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip select {
    appearance: none; -webkit-appearance: none;
    background: transparent; border: none; font: inherit; color: var(--text);
    padding: 0; padding-right: 16px; cursor: pointer;
}
.filter-chip svg { color: var(--text-muted); }
.filter-chip.has-value {
    background: var(--accent-2-soft); border-color: var(--accent-2); color: var(--accent-2);
}
.filter-chip.has-value svg { color: var(--accent-2); }

.results-count {
    font-size: 0.88rem; color: var(--text-muted); margin-left: auto; white-space: nowrap;
}
.results-count strong { color: var(--text); }

.view-toggle {
    display: inline-flex; background: var(--surface);
    border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px;
}
.view-toggle button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; border: none;
    background: transparent; color: var(--text-muted);
    font-size: 0.86rem; font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}
.view-toggle button.active { background: var(--accent-2); color: #fff; }

.clear-btn {
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500; display: none;
}
.clear-btn:hover { background: var(--surface-2); color: var(--text); }
.clear-btn.show { display: inline-flex; }

/* ============================================ MAIN ============================================ */
main { padding: 32px 20px 64px; }
.container-main { max-width: var(--container-max); margin: 0 auto; }

.shaper-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}

.shaper-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-xs);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex; flex-direction: column; gap: 10px;
}
.shaper-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong);
}
.shaper-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent), var(--shadow-md);
}
.card-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.card-name {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    color: var(--text); line-height: 1.2; margin: 0; letter-spacing: -0.005em;
}
.card-name a { color: inherit; }
.card-name a:hover { color: var(--accent); }
.card-loc {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 0.88rem; margin: 0;
}
.card-loc svg { color: var(--accent); flex-shrink: 0; }
.badges {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px;
}
.badge {
    display: inline-flex; align-items: center;
    font-size: 0.72rem; font-weight: 600; padding: 3px 8px;
    border-radius: 999px; background: var(--surface-2); color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: capitalize; letter-spacing: 0.01em;
}
.badge.eco { background: color-mix(in oklab, var(--success) 14%, var(--surface-2)); color: var(--success); border-color: color-mix(in oklab, var(--success) 30%, var(--border)); }
.badge.wood { background: color-mix(in oklab, var(--warn) 14%, var(--surface-2)); color: color-mix(in oklab, var(--warn) 100%, var(--text-muted) 50%); border-color: color-mix(in oklab, var(--warn) 30%, var(--border)); }

.card-links {
    display: flex; gap: 6px; margin-top: auto;
    padding-top: 6px; border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}
.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--radius);
    background: var(--surface-2); color: var(--text);
    font-size: 0.82rem; font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.card-link:hover { background: var(--accent-2-soft); color: var(--accent-2); border-color: var(--accent-2); }
.card-link svg { width: 14px; height: 14px; }

.card-actions {
    position: absolute; top: 12px; right: 12px;
    display: flex; gap: 4px;
}
.card-actions button {
    width: 30px; height: 30px; border-radius: 8px;
    background: transparent; border: none; color: var(--text-soft);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.15s, color 0.15s;
}
.card-actions button:hover { background: var(--surface-2); color: var(--text); }
.card-actions button.fav-active { color: var(--accent); }
.card-actions button.fav-active svg { fill: var(--accent); }

.country-section { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 100px); }
.country-section:first-of-type { margin-top: 24px; }
.country-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.country-header h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); margin: 0;
    letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px;
}
.country-header .count { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state h3 {
    font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 0 0 8px;
}
.empty-state button {
    margin-top: 16px; padding: 10px 20px; border-radius: 999px;
    background: var(--accent); color: #fff; border: none; font-weight: 600;
}
.empty-state button:hover { background: var(--accent-hover); }

#mapView {
    display: none; height: calc(100vh - var(--header-h) - 80px); min-height: 500px;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
body[data-view="map"] #mapView { display: block; }
body[data-view="map"] #listView { display: none; }
.leaflet-popup-content { font-family: var(--font-ui); }
.leaflet-popup-content h4 { font-family: var(--font-display); margin: 0 0 4px; font-size: 1.05rem; }
.leaflet-popup-content p { margin: 0 0 6px; color: #555; font-size: 0.88rem; }

/* In-feed ad slot (only rendered when FEED_AD_SLOT_ID is set in app.js) */
.ad-slot-feed {
    grid-column: 1 / -1;
    padding: 8px 0;
    text-align: center;
}
.ad-slot-feed ins.adsbygoogle { min-height: 100px; }

/* ============================================ SHARE POPOVER ============================================ */
.share-popover {
    position: fixed;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
    min-width: 180px;
}
.share-popover.show { display: flex; }
.share-popover button, .share-popover a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    background: transparent; border: none; color: var(--text);
    font: inherit; font-size: 0.88rem; cursor: pointer; text-decoration: none;
    transition: background-color 0.15s;
}
.share-popover button:hover, .share-popover a:hover { background: var(--surface-2); color: var(--text); }
.share-popover svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ============================================ NEWSLETTER ============================================ */
.newsletter {
    margin: 80px auto 0; max-width: var(--container-max);
    padding: 40px 28px; background: var(--surface-2);
    border-radius: var(--radius-xl); border: 1px solid var(--border);
    text-align: center;
}
.newsletter h2 {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin: 0 0 8px; color: var(--text); letter-spacing: -0.015em;
}
.newsletter p {
    color: var(--text-muted); max-width: 460px; margin: 0 auto 22px;
    font-size: 0.96rem;
}
.newsletter form {
    display: flex; gap: 8px; max-width: 460px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter input[type="email"] {
    flex: 1; min-width: 220px;
    padding: 12px 16px; font: inherit; font-size: 0.95rem;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 999px;
}
.newsletter input[type="email"]:focus {
    outline: none; border-color: var(--accent-2);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2) 20%, transparent);
}
.newsletter button {
    padding: 12px 22px; border-radius: 999px; border: none;
    background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem;
    transition: background-color 0.15s, transform 0.15s;
}
.newsletter button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.newsletter .nl-msg { margin-top: 12px; font-size: 0.88rem; color: var(--success); min-height: 1.2em; }
.newsletter .nl-msg.error { color: var(--accent); }

/* ============================================ CTA SECTION ============================================ */
.cta-section {
    margin: 80px auto 0; max-width: var(--container-max); padding: 40px;
    background: linear-gradient(135deg, var(--accent-2) 0%, color-mix(in oklab, var(--accent-2) 70%, var(--accent) 30%) 100%);
    border-radius: var(--radius-xl); color: #fff;
    text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.08"><path d="M0 50 Q25 20 50 50 T100 50 V100 H0 Z" fill="white"/></svg>');
    background-repeat: repeat-x; background-size: 400px 100px;
    background-position: bottom; pointer-events: none;
}
.cta-section h2 {
    position: relative; font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; letter-spacing: -0.015em;
}
.cta-section p {
    position: relative; font-size: 1.05rem; opacity: 0.92;
    max-width: 540px; margin: 0 auto 22px;
}
.cta-buttons {
    position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; border: none; text-decoration: none;
    transition: transform 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-primary { background: #fff; color: var(--accent-2); }
.btn-primary:hover { transform: translateY(-2px); background: #fff; color: var(--accent-2-hover); box-shadow: var(--shadow-md); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.15); color: #fff;
    backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text); }

/* ============================================ FOOTER ============================================ */
footer.site-footer {
    margin-top: 80px; background: var(--surface-2);
    border-top: 1px solid var(--border); padding: 48px 20px 24px;
}
.footer-inner {
    max-width: var(--container-max); margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col h4 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    margin: 0 0 14px; color: var(--text);
}
.footer-col p, .footer-col a {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 10px; }
.donate-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.donate-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    font-weight: 600; font-size: 0.88rem;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.donate-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.donate-btn.paypal { background: #ffc439; color: #003087; border-color: #ffc439; }
.donate-btn.paypal:hover { background: #ffb800; color: #003087; border-color: #ffb800; }
.footer-bottom {
    max-width: var(--container-max); margin: 32px auto 0;
    padding-top: 20px; border-top: 1px solid var(--border);
    text-align: center; font-size: 0.84rem; color: var(--text-soft);
}

/* ============================================ BACK TO TOP ============================================ */
.btn-top {
    position: fixed; bottom: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none;
    box-shadow: var(--shadow-md); display: none;
    align-items: center; justify-content: center; z-index: 40;
    transition: transform 0.2s, background-color 0.15s;
}
.btn-top:hover { background: var(--accent-hover); transform: translateY(-3px); }
.btn-top.show { display: inline-flex; }

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 900px) {
    .header-nav { display: none; }
    .hamburger {
        display: inline-flex; align-items: center; justify-content: center;
        background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
        width: 38px; height: 38px; color: var(--text);
    }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.mobile-menu {
    position: fixed; inset: 0; background: var(--bg); z-index: 200;
    transform: translateY(-100%); transition: transform 0.3s ease;
    padding: 64px 24px 24px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.show { transform: translateY(0); }
.mobile-menu a {
    color: var(--text); font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 600;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-close {
    position: absolute; top: 14px; right: 14px;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
    width: 40px; height: 40px; color: var(--text);
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
    .hero { padding: 56px 16px 40px; }
    .stats-strip { gap: 24px; }
    .stat .num { font-size: 1.6rem; }
    .control-bar { padding: 10px 14px; }
    .filter-chip { font-size: 0.82rem; padding: 7px 12px; }
    .view-toggle button span { display: none; }
    .results-count { width: 100%; margin-left: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    main { padding: 24px 14px 48px; }
}
@media print {
    header.site-header, .control-bar, .cta-section, footer.site-footer, .btn-top, .newsletter { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================ BREADCRUMBS ============================================ */
.breadcrumbs {
    max-width: var(--container-max); margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.84rem; color: var(--text-soft);
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs .sep { color: var(--text-soft); }
.breadcrumbs span[aria-current] { color: var(--text); font-weight: 500; }

/* ============================================ SHAPER DETAIL PAGE ============================================ */
.shaper-hero {
    max-width: var(--container-max); margin: 24px auto 0; padding: 32px 20px;
    background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start;
}
.shaper-hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1;
    letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text);
}
.shaper-hero .shaper-loc {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted); margin: 0 0 18px; font-size: 1.02rem;
}
.shaper-hero .shaper-loc svg { color: var(--accent); }
.shaper-hero .shaper-badges {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px;
}
.shaper-hero .shaper-desc {
    color: var(--text); font-size: 1rem; margin: 0 0 22px; line-height: 1.7;
}
.shaper-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.shaper-actions a, .shaper-actions button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px;
    font-weight: 600; font-size: 0.92rem; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.shaper-actions a:hover, .shaper-actions button:hover {
    background: var(--accent-2-soft); color: var(--accent-2); border-color: var(--accent-2);
}
.shaper-actions a.primary {
    background: var(--accent-2); color: #fff; border-color: var(--accent-2);
}
.shaper-actions a.primary:hover {
    background: var(--accent-2-hover); color: #fff; border-color: var(--accent-2-hover);
}

.shaper-map {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
    min-height: 280px; height: 100%;
}

.section-block {
    max-width: var(--container-max); margin: 56px auto 0; padding: 0 20px;
}
.section-block h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 0 0 18px;
    color: var(--text); letter-spacing: -0.015em;
}

@media (max-width: 800px) {
    .shaper-hero { grid-template-columns: 1fr; padding: 24px 18px; }
    .shaper-map { min-height: 240px; }
}

/* ============================================ GUIDES / ARTICLE PROSE ============================================ */
.article-hero {
    max-width: 800px; margin: 24px auto 0; padding: 24px 20px 0;
}
.article-hero .kicker {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-weight: 600; font-size: 0.84rem;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.article-hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1;
    letter-spacing: -0.02em; margin: 0 0 14px; color: var(--text);
}
.article-hero .article-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    color: var(--text-muted); font-size: 0.9rem; margin: 0;
}

.article-cover {
    max-width: 1000px; margin: 32px auto;
    height: 280px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-2), color-mix(in oklab, var(--accent-2) 60%, var(--accent) 40%));
    position: relative; overflow: hidden;
}
.article-cover::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 280" preserveAspectRatio="none" opacity="0.15"><path d="M0 200 Q300 80 600 180 T1200 160 V280 H0 Z" fill="white"/><path d="M0 240 Q300 140 600 220 T1200 200 V280 H0 Z" fill="white" opacity="0.5"/></svg>');
    background-size: cover; background-position: bottom;
}

.article {
    max-width: 720px; margin: 0 auto 64px;
    padding: 0 20px;
    color: var(--text); font-size: 1.05rem; line-height: 1.75;
}
.article > * + * { margin-top: 1em; }
.article h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.6rem; margin-top: 2.2em; margin-bottom: 0.4em;
    letter-spacing: -0.015em; color: var(--text);
}
.article h3 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.25rem; margin-top: 1.8em; margin-bottom: 0.3em; color: var(--text);
}
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.1em; }
.article li { margin: 0.4em 0; }
.article blockquote {
    margin: 1.4em 0; padding: 14px 20px;
    border-left: 4px solid var(--accent);
    background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-muted);
}
.article a { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article a:hover { color: var(--accent-2-hover); }
.article hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.article .toc {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px;
    margin: 24px 0 36px;
}
.article .toc h4 {
    font-family: var(--font-display); margin: 0 0 8px;
    font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); font-weight: 700;
}
.article .toc ol {
    list-style: decimal-leading-zero inside; padding: 0; margin: 0;
}
.article .toc li { margin: 4px 0; }
.article .toc a { color: var(--text); text-decoration: none; }
.article .toc a:hover { color: var(--accent-2); }

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.guide-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.guide-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong);
}
.guide-card .guide-cover {
    height: 140px;
    background: linear-gradient(135deg, var(--accent-2), color-mix(in oklab, var(--accent-2) 60%, var(--accent) 40%));
    position: relative;
}
.guide-card .guide-cover.alt-1 { background: linear-gradient(135deg, var(--accent), #d97a44); }
.guide-card .guide-cover.alt-2 { background: linear-gradient(135deg, #2c8a8a, var(--accent-2)); }
.guide-card .guide-cover.alt-3 { background: linear-gradient(135deg, var(--success), #2c8a8a); }
.guide-card .guide-body { padding: 18px 20px; color: inherit; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.guide-card .guide-kicker {
    color: var(--accent); font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.guide-card h3 {
    font-family: var(--font-display); font-size: 1.15rem; margin: 0;
    color: var(--text); line-height: 1.2; letter-spacing: -0.005em;
}
.guide-card p {
    color: var(--text-muted); font-size: 0.9rem; margin: 4px 0 0;
}
.guide-card .guide-meta {
    margin-top: auto; padding-top: 10px;
    color: var(--text-soft); font-size: 0.82rem;
}

.related-shapers {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

/* ============================================ FORM (add-shaper) ============================================ */
.form-container {
    max-width: 720px; margin: 32px auto 64px; padding: 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.form-field {
    display: flex; flex-direction: column; margin-bottom: 18px;
}
.form-field label {
    font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--text);
}
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
    padding: 11px 14px; font: inherit; font-size: 0.96rem;
    background: var(--surface-elevated); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--accent-2);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2) 20%, transparent);
}
.form-field .hint {
    margin-top: 6px; font-size: 0.82rem; color: var(--text-soft);
}
.form-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .form-field-row { grid-template-columns: 1fr; } }

.checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
}
.checkbox-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 999px; background: var(--surface-2);
    font-size: 0.86rem; cursor: pointer;
}
.checkbox-chip input { accent-color: var(--accent); margin: 0; }

.form-submit-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-success, .form-error { padding: 14px 16px; border-radius: var(--radius); margin-top: 14px; font-size: 0.92rem; }
.form-success { background: color-mix(in oklab, var(--success) 14%, var(--surface-2)); color: var(--success); border: 1px solid color-mix(in oklab, var(--success) 35%, var(--border)); }
.form-error { background: color-mix(in oklab, var(--accent) 14%, var(--surface-2)); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border)); }
