/* =============================================================================
   manufacturer.css — Manufacturer Product Page Mockup (Light Theme)
   Self-contained — does NOT import style.css or examples.css
   ============================================================================= */

/* =============================================================================
   Variables & Reset
   ============================================================================= */

:root {
  /* Manufacturer branding */
  --mfr-primary: #f26522;
  --mfr-primary-hover: #d9551a;
  --mfr-dark: #1a1a1a;
  --mfr-text: #333;
  --mfr-text-muted: #666;
  --mfr-text-light: #888;
  --mfr-bg: #fff;
  --mfr-bg-alt: #f8f9fa;
  --mfr-bg-dark: #1e293b;
  --mfr-border: #e0e4e8;
  --mfr-border-light: #f0f0f0;
  --mfr-radius: 10px;
  --mfr-radius-sm: 6px;
  --mfr-nav-h: 60px;

  /* tyre.info widget colors */
  --ti-blue: #0db1e7;
  --ti-accent: #5ad6ff;
  --ti-green: #22c55e;
  --ti-green-muted: #059669;
  --ti-amber: #f59e0b;
  --ti-red: #ef4444;
  --ti-red-muted: #dc2626;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mfr-text);
  background: var(--mfr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mfr-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================================
   Demo Banner
   ============================================================================= */

.mfr-demo-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.mfr-demo-bar__icon {
  flex-shrink: 0;
  color: var(--ti-blue);
}

.mfr-demo-bar strong {
  color: #fff;
}

.mfr-demo-bar__link {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--ti-blue);
  margin-left: 4px;
  transition: color 0.15s;
}

.mfr-demo-bar__link:hover {
  color: var(--ti-accent);
}

/* =============================================================================
   Navigation
   ============================================================================= */

.mfr-nav {
  position: relative;
  z-index: 100;
  background: var(--mfr-bg);
  border-bottom: 1px solid var(--mfr-border);
  height: var(--mfr-nav-h);
}

.mfr-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mfr-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mfr-nav__logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mfr-dark);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.mfr-nav__logo-accent {
  color: var(--mfr-primary);
}

.mfr-nav__tagline {
  font-size: 0.62rem;
  color: var(--mfr-text-muted);
  border-left: 1px solid var(--mfr-border);
  padding-left: 10px;
  line-height: 1.3;
}

.mfr-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.mfr-nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mfr-text-muted);
  transition: color 0.15s;
}

.mfr-nav__links a:hover {
  color: var(--mfr-primary);
}

.mfr-nav__cta {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--mfr-radius-sm);
  background: var(--mfr-primary);
  color: #fff;
  transition: background 0.15s;
}

.mfr-nav__cta:hover {
  background: var(--mfr-primary-hover);
}

/* =============================================================================
   Product Hero
   ============================================================================= */

.mfr-hero {
  padding: 40px 0 48px;
  background: var(--mfr-bg);
}

.mfr-hero__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.mfr-hero__image {
  width: 100%;
  max-width: 320px;
  background: var(--mfr-bg-alt);
  border-radius: var(--mfr-radius);
  border: 1px solid var(--mfr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mfr-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.mfr-hero__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfr-breadcrumb {
  font-size: 0.72rem;
  color: var(--mfr-text-light);
}

.mfr-breadcrumb a {
  color: var(--mfr-text-muted);
  transition: color 0.15s;
}

.mfr-breadcrumb a:hover {
  color: var(--mfr-primary);
}

.mfr-breadcrumb__sep {
  margin: 0 6px;
  color: var(--mfr-border);
}

.mfr-hero__brand {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mfr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.mfr-hero__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--mfr-dark);
  line-height: 1.2;
}

.mfr-hero__tagline {
  font-size: 0.92rem;
  color: var(--mfr-text-muted);
  font-style: italic;
}

.mfr-hero__desc {
  font-size: 0.85rem;
  color: var(--mfr-text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-top: 4px;
}

.mfr-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mfr-spec-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--mfr-bg-alt);
  color: var(--mfr-text-muted);
  border: 1px solid var(--mfr-border);
}

