:root {
  color-scheme: dark;
  --background: oklch(0.12 0.012 28);
  --foreground: oklch(0.96 0.006 70);
  --card: oklch(0.16 0.012 28);
  --card-foreground: oklch(0.96 0.006 70);
  --popover: oklch(0.16 0.012 28);
  --popover-foreground: oklch(0.96 0.006 70);
  --primary: oklch(0.66 0.2 32);
  --primary-foreground: oklch(0.98 0.005 70);
  --secondary: oklch(0.22 0.012 28);
  --secondary-foreground: oklch(0.94 0.006 70);
  --muted: oklch(0.21 0.01 28);
  --muted-foreground: oklch(0.7 0.01 70);
  --accent: oklch(0.66 0.2 32);
  --accent-foreground: oklch(0.98 0.005 70);
  --border: oklch(0.29 0.014 28);
  --input: oklch(0.23 0.012 28);
  --ring: oklch(0.66 0.2 32);
  --radius: 0.25rem;
}


* {
  box-sizing: border-box;
}

html {
  background: #101010;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #101010;
  color: #f5f1eb;
  font-family: "Barlow", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
input,
select,
textarea {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #f16a44;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-frame {
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #101010;
  background-size: 100% 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.brand-tagline {
  display: none;
  color: #9c9893;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-brand .brand-tagline {
  display: block;
  margin-left: 2px;
}

@media (min-width: 720px) {
  .brand-lockup:not(.footer-brand) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-lockup:not(.footer-brand) .brand-tagline {
    display: block;
    margin-left: 2px;
  }
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  transform: skewX(-8deg);
  background: #e85d3a;
  color: white;
  font-family: "Arial Narrow", sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-link,
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  color: #aaa6a1;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.is-active {
  box-shadow: inset 0 -2px #e85d3a;
}

.admin-link {
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f1eb;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  width: 230px;
  padding: 10px;
  border: 1px solid #34312f;
  background: #181716;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #d0cbc5;
}

.home-hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.93) 0%, rgba(8, 8, 8, 0.66) 42%, rgba(8, 8, 8, 0.1) 78%), linear-gradient(0deg, #101010 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 82px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #f1724e;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-content h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.page-hero h1,
.detail-hero h1 {
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(66px, 9vw, 126px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.hero-content > p {
  max-width: 620px;
  margin: 26px 0 30px;
  color: #c9c3bc;
  font-size: 18px;
}

.hero-search,
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-search {
  width: min(690px, 100%);
  padding: 8px 8px 8px 18px;
  border-left: 3px solid #e85d3a;
  background: #f4f0ea;
  color: #171615;
}

.hero-search input,
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  outline: 0;
}

.hero-search input::placeholder {
  color: #77716c;
}

.hero-search button,
.primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: #e85d3a;
  color: white;
  padding: 10px 19px;
  cursor: pointer;
  font-weight: 800;
}

.hero-search button:hover,
.primary-action:hover {
  background: #f1724e;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.stats-strip {
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: #151413;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid > div {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 28px;
}

.stats-grid strong {
  font-family: "Arial Narrow", sans-serif;
  font-size: 46px;
  line-height: 1;
}

.stats-grid span {
  margin-top: 8px;
  color: #8e8a85;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-nav-section {
  padding: 72px 0 78px;
  background: #eee8e0;
  color: #171615;
}

.brand-nav-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

.brand-nav-heading .eyebrow {
  color: #d94f2d;
}

.brand-nav-heading h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.brand-nav-heading > div:last-child {
  max-width: 430px;
}

.brand-nav-heading p {
  margin: 0 0 12px;
  color: #625d58;
  font-size: 14px;
}

.brand-nav-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cc4727;
  font-size: 13px;
  font-weight: 800;
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 22, 21, 0.14);
  border-left: 1px solid rgba(23, 22, 21, 0.14);
}

.brand-logo-link {
  display: flex;
  min-width: 0;
  min-height: 156px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border-right: 1px solid rgba(23, 22, 21, 0.14);
  border-bottom: 1px solid rgba(23, 22, 21, 0.14);
  background: rgba(255, 255, 255, 0.36);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.brand-logo-link:hover {
  position: relative;
  z-index: 1;
  background: #fff;
  box-shadow: 0 14px 30px rgba(32, 25, 20, 0.12);
}

.brand-logo-visual {
  /* Uniform white plate; letter-unit clear-space fit via brand-logo-fit.js (ms=mv=1). */
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(23, 22, 21, 0.08);
}

.brand-logo-visual img {
  /* Pre-JS fallback ≈ ms=mv=1 (mark ~1/3 of cell height). */
  display: block;
  width: auto;
  height: 33%;
  max-width: 55%;
  max-height: 33%;
  object-fit: contain;
  object-position: center;
}

.brand-logo-visual img.is-sized {
  max-width: none;
  max-height: none;
}

.brand-logo-visual > strong {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #171615;
  font-family: "Arial Narrow", sans-serif;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-align: center;
}

.brand-logo-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 22, 21, 0.1);
}

