:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1c1a16;
  --ink-muted: #6b6456;
  --accent: #8b3a1e;
  --accent-light: #f5ede8;
  --accent-mid: #d4855f;
  --border: #e2ddd6;
  --collab: #1a4d3a;
  --collab-light: #e8f5f0;
  --collab-mid: #4a9e7e;
  --tag-journal: #1a3a5c;
  --tag-book: #2d5a27;
  --tag-chapter: #5a3d1a;
  --tag-open: #1a4d4d;
  --tag-non: #4a1a5a;
  --tag-review: #3d3d1a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
#tab-map, #tab-pathways, #tab-themes { flex: 1 1 auto; }

/* ── ABOUT MODAL ── */
.about-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(28,26,22,0.78); display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px); animation: fadeIn 0.25s ease; }
.about-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.about-modal { background: var(--surface); border-radius: 1rem; padding: 2.25rem 2.5rem; max-width: 560px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.about-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; font-size: 1.5rem; color: var(--ink-muted); cursor: pointer; }
.about-close:hover { color: var(--ink); }
.about-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.about-title { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ink); line-height: 1.25; margin-bottom: 1rem; }
.about-body { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 0.65rem; }
.about-body strong { color: var(--ink); }
.about-how { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; padding: 0.9rem; background: var(--bg); border-radius: 0.5rem; border: 1px solid var(--border); }
.about-how-item { display: flex; gap: 0.65rem; font-size: 0.84rem; color: var(--ink-muted); align-items: flex-start; }
.about-how-item strong { color: var(--ink); }
.about-how-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
.about-links { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.about-links a { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.about-links a:hover { border-color: var(--accent); }
.about-cta { width: 100%; padding: 0.75rem; background: var(--accent); color: #fff; border: none; border-radius: 0.5rem; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.about-cta:hover { background: #6e2d16; }
.about-trigger { background: none; border: 1px solid rgba(255,255,255,0.15); color: #a8a09a; font-family: var(--font-body); font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; cursor: pointer; transition: all 0.15s; }
.about-trigger:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ── HEADER ── */
.page-header { background: var(--ink); color: #f5f3ee; padding: 1.2rem 1.75rem; border-bottom: 3px solid var(--accent); }
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.header-eyebrow { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-mid); font-weight: 600; margin-bottom: 0.3rem; }
h1 { font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 700; line-height: 1.1; color: #fff; }
.header-sub { margin-top: 0.4rem; font-size: 0.85rem; color: #a8a09a; line-height: 1.5; }
.header-manifesto { margin-top: 0.5rem; font-family: var(--font-display); font-size: 0.92rem; font-style: italic; color: var(--accent-mid); }
.header-meta-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.55rem; flex-wrap: wrap; }
.header-orcid a { display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; color: #8a8278; font-size: 0.72rem; transition: color 0.15s; }
.header-orcid a:hover { color: #fff; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; flex-shrink: 0; }
.header-stats { display: flex; align-items: center; gap: 1.2rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.6rem; padding: 0.65rem 1.2rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-mid); line-height: 1; }
.stat-label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a8a09a; margin-top: 0.15rem; }
.stat-divider { width: 1px; height: 2.2rem; background: rgba(255,255,255,0.12); }

/* ── LATEST STRIP ── */
.latest-strip { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.6rem 0.9rem; max-width: 340px; }
.latest-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 0.4rem; }
.latest-items { display: flex; flex-direction: column; gap: 0.3rem; }
.latest-item { display: flex; align-items: baseline; gap: 0.45rem; font-size: 0.75rem; color: #c8c0b8; }
.latest-item a { color: #c8c0b8; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.15s; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.latest-item a:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.latest-year { font-size: 0.65rem; font-weight: 700; color: var(--accent-mid); flex-shrink: 0; background: rgba(212,133,95,0.15); padding: 0.05rem 0.35rem; border-radius: 3px; }

/* ── FEATURED BAR ── */
.featured-bar { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0.65rem 1.75rem; }
.featured-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.featured-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mid); white-space: nowrap; flex-shrink: 0; }
.featured-items { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.featured-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; color: #c8c0b8; text-decoration: none; transition: all 0.15s; white-space: nowrap; }
.featured-chip:hover { background: rgba(212,133,95,0.15); border-color: var(--accent-mid); color: #fff; }
.featured-chip-year { font-size: 0.65rem; color: var(--accent-mid); font-weight: 600; }

/* ── TAB NAV ── */
.tab-nav { display: flex; background: #141210; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 1.75rem; gap: 0.25rem; }
.tab-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: none; border: none; border-bottom: 3px solid transparent; color: #808080; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; padding: 0.75rem 1.1rem; cursor: pointer; letter-spacing: 0.02em; transition: all 0.15s; margin-bottom: -1px; white-space: nowrap; }
.tab-btn svg { opacity: 0.6; transition: opacity 0.15s; }
.tab-btn:hover { color: #d0d0d0; }
.tab-btn:hover svg { opacity: 1; }
.tab-btn.is-active { color: #fff; border-bottom-color: var(--accent-mid); }
.tab-btn.is-active svg { opacity: 1; color: var(--accent-mid); }

/* ── TAB VIEWS ── */
.tab-view { display: none; }
#tab-map.tab-view.is-active { display: grid; flex: 1; min-height: 0; }
#tab-pathways.tab-view.is-active, #tab-themes.tab-view.is-active { display: flex; flex: 1; min-height: 0; }
.full-view { flex-direction: column; padding: 1.5rem 1.75rem; max-width: 1400px; margin: 0 auto; width: 100%; overflow-y: auto; max-height: calc(100vh - 180px); }

/* ── MAP LAYOUT ── */
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.25rem; padding: 1.25rem; align-items: start; width: 100%; max-width: 1400px; margin: 0 auto; }
#map { height: calc(100vh - 260px); min-height: 440px; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.07); position: sticky; top: 1.25rem; }

/* ── PANEL ── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.06); display: flex; flex-direction: column; max-height: calc(100vh - 260px); }

/* ── LAYER TOGGLE ── */
.layer-toggle-block { padding: 0.75rem 1.1rem 0.65rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.layer-btns { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.layer-btn { border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); border-radius: 999px; padding: 0.28rem 0.75rem; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; transition: all 0.15s; }
.layer-btn:hover { border-color: var(--accent-mid); color: var(--accent); }
.layer-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.layer-btn[data-layer="collaborators"].is-active { background: var(--collab); border-color: var(--collab); }

/* ── FILTERS ── */
.filters-block, .search-block { padding: 0.85rem 1.1rem 0.7rem; border-bottom: 1px solid var(--border); }
.filter-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.45rem; display: block; }
.region-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.region-btn { border: 1px solid var(--border); background: var(--bg); color: var(--ink-muted); border-radius: 999px; padding: 0.28rem 0.75rem; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; transition: all 0.15s; }
.region-btn:hover { border-color: var(--accent-mid); color: var(--accent); }
.region-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-wrap, .theme-search-wrap { position: relative; }
.search-icon { position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-muted); pointer-events: none; }
#country-search, #theme-search { width: 100%; padding: 0.5rem 0.65rem 0.5rem 2rem; border: 1px solid var(--border); border-radius: 0.45rem; font-family: var(--font-body); font-size: 0.85rem; background: var(--bg); color: var(--ink); outline: none; margin-bottom: 0.5rem; transition: border-color 0.15s; }
#country-search:focus, #theme-search:focus { border-color: var(--accent-mid); }
.country-list { max-height: 130px; overflow-y: auto; }
.country-item { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 0.32rem 0.5rem; border-radius: 0.35rem; cursor: pointer; font-family: var(--font-body); font-size: 0.8rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; transition: all 0.12s; }
.country-item:hover { background: var(--accent-light); color: var(--accent); }
.count-badge { font-size: 0.68rem; background: var(--border); color: var(--ink-muted); border-radius: 999px; padding: 0.1rem 0.4rem; font-weight: 600; }

/* ── PUB PANEL ── */
.pub-panel { flex: 1; overflow-y: auto; }
.pub-panel-header { padding: 1rem 1.1rem 0.7rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.pub-location-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }
.pub-panel-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.panel-sub { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.25rem; line-height: 1.5; }
.pub-theme-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.pub-theme-chip { font-size: 0.63rem; font-weight: 600; padding: 0.12rem 0.45rem; border-radius: 3px; background: var(--accent-light); color: var(--accent); border: 1px solid #e8cfc5; }

/* ── CONTEXT CARD ── */
.context-card { margin: 0.85rem 0.85rem 0; padding: 0.9rem 1rem; background: linear-gradient(135deg, #fdf6f2 0%, #f5f3ee 100%); border: 1px solid #e8cfc5; border-left: 3px solid var(--accent-mid); border-radius: 0.5rem; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.65; }
.context-card.hidden { display: none; }
.context-card-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }

/* ── COLLABORATORS PANEL ── */
.collab-panel { margin: 0.85rem 0.85rem 0; padding: 0.9rem 1rem; background: linear-gradient(135deg, #f2fdf8 0%, #f5f3ee 100%); border: 1px solid #c5e8d8; border-left: 3px solid var(--collab-mid); border-radius: 0.5rem; }
.collab-panel.hidden { display: none; }
.collab-panel-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--collab); margin-bottom: 0.5rem; }
.collab-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.collab-chip { font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.65rem; background: var(--collab-light); border: 1px solid #c5e8d8; border-radius: 999px; color: var(--collab); }
.collab-none { font-size: 0.82rem; color: var(--ink-muted); font-style: italic; }

/* ── PUBLICATION LIST ── */
#publication-list { list-style: none; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.55rem; }
#publication-list li { padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
#publication-list li:hover { border-color: var(--accent-mid); box-shadow: 0 2px 10px rgba(139,58,30,0.08); }
.pub-type { display: inline-block; font-size: 0.63rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 3px; padding: 0.12rem 0.45rem; margin-bottom: 0.4rem; }
.pub-type-journal { background: #e8f0f8; color: var(--tag-journal); }
.pub-type-book { background: #eaf4e8; color: var(--tag-book); }
.pub-type-chapter { background: #f5ede0; color: var(--tag-chapter); }
.pub-type-open { background: #e0f0f0; color: var(--tag-open); }
.pub-type-non { background: #f0e8f5; color: var(--tag-non); }
.pub-type-review { background: #f0f0e0; color: var(--tag-review); }
.pub-type-default { background: var(--accent-light); color: var(--accent); }
.pub-title { font-size: 0.83rem; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 0.35rem; }
.pub-year { font-size: 0.74rem; color: var(--ink-muted); font-weight: 400; }
.pub-meta-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.35rem; }
.pub-tag { font-size: 0.6rem; padding: 0.08rem 0.38rem; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-muted); background: var(--bg); }
.pub-actions { display: flex; align-items: center; gap: 0.65rem; }
.pub-link { display: inline-flex; align-items: center; font-size: 0.75rem; color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.pub-link:hover { border-color: var(--accent); }
.cite-btn { background: none; border: 1px solid var(--border); color: var(--ink-muted); border-radius: 4px; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.45rem; cursor: pointer; transition: all 0.15s; }
.cite-btn:hover { border-color: var(--accent-mid); color: var(--accent); background: var(--accent-light); }
.see-all-link { display: block; text-align: center; padding: 0.55rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px dashed var(--accent-mid); border-radius: 0.45rem; margin-top: 0.2rem; transition: background 0.15s; }
.see-all-link:hover { background: var(--accent-light); }

/* ── CITATION TOAST ── */
.cite-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 0.65rem 1.4rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.25); z-index: 500; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0; }
.cite-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── ANALYTICS HEADER ── */
.analytics-header { margin-bottom: 1.25rem; }
.analytics-header h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.analytics-header p { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.3rem; }
.analytics-header em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ── PATHWAYS ── */
.pathways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; padding-bottom: 2rem; }
.pathway-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
.pathway-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.pathway-header { padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--border); }
.pathway-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 0.3rem; }
.pathway-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 0.4rem; }
.pathway-desc { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.55; }
.pathway-steps { list-style: none; padding: 0.75rem 1.25rem; display: flex; flex-direction: column; gap: 0; }
.pathway-step { display: flex; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.pathway-step:last-child { border-bottom: none; }
.pathway-step-num { width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.pathway-step-body { flex: 1; }
.pathway-step-title { font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pathway-step-note { font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.2rem; font-style: italic; }
.pathway-step-link { font-size: 0.73rem; color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.25rem; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.pathway-step-link:hover { border-color: var(--accent); }

/* ── THEMES ── */
.theme-filters-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.theme-filter-group { background: var(--surface); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.85rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.chip { border: 1px solid var(--border); background: var(--bg); color: var(--ink-muted); border-radius: 999px; padding: 0.28rem 0.7rem; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; transition: all 0.15s; }
.chip:hover { border-color: var(--accent-mid); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
#theme-search { margin-bottom: 0; }
.theme-results-meta { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.75rem; font-style: italic; }
.theme-results-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1rem; }
.theme-results-list li { padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; transition: border-color 0.15s; }
.theme-results-list li:hover { border-color: var(--accent-mid); }
.result-country { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }

/* ── FOOTER ── */
footer { background: var(--ink); color: #4a4540; font-size: 0.78rem; margin-top: auto; }

/* Upper row: Academic Presence */
.footer-presence {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.85rem 1.75rem;
}
.footer-presence-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-presence-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.footer-presence-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #302e2a;
  white-space: nowrap;
}
.footer-presence-metrics {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}
.footer-metric-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5a5550;
}
.footer-metric-desc {
  font-size: 0.6rem;
  color: #3a3530;
}
.footer-metric-dot {
  color: #2a2820;
  font-size: 0.65rem;
}
.footer-presence-updated {
  font-size: 0.58rem;
  color: #2e2c28;
  white-space: nowrap;
}
.footer-presence-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.footer-presence-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #3a3530;
  text-decoration: none;
  padding: 0.22rem 0.55rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.15s;
  white-space: nowrap;
}
.footer-presence-link:hover {
  color: #a8a09a;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

/* Lower row: copyright */
.footer-base { padding: 0.6rem 1.75rem; }
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1rem; }
footer a { color: var(--accent-mid); text-decoration: none; font-weight: 500; }
footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 700px) {
  .footer-presence { display: none; }
}
