@import "./tokens.css";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo,
    sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  background: #f5f5f5;
}

a {
  color: #1a5aa8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.frame {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid #d0d0d0;
  font-size: 12px;
  color: #666;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
}

.topbar-note {
  color: #888;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 2px solid #1a4f8c;
  padding-bottom: 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 12px;
}

/* Lockup proportions traced from the 01 proposal: mark height ≈ 1.17em of the
   wordmark, gap ≈ 0.28em, tagline centred under the whole row. */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.33em;
  font-size: 28px;
  font-weight: 800;
  color: #16325a;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
  color: #0f2645;
}

/* No explicit gap: in the proposal the mark sits flush against the wordmark's
   box and the visible ~0.25em air is the 「う」 left side bearing. */
.brand-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-icon {
  height: 1.17em;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand-mark {
  font-size: inherit;
  font-weight: 800;
  color: inherit;
  letter-spacing: inherit;
  line-height: 1.1;
}

.brand-tag {
  font-size: 9.5px;
  font-weight: 500;
  color: #1e2a3a;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand {
    font-size: 22px;
  }

  .brand-tag {
    font-size: 9.5px;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 19px;
  }

  .brand-tag {
    font-size: 8.5px;
  }
}

.search {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
  display: flex;
  border: 2px solid #1a4f8c;
}

.search input {
  flex: 1;
  border: 0;
  padding: 8px 10px;
  font-size: 14px;
  background: #f0f0f0;
  color: #888;
}

.search button {
  border: 0;
  background: #1a4f8c;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  opacity: 0.55;
  cursor: not-allowed;
}

.header-links {
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
}

.gnav {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.gnav a,
.gnav-all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 7px 18px;
  color: #333;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.gnav a svg,
.gnav-all svg {
  width: 20px;
  height: 20px;
}

.gnav-all {
  color: #1a4f8c;
}

.gnav a:hover,
.gnav-all:hover {
  background: #f3f7fb;
  color: #1a4f8c;
  text-decoration: none;
}

.gnav-all:focus-visible,
.gnav a:focus-visible {
  outline: 2px solid #1a5aa8;
  outline-offset: -2px;
}

.crumbs {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.crumbs .sep {
  margin: 0 4px;
  color: #999;
}

/* 3-column: left nav + center + TV rail */
.layout-3 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: start;
  padding-bottom: 40px;
}

.col-left,
.col-right {
  width: auto;
  min-width: 0;
}

.col-center {
  min-width: 0;
  overflow-x: auto;
}

.nav-size-stack {
  display: flex;
  flex-direction: column;
}

.nav-size-group {
  border-bottom: 1px solid #e0e0e0;
}

.nav-size-group:last-child {
  border-bottom: 0;
}

.nav-size-label {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.04em;
}

/* Right rail: horizontal scrolling TV CTA */
.tv-rail {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  background: #1a4f8c;
  border: 1px solid #143d6e;
  color: #fff !important;
  text-decoration: none !important;
  box-sizing: border-box;
}

.tv-rail:hover {
  background: #143d6e;
  text-decoration: none !important;
}

.tv-rail-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tv-marquee 14s linear infinite;
}

.tv-rail:hover .tv-rail-track {
  animation-play-state: paused;
}

.tv-rail-text {
  flex-shrink: 0;
  padding: 0 1.4em;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  white-space: nowrap;
}

@keyframes tv-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-rail-track {
    animation: none;
  }
}

.box {
  background: #fff;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.box-soft {
  background: #fff;
}

.box-head {
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 13px;
}

.box-body {
  margin: 0;
  padding: 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.box-foot {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 12px;
  border-top: 1px solid #eee;
}

.side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav > li {
  border-bottom: 1px solid #e8e8e8;
}

.side-nav > li:last-child {
  border-bottom: 0;
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  color: #1a5aa8;
  font-size: 12px;
  line-height: 1.45;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: #eef5fc;
  text-decoration: none;
}

.side-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

.side-nav-sub a {
  padding: 3px 10px 3px 22px;
  font-size: 12px;
  color: #555;
}

.side-nav.compact a {
  padding: 6px 10px;
  font-size: 12px;
}

/* Mobile category filters (desktop uses left nav) */
.band-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px;
}

