/* =========================================================================
   One Bag Travel — "The Honest Field Guide"
   Design system layer over Bootstrap 5. See DESIGN.md.
   Loaded AFTER bootstrap.min.css so component overrides win.
   ========================================================================= */

:root {
  /* Color — see DESIGN.md §2 */
  --ink:          #202632;
  --ink-blue:     #2b3a6b;
  --ink-blue-deep:#22305a;
  --ink-soft:     #565e6e;
  --canvas:       #fafbfc;
  --surface:      #ffffff;
  --surface-sunk: #f2f4f7;
  --border:       #e3e6ec;
  --border-strong:#c9ccd6;
  --signal:       #e2762b;
  --signal-deep:  #bd5c1a;
  --positive:     #2f8f5b;
  --positive-ink: #256b45;
  --positive-soft:#e8f4ec;
  --caution:      #a86e18;
  --caution-soft: #f7efe0;

  /* Type */
  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-sans:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-hover:  0 6px 20px -6px rgba(32,38,50,.14);
  --shadow-overlay:0 16px 44px -12px rgba(32,38,50,.28);
  --glow-signal:   0 4px 18px -4px rgba(226,118,43,.45);

  /* Motion */
  --ease: cubic-bezier(.25,1,.5,1);
  --dur-fast: 160ms;
  --dur-base: 280ms;

  /* Bootstrap variable bridges */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-link-color: var(--ink-blue);
  --bs-link-hover-color: var(--signal-deep);
  --bs-border-color: var(--border);
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
html { color: var(--ink); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The old shell wrapped content in .white-bg; keep it a clean surface. */
.white-bg { background: var(--surface); color: var(--ink); }

p { color: var(--ink); }
p, li { max-width: 68ch; }
/* Don't clamp measure inside dense grids / tables / cards. */
.row p, .card p, td p, .no-measure, .pl-table p { max-width: none; }

a {
  color: var(--ink-blue);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--signal-deep); text-decoration: underline; text-decoration-thickness: 1px; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

hr { border-color: var(--border); opacity: 1; }

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}
h3, .h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }

.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

.text-soft { color: var(--ink-soft) !important; }
.text-muted { color: var(--ink-soft) !important; }

/* Monospace spec values — the Tabular Data Rule */
.spec, .mono, .metric-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.topnav-container {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar { padding-top: .55rem; padding-bottom: .55rem; }
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  color: var(--ink-blue) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-brand img { width: 30px; height: 30px; }
.navbar-nav { gap: .15rem; align-items: center; }
.navbar-light .navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: .4rem .7rem;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--signal-deep);
  background: var(--surface-sunk);
}
.navbar-light .navbar-nav .nav-link.active {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--signal);
  border-radius: 0;
}
.navbar-toggler { border-color: var(--border); padding: .5rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(43,58,107,.15); }
/* Comfortable 44px+ touch targets once the nav collapses (mobile/tablet) */
@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link { padding-top: .65rem; padding-bottom: .65rem; }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn { border-radius: var(--r-sm); font-weight: 600; transition: all var(--dur-fast) var(--ease); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; box-shadow: none; }

/* Primary in-app action */
.btn-obt, .btn-primary {
  background: var(--ink-blue);
  border: 1px solid var(--ink-blue);
  color: #fff;
  padding: .6rem 1.25rem;
}
.btn-obt:hover, .btn-primary:hover {
  background: var(--ink-blue-deep);
  border-color: var(--ink-blue-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* The one loud CTA — amber with dark ink text */
.btn-cta {
  background: var(--signal);
  border: 1px solid var(--signal);
  color: var(--ink);
  padding: .75rem 1.5rem;
  font-size: 1.02rem;
}
.btn-cta:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--glow-signal);
}

