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

body {
  background: #0a0a0a;
  color: #ece7db;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 24px 16px 16px;
  border-bottom: 1px solid #16130d;
}

h1 {
  font-size: 22px;
  color: #c9a24b;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.subtitle {
  color: #666;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 4px;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Intro */
.intro-card {
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
  color: #aaa;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
  width: 100%;
  background: #16130d;
  border: 1px solid #2c2517;
  color: #fff;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a24b;
}

/* Option group (radio buttons as cards) */
.option-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 12px;
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 6px;
  font-size: 13px;
  color: #ccc;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.option-label:hover {
  border-color: #443a24;
}

.option-label input[type="radio"] {
  accent-color: #c9a24b;
}

.option-label:has(input:checked) {
  border-color: #c9a24b;
  background: #c9a24b11;
  color: #fff;
}

/* Engine swap hint */
.engine-swap-hint {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}

/* Engine picker */
.engine-picker-head {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1.5;
}

.engine-cat-label {
  font-size: 11px;
  color: #c9a24b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 6px;
}

.engine-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.engine-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 10px;
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 6px;
  font-size: 12px;
  color: #ccc;
  transition: border-color 0.2s, background 0.2s;
}

.engine-check:hover {
  border-color: #443a24;
}

.engine-check input[type="checkbox"] {
  accent-color: #c9a24b;
  flex-shrink: 0;
}

.engine-check:has(input:checked) {
  border-color: #c9a24b;
  background: #c9a24b11;
  color: #fff;
}

.engine-other-label {
  margin-top: 14px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: 1px solid #2c2517;
  background: #16130d;
  color: #ccc;
  font-size: 13px;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #201b11;
  border-color: #443a24;
}

.btn-primary {
  background: linear-gradient(180deg, #e6c878 0%, #c9a24b 55%, #b78a34 100%);
  border-color: #8a6d2a;
  color: #1a1408;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 14px 20px;
  box-shadow: 0 2px 12px rgba(201, 162, 75, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f0d68c 0%, #d4ae57 55%, #c1963c 100%);
  border-color: #a07c2c;
  color: #1a1408;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
}

/* Output header */
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.output-header h2 {
  font-size: 20px;
  color: #fff;
}

.output-subtitle {
  color: #888;
  font-size: 13px;
  margin-top: 4px;
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2c2517;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}

.tab:hover {
  color: #ccc;
}

.tab.active {
  color: #c9a24b;
  border-bottom-color: #c9a24b;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cards */
.card {
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a24b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2c2517;
}

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

.card td {
  padding: 4px 0;
  font-size: 13px;
  vertical-align: top;
}

.card td:first-child {
  color: #888;
  width: 45%;
  padding-right: 12px;
}

.card td:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-note {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1d190f;
  line-height: 1.5;
}

/* Upgrade item list */
.upgrade-list {
  list-style: none;
}

.upgrade-list li {
  padding: 5px 0;
  font-size: 13px;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #241f14;
}

.upgrade-list li:last-child {
  border-bottom: none;
}

.upgrade-list .part {
  color: #888;
}

.upgrade-list .level {
  color: #fff;
  font-weight: 600;
}

/* Tag */
.tag {
  display: inline-block;
  background: #c9a24b22;
  color: #c9a24b;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Tip box */
.tip-box {
  background: #c9a24b0d;
  border: 1px solid #c9a24b22;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  margin-top: 12px;
}

.tip-box strong {
  color: #c9a24b;
}

/* Output actions */
.output-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #16130d;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2c2517;
  border-top-color: #c9a24b;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.loading-container h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.loading-status {
  color: #888;
  font-size: 13px;
}

/* AI response */
#ai-response {
  line-height: 1.7;
  font-size: 14px;
  color: #ccc;
}

#ai-response h2 {
  font-size: 16px;
  color: #c9a24b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2c2517;
}

#ai-response h2:first-child {
  margin-top: 0;
}

#ai-response h3 {
  font-size: 13px;
  color: #c9a24b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}

#ai-response p {
  margin-bottom: 10px;
}

#ai-response ul, #ai-response ol {
  margin: 8px 0 12px 20px;
}

#ai-response li {
  margin-bottom: 4px;
}

#ai-response strong {
  color: #fff;
}

#ai-response table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}

#ai-response th {
  background: #1d190f;
  color: #c9a24b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
}

#ai-response td {
  padding: 8px 12px;
  border-top: 1px solid #1d190f;
  font-size: 13px;
  color: #ccc;
  word-wrap: break-word;
}

#ai-response td:first-child {
  color: #888;
}

#ai-response td:last-child {
  color: #fff;
  font-weight: 600;
}

#ai-response tr td:only-child {
  color: #c9a24b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  background: #1d190f;
}

#ai-response .tune-note {
  font-size: 12px;
  color: #777;
  margin-top: -8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