.brand-logo-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-copy small {
  flex: 0 0 auto;
  color: #7a746e;
  font-size: 9px;
}

.section-block {
  padding-top: 96px;
  padding-bottom: 96px;
}

.surface-section {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #151413;
}

.section-heading,
.page-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2,
.content-panel h2,
.source-panel h2,
.subsection-heading h2,
.editor-form h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: #aaa49e;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181716;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition: transform 400ms ease, filter 400ms ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.98) 3%, rgba(10, 10, 10, 0.16) 72%);
}

.collection-card > div {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.collection-card svg {
  margin-bottom: 18px;
  color: #f1724e;
}

.collection-card span,
.entry-kind {
  color: #f1724e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.collection-card h3 {
  margin: 4px 0 8px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
}

.collection-card p {
  margin: 0;
  color: #bbb5ae;
  font-size: 14px;
}

.collection-card:hover img {
  transform: scale(1.04);
  filter: saturate(0.9);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 58, 0.6);
  background: #1e1c1b;
}

.catalog-card-top,
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-card-top {
  padding: 18px 18px 0;
}

.entry-media {
  position: relative;
  height: 168px;
  margin: 26px 18px 10px;
  overflow: hidden;
  background: #1a1918;
}

.entry-media img,
.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-position: center;
}

.entry-media.is-vehicle img,
.detail-media.is-vehicle img {
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.entry-media.is-logo,
.detail-media.is-logo {
  background: #ffffff;
  border: 1px solid rgba(23, 22, 21, 0.1);
}

.entry-media.is-logo img,
.detail-media.is-logo img {
  box-sizing: border-box;
  padding: 22px 24px;
  object-fit: contain;
  object-position: center;
}

.entry-media figcaption {
  position: absolute;
  right: 7px;
  bottom: 6px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  padding: 4px 6px;
  background: rgba(15, 14, 13, 0.8);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-media.media-fallback,
.detail-media.media-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(232, 93, 58, 0.28) 44% 47%, transparent 47%),
    #22201f;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Arial Narrow", sans-serif;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.catalog-card-copy {
  flex: 1;
  padding: 10px 18px 18px;
}

.catalog-generation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #9a948e;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-generation strong {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #f1724e;
  font-size: 11px;
  line-height: 1.2;
}

.catalog-generation small {
  margin-bottom: 2px;
  color: #77716c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.catalog-year {
  margin-bottom: 6px;
  color: #d4cec7;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.catalog-card-copy h3 {
  margin: 0 0 10px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 26px;
  line-height: 1.05;
}

.catalog-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #aaa49e;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-meta {
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8e8984;
  font-size: 11px;
}

.catalog-meta span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ddd7d0;
  font-weight: 700;
}

.text-link:hover,
.back-link:hover,
.parent-link a {
  color: #f1724e;
}

.governance-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  padding: clamp(28px, 5vw, 64px);
  border-left: 4px solid #e85d3a;
  background: #f0ebe4;
  color: #171615;
}

.governance-panel h2 {
  margin: 0 0 20px;
  font-family: "Arial Narrow", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
}

.governance-points {
  display: grid;
  gap: 18px;
}

.governance-points > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.governance-points svg {
  flex: 0 0 auto;
  color: #d94f2d;
}

.governance-panel .primary-action {
  grid-column: 2;
  justify-self: start;
}

.page-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #151413;
}

.compact-hero .shell {
  padding-top: 76px;
  padding-bottom: 68px;
}

.page-hero h1,
.detail-hero h1 {
  font-size: clamp(58px, 8vw, 100px);
}

.page-heading-row p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #aaa49e;
  font-size: 17px;
}

.result-count {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  padding-left: 20px;
  border-left: 2px solid #e85d3a;
}

.result-count strong {
  font-family: "Arial Narrow", sans-serif;
  font-size: 44px;
  line-height: 1;
}

.result-count span {
  color: #8d8882;
  font-size: 12px;
}

.hero-line-icon {
  width: 72px;
  height: 72px;
  color: rgba(232, 93, 58, 0.72);
  stroke-width: 1;
}

.catalogue-section {
  padding-top: 44px;
  padding-bottom: 100px;
}

.beginner-guide {
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e85d3a;
  background: #151413;
}

.beginner-guide-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.beginner-guide-heading .eyebrow {
  margin-bottom: 8px;
}

.beginner-guide-heading h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.beginner-guide-heading p {
  max-width: 500px;
  margin: 0;
  color: #aaa49e;
  font-size: 13px;
}

.beginner-guide-heading p strong {
  color: #f1ebe4;
}

.beginner-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.beginner-category-grid button {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid #383532;
  background: #201f1e;
  color: #eee8e1;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.beginner-category-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 58, 0.6);
}