/* Ghost / secondary */
.btn-secondary, .btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: .55rem 1.15rem;
}
.btn-secondary:hover, .btn-ghost:hover {
  background: var(--surface-sunk);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-sm { padding: .4rem .85rem; font-size: .9rem; }

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: none;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.card.shadow, .card.border-0 { box-shadow: none !important; border: 1px solid var(--border) !important; }
/* Interactive cards lift on hover */
.carryon-card:hover,
.packing-list-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.card-title { font-family: var(--font-sans); font-weight: 600; }

/* Backpack card — the shared product tile (homepage, airline, brand, similar) */
.bag-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.bag-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.bag-card__media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: var(--surface-sunk);
  padding: .75rem; border-bottom: 1px solid var(--border);
}
.bag-card__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 0; }
.bag-card__body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.bag-card__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  line-height: 1.18; letter-spacing: -0.005em; color: var(--ink);
}
.bag-card:hover .bag-card__name { color: var(--signal-deep); }
.bag-card__brand { font-size: .82rem; color: var(--ink-soft); font-weight: 500; margin-top: .1rem; }
.bag-card__specs {
  display: flex; flex-wrap: wrap; gap: .85rem; margin-top: auto; padding-top: .7rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: .88rem; color: var(--ink);
}
.bag-card__specs span + span { position: relative; }
.bag-card__specs span + span::before { content: "·"; position: absolute; left: -.5rem; color: var(--border-strong); }
.bag-card__cmp {
  margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center;
}
.bag-card__cmp strong { color: var(--ink); font-family: var(--font-mono); }
.bag-card__cmp a { font-weight: 600; margin-left: auto; white-space: nowrap; }

/* -------------------------------------------------------------------------
   Tables — the ledger (Tabular Data Rule)
   ------------------------------------------------------------------------- */
.table {
  background: var(--surface);
  color: var(--ink);
  --bs-table-bg: var(--surface);
  border-color: var(--border);
}
.table > thead, .table .table-light, thead.table-light {
  --bs-table-bg: var(--surface-sunk);
  background: var(--surface-sunk);
}
.table th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  border-color: var(--border);
}
.table td { border-color: var(--border); vertical-align: middle; }
.table td.text-end, .table td.text-nowrap { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* carryon + compare spec tables: numeric values in mono */
#carryon-details-table td:nth-child(2),
#bagdetails td,
.pl-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Backpack card metrics (capacity, weight, airline %, dimensions) in mono */
.card .fs-5, .card .fs-8 {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card .fs-5 { font-weight: 500; font-size: 1.15rem !important; }
.card .fs-8 { font-size: .82rem; color: var(--ink-soft); }
#carryon-details-table th span.underline,
#carryon-details-table label span { border-bottom: 1px dashed var(--border-strong); }

/* -------------------------------------------------------------------------
   Semantic spec flags (never color alone — always a word)
   ------------------------------------------------------------------------- */
.badge { border-radius: var(--r-pill); font-weight: 600; font-size: .72rem; padding: .28em .7em; }
.badge-success, .airline-compat {
  background: var(--positive-soft); color: var(--positive-ink);
}
.badge-danger { background: var(--caution-soft); color: var(--caution); }
.badge-warning { background: var(--surface-sunk); color: var(--ink-soft); }
.badge.bg-light { background: var(--surface-sunk) !important; color: var(--ink) !important; }

/* -------------------------------------------------------------------------
   Filter chips
   ------------------------------------------------------------------------- */
.chip {
  display: inline-block;
  font-weight: 600; font-size: .8125rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .35rem .8rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--signal); color: var(--ink); border-color: var(--signal);
}

/* -------------------------------------------------------------------------
   Forms / inputs
   ------------------------------------------------------------------------- */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--surface);
}
.form-control::placeholder { color: var(--ink-soft); opacity: 1; }
.form-control:focus, .form-select:focus {
  border-color: var(--ink-blue);
  box-shadow: 0 0 0 3px rgba(43,58,107,.15);
}
.form-label { font-weight: 600; font-size: .82rem; color: var(--ink-soft); }
#filters.card { background: var(--surface); }

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumb { margin-bottom: .75rem; }
.breadcrumb-item, .breadcrumb-item a { color: var(--ink-soft); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--signal-deep); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border-strong); }

/* -------------------------------------------------------------------------
   Dividers / misc legacy hooks
   ------------------------------------------------------------------------- */
.grey-bg { background: var(--surface); border-right: 1px solid var(--border); }
.grey-border-bottom { border-bottom: 1px solid var(--border); }
blockquote { padding: .5rem 1.25rem; margin: 0 0 1.25rem; border-left: 3px solid var(--signal); color: var(--ink-soft); }
.constrained-img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.btn-amazon { background: var(--signal); color: var(--ink); font-weight: 600; }
a.btn-amazon:hover { color: var(--ink); background: var(--signal-deep); }