.band-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #c5cdd6;
  background: #f4f7fa;
  font-size: 12px;
  font-weight: 700;
  color: #1a4f8c;
  line-height: 1.3;
  text-decoration: none;
}

.band-chip:hover {
  background: #e8f1fa;
  border-color: #1a5aa8;
  text-decoration: none;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.rail-list li {
  margin-bottom: 8px;
}

.rail-model {
  display: block;
  font-weight: 700;
  color: #333;
}

.howto {
  margin: 0;
  padding: 10px 10px 10px 28px;
  font-size: 12px;
  color: #444;
  line-height: 1.7;
}

/* Center panels */
.panel {
  background: #fff;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
}

.panel-head.border-accent {
  border-bottom: 2px solid #c62828;
}

.panel-title,
.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.panel-meta,
.panel-lede {
  margin: 0;
  padding: 0 14px 10px;
  color: #666;
  font-size: 12px;
}

.panel-head + .panel-lede,
.panel-head + .disclaimer-inline {
  padding-top: 10px;
}

.disclaimer-inline {
  margin: 0;
  padding: 10px 14px;
  background: #fff8e8;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #664;
}

.hero-band {
  background: linear-gradient(90deg, #1a4f8c, #2a6bb0);
  color: #fff;
  padding: 22px 20px;
  margin-bottom: 12px;
  border: 1px solid #143d6e;
}

.hero-band h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-band p {
  margin: 0;
  font-size: 13px;
  opacity: 0.95;
}

.home-size-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ddd;
}

.home-size-group {
  border-bottom: 1px solid #ddd;
}

.home-size-label {
  margin: 0;
  padding: 12px 14px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1a4f8c;
  background: #f7f7f7;
}

.home-size-label a {
  color: #1a4f8c;
  text-decoration: none;
}

.home-size-label a:hover {
  text-decoration: underline;
}

.home-cat-stack {
  display: flex;
  flex-direction: column;
}

.home-cat-stack .home-cat {
  border-bottom: 1px solid #eee;
}

.home-cat-stack .home-cat:last-child {
  border-bottom: 0;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: #ddd;
  border-top: 1px solid #ddd;
}

.home-cat {
  display: block;
  padding: 14px 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.home-cat:hover {
  background: #eef5fc;
  text-decoration: none;
}

.home-cat-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a5aa8;
  margin-bottom: 4px;
}

.home-cat-meta {
  display: block;
  font-size: 11px;
  color: #777;
}

/* Rank panels */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 12px 14px 16px;
}

.rank-panel {
  border: 1px solid #e0e0e0;
  background: #fafafa;
}

.rank-panel-title {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.muted {
  font-weight: 500;
  color: #888;
  font-size: 11px;
}

.rank-list {
  padding: 4px 0;
}

.rank-row {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  background: #eee;
  border: 1px solid #ccc;
}

.rank-row:nth-child(1) .rank-badge,
.prod-list > .prod-card:nth-child(1) .rank-badge {
  background: #f5c518;
  border-color: #d4a80a;
  color: #fff;
}

.rank-row:nth-child(2) .rank-badge,
.prod-list > .prod-card:nth-child(2) .rank-badge {
  background: #c0c0c0;
  border-color: #a8a8a8;
  color: #fff;
}

.rank-row:nth-child(3) .rank-badge,
.prod-list > .prod-card:nth-child(3) .rank-badge {
  background: #cd7f32;
  border-color: #b06b28;
  color: #fff;
}

.prod-list {
  padding: 4px 0;
}

.prod-card {
  padding: 0;
  border-bottom: 1px solid #eee;
}

.prod-card:last-child {
  border-bottom: 0;
}

/* Desktop: image | main content | small vertical marketplace CTAs */
.prod-card-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  border: none;
  background: #fff;
}

.prod-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prod-card-body {
  flex: 0 0 auto;
  min-width: 0;
  padding: 14px 14px 8px;
}

.prod-card-action {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  min-width: 0;
  padding: 4px 14px 10px;
  border-top: none;
}

.prod-card-action .prod-price {
  font-size: 16px;
  line-height: 1.3;
}

.prod-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.price-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: #888;
}

.prod-card-action .prod-cta-analysis {
  display: inline-flex;
  min-width: 148px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
}