#ai-response hr {
  border: none;
  border-top: 1px solid #2c2517;
  margin: 20px 0;
}

#ai-response code {
  background: #16130d;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #c9a24b;
}

#ai-response blockquote {
  border-left: 3px solid #c9a24b;
  padding: 8px 14px;
  margin: 10px 0;
  background: #16130d;
  border-radius: 0 6px 6px 0;
  color: #aaa;
}

/* Error */
.error-card {
  background: #2a1515;
  border: 1px solid #c9a24b44;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.error-card p {
  color: #ccc;
  margin-bottom: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(180deg, #e6c878, #c9a24b);
  color: #1a1408;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Validation */
.form-group.error input,
.form-group.error select {
  border-color: #c9a24b;
}

.error-msg {
  color: #c9a24b;
  font-size: 11px;
  margin-top: 4px;
}

/* Header nav */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

/* Star rating */
.stars, .stars-static {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: #443a24;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.stars-static .star {
  cursor: default;
  font-size: 15px;
}

.star.filled {
  color: #c9a24b;
}

.stars .star:hover {
  color: #c9a24b;
}

/* Reference card (recall from garage) */
.reference-card {
  background: #c9a24b0d;
  border: 1px solid #c9a24b33;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.reference-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9a24b;
  margin-bottom: 8px;
}

.reference-body {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reference-lap {
  color: #aaa;
  font-size: 13px;
}

.reference-notes {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.5;
}

.reference-card .btn {
  margin-top: 12px;
}

/* Garage */
.garage-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.garage-empty {
  color: #888;
  line-height: 1.6;
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 8px;
  padding: 20px;
}

.garage-card {
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.garage-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.garage-car {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.garage-del {
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.garage-del:hover {
  color: #c9a24b;
}

.garage-sub {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

.garage-rating {
  margin: 12px 0;
}

.garage-field-label {
  display: block;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 4px;
}

.garage-input {
  width: 100%;
  background: #0c0b08;
  border: 1px solid #2c2517;
  color: #fff;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.garage-input:focus {
  outline: none;
  border-color: #c9a24b;
}

.garage-view {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 500px) {
  .option-group {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .output-actions {
    flex-direction: column;
  }
}

/* Car quick search */
.search-group {
  position: relative;
}

.search-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  background: #141109;
  border: 1px solid #352d1c;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid #1d190f;
  color: #ddd;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result:focus {
  background: #221d12;
  color: #fff;
}

/* Accessibility: visible keyboard focus (replaces removed outlines) */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.star:focus-visible {
  outline: 2px solid #c9a24b;
  outline-offset: 2px;
}

/* Wide tables scroll inside their own container on small screens */
#ai-response table,
#meta-list table {
  display: block;
  overflow-x: auto;
  white-space: normal;
}

/* ============================================================
   Site chrome: top nav, hero, editorial prose, author, footer
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 16px;
  background: rgba(10, 9, 6, 0.94);
  border-bottom: 1px solid #241f14;
}

.site-nav .brand {
  color: #c9a24b;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: #16130d;
}

.nav-link.active {
  color: #c9a24b;
}

/* Hero (landing and guides), overrides the generic centred header */
.hero {
  text-align: left;
  border-bottom: 1px solid #241f14;
  padding: 8px 0 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.hero-lead {
  color: #ddd;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero-geo {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.hero-geo a { color: #c9a24b; }

.byline {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid #c9a24b;
  padding-left: 12px;
}

.byline strong { color: #ddd; }

.hero-points {
  list-style: none;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.hero-points li {
  background: #16130d;
  border: 1px solid #2c2517;
  border-left: 3px solid #c9a24b;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
}

.hero-points strong { color: #fff; }

/* Editorial prose (guides.html) */
.prose article h2 {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2c2517;
}

.prose article h3 {
  color: #c9a24b;
  font-size: 15px;
  margin: 22px 0 6px;
}

.prose article p {
  color: #cfcfcf;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose article ul {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}

.prose article li {
  position: relative;
  color: #cfcfcf;
  font-size: 14.5px;
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  margin-bottom: 4px;
}

.prose article li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 6px;
  height: 6px;
  background: #c9a24b;
  border-radius: 50%;
}

.prose article li strong { color: #fff; }

.prose article a { color: #c9a24b; }

.guide-cta {
  background: #16130d;
  border: 1px solid #2c2517;
  border-left: 3px solid #c9a24b;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 24px;
  font-size: 14.5px;
}

/* Footer and author card */
.site-footer {
  max-width: 700px;
  margin: 32px auto 0;
  padding: 24px 16px 40px;
  border-top: 1px solid #241f14;
}

.author-card {
  background: #16130d;
  border: 1px solid #2c2517;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.author-name {
  color: #c9a24b;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.author-card p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.creds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creds li {
  background: #c9a24b14;
  border: 1px solid #c9a24b33;
  color: #e8d4a0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

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

.footer-note {
  color: #666;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .site-nav { flex-wrap: wrap; gap: 8px; }
  .nav-link { padding: 5px 6px; font-size: 12px; }
  .hero h1 { font-size: 23px; }
}

/* ============================================================
   Premium polish: warmth, depth and serif display headings
   ============================================================ */

body {
  background:
    radial-gradient(1200px 500px at 50% -200px, #1a1509 0%, rgba(26, 21, 9, 0) 60%),
    #0a0a0a;
  color: #ece7db;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Elegant serif for the display headings, sans stays on the UI */
.brand,
.hero h1,
.prose article h2,
.author-name {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
}

.site-nav {
  border-bottom: 1px solid #2c2517;
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-nav .brand {
  background: linear-gradient(180deg, #f0d906 0%, #e6c878 30%, #c9a24b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  font-size: 17px;
  font-weight: 600;
}

.hero h1 {
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 32px;
  background: linear-gradient(180deg, #fbf3df 0%, #d9cbaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead { color: #d8cfbd; }

/* Gold hairline accents and subtle depth on the key surfaces */
.intro-card,
.card,
.author-card,
.hero-points li,
.garage-card,
.reference-card,
.error-card {
  background: linear-gradient(180deg, #17130b 0%, #120f09 100%);
  border-color: #2c2517;
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.05) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}

.prose article h2 {
  font-weight: 600;
  border-bottom-color: #2c2517;
}
.prose article h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, #c9a24b, rgba(201, 162, 75, 0));
}

/* Tables and section headings in the generated guide */
#ai-response h2,
#meta-list h2 {
  color: #e6d9bd;
  border-bottom-color: #2c2517;
}
#ai-response th,
#meta-list th {
  color: #d8b866;
  letter-spacing: 1.2px;
}

/* Refined focus ring in gold */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.star:focus-visible {
  outline-color: #c9a24b;
}

/* Nav container needs to sit above the hero's radial glow cleanly */
main { position: relative; }

.noscript-note { border-left: 3px solid #c9a24b; }
.noscript-note a { color: #c9a24b; }

/* Cookie consent: centred modal with backdrop, fixed across all devices */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 3, 2, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.consent-modal {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #1a160e 0%, #100d08 100%);
  border: 1px solid #3a3320;
  border-top: 2px solid #c9a24b;
  border-radius: 16px;
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.consent-title {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f0d906 0%, #e6c878 35%, #c9a24b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.consent-text {
  color: #cfc7b5;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.consent-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.consent-actions .btn {
  padding: 13px 26px;
  font-size: 14px;
  min-width: 120px;
}

@media (max-width: 480px) {
  .consent-modal { padding: 26px 20px 22px; }
  .consent-actions { flex-direction: column-reverse; }
  .consent-actions .btn { width: 100%; }
}

/* Meta Cars static pages */
.crumbs {
  font-size: 12px;
  color: #8a8474;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.crumbs a { color: #c9a24b; text-decoration: none; }
.crumbs span { color: #cfc7b5; }

.meta-index {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.meta-index li {
  background: linear-gradient(180deg, #17130b 0%, #120f09 100%);
  border: 1px solid #2c2517;
  border-left: 3px solid #c9a24b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b8b0a0;
}
.meta-index li::before { content: none; }
.meta-index a { color: #f0e6cc; text-decoration: none; font-size: 15px; }
.meta-index a:hover { color: #fff; }
.meta-tag {
  display: inline-block;
  color: #c9a24b;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Tables inside the static article pages */
.prose article table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  background: #141109;
  border: 1px solid #2c2517;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}
.prose article th {
  background: #1d190f;
  color: #d8b866;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: 8px 12px;
  text-align: left;
}
.prose article td {
  padding: 8px 12px;
  border-top: 1px solid #241f14;
  font-size: 13px;
  color: #cfc7b5;
  word-wrap: break-word;
}
.prose article td:last-child { color: #f0e6cc; font-weight: 600; }
.prose article .tune-note {
  font-size: 12px;
  color: #8a8474;
  margin-top: -8px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.prose article ol { margin: 0 0 16px 20px; }
.prose article ol li { color: #cfc7b5; font-size: 14px; line-height: 1.65; margin-bottom: 6px; }
.prose article ol li::before { content: none; }

/* Guide hero pixel images */
.guide-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border: 1px solid #2c2517;
  border-radius: 12px;
  margin-bottom: 18px;
  image-rendering: pixelated;
  background: #0a0a0a;
}
.byline .updated { color: #7f776a; display: inline-block; }

/* Glossary */
.glossary { margin: 0; }
.glossary dt {
  color: #e6d9bd;
  font-weight: 700;
  font-size: 15px;
  margin-top: 16px;
}
.glossary dd {
  color: #cfc7b5;
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0 0;
  padding-left: 14px;
  border-left: 2px solid #2c2517;
}