.beginner-category-grid button.is-active {
  border-color: #e85d3a;
  background: rgba(232, 93, 58, 0.12);
  box-shadow: inset 3px 0 #e85d3a;
}

.beginner-category-grid button strong {
  font-size: 14px;
}

.beginner-category-grid button span {
  color: #8f8983;
  font-size: 10px;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
}

.search-field {
  min-height: 46px;
  padding: 0 14px;
  background: #f0ebe4;
  color: #171615;
}

.search-field.wide {
  flex: 1;
}

.filter-selects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

select,
.editor-form input,
.editor-form textarea {
  border: 1px solid #403d3a;
  background: #201f1e;
  color: #f4eee8;
}

select {
  min-height: 46px;
  padding: 0 34px 0 12px;
}

.catalogue-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 24px;
  color: #7f7a75;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.catalogue-status button {
  border: 0;
  background: transparent;
  color: #f1724e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.empty-state {
  padding: 80px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0;
  font-family: "Arial Narrow", sans-serif;
  font-size: 42px;
}

.empty-state p {
  color: #96908a;
}

.detail-empty {
  margin-top: 80px;
  margin-bottom: 100px;
}

.detail-empty .primary-action {
  margin-top: 18px;
}

.detail-hero {
  padding: 54px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #151413;
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 40px;
}

.detail-media {
  position: relative;
  width: min(420px, 42vw);
  height: 280px;
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1918;
}

.detail-media.is-logo {
  background: #ffffff;
  border-color: rgba(23, 22, 21, 0.12);
}

.detail-media.is-logo img {
  box-sizing: border-box;
  padding: 36px 40px;
  object-fit: contain;
  object-position: center;
}

.detail-media.is-vehicle img {
  box-sizing: border-box;
  padding: 14px;
  object-fit: contain;
}

.detail-media.media-fallback {
  color: #fff;
  font-family: "Arial Narrow", sans-serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.09em;
}

.detail-subtitle {
  margin: 12px 0 18px;
  color: #aaa49e;
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #c9c2ba;
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 24px;
  padding-top: 54px;
  padding-bottom: 94px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.content-panel,
.source-panel {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
}

.section-number {
  color: #f1724e;
  font-family: "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.content-panel h2,
.source-panel h2 {
  margin-top: 8px;
  margin-bottom: 25px;
  font-size: 38px;
}

.intro-panel > p {
  max-width: 750px;
  color: #c4bdb6;
  font-size: 18px;
}

.parent-link {
  font-size: 14px !important;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-grid > div {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-grid span {
  color: #817c77;
  font-size: 11px;
}

.spec-grid strong {
  margin-top: 5px;
  font-size: 16px;
}

.data-note,
.rights-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(232, 93, 58, 0.08);
  color: #bcb5ae;
}

.data-note svg,
.rights-box > svg {
  flex: 0 0 auto;
  color: #f1724e;
}

.data-note p,
.rights-box p {
  margin: 0;
}

.rights-box a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #f1724e;
  font-weight: 700;
}

.media-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.media-license-grid > div {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-license-grid span {
  color: #817c77;
  font-size: 11px;
}

.media-license-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.media-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.media-source-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f1724e;
  font-size: 13px;
  font-weight: 700;
}

.trademark-notice {
  margin: 16px 0 0;
  color: #aaa49e;
  font-size: 12px;
}

.source-panel {
  position: sticky;
  top: 96px;
}

.source-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.source-item span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.source-item small,
.registry-row small {
  color: #817c77;
}

.confidence {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #4a4642;
  font-weight: 900;
}

.confidence-A {
  border-color: #e85d3a;
  color: #f1724e;
}

.confidence-B {
  color: #e7c26b;
}

.source-disclaimer {
  color: #79746f;
  font-size: 11px;
}

.subsection-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 52px 0 24px;
}

.subsection-heading > span {
  color: #e85d3a;
  font-family: "Arial Narrow", sans-serif;
  font-size: 50px;
  font-weight: 900;
}

.subsection-heading h2 {
  font-size: 36px;
}

.subsection-heading p {
  margin: 4px 0 0;
  color: #7f7a75;
  font-size: 12px;
}

.compare-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  padding-top: 46px;
  padding-bottom: 100px;
}

.compare-picker,
.comparison-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
}

.compare-picker {
  align-self: start;
  padding: 20px;
}

.compare-picker h2 {
  margin: 0 0 16px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 28px;
}

.compare-options {
  display: grid;
  max-height: 650px;
  gap: 7px;
  overflow: auto;
}

.compare-options button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #34312f;
  background: #201f1e;
  color: #ddd6cf;
  padding: 10px;
  text-align: left;
}

.compare-options button.is-selected {
  border-color: #e85d3a;
  background: rgba(232, 93, 58, 0.1);
}

.compare-options button:disabled {
  opacity: 0.38;
}

.compare-options button span {
  display: flex;
  flex-direction: column;
}

.compare-options small {
  color: #7d7873;
  font-size: 10px;
}

