/* geo-app — minimal, provenance-first UI */
:root {
  --color-primary: #1a6b3c;
  --color-primary-light: #e8f5e9;
  --color-primary-border: #bbf7d0;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-muted: #6b7280;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: var(--color-bg); color: var(--color-text); }
.navbar { background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  padding: .75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-weight: 700; color: var(--color-primary); text-decoration: none; font-size: 1.1rem; }
.nav-links a { margin-left: 1.2rem; color: var(--color-muted); text-decoration: none; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.footer { text-align: center; padding: 1.5rem; color: var(--color-muted); font-size: .85rem; }
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.lead { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn { padding: .6rem 1.2rem; border-radius: var(--radius); font-size: .95rem; cursor: pointer;
  text-decoration: none; border: none; display: inline-block; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }

/* Badges */
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600; margin-right: .25rem; }
.badge-verified, .badge-verified_fact { background: #d1fae5; color: #065f46; }
.badge-reviewed { background: #dbeafe; color: #1e40af; }
.badge-recollection, .badge-personal_recollection { background: #fef3c7; color: #92400e; }
.badge-community, .badge-community_memory { background: #ede9fe; color: #5b21b6; }
.badge-disputed { background: #fee2e2; color: #991b1b; }
.badge-draft, .badge-unknown { background: #f3f4f6; color: #374151; }
.badge-hidden { background: #e5e7eb; color: #9ca3af; }
.badge-memorial, .badge-education { background: #0ea5e9; color: #fff; }

/* Cards */
.timeline-card, .result-card, .story-block, .lesson-block {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.timeline-meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.date { font-size: .85rem; color: var(--color-muted); }
.place { font-size: .9rem; color: var(--color-muted); margin-top: .25rem; }
.sources { color: var(--color-muted); font-size: .8rem; margin-top: .4rem; }
.provenance { margin-top: .5rem; font-size: .85rem; color: var(--color-muted); }
.trust-labels { margin: .5rem 0; }
.discussion-prompt { background: #f0f9ff; border-left: 3px solid var(--color-primary);
  padding: .6rem .8rem; margin-top: .75rem; border-radius: 0 var(--radius) var(--radius) 0; }
.provenance-notice { background: #ecfdf5; border: 1px solid #6ee7b7; padding: .75rem 1rem;
  border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .9rem; }

/* Forms */
.search-form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-input { flex: 1; padding: .6rem .9rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 1rem; }
.timeline-filters { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.timeline-filters select { padding: .4rem .7rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: .3rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .5rem .75rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: .95rem; }
.contribution-form { max-width: 600px; }
.submit-msg { margin-top: .75rem; }
.submit-msg.success { color: #065f46; }
.submit-msg.error { color: #991b1b; }
.hidden { display: none; }

/* Groups */
.group-title { font-size: 1.1rem; margin: 1.5rem 0 .5rem; border-bottom: 1px solid var(--color-border); padding-bottom: .3rem; }
.result-cards { display: grid; gap: .75rem; }
.snippet { font-size: .9rem; color: var(--color-muted); }
.result-meta { margin-top: .4rem; }
.result-count { color: var(--color-muted); margin-bottom: .75rem; }
.empty { color: var(--color-muted); font-style: italic; }
.trust-summary { background: #f8fafc; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.memorial-header { margin-bottom: 2rem; }
.lifespan { font-size: 1.1rem; color: var(--color-muted); margin: .25rem 0; }
.summary { border-left: 4px solid var(--color-primary); padding-left: 1rem;
  color: var(--color-muted); font-style: italic; margin: .75rem 0; }
.memorial-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.story-footer { text-align: center; color: var(--color-muted); font-size: .8rem; margin-top: 1.5rem; }

/* Map legend */
.legend-list { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .3rem; }
.dot-born_in { background: #dc2626; }
.dot-lived_in { background: #2563eb; }
.dot-studied_in { background: #7c3aed; }
.dot-worked_in { background: #d97706; }
.dot-died_in { background: #374151; }

/* Phase 15 homepage */
.hero-search-form { display: flex; gap: .5rem; max-width: 520px; margin: 0 auto 1.5rem; }
.hero-search-input { flex: 1; padding: .65rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 1rem; }

.trust-statement { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 2.5rem 0; }
.trust-item { display: flex; gap: .75rem; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.trust-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.trust-item strong { display: block; margin-bottom: .2rem; }
.trust-item p { font-size: .88rem; color: var(--color-muted); margin: 0; }

.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin: 2rem 0; }
.lane-card { background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--color-text);
  box-shadow: var(--shadow); transition: box-shadow .15s; display: block; }
.lane-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10); }
.lane-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.lane-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.lane-card p { font-size: .88rem; color: var(--color-muted); margin: 0; }

.ai-notice { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--radius);
  padding: .85rem 1.1rem; font-size: .87rem; color: #0c4a6e; margin: 2rem 0 1rem; }
.ai-notice strong { display: inline; }

.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin: 1.5rem 0; }
.media-item { margin: 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.media-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.media-item figcaption { padding: .5rem .75rem; font-size: .82rem; color: var(--color-muted); }
.media-video iframe { width: 100%; aspect-ratio: 16/9; display: block; }

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--color-text); padding: .2rem .4rem; }
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: .5rem 1.5rem 1rem; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-links a { margin-left: 0; padding: .5rem 0;
    border-bottom: 1px solid var(--color-border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .navbar { position: relative; flex-wrap: wrap; }
}

/* ── Phase 15b shared components ────────────────────────────────────────── */

/* Agent card (directory + featured) */
.agent-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 10px; padding: .85rem 1rem; text-decoration: none;
  color: var(--color-text); display: block;
  transition: box-shadow .15s, border-color .15s;
}
.agent-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); border-color: var(--color-primary); }
.agent-card-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.agent-card-years { font-size: .78rem; color: var(--color-muted); margin-top: .15rem; }
.agent-card-badges { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .25rem; }

/* Capsule card (discover + timeline) */
.capsule-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 10px; padding: .85rem 1rem; text-decoration: none;
  color: var(--color-text); display: block;
  transition: box-shadow .15s, border-color .15s;
}
.capsule-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); border-color: var(--color-primary); }
.capsule-card-time { font-size: .72rem; color: var(--color-muted); text-transform: uppercase; margin-bottom: .3rem; }
.capsule-card-headline { font-weight: 600; font-size: .9rem; line-height: 1.4; }
.capsule-card-summary { font-size: .8rem; color: var(--color-muted); margin-top: .3rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.capsule-card-place { font-size: .75rem; color: var(--color-primary); margin-top: .35rem; }

/* Life thread */
.lt-card { background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 10px; padding: .85rem 1rem; margin-bottom: .75rem; }
.lt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary);
  flex-shrink: 0; margin-top: .35rem; }
.lt-role-badge { display: inline-block; font-size: .68rem; padding: .1rem .45rem;
  border-radius: 8px; border: 1px solid var(--color-primary-border);
  background: var(--color-primary-light); color: var(--color-primary); }

/* Place cell / twin surface */
.place-chip { display: inline-flex; align-items: center; gap: .3rem;
  background: var(--color-primary-light); border: 1px solid var(--color-primary-border);
  color: var(--color-primary); border-radius: 20px; padding: .2rem .7rem;
  font-size: .8rem; text-decoration: none; }
.place-chip:hover { background: var(--color-primary-border); }

/* Status pills */
.pill { display: inline-block; font-size: .7rem; padding: .1rem .5rem;
  border-radius: 10px; border: 1px solid; }
.pill-living { background: #f0fdf4; color: #1a6b3c; border-color: #bbf7d0; }
.pill-deceased { background: #f9fafb; color: #6b7280; border-color: #e5e7eb; }
.pill-memorial { background: #fdecea; color: #b71c1c; border-color: #fca5a5; }
.pill-public { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pill-thread { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary-border); }

/* Time band */
.band-header { background: var(--color-primary-light); border: 1px solid var(--color-primary-border);
  border-radius: 8px; padding: .5rem .9rem; margin-bottom: .75rem; }
.band-header h3 { font-size: .9rem; color: var(--color-primary); margin: 0; font-weight: 600; }
.band-header small { font-size: .75rem; color: var(--color-muted); }

/* Grid helpers */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .85rem; }
.cards-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }

/* Section header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 0; }
.section-more { font-size: .82rem; color: var(--color-primary); text-decoration: none; }
.section-more:hover { text-decoration: underline; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .lead { font-size: 1rem; }
  .lanes { grid-template-columns: 1fr 1fr; }
  .trust-statement { grid-template-columns: 1fr; }
  .container { padding: 1.5rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Phase 15.x — GeoMemory Design System Tokens
═══════════════════════════════════════════════════════════════ */
:root {
  --gm-green-900: #1F4D3A;
  --gm-green-700: #567A62;
  --gm-green-500: #7FA98A;
  --gm-green-100: #EAF2ED;
  --gm-paper:     #F4EFE3;
  --gm-paper-alt: #F7F3EA;
  --gm-clay:      #DCCDB3;
  --gm-ink:       #2F2A24;
  --gm-ink-muted: #6B7280;
  --gm-ink-light: #9CA3AF;
  --gm-line:      #DDD4C2;
  --gm-card:      #FFFFFF;
  --gm-ai-blue:     #4A78C2;
  --gm-ai-bg:       rgba(74,120,194,.07);
  --gm-ai-border:   rgba(74,120,194,.22);
  --gm-verified:    #166534;
  --gm-verified-bg: #DCFCE7;
  --gm-pending:     #92400E;
  --gm-pending-bg:  #FEF3C7;
  --gm-disputed:    #991B1B;
  --gm-disputed-bg: #FEE2E2;
  --gm-review-c:    #1E40AF;
  --gm-review-bg:   #DBEAFE;
  --gm-vis-public:      #166534;
  --gm-vis-public-bg:   #DCFCE7;
  --gm-vis-regional:    #1E40AF;
  --gm-vis-regional-bg: #DBEAFE;
  --gm-vis-friends:     #6D28D9;
  --gm-vis-friends-bg:  #EDE9FE;
  --gm-vis-family:      #B45309;
  --gm-vis-family-bg:   #FEF3C7;
  --gm-vis-link:        #374151;
  --gm-vis-link-bg:     #F3F4F6;
  --gm-media-audio:     #7C3AED;
  --gm-media-audio-bg:  #EDE9FE;
  --gm-media-video:     #DC2626;
  --gm-media-video-bg:  #FEE2E2;
  --gm-media-image:     #0369A1;
  --gm-media-image-bg:  #E0F2FE;
  --gm-media-doc:       #374151;
  --gm-media-doc-bg:    #F3F4F6;
  --gm-transition: 220ms ease;
  --gm-nav-height: 68px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --shadow-card: 0 8px 24px rgba(0,0,0,.05);
  --shadow-hero: 0 18px 40px rgba(31,77,58,.08);
  --shadow-hover: 0 12px 32px rgba(31,77,58,.12);
}

/* ── [#1] Trust badge system ────────────────────────────────── */
.trust-badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  line-height: 1.4; white-space: nowrap;
}
.tbadge.verified   { background: var(--gm-verified-bg); color: var(--gm-verified); }
.tbadge.pending    { background: var(--gm-pending-bg);  color: var(--gm-pending); }
.tbadge.disputed   { background: var(--gm-disputed-bg); color: var(--gm-disputed); }
.tbadge.in-review  { background: var(--gm-review-bg);   color: var(--gm-review-c); }
.tbadge.ai-gen     { background: var(--gm-ai-bg); color: var(--gm-ai-blue); border: 1px solid var(--gm-ai-border); }
.tbadge.sources    { background: var(--gm-green-100); color: var(--gm-green-900); }
.tbadge.warn       { background: var(--gm-disputed-bg); color: var(--gm-disputed); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--gm-line);
  background: rgba(244,239,227,.5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 -16px -16px;
}
.trust-strip-label { font-size: 11px; color: var(--gm-ink-light); font-weight: 500; margin-right: 4px; }

/* ── [#3] Visibility badges ─────────────────────────────────── */
.vis-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.vis-badge.public    { background: var(--gm-vis-public-bg);   color: var(--gm-vis-public); }
.vis-badge.regional  { background: var(--gm-vis-regional-bg); color: var(--gm-vis-regional); }
.vis-badge.friends   { background: var(--gm-vis-friends-bg);  color: var(--gm-vis-friends); }
.vis-badge.family    { background: var(--gm-vis-family-bg);   color: var(--gm-vis-family); }
.vis-badge.link-only { background: var(--gm-vis-link-bg);     color: var(--gm-vis-link); }

/* ── [#2] Media type badges ─────────────────────────────────── */
.media-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.media-badge.audio { background: var(--gm-media-audio-bg); color: var(--gm-media-audio); }
.media-badge.video { background: var(--gm-media-video-bg); color: var(--gm-media-video); }
.media-badge.image { background: var(--gm-media-image-bg); color: var(--gm-media-image); }
.media-badge.doc   { background: var(--gm-media-doc-bg);   color: var(--gm-media-doc); }

/* ── [#7] Share gate button ─────────────────────────────────── */
.share-gate {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--gm-line); background: var(--gm-card);
  font-size: 12px; font-weight: 600; color: var(--gm-ink-muted);
  cursor: pointer; transition: all var(--gm-transition);
}
.share-gate:hover { border-color: var(--gm-green-700); color: var(--gm-green-900); }
.share-gate svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.share-gate[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.share-gate[aria-disabled="true"]::after { content: "🔒"; font-size: 10px; margin-left: 2px; }

/* ── [#6] Regional rollout banner ───────────────────────────── */
.regional-banner {
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--gm-vis-regional-bg); border: 1px solid rgba(30,64,175,.18);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.regional-banner svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--gm-vis-regional); stroke-width: 2; }
.regional-banner p { font-size: 13px; color: var(--gm-vis-regional); line-height: 1.4; }
.regional-banner strong { font-weight: 700; }
.regional-banner a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* ── [#6] Section rollout note ──────────────────────────────── */
.section-rollout-note {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--gm-vis-regional-bg); border: 1px solid rgba(30,64,175,.14);
  font-size: 13px; color: var(--gm-vis-regional); margin-bottom: 20px;
}
.section-rollout-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.section-rollout-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* ── NEW site-nav ────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,234,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gm-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--gm-nav-height); gap: 24px;
}
.site-nav .nav-brand {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-brand-logo {
  display: flex; align-items: center; flex-shrink: 0;
  opacity: .88; transition: opacity var(--gm-transition);
}
.nav-brand-logo:hover { opacity: 1; }
.nav-brand-logo img { width: 32px; height: 32px; object-fit: contain; display: block; }
.nav-brand-name {
  font-weight: 700; font-size: 18px; color: var(--gm-green-900);
  text-decoration: none;
  transition: color var(--gm-transition);
}
.nav-brand-name:hover { color: var(--gm-green-700); }
.site-nav .nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.site-nav .nav-links li { margin: 0; }
.site-nav .nav-links a {
  display: block; padding: 6px 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--gm-ink-muted); margin-left: 0;
  transition: color var(--gm-transition), background var(--gm-transition);
}
.site-nav .nav-links a:hover { color: var(--gm-green-900); background: var(--gm-green-100); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-btn {
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; border: none;
  background: var(--gm-green-900); color: #fff; text-decoration: none;
  transition: background var(--gm-transition); cursor: pointer; display: inline-block;
}
.nav-btn:hover { background: #164030; color: #fff; }
.nav-btn.ghost {
  background: transparent; color: var(--gm-green-900); border: 1px solid var(--gm-green-700);
}
.nav-btn.ghost:hover { background: var(--gm-green-100); }
.nav-hamburger { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--gm-ink); }
.nav-user-name { font-size: .85rem; color: var(--gm-ink-muted); padding: 0 .25rem; }

/* ── NEW site-footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--gm-line); padding: 56px 0 0; margin-top: 40px; background: var(--gm-paper); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--gm-green-900); margin-bottom: 10px; }
.footer-brand-desc { font-size: 14px; color: var(--gm-ink-muted); line-height: 1.65; margin-bottom: 14px; max-width: 270px; }
.footer-ahappy { font-size: 13px; color: var(--gm-ink-light); margin-bottom: 18px; }
.footer-ahappy strong { color: var(--gm-green-700); }
.footer-social-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gm-ink-light); margin-bottom: 10px; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: var(--radius-md);
  border: 1px solid var(--gm-line); background: var(--gm-card);
  font-size: 13px; font-weight: 500; color: var(--gm-ink-muted); text-decoration: none;
  transition: all var(--gm-transition);
}
.social-btn:hover { border-color: var(--gm-green-700); color: var(--gm-green-900); background: var(--gm-green-100); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gm-ink); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-links a { font-size: 14px; color: var(--gm-ink-muted); text-decoration: none; transition: color var(--gm-transition); }
.footer-links a:hover { color: var(--gm-green-900); }
.footer-divider { border: none; border-top: 1px solid var(--gm-line); }
.footer-bottom { padding: 20px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--gm-ink-light); flex-wrap: wrap; }
.footer-bottom-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-nav a { color: var(--gm-ink-muted); text-decoration: none; transition: color var(--gm-transition); }
.footer-bottom-nav a:hover { color: var(--gm-green-900); }

/* ── Section base ────────────────────────────────────────────── */
.gm-section { padding: 52px 0; }
.gm-section-alt {
  background: var(--gm-paper); border-top: 1px solid var(--gm-line); border-bottom: 1px solid var(--gm-line);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.section-head h2 { font-size: 26px; font-weight: 700; color: var(--gm-ink); margin: 0; }
.section-head h2 span { color: var(--gm-green-700); }
.section-head-sub { font-size: 14px; color: var(--gm-ink-muted); line-height: 1.5; max-width: 380px; margin-top: 4px; }
.see-all {
  font-size: 14px; font-weight: 600; color: var(--gm-green-700); display: inline-flex; align-items: center;
  gap: 4px; white-space: nowrap; text-decoration: none; transition: color var(--gm-transition); flex-shrink: 0;
}
.see-all:hover { color: var(--gm-green-900); }
.see-all::after { content: "→"; }

/* ── Person card (Phase 15) ──────────────────────────────────── */
.person-card {
  padding: 20px 16px 0; border-radius: var(--radius-lg);
  background: var(--gm-card); border: 1px solid var(--gm-line);
  box-shadow: var(--shadow-card); cursor: pointer; display: block;
  transition: all var(--gm-transition); overflow: hidden; text-decoration: none; color: inherit;
}
.person-card:hover { border-color: var(--gm-green-700); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.person-card-top { padding-bottom: 16px; }
.person-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.person-avatar { width: 48px; height: 48px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--gm-green-100), var(--gm-clay)); display: grid; place-items: center; font-size: 20px; }
.person-role { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--gm-green-100); color: var(--gm-green-900); margin-bottom: 8px; }
.person-role.memorial { background: #FEF3C7; color: #92400E; }
.person-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--gm-ink); }
.person-meta { font-size: 13px; color: var(--gm-ink-muted); line-height: 1.55; }
.person-meta-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }

/* ── Updated ai-notice ───────────────────────────────────────── */
.ai-notice {
  margin: 36px 0; padding: 16px 20px; border-radius: var(--radius-lg);
  background: var(--gm-ai-bg); border: 1px solid var(--gm-ai-border);
  display: flex; align-items: flex-start; gap: 14px;
}
.ai-notice-icon { width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(74,120,194,.12); flex-shrink: 0; display: grid; place-items: center; font-size: 16px; }
.ai-notice h4 { font-size: 14px; font-weight: 700; color: var(--gm-ai-blue); margin-bottom: 4px; }
.ai-notice p  { font-size: 13px; color: var(--gm-ink-muted); line-height: 1.55; margin: 0; }

/* ── Nav + Footer responsive ─────────────────────────────────── */
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .site-nav .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .site-nav { position: relative; }
  .site-nav .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--gm-nav-height); left: 0; right: 0;
    background: rgba(247,243,234,.97); border-bottom: 1px solid var(--gm-line);
    padding: 12px 16px; gap: 4px; z-index: 99;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-nav { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   Footer social icons (Phase 15 footer-pages update)
   ════════════════════════════════════════════════════════════ */
.footer-social-head {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gm-ink-light); margin-bottom: 6px;
}
.footer-social-sub { font-size: 13px; color: var(--gm-ink-muted); margin-bottom: 12px; line-height: 1.5; }
.social-btn svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }
.social-btn svg.stroke-icon { fill: none; stroke: currentColor; stroke-width: 2; }

/* ════════════════════════════════════════════════════════════
   Page hero — used by /about, /terms, /privacy, /contact
   ════════════════════════════════════════════════════════════ */
.page-body { padding: 64px 0 96px; min-height: 60vh; }
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gm-line);
  background: var(--gm-paper);
}
.page-hero-breadcrumb {
  font-size: 13px; color: var(--gm-ink-light); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.page-hero-breadcrumb a { color: var(--gm-green-700); }
.page-hero-breadcrumb span { opacity: .5; }
.page-hero h1 { font-size: 36px; font-weight: 700; line-height: 1.1; margin-bottom: 12px; }
.page-hero h1 em { font-style: normal; color: var(--gm-green-700); }
.page-hero-desc { font-size: 17px; color: var(--gm-ink-muted); max-width: 560px; line-height: 1.7; }
.page-hero-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px;
  font-size: 13px; color: var(--gm-ink-light);
}
.page-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════════════════════════════════
   Prose — article content
   ════════════════════════════════════════════════════════════ */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 22px; font-weight: 700; margin: 44px 0 14px;
  color: var(--gm-ink); padding-top: 4px;
  border-top: 2px solid var(--gm-green-100);
}
.prose h2:first-child { margin-top: 0; border-top: none; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--gm-ink); }
.prose p { margin-bottom: 16px; color: var(--gm-ink-muted); line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: var(--gm-ink-muted); }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--gm-ink); font-weight: 600; }
.prose a { color: var(--gm-green-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gm-green-900); }
.prose blockquote {
  border-left: 3px solid var(--gm-green-700);
  padding: 12px 18px; background: var(--gm-green-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0; font-style: italic; color: var(--gm-ink-muted);
}
.prose hr { border: none; border-top: 1px solid var(--gm-line); margin: 36px 0; }
.prose code { font-size: 13px; background: var(--gm-green-100); padding: 2px 6px; border-radius: var(--radius-sm); }
.prose .highlight-box {
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--gm-green-100); border: 1px solid rgba(31,77,58,.12);
  margin: 24px 0;
}
.prose .highlight-box p { margin: 0; color: var(--gm-green-900); }
.prose .warn-box {
  padding: 16px 20px; border-radius: var(--radius-lg);
  background: #FEF3C7; border: 1px solid #FCD34D; margin: 24px 0;
}
.prose .warn-box p { margin: 0; color: #92400E; }

/* ════════════════════════════════════════════════════════════
   Article layout (2-col: TOC + prose)
   ════════════════════════════════════════════════════════════ */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.article-toc { position: sticky; top: calc(var(--gm-nav-height, 68px) + 20px); }
.article-toc h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gm-ink-light); margin-bottom: 14px;
}
.toc-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-links a {
  font-size: 13px; color: var(--gm-ink-muted); padding: 5px 10px;
  border-radius: var(--radius-sm); border-left: 2px solid transparent;
  transition: all var(--gm-transition, 220ms ease); display: block;
}
.toc-links a:hover, .toc-links a.active {
  color: var(--gm-green-900); background: var(--gm-green-100);
  border-left-color: var(--gm-green-700);
}