.prod-thumb {
  flex: 0 0 auto;
  align-self: start;
  aspect-ratio: 1 / 1;
  width: 140px;
  height: 140px;
  max-width: 140px;
  min-width: 140px;
  border-right: none;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  box-sizing: border-box;
}

.prod-thumb.is-empty {
  background: #f3f3f3;
  min-height: 112px;
}

.prod-line1 {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.prod-specs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 0;
  margin-top: 4px;
  font-size: 12px;
  color: #555;
  line-height: 1.45;
}

.prod-spec {
  white-space: nowrap;
}

.prod-spec-sep {
  margin: 0 0.35em;
  color: #bbb;
  white-space: nowrap;
}

.prod-ratings,
.analysis-ratings {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

/* Category cards: ratings sit in row 1 as a quiet horizontal strip */
.prod-card .prod-ratings {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 10px;
}

/* Analysis pages keep a compact horizontal rating strip */
.analysis-ratings {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}

.rating-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 3px;
}

.prod-card .prod-ratings .rating-row {
  font-size: 12px;
  line-height: 1.35;
  color: #555;
}

.rating-scoreline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
}

.prod-card .prod-ratings .rating-stars {
  margin-right: 1px;
}

@media (min-width: 721px) {
  .analysis-ratings .rating-row + .rating-row {
    padding-left: 12px;
    border-left: 1px solid #e6e6e6;
  }
}

.rating-source {
  color: #555;
  font-size: 11px;
  font-weight: 700;
}

.rating-stars {
  color: #e6a700;
  letter-spacing: 0.02em;
}

.rating-row strong {
  color: #df5b16;
  font-size: 13px;
}

.prod-card .prod-ratings .rating-row strong {
  font-size: 13px;
}

.rating-row-empty strong {
  color: #999;
  font-weight: 600;
}

.rating-out-of,
.rating-count {
  color: #777;
  font-size: 11px;
}

.prod-price {
  color: #c00;
  font-weight: 700;
}

.prod-price.is-empty {
  color: #999;
  font-weight: 500;
}

.prod-card-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.prod-cta {
  display: inline-block;
  padding: 4px 10px;
  line-height: 1.25;
  background: #1a4f8c;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #143d6e;
  white-space: nowrap;
  text-align: center;
}

.prod-cta:hover {
  background: #143d6e;
}

.prod-cta-analysis {
  background: #c45c26;
  border-color: #a34a1c;
}

.prod-cta-analysis:hover {
  background: #a34a1c;
}

.prod-cta-buy {
  background: #1a4f8c;
  border-color: #143d6e;
}

.prod-cta-rakuten {
  background: #bf0000;
  border-color: #9a0000;
}

.prod-cta-rakuten:hover {
  background: #9a0000;
}

.prod-market-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
}

/* Default chip style (analysis CTA bars, etc.) */
.prod-market-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dce3ea;
  font-size: 11px;
  font-weight: 700;
  color: #444;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.25;
}

.prod-market-link:hover {
  border-color: #c5ced8;
  background: #f7f9fb;
}

.prod-market-amazon {
  color: #111;
}

.prod-market-kakaku {
  color: #c45c00;
}

.prod-market-rakuten {
  color: #bf0000;
}

.prod-market-yahoo {
  color: #6001d2;
}

/* Pilot: 一言メリット・デメリット (○ merit / × demerit / △ caution) */
.prod-card-highlights {
  width: 100%;
  box-sizing: border-box;
  padding: 0 14px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #555;
}

.prod-hl-symbol-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prod-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 3px;
}

.prod-hl-item:last-child {
  margin-bottom: 0;
}

.prod-hl-mark {
  flex: 0 0 auto;
  width: 1em;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.prod-hl-merit .prod-hl-mark {
  color: #1a7f37;
}

.prod-hl-demerit .prod-hl-mark {
  color: #c62828;
}

.prod-hl-caution .prod-hl-mark {
  color: #b26a00;
}

.prod-hl-text {
  flex: 1 1 auto;
  min-width: 0;
}

.prod-feature-tag {
  margin: 4px 0 2px;
  font-size: 12px;
  line-height: 1.4;
  color: #3a4a5c;
}

.prod-hl-label {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  margin-bottom: 3px;
}

.prod-hl-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}