.comparison-table-wrap {
  overflow: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  min-width: 170px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #242220;
  font-family: "Arial Narrow", sans-serif;
  font-size: 20px;
}

.comparison-table th:first-child {
  min-width: 135px;
  color: #948e88;
  font-size: 12px;
}

.comparison-table th small {
  display: block;
  color: #e85d3a;
  font-size: 10px;
}

.not-available {
  color: #726d68;
  font-style: italic;
}

.sources-layout {
  display: grid;
  gap: 52px;
}

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

.method-grid > div,
.legal-note {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
}

.method-grid svg {
  color: #f1724e;
}

.method-grid h2 {
  margin: 22px 0 8px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 28px;
}

.method-grid p,
.legal-note p {
  margin: 0;
  color: #aaa49e;
}

.registry-row {
  display: grid;
  grid-template-columns: 40px minmax(190px, 0.65fr) 1fr 90px 20px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 15px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.registry-row:hover {
  background: #191817;
}

.registry-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.registry-row p {
  margin: 0;
  color: #9d9791;
  font-size: 13px;
}

.source-date {
  color: #77716c;
  font-size: 11px;
}

.legal-note {
  border-left: 3px solid #e85d3a;
}

.legal-note h2 {
  margin-top: 0;
  font-family: "Arial Narrow", sans-serif;
  font-size: 34px;
}

.admin-setup {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding-block: 70px;
}

.admin-setup-card {
  width: min(560px, 100%);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 4px solid #e85d3a;
  background: #191817;
  text-align: center;
}

.admin-setup-card > svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  color: #e85d3a;
}

.admin-setup-card h1 {
  margin: 0;
  font-family: "Arial Narrow", sans-serif;
  font-size: 50px;
}

.admin-setup-card p {
  color: #aaa49e;
}

.admin-setup-card .primary-action {
  margin-top: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 100px;
}

.editorial-list,
.editor-form {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191817;
}

.editorial-list {
  align-self: start;
  padding: 14px;
}

.new-entry-button,
.editorial-list > button:not(.new-entry-button) {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  color: #e6dfd8;
  text-align: left;
}

.new-entry-button {
  justify-content: center;
  background: #e85d3a;
  padding: 12px;
  font-weight: 800;
}

.editorial-list > button:not(.new-entry-button) {
  margin-top: 7px;
  background: #211f1e;
  padding: 12px;
}

.editorial-list > button.is-active {
  box-shadow: inset 3px 0 #e85d3a;
}

.editorial-list button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.editorial-list small {
  color: #7f7a75;
  font-size: 10px;
}

.editorial-list em {
  padding: 4px 7px;
  border: 1px solid #44403d;
  color: #918b85;
  font-size: 9px;
  font-style: normal;
}

.editorial-list em.published {
  border-color: #3c765b;
  color: #79c99c;
}

.muted-copy {
  color: #817c77;
  font-size: 13px;
}

.editor-form {
  padding: 28px;
}

.editor-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.editor-form h2 {
  font-size: 38px;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label,
.source-selector label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #aaa49e;
  font-size: 12px;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 11px 12px;
  color: #f5efe9;
}

.form-grid textarea {
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  align-self: end;
  min-height: 46px;
}

.checkbox-label input,
.source-selector input {
  width: 16px;
  height: 16px;
  accent-color: #e85d3a;
}

.source-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #393634;
}

.source-selector legend {
  padding: 0 8px;
  color: #f1ebe4;
  font-weight: 800;
}

.source-selector label {
  flex-direction: row;
  align-items: flex-start;
  padding: 10px;
  background: #211f1e;
}

.source-selector label span {
  display: flex;
  flex-direction: column;
}

.source-selector small {
  color: #77716c;
  font-size: 10px;
}

.rights-fields {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.publish-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  border: 1px solid #e85d3a;
  background: transparent;
  color: #f1724e;
  padding: 11px 16px;
  font-weight: 800;
}

