/* ============================================================
   クルマの月額図鑑 (Kuruma Cost Atlas)
   Design-accurate styling matching the provided UI layout exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Serif+JP:wght@400;600;700;900&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --font-serif: 'Noto Serif JP', 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-bg: #ffffff;
  --color-text-main: #14171a;
  --color-text-muted: #656f7d;
  --color-text-light: #8e98a4;
  --color-border: #eaedf0;
  --color-container-bg: #eff2f5;
  --color-gold: #b3922d;
  --color-silver: #8c97a2;
  --color-bronze: #a36b3f;
  --color-rank-gray: #8d98a4;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= CONTAINER ================= */
.site-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.site-header {
  border-bottom: 1px solid #eaedf0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #65707d;
  margin-top: 3px;
  font-family: var(--font-serif);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.84rem;
  color: #333a42;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #000;
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #f1f3f5;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 14px 6px 32px;
  font-size: 0.78rem;
  width: 220px;
  color: #333;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
  width: 240px;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  stroke: #7e8794;
  pointer-events: none;
}

/* ================= HERO SECTION (Official Styling with Clean Background & Rich Typography) ================= */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 490px;
  background-color: #0c1218;
  background-image: url('images/hero_cinematic.jpg');
  background-size: cover;
  background-position: center right;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,18,0.92) 0%, rgba(8,12,18,0.78) 40%, rgba(8,12,18,0.24) 70%, rgba(8,12,18,0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  padding: 44px 0 46px;
  color: #ffffff;
}

.hero-subhead {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 32px;
  font-variant-numeric: tabular-nums;
}

.hero-cost-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.hero-cost-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-cost-amount strong {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-cost-unit {
  font-size: 1.25rem;
}

.hero-cost-note {
  margin-top: 20px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 600px) {
  .hero-heading { font-size: clamp(1.8rem, 7vw, 2.75rem); }
  .hero-content { padding-bottom: 110px; }
  .hero-costs { gap: 20px; }
  .hero-cost-amount strong { font-size: clamp(2.3rem, 8.5vw, 3.2rem); }
  .hero-cost-unit { font-size: 1rem; }
  .hero-cost-note { max-width: 290px; }
}
.hero-car-tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-car-tag:hover {
  border-bottom-color: #ffffff;
  transform: translateX(-4px);
}

.hero-car-tag-name {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.hero-car-tag-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
}


/* ================= CONCEPT EDITORIAL SECTION (Magazine Intro) ================= */
.concept-section {
  padding: 42px 0 36px;
  border-bottom: 1px solid #eaedf0;
  margin-bottom: 12px;
}

.concept-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .concept-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.concept-label {
  font-family: var(--font-serif);
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  color: #7a8694;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.concept-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #11151a;
  line-height: 1.36;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.concept-note {
  font-size: 0.74rem;
  color: #556270;
  line-height: 1.65;
  background: #f4f6f8;
  border-left: 3px solid #8e9cae;
  padding: 10px 12px;
  border-radius: 0 4px 4px 0;
}

.concept-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.85;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.concept-sub {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 10px;
}

.concept-sub:last-of-type {
  margin-bottom: 20px;
}

.concept-pillars {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.concept-pillar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.pillar-text {
  font-size: 0.73rem;
  color: #334155;
  font-weight: 500;
}

@media (max-width: 680px) {
  .concept-pillars {
    flex-direction: column;
    gap: 10px;
  }
}

/* ================= SECTION COMMON ================= */
.content-section {
  padding: 34px 0 28px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #11151a;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.78rem;
  color: #6a7482;
}

.section-link {
  font-size: 0.78rem;
  color: #3b434e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-link:hover {
  color: #000;
  transform: translateX(2px);
}

/* ================= MONTHLY FEATURES (Clean Photography & HTML Typography) ================= */
/* ================= RESEARCH FEATURES SECTION (今月の特集) ================= */
.research-section, #monthly-features-grid {
  scroll-margin-top: 90px;
}

.research-intro {
  border-top: 2px solid #11151a;
  padding: 36px 0 28px;
}

.research-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: #8b6831;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.research-intro h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.38;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.research-intro > p:last-child {
  font-size: 0.94rem;
  line-height: 1.85;
  color: #475569;
  max-width: 840px;
  margin: 0;
}

/* 3-Column Card Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 26px;
  align-items: stretch;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
  }
}

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

/* Card Outer */
.research-grid .research-card {
  padding: 0;
  background: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.11);
  border-color: #cbd5e1;
}

.research-card:focus-visible {
  outline: 3px solid #8b6831;
  outline-offset: 4px;
}

