@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

:root {
  --main: #e5484d;
  --main-dark: #c4353a;
  --ink: #101828;
  --sub: #1f2a44;
  --bg: #f6f4ef;
  --panel: #ffffff;
  --border: #e4e7ec;
  --muted: #667085;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 16px 36px rgba(16, 24, 40, 0.14);
  --max-width: 1280px;
  --sidebar-width: 320px;
}

* { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  cursor: default;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(229, 72, 77, 0.12), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(15, 98, 254, 0.12), transparent 45%),
    linear-gradient(180deg, #fdfbf8 0%, #f6f4ef 50%, #f4f2ed 100%);
  z-index: -2;
}

img { max-width: 100%; height: auto; }
a { color: var(--main); text-decoration: none; }
a:hover,
a:focus,
a:active { color: var(--main-dark); text-decoration: none !important; box-shadow: none !important; }
a, button, input[type="submit"], .tab-btn { cursor: pointer; }

.container { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; }

.header-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #E5484D;
  color: #fff;
  z-index: 99999;
  pointer-events: auto;
  cursor: default;
}
.topbar-capture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.header-topbar a {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  max-width: fit-content !important;
  pointer-events: none;
}
.topbar-inner {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.topbar-ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  pointer-events: auto;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: ticker-scroll 80s linear infinite;
  pointer-events: auto;
}
.ticker-item {
  color: #fff;
  font-size: 12px;
  display: inline-block !important;
  white-space: nowrap;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: fit-content;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto;
  position: static !important;
}
.ticker-item a {
  color: #fff;
  text-decoration: none;
  display: inline !important;
  pointer-events: auto;
}
.ticker-item:hover { text-decoration: underline; }
.topbar-date { flex: 0 0 auto; font-size: 12px; opacity: 0.9; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.site-header {
  padding-top: 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

body.admin-bar .header-topbar {
  top: 32px;
}

body.admin-bar .site-header {
  padding-top: 72px;
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #ff6f61, #e5484d 55%, #b41f2a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.header-search { flex: 1 1 480px; min-width: 0; max-width: 480px; margin-left: auto; }
.header-search form { flex-wrap: nowrap; }
.search-input { min-width: 0; flex: 1 1 auto; }
.header-search form { display: flex; }
.search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px 0 0 999px;
  padding: 10px 14px;
  font-size: 13px;
  background: #fff;
}
.search-input:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.16); }
.search-btn {
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 18px;
  background: var(--main);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.category-nav {
  background: var(--sub);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-all,
.cat-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border-radius: 999px;
  padding: 6px 12px;
}
.cat-all { color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.cat-all:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cat-nav-badge:hover { opacity: 0.9; color: #fff; }
.cat-count { display: none; }

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--sidebar-width));
  gap: 24px;
  padding: 20px 0 48px;
  align-items: start;
}
.content-area { min-width: 0; }

.top-hero,
.archive-header,
.search-header,
.period-header,
.bw-header,
.bw-section,
.ranking-item,
.sidebar-widget,
.buzzword-table,
.period-card,
.home-snapshot,
.related-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.top-hero,
.archive-header,
.search-header,
.period-header,
.bw-header,
.bw-section,
.sidebar-widget { padding: 18px; margin-bottom: 14px; }