.mfr-spec-badge--highlight {
  background: rgba(242, 101, 34, 0.08);
  color: var(--mfr-primary);
  border-color: rgba(242, 101, 34, 0.2);
}

.mfr-hero__size-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mfr-hero__size-select label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mfr-text);
}

.mfr-hero__size-select select {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  padding: 6px 32px 6px 10px;
  border: 1px solid var(--mfr-border);
  border-radius: var(--mfr-radius-sm);
  background: var(--mfr-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: var(--mfr-text);
  cursor: pointer;
}

/* Hero widget (compact score badge) */
.mfr-hero__widget {
  margin-top: 8px;
}

.mfr-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mfr-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--mfr-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.mfr-btn--primary {
  background: var(--mfr-primary);
  color: #fff;
}

.mfr-btn--primary:hover {
  background: var(--mfr-primary-hover);
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

.mfr-btn--ghost {
  background: transparent;
  color: var(--mfr-text-muted);
  border: 1px solid var(--mfr-border);
}

.mfr-btn--ghost:hover {
  border-color: var(--mfr-text-muted);
  color: var(--mfr-text);
}

/* =============================================================================
   Features Band
   ============================================================================= */

.mfr-features {
  padding: 36px 0;
  background: var(--mfr-bg-alt);
  border-top: 1px solid var(--mfr-border-light);
  border-bottom: 1px solid var(--mfr-border-light);
}

.mfr-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mfr-feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mfr-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 101, 34, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfr-feature__icon svg {
  color: var(--mfr-primary);
}

.mfr-feature__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mfr-dark);
  line-height: 1.3;
}

.mfr-feature__sub {
  font-size: 0.72rem;
  color: var(--mfr-text-muted);
  line-height: 1.4;
}

/* =============================================================================
   Section Scaffold
   ============================================================================= */

.mfr-section {
  padding: 56px 0;
}

.mfr-section--alt {
  background: var(--mfr-bg-alt);
}

.mfr-section__header {
  text-align: center;
  margin-bottom: 36px;
}

.mfr-section__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--mfr-dark);
  margin-bottom: 8px;
}

.mfr-section__sub {
  font-size: 0.88rem;
  color: var(--mfr-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =============================================================================
   Widget Shared — Light Theme
   ============================================================================= */

.ti-widget {
  background: var(--mfr-bg);
  border: 1px solid var(--mfr-border);
  border-radius: var(--mfr-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ti-widget__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--mfr-bg-alt);
  border-bottom: 1px solid var(--mfr-border-light);
  font-size: 0.72rem;
  color: var(--mfr-text-muted);
}

.ti-widget__header strong {
  color: var(--mfr-dark);
}

.ti-leave-review-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ti-blue);
  color: #fff;
  transition: background 0.15s;
}

.ti-leave-review-btn:hover {
  background: #0a9ed0;
}

.ti-widget__body {
  padding: 16px;
}

.ti-widget__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--mfr-bg-alt);
  border-top: 1px solid var(--mfr-border-light);
  font-size: 0.65rem;
  color: var(--mfr-text-light);
}

.ti-widget__footer img {
  display: inline-block;
  vertical-align: -1px;
}

.ti-powered-tyre {
  font-weight: 600;
  color: var(--mfr-dark);
}

.ti-powered-dot {
  font-weight: 600;
  color: var(--ti-blue);
}

/* =============================================================================
   Score Circle (shared)
   ============================================================================= */

.ti-score-circle {
  position: relative;
  flex-shrink: 0;
}

.ti-score-circle img {
  width: 100%;
  height: 100%;
  display: block;
}

.ti-score-circle__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: #fff;
}

/* Size variants */
.ti-score-circle--sm  { width: 44px; height: 44px; }
.ti-score-circle--sm .ti-score-circle__value { font-size: 0.8rem; }

.ti-score-circle--md  { width: 64px; height: 64px; }
.ti-score-circle--md .ti-score-circle__value { font-size: 1.15rem; }

.ti-score-circle--lg  { width: 80px; height: 80px; }
.ti-score-circle--lg .ti-score-circle__value { font-size: 1.5rem; }

