/* ==========================================================================
   DRIVEN BRITISH LUXURY TECHNICAL SPECIFICATION
   Heritage Palette: Charcoal (#1c1917), Cream (#f7f3ec), Gold (#b08d57), Tan (#8a6f52), Oxblood (#6e2027)
   ========================================================================== */

#techspec.driven-techspec-wrapper {
  color: #f7f3ec;
  background-color: #1c1917;
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid rgba(176, 141, 87, 0.28);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

/* Header */
.driven-spec-header {
  text-align: center;
  border-bottom: 1px solid rgba(176, 141, 87, 0.28);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.driven-spec-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6f52;
  margin-bottom: 8px;
}

.driven-spec-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #f7f3ec;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.driven-spec-subheading {
  font-size: 13px;
  color: rgba(247, 243, 236, 0.65);
  margin: 0;
}

/* Sections */
.driven-spec-section {
  margin-bottom: 40px;
}

.driven-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #b08d57;
  border-bottom: 1px solid rgba(176, 141, 87, 0.15);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Grids */
.driven-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.driven-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .driven-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .driven-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .driven-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Card */
.driven-spec-card {
  background: rgba(15, 13, 11, 0.6);
  border: 1px solid rgba(176, 141, 87, 0.22);
  border-radius: 6px;
  padding: 24px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.driven-spec-card:hover {
  border-color: rgba(176, 141, 87, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Radial MPG Gauges */
.driven-gauge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.driven-gauge-container {
  position: relative;
  width: 170px;
  height: 100px;
  margin: 0 auto;
}

.driven-radial-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.driven-radial-track {
  stroke: rgba(247, 243, 236, 0.12);
}

.driven-radial-progress {
  stroke: #b08d57;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.driven-gauge-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.driven-gauge-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6f52;
  margin-bottom: 2px;
}

.driven-gauge-number {
  font-size: 26px;
  font-weight: 700;
  color: #f7f3ec;
  line-height: 1;
}

.driven-unit {
  font-size: 13px;
  font-weight: 500;
  color: #b08d57;
  margin-left: 2px;
}

/* Feature & Progress Cards */
.driven-feature-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.driven-metric-label {
  font-size: 15px;
  font-weight: 600;
  color: #f7f3ec;
  margin: 0;
}

.driven-highlight {
  color: #b08d57;
  font-size: 18px;
}

.driven-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(247, 243, 236, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.driven-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8a6f52, #b08d57);
  border-radius: 4px;
  transition: width 1.3s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.driven-progress-gold {
  background: linear-gradient(90deg, #b08d57, #e6ddd0);
}

.driven-progress-oxblood {
  background: linear-gradient(90deg, #6e2027, #b08d57);
}

.driven-feature-foot {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.7);
}

.driven-subvalue {
  color: #f7f3ec;
  font-weight: 600;
}

/* Pill Grid */
.driven-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.driven-spec-pill-card {
  background: rgba(15, 13, 11, 0.6);
  border: 1px solid rgba(176, 141, 87, 0.2);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.driven-pill-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a6f52;
  margin-bottom: 4px;
}

.driven-pill-val {
  font-size: 16px;
  font-weight: 700;
  color: #f7f3ec;
}

/* Speedometer Dial */
.driven-speedometer-box {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.driven-speedo-dial {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, #25211e 0%, #151311 85%);
  border: 4px solid rgba(176, 141, 87, 0.35);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.75), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.driven-speedo-backing {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(176, 141, 87, 0.25);
}

.driven-speedo-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: #b08d57;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.driven-speedo-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 65px;
  background: linear-gradient(to top, #6e2027, #b08d57);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(-120deg);
  border-radius: 2px 2px 0 0;
  z-index: 4;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transition: transform 1.5s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.driven-speedo-text {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
}

.driven-speedo-title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6f52;
}

.driven-speedo-val {
  font-size: 22px;
  font-weight: 700;
  color: #f7f3ec;
  line-height: 1.1;
}

.driven-speedo-unit {
  font-size: 11px;
  color: #b08d57;
}

/* Key-Value Lists */
.driven-spec-keyval-list {
  border-top: 1px solid rgba(176, 141, 87, 0.15);
  padding-top: 12px;
  margin-top: 14px;
}

.driven-keyval-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.7);
}

.driven-keyval-row strong {
  color: #f7f3ec;
}

/* 3D Isometric Dimensions Box */
.driven-isometric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  overflow: visible;
}

.driven-iso-stage {
  position: relative;
  width: 260px;
  height: 220px;
  margin: 30px auto 10px;
}

.driven-iso-box {
  position: absolute;
  top: 40px;
  left: 55px;
  width: 90px;
  height: 75px;
  perspective: 800px;
}

.driven-iso-face {
  position: absolute;
  border: 2px solid #b08d57;
}

.driven-iso-top {
  width: 90px;
  height: 55px;
  background: rgba(176, 141, 87, 0.28);
  transform: skew(-45deg, 0deg) rotate(0deg);
  top: -55px;
  left: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(176, 141, 87, 0.3);
}

.driven-iso-weight {
  transform: skew(45deg, 0deg);
  font-size: 14px;
  font-weight: 700;
  color: #f7f3ec;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.driven-iso-weight small {
  font-size: 10px;
  color: #b08d57;
}

.driven-iso-left {
  width: 90px;
  height: 75px;
  background: rgba(176, 141, 87, 0.16);
  top: 0;
  left: 0;
}

.driven-iso-right {
  width: 55px;
  height: 75px;
  background: rgba(176, 141, 87, 0.22);
  transform: skew(0deg, -45deg);
  top: -27px;
  left: 90px;
}

/* Isometric Dimension Vectors */
.driven-dim-vector {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  color: #f7f3ec;
  white-space: nowrap;
}

.driven-dim-label {
  color: #8a6f52;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  display: block;
}

.driven-dim-val {
  color: #b08d57;
}

.driven-dim-height {
  left: -50px;
  top: 25px;
  border-left: 2px solid #b08d57;
  padding-left: 6px;
}

.driven-dim-width {
  left: 155px;
  top: -15px;
  border-right: 2px solid #b08d57;
  padding-right: 6px;
}

.driven-dim-length {
  left: 15px;
  top: 85px;
  border-bottom: 2px solid #b08d57;
  padding-bottom: 4px;
}

/* Data List Card */
.driven-data-list-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.driven-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(176, 141, 87, 0.15);
  font-size: 14px;
}

.driven-data-row:last-child {
  border-bottom: none;
}

.driven-data-title {
  color: rgba(247, 243, 236, 0.7);
}

.driven-data-val {
  color: #f7f3ec;
  font-weight: 600;
}

/* Features */
.driven-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.driven-feature-tag {
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.3);
  color: #f7f3ec;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* Disclaimer */
.driven-spec-disclaimer {
  font-size: 11px;
  color: rgba(247, 243, 236, 0.45);
  margin-top: 30px;
  line-height: 1.5;
  text-align: center;
}
