/* ShuttlecockOEM Engineering Tools Hub — Editorial Precision Laboratory Design System */

.th-hub {
  --th-ink: #11202a;
  --th-copy: #3f515c;
  --th-muted: #586a75;
  --th-line: #dce4e8;
  --th-line-strong: #bcc8cf;
  --th-blue: #06698f;
  --th-blue-deep: #055270;
  --th-blue-soft: #eef6fa;
  --th-green: #047857;
  --th-green-soft: #ecfdf5;
  --th-surface: #ffffff;
  --th-canvas: #f7f9fa;
  --th-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--th-surface);
  color: var(--th-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.th-hub *,
.th-hub *::before,
.th-hub *::after {
  box-sizing: border-box;
}

.th-hub :where(button, input, select, textarea) {
  font-family: inherit;
}

.th-hub [hidden] {
  display: none !important;
}

.th-container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: 28px;
}

@media (min-width: 769px) {
  .th-container {
    padding-left: 28px;
    padding-right: max(28px, calc(154px - max(0px, (100vw - 1260px) / 2)));
  }
}

/* ---------- Breadcrumb & Hero ---------- */
.th-hero {
  background: linear-gradient(180deg, #f4f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--th-line);
  padding: 28px 0 44px;
}

.th-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--th-muted);
  margin-bottom: 22px;
}

.th-breadcrumb a {
  color: var(--th-blue-deep);
  text-decoration: none;
  font-weight: 500;
}

.th-breadcrumb a:hover {
  text-decoration: underline;
}

.th-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.th-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--th-blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-kicker-rule {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--th-blue);
  flex-shrink: 0;
}

.th-hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--th-ink);
  text-wrap: balance;
}

.th-hero-lead {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--th-copy);
  text-align: start;
}

.th-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--th-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--th-muted);
}

.th-byline-sep {
  color: var(--th-line-strong);
}

/* ---------- Answer-First GEO Authority Box ---------- */
.th-geo-card {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-inline-start: 4px solid var(--th-blue);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(17, 32, 42, 0.04);
}

.th-geo-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--th-blue-deep);
  text-align: center;
  text-wrap: balance;
}

.th-geo-text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--th-ink);
  text-align: start;
}

.th-geo-list {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--th-copy);
  text-align: start;
}

/* ---------- Sections ---------- */
.th-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--th-line);
}

.th-workspace-section {
  background: var(--th-canvas);
}

.th-section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.th-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--th-ink);
  text-wrap: balance;
}

.th-section-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--th-copy);
  text-align: start;
}

/* ---------- Buttons & Action Links (Strict No-Wrap) ---------- */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.th-btn:active {
  transform: translateY(1px);
}

.th-btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.th-btn-primary {
  background: var(--th-blue);
  border-color: var(--th-blue);
  color: #ffffff !important;
}

.th-btn-primary:hover {
  background: var(--th-blue-deep);
  border-color: var(--th-blue-deep);
}

.th-btn-outline {
  background: var(--th-surface);
  border-color: var(--th-blue);
  color: var(--th-blue-deep) !important;
}

.th-btn-outline:hover {
  background: var(--th-blue-soft);
}

.th-btn-ghost {
  background: var(--th-surface);
  border-color: var(--th-line-strong);
  color: var(--th-ink) !important;
}

.th-btn-ghost:hover {
  border-color: var(--th-blue);
  color: var(--th-blue-deep) !important;
}

.th-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--th-line);
}

.th-action-link,
.th-sub-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 600;
}

.th-action-link {
  color: var(--th-blue-deep);
  font-size: 0.875rem;
}

.th-action-link:hover {
  text-decoration: underline;
}

.th-sub-link {
  color: var(--th-muted);
  font-size: 0.78rem;
}

.th-sub-link:hover {
  color: var(--th-blue-deep);
}

/* ---------- Calculator Workspace Panels ---------- */
.th-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.th-panel {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(17, 32, 42, 0.04);
}

.th-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--th-line);
}

.th-panel-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--th-ink);
  text-align: center;
  text-wrap: balance;
}

