/* The 3Y List — dusk ranking sheet. Dark, professional, a little 80s. */

:root {
  --bg: #0b1018;
  --bg-2: #151a28;
  --ink: #eceaf2;
  --muted: #9aa3b5;
  --steel: #7ea3bd;
  --rose: #c49aa3;
  --sunset: #c4846a;
  --card: rgba(16, 20, 32, 0.92);
  --line: rgba(196, 154, 163, 0.22);
  --line-steel: rgba(126, 163, 189, 0.3);
  --focus: #8eb4cc;
  --max: 42rem;
  --wide: 68rem;
  --display: "Exo 2", "Rajdhani", "Segoe UI", sans-serif;
  --body: "Rajdhani", "Exo 2", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  padding-left: 2.6rem;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(64rem 26rem at 50% -14%, rgba(196, 132, 106, 0.13) 0%, transparent 58%),
    radial-gradient(42rem 22rem at 110% 4%, rgba(196, 154, 163, 0.1) 0%, transparent 54%),
    radial-gradient(36rem 20rem at -8% 8%, rgba(126, 163, 189, 0.08) 0%, transparent 52%),
    linear-gradient(180deg, #0d121c 0%, #16111f 42%, #0b1018 100%);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--steel);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rose);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 90;
  padding: 0.5rem 0.75rem;
  background: var(--steel);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 2rem, var(--wide));
}

/* Header */

.mast {
  position: relative;
  border-bottom: 1px solid var(--line-steel);
  background: rgba(11, 16, 24, 0.82);
}

.mast__bar {
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--steel) 55%, var(--sunset));
  opacity: 0.7;
}

.mast__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 1.05rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.wordmark:hover {
  color: var(--steel);
}

.wordmark__mark {
  color: var(--steel);
  text-shadow: 0 0 10px rgba(126, 163, 189, 0.28);
}

.tagline {
  margin: 0.2rem 0 0;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 100%;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--steel);
  border-bottom-color: var(--steel);
}

.garage-slot {
  flex: 1 0 100%;
}

.garage-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-steel);
  background: rgba(126, 163, 189, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.garage-chip strong {
  color: var(--steel);
  font-weight: 700;
}

.garage-chip a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.garage-chip a:hover {
  color: var(--ink);
}

.fit-banner {
  margin: 1rem auto 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-steel);
  background: rgba(126, 163, 189, 0.07);
  color: var(--ink);
  font-size: 0.95rem;
}

.fit-banner p {
  margin: 0;
}

.fit-banner[hidden],
.product[hidden],
[hidden] {
  display: none !important;
}

/* Hero */

.hero {
  position: relative;
  padding: 2.25rem 0 1.75rem;
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page h1,
.picker h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 6.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.14;
  color: var(--ink);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

/* Ranking list */

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-steel);
}

.list-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking {
  margin: 0;
  padding: 0;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
  margin: 1rem 0;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid rgba(232, 230, 242, 0.12);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
}

.product:nth-child(even) {
  border-color: var(--line-steel);
}

.product__rank {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--steel);
}

.product__rank span {
  font-size: 0.62em;
  font-weight: 500;
  opacity: 0.72;
}

.product__body {
  min-width: 0;
}

