/* Official Fiat technical-sheet hubs */
.ft-hub {
  --ft-red: #d71920;
  --ft-red-dark: #a80e14;
  --ft-ink: #111827;
  --ft-muted: #667085;
  --ft-line: #dfe3e8;
  --ft-soft: #f5f7f9;
  margin: 3.5rem 0;
  color: var(--ft-ink);
}

.ft-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 5%, rgba(215, 25, 32, 0.15), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f7f8fa 100%);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.ft-intro::after {
  content: "FIAT";
  position: absolute;
  inset-inline-end: 1.1rem;
  bottom: -0.35em;
  color: rgba(215, 25, 32, 0.045);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.ft-heading-row,
.ft-doc-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ft-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ft-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ft-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.16;
}

.ft-lead {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0.8rem 0 0;
  color: var(--ft-muted);
  line-height: 1.7;
}

.ft-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(20, 153, 84, 0.25);
  border-radius: 999px;
  background: rgba(20, 153, 84, 0.08);
  color: #117642;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.ft-verified::before {
  content: "✓";
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: #149954;
  color: #fff;
  font-size: 0.72rem;
}

.ft-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ft-stat {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.ft-stat strong {
  display: block;
  color: var(--ft-red-dark);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.1;
}

.ft-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ft-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ft-grid,
.ft-trim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ft-trim-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-card,
.ft-trim-card {
  overflow: hidden;
  border: 1px solid var(--ft-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.055);
}

.ft-card-head,
.ft-trim-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ft-line);
  background: linear-gradient(135deg, #161a22, #2a303b);
  color: #fff;
}

.ft-card-head h3,
.ft-trim-head h3 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
}

.ft-card-head span,
.ft-trim-head span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
}

.ft-trim-card.is-featured {
  border-color: rgba(215, 25, 32, 0.45);
}

.ft-trim-card.is-featured .ft-trim-head {
  background: linear-gradient(135deg, var(--ft-red-dark), var(--ft-red));
}

.ft-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.ft-table th,
.ft-table td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid #eceff2;
  text-align: start;
  vertical-align: top;
}

.ft-table tr:last-child th,
.ft-table tr:last-child td {
  border-bottom: 0;
}

.ft-table th {
  width: 47%;
  color: var(--ft-muted);
  font-weight: 650;
}

.ft-table td {
  color: var(--ft-ink);
  font-weight: 800;
}

.ft-table thead th {
  width: auto;
  background: #f3f5f7;
  color: var(--ft-ink);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ft-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  list-style: none;
}

.ft-list li {
  position: relative;
  padding-inline-start: 1.2rem;
  color: #48515f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.ft-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0.05rem;
  color: var(--ft-red);
  font-weight: 900;
}

.ft-source-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--ft-red);
  border-radius: 4px 14px 14px 4px;
  background: #fff4f4;
  color: #5c3538;
  font-size: 0.82rem;
  line-height: 1.65;
}

[dir="rtl"] .ft-source-note {
  border-radius: 14px 4px 4px 14px;
}

.ft-docs {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 25, 32, 0.22), transparent 34%),
    #11151c;
  color: #fff;
  box-shadow: 0 18px 46px rgba(17, 21, 28, 0.22);
}

.ft-docs .ft-title,
.ft-docs .ft-kicker {
  color: #fff;
}

.ft-docs .ft-kicker {
  opacity: 0.65;
}

.ft-doc-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.ft-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: var(--ft-red);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ft-download:hover {
  background: #ef2830;
  color: #fff;
  transform: translateY(-1px);
}

.ft-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ft-doc-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-doc-grid.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ft-doc-page {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.ft-doc-page a {
  display: block;
  background: #fff;
}

.ft-doc-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 1980;
  object-fit: contain;
  background: #fff;
}

.ft-doc-page figcaption {
  padding: 0.7rem 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 750;
}

.ft-doc-help {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

@media (max-width: 860px) {
  .ft-stat-grid,
  .ft-trim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ft-hub {
    margin: 2rem 0;
  }

  .ft-intro,
  .ft-docs {
    border-radius: 18px;
  }

  .ft-stat-grid,
  .ft-trim-grid,
  .ft-doc-grid,
  .ft-doc-grid.cols-3,
  .ft-doc-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .ft-stat {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    align-items: center;
    gap: 0.65rem;
  }

  .ft-stat span {
    margin-top: 0;
  }

  .ft-heading-row,
  .ft-doc-head {
    display: block;
  }

  .ft-verified,
  .ft-doc-actions {
    margin-top: 0.85rem;
  }

  .ft-download {
    width: 100%;
  }

  .ft-table {
    font-size: 0.8rem;
  }

  .ft-table th,
  .ft-table td {
    padding: 0.65rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-download {
    transition: none;
  }
}