/* Table-of-contents (content pages) */
#toc { padding-left: 0; position: sticky; top: 5rem; }
#toc li { list-style: none; margin-left: 0; padding: .12rem 0; }
#toc li.toc_h2 { font-weight: 600; }
#toc li.toc_h3 { padding-left: 1rem; font-size: .95rem; }
#toc a { color: var(--ink-soft); }
#toc a:hover { color: var(--signal-deep); }

.field-validation-error {
  color: var(--caution); background: var(--caution-soft);
  border: 1px solid #ece0c4; padding: .75rem 1rem; border-radius: var(--r-sm);
  display: block; margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--surface-sunk); border-top: 1px solid var(--border); }
footer { padding-top: 1.5rem; padding-bottom: 1.5rem; }
footer ul { padding-left: 0 !important; }
footer ul li { list-style: none; margin-bottom: .15rem; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--signal-deep); }
.footer-disclaimer { font-size: .82rem; color: var(--ink-soft); }

/* =========================================================================
   Homepage
   ========================================================================= */
.hp-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.hp-hero h1 { margin-bottom: 1rem; }
.hp-hero .lead { margin-bottom: 1.75rem; }
.hp-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hp-hero__note { color: var(--ink-soft); font-size: .92rem; margin-top: 1.1rem; }
.hp-hero__note strong { color: var(--ink); font-weight: 600; }

/* Hero figure — a real packing-list photo, doubling as proof + a link in */
.hp-hero__figure { display: block; position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-sunk); text-decoration: none; }
.hp-hero__figure:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.hp-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.1rem .8rem; color: #fff; font-size: .92rem; font-weight: 500; line-height: 1.3; background: linear-gradient(to top, rgba(20,24,32,.82) 30%, rgba(20,24,32,0)); }
.hp-hero__cap-k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--signal); font-weight: 700; margin-bottom: .15rem; }

/* Directory — the "what's here" section, real hierarchy not identical cards */
.hp-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.hp-dir__item { background: var(--surface); padding: 1.4rem 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .3rem; transition: background var(--dur-fast) var(--ease); }
.hp-dir__item:hover { background: var(--surface-sunk); text-decoration: none; }
.hp-dir__item:hover .hp-dir__go { color: var(--signal-deep); }
.hp-dir__k { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.hp-dir__d { color: var(--ink-soft); font-size: .95rem; max-width: none; margin: 0; }
.hp-dir__go { color: var(--ink-blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; transition: color var(--dur-fast) var(--ease); }

.hp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 1.1rem; }
.hp-section-head h2 { margin: 0; }
.hp-section-head a { font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* Section rhythm on the homepage */
.hp-block { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Backpack cards in a grid lift on hover */
.hp-block .card { transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.hp-block .col > .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.hp-block .card h5 a { color: var(--ink); font-weight: 600; }
.hp-block .card h5 a:hover { color: var(--signal-deep); }

/* =========================================================================
   Product (carry-on) page
   ========================================================================= */
.product-head { margin-bottom: 1.5rem; }
.product-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product-head h1 { margin: 0 0 .25rem; }
.product-brand { color: var(--ink-soft); font-size: 1rem; }
.product-brand a { font-weight: 600; }

.product-flag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--caution-soft); color: var(--caution);
  font-size: .82rem; font-weight: 600; padding: .35rem .75rem; border-radius: var(--r-pill);
}

/* Spec bar — the instrument panel. Real product specs, not vanity metrics. */
.spec-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  margin-top: 1.1rem;
}
.spec-bar__cell { background: var(--surface); padding: .85rem 1.1rem; }
.spec-bar__k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft); text-transform: uppercase; }
.spec-bar__v { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--ink); margin-top: .15rem; line-height: 1.1; }
.spec-bar__v small { font-size: .78rem; color: var(--ink-soft); }
.spec-bar__cell--fit .spec-bar__v { color: var(--positive-ink); }

/* Section headings on the product page */
.product-sec { margin-top: 2rem; }
.product-sec > h2 { font-size: 1.35rem; margin-bottom: .75rem; }