/* Media Wrap & Photo */
.research-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.8;
  overflow: hidden;
  background: #0f172a;
}

.research-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-card:hover .research-media-img {
  transform: scale(1.05);
}

/* Cinematic Gradient Overlay */
.research-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.05) 35%,
    rgba(15, 23, 42, 0.88) 100%
  );
  pointer-events: none;
}

/* Top Tag */
.research-media-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.research-tag-pill {
  display: inline-block;
  background: rgba(17, 21, 26, 0.82);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Metric Banner (Overlaid on Bottom of Photo) */
.research-media-metric-banner {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #ffffff;
}

.research-metric-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.research-metric-num {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.research-metric-unit {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.research-metric-caption {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Card Body */
.research-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 18px;
}

.research-card-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.48;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.research-card-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b6831;
  line-height: 1.55;
  margin: 0 0 10px;
}

.research-card-teaser {
  font-size: 0.82rem;
  line-height: 1.72;
  color: #475569;
  margin: 0 0 18px;
  flex: 1;
}

/* Card Footer Link */
.research-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.research-read-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 700;
  color: #11151a;
  transition: color 0.15s ease;
}

.research-card:hover .research-read-pill {
  color: #8b6831;
}

.pill-arrow {
  transition: transform 0.2s ease;
}

.research-card:hover .pill-arrow {
  transform: translateX(4px);
}

.research-section-note {
  font-size: 0.74rem;
  line-height: 1.8;
  color: #64748b;
  margin-top: 24px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #cbd5e1;
}
.research-article { font-size: .95rem; line-height: 2; color: #334155; overflow-wrap: anywhere; }
.research-article p { margin: 0 0 20px; }
.research-article h3 { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.6; color: #172e25; margin: 36px 0 16px; }
.research-article .article-lead { font-size: 1.04rem; color: #172e25; }
.research-article .research-note { background: #f3f4ef; padding: 14px 18px; font-size: .75rem; line-height: 1.8; }
.research-article a { color: #285b4c; text-decoration: underline; text-underline-offset: 3px; }
.article-equation { padding: 24px; background: #edf2ed; border-left: 3px solid #355744; margin: 24px 0; }
.article-equation span, .article-equation strong, .article-equation small { display: block; }
.article-equation strong { font-size: clamp(1.05rem, 3vw, 1.5rem); color: #183a2b; }
.article-equation small { font-size: .75rem; margin-top: 8px; }
.article-table-wrap { overflow-x: auto; margin: 24px 0; }
.research-article table { width: 100%; border-collapse: collapse; min-width: 430px; font-size: .83rem; text-align: left; }
.research-article caption { text-align: left; font-size: .75rem; margin-bottom: 8px; }
.research-article th, .research-article td { border-bottom: 1px solid #d8ded9; padding: 12px 10px; }
.research-article thead { background: #edf2ed; }
@media (max-width: 680px) {
  .research-section .section-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .research-section .section-subtitle { display: block; margin-top: 8px; }
  .research-section .research-grid { grid-template-columns: 1fr; }
  .research-cover { min-height: 170px; }
  .research-metric { font-size: 3rem; }
  .article-equation { padding: 18px; }
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.feature-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 4px 4px 0 0;
}

.feature-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-media {
  transform: scale(1.04);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,18,0.65) 0%, rgba(8,12,18,0.05) 45%, rgba(8,12,18,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.feature-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.feature-text-block {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  z-index: 2;
}

.feature-banner-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 2px;
}

.feature-banner-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.feature-body {
  padding: 10px 4px 6px;
}

.feature-desc {
  font-size: 0.76rem;
  color: #555f6d;
  line-height: 1.55;
}

/* ================= POPULAR RANKING SECTION ================= */
.ranking-section {
  background: var(--color-container-bg);
  border-radius: 6px;
  padding: 18px 20px 22px;
  margin: 12px 0 32px;
}

.ranking-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.condition-hint-btn {
  font-size: 0.75rem;
  color: #55606d;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.condition-hint-btn:hover {
  color: #000;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.ranking-intro-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #11151a;
  margin-bottom: 10px;
}

.ranking-intro-desc {
  font-size: 0.74rem;
  color: #5d6774;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ranking-more-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #27313f;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ranking-more-link:hover {
  transform: translateX(3px);
  color: #000;
}

.ranking-cards-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.rank-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 8px 12px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-serif);
  border-radius: 2px;
  z-index: 2;
}

.rank-badge.rank-1 { background-color: var(--color-gold); }
.rank-badge.rank-2 { background-color: var(--color-silver); }
.rank-badge.rank-3 { background-color: var(--color-bronze); }
.rank-badge.rank-4 { background-color: var(--color-rank-gray); }
.rank-badge.rank-5 { background-color: var(--color-rank-gray); }

.rank-car-img-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 6px;
}

.rank-car-img {
  max-height: 42px;
  max-width: 92%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.rank-card:hover .rank-car-img {
  transform: scale(1.04);
}

.rank-car-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #11151a;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta-label {
  font-size: 0.65rem;
  color: #7b8593;
  line-height: 1.2;
}

.rank-cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2px;
}

.rank-cost-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #11151a;
  letter-spacing: -0.02em;
}

.rank-per-km {
  font-size: 0.65rem;
  color: #65707d;
  white-space: nowrap;
}

/* ================= CATEGORY BROWSE SECTION ================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.category-img-wrap {
  aspect-ratio: 128 / 52;
  overflow: hidden;
  background: #111;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-body {
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #11151a;
  margin-bottom: 2px;
}

.category-sub {
  font-size: 0.68rem;
  color: #65707d;
  line-height: 1.4;
  margin-bottom: 4px;
}

.category-arrow {
  align-self: flex-end;
  font-size: 0.78rem;
  color: #444;
  transition: transform 0.2s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(3px);
}

/* ================= ARTICLES SECTION ================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.article-media-wrap {
  position: relative;
  aspect-ratio: 160 / 52;
  overflow: hidden;
  background: #111;
}

.article-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-media {
  transform: scale(1.04);
}

.article-tag {
  position: absolute;
  bottom: 5px;
  left: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #111;
  border-radius: 2px;
}

.article-body {
  padding: 8px 4px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: #11151a;
  margin-bottom: 4px;
}

.article-sub {
  font-size: 0.7rem;
  color: #65707d;
  line-height: 1.45;
  margin-bottom: 8px;
}

.article-date {
  font-size: 0.65rem;
  color: #949ea8;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #11151a;
  color: #c0c6cf;
  padding: 48px 0 28px;
  margin-top: 48px;
  border-top: 1px solid #222a33;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #8c96a3;
  margin-bottom: 12px;
}

.footer-quote {
  font-size: 0.76rem;
  color: #6f7a88;
  font-style: italic;
  border-left: 2px solid #334050;
  padding-left: 8px;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 0.76rem;
  color: #9aa4b0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-disclaimer-box {
  background: #181f26;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #828e9c;
}

.footer-bottom {
  border-top: 1px solid #1f2832;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #697482;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= FLOATING COMPARE TRAY ================= */
.compare-tray {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #11151a;
  color: #fff;
  border-radius: 30px;
  padding: 6px 16px 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
  cursor: pointer;
  border: 1px solid #283442;
  transition: transform 0.2s ease;
}

.compare-tray:hover {
  transform: translateY(-2px);
}

.compare-tray.hidden {
  display: none;
}

.compare-tray-avatars {
  display: flex;
  align-items: center;
}

.compare-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25303c;
  border: 2px solid #11151a;
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  overflow: hidden;
}

.compare-avatar:first-child {
  margin-left: 0;
}

.compare-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-tray-text {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.compare-tray-count {
  background: #3b82f6;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.compare-btn-action {
  background: #ffffff;
  color: #11151a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f5;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  z-index: 10;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #000;
}

.modal-body {
  padding: 30px;
}

/* Preset chips */
.preset-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f4f6f8;
  border-radius: 6px;
  margin-bottom: 20px;
}

.preset-chip {
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 0.76rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid #dcdfe4;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  border-color: #99a2ad;
  color: #111;
}

.preset-chip.active {
  background: #11151a;
  border-color: #11151a;
  color: #fff;
  font-weight: 600;
}

/* Catalog Filter */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 4px;
  border: 1px solid #e0e5eb;
  background: #fff;
  color: #525d6b;
  cursor: pointer;
}

.filter-tab.active {
  background: #1c2834;
  border-color: #1c2834;
  color: #fff;
}

.sort-select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #d0d7de;
  background: #fff;
  font-size: 0.78rem;
  color: #333;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.car-card {
  background: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.car-card-img-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.car-card-img {
  max-height: 70px;
  max-width: 90%;
  object-fit: contain;
}

.car-badge-cat {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(17,21,26,0.85);
  color: #fff;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.car-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card-gen {
  font-size: 0.68rem;
  color: #6d7885;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card-cost-box {
  margin-top: auto;
  border-top: 1px dashed #e8ecf0;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.car-card-monthly {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.car-card-perkm {
  font-size: 0.68rem;
  color: #65707d;
}

/* Detail modal layout */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 14px;
}

.detail-brand-model {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.detail-specs-sub {
  font-size: 0.78rem;
  color: #65707d;
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-img-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid #edf1f5;
}

.detail-img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
}

.detail-cost-hero {
  background: #f4f7fa;
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid #1c3553;
}

.detail-cost-label {
  font-size: 0.75rem;
  color: #65707d;
}

.detail-cost-num {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.detail-cost-range {
  font-size: 0.76rem;
  color: #667280;
  margin-top: 4px;
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 12px;
}

.breakdown-table th, .breakdown-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #edf0f4;
}

.breakdown-table th {
  text-align: left;
  color: #6b7685;
  font-weight: 500;
}

.breakdown-table td {
  text-align: right;
  font-weight: 600;
  color: #222;
}

/* Compare modal */
.compare-modal-window {
  max-width: 1000px;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.compare-col-card {
  border: 1px solid #e1e7ed;
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.compare-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.compare-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.compare-cost-badge {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin: 10px 0;
}

.compare-cost-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.compare-col-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.76rem;
}

.compare-col-row span:first-child {
  color: #64748b;
}

.compare-col-row span:last-child {
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: #11151a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-primary:hover {
  background: #252e38;
}

.btn-outline {
  background: transparent;
  color: #11151a;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.74rem;
}


/* ================= SIMULATOR FLOATING BUTTON & DRAWER ================= */

/* Concept Section Simulator CTA */
.concept-simulator-cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
}

.hero-simulator-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #11151a;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hero-simulator-link:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.cta-sparkle {
  color: #d4af37;
  font-size: 0.95rem;
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.hero-simulator-link:hover .cta-arrow {
  transform: translateX(3px);
}

/* Floating Launch Button */
.floating-simulator-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #11151a;
  color: #f8fafc;
  padding: 13px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, bottom 0.2s ease;
}

.floating-simulator-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.sim-btn-icon {
  color: #d4af37;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .floating-simulator-btn {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 11px 18px;
    font-size: 0.82rem;
  }
}