.site-footer {
  padding: 58px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid p {
  max-width: 500px;
  color: #77726d;
  font-size: 13px;
}

.footer-grid > div:not(:first-child) > strong {
  margin-bottom: 8px;
  color: #f1724e;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-grid > div:not(:first-child) a {
  color: #a49e98;
  font-size: 13px;
}

.footer-grid a:hover {
  color: #fff;
}

@media (max-width: 1050px) {
  .desktop-nav,
  .admin-link {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .beginner-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .collection-card {
    min-height: 350px;
  }

  .governance-panel {
    grid-template-columns: 1fr;
  }

  .governance-panel .primary-action {
    grid-column: 1;
  }

  .detail-layout,
  .compare-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .source-panel {
    position: static;
  }

  .compare-picker {
    order: 2;
  }

  .comparison-table-wrap {
    order: 1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .home-hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.55) 70%, rgba(8, 8, 8, 0.28) 100%);
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero-content h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-search {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 12px;
  }

  .hero-search svg {
    display: none;
  }

  .hero-search input {
    width: 100%;
    min-height: 40px;
  }

  .hero-search button {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid > div {
    min-height: 100px;
    padding-left: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stats-grid > div:first-child {
    padding-left: 18px;
  }

  .section-block {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading,
  .page-heading-row,
  .brand-nav-heading,
  .beginner-guide-heading,
  .editor-form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-grid,
  .featured-grid,
  .method-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-nav-section {
    padding: 56px 0 62px;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-link {
    min-height: 140px;
    padding: 12px;
  }

  .brand-logo-visual {
    aspect-ratio: 16 / 10;
    height: auto;
    padding: 0;
  }

  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .filter-panel,
  .filter-selects {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects > svg {
    display: none;
  }

  .catalogue-status {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .beginner-guide {
    padding: 22px;
  }

  .beginner-category-grid {
    grid-template-columns: 1fr;
  }

  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-media {
    width: 100%;
    height: min(68vw, 300px);
    font-size: 46px;
  }

  .detail-media.is-logo img {
    padding: 28px 30px;
  }

  .content-panel,
  .source-panel,
  .editor-form {
    padding: 22px;
  }

  .spec-grid,
  .media-license-grid,
  .form-grid,
  .source-selector {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .registry-row {
    grid-template-columns: 36px 1fr 20px;
  }

  .registry-row p,
  .source-date {
    grid-column: 2 / 4;
  }

  .governance-panel {
    padding: 28px;
  }

  .footer-grid {
    gap: 30px;
  }
}
.vehicle-price-panel {
  display: grid;
  gap: 1.25rem;
}

.vehicle-price-title,
.vehicle-price-card-head,
.vehicle-price-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.vehicle-price-title > div > p {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground);
}

.market-badge,
.price-freshness,
.vehicle-price-kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.market-badge {
  padding: 0.48rem 0.72rem;
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
  white-space: nowrap;
}

.vehicle-price-groups {
  display: grid;
  gap: 1.4rem;
}

.vehicle-price-groups > section {
  display: grid;
  gap: 0.75rem;
}

.vehicle-price-group-head {
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.vehicle-price-group-head h3,
.vehicle-price-card h3 {
  margin: 0;
}

.vehicle-price-group-head > span {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.vehicle-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.vehicle-price-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.2rem);
  background: color-mix(in srgb, var(--card) 94%, var(--primary) 6%);
}

.vehicle-price-card.is-stale {
  background: color-mix(in srgb, var(--card) 94%, #f59e0b 6%);
}

.vehicle-price-kind {
  margin-bottom: 0.35rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.price-freshness {
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
}

.price-freshness.checked {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #15803d;
}

.price-freshness.stale {
  background: color-mix(in srgb, #f59e0b 16%, transparent);
  color: #b45309;
}

.vehicle-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--foreground);
}

.vehicle-price-median,
.vehicle-price-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.55;
}

.vehicle-price-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.vehicle-price-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.52rem;
  border-radius: 0.45rem;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.76rem;
}

.vehicle-price-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.vehicle-price-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
}

.vehicle-price-meta dt {
  color: var(--muted-foreground);
}

.vehicle-price-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.vehicle-price-source {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 750;
}

.price-disclaimer,
.price-method-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.price-disclaimer p,
.price-method-note p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.55;
}

.price-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
}

.price-empty p {
  margin: 0;
}

.price-empty.compact {
  font-size: 0.82rem;
}

.price-source-registry {
  margin-top: 1.25rem;
}

.price-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.price-source-row {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  background: var(--card);
}

.price-source-row > div {
  display: grid;
  gap: 0.2rem;
}

.price-source-row span,
.price-source-row small {
  color: var(--muted-foreground);
}

.price-source-row p {
  margin: 0.35rem 0;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .vehicle-price-grid,
  .price-source-list {
    grid-template-columns: 1fr;
  }

  .vehicle-price-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Magaracing WP additions */
.compare-pickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.compare-pickers label {
  display: grid;
  gap: 8px;
  color: #bdb7b0;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.compare-pickers select,
.filter-panel select {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #191817;
  color: #f5f1eb;
  padding: 0 12px;
}
.compare-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.1); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th { background: #181716; font-family: "Arial Narrow", sans-serif; letter-spacing: 0.06em; }
.compare-table tbody th { width: 180px; color: #9c9893; font-weight: 600; }
.detail-hero { padding: 72px 0 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.detail-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: end; }
.detail-subtitle { color: #c9c3bc; font-size: 18px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.detail-chips span { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.14); color: #d4cec7; font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.spec-panel { border: 1px solid rgba(255,255,255,0.1); background: #181716; padding: 22px; }
.spec-panel dl { margin: 0; display: grid; gap: 12px; }
.spec-panel dt { color: #8e8984; font-size: 12px; }
.spec-panel dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.spec-note { margin-top: 18px; color: #8e8984; font-size: 12px; }
.filter-count { color: #8e8984; margin: 8px 0 22px; }
.catalog-card[hidden] { display: none !important; }
@media (max-width: 900px) {
  .detail-hero-grid, .detail-layout, .compare-pickers { grid-template-columns: 1fr; }
}

/* —— 汽車知識 (Revampable-inspired longform on dark Magaracing shell) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.knowledge-hero .knowledge-crumbs {
  margin-top: 18px;
  color: #8e8984;
  font-size: 13px;
}

.knowledge-crumbs a:hover {
  color: #f5f1eb;
}

.knowledge-intro .hub-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.hub-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hub-check li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181716;
  color: #c9c3bc;
  font-size: 14px;
  line-height: 1.55;
}

.hub-check a {
  color: #f5f1eb;
  font-weight: 700;
  border-bottom: 1px solid rgba(232, 93, 58, 0.55);
}

.knowledge-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.knowledge-filter-block {
  display: grid;
  gap: 8px;
}

.knowledge-filter-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8f8a84;
  font-weight: 600;
}

.knowledge-toolbar__search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.knowledge-toolbar__search input[type="search"] {
  flex: 1;
  min-width: 220px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #191817;
  color: #f5f1eb;
}

.compact-action {
  min-height: 44px;
  padding: 0 16px;
}

.knowledge-toolbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-toolbar__chips .knowledge-tab {
  font-size: 12px;
}

.knowledge-tab {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa6a1;
  font-size: 13px;
  font-weight: 600;
}

.knowledge-tab.is-active,
.knowledge-tab:hover {
  color: #fff;
  border-color: rgba(232, 93, 58, 0.65);
  background: rgba(232, 93, 58, 0.12);
}

.knowledge-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8e8984;
  font-size: 12px;
}

.knowledge-sort select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #191817;
  color: #f5f1eb;
  padding: 0 10px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171615;
  transition: border-color 160ms ease, transform 160ms ease;
}

.knowledge-card:hover {
  border-color: rgba(232, 93, 58, 0.55);
  transform: translateY(-2px);
}

.knowledge-card__link {
  display: grid;
  gap: 10px;
  padding: 20px 18px 22px;
  height: 100%;
}

.knowledge-card__tag {
  width: fit-content;
  color: #e85d3a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.knowledge-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.knowledge-card__excerpt {
  margin: 0;
  color: #9c9893;
  font-size: 14px;
  line-height: 1.6;
}

.knowledge-card__meta {
  color: #6f6a65;
  font-size: 12px;
}

.knowledge-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: center;
  color: #9c9893;
}

.knowledge-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 36px;
  padding: 40px 0 64px;
  align-items: start;
}

.knowledge-article__content {
  font-size: 16.5px;
  line-height: 1.75;
  color: #e8e2da;
}

.knowledge-article__content > *:first-child {
  margin-top: 0;
}

.knowledge-article__content h2 {
  margin: 2.1em 0 0.7em;
  font-size: 1.35rem;
  line-height: 1.3;
}

.knowledge-article__content p,
.knowledge-article__content ul {
  margin: 0 0 1.05em;
}

.knowledge-article__content a {
  color: #f5f1eb;
  border-bottom: 1px solid rgba(232, 93, 58, 0.55);
}

.answer-box {
  padding: 16px 18px;
  border-left: 3px solid #e85d3a;
  background: rgba(232, 93, 58, 0.08);
  color: #f5f1eb;
}

.blog-article__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: #9c9893;
  font-size: 13px;
}

.glass-blog__tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4cec7;
  font-size: 12px;
}

.knowledge-article__rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.entry-toc {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181716;
}

.entry-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.entry-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #bdb7b0;
  font-size: 13px;
  line-height: 1.45;
}

.entry-toc a:hover {
  color: #fff;
}

.blog-rail-card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181716;
  display: grid;
  gap: 8px;
}

.blog-rail-card p {
  margin: 0;
  color: #9c9893;
  font-size: 13px;
  line-height: 1.55;
}

.blog-faq {
  margin-top: 42px;
  padding-top: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171615;
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin: 10px 0 4px;
  color: #c9c3bc;
  line-height: 1.65;
}

.knowledge-note {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8e8984;
  font-size: 13px;
  line-height: 1.55;
}

.knowledge-note p {
  margin: 0;
}

.navigation.pagination {
  margin-top: 28px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation.pagination .nav-links > ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation.pagination .nav-links > ul.page-numbers > li {
  margin: 0;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9c3bc;
  font-size: 13px;
  text-decoration: none;
}

.navigation.pagination a:hover {
  border-color: #e85d3a;
  color: #fff;
}

.navigation.pagination .current {
  border-color: #e85d3a;
  color: #fff;
}

.navigation.pagination .dots {
  border-color: transparent;
}

.catalog-pagination {
  margin-top: 32px;
  padding-top: 8px;
}

.filter-submit {
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid rgba(232, 93, 58, 0.55);
  background: rgba(232, 93, 58, 0.12);
  color: #f2d4cb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-submit:hover {
  border-color: #e85d3a;
  color: #fff;
  background: rgba(232, 93, 58, 0.22);
}

@media (max-width: 900px) {
  .filter-panel .filter-submit {
    width: 100%;
  }

  .catalog-pagination .nav-links > ul.page-numbers {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .knowledge-intro .hub-split,
  .knowledge-article__layout,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-article__rail {
    position: static;
  }
}

/* Version 1.2: data-driven entry reading and catalogue usability */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 22px;
  color: #817c77;
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: #f5f1eb;
}

.breadcrumbs [aria-current="page"] {
  color: #bdb7b0;
}

.detail-hero-grid {
  align-items: center;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-top: 48px;
}

.entry-longform {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.entry-section {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(232, 93, 58, 0.72);
  background: #181716;
  scroll-margin-top: 100px;
}

.entry-section h2 {
  margin: 7px 0 16px;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.entry-section p,
.entry-section li,
.entry-prose {
  color: #c9c3bc;
  font-size: 16px;
  line-height: 1.78;
}

.entry-section p {
  margin: 0 0 1em;
}

.entry-section p:last-child,
.entry-prose > *:last-child {
  margin-bottom: 0;
}

.entry-section ul,
.entry-section ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.35em;
}

.section-kicker {
  color: #f1724e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-pros-cons,
.brand-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-pros-cons .entry-section,
.brand-fact-grid .entry-section {
  height: 100%;
}

.price-guidance {
  background:
    linear-gradient(130deg, rgba(232, 93, 58, 0.08), transparent 46%),
    #181716;
}

.price-guidance .text-link {
  margin-top: 20px;
  color: #f1724e;
}

.detail-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.detail-sidebar .entry-toc {
  display: grid;
  gap: 5px;
}

.detail-sidebar .entry-toc strong {
  margin-bottom: 6px;
}

.detail-sidebar .entry-toc a {
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #aaa49e;
  font-size: 13px;
}

.detail-sidebar .entry-toc a:hover {
  color: #fff;
}

.detail-sidebar .spec-panel {
  padding: 20px;
}

.detail-sidebar .spec-panel h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

.detail-sidebar .spec-panel dl > div {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-cta {
  width: 100%;
}

.related-entries {
  padding-top: 26px;
}

.filter-reset {
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #bdb7b0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-reset:hover {
  border-color: #e85d3a;
  color: #fff;
}

.catalog-empty-state {
  margin-top: 18px;
}

.catalog-empty-state[hidden] {
  display: none;
}

.compare-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #181716;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .entry-pros-cons,
  .brand-fact-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel .filter-reset {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .breadcrumbs {
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .breadcrumbs [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .entry-section {
    padding: 22px 19px;
  }

  .entry-section p,
  .entry-section li,
  .entry-prose {
    font-size: 15px;
    line-height: 1.72;
  }

  .detail-chips span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Entry detail: compact sources at page bottom (above footer) */
.entry-sources {
  padding: 18px 0 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-sources__details {
  margin: 0;
}

.entry-sources__summary {
  list-style: none;
  cursor: pointer;
  color: #6f6a65;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.entry-sources__summary::-webkit-details-marker {
  display: none;
}

.entry-sources__summary::before {
  content: "▸ ";
  color: #5a5551;
}

.entry-sources__details[open] > .entry-sources__summary::before {
  content: "▾ ";
}

.entry-sources__summary:hover {
  color: #8a8580;
}

.entry-sources__registry {
  margin-top: 10px;
}

.entry-sources__row.registry-row {
  grid-template-columns: 22px minmax(120px, 0.55fr) 1fr 72px;
  gap: 10px;
  min-height: 0;
  padding: 7px 0;
  border-top-color: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.entry-sources__row.registry-row:hover {
  background: transparent;
}

.entry-sources__row .confidence {
  width: 18px;
  height: 18px;
  font-size: 9px;
  font-weight: 700;
  border-color: #3a3734;
  color: #7a7570;
}

.entry-sources__row .confidence-A {
  border-color: #5a4038;
  color: #a87868;
}

.entry-sources__row .confidence-B {
  color: #9a8a5a;
}

.entry-sources__row strong {
  font-size: 12px;
  font-weight: 600;
  color: #8e8984;
}

.entry-sources__row small {
  font-size: 11px;
  color: #6a6560;
}

.entry-sources__row p {
  font-size: 11px;
  color: #5f5a55;
  line-height: 1.4;
}

.entry-sources__row .source-date {
  font-size: 10px;
  color: #55514d;
}

@media (max-width: 900px) {
  .entry-sources__row.registry-row {
    grid-template-columns: 22px 1fr;
  }

  .entry-sources__row.registry-row p,
  .entry-sources__row.registry-row .source-date {
    grid-column: 2 / -1;
  }
}

/* Homepage visual QA — v1.3.1 (logo letter-unit clear-space) */
.site-header {
  background: rgba(16, 16, 16, 0.94);
}

.header-inner {
  min-height: 68px;
  gap: 28px;
}

.brand-logo {
  height: 27px;
}

.desktop-nav {
  gap: 2px;
}

.nav-link {
  padding: 9px 8px;
  line-height: 1.2;
  font-size: 12px;
}

.home-hero {
  min-height: min(680px, calc(100svh - 68px));
}

.home-hero > img {
  object-position: center 52%;
}

.hero-content {
  padding-bottom: 64px;
}

.hero-content h1 {
  max-width: 900px;
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: 1.02;
}

.hero-content > p {
  margin: 22px 0 26px;
}

.stats-grid > div,
.stats-grid > div:first-child {
  min-width: 0;
  min-height: 116px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.brand-nav-section {
  padding-block: 76px;
}

.brand-logo-link {
  min-height: 0;
  gap: 10px;
  padding: 12px;
}

.brand-logo-visual {
  aspect-ratio: 16 / 10;
  height: auto;
  padding: 0;
  background: #fff;
}

.brand-logo-visual img {
  width: auto;
  height: 33%;
  max-width: 55%;
  max-height: 33%;
}

.brand-logo-visual img.is-sized {
  max-width: none;
  max-height: none;
}

.brand-logo-name {
  display: flex;
  min-height: 20px;
  align-items: center;
  overflow: hidden;
  color: #302d2a;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-block {
  padding-block: 88px;
}

.section-heading {
  margin-bottom: 32px;
}

.collection-grid {
  align-items: stretch;
}

.collection-card {
  min-height: 420px;
}

.collection-card img {
  object-position: center 54%;
}

.collection-road img {
  object-position: 56% center;
}

.collection-racing img {
  object-position: center 56%;
}

.collection-card > div {
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.featured-grid {
  align-items: stretch;
}

.featured-grid .catalog-card {
  height: 100%;
}

.featured-grid .entry-media {
  height: 172px;
  margin: 22px 16px 8px;
}

.featured-grid .catalog-card-copy h3 {
  min-height: 2.1em;
}

.featured-grid .catalog-card-copy p {
  min-height: 4.8em;
}

.site-footer {
  padding-block: 52px;
}

.footer-grid {
  gap: 48px;
}

.footer-brand .brand-logo {
  height: 28px;
}

@media (max-width: 1050px) {
  .header-inner {
    min-height: 64px;
  }

  .home-hero {
    min-height: min(640px, calc(100svh - 64px));
  }

  .hero-content h1 {
    max-width: 700px;
    font-size: clamp(58px, 9vw, 78px);
  }

  .section-block {
    padding-block: 72px;
  }

  .brand-nav-section {
    padding-block: 64px;
  }
}

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

  .stats-grid > div,
  .stats-grid > div:first-child {
    min-height: 100px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stats-grid > div:nth-child(odd) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .collection-card {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 60px;
  }

  .brand-logo {
    height: 23px;
    max-width: 68vw;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero > img {
    object-position: 62% center;
  }

  .hero-content {
    padding-bottom: 38px;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 47px);
    line-height: 1.06;
  }

  .hero-content > p {
    margin: 18px 0 20px;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-search {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 6px 6px 12px;
  }

  .hero-search > span {
    display: none;
  }

  .hero-search input {
    width: auto;
    min-height: 44px;
  }

  .hero-search button {
    width: auto;
    min-height: 44px;
    flex: 0 0 auto;
  }

  .stats-grid > div,
  .stats-grid > div:first-child {
    min-height: 92px;
    padding: 16px 18px;
  }

  .stats-grid strong {
    font-size: 38px;
  }

  .brand-nav-section,
  .section-block {
    padding-block: 56px;
  }

  .brand-nav-heading,
  .section-heading {
    gap: 20px;
    margin-bottom: 26px;
  }

  .brand-logo-link {
    min-height: 0;
    padding: 10px;
  }

  .brand-logo-visual {
    aspect-ratio: 16 / 10;
    height: auto;
    padding: 0;
  }

  .collection-card {
    min-height: 320px;
  }

  .featured-grid .catalog-card-copy h3,
  .featured-grid .catalog-card-copy p {
    min-height: 0;
  }

  .site-footer {
    padding-block: 44px;
  }
}

/* 最新消息 */
.news-source-box {
  margin-top: 28px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141312;
  display: grid;
  gap: 8px;
}

.news-source-box .eyebrow {
  margin: 0;
}

.news-source-box strong {
  font-size: 16px;
}

.news-source-box p {
  margin: 0;
  color: #9c9893;
  font-size: 14px;
  line-height: 1.6;
}

.news-lede {
  font-size: 1.05em;
  color: #d7d2cc;
}

.news-editorial-note {
  color: #6f6a65;
  font-size: 13px;
}

.news-related-entries {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

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

  .collection-card img,
  .catalog-card {
    transition: none;
  }
}