/* Reasons to buy / consider as paired panels */
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.verdict { border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.25rem; background: var(--surface); }
.verdict h3 { font-size: 1.05rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.verdict--buy { border-color: #cfe6d8; background: var(--positive-soft); }
.verdict--buy h3 { color: var(--positive-ink); }
.verdict ul.dashed { margin: 0; }
ul.dashed { list-style: none; padding-left: 0; }
ul.dashed > li { padding: .3rem 0 .3rem 1.1rem; position: relative; }
ul.dashed > li::before { content: ""; position: absolute; left: 0; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.verdict--buy ul.dashed > li::before { background: var(--positive); }

/* Feature spec table cells: booleans read cleaner */
#carryon-details-table td { padding: .45rem .5rem; }

/* Deeper stats block + segmented unit toggle */
.deeper-stats__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.deeper-stats__head strong { font-size: .95rem; }
.seg-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg-btn {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft);
  padding: .25rem .55rem; line-height: 1.2; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn.is-active { background: var(--ink-blue); color: #fff; }
.seg-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.deeper-stats .badge { font-size: .66rem; }

/* Reviews */
.review-item { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.review-item__src { color: var(--ink-soft); font-size: .9rem; }
.review-item blockquote { border-left: 3px solid var(--signal); margin: .6rem 0 0; }

/* Compatible airlines chips list */
.airline-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.airline-list a, .airline-list span {
  font-size: .82rem; color: var(--ink); background: var(--surface-sunk);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: .2rem .55rem;
}
.airline-list a:hover { border-color: var(--border-strong); text-decoration: none; color: var(--signal-deep); }

/* =========================================================================
   Compare page
   ========================================================================= */
.cmp-head { margin-bottom: 1.75rem; }
.cmp-head h1 { margin-bottom: .35rem; }
.cmp-head .lead { margin: 0; }
.cmp-col h2 { font-size: 1.3rem; margin-bottom: .1rem; }
.cmp-col h2 a { color: var(--ink); }
.cmp-col h2 a:hover { color: var(--signal-deep); }
.cmp-col .product-brand { margin-bottom: .5rem; }

/* Spec panel per bag: values in mono */
.cmp-spec { width: 100%; }
.cmp-spec td { border-color: var(--border); padding: .5rem .6rem; }
.cmp-spec td:first-child { color: var(--ink-soft); font-weight: 600; }
.cmp-spec td:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }

/* Feature comparison table — a real diff */
.cmp-features { width: 100%; }
.cmp-features td, .cmp-features th[scope="row"] { text-align: center; vertical-align: middle; padding: .5rem .5rem; border: none; }
.cmp-features td:nth-child(1), .cmp-features td:nth-child(3) { width: 34%; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cmp-features th[scope="row"] { color: var(--ink-soft); font-weight: 600; font-family: var(--font-sans); }
.cmp-features tr { border-bottom: 1px solid var(--border); }
.cmp-features tr.same td:nth-child(1), .cmp-features tr.same td:nth-child(3) { color: var(--ink-soft); }
.cmp-features tr.diff { background: var(--surface-sunk); }
.cmp-features tr.diff td:nth-child(1), .cmp-features tr.diff td:nth-child(3) { color: var(--ink); font-weight: 600; }
.cmp-features .cmp-group th { background: var(--ink-blue); color: #fff; font-family: var(--font-sans); font-weight: 600; text-align: left; font-size: .82rem; letter-spacing: .01em; }
.cmp-material { width: 100%; margin-top: .5rem; }
.cmp-material td { text-align: center; padding: .5rem; color: var(--ink); border: none; }
.cmp-material tr:first-child td { color: var(--ink-soft); font-weight: 600; }
.cmp-yes { color: var(--positive-ink); font-weight: 700; font-size: 1.05rem; }
.cmp-no { color: var(--border-strong); font-weight: 700; font-size: 1.05rem; }

.compare-verdict { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.35rem 1.6rem; margin-top: 1.5rem; }
.compare-verdict h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.compare-verdict p { max-width: 72ch; margin-bottom: 0; }

/* =========================================================================
   Packing list page
   ========================================================================= */
.pl-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; margin: 1.1rem 0 1.75rem;
}
.pl-fact { background: var(--surface); padding: .7rem 1rem; }
.pl-fact__k { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: var(--ink-soft); }
.pl-fact__v { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--ink); margin-top: .15rem; }
.pl-fact__v.is-text { font-family: var(--font-sans); font-weight: 600; font-size: .98rem; }

.pl-bag {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1rem 1.15rem; background: var(--surface); margin-bottom: 1.5rem;
}
.pl-bag__img { flex: 0 0 100px; width: 100px; }
.pl-bag__img img { border-radius: var(--r-sm); }
.pl-bag__k { font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--ink-soft); }
.pl-bag__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: .1rem 0 .5rem; }
.pl-bag__name a { color: var(--ink); }
.pl-bag__name a:hover { color: var(--signal-deep); }
.pl-bag__specs { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--ink); }
.pl-bag__specs span b { font-family: var(--font-sans); font-weight: 600; color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; display: block; }

.pl-author { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: .85rem 1.1rem; background: var(--surface-sunk); margin-top: 1.5rem; }
.pl-author img { border-radius: 50%; width: 44px; height: 44px; }
.pl-author__k { font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--ink-soft); }
.pl-author__n { font-weight: 600; color: var(--ink); }