/* Backdrop */
.simulator-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.simulator-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer / Sheet */
.simulator-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100dvh;
  background: #ffffff;
  z-index: 2010;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.simulator-drawer.is-open {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .simulator-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    height: auto;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  }
  .simulator-drawer.is-open {
    transform: translateY(0);
  }

  .sim-drawer-header {
    padding: 12px 16px;
    gap: 8px;
  }
  .sim-header-title {
    font-size: 1.02rem;
  }
  .sim-header-meta {
    gap: 6px;
  }
  .sim-meta-item {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .sim-drawer-body {
    padding: 16px 16px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulator-drawer,
  .simulator-backdrop,
  .floating-simulator-btn {
    transition: none !important;
  }
}

/* Drawer Header */
.sim-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sim-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-header-badge {
  display: inline-block;
  background: #d4af37;
  color: #11151a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.sim-header-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sim-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-meta-item {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  background: #edf2f7;
  padding: 3px 8px;
  border-radius: 4px;
}

.sim-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.sim-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

/* Drawer Body */
.sim-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px 40px;
}

/* Form Styles */
.sim-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sim-form-desc {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sim-field-group {
  margin-bottom: 16px;
}

.sim-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.sim-required-tag {
  font-size: 0.65rem;
  color: #dc2626;
  font-weight: 600;
  margin-left: 4px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.sim-field-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.sim-combobox-wrap {
  position: relative;
}

.sim-input-text {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sim-input-text:focus {
  outline: none;
  border-color: #1e293b;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.sim-km-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.sim-km-input {
  padding-right: 64px;
  font-weight: 600;
}

.sim-input-unit {
  position: absolute;
  right: 12px;
  font-size: 0.8rem;
  color: #64748b;
  pointer-events: none;
  font-weight: 500;
}

.sim-field-error {
  font-size: 0.76rem;
  color: #dc2626;
  margin-top: 5px;
  font-weight: 500;
}

/* Combobox Dropdown */
.sim-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 2100;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.sim-dropdown-item {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease;
}

.sim-dropdown-item:last-child {
  border-bottom: none;
}

.sim-dropdown-item:hover,
.sim-dropdown-item.is-highlighted {
  background: #f8fafc;
}

.sim-dropdown-item.is-selected {
  background: #f1f5f9;
  font-weight: 600;
}

.sim-opt-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-opt-name {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 600;
}

.sim-opt-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.badge-new {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-used {
  background: #fef3c7;
  color: #92400e;
}

.sim-opt-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.sim-dropdown-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Km Chips */
.sim-km-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.sim-km-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 0.74rem;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-weight: 500;
}

.sim-km-chip:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.sim-km-chip.is-active {
  background: #11151a;
  color: #ffffff;
  border-color: #11151a;
  font-weight: 700;
}

/* Form Actions */
.sim-form-actions {
  margin-top: 18px;
}

.sim-submit-btn {
  width: 100%;
  background: #11151a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.sim-submit-btn:hover {
  background: #1e293b;
}

.sim-storage-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 10px;
  padding: 0 2px;
}

.sim-reset-btn {
  background: transparent;
  border: none;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.72rem;
}

.sim-reset-btn:hover {
  color: #0f172a;
}

/* Placeholder & Status Cards */
.sim-placeholder-card,
.sim-notice-card,
.sim-error-card,
.sim-loading-card {
  padding: 18px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.sim-placeholder-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.sim-placeholder-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.sim-placeholder-desc {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.5;
}

.sim-notice-card {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 4px solid #ca8a04;
}

.sim-notice-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 4px;
}

.sim-notice-desc {
  font-size: 0.76rem;
  color: #a16207;
  line-height: 1.5;
}

.sim-error-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
}

.sim-error-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}

