/* DeckTab — cruisedrinkprices.com
   Visual spec: DeckTab calculator review handoff (Claude Design, Aug 2026).
   system-ui only, no external assets. */

:root {
  --ink: #1A2321;
  --ink-soft: #3E4A45;
  --muted: #5C6660;
  --brand: #0F3D33;
  --amber: #B45309;
  --amber-deep: #92400E;
  --amber-ink: #78350F;
  --amber-bg: #FBF3E7;
  --line: #E3E1DB;
  --line-soft: #F0EFEA;
  --line-mid: #C9CFCB;
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --bg-soft: #FCFBF9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  /* Sticky footer: short pages must not leave the footer floating mid-screen */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }

a { color: var(--brand); }
a:hover { color: var(--amber); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Tablet: wider column, larger headings */
@media (min-width: 768px) {
  .wrap { max-width: 720px; padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 28px; }
}

/* Desktop: the app zone (calculator + verdict) goes two-column */
@media (min-width: 1024px) {
  .wrap-app { max-width: 1100px; }
  .calc-layout {
    display: grid;
    grid-template-columns: minmax(380px, 480px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .calc-layout .calculator { margin: 16px 0 24px; }
  .calc-layout .verdict-area {
    position: sticky;
    top: 16px;
    margin: 16px 0 24px;
    align-self: start;
  }
}

/* ── Header / footer ─────────────────────────────────────────────── */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  color: var(--brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand svg { display: block; flex-shrink: 0; }
.site-header .tagline { font-size: 12px; color: var(--muted); }

.crumbs { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.crumbs ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-mid); }
.crumbs [aria-current] { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  font-size: 12.5px; color: var(--muted); margin-top: 24px;
}
.site-footer .wrap { padding-top: 14px; padding-bottom: 14px; }

/* ── Home ────────────────────────────────────────────────────────── */
.hero { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.hero h1 {
  margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: pretty;
}
.hero p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }

.field-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.line-select-box { position: relative; padding: 16px 0; }
.line-select-box select {
  width: 100%; height: 48px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--brand); border-radius: 8px;
  padding: 0 36px 0 12px; appearance: none; -webkit-appearance: none;
}
.line-select-box .chevron {
  position: absolute; right: 14px; bottom: 32px; font-size: 14px; color: var(--brand);
  pointer-events: none;
}

.line-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 4px 0 20px;
}
@media (min-width: 560px) { .line-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 768px) { .line-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.line-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  background: var(--card);
}
a.line-card:hover { border-color: var(--brand); }
.line-card .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.line-card .teaser { font-size: 12.5px; font-weight: 600; color: var(--amber-deep); }
.line-card .teaser.verified { color: var(--brand); }
.line-card .teaser.soon { color: var(--muted); font-weight: 400; }
.line-card[aria-disabled="true"] { background: var(--bg-soft); }

/* ── Page head ───────────────────────────────────────────────────── */
.page-head { padding: 20px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; }
.page-head .verified-line { margin: 0; font-size: 13px; color: var(--muted); }

/* ── Cards & sections ────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.section { padding: 8px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.section h2 {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
}
.section .note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Badges: verified (solid brand pill) vs estimated (amber dashed tag).
   Never on the same table. */
.badge-stack { display: flex; flex-direction: column; gap: 6px; }
.badge-verified {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px;
}
.badge-estimated {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-bg); color: var(--amber-deep); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px; border: 1.5px dashed var(--amber);
}
.badge-sub { font-size: 12px; color: var(--muted); }

/* ── Tables ──────────────────────────────────────────────────────── */
.price-table {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; font-size: 13.5px;
  border-collapse: separate; border-spacing: 0;
}
.price-table th, .price-table td { padding: 9px 12px; text-align: left; }
.price-table thead th { background: var(--bg); font-weight: 600; color: var(--muted); }
.price-table tbody th, .price-table tbody td { border-top: 1px solid var(--line-soft); }
.price-table tbody th { font-weight: 600; }
.price-table .num {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-table .em { font-weight: 700; }
.price-table .dim { color: var(--muted); }
.price-table.tight th, .price-table.tight td { padding: 9px 6px; }
.price-table.tight th:first-child, .price-table.tight td:first-child { padding-left: 10px; }
.price-table.tight th:last-child, .price-table.tight td:last-child { padding-right: 10px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── Calculator ──────────────────────────────────────────────────── */
.calculator {
  margin: 16px 0; padding: 16px; display: flex; flex-direction: column; gap: 16px;
  container-type: inline-size;
}
.calc-basic { display: flex; flex-direction: column; gap: 12px; }
.buy-field { display: flex; flex-direction: column; gap: 6px; }
.drinks-box { display: flex; flex-direction: column; gap: 2px; }
.adv-box { display: flex; flex-direction: column; }
.variant-fields { display: flex; flex-direction: column; gap: 14px; }

.calc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.calc-row .row-label { font-size: 15px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .step {
  width: 44px; height: 44px; border: 1px solid var(--line-mid); border-radius: 8px;
  background: var(--card); font-size: 20px; color: var(--brand); cursor: pointer;
  font-family: inherit; padding: 0;
}
.stepper .step:hover { border-color: var(--brand); background: var(--bg-soft); }
.stepper .step:active { background: var(--line-soft); }
.stepper output {
  min-width: 32px; text-align: center; font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.seg-group {
  display: flex; border: 1.5px solid var(--brand); border-radius: 8px; overflow: hidden;
}
.seg-group.thin { border: 1px solid var(--line-mid); }
.seg {
  flex: 1; min-height: 44px; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; padding: 0 8px;
  background: var(--card); color: var(--brand);
}
.seg:hover { background: var(--bg-soft); }
.seg[aria-pressed="true"] { background: var(--brand); color: #fff; }
.seg small { font-weight: 400; font-size: 12px; }
.seg-group.thin .seg { font-size: 13px; }
.seg:focus-visible { outline-offset: -3px; }

.drinks-head {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 8px;
}
.drink-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-top: 1px solid var(--line-soft);
}
.drink-row .drink-name { display: flex; flex-direction: column; }
.drink-row .drink-name .n { font-size: 15px; font-weight: 500; }
.drink-row .drink-name .p { font-size: 12.5px; color: var(--amber-deep); }
.drink-row output { min-width: 28px; }

.adv-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 44px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--brand);
  cursor: pointer; font-family: inherit;
}
.adv-toggle:hover { border-color: var(--brand); }
.adv-panel {
  display: flex; flex-direction: column; gap: 14px; padding: 14px 12px;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px;
  background: var(--bg-soft);
}
.adv-panel[hidden] { display: none; }
.check-row {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500;
  min-height: 44px; cursor: pointer;
}
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); }
.adv-panel .calc-row .row-label { font-size: 14px; font-weight: 400; }
.adv-panel .calc-row .row-label .sub { color: var(--muted); }
.adv-panel .hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.variant-field { display: flex; flex-direction: column; gap: 6px; }
.variant-field .v-label { font-size: 14px; font-weight: 600; }
.split-fields { display: flex; flex-direction: column; gap: 12px; }
.split-fields[hidden] { display: none; }

.calc-fallback { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* When the card itself is wide (tablet / desktop single-column),
   lay the controls out in two columns. Sized to the card, not the
   viewport, so the desktop side-by-side layout keeps one column.
   Must come after every base rule it overrides. */
@container (min-width: 560px) {
  .calc-basic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  .buy-field { grid-column: 1 / -1; }
  .drinks-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .variant-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
  .split-fields:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  .split-fields .hint { grid-column: 1 / -1; }
}

/* ── Verdict area ────────────────────────────────────────────────── */
.verdict-area {
  margin: 0 0 16px; min-height: 200px; display: flex; flex-direction: column; gap: 12px;
}

.verdict-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 28px 20px; border: 2px dashed var(--line-mid); border-radius: 10px;
  background: var(--card);
}
.verdict-empty p { margin: 0; font-size: 15px; color: var(--muted); text-align: center; text-wrap: pretty; }

.verdict-card { background: var(--card); border: 2.5px solid var(--brand); border-radius: 10px; overflow: hidden; }
.verdict-card .v-head { padding: 14px 18px; background: var(--brand); }
.verdict-card .v-head .v-title { font-size: 16px; font-weight: 800; letter-spacing: 0.04em; color: #fff; }
.verdict-card .v-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.verdict-card .v-line { display: flex; justify-content: space-between; font-size: 15px; }
.verdict-card .v-line.dim { color: var(--muted); }
.verdict-card .v-line strong { font-variant-numeric: tabular-nums; }
.verdict-card .v-sum {
  margin: 0; padding-top: 6px; border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 700; color: var(--brand);
}
.verdict-card.close { border: 2.5px dashed var(--amber); }
.verdict-card.close .v-head { background: var(--amber-bg); }
.verdict-card.close .v-head .v-title { color: var(--amber-ink); }
.verdict-card.close .v-sum {
  font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-soft);
}

.verdict-detail {
  padding: 2px 4px; display: flex; flex-direction: column; gap: 5px;
  font-size: 13.5px; color: var(--ink-soft);
}
.verdict-detail .v-line { display: flex; justify-content: space-between; }
.verdict-detail .v-line strong { font-variant-numeric: tabular-nums; }
.verdict-detail .more-drinks { margin: 4px 0 0; color: var(--muted); }

.warn-block {
  padding: 18px; background: var(--amber-bg); border: 2px solid var(--amber);
  border-radius: 10px; display: flex; flex-direction: column; gap: 8px;
}
.warn-block .w-title { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--amber-ink); }
.warn-block p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--amber-ink); }

