/* HonkCheck styles. "Boarding Pass" look: cream paper, navy ink, goose-beak orange. Mobile first. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #fbf4e4;
  --paper-deep: #f3e8cf;
  --card: #fffdf8;
  --ink: #152447;
  --ink-soft: #4a5674;
  --line: #d9cdb0;
  --orange: #f26b21;
  --orange-deep: #c9500f;
  --sky: #dbe9f3;
  --green: #17693f;
  --green-bg: #e3f3e6;
  --amber: #8a5300;
  --amber-bg: #fdeec9;
  --red: #a8261c;
  --red-bg: #fbe4df;
  --grey-bg: #ece6d6;
  --radius: 14px;
  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
}
h2 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  margin-top: 1.6em;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange-deep);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono {
  font-family: var(--mono);
  font-weight: 500;
}
.muted {
  color: var(--ink-soft);
  font-weight: 400;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 1.6em;
}
.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
  color: #fff;
}
.preview-bar {
  margin: 0;
  padding: 8px 16px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-height: 48px;
}
.brand:hover {
  color: #fff;
}
.brand img {
  background: var(--paper);
  border-radius: 50%;
  padding: 3px;
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand__name span {
  color: var(--orange);
}
.nav {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--orange);
}
.site-header :focus-visible {
  outline-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 700 1.05rem/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.btn--big {
  min-height: 60px;
  padding: 14px 30px;
  font-size: 1.2rem;
}
.btn--small {
  min-height: 46px;
  padding: 8px 18px;
  font-size: 0.98rem;
}
.btn--ghost {
  background: var(--card);
}
.btn--buy {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Page scaffolding */
.page {
  padding-top: 28px;
  padding-bottom: 48px;
}
.page--narrow {
  max-width: 720px;
}
.section {
  padding-top: 8px;
  padding-bottom: 28px;
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 6px;
}
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-left: 4px solid var(--orange);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}
.fine {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.checked {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--sky);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 0 12px;
}
.crumbs {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.page__links {
  font-size: 0.95rem;
}
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sky);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
}

/* Home: boarding pass hero */
.hero {
  padding-top: 20px;
  padding-bottom: 12px;
}
.pass {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}
.pass__main {
  padding: 24px 20px 20px;
}
.pass__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.pass h1 {
  font-size: clamp(2.7rem, 13vw, 5rem);
  line-height: 0.95;
  margin-bottom: 0.35em;
}
.pass__sub {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 14px 0 0;
}
.pass__fields {
  display: flex;
  gap: 22px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}
