@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: 38px;
  padding-bottom: 38px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

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

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

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transform: translateY(-3px);
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 40px;
}
.logo-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: -1px;
  line-height: 1.1;
}

.header-search {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 480px;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.header-search form { flex-wrap: nowrap; width: 100%; }
.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: 2px solid rgba(229, 72, 77, 0.2); outline-offset: 0; border-color: var(--main); }
.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-nav-badge { color: inherit; }
.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: inherit; }
.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: none;
}

.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: 20px 0 10px;
  text-align: center;
}
.top-title {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.top-title-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--main);
  flex: 0 0 30px;
}
.top-title-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top-subtitle { margin: 6px auto 0; color: var(--muted); max-width: 640px; }
.buzzword-detail .bw-section { padding-top: 12px; }
.bw-section h2,
.related-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1em;
}
.top-stats {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.top-stats strong { color: var(--main); }
.stat-item-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.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; }
.home .tab-content.active { margin-top: 14px; }

.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: none;
}

.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;
}

.home-category-sections {
  margin-top: 18px;
}

.home-category-trends {
  margin-top: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.home-category-sections-head {
  margin-bottom: 14px;
}

.home-category-sections-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--sub);
}

.home-category-sections-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-category-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 16px;
}

.home-category-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-category-block-head h3 {
  margin: 0;
  font-size: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.home-category-more {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--main);
}

.home-category-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-category-card-list > * {
  width: 100%;
  min-width: 0;
}

.home-category-block-head .category-badge {
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  display: inline-flex;
  max-width: 100%;
}

.home-category-trend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-category-trend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
}

.home-category-trend-item strong {
  font-size: 13px;
  color: var(--sub);
}

.home-discovery-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-discovery-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 16px;
}

.home-discovery-head h2 {
  margin: 0;
  font-size: 20px;
  color: var(--sub);
}

.home-discovery-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.home-discovery-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.home-discovery-list li + li {
  border-top: 1px solid var(--border);
}

.home-discovery-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  color: var(--ink);
}

