:root {
  --ink: #173548;
  --ink-deep: #0d2736;
  --ink-soft: #46606d;
  --paper: #f8f2e8;
  --paper-strong: #fffdf8;
  --sand: #e7dccb;
  --line: #d8cbb9;
  --coral: #b94f3c;
  --coral-dark: #a94737;
  --sage: #7c9274;
  --gold: #c59a4b;
  --white: #fff;
  --success: #397760;
  --danger: #9e3e38;
  --shadow-sm: 0 8px 24px rgb(19 42 55 / 8%);
  --shadow-lg: 0 24px 70px rgb(19 42 55 / 16%);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --ease: cubic-bezier(.2, .72, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 12% 16%, rgb(207 98 76 / 8%), transparent 28rem),
    linear-gradient(180deg, #f9f4eb 0%, #f4ecdf 100%);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink-deep);
  font-weight: 800;
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

.site-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
}

.brand,
.site-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand { gap: 11px; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: .98rem; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: var(--coral);
}

.brand-mark::before { width: 7px; height: 7px; top: 8px; left: 7px; }
.brand-mark::after { width: 7px; height: 7px; top: 8px; right: 7px; }
.brand-mark span { width: 15px; height: 7px; left: 8px; bottom: 6px; border-radius: 0 0 12px 12px; }

.site-link {
  gap: 7px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 750;
}

.site-link svg,
.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 67vw, 690px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: var(--radius-lg);
  background: var(--ink-deep);
  box-shadow: var(--shadow-lg);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    radial-gradient(circle at 76% 24%, rgb(197 154 75 / 34%), transparent 27%),
    linear-gradient(135deg, #1b465a 0%, #0d2736 68%, #173548 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(8 28 39 / 90%) 0%, rgb(8 28 39 / 66%) 43%, rgb(8 28 39 / 12%) 73%, rgb(8 28 39 / 3%) 100%),
    linear-gradient(0deg, rgb(8 28 39 / 34%), transparent 44%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(610px, 60%);
  min-height: inherit;
  padding: clamp(44px, 7vw, 88px);
  color: var(--white);
}

.eyebrow,
.section-index {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f0b7a8; }

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.35rem, 5.5vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.hero h1 span { color: #f4d8b6; }

.hero-lede {
  max-width: 48ch;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.hero-meta span {
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  font-size: .76rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 50px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 15px;
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgb(101 35 26 / 22%);
  text-decoration: none;
}

.primary-button:hover { background: #a94334; transform: translateY(-2px); box-shadow: 0 16px 32px rgb(101 35 26 / 28%); }
.primary-button:active,
.secondary-button:active,
.text-button:active { transform: translateY(1px); }

button:disabled,
input:disabled { opacity: .58; cursor: not-allowed; }

.secondary-button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--ink);
}

.secondary-button:hover { border-color: var(--ink); }

.text-button {
  padding: 10px 14px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.danger-button { color: var(--danger); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 3px solid #f0ac43;
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

.hero-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 23px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .19em;
}

.planner-section,
.result-section {
  margin-top: 32px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgb(216 203 185 / 78%);
  border-radius: var(--radius-lg);
  background: rgb(255 253 248 / 94%);
  box-shadow: var(--shadow-sm);
}

.section-heading { max-width: 680px; margin-bottom: 42px; }
.section-heading h2,
.result-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.section-heading > p:last-child,
.result-heading > p:last-child { margin: 12px 0 0; color: var(--ink-soft); }

.planner-form { display: grid; gap: 34px; }

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.choice-group legend {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 18px;
  color: var(--ink-deep);
  font-size: 1.08rem;
  font-weight: 850;
}

.choice-group legend span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .76rem;
}

.choice-grid { display: grid; gap: 12px; }
.choice-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice-card,
.text-choices label,
.compact-choices label {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.choice-card {
  display: grid;
  min-height: 164px;
  padding: 17px;
  border-radius: 18px;
}

.choice-card:hover,
.text-choices label:hover,
.compact-choices label:hover { border-color: #a68e73; transform: translateY(-2px); box-shadow: 0 10px 22px rgb(30 52 63 / 8%); }

.choice-card:has(input:checked),
.text-choices label:has(input:checked),
.compact-choices label:has(input:checked) {
  border-color: var(--ink);
  background: #eef3ef;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-card input,
.text-choices input,
.compact-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card::after,
.text-choices label::after,
.compact-choices label::after {
  position: absolute;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--white);
  content: "";
  transition: background 180ms ease, border-color 180ms ease;
}

.choice-card::after { top: 14px; right: 14px; }
.text-choices label::after,
.compact-choices label::after { top: 50%; right: 14px; transform: translateY(-50%); }

.choice-card:has(input:checked)::after,
.text-choices label:has(input:checked)::after,
.compact-choices label:has(input:checked)::after {
  border: 5px solid var(--white);
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}

.choice-visual {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand);
}

.choice-visual::before,
.choice-visual::after { position: absolute; content: ""; }
.season-spring { background: #f6ddd8; }
.season-spring::before { width: 27px; height: 27px; top: 16px; left: 17px; border-radius: 50% 0 50% 50%; background: #dc7f83; transform: rotate(-32deg); box-shadow: 13px 10px 0 -4px #efaaa8; }
.season-summer { background: #e7d89d; }
.season-summer::before { width: 27px; height: 27px; top: 17px; left: 17px; border-radius: 50%; background: #d49b31; box-shadow: 0 0 0 8px rgb(255 255 255 / 35%); }
.season-autumn { background: #e7c9ac; }
.season-autumn::before { width: 27px; height: 34px; top: 13px; left: 18px; border-radius: 70% 10% 70% 10%; background: #b95d40; transform: rotate(30deg); }
.season-autumn::after { width: 2px; height: 34px; top: 18px; left: 31px; background: #87503d; transform: rotate(30deg); }
.season-winter { background: #dbe8ec; }
.season-winter::before { width: 32px; height: 2px; top: 30px; left: 15px; background: #507484; box-shadow: 0 0 0 0 #507484; }
.season-winter::after { width: 2px; height: 32px; top: 15px; left: 30px; background: #507484; transform: rotate(45deg); box-shadow: 0 0 0 0 #507484; }

.choice-card strong { align-self: end; color: var(--ink-deep); }
.choice-card small { color: var(--ink-soft); font-size: .78rem; }

.text-choices label {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 15px 46px 15px 17px;
  border-radius: 16px;
}

.text-choices label > span { display: grid; }
.text-choices strong { color: var(--ink-deep); }
.text-choices small { margin-top: 3px; color: var(--ink-soft); font-size: .75rem; line-height: 1.4; }

.compact-group { padding-bottom: 28px; }
.compact-choices label {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 11px 44px 11px 16px;
  border-radius: 14px;
  font-weight: 750;
}

.planner-submit { display: grid; justify-items: start; gap: 12px; }
.planner-submit .primary-button { min-width: min(100%, 320px); }
.planner-submit p { margin: 0; color: var(--ink-soft); font-size: .78rem; }

.result-section { background: #fdfbf6; }
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.result-profile { margin: 0 0 8px; color: var(--coral-dark); font-size: .82rem; font-weight: 800; }
.progress-card { display: flex; align-items: center; gap: 18px; min-width: 290px; }
.progress-card > div:last-child { display: grid; gap: 3px; }
.progress-card > div:last-child > strong { color: var(--ink-deep); font-size: 1.05rem; }
.progress-card > div:last-child > span { color: var(--ink-soft); font-size: .78rem; }

.progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--progress) * 1%), #e7ded0 0);
}

.progress-ring::before { position: absolute; inset: 8px; border-radius: inherit; background: var(--paper-strong); content: ""; }
.progress-ring span { position: relative; display: grid; text-align: center; line-height: 1.2; }
.progress-ring strong { color: var(--ink-deep); font-size: 1.25rem; }
.progress-ring small { color: var(--ink-soft); font-size: .66rem; }

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
}

.filter-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.filter-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.filter-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.must-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.must-toggle input { width: 20px; height: 20px; accent-color: var(--coral); }

.checklist-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; align-items: start; }
.checklist-main { display: grid; gap: 18px; min-width: 0; }

.checklist-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
}

.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #f5eee3; }
.category-heading h3 { margin: 0; color: var(--ink-deep); font-size: 1rem; }
.category-heading span { color: var(--ink-soft); font-size: .72rem; font-weight: 750; }
.checklist-items { display: grid; }

.check-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  min-height: 78px;
  padding: 15px 18px;
  border-bottom: 1px solid #e8dfd2;
  cursor: pointer;
  transition: background 160ms ease;
}

.check-item:last-child { border-bottom: 0; }
.check-item:hover { background: #fbf7f0; }
.check-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--success); }
.item-copy { display: grid; min-width: 0; }
.item-copy strong { color: var(--ink-deep); line-height: 1.45; }
.item-copy small { margin-top: 3px; color: var(--ink-soft); font-size: .73rem; line-height: 1.48; }
.item-quantity { margin-top: 1px; padding: 4px 8px; border-radius: 999px; background: #ecf0ea; color: #476454; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.item-priority { color: var(--coral-dark); font-size: .65rem; font-weight: 850; }
.check-item:has(input:checked) { background: #f0f5f1; }
.check-item:has(input:checked) .item-copy strong { color: #688074; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.check-item:has(input:checked) .item-copy small { color: #8a9a92; }

.empty-filter { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--ink-soft); text-align: center; }

.trip-notes {
  position: sticky;
  top: 18px;
  padding: 23px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.trip-notes .section-index { color: #efb6a7; }
.trip-notes h3 { margin: 0; font-size: 1.2rem; }
.trip-notes ul { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.trip-notes li { position: relative; padding-left: 17px; color: rgb(255 255 255 / 82%); font-size: .78rem; }
.trip-notes li::before { position: absolute; top: .66em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #efb6a7; content: ""; }
.weight-note { margin-top: 22px; padding-top: 19px; border-top: 1px solid rgb(255 255 255 / 18%); }
.weight-note strong { color: #f4d8b6; font-size: .82rem; }
.weight-note p { margin: 6px 0 0; color: rgb(255 255 255 / 73%); font-size: .72rem; }

.custom-section {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.2fr);
  gap: 26px 34px;
  margin-top: 28px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f5eee3;
}

.custom-section h3 { margin: 0; color: var(--ink-deep); }
.custom-section > div > p:last-child { margin: 6px 0 0; color: var(--ink-soft); font-size: .76rem; }
.custom-section > div > p:last-child strong { display: block; margin-top: 7px; color: var(--ink-deep); }
.custom-form label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.custom-form > div { display: flex; gap: 8px; }
.custom-form input { min-width: 0; flex: 1; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-strong); color: var(--ink-deep); }
.custom-form button { flex: 0 0 auto; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white); cursor: pointer; font-weight: 800; }
.custom-list { grid-column: 1 / -1; display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.custom-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-radius: 11px; background: var(--paper-strong); font-size: .8rem; }
.custom-list button { min-width: 44px; min-height: 38px; border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: .72rem; font-weight: 800; }

.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.result-actions .primary-button { min-width: 210px; }
.action-status { flex: 1 0 100%; min-height: 1.5em; margin: 2px 0 0; color: var(--success); font-size: .78rem; font-weight: 750; }

.method-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 24px 0 42px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 15px 15px 0;
  background: rgb(255 253 248 / 82%);
  color: var(--ink-soft);
  font-size: .78rem;
}

.method-note strong { color: var(--ink-deep); white-space: nowrap; }
.method-note p { margin: 0; }

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .75rem;
}

.app-footer > span { color: var(--ink-deep); font-weight: 850; }
.app-footer nav { display: flex; gap: 18px; }
.app-footer a { text-underline-offset: 3px; }
.noscript-note { margin: 20px; padding: 16px; border: 1px solid var(--coral); background: #fff3ee; color: var(--ink); }

@media (max-width: 900px) {
  .hero { min-height: 650px; }
  .hero-copy { width: 72%; padding: 52px; }
  .choice-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist-layout { grid-template-columns: 1fr; }
  .trip-notes { position: static; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 10px; }
  .site-bar { width: min(100% - 24px, 1180px); min-height: 64px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand small { display: none; }
  .site-link { font-size: .73rem; }
  .site-link svg { width: 17px; }
  .app-shell { width: min(100% - 20px, 1180px); }
  .hero { min-height: 590px; border-radius: 25px; }
  .hero-media img { object-position: 60% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgb(8 28 39 / 96%) 0%, rgb(8 28 39 / 81%) 45%, rgb(8 28 39 / 18%) 77%, transparent 100%); }
  .hero-copy { justify-content: flex-end; width: 100%; padding: 32px 24px 47px; }
  .hero h1 { max-width: 11ch; font-size: clamp(2.35rem, 11vw, 3.55rem); }
  .hero-lede { margin-top: 17px; font-size: .94rem; }
  .hero-meta { margin: 17px 0 20px; }
  .hero-meta span { padding: 5px 9px; font-size: .67rem; }
  .hero-button { width: 100%; }
  .hero-caption { right: 18px; bottom: 14px; font-size: .57rem; }
  .planner-section,
  .result-section { margin-top: 18px; padding: 27px 18px; border-radius: 25px; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2,
  .result-heading h2 { font-size: 2rem; }
  .planner-form { gap: 27px; }
  .choice-group { padding-bottom: 27px; }
  .choice-grid { gap: 9px; }
  .choice-card { min-height: 145px; padding: 14px; }
  .choice-visual { width: 53px; height: 53px; }
  .text-choices label { min-height: 82px; padding-left: 14px; }
  .text-choices small { font-size: .69rem; }
  .compact-choices label { min-height: 54px; padding-left: 13px; font-size: .8rem; }
  .planner-submit .primary-button { width: 100%; }
  .result-hero { grid-template-columns: 1fr; gap: 23px; }
  .progress-card { min-width: 0; }
  .progress-ring { flex-basis: 94px; width: 94px; height: 94px; }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-tabs { width: calc(100% + 18px); margin-right: -18px; }
  .check-item { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .item-quantity { grid-column: 2; justify-self: start; }
  .category-heading { padding: 16px; }
  .trip-notes { padding: 20px; }
  .custom-section { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .custom-list { grid-column: 1; }
  .custom-form > div { align-items: stretch; flex-direction: column; }
  .custom-form button { width: 100%; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions button { width: 100%; }
  .method-note { grid-template-columns: 1fr; gap: 5px; margin-bottom: 28px; padding: 16px; }
  .method-note strong { white-space: normal; }
  .app-footer { width: min(100% - 24px, 1180px); min-height: 82px; }
}

@media (max-width: 350px) {
  .site-link { max-width: 118px; line-height: 1.3; text-align: right; }
  .hero { min-height: 610px; }
  .hero-copy { padding-inline: 19px; }
  .hero-meta { gap: 5px; }
  .hero-meta span { font-size: .62rem; }
  .planner-section,
  .result-section { padding-inline: 14px; }
  .choice-card strong { font-size: .86rem; }
  .choice-card small { font-size: .69rem; }
  .compact-choices label { font-size: .74rem; }
}

@media (max-width: 350px) and (max-height: 650px) {
  .hero { min-height: calc(100dvh - 74px); }
  .hero-copy { padding: 18px 17px 25px; }
  .hero .eyebrow { margin-bottom: 5px; font-size: .64rem; }
  .hero h1 { font-size: 2rem; line-height: 1.01; }
  .hero-lede { margin-top: 10px; font-size: .78rem; line-height: 1.48; }
  .hero-meta { gap: 4px; margin: 10px 0 12px; }
  .hero-meta span { padding: 4px 7px; font-size: .56rem; }
  .hero-button { min-height: 46px; padding-block: 10px; }
  .hero-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  :root { --line: #776a5c; --ink-soft: #29414d; }
  .choice-card,
  .text-choices label,
  .compact-choices label,
  .checklist-category { border-width: 2px; }
}

@page { margin: 12mm; }

@media print {
  body { background: #fff; color: #111; }
  .site-bar,
  .hero,
  .planner-section,
  .result-toolbar,
  .custom-section,
  .result-actions,
  .method-note,
  .app-footer { display: none !important; }
  .app-shell { width: 100%; }
  .result-section { margin: 0; padding: 0; border: 0; box-shadow: none; }
  .result-hero { grid-template-columns: 1fr auto; }
  .checklist-layout,
  .checklist-main,
  .checklist-items { display: block; }
  .trip-notes { position: static; page-break-before: always; break-before: page; break-inside: avoid; background: #eee; color: #111; box-shadow: none; }
  .trip-notes .section-index,
  .trip-notes li,
  .weight-note p { color: #222; }
  .checklist-category { overflow: visible; margin-bottom: 18px; page-break-inside: auto; break-inside: auto; }
  .checklist-category:not(:last-child) { page-break-after: always; break-after: page; }
  .category-heading { break-after: avoid-page; }
  .check-item { min-height: 0; padding-block: 9px; break-inside: avoid; }
  .check-item input { appearance: none; width: 18px; height: 18px; border: 1px solid #333; border-radius: 3px; }
  .check-item input:checked::after { display: block; padding-left: 3px; content: "✓"; font-size: 13px; }
}