/* ════════════════════════════════════════════════════════════
   Contact page
   ════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: start;
}
.contact-form-card {
  background: var(--gm-card); border: 1px solid var(--gm-line);
  border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card);
}
.contact-form-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--gm-ink); }
.contact-form-card p { font-size: 14px; color: var(--gm-ink-muted); margin-bottom: 24px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gm-ink); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gm-line); border-radius: var(--radius-md);
  background: #FAFAF7; font-family: var(--font-sans, inherit); font-size: 15px;
  color: var(--gm-ink); outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gm-green-700); box-shadow: 0 0 0 3px rgba(86,122,98,.12); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gm-ink-light); }
.form-submit {
  width: 100%; padding: 13px; border-radius: var(--radius-md); border: none;
  background: var(--gm-green-900); color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background 220ms ease;
}
.form-submit:hover { background: #164030; }
.form-note { font-size: 12px; color: var(--gm-ink-light); text-align: center; margin-top: 12px; line-height: 1.5; }
.form-note a { color: var(--gm-green-700); }
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--gm-card); border: 1px solid var(--gm-line); box-shadow: var(--shadow-card);
}
.contact-info-card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--gm-ink);
  display: flex; align-items: center; gap: 8px;
}
.contact-info-card ul { list-style: none; }
.contact-info-card li {
  font-size: 14px; color: var(--gm-ink-muted); padding: 6px 0;
  border-bottom: 1px solid var(--gm-line);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.contact-info-card li:last-child { border-bottom: none; }
.contact-info-card li strong { color: var(--gm-ink); min-width: 80px; flex-shrink: 0; }
.contact-info-card a { color: var(--gm-green-700); }
.contact-info-card a:hover { color: var(--gm-green-900); text-decoration: underline; }
.social-direct { display: flex; flex-direction: column; gap: 8px; }
.social-direct-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--gm-line); background: var(--gm-card);
  font-size: 14px; font-weight: 500; color: var(--gm-ink-muted);
  transition: all 220ms ease; cursor: pointer; text-decoration: none;
}
.social-direct-btn:hover { border-color: var(--gm-green-700); color: var(--gm-green-900); background: var(--gm-green-100); }
.social-direct-btn svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.social-direct-btn svg.stroke-icon { fill: none; stroke: currentColor; stroke-width: 2; }
.social-direct-btn span { font-size: 12px; color: var(--gm-ink-light); margin-left: auto; }

/* ── Footer-pages responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { order: -1; }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: 28px; }
}