/* Checklist (interactive, persists to localStorage) */
.pl-checklist h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.pl-checklist__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pl-checklist__head h2 { margin-bottom: .5rem; }
.pl-checklist__all { list-style: none; margin: 0; padding: 0; }
.pl-group { margin-bottom: 1.25rem; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pl-group__h { background: var(--surface-sunk); font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: var(--ink); padding: .5rem .85rem; border-bottom: 1px solid var(--border); }
.pl-group ul { list-style: none; margin: 0; padding: 0; }
.pl-item { display: flex; align-items: baseline; gap: .65rem; padding: .5rem .85rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.pl-item:last-child { border-bottom: none; }
.pl-check { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--signal); cursor: pointer; position: relative; top: 2px; }
.pl-item__name a { color: var(--ink-blue); }
label.pl-item__name { cursor: pointer; }
.pl-item.is-packed .pl-item__name { text-decoration: line-through; color: var(--ink-soft); }

/* =========================================================================
   Airline rules page
   ========================================================================= */
.limit-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; margin: 1.25rem 0 1.75rem;
}
.limit-cell { background: var(--surface); padding: 1rem 1.15rem; }
.limit-cell__k { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: var(--ink-soft); }
.limit-cell__v { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.4rem; color: var(--ink); margin-top: .2rem; line-height: 1.1; }
.limit-cell__sub { display: block; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-soft); margin-top: .1rem; }
.limit-cell__v.is-none { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.airline-source { font-size: .9rem; }
.airline-filter { max-width: 26rem; }
.airline-filter .form-label { display: block; margin-bottom: .25rem; }
.airline-filter__count { display: inline-block; margin-top: .35rem; font-size: .85rem; }
.airline-index tr[hidden] { display: none; }

/* Airline index table: numeric columns in mono */
.airline-index td:nth-child(2), .airline-index td:nth-child(3),
.airline-index td:nth-child(4), .airline-index td:nth-child(5),
.airline-index td:nth-child(6) {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  white-space: nowrap; color: var(--ink);
}
.airline-index td:last-child a { font-weight: 600; white-space: nowrap; }
.airline-index th { position: sticky; top: 3.4rem; background: var(--surface-sunk); z-index: 1; }

/* Callout — a bordered note, never a side-stripe */
.callout {
  border: 1px solid var(--border); border-left-width: 1px;
  background: var(--surface-sunk); border-radius: var(--r-md);
  padding: 1rem 1.25rem; margin: 0 0 1.25rem;
}
.callout h2, .callout h3 { font-family: var(--font-sans); font-size: 1rem; margin: 0 0 .4rem; }
.callout ul { margin: 0; padding-left: 1.1rem; }
.callout li { max-width: none; }

/* FAQ list */
.faq-list { display: grid; gap: .85rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); padding: .9rem 1.15rem; background: var(--surface); }
.faq-item a { font-weight: 600; }
.faq-item p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .95rem; }

/* =========================================================================
   Article / guide page
   ========================================================================= */
