/* =========================================================
   루트 도메인 전체 차종 목록 (sites/_hub) 전용 스타일
   common.css 의 팔레트·원칙(그라데이션 없음, 모서리 4px, 1px 선)을 그대로 따릅니다.
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hub [hidden] {
  display: none !important;
}

/* ---------- 히어로 ---------- */
.hub-hero {
  background: var(--indigo);
  color: var(--white);
  padding: 72px 0 0;
}
.hub-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 18px;
}
.hub-hero__eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.hub-hero__title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.25;
}
.hub-hero__title em {
  font-style: normal;
  color: var(--mint);
}
.hub-hero__desc {
  max-width: 640px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.hub-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
  padding: 0 18px;
  height: 60px;
  background: var(--white);
  color: var(--text-muted);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.hub-search:focus-within {
  border-color: var(--mint);
}
.hub-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.hub-search input::placeholder {
  color: var(--text-muted);
}
.hub-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hub-stats div {
  padding: 22px 0 26px;
}
.hub-stats div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.hub-stats dt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.hub-stats dd {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.hub-stats dd small {
  margin-left: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 섹션 공통 ---------- */
.hub-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.hub-section--white {
  background: var(--white);
}
.hub-head {
  margin-bottom: 32px;
}
.hub-head__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
}
.hub-head__desc {
  margin-top: 8px;
  color: var(--text-sub);
}

/* ---------- 이번 주 최저가 ---------- */
.deals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.deal {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
}
.deal:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.deal__rank {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--teal);
}
.deal__img {
  display: block;
  aspect-ratio: 2 / 1;
  margin: 10px 0 8px;
}
.deal__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.deal__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.deal__price {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.deal__price small,
.car__links small,
.rank small {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0;
}
.deal__trim {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.rank {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius);
}
.rank__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}
.rank ol {
  list-style: none;
  counter-reset: rank;
}
.rank li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rank li:first-child a {
  border-top: 0;
}
.rank li a::before {
  counter-increment: rank;
  content: counter(rank);
  width: 14px;
  font-weight: 800;
  font-size: 12px;
  color: var(--teal);
}
.rank li a span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank li a strong {
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
}
.rank li a:hover span {
  color: var(--teal);
}

/* ---------- 차종 찾기 ---------- */
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.chip.is-on {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}
.toolbar__count {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-sub);
}
.toolbar__count strong {
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.brands {
  display: grid;
  gap: 10px;
  padding: 20px 0 8px;
}
.brands div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 8px;
  align-items: baseline;
  font-size: 14px;
}
.brands p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.brands span {
  width: 36px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.brands a {
  color: var(--text-sub);
}
.brands a:hover {
  color: var(--teal);
}
.brands small {
  margin-left: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.brand {
  padding-top: 40px;
  scroll-margin-top: 140px;
}
.brand__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}
.brand__title small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}
.cars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.car {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.car:hover {
  border-color: var(--teal);
}
.car__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  padding: 8px 12px 0;
}
.car__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.car__ph {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: rgba(70, 75, 113, 0.22);
  text-align: center;
}
.car__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.car__fuel {
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--mint-soft);
  border-radius: 2px;
}
.car__name {
  margin: 8px 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.35;
}
.car__name a:hover {
  color: var(--teal);
}
.car__links {
  display: grid;
  margin-top: auto;
}
.car__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.car__links span {
  color: var(--text-sub);
}
.car__links strong {
  font-size: 15px;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.car__links a:hover span,
.car__links a:hover strong {
  color: var(--teal);
}
.hub-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-sub);
}

/* ---------- 렌트 vs 리스 ---------- */
.vs {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.flow {
  list-style: none;
  counter-reset: flow;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.flow li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 8px;
  padding: 18px 20px;
}
.flow li + li {
  border-top: 1px solid var(--line);
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  grid-row: span 2;
  font-weight: 800;
  font-size: 13px;
  color: var(--teal);
}
.flow strong {
  font-size: 15px;
}
.flow span {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 조건별 모아보기 (허브 카드 + /ev/ 등 경로 페이지) ---------- */
.hub-head--sub {
  margin-top: 64px;
}
.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
}
.topic strong {
  font-size: 16px;
  font-weight: 800;
}
.topic span {
  font-size: 13px;
  color: var(--text-sub);
}
.topic:hover strong {
  color: var(--teal);
}
.hub-hero--topic:not(:has(.hub-stats)) {
  padding-bottom: 56px;
}
.topic-crumb {
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.topic-crumb a:hover {
  color: var(--white);
}
.hub-head__desc a,
.topic-guide a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price-table td a:hover strong {
  color: var(--teal);
}
.topic-guide p {
  max-width: 860px;
  margin-bottom: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}
.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-links a {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.topic-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- 자주 묻는 질문 ---------- */
.qa {
  border-top: 1px solid var(--line-strong);
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--teal);
}
.qa details[open] summary::after {
  content: "–";
}
.qa summary:hover {
  color: var(--teal);
}
.qa p {
  padding: 0 0 22px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .deals,
  .cars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ranks,
  .topics {
    grid-template-columns: 1fr 1fr;
  }
  .vs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hub-hero {
    padding-top: 48px;
  }
  .hub-hero__title {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .hub-hero__title br {
    display: none;
  }
  .hub-hero__desc {
    font-size: 15px;
  }
  .hub-search {
    height: 54px;
    margin-top: 24px;
  }
  .hub-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
  }
  .hub-stats div,
  .hub-stats div + div {
    padding: 16px 0 18px;
    border-left: 0;
  }
  .hub-stats div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
  .hub-stats div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .hub-stats dd {
    font-size: 26px;
  }
  .hub-section {
    padding: 56px 0;
  }
  .hub-head__title {
    font-size: 24px;
  }
  .deals,
  .cars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .deal {
    padding: 12px 12px 14px;
  }
  .deal__price {
    font-size: 19px;
  }
  .ranks,
  .topics {
    grid-template-columns: 1fr;
  }
  .hub-head--sub {
    margin-top: 44px;
  }
  .toolbar {
    top: 56px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 13px;
  }
  .car__body {
    padding: 10px 12px 12px;
  }
  .car__name {
    font-size: 14px;
  }
  .car__links a {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }
  .car__links span {
    font-size: 12px;
  }
  .car__links strong {
    font-size: 14px;
  }
}