.prod-hl-list li {
  margin: 0 0 2px;
}

.prod-hl-list li:last-child {
  margin-bottom: 0;
}

/* Right column: compact vertical marketplace CTAs */
.prod-card-markets {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 88px;
  max-width: 104px;
  box-sizing: border-box;
  padding: 12px 10px 12px 4px;
  border-top: none;
  background: transparent;
}

.prod-card .prod-card-markets .prod-market-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #cfd8e2;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.prod-card .prod-card-markets .prod-market-link:hover {
  border-color: #c5ced8;
  background: #f7f9fb;
  text-decoration: none !important;
}

.prod-card .prod-card-markets .prod-market-link.is-disabled {
  color: #999;
  border-color: #eee;
  background: #f7f7f7;
  pointer-events: none;
}

/* Desktop only: barely-there nudge to right-column marketplace CTAs */
@media (min-width: 721px) {
  .prod-card-markets {
    min-width: 94px; /* was 88 */
    max-width: 112px; /* was 104 */
  }

  .prod-card .prod-card-markets .prod-market-link {
    min-height: 28px; /* was 0 */
    padding: 7px 8px; /* was 6px 8px */
  }
}

.analysis-cta-bar .prod-market-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.analysis-cta-bar .prod-card-cta,
.analysis-cta-bar {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.prod-cta.is-disabled {
  background: #ccc;
  border-color: #bbb;
  color: #666 !important;
  font-weight: 500;
}

@media (max-width: 720px) {
  /* Stack: image → middle → compact CTA row (no 3-col squeeze) */
  .prod-card-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .prod-thumb {
    align-self: center;
    width: 112px;
    height: 112px;
    min-width: 112px;
    max-width: 112px;
    min-height: 112px;
    aspect-ratio: 1 / 1;
    margin-top: 10px;
  }

  .prod-card-body {
    padding: 10px 12px 6px;
  }

  .prod-card-action {
    padding: 2px 12px 10px;
    gap: 6px;
  }

  .prod-card-action .prod-price {
    font-size: 15px;
  }

  .prod-card-action .price-note {
    font-size: 10px;
  }

  .prod-card-action .prod-cta-analysis {
    min-width: 128px;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .prod-card .prod-ratings {
    gap: 3px 10px;
    margin-top: 8px;
  }

  .prod-card-highlights {
    padding: 0 12px 8px;
    font-size: 11px;
  }

  .prod-card-markets {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 12px 12px;
  }

  .prod-card .prod-card-markets .prod-market-link {
    flex: 1 1 calc(50% - 6px);
    width: auto;
    min-height: 36px;
    padding: 7px 6px;
    font-size: 11px;
  }
}

.rank-model {
  font-weight: 700;
  font-size: 13px;
}

.rank-name {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* Topic tabs + items */
.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
}

.topic-tabs a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.topic-tabs a:hover {
  background: #1a4f8c;
  border-color: #1a4f8c;
  color: #fff;
  text-decoration: none;
}

.axis-block {
  scroll-margin-top: 12px;
  padding: 16px 14px 8px;
  border-top: 1px solid #e5e5e5;
}

.axis-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #1a4f8c;
}

.bucket-block {
  margin-bottom: 16px;
}

.bucket-head {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.bucket-note {
  margin: 0 0 8px;
  font-size: 11px;
  color: #777;
}

.item-list {
  border-top: 1px solid #e0e0e0;
}

.item-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.item-card:hover {
  background: #fafcff;
}

.item-left {
  flex: 1;
  min-width: 200px;
}

.item-right {
  width: 160px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  align-content: start;
  border-left: 1px solid #eee;
  padding-left: 12px;
}

.item-model {
  font-size: 15px;
  font-weight: 800;
  color: #1a5aa8;
  margin-bottom: 2px;
}

.item-model a {
  color: #1a5aa8;
  font-weight: 800;
}

.item-name {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.item-summary {
  font-size: 13px;
  color: #222;
  line-height: 1.55;
  margin-bottom: 6px;
}

.item-meta {
  font-size: 11px;
  color: #777;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 10px;
  color: #888;
}

.stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

.bucket-chip {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 3px 6px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #2c2c2c;
  color: #bbb;
  padding: 28px 0 20px;
  border-top: 4px solid #1a4f8c;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding-bottom: 20px;
}

.footer-grid h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a {
  color: #bbb;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-copy {
  border-top: 1px solid #444;
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #888;
}

/* Category drawer: shared by the home and category pages. */
body.category-drawer-open {
  overflow: hidden;
}

.category-drawer {
  position: fixed;
  z-index: 50;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.category-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.category-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 31, 53, 0.45);
  opacity: 0;
  transition: opacity 180ms ease;
}

.category-drawer.is-open .category-drawer-backdrop {
  opacity: 1;
}

.category-drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 34px));
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: 10px 0 34px rgba(12, 26, 46, 0.22);
  transform: translateX(-103%);
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.category-drawer.is-open .category-drawer-panel {
  transform: translateX(0);
}

