/* CabinRate POC — Mediterranean Radar theme
   azure #1a6fa8 / gold #f5c842 / cream, Nunito 900 + Space Mono */

:root {
  --azure: #1a6fa8;
  --azure-deep: #13293d;
  --azure-soft: #e8f1f8;
  --gold: #f5c842;
  --gold-deep: #d9a916;
  --cream: #fbf7ec;
  --ink: #13293d;
  --line: #d9e3ec;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(19, 41, 61, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------------- Header + radar signature + nav ---------------- */
.site-head {
  background: linear-gradient(160deg, var(--azure) 0%, var(--azure-deep) 100%);
  color: var(--white);
  padding: 26px 20px 30px;
}
.head-inner { max-width: 960px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.site-nav a.active { background: rgba(255,255,255,0.12); color: var(--gold); }
.nav-demo {
  font-size: 9px; font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 1px 5px; border-radius: 4px;
  vertical-align: middle; margin-left: 3px;
}
.beta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: var(--azure-deep);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.tagline {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.9;
  margin: 12px 0 0;
}
.tagline em { color: var(--gold); font-style: normal; }

.radar { width: 52px; height: 52px; flex: none; }
.radar .ring { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.3; }
.radar .cross { stroke: rgba(255,255,255,0.30); stroke-width: 1; }
.radar .sweep-g { transform-origin: 32px 32px; animation: sweep 4s linear infinite; }
.radar .blip { fill: var(--gold); animation: blink 4s ease-in-out infinite; }
.radar .blip.b2 { animation-delay: 2s; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blink { 0%,40%,100% { opacity: 0.15; } 55% { opacity: 1; } }

/* ---------------- Layout ---------------- */
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 10px; }

.explainer h1 {
  font-weight: 900;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.15;
  margin: 4px 0 10px;
  letter-spacing: -0.5px;
}
.explainer p {
  margin: 0;
  color: #3a5168;
  font-weight: 400;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.55;
}
.explainer em { font-style: normal; color: var(--azure); font-weight: 900; }

/* ---------------- Controls ---------------- */
.controls {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.ctl-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctl-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #6b7f92;
}
.seg { display: inline-flex; background: var(--azure-soft); border-radius: 10px; padding: 3px; }
.seg label {
  cursor: pointer; padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 900; color: var(--azure);
  transition: background .15s, color .15s;
}
.seg label.on { background: var(--azure); color: var(--white); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }

.toggle {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 900; color: #6b7f92;
  transition: all .15s;
}
.toggle::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid #c3d0db; background: var(--white);
}
.toggle.on { border-color: var(--azure); color: var(--azure); background: var(--azure-soft); }
.toggle.on::before { background: var(--gold); border-color: var(--gold-deep); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------------- Results ---------------- */
.results { display: flex; flex-direction: column; gap: 14px; }
.results.reshuffle .card { opacity: 0; transform: translateY(8px); }

.card {
  display: grid;
  grid-template-columns: 38px 1fr 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: opacity .35s ease, transform .35s ease;
}
.rank {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 15px; color: #9fb0bf;
  background: var(--azure-soft);
}
.card-main { padding: 16px 18px; min-width: 0; }
.card-main h3 { margin: 0 0 4px; font-weight: 900; font-size: 18px; }
.card-main .ship { color: var(--azure); }
.itin { margin: 0 0 8px; color: #3a5168; font-size: 14px; }
.meta {
  font-family: 'Space Mono', monospace; font-weight: 400;
  font-size: 12px; color: #6b7f92; margin: 0 0 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.chip {
  font-size: 12px; font-weight: 700; color: var(--azure);
  background: var(--azure-soft); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
}
.chip-bare { color: #97836b; background: #f3ecdd; }

/* azure price panel */
.price {
  background: linear-gradient(165deg, var(--azure) 0%, var(--azure-deep) 100%);
  color: var(--white);
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative;
}
.grade {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; line-height: 1;
  color: var(--azure-deep);
}
.grade small { font-family: 'Space Mono', monospace; font-weight: 400; font-size: 8px; margin-top: 1px; }
.g-aplus, .g-a { background: #8ee0a1; }
.g-b { background: #bfe08e; }
.g-c { background: var(--gold); }
.g-d { background: #f0a868; }
.g-e, .g-f { background: #e79a9a; }

.head-strike {
  font-family: 'Space Mono', monospace; font-size: 11px;
  text-decoration: line-through; opacity: 0.65; margin-bottom: 2px;
}
.ppn { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.ppn-num { font-weight: 900; font-size: 30px; letter-spacing: -1px; }
.ppn-lab {
  font-family: 'Space Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold);
}
.gap {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #cfe0ee; margin-top: 7px; line-height: 1.35;
}
.gap.miss { color: var(--gold); }

.cta {
  margin-top: 13px;
  background: var(--gold); color: var(--azure-deep);
  font-weight: 900; font-size: 14px; text-decoration: none;
  padding: 9px 18px; border-radius: 9px;
  border: none; cursor: pointer;
  transition: transform .1s, background .15s;
}
.cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* ---------------- States ---------------- */
.empty, .db-error {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow);
}
.db-error strong { color: #b4451f; }
.db-error code { font-family: 'Space Mono', monospace; background: #f3ecdd; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: #8a99a8; font-weight: 400; font-size: 13px; }

/* ---------------- Footer ---------------- */
.site-foot { margin-top: 34px; }
.wave { display: block; width: 100%; height: 50px; }
.wave path { fill: var(--azure); }
.foot-inner {
  background: var(--azure); color: var(--white);
  padding: 4px 20px 26px; text-align: center;
}
.foot-inner p { margin: 6px 0; font-size: 13px; }
.foot-inner .muted { color: #bcd2e4; }

.foot-nav {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 12px; padding-top: 6px;
}
.foot-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: #bcd2e4; text-decoration: none;
  transition: color .15s;
}
.foot-nav a:hover { color: var(--white); }

/* ---------------- Content pages (about, privacy, terms, disclosure) ---------------- */
.container { max-width: 960px; margin: 0 auto; padding: 28px 20px; }
.container.narrow { max-width: 740px; }

.page-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.page-title {
  font-weight: 900; font-size: 28px;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.page-updated {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: #8a99a8;
  font-weight: 400; margin-bottom: 24px;
}
.page-body h2 {
  font-size: 17px; font-weight: 900;
  margin: 28px 0 8px; color: var(--ink);
}
.page-body p,
.page-body li {
  font-size: 15px; font-weight: 400;
  line-height: 1.65; color: #3a5168;
  margin: 0 0 10px;
}
.page-body ul { padding-left: 22px; margin: 0 0 12px; }
.page-body li { margin: 0 0 6px; }

.inline-link { color: var(--azure); text-decoration: underline; }
.inline-link:hover { color: var(--azure-deep); }

@media (max-width: 720px) {
  .page-body { padding: 22px 18px; }
}

/* ---------------- Focus + motion ---------------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 620px) {
  .card { grid-template-columns: 30px 1fr; }
  .price { grid-column: 1 / -1; }
  .rank { writing-mode: vertical-rl; }
}
@media (prefers-reduced-motion: reduce) {
  .radar .sweep-g, .radar .blip { animation: none; }
  .results.reshuffle .card { opacity: 1; transform: none; }
  .card { transition: none; }
}

/* ================= Calculator (main product) ================= */
.calc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.field.f-wide { grid-column: span 3; }
.field.f-prefs { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.field.f-cost  { grid-column: span 4; }
.field label {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: #6b7f92;
}
.field input, .field select {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px;
  width: 100%; box-sizing: border-box;
}
.field input:focus, .field select:focus { border-color: var(--azure); outline: none; }

/* ================= Result ================= */
.result {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
  animation: rise .35s ease;
}
.reshuffle .result { opacity: 0; transform: translateY(8px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none;} }

.result-head h2 { margin: 0; font-weight: 900; font-size: 20px; }
.result-head h2 span { color: var(--azure); }
.result-sub { font-family: 'Space Mono', monospace; font-size: 12px; color: #6b7f92; margin: 4px 0 16px; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { position: relative; border-radius: 14px; padding: 18px; color: var(--white); }
.panel.cost { background: linear-gradient(165deg, var(--azure) 0%, var(--azure-deep) 100%); }
.panel.trip { background: linear-gradient(165deg, #15506f 0%, #0e2233 100%); }
.panel .grade {
  position: absolute; top: 14px; right: 14px;
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-size: 19px; line-height: 1; color: var(--azure-deep);
}
.panel .grade small { font-family: 'Space Mono', monospace; font-weight: 400; font-size: 8px; }
.big { display: flex; flex-direction: column; }
.big-num { font-weight: 900; font-size: 34px; letter-spacing: -1px; }
.big-lab { font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--gold); }

.detail { list-style: none; margin: 14px 0 12px; padding: 0; }
.detail li { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.detail li span { color: #cfe0ee; }

.bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.bar-row span:first-child { color: #cfe0ee; font-family: 'Space Mono', monospace; font-size: 11px; }
.bar { height: 7px; background: rgba(255,255,255,0.16); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.bar-row b { text-align: right; font-size: 12px; }

.verdict { margin: 16px 0 14px; color: #3a5168; font-size: 15px; line-height: 1.5; }
.cta.wide { display: inline-block; }
.disclaim { font-family: 'Space Mono', monospace; font-size: 11px; color: #8a99a8; font-weight: 400; margin: 12px 0 0; }

.seealso { font-size: 13px; color: #6b7f92; margin: 20px 0 0; }
.seealso a { color: var(--azure); }
.tag-demo {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  background: #f3ecdd; color: #97836b; padding: 2px 8px; border-radius: 6px; vertical-align: middle;
}

@media (max-width: 720px) {
  .calc { grid-template-columns: repeat(2, 1fr); }
  .field { grid-column: span 1; }
  .field.f-wide, .field.f-cost { grid-column: span 2; }
  .result-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-itin-body { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .result, .reshuffle .result { animation: none; opacity: 1; transform: none; }
}

/* ================= Line comparison ================= */
.comp-itin {
  margin-bottom: 16px;
}
.comp-itin-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 6px;
}
.comp-itin-score { min-width: 110px; }
.comp-itin-bars  { flex: 1; margin-top: 4px; }
.itin-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 400;
  color: #cfe0ee; margin: 6px 0 0;
}

.comp-heading {
  font-weight: 900; font-size: 16px;
  margin: 20px 0 6px; color: var(--ink);
}
.comp-note {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 400;
  color: #6b7f92; margin: 0 0 14px;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.comp-card {
  position: relative;
  background: linear-gradient(165deg, var(--azure) 0%, var(--azure-deep) 100%);
  border-radius: 14px;
  padding: 16px;
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.comp-best { outline: 3px solid var(--gold); }

.best-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--gold); color: var(--azure-deep);
  padding: 4px 10px; border-radius: 6px;
  display: inline-block; margin-bottom: 10px; align-self: flex-start;
}

.comp-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.comp-card-head .grade {
  position: static;       /* override the default absolute */
  width: 42px; height: 42px;
  border-radius: 10px; flex: none;
}
.comp-card-head h3 { margin: 0; font-size: 16px; }

.comp-card .chips { margin-top: 12px; flex: 1; }

.comp-card-note {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.75); line-height: 1.4;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.detail .cabin-note span { color: var(--gold); font-style: italic; }
.detail .cabin-note b    { color: var(--gold); }
.detail .total-line {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 4px; padding-top: 6px;
}
.detail .total-line span,
.detail .total-line b { font-weight: 900; }
.detail .trip-total {
  border-top: 2px solid rgba(255,255,255,0.35);
  margin-top: 8px; padding-top: 8px;
  font-size: 14px;
}
.detail .trip-total span { color: var(--white); font-weight: 700; }
.detail .trip-total b { font-size: 20px; font-weight: 900; color: var(--gold); }

.comp-cta { margin-top: 14px; text-align: center; align-self: stretch; }

/* ================= Alternative suggestions ================= */
.alt-section { margin-top: 28px; }

.alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.alt-card {
  background: var(--white);
  border: 1.5px solid var(--azure);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.alt-card-head  { margin-bottom: 8px; }
.alt-card-line  { font-size: 17px; font-weight: 900; margin: 0 0 2px; color: var(--ink); }
.alt-card-bundle {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: #6b7f92;
}
.alt-pitch {
  font-size: 13px; font-weight: 400;
  color: #3a5168; line-height: 1.45;
  margin: 0 0 12px;
}

.alt-price {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.alt-price .grade {
  position: static;        /* override default absolute */
  width: 40px; height: 40px;
  border-radius: 9px; flex: none;
}
.alt-ppn {
  font-weight: 900; font-size: 26px;
  letter-spacing: -0.5px; color: var(--azure-deep);
}
.alt-ppn-lab {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: #6b7f92; text-transform: uppercase;
}

.alt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line);
  margin: 4px 0 10px; padding-top: 8px;
}
.alt-total-lab {
  font-family: 'Space Mono', monospace;
  font-size: 10px; text-transform: uppercase; color: #6b7f92;
}
.alt-total-amt {
  font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: -0.5px;
}

.alt-card .chips { flex: 1; margin-bottom: 12px; }

.alt-cta {
  background: var(--azure); color: var(--white);
  display: block; text-align: center; margin-top: auto;
}
.alt-cta:hover { background: var(--azure-deep); transform: translateY(-1px); }

@media (max-width: 720px) {
  .alt-grid { grid-template-columns: 1fr; }
}

/* ================= Drinks package calculator ================= */
/* All drinks-calculator-specific classes are "drk-" prefixed to stay clearly
   scoped — the calculator shares layout primitives (.calc, .field, .cta,
   .result, .chip) with the rest of the site but adds a few components (a
   verdict card, a receipt-style breakdown) that don't exist elsewhere. */

.drk-flag {
  background: var(--azure-soft);
  border: 1px dashed var(--gold-deep);
  color: #3a5168;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px; line-height: 1.5;
  margin: 18px 0;
}

.drk-grid {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  gap: 4px 10px;
  align-items: center;
  margin-top: 8px;
}
.drk-grid .hdr {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: #6b7f92;
  padding-bottom: 4px;
}
.drk-grid .cat-name { font-size: 14px; font-weight: 700; padding: 5px 0; }
.drk-grid input {
  padding: 7px 4px; text-align: center; font-size: 14px;
  font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 7px;
  width: 100%; box-sizing: border-box;
}
.drk-grid input:focus { border-color: var(--azure); outline: none; }

.drk-second-toggle {
  display: flex; align-items: center; gap: 9px;
  margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.drk-second-toggle input { width: auto; }

.drk-section-title {
  font-weight: 900; font-size: 15px; margin: 20px 0 2px; color: var(--azure-deep);
}

/* Verdict card */
.drk-verdict {
  border-radius: 18px; padding: 20px; margin: 22px 0 14px;
  box-shadow: var(--shadow); color: var(--white);
  background: linear-gradient(165deg, var(--azure) 0%, var(--azure-deep) 100%);
}
.drk-verdict-badge {
  display: inline-block; font-weight: 900; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 8px 16px; border-radius: 9px; margin-bottom: 10px;
  color: var(--azure-deep);
}
.drk-verdict-badge.good { background: #8ee0a1; }
.drk-verdict-badge.bad { background: #e79a9a; }
.drk-verdict-badge.marginal { background: var(--gold); }
.drk-verdict-sub { font-size: 15px; line-height: 1.5; }
.drk-verdict-sub strong { font-family: 'Space Mono', monospace; }
.drk-verdict-note {
  font-size: 12px; color: #cfe0ee; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.3);
}

.drk-staleness {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  margin-top: 10px; letter-spacing: 0.3px; color: var(--azure-deep);
}
.drk-staleness.fresh { background: #8ee0a1; }
.drk-staleness.aging { background: var(--gold); }
.drk-staleness.stale { background: #e79a9a; }

.drk-warn {
  background: #fdeceb; border-left: 3px solid #b4451f; color: #7a2f18;
  border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
  margin-bottom: 14px;
}

.drk-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.drk-figure {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.drk-figure .lab {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; color: #6b7f92;
}
.drk-figure .amt {
  font-weight: 900; font-size: 24px; letter-spacing: -0.5px; color: var(--azure-deep);
  margin-top: 4px;
}
.drk-figure .sub {
  font-family: 'Space Mono', monospace; font-size: 11px; color: #6b7f92;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line);
}
.drk-figure .split { display: block; margin-top: 2px; }

.drk-breakdown {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin-top: 14px; box-shadow: var(--shadow);
}
.drk-breakdown-title {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: #6b7f92;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px;
}

.drk-compare { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.drk-compare-hdr {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; color: #6b7f92;
  padding: 8px 14px; background: var(--azure-soft); border-bottom: 1px solid var(--line);
}
.drk-compare-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 12px;
}
.drk-compare-row:last-child { border-bottom: none; }
.drk-compare-row.recommended { background: var(--azure-soft); }
.drk-compare-name { font-weight: 900; font-size: 14px; color: var(--ink); }
.drk-compare-name.recommended { color: var(--azure); }
.drk-compare-badge {
  display: inline-block; font-family: 'Space Mono', monospace; font-size: 9px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 8px; margin-left: 6px;
  background: #8ee0a1; color: var(--azure-deep); vertical-align: middle;
}
.drk-compare-type { font-size: 12px; color: #6b7f92; margin-top: 2px; }
.drk-compare-right { text-align: right; flex-shrink: 0; }
.drk-compare-total { font-weight: 900; font-size: 15px; color: var(--azure-deep); }
.drk-compare-split { font-family: 'Space Mono', monospace; font-size: 10px; color: #6b7f92; margin-top: 2px; }
.drk-compare-delta { font-size: 11px; margin-top: 2px; font-weight: 700; }
.drk-compare-delta.wins { color: #2d8a45; }
.drk-compare-delta.loses { color: #b4451f; }
.drk-compare-delta.marginal { color: var(--gold-deep); }

.drk-stub {
  background: linear-gradient(165deg, var(--azure) 0%, var(--azure-deep) 100%);
  color: var(--white); border-radius: 16px; padding: 18px 20px; margin-top: 14px;
}
.drk-stub-title { font-weight: 900; font-size: 15px; margin-bottom: 10px; color: var(--gold); }
.drk-stub .line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.drk-stub .line span:first-child { color: rgba(255,255,255,0.8); }
.drk-stub .line span:last-child { font-family: 'Space Mono', monospace; text-align: right; }
.drk-stub .note {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.3);
  font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.5;
}

.drk-err {
  color: #b4451f; padding: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; font-size: 13px;
}
.drk-loading { text-align: center; color: #6b7f92; padding: 20px; font-size: 13px; }

@media (max-width: 640px) {
  .drk-figures { grid-template-columns: 1fr; }
  .drk-grid { grid-template-columns: 1fr 60px 60px; }
}