.warn-inline {
  display: flex; gap: 10px; padding: 12px 14px; background: var(--amber-bg);
  border: 1.5px solid var(--amber); border-radius: 8px;
}
.warn-inline .mark { font-weight: 800; color: var(--amber-deep); }
.warn-inline p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--amber-ink); }

.compare-table caption {
  text-align: left; padding: 10px 12px 4px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.compare-table td:first-child .name { font-weight: 600; }
.compare-table .pill-best {
  margin-left: 6px; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); padding: 2px 6px; border-radius: 99px; white-space: nowrap;
}
.compare-table .row-note { display: block; font-size: 12px; color: var(--muted); }
.estimate-note { margin: 0; padding: 0 4px; font-size: 12px; color: var(--amber-deep); }

/* ── Home: selected-line package summary ─────────────────────────── */
.summary-card { margin: 18px 0 8px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-info .line-name { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sc-info .pkg-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.price-meta { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.price-meta:first-of-type { margin-top: 6px; }
.sc-price { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.price-big { margin: 0; display: flex; align-items: center; gap: 10px; }
.price-big .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--brand); white-space: nowrap; }
.price-big .per { font-size: 13px; line-height: 1.25; color: var(--ink-soft); white-space: nowrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; background: var(--brand); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none;
  text-align: center;
}
.btn-primary:hover { opacity: 0.92; }
@media (min-width: 640px) {
  .summary-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .sc-price { align-items: flex-end; flex-shrink: 0; }
}

/* ── Home: mini calculator ───────────────────────────────────────── */
.mini-calc { margin: 16px 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mini-result { border-top: 1px solid var(--line-soft); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.mini-result .mr-pkg { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.mini-result .mr-total { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--brand); }
.mini-result .mr-ppd { font-size: 14px; color: var(--ink-soft); }
.mini-others { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.mini-warn { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--warn-ink, #8a4b00); }
.mini-cta { align-self: flex-start; }
.mini-calc .hint { margin: 0; }

/* ── Home: available now / coming soon ───────────────────────────── */
.block-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.soon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon-list li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; color: var(--ink-soft); }
.avail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 10px; }
.avail-head .avail-name { font-size: 17px; font-weight: 700; }
.avail-head .avail-price { font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* ── Home: cruise-line comparison table ──────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lines-table { min-width: 480px; }
.lines-table td { white-space: nowrap; }
.pill-ok, .pill-soon {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.pill-ok { background: var(--brand); color: #fff; }
.pill-soon { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; }
.row-soon td { color: var(--ink-soft); }

/* ── Home: SEO copy ──────────────────────────────────────────────── */
.seo-copy p { margin: 0 0 12px; max-width: 68ch; font-size: 15px; line-height: 1.65; }
.seo-copy p:last-child { margin-bottom: 0; }

/* ── Package contents cards ──────────────────────────────────────── */
.pkg-cards { display: grid; gap: 10px; }
@media (min-width: 768px) { .pkg-cards { grid-template-columns: 1fr 1fr; } }
.pkg-card { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.pkg-card .pkg-name { font-weight: 700; font-size: 15px; }
.pkg-card .pkg-price { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.pkg-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* ── Rules & FAQ ─────────────────────────────────────────────────── */
.rules-list {
  margin: 0; padding: 0 0 0 2px; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
}
.rules-list li { display: flex; gap: 10px; }
.rules-list .dot { color: var(--amber); font-weight: 800; }

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.faq summary {
  padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  min-height: 44px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▾"; float: right; color: var(--brand); }
.faq details[open] summary::after { content: "▴"; }
.faq details p {
  margin: 0; padding: 0 14px 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft);
}