.category-drawer-screen {
  min-height: 100%;
}

.category-drawer-titlebar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 64px;
  padding: 0 12px;
  border-bottom: 1px solid #e3e8ed;
}

.category-drawer-titlebar h2 {
  grid-column: 1 / 3;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1b2e47;
}

.category-drawer-screen:not(.is-root) .category-drawer-titlebar h2 {
  grid-column: 2;
}

.category-drawer-close,
.category-drawer-back {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1b2e47;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.category-drawer-close {
  grid-column: 3;
  font-weight: 300;
}

.category-drawer-back {
  grid-column: 1;
  font-size: 32px;
}

.category-drawer-close:hover,
.category-drawer-back:hover {
  background: #f0f5fa;
}

.category-drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 14px 16px 10px;
  padding: 0 12px;
  border: 1px solid #d5dde6;
  border-radius: 999px;
  background: #fafcfd;
  color: #617080;
}

.category-drawer-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.category-drawer-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #24384f;
  font: inherit;
}

.category-drawer-search input::placeholder {
  color: #9aa6b2;
}

.category-drawer-list,
.category-drawer-search-results {
  border-top: 1px solid #e8edf1;
}

.category-drawer-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #e8edf1;
  background: #fff;
  color: #1f3044;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.category-drawer-row:hover {
  background: #f5f8fb;
  text-decoration: none;
}

.category-drawer-row:focus-visible,
.category-drawer-close:focus-visible,
.category-drawer-back:focus-visible {
  position: relative;
  outline: 2px solid #1a5aa8;
  outline-offset: -2px;
}

.category-drawer-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #27445f;
}

.category-drawer-icon svg {
  width: 25px;
  height: 25px;
}

.category-drawer-chevron {
  color: #93a1af;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.category-drawer-empty {
  margin: 0;
  padding: 22px 16px;
  color: #71808f;
  font-size: 13px;
}

@media (min-width: 721px) {
  .category-drawer-panel {
    width: min(440px, calc(100vw - 48px));
  }
}

/* Sandwich hook article (center column) */
.sandwich-panel .sandwich-lede {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
}

.sandwich-panel .sandwich-lede strong {
  font-weight: 700;
}

.sandwich-panel h2 {
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  line-height: 1.4;
}

.cta-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0 20px;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
}

.cta-card-media {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card-media img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.cta-card-media.is-empty {
  background: #f0f0f0;
}

.cta-card-body {
  min-width: 0;
  flex: 1;
}

.cta-card-kicker {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.cta-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cta-card-specs {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

.cta-card-price {
  margin-top: 6px;
  font-size: 13px;
  color: #c00;
  font-weight: 700;
}

.cta-card-body > .price-note {
  margin-top: 2px;
}

.cta-card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .cta-card {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .layout-3 {
    grid-template-columns: 1fr;
  }

  .col-left,
  .col-right {
    width: 100%;
  }

  /* Category pages: chips replace left size-band nav on narrow screens */
  .page-category .col-left {
    display: none;
  }

  .page-category .band-chips {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    margin: 0 -1px;
    padding: 10px 14px 12px;
  }

  .tv-rail {
    height: 52px;
    min-height: 52px;
  }

  .tv-rail-text {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .item-right {
    width: 100%;
    border-left: 0;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 8px;
    grid-template-columns: repeat(4, 1fr);
  }

  .bucket-chip {
    grid-column: 1 / -1;
  }
}