.product__media {
  margin: 0.35rem 0 0.7rem;
  width: 100%;
  background: #0a0e16;
  border: 1px solid rgba(236, 234, 242, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.product__note {
  margin: 0 0 0.55rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product__name {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.4vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.product__brand {
  color: var(--ink);
}

.product__car {
  display: inline-block;
  padding: 0.08rem 0.42rem 0.1rem;
  border: 1px solid var(--line-steel);
  background: rgba(126, 163, 189, 0.1);
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product__price {
  font-variant-numeric: tabular-nums;
  color: var(--sunset);
}

.product__why,
.product__caveat {
  margin: 0 0 0.55rem;
  max-width: 38rem;
}

.product__why {
  color: var(--ink);
}

.product__caveat {
  color: var(--muted);
  font-size: 0.98rem;
}

.product__caveat-label {
  font-weight: 700;
  color: var(--sunset);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid #8aafc6;
  background: var(--steel);
  color: #0b1018;
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  background: #93b6cc;
  border-color: #93b6cc;
  color: #0b1018;
}

.btn:visited {
  color: #0b1018;
}

.btn:visited:hover {
  color: #0b1018;
}

.btns .btn:not(:first-child) {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-steel);
}

.btns .btn:not(:first-child):hover,
.btns .btn:not(:first-child):visited:hover {
  background: rgba(126, 163, 189, 0.14);
  color: var(--ink);
  border-color: var(--steel);
}

.btns .btn:not(:first-child):visited {
  color: var(--ink);
}

/* Category stubs */

.page {
  padding: 2.1rem 0 3rem;
}

.page h1 {
  font-size: clamp(1.6rem, 6vw, 2.5rem);
}

.page .lede {
  margin-top: 0.9rem;
}

.back {
  margin: 1.5rem 0 0;
  font-weight: 600;
}

.lede + .callout {
  margin-top: 1.15rem;
}

.callout {
  margin: 1.15rem 0 0;
  padding: 0.8rem 0.95rem;
  max-width: 38rem;
  border: 1px solid var(--line);
  background: rgba(196, 154, 163, 0.07);
  color: var(--ink);
  font-size: 0.95rem;
}

.callout strong,
.how strong,
.aside strong {
  font-weight: 700;
  color: var(--rose);
}

.how {
  margin: 1.25rem 0 1.6rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.page p.note,
.aside {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-steel);
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.aside p {
  margin: 0 0 0.7rem;
}

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

.page .lede + p {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.thin-note {
  margin: 0 0 1.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--sunset);
  color: var(--ink);
  font-size: 0.95rem;
  background: rgba(196, 132, 106, 0.08);
}

/* Footer */

.foot {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-steel);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot p {
  margin: 0 0 0.45rem;
  max-width: 38rem;
}

.foot__legal {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(154, 163, 181, 0.28);
}

.foot strong {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero {
    padding: 3.1rem 0 2.25rem;
  }

  .product {
    grid-template-columns: 5.2rem 180px 1fr;
    align-items: start;
    padding: 1.35rem 1.2rem 1.45rem;
    gap: 0.25rem 1.4rem;
  }

  .product__rank {
    padding-top: 0.15rem;
  }

  .product__name {
    margin-top: 0;
  }

  .product__media {
    margin: 0.15rem 0 0;
    width: 180px;
  }

  .product__media img {
    height: 135px;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 1.16rem;
  }

  .hero {
    padding: 3.75rem 0 2.6rem;
  }

  .product {
    grid-template-columns: 6rem 180px 1fr;
    gap: 0.25rem 1.8rem;
  }
}

/* Category money pages */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.jump a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rose);
}

.jump a:hover {
  color: var(--steel);
}

.hero .back {
  margin-top: 1.25rem;
}

.cat {
  margin-top: 2.75rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}

.cat h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  scroll-margin-top: 1rem;
}

.cat p {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cat p strong {
  color: var(--ink);
  font-weight: 700;
}

.list-head {
  scroll-margin-top: 1rem;
}

.list-head--later {
  margin-top: 2.75rem;
}

.product__rank--also {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  padding-top: 0.45rem;
  color: var(--sunset);
  text-shadow: none;
}

.product__rank--also span {
  font-size: 1em;
  font-weight: 700;
  opacity: 1;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.15rem;
}

.btns .btn {
  margin-top: 0.35rem;
}

.foot__site {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.foot__site a {
  color: var(--ink);
  text-decoration: none;
}

.foot__site a:hover {
  color: var(--steel);
}

/* Compare tables */

.compare-block,
.compare__scroll {
  overflow-x: auto;
}

.compare-block {
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
}

.compare-block .list-head {
  margin-bottom: 0;
}

table.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  background: rgba(16, 20, 32, 0.88);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
}

table.compare th,
table.compare td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-steel);
  vertical-align: top;
  text-align: left;
}

table.compare thead th {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(11, 16, 24, 0.9);
  border-bottom: 2px solid var(--rose);
  font-size: 0.82rem;
}

table.compare tbody th {
  font-weight: 700;
  white-space: nowrap;
  width: 9rem;
  background: rgba(11, 16, 24, 0.72);
}

.compare-verdict {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  color: var(--ink);
  font-size: 0.98rem;
}

table.compare .btns {
  margin-top: 0;
}

table.compare .btns .btn {
  margin-top: 0.2rem;
}

/* Garage picker */

.picker {
  position: relative;
  padding: 2.4rem 0 2.8rem;
}

.picker .lede {
  margin-bottom: 1.4rem;
}

.picker-saved {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-steel);
  background: rgba(126, 163, 189, 0.08);
}