.home-discovery-list a strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.home-discovery-list a span {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.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, 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);
  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: static;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  pointer-events: none;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: start;
}
.rank-1 { background: #d4a017; color: #fff; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; }

.card-header {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
}
.buzzword-card.has-rank .card-header { min-height: 28px; }
.buzzword-card.has-rank .card-title,
.buzzword-card.has-rank .card-reading { grid-column: 2; }
.buzzword-card.has-rank .card-title { grid-row: 1; }
.buzzword-card.has-rank .card-reading { grid-row: 2; }
.buzzword-card.no-rank .card-header { grid-template-columns: minmax(0, 1fr); }
.buzzword-card.no-rank .card-title,
.buzzword-card.no-rank .card-reading,
.buzzword-card.no-rank .card-meta,
.buzzword-card.no-rank .card-summary,
.buzzword-card.no-rank .card-footer {
  margin-left: 0;
}
.card-title { margin: 0; font-size: 15px; line-height: 1.35; min-width: 0; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link { cursor: inherit; }
.buzzword-card-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; }
.growth-indicator.growth-flat { display: none !important; }

.score-badge,
.category-badge,
.growth-indicator { display: inline-flex; align-items: center; font-size: 11px; border-radius: 999px; padding: 2px 10px; }
.score-badge { color: #fff; font-weight: 700; }
.score-badge { display: none !important; }
.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: inherit; 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-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bw-title { margin: 10px 0 0; font-size: 34px; line-height: 1.35; }
.bw-title-row .bw-title { flex: 1 1 320px; }
.bw-share-prompt {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
}
.bw-header-top,
.bw-meta-info,
.bw-score-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bw-header-top { gap: 10px 14px; line-height: 1.6; }
.bw-date { line-height: 1.6; }
.bw-names { margin-top: 10px; line-height: 1.75; }
.bw-reading,
.bw-alias { display: inline-block; }
.bw-meta-info { margin-top: 10px; gap: 8px 14px; line-height: 1.7; }
.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; }
.tag-chip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.tag-chip-brand { font-weight: 700; }
.tag-chip-x { background: #eef2f7; border-color: #cfd8e3; color: #111827; }
.tag-chip-youtube { background: #fff1f0; border-color: #fecaca; color: #b91c1c; }

.bw-share-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.bw-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.bw-share-link:hover,
.bw-share-link:focus-visible {
  transform: translateY(-1px);
  border-color: #9ca3af;
  text-decoration: none;
}
.bw-share-x { background: #111827; border-color: #111827; color: #ffffff; }
.bw-share-line { background: #22c55e; border-color: #16a34a; color: #ffffff; }
.bw-share-facebook { background: #2563eb; border-color: #1d4ed8; color: #ffffff; }
.bw-share-detail .bw-share-link {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.tag-chip-google-news,
.tag-chip-google { background: #eef4ff; border-color: #c7d7fe; color: #1d4ed8; }
.tag-chip-yahoo { background: #f5efff; border-color: #ddd6fe; color: #6d28d9; }
.tag-chip-bing { background: #ecfeff; border-color: #bae6fd; color: #0f766e; }
.tag-chip-duck { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.tag-chip-instagram { background: #fff1f7; border-color: #fbcfe8; color: #be185d; }
.tag-chip-tiktok { background: #f3f4f6; border-color: #d1d5db; color: #111827; }
.bw-explore .tag-list,
.bw-related-words .tag-list { margin-top: 10px; }

.bw-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.bw-explore-grid .bw-section {
  margin-bottom: 0;
}

.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; }

.status-bar-list {
  display: grid;
  gap: 14px;
}

.status-bar-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}

.status-bar-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.status-bar-copy {
  flex: 1;
  min-width: 0;
}

.status-bar-emoji {
  width: 92px;
  height: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  font-size: 82px;
  line-height: 1;
  overflow: hidden;
}

.status-bar-copy-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.status-bar-text {
  min-width: 0;
}

.status-bar-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
}

.status-bar-value {
  font-size: 16px;
  line-height: 1.2;
  color: var(--main);
}

.status-bar-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.status-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e5484d 0%, #f59e0b 100%);
}

.status-bar-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .status-bar-main {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .status-bar-emoji {
    width: 56px;
    min-height: 62px;
    font-size: 50px;
  }
}

.news-links-list { display: grid; gap: 8px; margin-top: 8px; }
.bw-related-tags { margin-bottom: 12px; }
.bw-news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bw-news-item {
  display: block;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.bw-news-thumb {
  width: 192px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #eee7dc;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bw-news-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-align: center;
  background-color: #e8ecf3;
  background-image: url('/wp/wp-content/uploads/2026/03/noimage.png') !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.bw-news-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.bw-news-link-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.bw-news-title {
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bw-news-item a {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bw-news-item a:hover { color: var(--main); }
.bw-news-snippet {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475467;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bw-news-source {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bw-related-info,
.bw-external-resources,
.bw-external-group,
.bw-news-list {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.bw-section.bw-related-info,
.bw-section.bw-external-resources,
.bw-section.bw-related-info .section-note,
.bw-section.bw-related-info .tag-list,
.bw-section.bw-related-info .tag-chip,
.bw-section.bw-related-info .bw-news-item,
.bw-section.bw-related-info .bw-news-item a,
.bw-section.bw-related-info .bw-news-snippet,
.bw-section.bw-related-info .bw-news-source,
.bw-section.bw-external-resources .bw-news-item,
.bw-section.bw-external-resources .bw-news-item a,
.bw-section.bw-external-resources .bw-news-snippet,
.bw-section.bw-external-resources .bw-news-source {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.bw-section.bw-related-info,
.bw-section.bw-external-resources {
  overflow: hidden;
}
.bw-section.bw-related-info .tag-list,
.bw-section.bw-related-info .section-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bw-external-group + .bw-external-group {
  margin-top: 14px;
}
.bw-external-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--sub);
}
@media (max-width: 520px) {
  .bw-news-link-wrap {
    grid-template-columns: 1fr;
  }
  .bw-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}
.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-links.period-links-single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.period-card { padding: 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.period-card:hover { color: var(--ink); background: #eaf2ff; }
.period-label { font-weight: 700; }

.home-archive-link {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #d7e3f4;
  border-radius: var(--radius);
  box-shadow: none;
}

.home-archive-link-head {
  margin-bottom: 12px;
}

.home-archive-link-head h2 {
  margin: 0;
  font-size: 20px;
  color: var(--sub);
}

.home-archive-link-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.home-archive-link .period-links {
  margin-top: 0;
}

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

.sidebar-today-widget {
  background: #fbf6ee;
  border-color: #eadfcf;
  box-shadow: none;
}

.sidebar-today-widget .widget-title {
  border-bottom-color: #c9a97d;
}

.sidebar-today-date { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.sidebar-today-list li { border-bottom: 1px solid var(--border); padding: 7px 0; }
.sidebar-today-list li:last-child { border-bottom: 0; }
.sidebar-today-list li { display: flex; align-items: flex-start; gap: 8px; }
.sidebar-today-mark {
  flex: 0 0 auto;
  color: #b08957;
  font-size: 11px;
  line-height: 1.7;
  transform: translateY(1px);
}
.sidebar-today-text { flex: 1 1 auto; color: var(--ink); line-height: 1.55; }

.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: none;
  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; }

.bw-main-article {
  padding: 26px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fffaf4 100%);
  border: 1px solid rgba(229, 72, 77, 0.16);
}

.bw-main-article > h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
}

.bw-article-body {
  color: #344054;
}

.bw-article-body > * {
  margin: 0;
}

.bw-article-body > * + * {
  margin-top: 18px;
}

.bw-article-body h2,
.bw-article-body h3 {
  margin-top: 34px;
  padding-left: 14px;
  border-left: 4px solid var(--main);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.bw-article-body p,
.bw-article-body li {
  font-size: 15px;
  line-height: 2;
}

.bw-article-body p:first-child {
  font-size: 16px;
  color: #1f2a44;
}

.bw-article-body ul,
.bw-article-body ol {
  margin: 0;
  padding-left: 1.4em;
}

.bw-article-body li + li {
  margin-top: 10px;
}

.bw-article-body strong {
  color: #111827;
}

@media (max-width: 640px) {
  .bw-main-article {
    padding: 22px 16px;
  }

  .bw-main-article > h2 {
    font-size: 21px;
  }

  .bw-article-body h2,
  .bw-article-body h3 {
    font-size: 18px;
    padding-left: 12px;
  }

  .bw-article-body p,
  .bw-article-body li,
  .bw-article-body p:first-child {
    font-size: 14px;
  }
}

.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: none;
}

.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; }

.cat-about {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

.cat-about.is-current {
  background: #fff;
  color: var(--sub);
}

.site-about-page .main-layout { grid-template-columns: 1fr; }
.site-about-page .sidebar { display: none; }

.about-page {
  display: block;
}

.about-sheet {
  background:
    radial-gradient(circle at top right, rgba(229, 72, 77, 0.08), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fff9f4 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 44px;
  overflow: hidden;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  padding: 0;
  background: transparent;
}

.about-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-copy,
.about-reading-body {
  min-width: 0;
}

.about-hero-copy {
  max-width: 760px;
}

.about-hero-art img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  filter: none;
  border-radius: 20px;
}

.about-eyebrow {
  margin: 0 0 12px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--main);
}

.about-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--sub);
}

.about-lead {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.75;
  color: #475467;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.about-link-secondary:hover {
  background: #f8fafc;
  color: var(--ink);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.about-divider {
  height: 1px;
  margin: 44px 0;
  background: linear-gradient(90deg, rgba(31, 42, 68, 0.08) 0%, rgba(31, 42, 68, 0.18) 30%, rgba(31, 42, 68, 0.08) 100%);
}

.about-copy-flow {
  display: block;
  padding: 0;
}

.about-reading {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.about-reading-figure {
  margin: 0;
}

.about-reading-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: 20px;
}

.about-copy-block + .about-copy-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e7eaf0;
}

.about-copy-block h2,
.about-reading h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--main);
}

.about-subsection {
  margin-top: 30px;
}

.about-inline-figure {
  margin: 20px auto 24px;
}

.about-inline-figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 20px;
  margin: 0 auto;
}

.about-subsection h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--sub);
}

.about-copy-block p,
.about-reading-copy p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: #475467;
}

.about-bullet-list {
  margin: 22px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
  color: #475467;
}

.about-bullet-list li + li {
  margin-top: 6px;
}

.about-reading-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 40px;
}

.about-reading-line {
  display: block;
  width: 4px;
  min-height: 74px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.35);
}

.about-reading-copy h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #b45309;
}

.bw-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bw-metric-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bw-metric-label {
  color: var(--muted);
  font-size: 12px;
}

.bw-metric-value {
  font-size: 28px;
  line-height: 1.1;
  color: var(--sub);
}

.bw-metric-value-small {
  font-size: 18px;
}

.bw-metric-sub {
  color: var(--muted);
  font-size: 11px;
}

@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)); }
  .bw-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-grid { grid-template-columns: 1fr; }
  .home-discovery-sections { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-reading { grid-template-columns: 1fr; }
  .about-reading-figure img { max-width: 360px; }
}