.sim-error-desc {
  font-size: 0.76rem;
  color: #b91c1c;
  line-height: 1.5;
  margin-bottom: 8px;
}

.sim-retry-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.sim-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.sim-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #11151a;
  border-radius: 50%;
  animation: simSpin 0.7s linear infinite;
  margin-bottom: 12px;
}

@keyframes simSpin {
  to { transform: rotate(360deg); }
}

.sim-loading-text {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
}

/* Result Card */
.sim-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.sim-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sim-demo-badge {
  display: inline-block;
  background: #11151a;
  color: #d4af37;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sim-result-model-spec {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.sim-result-vehicle-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.sim-result-grade {
  font-size: 0.78rem;
  color: #475569;
  margin: 0 0 14px;
}

.sim-result-condition-banner {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

/* Price Big Typography */
.sim-result-main-price {
  text-align: center;
  padding: 16px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
}

.sim-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sim-price-val {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
}

.sim-price-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.sim-price-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.sim-result-sub-metric {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #334155;
}

.sim-metric-label {
  color: #64748b;
  margin-right: 6px;
}

.sim-metric-val strong {
  font-weight: 700;
  color: #0f172a;
}

.sim-metric-note {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

.sim-result-disclaimer {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.sim-result-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.sim-total-label {
  color: #475569;
  font-weight: 600;
}

.sim-total-val {
  font-weight: 700;
  color: #0f172a;
}

.sim-result-exclusions {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 18px;
}

/* Accordions */
.sim-accordion {
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
}

.sim-accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sim-accordion-summary::-webkit-details-marker {
  display: none;
}

.sim-accordion-icon {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.sim-accordion[open] .sim-accordion-icon {
  transform: rotate(180deg);
}

.sim-accordion-body {
  padding-top: 12px;
}

/* Breakdown Table */
.sim-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.sim-breakdown-table th,
.sim-breakdown-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.sim-breakdown-table td {
  text-align: right;
  font-weight: 600;
  color: #1e293b;
}

.table-group-header td {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 8px;
  text-align: left;
}

.subtotal-row {
  background: #faf5ff;
}

.subtotal-row th,
.subtotal-row td {
  color: #6b21a8;
  font-weight: 700;
}

.sim-table-note {
  font-size: 0.70rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* Assumptions List */
.sim-assumptions-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.7;
}

.sim-assumptions-alert {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fefce8;
  border-left: 3px solid #eab308;
  font-size: 0.72rem;
  color: #854d0e;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* Detail Action */
.sim-detail-action {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
  text-align: center;
}

.sim-detail-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 8px;
}

.sim-to-atlas-btn {
  display: inline-block;
  width: 100%;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-to-atlas-btn:hover {
  background: #11151a;
  color: #ffffff;
  border-color: #11151a;
}


/* ================= CHATGPT EDITORIAL SECTION (TOP PAGE) ================= */
.chatgpt-editorial-section {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 36px 24px;
  margin: 36px 0 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.chatgpt-editorial-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #11151a;
}

.chatgpt-editorial-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .chatgpt-editorial-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.chatgpt-editorial-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 8px;
}

.chatgpt-editorial-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px;
}

.chatgpt-editorial-lead {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 18px;
}

/* Sample Question Chips */
.chatgpt-example-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.chatgpt-sample-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.chatgpt-sample-chip:hover {
  background: #11151a;
  color: #ffffff;
  border-color: #11151a;
}

/* Action Column */
.chatgpt-editorial-col-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 861px) {
  .chatgpt-editorial-col-action {
    align-items: flex-end;
    text-align: right;
  }
}

.btn-chatgpt-primary {
  background: #11151a;
  color: #ffffff !important;
  text-decoration: none;
  border: 1px solid #11151a;
  border-radius: 9999px;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-chatgpt-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.chatgpt-btn-icon {
  color: #d4af37;
  font-size: 0.95rem;
}

.chatgpt-btn-arrow {
  transition: transform 0.2s ease;
}

.btn-chatgpt-primary:hover .chatgpt-btn-arrow {
  transform: translateX(4px);
}

.chatgpt-editorial-note {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 10px;
}

.chatgpt-mock-notice {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

/* ================= CHATGPT CONTEXT BOX (MODALS & SIMULATOR) ================= */
.chatgpt-context-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
}

.chatgpt-context-header {
  margin-bottom: 6px;
}

.chatgpt-context-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.chatgpt-context-title {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2px 0 0;
}

.chatgpt-context-lead {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 12px;
}

.btn-chatgpt-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a !important;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chatgpt-sub:hover {
  background: #11151a;
  color: #ffffff !important;
  border-color: #11151a;
}


/* ================= MODAL: このサイトについて (ABOUT EDITORIAL) ================= */
.about-modal-window {
  max-width: 840px;
}

.about-editorial {
  padding: 38px 42px 34px;
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .about-editorial {
    padding: 26px 20px 24px;
  }
}

.about-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.about-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8b6831;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.38;
  margin: 0 0 10px;
}

.about-sub-philosophy {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
}

.about-sub-philosophy strong {
  color: #0f172a;
}

.about-lead-block p {
  margin: 0 0 16px;
  color: #334155;
}

.about-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.about-section-heading {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.45;
}

.about-section-desc {
  font-size: 0.86rem;
  color: #475569;
  margin: 0 0 18px;
}

/* 5 Steps List */
.about-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.about-step-item.is-highlight {
  background: #fdfaf5;
  border-color: #d6c3a5;
  box-shadow: 0 4px 14px rgba(139, 104, 49, 0.06);
}

.about-step-num {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: #1e293b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-step-item.is-highlight .about-step-num {
  background: #8b6831;
}

.about-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-step-question {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.about-step-insight {
  font-size: 0.83rem;
  color: #475569;
}

/* Step 5 Case Study Box */
.about-case-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid #8b6831;
  border-radius: 8px;
  padding: 20px 22px;
}

.about-case-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8b6831;
  background: rgba(139, 104, 49, 0.1);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.about-case-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.about-case-box p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 10px;
}

.about-case-box p:last-child {
  margin-bottom: 0;
}

.about-case-conclusion {
  font-weight: 700;
  color: #0f172a !important;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

/* 3 Layers Table */
.about-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
}

.about-layer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #ffffff;
}