/* Clickable score circles */
.ti-score-circle--link {
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.ti-score-circle--link:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* "View breakdown" text link */
.ti-breakdown-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ti-blue);
  cursor: pointer;
  margin-top: 3px;
  transition: color 0.15s;
}

.ti-breakdown-link:hover {
  color: var(--mfr-dark);
}

.ti-breakdown-link svg {
  vertical-align: middle;
}

/* =============================================================================
   Confidence Badge
   ============================================================================= */

.ti-conf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}

.ti-conf--high { color: var(--ti-green-muted); }

.ti-conf__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ti-green);
}

.ti-conf-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ti-conf-badge--high {
  background: rgba(34, 197, 94, 0.1);
  color: var(--ti-green-muted);
}

/* =============================================================================
   Category Bars
   ============================================================================= */

.ti-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ti-cat {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.ti-cat__label {
  font-size: 0.75rem;
  color: var(--mfr-text-muted);
  text-align: right;
}

.ti-cat__track {
  height: 6px;
  background: #e8eaed;
  border-radius: 3px;
  overflow: hidden;
}

.ti-cat__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ti-blue), var(--ti-accent));
  border-radius: 3px;
  transition: width 0.8s ease;
}

.ti-cat__val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mfr-text);
  text-align: right;
}

/* =============================================================================
   Strength / Weakness Pills
   ============================================================================= */

.ti-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ti-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

.ti-pill--pos {
  background: rgba(34, 197, 94, 0.08);
  color: var(--ti-green-muted);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ti-pill--neg {
  background: rgba(239, 68, 68, 0.08);
  color: var(--ti-red-muted);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =============================================================================
   Star Ratings
   ============================================================================= */

.ti-stars {
  display: inline-flex;
  gap: 1px;
}

.ti-star {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.ti-star--full {
  background: var(--ti-amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ti-star--half {
  background: linear-gradient(90deg, var(--ti-amber) 50%, #d1d5db 50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ti-star--empty {
  background: #d1d5db;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* =============================================================================
   Widget 1: Compact Score Badge (Hero)
   ============================================================================= */

.ti-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mfr-bg);
  border: 1px solid var(--mfr-border);
  border-radius: var(--mfr-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 460px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ti-badge:hover {
  border-color: var(--ti-blue);
  box-shadow: 0 4px 16px rgba(13, 177, 231, 0.12);
}

.ti-badge__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ti-badge__score-text {
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mfr-dark);
}

.ti-badge__basis {
  font-size: 0.65rem;
  color: var(--mfr-text-light);
}

.ti-badge__right {
  flex-shrink: 0;
}

.ti-badge__cta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ti-blue);
  white-space: nowrap;
}

.ti-badge__cta svg {
  margin-left: 2px;
  vertical-align: middle;
}

.ti-badge__powered {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--mfr-text-light);
}

.ti-badge__powered img {
  display: inline-block;
}

.ti-badge__powered strong {
  color: var(--mfr-text-muted);
}

/* =============================================================================
   Widget 2: Full Score Card
   ============================================================================= */

/* Two-column: tech copy + widget */
.mfr-rating-grid {
  display: grid;
  grid-template-columns: 1fr 396px;
  gap: 40px;
  align-items: start;
}

.mfr-tech__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--mfr-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.mfr-tech__intro {
  font-size: 0.88rem;
  color: var(--mfr-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.mfr-tech__feature {
  margin-bottom: 20px;
}

.mfr-tech__feature:last-child {
  margin-bottom: 0;
}

.mfr-tech__feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mfr-dark);
  margin-bottom: 4px;
}

.mfr-tech__feature-text {
  font-size: 0.82rem;
  color: var(--mfr-text-muted);
  line-height: 1.6;
}

/* Widget column */
.mfr-rating-widget {
  position: sticky;
  top: calc(var(--mfr-nav-h) + 60px);
}

.ti-full-score {
  width: 100%;
}

.ti-full-score__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ti-full-score__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ti-full-score__tyre-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mfr-dark);
}

.ti-full-score__basis {
  font-size: 0.72rem;
  color: var(--mfr-text-light);
}

.ti-full-score__cats {
  margin-bottom: 16px;
}

.ti-full-score__pills {
  margin-top: 0;
}

/* =============================================================================
   Widget 3 & 4: Summary Cards
   ============================================================================= */

.mfr-sentiment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.ti-summary {
  display: flex;
  flex-direction: column;
}

.ti-summary .ti-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ti-summary .ti-widget__body {
  flex: 1;
}

.ti-summary__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ti-summary__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ti-summary__icon--combined {
  background: rgba(13, 177, 231, 0.08);
}

.ti-summary__icon--tests {
  background: rgba(34, 197, 94, 0.08);
}

.ti-summary__label {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mfr-dark);
  display: block;
}