.picker-saved p {
  margin: 0 0 0.55rem;
}

.picker-step {
  margin: 0 0 1.6rem;
}

.picker-step h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.picker-models {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.model-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(232, 230, 242, 0.14);
  background: #0a0e16;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}

.model-card img {
  width: 100%;
  height: 15.5rem;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}

.model-card__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 2.6rem 1.05rem 0.95rem;
  background: linear-gradient(to top, rgba(11, 16, 24, 0.96) 0%, rgba(11, 16, 24, 0.55) 58%, transparent 100%);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.model-card small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

.model-card:hover,
.model-card.is-selected {
  border-color: var(--steel);
  box-shadow: 0 0 18px rgba(126, 163, 189, 0.18);
}

.model-card[data-model="y"]:hover,
.model-card[data-model="y"].is-selected {
  border-color: var(--rose);
  box-shadow: 0 0 18px rgba(196, 154, 163, 0.16);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip,
.picker-step .chip {
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-steel);
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: var(--radius);
}

.chip:hover,
.chip.is-selected {
  background: var(--steel);
  color: #0b1018;
  border-color: var(--steel);
}

.body-card {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 230, 242, 0.14);
  background: var(--card);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
}

.body-card:hover,
.body-card.is-selected {
  border-color: var(--steel);
  box-shadow: 0 0 12px rgba(126, 163, 189, 0.14);
}

.picker [data-cta] {
  margin-top: 0.4rem;
}

.hub-links {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-steel);
  color: var(--muted);
  font-size: 0.92rem;
}

.hub-links a {
  color: var(--ink);
}

@media (min-width: 560px) {
  .picker-models {
    grid-template-columns: 1fr 1fr;
  }

  .model-card img {
    height: 18.5rem;
  }
}

@media (max-width: 720px) {
  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Sentry-style eye rail — original mark, left viewport edge only.
   Decorative. pointer-events none; behind interactive UI. */

body::before,
body::after {
  pointer-events: none;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  left: 2.35rem;
  top: 3.5vh;
  width: 1px;
  height: 93vh;
  background: rgba(196, 154, 163, 0.32);
}

body::after {
  content: "";
  position: fixed;
  left: 2.35rem;
  top: 50%;
  width: 5.5rem;
  height: 5.5rem;
  transform: translate(-50%, -50%);
  background: url("img/sentry-eye.svg") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: sentry-iris-pulse 5.6s ease-in-out infinite;
  }
}

@keyframes sentry-iris-pulse {
  0%,
  100% {
    opacity: 0.86;
    filter: drop-shadow(0 0 2px rgba(196, 132, 106, 0.18));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(196, 132, 106, 0.38));
  }
}

@media (max-width: 639px) {
  body {
    padding-left: 0.9rem;
  }

  .wrap,
  .wrap--wide {
    padding-left: 0.35rem;
  }

  body::before {
    left: 1.25rem;
  }

  body::after {
    left: 1.25rem;
    width: 2.85rem;
    height: 2.85rem;
  }
}