.th-field {
  margin-bottom: 16px;
}

.th-field:last-child {
  margin-bottom: 0;
}

.th-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.th-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--th-ink);
  margin-bottom: 6px;
}

.th-field-row .th-label {
  margin-bottom: 0;
}

.th-field-hint {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: var(--th-muted);
}

.th-select,
.th-input,
.th-number {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--th-line-strong);
  border-radius: 6px;
  background: var(--th-surface);
  color: var(--th-ink);
  font-size: 0.9rem;
}

.th-select:focus,
.th-input:focus,
.th-number:focus {
  border-color: var(--th-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 105, 143, 0.14);
}

.th-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-range {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--th-blue);
  cursor: pointer;
}

.th-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.th-number {
  width: 92px;
  text-align: center;
  font-family: var(--th-mono);
  font-weight: 600;
}

.th-unit-suffix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--th-muted);
  min-width: 24px;
}

.th-unit-toggle {
  display: inline-flex;
  border: 1px solid var(--th-line-strong);
  border-radius: 6px;
  overflow: hidden;
}

.th-unit-btn {
  padding: 4px 11px;
  min-height: 30px;
  border: none;
  background: var(--th-surface);
  color: var(--th-copy);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.th-unit-btn.is-active {
  background: var(--th-blue);
  color: #ffffff;
}

.th-mono-val {
  font-family: var(--th-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--th-blue-deep);
}

/* ---------- Speed Calculator Results ---------- */
.th-speed-hero-readout {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  background: var(--th-blue-soft);
  border: 1px solid #c6dfeb;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  align-items: center;
}

.th-speed-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline-end: 14px;
  border-inline-end: 1px solid #c6dfeb;
}

.th-metric-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--th-muted);
  margin-bottom: 4px;
  text-wrap: balance;
}

.th-big-number {
  font-family: var(--th-mono);
  font-size: clamp(2.25rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--th-blue-deep);
}

.th-speed-submetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.th-mini-stat {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.th-mini-val {
  display: block;
  font-family: var(--th-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--th-ink);
}

.th-subblock {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--th-line);
}

.th-subblock-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--th-ink);
  text-wrap: balance;
}

.th-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.th-brand-cell {
  border: 1px solid var(--th-line);
  background: var(--th-canvas);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.th-brand-name {
  display: block;
  font-size: 0.75rem;
  color: var(--th-muted);
  margin-bottom: 4px;
}

.th-brand-val {
  font-family: var(--th-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--th-ink);
}

.th-steam-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.th-steam-head .th-subblock-title {
  margin-bottom: 0;
}

.th-steam-time {
  font-family: var(--th-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--th-green);
  background: var(--th-green-soft);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.th-steam-desc,
.th-season-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--th-copy);
  text-align: start;
}

/* ---------- Court Diagram ---------- */
.th-court-diagram-card {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 10px;
  padding: 20px;
}

.th-court-svg {
  width: 100%;
  height: auto;
  display: block;
}

.th-diagram-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--th-line);
  font-size: 0.84rem;
  color: var(--th-copy);
}