.about-layer-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 11px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.about-layer-table td {
  padding: 13px 16px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.about-layer-table td:first-child {
  white-space: nowrap;
  width: 36%;
}

.layer-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.layer-surface {
  background: #e2e8f0;
  color: #1e293b;
}

.layer-middle {
  background: #dbeafe;
  color: #1e3a8a;
}

.layer-deep {
  background: #fef3c7;
  color: #92400e;
}

.about-layer-note {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Questions Row */
.about-questions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.about-question-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.about-section-text {
  font-size: 0.88rem;
  color: #334155;
  margin: 0;
}

/* Dual Philosophy Cards */
.about-philosophy-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

@media (max-width: 640px) {
  .about-philosophy-dual {
    grid-template-columns: 1fr;
  }
}

.about-philosophy-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px 20px;
}

.about-philosophy-card.is-dark {
  background: #11151a;
  border-color: #11151a;
  color: #ffffff;
}

.philosophy-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

.about-philosophy-card.is-dark .philosophy-label {
  color: #d4af37;
}

.philosophy-phrase {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

.about-philosophy-card.is-dark .philosophy-phrase {
  color: #ffffff;
}

.about-epigraph {
  background: #f8fafc;
  border-left: 3px solid #11151a;
  padding: 14px 18px;
  margin: 24px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: #334155;
  font-size: 0.88rem;
}

.about-footer-actions {
  text-align: right;
  margin-top: 24px;
}


/* ================= MODAL: 計算の仕組み (MECHANISM EDITORIAL) ================= */
.mechanism-modal-window {
  max-width: 880px;
}

.mechanism-editorial {
  padding: 40px 44px 36px;
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .mechanism-editorial {
    padding: 26px 20px 24px;
  }
}

.mech-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 20px;
  margin-bottom: 26px;
}

.mech-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8b6831;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mech-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 6px;
}