.article-head { margin-bottom: 1.5rem; }
.article-head h1 { max-width: 22ch; }
.article-meta { color: var(--ink-soft); font-size: .95rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.article-meta a { font-weight: 600; }
.article-meta .dot { color: var(--border-strong); }

#content { max-width: 70ch; font-size: 1.09rem; }
#content > h2:first-child, #content > h3:first-child { margin-top: 0; }
#content h2 { margin-top: 2.25rem; font-size: 1.5rem; }
#content h3 { margin-top: 1.75rem; }
#content p, #content li { max-width: none; }
#content img { border-radius: var(--r-md); margin: 1.5rem 0; }
#content > *:first-child { margin-top: 0; }

.toc-panel { position: sticky; top: 4.5rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.15rem; background: var(--surface); }
.toc-panel__k { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: var(--ink-soft); margin-bottom: .5rem; }

.author-bio { display: flex; gap: 1.1rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem 1.5rem; background: var(--surface-sunk); margin-top: 2.5rem; }
.author-bio__k { font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--ink-soft); }
.author-bio__n { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: .1rem 0 .35rem; }
.author-bio p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.author-bio a { font-weight: 600; }

/* =========================================================================
   About page
   ========================================================================= */
.about { max-width: 42rem; }
.about h1 { margin-bottom: 1rem; }
.about .lead { color: var(--ink); max-width: none; margin-bottom: 2rem; }
.about h2 { margin-top: 2.25rem; font-size: 1.6rem; }
.about p { font-size: 1.09rem; }
.about-quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.25; letter-spacing: -0.005em;
  color: var(--ink-blue); border: none; padding: 0; margin: 2rem 0;
}
.about-facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin: 2rem 0; }
.about-fact { background: var(--surface); padding: .85rem 1.2rem; flex: 1 1 140px; }
.about-fact__v { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.3rem; color: var(--ink); }
.about-fact__k { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .1rem; }
.about-signoff { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }

/* =========================================================================
   Guides index + brand page
   ========================================================================= */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.guide-card {
  display: flex; flex-direction: column; gap: .4rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.25rem 1.4rem; background: var(--surface); text-decoration: none;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); text-decoration: none; }
.guide-card__t { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.005em; color: var(--ink); line-height: 1.2; margin: 0; }
.guide-card:hover .guide-card__t { color: var(--signal-deep); }
.guide-card__p { color: var(--ink-soft); font-size: .95rem; margin: 0; max-width: none; }
.guide-card__go { margin-top: auto; color: var(--ink-blue); font-weight: 600; font-size: .88rem; padding-top: .5rem; }

.brand-intro { max-width: 68ch; }

/* Empty state (filter no-results, etc.) */
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--border-strong);
  border-radius: var(--r-md); background: var(--surface); color: var(--ink-soft);
}
.empty-state strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .35rem; }

/* Packing-list rows (used on many pages): flat at rest, hover lift */
.packing-list-row {
  box-shadow: none !important; border: 1px solid var(--border);
  border-radius: var(--r-md); margin: 0 0 1rem; padding: .6rem;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.packing-list-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.packing-list-row h5 a { color: var(--ink); font-weight: 600; }
.packing-list-row h5 a:hover { color: var(--signal-deep); }
.pl-thumb { border-radius: var(--r-sm); }
.pl-table td { padding: .1rem .35rem; color: var(--ink-soft); font-size: .92rem; }
.pl-table td:first-child { text-align: center; width: 1.8rem; }

/* =========================================================================
   Entrance motion — a subtle staggered rise on card grids.
   Transform-led + opacity floor at 0.4 so content is never invisible
   (headless renderers/hidden tabs still show it); disabled for reduced-motion.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  @keyframes obt-rise { from { transform: translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }
  .hp-hero__figure,
  .hp-dir__item,
  .guide-grid > .guide-card,
  [class*="row-cols-"] > .col {
    animation: obt-rise .5s var(--ease) both;
  }
  .hp-dir__item:nth-child(2),
  .guide-grid > .guide-card:nth-child(2),
  [class*="row-cols-"] > .col:nth-child(2) { animation-delay: 50ms; }
  .hp-dir__item:nth-child(3),
  .guide-grid > .guide-card:nth-child(3),
  [class*="row-cols-"] > .col:nth-child(3) { animation-delay: 100ms; }
  .guide-grid > .guide-card:nth-child(4),
  [class*="row-cols-"] > .col:nth-child(4) { animation-delay: 150ms; }
  [class*="row-cols-"] > .col:nth-child(5) { animation-delay: 200ms; }
  [class*="row-cols-"] > .col:nth-child(6) { animation-delay: 250ms; }
  [class*="row-cols-"] > .col:nth-child(n+7) { animation-delay: 300ms; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carryon-card:hover, .packing-list-row:hover,
  .btn:hover, .hp-dir__item:hover { transform: none; }
}