.ti-summary__basis {
  font-size: 0.68rem;
  color: var(--mfr-text-light);
  display: block;
}

.ti-summary__text {
  font-size: 0.82rem;
  color: var(--mfr-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.ti-summary__tags {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.ti-summary__tags-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ti-summary__tags-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.ti-summary__tags-title--pos { color: var(--ti-green-muted); }
.ti-summary__tags-title--neg { color: var(--ti-red-muted); }
.ti-summary__tags-title--highlight { color: var(--ti-blue); }

/* =============================================================================
   Widget 5: Reviews & Ratings
   ============================================================================= */

.ti-reviews {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Top area: score + stars + distribution */
.ti-reviews__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mfr-border-light);
}

.ti-reviews__score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ti-reviews__score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ti-reviews__score-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--mfr-text-light);
}

.ti-reviews__star-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ti-reviews__avg {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ti-reviews__avg-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mfr-dark);
  line-height: 1;
}

.ti-reviews__avg-of {
  font-size: 0.82rem;
  color: var(--mfr-text-light);
}

.ti-reviews__count {
  font-size: 0.72rem;
  color: var(--mfr-text-muted);
}

/* Distribution bars */
.ti-reviews__dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ti-dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 28px;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.ti-dist-row:hover {
  background: var(--mfr-bg-alt);
}

.ti-dist-row--active {
  background: rgba(245, 158, 11, 0.08);
}

.ti-dist-row span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mfr-text-muted);
}

.ti-dist-row span:last-child {
  font-size: 0.68rem;
  color: var(--mfr-text-light);
  text-align: right;
}

.ti-dist-track {
  height: 6px;
  background: #e8eaed;
  border-radius: 3px;
  overflow: hidden;
}

.ti-dist-fill {
  height: 100%;
  background: var(--ti-amber);
  border-radius: 3px;
}

/* Filter bar */
.ti-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--mfr-radius-sm);
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--mfr-text-muted);
}

.ti-filter-bar--hidden {
  display: none;
}

.ti-filter-bar__clear {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ti-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ti-filter-bar__clear:hover {
  text-decoration: underline;
}

/* Review cards */
.ti-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ti-review {
  padding: 16px 0;
  border-bottom: 1px solid var(--mfr-border-light);
}

.ti-review:last-child {
  border-bottom: none;
}

.ti-review--hidden {
  display: none;
}

.ti-review__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ti-review__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ti-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ti-review__avatar--green  { background: var(--ti-green); }
.ti-review__avatar--amber  { background: var(--ti-amber); }
.ti-review__avatar--orange { background: var(--mfr-primary); }

.ti-review__info {
  display: flex;
  flex-direction: column;
}

.ti-review__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mfr-dark);
}

.ti-review__date {
  font-size: 0.65rem;
  color: var(--mfr-text-light);
}

.ti-review__stars {
  margin-bottom: 4px;
}

.ti-review__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mfr-dark);
  margin-bottom: 4px;
}

.ti-review__meta {
  display: flex;
  gap: 12px;
  font-size: 0.68rem;
  color: var(--mfr-text-light);
  margin-bottom: 6px;
}