.mech-subtitle {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.mech-lead {
  background: #f8fafc;
  border-left: 3px solid #0f172a;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 34px;
}

.mech-lead p {
  margin: 0 0 12px;
  color: #334155;
}

.mech-lead p:last-child {
  margin-bottom: 0;
}

.mech-lead-quote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a !important;
}

/* Section Layout */
.mech-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.mech-sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.mech-sec-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: #0f172a;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.mech-sec-num.is-gold {
  background: #8b6831;
}

.mech-sec-title {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
}

.mech-section p {
  margin: 0 0 14px;
  color: #334155;
}

.mech-caption-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  margin: 16px 0 8px !important;
}

/* Tables */
.mech-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin: 12px 0 18px;
}

.mech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #ffffff;
}

.mech-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 11px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.mech-table td {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.mech-table .is-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mech-table tr.is-subtotal td {
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  color: #0f172a;
}

.mech-table tr.is-highlight td {
  background: #fdfaf5;
  color: #0f172a;
}

.mech-val-accent {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #8b6831;
}

.mech-role-table td:first-child {
  width: 30%;
  white-space: nowrap;
  background: #f8fafc;
  color: #0f172a;
}

/* Formula Stack */
.mech-formula-stack {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 10px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mech-formula-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.mech-formula-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.formula-lhs {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #f8fafc;
  min-width: 150px;
}

.formula-eq {
  color: #d4af37;
  font-weight: 700;
}

.formula-rhs {
  color: #e2e8f0;
  font-weight: 600;
}

.mech-key-statement {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  font-weight: 700;
  color: #0f172a !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 12px !important;
  line-height: 1.65;
}

.mech-key-sub {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
}

.mech-footnote {
  font-size: 0.78rem !important;
  color: #64748b !important;
  line-height: 1.65;
  margin: 8px 0 14px !important;
}

/* Sub Cards & Links */
.mech-sub-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.mech-sub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
}

.mech-sub-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.mech-sub-card p {
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.8;
}

.mech-ext-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.mech-ext-link:hover {
  color: #1e3a8a;
}

/* 3 Axes Banner */
.mech-axes-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fdfaf5;
  border: 1px solid #d6c3a5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0 16px;
}