.th-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.th-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.th-dot-warn { background: #f59e0b; }
.th-dot-ok { background: #10b981; }
.th-dot-fast { background: #ef4444; }

/* ---------- OEM Cost Mode Switch & KPIs ---------- */
.th-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.th-mode-btn {
  padding: 11px 20px;
  min-height: 44px;
  border: 1px solid var(--th-line-strong);
  border-radius: 8px;
  background: var(--th-surface);
  color: var(--th-copy);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.th-mode-btn.is-active {
  background: var(--th-blue);
  border-color: var(--th-blue);
  color: #ffffff;
}

.th-quick-qty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.th-qty-chip {
  padding: 4px 10px;
  border: 1px solid var(--th-line-strong);
  border-radius: 5px;
  background: var(--th-canvas);
  color: var(--th-ink);
  font-family: var(--th-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.th-qty-chip:hover {
  border-color: var(--th-blue);
  background: var(--th-blue-soft);
}

.th-cost-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.th-kpi-box {
  background: var(--th-canvas);
  border: 1px solid var(--th-line);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.th-kpi-box.is-highlight {
  background: var(--th-blue-soft);
  border-color: #b7d7e6;
}

.th-kpi-val {
  display: block;
  font-family: var(--th-mono);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--th-ink);
}

.th-val-green {
  color: var(--th-green) !important;
}

.th-bars-stack {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.th-bar-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}

.th-bar-label {
  font-weight: 600;
  color: var(--th-copy);
  white-space: nowrap;
}

.th-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.th-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--th-blue) 0%, #0ea5e9 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.th-bar-pct {
  font-family: var(--th-mono);
  text-align: end;
  color: var(--th-ink);
}

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

.th-freight-card {
  border: 1px solid var(--th-line);
  background: var(--th-canvas);
  border-radius: 8px;
  padding: 13px;
  text-align: center;
}

.th-freight-card.is-recommended {
  background: var(--th-green-soft);
  border-color: #a7f3d0;
}

.th-freight-val {
  display: block;
  font-family: var(--th-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--th-ink);
  margin: 2px 0 4px;
}

.th-freight-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--th-copy);
}

.th-margin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.th-savings-banner {
  background: var(--th-green-soft);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}

.th-savings-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.th-savings-pct {
  font-family: var(--th-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--th-green);
  padding: 3px 10px;
  border-radius: 5px;
}

/* ---------- Tables & Filter Controls ---------- */
.th-filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.th-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.th-tab-btn {
  padding: 7px 13px;
  min-height: 36px;
  border: 1px solid var(--th-line-strong);
  border-radius: 6px;
  background: var(--th-surface);
  color: var(--th-copy);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.th-tab-btn.is-active {
  background: var(--th-blue);
  border-color: var(--th-blue);
  color: #ffffff;
}

.th-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.th-search-wrap .th-input {
  max-width: 440px;
}

.th-count-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--th-muted);
  white-space: nowrap;
}

.th-filter-panel {
  background: var(--th-canvas);
  border: 1px solid var(--th-line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
}

.th-filter-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.th-filter-grid .th-field {
  margin-bottom: 0;
}

.th-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--th-line);
  border-radius: 8px;
  background: var(--th-surface);
  -webkit-overflow-scrolling: touch;
}

.th-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 720px;
}

.th-data-table thead th {
  background: #f0f5f8;
  color: var(--th-ink);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--th-line-strong);
  text-align: center;
  vertical-align: middle;
  text-wrap: balance;
}

.th-data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--th-line);
  color: var(--th-copy);
  vertical-align: middle;
}

.th-data-table tbody tr:last-child td {
  border-bottom: none;
}

.th-data-table tbody tr:hover {
  background: #f8fbfd;
}

.th-td-strong {
  font-weight: 700;
  color: var(--th-ink);
}

.th-td-num {
  text-align: center;
  font-family: var(--th-mono);
  white-space: nowrap;
}

.th-td-action {
  text-align: center;
  white-space: nowrap;
}

.th-code-tag {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--th-canvas);
  border: 1px solid var(--th-line);
  font-family: var(--th-mono);
  font-size: 0.72rem;
  color: var(--th-muted);
}

.th-tier-code {
  display: inline-block;
  margin-inline-end: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--th-blue);
  color: #ffffff;
  font-family: var(--th-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.th-td-specs {
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
}

.th-oem-sku-tag {
  font-family: var(--th-mono);
  font-weight: 800;
  color: var(--th-ink);
  margin-bottom: 4px;
}

.th-cell-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.th-empty-state {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--th-muted);
}

/* ---------- Info Cards & Cork Cross-Section ---------- */
.th-cork-figure {
  margin: 0 0 24px;
  border: 1px solid var(--th-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--th-canvas);
}

.th-cork-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

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

.th-info-card {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 8px;
  padding: 20px;
}

.th-card-num {
  display: inline-block;
  font-family: var(--th-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--th-blue);
  margin-bottom: 8px;
}