.ti-review__text {
  font-size: 0.82rem;
  color: var(--mfr-text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.ti-review__helpful {
  font-size: 0.68rem;
  color: var(--mfr-text-light);
}

/* =============================================================================
   Manufacturer CTA
   ============================================================================= */

.mfr-cta {
  padding: 56px 0;
  background: var(--mfr-bg-dark);
  text-align: center;
}

.mfr-cta__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.mfr-cta__sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.mfr-cta .mfr-btn--primary {
  display: inline-block;
}

.mfr-cta__disclaimer {
  margin-top: 24px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =============================================================================
   Footer
   ============================================================================= */

.mfr-footer {
  padding: 40px 0 24px;
  background: #111827;
  color: rgba(255, 255, 255, 0.5);
}

.mfr-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.mfr-footer__brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mfr-footer__brand-text {
  font-size: 0.78rem;
  line-height: 1.6;
}

.mfr-footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.mfr-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfr-footer__links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s;
}

.mfr-footer__links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.mfr-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.72rem;
  text-align: center;
}

/* =============================================================================
   tyre.info Callout Banner
   ============================================================================= */

.ti-callout {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(13, 177, 231, 0.04), rgba(90, 214, 255, 0.06));
  border: 1px dashed rgba(13, 177, 231, 0.25);
  border-radius: var(--mfr-radius);
  text-align: center;
}

.ti-callout__text {
  font-size: 0.82rem;
  color: var(--mfr-text-muted);
  line-height: 1.6;
}

.ti-callout__text strong {
  color: var(--ti-blue);
}

/* =============================================================================
   Review Form Modal
   ============================================================================= */

.ti-modal--sm {
  max-width: 520px;
}

.ti-review-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ti-review-form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ti-review-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mfr-text);
}

.ti-review-form__input,
.ti-review-form__textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 8px 12px;
  border: 1px solid var(--mfr-border);
  border-radius: var(--mfr-radius-sm);
  background: var(--mfr-bg);
  color: var(--mfr-text);
  transition: border-color 0.15s;
}

.ti-review-form__input:focus,
.ti-review-form__textarea:focus {
  outline: none;
  border-color: var(--ti-blue);
}

.ti-review-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.ti-review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ti-review-form__stars {
  display: flex;
  gap: 4px;
}

.ti-review-form__star {
  font-size: 1.6rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.1s;
  line-height: 1;
}

.ti-review-form__star:hover,
.ti-review-form__star.active {
  color: var(--ti-amber);
}

.ti-review-form__submit {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: var(--mfr-radius-sm);
  background: var(--ti-blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.ti-review-form__submit:hover {
  background: #0a9ed0;
}

/* =============================================================================
   Score Breakdown Modal
   ============================================================================= */

.ti-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ti-modal-overlay.show {
  display: flex;
}

.ti-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: tiModalIn 0.25s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@keyframes tiModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.ti-modal__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #334155;
  background: #1e293b;
  border-radius: 16px 16px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ti-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #334155;
  border: 1px solid #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
  line-height: 1;
}

.ti-modal__close:hover {
  background: #475569;
  color: #fff;
}

.ti-modal__tyre-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ti-modal__tyre-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ti-modal__tyre-info {
  flex: 1;
  min-width: 0;
  padding-right: 40px;
}

.ti-modal__tyre-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.3;
  font-family: 'Sora', sans-serif;
}