.axis-pill {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.axis-op {
  font-weight: 700;
  color: #8b6831;
  font-size: 1.1rem;
}

/* Principle Callout */
.mech-principle-callout {
  background: #f8fafc;
  border-left: 4px solid #8b6831;
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.75;
}

.mech-principle-callout strong {
  font-family: var(--font-serif);
  font-size: 1.0rem;
  color: #0f172a;
}

.mech-principle-callout span {
  color: #475569;
}

/* Section 5 Core Hero Banner */
.mech-core-hero-banner {
  background: linear-gradient(135deg, #11151a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 12px 0 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

.core-banner-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d4af37;
  margin-bottom: 6px;
}

.core-banner-main {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 8px !important;
  line-height: 1.35;
}

.core-banner-sub {
  font-size: 0.88rem;
  color: #cbd5e1 !important;
  margin: 0 !important;
}

/* Collapsible Deep Accordion (Sections 7-9) */
.mech-deep-accordion {
  margin-top: 40px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mech-deep-accordion[open] {
  border-color: #8b6831;
}

.mech-deep-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfaf5 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.mech-deep-summary::-webkit-details-marker {
  display: none;
}

.mech-deep-summary:hover {
  background: #f5efe4;
}

.mech-deep-summary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mech-deep-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: #8b6831;
  padding: 3px 10px;
  border-radius: 4px;
}

.mech-deep-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
}

.mech-deep-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8b6831;
  background: #ffffff;
  border: 1px solid #d6c3a5;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mech-deep-accordion[open] .toggle-chevron {
  transform: rotate(180deg);
}

.toggle-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.mech-deep-body {
  padding: 24px 26px 28px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

@media (max-width: 640px) {
  .mech-deep-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .mech-deep-body {
    padding: 20px 16px;
  }
}

.mech-scope-alert {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #475569;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 18px;
}

.mech-scope-alert strong {
  color: #0f172a;
}

.mech-deep-sec {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #cbd5e1;
}

.mech-deep-sec p {
  margin: 0 0 12px;
  color: #334155;
}

/* Typeset HTML Math Formulas */
.mech-math-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 14px 0 16px;
  overflow-x: auto;
}

.math-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: #0f172a;
}

.math-equation var {
  font-style: italic;
  font-weight: 700;
}

.math-term {
  font-weight: 700;
}

.math-op {
  font-weight: 700;
  color: #475569;
}

.math-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  text-align: center;
  padding: 0 6px;
}