.top-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
}
.top-title { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
.top-subtitle { margin: 6px auto 0; color: var(--muted); max-width: 640px; }
.top-stats {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.top-stats strong { color: var(--main); }

.home-snapshot {
  margin: 16px 0 12px;
  padding: 16px 18px;
}
.home-snapshot .snapshot-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.home-snapshot .snapshot-head h2 { font-size: 20px; margin: 0; }
.home-snapshot .snapshot-head p { margin: 0; color: var(--muted); font-size: 13px; }
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.snapshot-card {
  background: #f9fafb;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 12px;
}
.snapshot-card h3 { margin: 0 0 8px; font-size: 14px; }
.snapshot-list { list-style: none; padding: 0; margin: 0; }
.snapshot-list li { padding: 6px 0; border-bottom: 1px dashed #e5e7eb; }
.snapshot-list li:last-child { border-bottom: 0; }
.snapshot-link { display: block; font-weight: 600; color: #111827; }
.snapshot-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.heat-bar {
  display: block;
  height: 6px;
  background: #eef0f4;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}
.heat-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); }

.tab-bar { display: flex; border-bottom: 0 !important; margin-bottom: 14px; gap: 6px; box-shadow: none !important; }
.tab-bar::before,
.tab-bar::after { content: none !important; display: none !important; }
.tab-bar,
.tab-bar * { border-bottom: 0 !important; box-shadow: none !important; background-image: none !important; text-decoration: none !important; }
.tab-btn {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  cursor: pointer;
}
.tab-btn.active,
.tab-btn:hover,
.tab-btn:focus,
.tab-btn:active {
  color: var(--main);
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background-image: none !important;
}
.tab-btn::before,
.tab-btn::after { content: none !important; display: none !important; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.period-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.period-tab:hover,
.period-tab:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #111827;
  transform: translateY(-1px);
}

.period-tab.active {
  background: var(--main);
  border-color: var(--main);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(229, 72, 77, 0.22);
}

.period-tab.active:hover,
.period-tab.active:focus-visible {
  background: var(--main-dark);
  border-color: var(--main-dark);
}

.bw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bw-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bw-home-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.bw-home-cell {
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.buzzword-card-link { display: block; color: inherit; }
.buzzword-card-link:hover { color: inherit; }
.buzzword-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.buzzword-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(229, 72, 77, 0.25), rgba(16, 24, 40, 0.15)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.buzzword-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  border-color: var(--border);
}
.buzzword-card:hover::before { opacity: 0; }

.card-rank,
.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #9aa3b2;
}
.card-rank { position: absolute; top: 8px; left: 8px; }
.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; }

.card-header { padding-left: 34px; }
.card-title { margin: 0; font-size: 15px; line-height: 1.35; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link { cursor: pointer; }
.card-title-link:hover,
.card-title-link:focus,
.card-title-link:active { color: var(--main); text-decoration: none !important; }
.bw-home-grid a,
.home-snapshot a,
.period-links a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.snapshot-link,
.snapshot-link:hover,
.snapshot-link:focus,
.snapshot-link:active { text-decoration: none !important; }
.sidebar-ranking a,
.sidebar-ranking a:hover,
.sidebar-ranking a:focus,
.sidebar-ranking a:active { text-decoration: none !important; }
.card-reading { display: block; font-size: 11px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; align-items: center; }
.card-volume { font-size: 11px; color: var(--muted); }
.card-sparkline { margin-top: 6px; }
.card-summary {
  margin: 8px 0 0;
  font-size: 12px;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; font-size: 11px; color: var(--muted); }

.card-change {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.card-change .change-label { font-weight: 700; color: #111827; }
.card-change .change-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.card-change .growth-up { color: #dc2626; }
.card-change .growth-down { color: #2563eb; }
.card-change .growth-flat { color: #6b7280; }

.score-badge,
.category-badge,
.growth-indicator { display: inline-flex; align-items: center; font-size: 11px; border-radius: 999px; padding: 2px 10px; }
.card-news-evidence {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 10px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}
.score-badge { color: #fff; font-weight: 700; }
.score-badge-value { font-size: 12px; }
.score-hot { background: #e74c3c; }
.score-high { background: #f39c12; }
.score-mid { background: #f1c40f; color: #333; }
.score-low { background: #95a5a6; }
.category-badge { color: #fff; font-weight: 600; line-height: 1.5; }
a.category-badge:hover { color: #fff; opacity: 0.9; }
.growth-up { color: #27ae60; }
.growth-down { color: #e74c3c; }
.growth-flat { color: #95a5a6; }

.buzzword-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.buzzword-table { width: 100%; border-collapse: collapse; }
.buzzword-table th,
.buzzword-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; }
.buzzword-table th { background: #f3f5fa; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }

.bw-title { margin: 0; font-size: 34px; line-height: 1.2; }
.bw-header-top,
.bw-meta-info,
.bw-score-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bw-score-bar { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.bw-score-bar .score-item { display: inline-flex; align-items: center; gap: 6px; }
.bw-score-bar .score-label { font-weight: 700; color: var(--muted); }
.bw-summary { margin-top: 12px; border-left: 3px solid var(--main); background: #fff4f6; padding: 10px 12px; }
.bw-list { margin: 0; padding-left: 20px; }
.bw-list li { margin: 6px 0; }

.section-note { color: #5d6a7a; font-size: 0.95rem; margin: 8px 0 16px; }

.trend-source-overview,
.bw-sources,
.bw-seo,
.bw-evidence,
.bw-trend-chart {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.source-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.source-name { font-weight: 700; font-size: 0.98rem; color: #1a202c; }
.source-note { font-size: 0.85rem; color: #64748b; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf2f7;
  color: #2d3748;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}
.tag-chip:hover { background: #e2e8f0; }
.source-chip { background: #e6f0ff; border-color: #c3dafe; color: #2b6cb0; }

.trend-chart-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.trend-chart { width: 100%; height: auto; display: block; }
.trend-chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 10px;
}

.score-evidence {
  display: block;
}
.score-evidence-main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.score-evidence-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  min-width: 150px;
}
.score-evidence-label { color: #64748b; }
.score-evidence-value { font-weight: 700; color: #1a202c; }
.score-evidence-list {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

.seo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.seo-metric {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seo-label { font-size: 0.82rem; color: #64748b; }
.seo-value { font-size: 1.05rem; font-weight: 700; color: #1a202c; }

.news-links-list { display: grid; gap: 8px; margin-top: 8px; }
.news-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fafbff;
  color: var(--ink);
}
.news-link-card:hover { background: #eef3ff; color: var(--ink); }
.news-link-thumb { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.news-link-title { display: block; font-size: 13px; font-weight: 600; }
.news-link-source { font-size: 11px; color: var(--muted); }

.word-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.word-tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.word-tag.synonym { background: #e8f5e9; color: #2e7d32; }
.word-tag.antonym { background: #fce4ec; color: #c62828; }

.related-section { padding: 18px; margin-bottom: 14px; }
.related-section h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.bw-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f5fb;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
}

.ranking-list { display: grid; gap: 10px; }
.ranking-item { padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.ranking-item.top-3 { border-left: 3px solid var(--main); }
.ranking-title { font-weight: 700; color: var(--ink); }
.ranking-title:hover { color: var(--main); }

.period-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.period-card { padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.period-card:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.period-icon {
  min-width: 54px;
  text-align: center;
  border-radius: 10px;
  background: #ffe7ec;
  color: var(--main);
  font-weight: 700;
  padding: 8px 10px;
}
.period-label { font-weight: 700; }

.widget-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; border-bottom: 2px solid var(--main); padding-bottom: 6px; }

.sidebar-ranking,
.sidebar-new-list,
.sidebar-cat-list { list-style: none; margin: 0; padding: 0; }
.sidebar-rank-item,
.sidebar-new-list li { border-bottom: 1px solid var(--border); padding: 7px 0; }
.sidebar-rank-item:last-child,
.sidebar-new-list li:last-child { border-bottom: 0; }
.sidebar-rank-item { display: flex; align-items: center; gap: 8px; }
.sidebar-rank-item a,
.sidebar-new-list li a { display: flex; align-items: center; gap: 8px; color: var(--ink); flex-wrap: nowrap; }
.sidebar-rank-item a { flex: 1 1 auto; min-width: 0; }
.sidebar-rank-item .rank-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.sidebar-rank-item .score-badge { flex: 0 0 auto; margin-left: auto; }
.sidebar-new-list time { font-size: 11px; color: var(--muted); }
.sidebar-cat-list { display: flex; flex-wrap: wrap; gap: 6px; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb .sep { margin: 0 5px; }

.pagination { margin-top: 12px; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  margin: 0 2px;
  color: var(--ink);
  background: #fff;
}
.pagination .page-numbers.current { background: var(--main); border-color: var(--main); color: #fff; }

.btn-more {
  display: inline-block;
  background: var(--main);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.btn-more:hover { background: var(--main-dark); color: #fff; }

.error-404 {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 28px;
  text-align: center;
}
.error-404 .error-code {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--main);
}
.error-404 h1 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.25;
}
.error-404 .error-message {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
}
.error-404 .error-actions {
  margin-top: 22px;
}

.site-footer {
  margin-top: 30px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 28px 0;
}
.footer-inner { text-align: center; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); margin: 0 10px; font-size: 13px; }
.footer-note { color: rgba(255, 255, 255, 0.6); font-size: 12px; }

.more-link { text-align: center; margin: 24px 0 16px; }

.score-note {
  margin: 16px 0 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.score-note h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.score-note p {
  margin: 0;
  font-size: 12px;
  color: #475467;
}

.page-legal .main-layout { grid-template-columns: 1fr; }
.page-legal .sidebar { display: none; }
.page-legal .page-legal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.page-legal .page-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
}
.page-legal .page-body p { margin: 0 0 12px; }
.page-legal .page-body ul { margin: 0 0 12px; padding-left: 20px; }

@media (max-width: 980px) {
  .bw-home-cell { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
  .bw-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 14px 0; }
  .header-search { max-width: none; }
  .period-links { grid-template-columns: 1fr; }
  .bw-title { font-size: 26px; }
}

@media (max-width: 782px) {
  body.admin-bar .header-topbar {
    top: 46px;
  }

  body.admin-bar .site-header {
    padding-top: 86px;
  }
}

@media (max-width: 760px) {
  .main-layout { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .score-evidence { grid-template-columns: 1fr; }
  .error-404 { padding: 30px 18px; }
  .error-404 .error-code { font-size: 44px; }
  .error-404 h1 { font-size: 24px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 20px); }
  .topbar-inner { font-size: 11px; }
  .logo-text { font-size: 24px; }
  .bw-home-cell { flex-basis: 100%; max-width: 100%; }
  .bw-grid-compact { grid-template-columns: 1fr; }
  .bw-grid { grid-template-columns: 1fr; }
  .period-tab {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
}