.ti-modal__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ti-modal__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ti-modal__badge--season { background: #e7f5ff; color: #1971c2; }
.ti-modal__badge--tier   { background: #f3f0ff; color: #6741d9; }

.ti-modal__score-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ti-modal__score-max {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -4px;
}

/* Meta bar */
.ti-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.78rem;
  color: #666;
}

.ti-modal__meta-sep { color: #ddd; }

/* About box */
.ti-modal__about {
  margin: 16px 24px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.ti-modal__about p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Category sections */
.ti-modal__categories {
  padding: 20px 24px 0;
}

.ti-modal__section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 12px;
}

.ti-modal__section-desc {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  margin: -4px 0 12px;
}

.ti-modal__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ti-modal__cat-name {
  width: 80px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  text-align: right;
}

.ti-modal__cat-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.ti-modal__cat-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.ti-modal__cat-bar--excellent { background: #28a745; }
.ti-modal__cat-bar--strong    { background: #0db1e7; }
.ti-modal__cat-bar--good      { background: #17a2b8; }
.ti-modal__cat-bar--average   { background: #fd7e14; }

.ti-modal__cat-score {
  width: 40px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-align: right;
}

.ti-modal__cat-tests {
  width: 80px;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #aaa;
  white-space: nowrap;
}

/* Collapsible sections */
.ti-modal__section {
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

.ti-modal__section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.ti-modal__section-hdr:hover {
  background: #fafafa;
}

.ti-modal__section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.ti-modal__chevron {
  transition: transform 0.25s ease;
  color: #bbb;
}

.ti-modal__section.open .ti-modal__chevron {
  transform: rotate(180deg);
}

.ti-modal__section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ti-modal__section.open .ti-modal__section-body {
  max-height: 2000px;
}

.ti-modal__section-content {
  padding: 0 24px 20px;
}

/* Component cards */
.ti-modal__components {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ti-modal__component {
  flex: 1;
  min-width: 170px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #eee;
}

.ti-modal__component-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.ti-modal__component-weight {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 8px;
}

.ti-modal__component-detail {
  font-size: 0.76rem;
  color: #666;
  line-height: 1.5;
}

.ti-modal__component-detail div { padding: 1px 0; }
.ti-modal__component-detail strong { color: #333; }

/* Methodology weights */
.ti-modal__methodology-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.ti-modal__weight-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ti-modal__weight-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #555;
  text-align: right;
}

.ti-modal__weight-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.ti-modal__weight-bar {
  height: 100%;
  border-radius: 4px;
  background: #0db1e7;
}

.ti-modal__weight-pct {
  width: 36px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

/* Data Sources table */
.ti-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ti-modal__table th {
  text-align: left;
  padding: 8px 10px;
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e9ecef;
  white-space: nowrap;
}

.ti-modal__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}

.ti-modal__pos-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e9ecef;
  color: #333;
}

.ti-modal__pos-badge--top3 {
  background: #d4edda;
  color: #155724;
}

/* Modal footer */
.ti-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.72rem;
  color: #888;
}

.ti-modal__footer img {
  display: inline-block;
}

.ti-modal__footer strong {
  color: #333;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
  .mfr-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mfr-hero__image {
    max-width: 240px;
    margin: 0 auto;
  }

  .mfr-features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .mfr-rating-grid {
    grid-template-columns: 1fr;
  }

  .mfr-rating-widget {
    position: static;
  }

  .mfr-sentiment-grid {
    grid-template-columns: 1fr;
  }

  .mfr-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ti-reviews__top {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .mfr-nav__links {
    display: none;
  }

  .mfr-hero {
    padding: 24px 0 36px;
  }

  .mfr-features__grid {
    grid-template-columns: 1fr;
  }

  .mfr-section {
    padding: 40px 0;
  }

  .mfr-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ti-summary__tags {
    flex-direction: column;
    gap: 10px;
  }

  .ti-badge {
    max-width: 100%;
  }

  .ti-badge__cta {
    display: none;
  }

  .ti-modal-overlay {
    padding: 10px;
  }

  .ti-modal {
    border-radius: 12px;
  }

  .ti-modal__header {
    padding: 16px;
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
  }

  .ti-modal__tyre-info {
    padding-right: 32px;
  }

  .ti-modal__meta {
    padding: 8px 16px;
  }

  .ti-modal__categories {
    padding: 16px 16px 0;
  }

  .ti-modal__cat-name {
    width: 60px;
    font-size: 0.75rem;
  }

  .ti-modal__section-hdr {
    padding: 12px 16px;
  }

  .ti-modal__section-content {
    padding: 0 16px 16px;
  }

  .ti-modal__components {
    flex-direction: column;
  }

  .ti-modal__about {
    margin: 12px 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ti-cat__fill,
  .ti-modal__cat-bar {
    transition: none;
  }

  .ti-modal {
    animation: none;
  }
}