.pass__fields dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pass__fields dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.pass__stub {
  position: relative;
  background: var(--sky);
  border-top: 2px dashed var(--ink);
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* ticket notches */
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.pass__stub::before {
  left: -14px;
}
.pass__stub::after {
  right: -14px;
}
.pass__stub img {
  width: 104px;
  height: 104px;
  flex: none;
}
.barcode {
  flex: 1;
  height: 54px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 3px,
    transparent 3px 6px,
    var(--ink) 6px 7px,
    transparent 7px 12px,
    var(--ink) 12px 17px,
    transparent 17px 20px
  );
  opacity: 0.85;
}
.pass__gate {
  position: absolute;
  right: 20px;
  bottom: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin: 0;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.steps__n {
  display: inline-block;
  font-weight: 600;
  color: var(--orange-deep);
  margin-bottom: 6px;
}
.steps h3 {
  margin-bottom: 0.3em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}
.duo {
  display: grid;
  gap: 12px;
}
.duo__card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 16px;
}
.duo__card p {
  margin: 0;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legend li {
  display: grid;
  gap: 4px;
}
.cta-band {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper-deep);
  border-radius: 20px;
  padding: 20px 16px;
  margin-bottom: 36px;
}
.cta-band h2 {
  margin-top: 0;
}
.cta-band p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Fit badges: passport stamps */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 9px;
  border: 2px solid currentColor;
  border-radius: 7px;
  transform: rotate(-1.5deg);
}
.stamp--fits {
  color: var(--green);
  background: var(--green-bg);
}
.stamp--tight {
  color: var(--amber);
  background: var(--amber-bg);
}
.stamp--grounded {
  color: var(--red);
  background: var(--red-bg);
}
.stamp--none,
.stamp--unknown {
  color: var(--ink-soft);
  background: var(--grey-bg);
  border-style: dashed;
  transform: none;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 0 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.limits td .mono {
  white-space: nowrap;
}
.limits td .muted {
  display: block;
  font-size: 0.8rem;
}

/* Filters */
.filters {
  margin: 18px 0 14px;
}
.filters__panel {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.filters__panel > summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}
.filters__panel > summary::-webkit-details-marker {
  display: none;
}
.filters__panel > summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.4rem;
  line-height: 1;
}
.filters__panel[open] > summary::after {
  content: "−";
}
.filters__hint {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--orange-deep);
  margin-left: auto;
}
.filters__grid {
  padding: 4px 16px 16px;
  display: grid;
  gap: 16px;
  border-top: 2px dashed var(--line);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.filters legend,
.filters__selects label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
  margin: 12px 0 8px;
}
.filters__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filters__selects label {
  display: grid;
  gap: 6px;
  margin: 0;
}
select {
  width: 100%;
  min-height: 48px;
  padding: 8px 34px 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23152447' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 12px center / 12px;
  color: var(--ink);
  font: 500 1rem var(--body);
  text-transform: none;
  letter-spacing: 0;
  appearance: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chipbox {
  position: relative;
  display: inline-flex;
}
.chipbox input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chipbox span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.chipbox small {
  font-weight: 400;
  color: var(--ink-soft);
}
.chipbox input:checked + span {
  background: var(--ink);
  color: #fff;
}
.chipbox input:checked + span small {
  color: #d5dcec;
}
.chipbox input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 0.95rem;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}
.filters__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.result-count {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

/* Bag cards: ticket with tear-off stub */
.tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.ticket {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ticket.is-close {
  border-color: var(--ink-soft);
  box-shadow: 0 4px 0 var(--line);
}
.ticket__main {
  padding: 16px 16px 14px;
}
.ticket__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ticket__img {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: var(--sky);
  display: grid;
  place-items: center;
}
.ticket__img img {
  width: 60px;
  height: 60px;
}
.ticket__brand {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 3px;
}
.ticket__name {
  font-size: 1.22rem;
  margin: 0 0 4px;
}
.ticket__name a {
  text-decoration: none;
}
.ticket__name a:hover {
  text-decoration: underline;
}
.ticket__price {
  margin: 0;
  font-weight: 600;
}
.ticket__match {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--green-bg);
  color: var(--green);
}
.ticket.is-close .ticket__match {
  background: var(--amber-bg);
  color: var(--amber);
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 14px 0 0;
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.specs dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
}
.specs dd .muted {
  font-size: 0.8rem;
}
.specs--page {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 0;
}
.ticket__stub {
  position: relative;
  margin-top: auto;
  padding: 16px;
  border-top: 2px dashed var(--ink);
  background: linear-gradient(var(--paper-deep), var(--paper-deep));
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.ticket__stub::before {
  left: -12px;
}
.ticket__stub::after {
  right: -12px;
}
.fit-summary {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  margin: 0 0 8px;
}
.sel-fit {
  margin: 0 0 10px;
}
.sel-fit__type {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.sel-fit ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 7px;
}
.sel-fit li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.fit-all {
  margin: 0 0 12px;
}
.fit-all summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.fit-table th,
.fit-table td {
  padding: 7px 6px 7px 0;
  font-size: 0.82rem;
}
.fit-table .stamp {
  font-size: 0.62rem;
  padding: 2px 5px;
  transform: none;
  white-space: normal;
}
.fit-table--page th,
.fit-table--page td {
  font-size: 0.95rem;
  padding: 10px 10px 10px 0;
}
.fit-table--page .stamp {
  font-size: 0.74rem;
  padding: 3px 8px;
  white-space: nowrap;
}
.ticket__cta .fine {
  text-align: center;
}
.tickets__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 8px 0 0;
  grid-column: 1 / -1;
}
.tickets__divider[hidden],
.ticket[hidden] {
  display: none;
}

/* Empty states */
.empty {
  text-align: center;
  background: var(--card);
  border: 2px dashed var(--ink);
  border-radius: 20px;
  padding: 28px 18px;
  margin: 20px 0;
}
.empty h2 {
  margin-top: 8px;
}
.empty p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* Quiz */
.quiz {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 18px 16px 20px;
}
.quiz__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.quiz__goose {
  flex: none;
}
.quiz__say {
  position: relative;
  margin: 0;
  background: var(--sky);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
}
.quiz__say::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  margin-top: -8px;
  border: 8px solid transparent;
  border-left: 0;
  border-right-color: var(--sky);
}
.quiz__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.quiz__progress[hidden] {
  display: none;
}
.quiz__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.quiz__bar span {
  display: block;
  height: 100%;
  width: 16.6%;
  background: var(--orange);
  transition: width 0.25s ease;
}
.quiz__step {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.quiz__q {
  padding: 14px 0 6px;
  border-top: 2px dashed var(--line);
}
.quiz.is-stepped .quiz__q {
  border-top: 0;
}
.quiz__q[hidden] {
  display: none;
}
.quiz__q legend {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  line-height: 1.1;
  padding: 0;
  margin-bottom: 10px;
}
.quiz__q legend:focus {
  outline: none;
}
.quiz__n {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange-deep);
  margin-bottom: 4px;
}
.quiz__help {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.options {
  display: grid;
  gap: 10px;
}
.options--grid {
  grid-template-columns: 1fr 1fr;
}
.option {
  position: relative;
  display: block;
}
.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.option > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  line-height: 1.25;
}
.option small {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.option strong {
  font-family: var(--display);
  font-size: 1.15rem;
}
.option input:checked + span {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--orange);
}
.option input:checked + span small {
  color: #d5dcec;
}
.option input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.option--pic > span {
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px 8px;
}
.option--pic img {
  background: var(--sky);
  border-radius: 10px;
  padding: 4px;
  width: 52px;
  height: 52px;
}
.option--wide {
  grid-column: 1 / -1;
}
.option--wide > span {
  align-items: center;
}
.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.quiz__nav .btn[hidden] {
  display: none;
}
.quiz__nav .js-next,
.quiz__nav .js-submit {
  margin-left: auto;
}