@media (max-width: 820px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 14px 0 28px; gap: 0; }
  .site-branding { margin-bottom: 14px; }
  .header-search { max-width: none; margin: 0 0 14px; padding: 0; }
  .period-links { grid-template-columns: 1fr; }
  .period-links.period-links-single { grid-template-columns: 1fr; }
  .bw-title { font-size: 26px; }
  .bw-title-row { gap: 8px; }
  .bw-share-detail { width: 100%; justify-content: flex-end; }
}

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

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

@media (max-width: 760px) {
  .main-layout { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .score-evidence { grid-template-columns: 1fr; }
  .bw-explore-grid { 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-metric-grid { grid-template-columns: 1fr; }
  .bw-home-cell { flex-basis: 100%; max-width: 100%; }
  .bw-grid-compact { grid-template-columns: 1fr; }
  .bw-grid { grid-template-columns: 1fr; }
  .home-category-card-list { grid-template-columns: 1fr; }
  .period-tab {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .about-title {
    font-size: 24px;
    white-space: normal;
  }
  .about-sheet { padding: 28px 22px; }
  .about-copy-block h2,
  .about-reading h2 { font-size: 22px; }
}

/* Task1: Buzz score gauge */
.bw-buzz-score{margin:14px 0 6px;padding:12px 14px;border:1px solid #e6eaf0;border-radius:12px;background:#fff}
.bw-buzz-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.bw-buzz-title{font-weight:700;font-size:13px;letter-spacing:.02em;color:#1d2a3b}
.bw-buzz-level{font-size:12px;padding:2px 8px;border-radius:999px;background:#eef3ff;color:#2f5fd0}
.bw-buzz-meter{height:10px;border-radius:999px;background:#edf2f7;overflow:hidden}
.bw-buzz-fill{display:block;height:100%;background:linear-gradient(90deg,#53a8ff,#2f5fd0)}
.bw-buzz-meta{margin-top:8px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.bw-buzz-meta strong{font-size:20px;line-height:1;color:#132238}
.bw-buzz-meta span{font-size:13px;color:#516173}
.bw-buzz-meta small{font-size:12px;color:#6a7a8c}
.bw-buzz-high .bw-buzz-level{background:#ffe9e9;color:#b42318}
.bw-buzz-high .bw-buzz-fill{background:linear-gradient(90deg,#ff7b7b,#e53935)}
.bw-buzz-mid .bw-buzz-level{background:#fff5e8;color:#b54708}
.bw-buzz-mid .bw-buzz-fill{background:linear-gradient(90deg,#ffbf66,#f59e0b)}
.bw-buzz-warm .bw-buzz-level{background:#eef3ff;color:#2f5fd0}
.bw-buzz-low .bw-buzz-level{background:#f2f4f7;color:#475467}
.bw-buzz-low .bw-buzz-fill{background:linear-gradient(90deg,#a4b2c2,#6b7280)}
@media (max-width:768px){.bw-buzz-score{padding:10px 12px}.bw-buzz-meta strong{font-size:18px}}

/* Task2: 7-day trend chart */
.bw-trend-chart .trend-chart-wrap{position:relative;height:260px;overflow:hidden;box-sizing:border-box}
.bw-trend-chart canvas{display:block!important;width:100%!important;height:100%!important;max-height:100%!important}
.bw-trend-chart .trend-chart{max-width:100%;height:auto;display:block}
@media (max-width:768px){.bw-trend-chart .trend-chart-wrap{height:220px}}

/* Task4: category ranking cards */
.bw-ranking-grid{display:grid;grid-template-columns:1fr;gap:14px}
.bw-ranking-item{display:grid;grid-template-columns:54px 1fr;gap:12px;background:#fff;border:1px solid #e6ebf2;border-radius:12px;padding:14px}
.bw-ranking-item.is-top{border-color:#f59e0b;}
.bw-ranking-rank{width:40px;height:40px;border-radius:999px;background:#1f3a8a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.bw-ranking-item.is-top .bw-ranking-rank{background:#f59e0b;color:#2a1600}
.bw-ranking-body h3{margin:0 0 6px;font-size:20px;line-height:1.4}
.bw-ranking-body h3 a{text-decoration:none;color:#132238}
.bw-ranking-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:#5b6878;font-size:13px;margin-bottom:8px}
.bw-ranking-score span{display:block;font-size:13px;color:#4a5869;margin-bottom:6px}
.bw-ranking-meter{height:8px;background:#edf2f7;border-radius:999px;overflow:hidden}
.bw-ranking-meter span{display:block;height:100%;background:linear-gradient(90deg,#53a8ff,#2f5fd0)}
@media (max-width:768px){.bw-ranking-item{grid-template-columns:44px 1fr;padding:12px}.bw-ranking-body h3{font-size:17px}}

/* Task5: related word chips */
.bw-related-chip-list{display:flex;flex-wrap:wrap;gap:10px}
.bw-related-chip{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;border:1px solid #d6deea;background:#f7faff;color:#1f3a8a;text-decoration:none;font-size:13px;line-height:1.2}
.bw-related-chip:hover{background:#eef4ff;border-color:#9bb5e6}

/* Task6: affiliate insert */
.bw-affiliate-box{margin:18px 0;padding:14px;border:1px solid #e6ebf2;border-radius:10px;background:#fffdf5}
.bw-affiliate-title{margin:0 0 8px;font-weight:700;color:#8a5300;font-size:13px}
.bw-affiliate-link{display:inline-block;padding:8px 12px;border-radius:8px;background:#f59e0b;color:#2a1600;text-decoration:none;font-weight:600}
.bw-affiliate-link:hover{background:#fbbf24}

/* Monetization runtime ad slots */
.bw-ad-wrap{margin:14px 0;padding:10px;border:1px solid #e5eaf1;border-radius:10px;background:#fff}
.bw-ad-placeholder{display:flex;align-items:center;justify-content:center;min-height:80px;background:#f8fafc;color:#64748b;font-size:12px}
.ad-article-top{margin-top:10px}
.ad-article-mid{margin:16px 0}
.ad-archive-inline{margin:8px 0 14px}


/* Mobile hamburger menu */
.mobile-nav-wrap,
.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    z-index: 100000;
    padding-top: 38px;
    padding-bottom: 12px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  .header-topbar {
    z-index: 2147483500 !important;
    overflow: visible;
  }

  .topbar-inner {
    position: relative;
    z-index: 2147483601;
  }

  .topbar-inner {
    gap: 10px;
  }

  .topbar-date {
    display: none;
  }

  .topbar-ticker {
    min-width: 0;
  }

  .mobile-nav-wrap-topbar {
    display: flex;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    position: relative;
    z-index: 2147483610;
    overflow: visible;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    align-items: start;
    padding: 10px 0 6px;
  }

  .site-branding {
    min-width: 0;
    margin: 0;
  }

  .site-logo {
    gap: 10px;
    transform: none;
  }

  .logo-sub {
    margin-top: 1px;
  }

  .header-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: block;
  }

  .header-search form {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .category-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 4px 0 4px 8px;
    font-size: 0;
    font-weight: 700;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    z-index: 2147483611;
  }

  .mobile-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-nav-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    margin: 0;
  }

  .mobile-nav-toggle-label {
    display: none;
  }

  .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0;
    background: rgba(16, 24, 40, 0.48);
    z-index: 2147483646 !important;
  }

  .mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    bottom: 0;
    width: min(68vw, 300px);
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: none;
    z-index: 2147483647 !important;
    overflow-y: auto;
    padding: 16px 14px 22px;
  }

  body.admin-bar .mobile-nav-panel {
    top: 0 !important;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .mobile-nav-backdrop,
  body.mobile-nav-open .mobile-nav-panel {
    display: block;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
  }

  .mobile-nav-close {
    display: none !important;
    border: 0;
    background: transparent;
    color: var(--sub);
    font-size: 22px;
    line-height: 1;
    padding: 2px 6px;
  }

  .mobile-nav-section {
    margin-bottom: 16px;
  }

  .mobile-nav-section-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .mobile-nav-list a,
  .mobile-nav-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-nav-accordion {
    cursor: pointer;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-accordion:hover {
    background: #eef2f7;
    color: var(--sub);
  }

  .mobile-nav-accordion-panel {
    margin-top: 8px;
  }

  .mobile-nav-accordion-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
  }

  .mobile-nav-accordion-icon::before,
  .mobile-nav-accordion-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease;
  }

  .mobile-nav-accordion-icon::before {
    left: 0;
  }

  .mobile-nav-accordion-icon::after {
    right: 0;
    transform: rotate(90deg);
  }

  .mobile-nav-accordion[aria-expanded="true"] .mobile-nav-accordion-icon::after {
    transform: rotate(0deg);
  }

  .mobile-nav-cat-count {
    font-size: 11px;
    color: var(--muted);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-bottom: 10px;
  }

  .header-inner {
    row-gap: 4px;
    padding: 8px 0 4px;
  }

  .header-search {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 20px);
  }

  .topbar-inner {
    gap: 8px;
  }

  .header-inner {
    row-gap: 3px;
    padding: 6px 0 2px;
  }

  .logo-text {
    font-size: 24px;
  }

  .search-input {
    padding: 9px 12px;
  }

  .search-btn {
    padding: 0 14px;
  }
}


/* Top 3 trend accents */
/* Hero layout: top-1 full width, top-2/3 side by side */
.bw-home-grid .bw-home-cell.cell-top1 {
  flex: 0 0 100%;
  max-width: 100%;
}
.bw-home-grid .bw-home-cell.cell-top2,
.bw-home-grid .bw-home-cell.cell-top3 {
  flex: 0 0 calc((100% - 12px) / 2);
  max-width: calc((100% - 12px) / 2);
}
.buzzword-card.is-top3 {
  min-height: 110px;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}
.buzzword-card.is-top3:hover {
  transform: translateY(-2px);
}
/* Watermark rank number */
.buzzword-card.is-top3.top-1::after { content: "1"; }
.buzzword-card.is-top3.top-2::after { content: "2"; }
.buzzword-card.is-top3.top-3::after { content: "3"; }
.buzzword-card.is-top3::after {
  content: none !important;
  display: none !important;
}
.top-badge-new {
  position: absolute;
  top: 14px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .1em;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}
.buzzword-card.is-top3.top-1 .top-badge-new { background: #d4a017; color: #fff; }
.buzzword-card.is-top3.top-2 .top-badge-new { background: #8e9aaa; color: #fff; }
.buzzword-card.is-top3.top-3 .top-badge-new { background: #b87040; color: #fff; }
.buzzword-card.is-top3 .card-title {
  padding-right: 54px;
}
#tab-new .bw-home-grid .bw-home-cell.cell-top1 .buzzword-card.is-top3.top-1 .card-title {
  font-size: 1.48em;
}

/* Sidebar trend calendar */
.sidebar-calendar-widget {
  padding-bottom: 8px;
}

.sidebar-calendar-widget .bw-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sidebar-calendar-widget .bw-cal-month {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.sidebar-calendar-widget .bw-cal-nav-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.sidebar-calendar-widget .bw-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}
.sidebar-calendar-widget .bw-cal-table th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 4px 0;
}
.sidebar-calendar-widget .bw-cal-table td {
  text-align: center;
  padding: 2px 0;
  height: 28px;
}
.sidebar-calendar-widget .bw-cal-empty {
  background: transparent;
}
.sidebar-calendar-widget .bw-cal-day span,
.sidebar-calendar-widget .bw-cal-day a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 12px;
}
.sidebar-calendar-widget .bw-cal-day a {
  text-decoration: none;
  color: var(--ink);
  background: #f8fafc;
}
.sidebar-calendar-widget .bw-cal-day.has-post a:hover {
  background: rgba(229, 72, 77, 0.12);
  color: var(--main);
}
.sidebar-calendar-widget .bw-cal-day.is-today a,
.sidebar-calendar-widget .bw-cal-day.is-today span {
  outline: 1px solid #94a3b8;
}
.sidebar-calendar-widget .bw-cal-day.is-selected a {
  background: #dbeafe;
  color: #1e3a8a;
}
.archive-date-filter {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.archive-date-filter a {
  color: var(--main);
  text-decoration: none;
  font-weight: 600;
}

.bw-contact-form { max-width: 760px; margin-top: 12px; }
.bw-contact-form p { margin: 0 0 12px; }
.bw-contact-form input[type="text"],
.bw-contact-form input[type="email"],
.bw-contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.bw-contact-form button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.bw-contact-form .bw-hp { position: absolute; left: -9999px; }
.bw-contact-notice { padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; }
.bw-contact-notice-ok { background: #ecfdf5; border: 0; color: #065f46; }
.bw-contact-notice-ng { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.bw-contact-back-btn {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.bw-contact-back-btn:hover { background: #0284c7; opacity: 1; }