.math-num {
  width: 100%;
  border-bottom: 1.5px solid #0f172a;
  padding: 0 8px 3px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.math-den {
  width: 100%;
  padding: 3px 8px 0;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.math-sum {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin: 0 2px;
}

.math-sum.is-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 2px;
}

.sum-symbol {
  font-size: 1.45rem;
  font-weight: 400;
}

.sum-top,
.sum-bottom {
  font-size: 0.68rem;
  color: #475569;
}

.math-legend {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: #475569;
  text-align: center;
  line-height: 1.6;
}

/* Closing & CTA */
.mech-closing-heading {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.mech-closing-cta-box {
  margin-top: 34px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 28px 30px;
}

.mech-closing-cta-box p {
  margin: 0 0 12px;
  color: #334155;
}

.mech-cta-buttons {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.mech-footer-bar {
  text-align: right;
  margin-top: 26px;
}
/* LX600 / 911 editorial comparison hero */
.hero-section.hero-versus { background: #17202b url('images/hero-lx600-911.png') center 48% / cover no-repeat; height: auto; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; position: relative; padding: 32px max(24px, calc((100% - 1120px)/2)); color: white; }
.hero-versus::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,15,24,.65),transparent 32%,transparent 47%,rgba(5,12,21,.9)); pointer-events: none; }
.vs-heading,.vs-cars,.vs-footer { position: relative; z-index: 1; }
.vs-heading { text-align: center; }
.vs-heading h2 { font-family: var(--font-serif); font-size: clamp(1.3rem,3vw,2.2rem); margin: 0 0 8px; }
.vs-heading > span { font-size: .75rem; letter-spacing: .12em; }
.vs-cars { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; margin-top: 310px; }
.vs-car { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: white; font: inherit; cursor: pointer; text-shadow: 0 2px 10px #000; }
.vs-name { font-size: clamp(.8rem,1.7vw,1.2rem); letter-spacing: .05em; }
.vs-monthly { font-size: 1.15rem; }
.vs-monthly strong { font-size: clamp(2.5rem,5vw,3.8rem); font-weight: 500; padding: 0 5px; }
.vs-monthly > span { font-size: .8rem; }
.vs-distance { font-size: .95rem; }.vs-distance strong { font-weight: 500; }
.vs-detail { font-size: .7rem; margin-top: 7px; }.vs-divider { text-align: center; font-family: var(--font-serif); color: #d8cbb5; }
.vs-footer { text-align: center; margin-top: 18px; font-size: .68rem; line-height: 1.8; }
.vs-footer button { color: white; background: transparent; border: 1px solid #ffffff66; padding: 8px 24px; margin: 12px 0 6px; cursor:pointer; }.vs-footer small { display:block; opacity:.65; }
.vs-car:focus-visible,.vs-footer button:focus-visible { outline:2px solid white; outline-offset:5px; }
@media(max-width:600px) { .hero-section.hero-versus { min-height: 540px; padding:24px 12px; background-size: auto 340px; background-position: center 55px; } .vs-cars { margin-top:240px; grid-template-columns:1fr 26px 1fr; } .vs-name { font-size:.68rem; } .vs-monthly { font-size:.9rem; }.vs-distance { font-size:.75rem; }.vs-heading > span { font-size:.6rem;letter-spacing:0; } }
@media(max-width:600px) { .hero-section.hero-versus { background-size: 100% auto; background-position: center 90px; } }
/* Ownership-cost summaries in editorial cards and articles */
.research-per-km { display: block; margin-top: 8px; font-size: .95rem; font-weight: 600; color: #fff; }
.article-cost-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; background: #edf2ed; padding: 22px; border-left: 3px solid #355744; margin: 0 0 24px; color: #183a2b; }
.article-cost-summary > div > span { display: block; font-size: .78rem; margin-bottom: 5px; }
.article-cost-summary strong { display: block; font-family: var(--font-serif); font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.4; }
.article-cost-summary small { font: 500 .8rem sans-serif; margin-left: 5px; white-space: nowrap; }
.article-cost-summary p { grid-column: 1 / -1; font-size: .73rem; line-height: 1.8; margin: 4px 0 0; }
.article-assumptions { margin: 32px 0; border-top: 1px solid #cad5cd; padding-top: 18px; }
.article-assumptions summary { cursor: pointer; font-weight: 700; color: #183a2b; margin-bottom: 16px; }
@media(max-width:480px) { .article-cost-summary { padding: 16px; gap: 14px; grid-template-columns: 1fr; }.article-cost-summary strong {font-size: 2rem;}.article-cost-summary > div:nth-child(2) strong {font-size:1.6rem;} }