/* Airline pages */
.airline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.airline-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}
.airline-card h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.airline-card__limits {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.airline-card__limits dt {
  font-weight: 700;
  font-size: 0.9rem;
}
.airline-card__limits dd {
  margin: 0;
}
.limit-cards {
  display: grid;
  gap: 14px;
  margin: 8px 0 8px;
}
.limit-card,
.limit-strip {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}
.limit-card h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.limit-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 4px;
}
.limit-card__dims {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.limit-strip {
  display: grid;
  gap: 10px;
  margin: 10px 0 20px;
  background: var(--sky);
}
.limit-strip p {
  margin: 0 0 4px;
}
.prose-list {
  padding-left: 1.2em;
}
.prose-list li {
  margin-bottom: 6px;
}
.rows {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
}
.row > img {
  background: var(--sky);
  border-radius: 12px;
  padding: 4px;
}
.row__name {
  font-size: 1.12rem;
  margin: 0 0 4px;
}
.row__specs {
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.row__body p:last-child {
  margin: 0;
}
.row__cta {
  grid-column: 1 / -1;
}
.grounded-list {
  margin: 18px 0;
}
.grounded-list summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bag-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}
.bag-hero__img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: var(--sky);
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
}
.bag-hero__img img {
  width: 110px;
  height: 110px;
}
.bag-hero__price {
  font-size: 1.3rem;
  font-weight: 600;
}
.bag-hero .btn--buy {
  width: auto;
}
.prose h2 {
  font-size: 1.4rem;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e6eaf3;
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.site-footer a {
  color: #fff;
}
.site-footer__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer__top img {
  background: var(--paper);
  border-radius: 50%;
  padding: 4px;
}
.site-footer__slogan {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}
.site-footer__links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__fine {
  color: #aab3c9;
  font-size: 0.8rem;
  margin: 0;
}
.site-footer :focus-visible {
  outline-color: #fff;
}

/* Wider screens */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .duo,
  .limit-cards,
  .airline-list {
    grid-template-columns: 1fr 1fr;
  }
  .legend li {
    grid-template-columns: 190px 1fr;
    align-items: center;
  }
  .tickets {
    grid-template-columns: 1fr 1fr;
  }
  .filters__selects {
    grid-template-columns: repeat(3, 1fr);
  }
  .bag-hero {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
  .limit-strip {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .row {
    grid-template-columns: 56px 1fr auto;
    align-items: center;
  }
  .row__cta {
    grid-column: auto;
  }
  .row__cta .btn--buy {
    width: auto;
  }
  .quiz {
    padding: 26px 28px 28px;
  }
}
@media (min-width: 860px) {
  .pass {
    display: grid;
    grid-template-columns: 1fr 300px;
  }
  .pass__main {
    padding: 40px 40px 32px;
  }
  .pass__stub {
    border-top: 0;
    border-left: 2px dashed var(--ink);
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }
  .pass__stub::before,
  .pass__stub::after {
    left: -13px;
    right: auto;
  }
  .pass__stub::before {
    top: -14px;
  }
  .pass__stub::after {
    top: auto;
    bottom: -14px;
  }
  .pass__stub img {
    width: 190px;
    height: 190px;
  }
  .barcode {
    flex: none;
    width: 100%;
  }
  .pass__gate {
    position: static;
  }
  .tickets {
    grid-template-columns: repeat(3, 1fr);
  }
  .filters__selects {
    grid-template-columns: repeat(5, 1fr);
  }
  .airline-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .filters,
  .btn {
    display: none !important;
  }
}

/* Anything marked hidden stays hidden, whatever its layout. */
[hidden] {
  display: none !important;
}
.limits th,
.limits td {
  font-size: 0.8rem;
  padding-right: 8px;
}
.limits td .muted {
  font-size: 0.7rem;
}
.limits thead th {
  font-size: 0.62rem;
}
@media (min-width: 640px) {
  .limits th,
  .limits td {
    font-size: 0.95rem;
  }
  .limits td .muted {
    font-size: 0.8rem;
  }
  .limits thead th {
    font-size: 0.72rem;
  }
}
.quiz__nav {
  position: sticky;
  bottom: 0;
  background: var(--card);
  padding: 12px 0 4px;
  border-top: 2px dashed var(--line);
}
.link-btn,
.link-reset {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Review page */
.review-how {
  padding-left: 1.3em;
}
.review-how li {
  margin-bottom: 6px;
}
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.review {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}
.review--flagged {
  border-left: 8px solid var(--orange);
}
.review[data-decided="pass"] {
  background: var(--green-bg);
}
.review[data-decided="fail"] {
  background: var(--red-bg);
}
.review[data-decided="fix"] {
  background: var(--amber-bg);
}
.review h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.review__flags {
  list-style: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--amber-bg);
  color: #5c3800;
  border-radius: 10px;
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}
.review__specs {
  margin: 0;
  display: grid;
  gap: 10px;
}
.review__specs dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.review__specs dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
}
.review__missing {
  font-weight: 700;
  color: var(--red);
}
.srclink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  margin: 4px 6px 0 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.review__links {
  margin: 10px 0 0;
}
.review__btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.rbtn {
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 700 1rem var(--body);
  cursor: pointer;
}
.rbtn--pass[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.rbtn--fail[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}
.rbtn--fix[aria-pressed="true"] {
  background: var(--amber);
  color: #fff;
}
.review__note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 1rem var(--body);
  color: var(--ink);
  background: #fff;
}
.review-out textarea {
  font-family: var(--mono);
  font-size: 0.85rem;
}
.review-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px -16px 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.review-bar__count {
  margin: 0;
  font-weight: 600;
}
.review-out {
  margin-top: 16px;
}
.review-out label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Bag page fit table: compact on phones */
.checked {
  border-radius: 10px;
}
.fit-table--page th,
.fit-table--page td {
  font-size: 0.88rem;
  padding: 10px 8px 10px 0;
}
.fit-table--page .stamp {
  font-size: 0.64rem;
  padding: 3px 6px;
  white-space: normal;
  transform: none;
}
.fit-table--page .fine,
.fit-table--page .fine .mono {
  font-size: 0.7rem;
}
.fit-table--page .fine .muted {
  display: block;
}
@media (min-width: 640px) {
  .fit-table--page th,
  .fit-table--page td {
    font-size: 0.95rem;
  }
  .fit-table--page .stamp {
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .fit-table--page .fine,
  .fit-table--page .fine .mono {
    font-size: 0.82rem;
  }
}