.th-cork-tag {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--th-blue-deep);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-info-card-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--th-ink);
  text-align: center;
  text-wrap: balance;
}

.th-cork-spec {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--th-canvas);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--th-blue-deep);
  text-align: center;
}

.th-info-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--th-copy);
  text-align: start;
}

/* ---------- Blind-Test Scorecard ---------- */
.th-scorecard-section {
  background: var(--th-canvas);
}

.th-scorecard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr);
  gap: 24px;
  align-items: start;
}

.th-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--th-line);
}

.th-score-row:first-child {
  padding-top: 0;
}

.th-score-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.th-score-crit-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--th-ink);
}

.th-score-crit-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--th-copy);
  text-align: start;
}

.th-score-buttons {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.th-rate-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--th-line-strong);
  background: var(--th-surface);
  color: var(--th-ink);
  font-family: var(--th-mono);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.th-rate-btn.is-active {
  background: var(--th-blue);
  border-color: var(--th-blue);
  color: #ffffff;
}

.th-score-summary {
  text-align: center;
}

.th-score-big-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 12px;
}

.th-score-denom {
  font-family: var(--th-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--th-muted);
}

.th-verdict-text {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--th-ink);
}

.th-rec-sku-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.th-rec-sku-code {
  font-family: var(--th-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--th-blue-deep);
}

/* ---------- FAQ ---------- */
.th-faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.th-faq-item {
  border: 1px solid var(--th-line);
  border-radius: 8px;
  background: var(--th-surface);
  padding: 16px 20px;
}

.th-faq-q {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--th-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.th-faq-q::after {
  content: '+';
  font-family: var(--th-mono);
  font-size: 1.15rem;
  color: var(--th-blue);
  flex-shrink: 0;
}

.th-faq-item[open] .th-faq-q::after {
  content: '−';
}

.th-faq-a {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--th-line);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--th-copy);
  text-align: start;
}

/* ---------- Cross-Tool Navigation ---------- */
.th-cross-section {
  background: #f4f8fa;
  border-bottom: none;
}

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

.th-cross-card {
  display: flex;
  flex-direction: column;
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 8px;
  padding: 20px;
}

.th-cross-card.is-current {
  border-color: var(--th-blue);
  box-shadow: 0 0 0 1px var(--th-blue);
}

.th-cross-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.th-cross-index {
  font-family: var(--th-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--th-blue);
  background: var(--th-blue-soft);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.th-cross-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--th-ink);
  text-wrap: balance;
}

.th-cross-card-desc {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--th-copy);
  flex: 1 1 auto;
  text-align: start;
}

.th-cross-card-foot {
  padding-top: 12px;
  border-top: 1px solid var(--th-line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.th-bottom-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 24px;
}

/* ---------- Responsive Breakpoints (Zero Horizontal Overflow at 375px) ---------- */
@media (max-width: 1024px) {
  .th-hero-grid,
  .th-calc-layout,
  .th-scorecard-grid {
    grid-template-columns: 1fr;
  }
  .th-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-info-grid-3,
  .th-cross-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .th-container {
    padding-inline: 16px;
  }
  .th-hero {
    padding: 20px 0 32px;
  }
  .th-section {
    padding: 34px 0;
  }
  .th-panel {
    padding: 18px 16px;
  }
  .th-speed-hero-readout {
    grid-template-columns: 1fr;
  }
  .th-speed-primary {
    padding-inline-end: 0;
    padding-bottom: 12px;
    border-inline-end: none;
    border-bottom: 1px solid #c6dfeb;
  }
  .th-speed-submetrics {
    grid-template-columns: 1fr;
  }
  .th-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-cost-kpi-grid,
  .th-freight-grid,
  .th-margin-grid,
  .th-filter-grid {
    grid-template-columns: 1fr;
  }
  .th-bar-row {
    grid-template-columns: 92px minmax(0, 1fr) 50px;
  }
  .th-score-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .th-mode-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .th-btn {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-hub *,
  .th-hub *::before,
  .th-hub *::after {
    transition-duration: 0.01ms !important;
  }
}
