:root {
  --paper: #f5f0e7;
  --paper-deep: #ebe3d6;
  --card: #fffdf8;
  --ink: #1f2420;
  --muted: #676961;
  --line: #d8d0c2;
  --line-dark: #aca394;
  --red: #9d2d26;
  --red-dark: #76221d;
  --green: #435c49;
  --gold: #92743d;
  --blue: #355c72;
  --radius: 2px;
  --serif: "Iowan Old Style", "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-120%);
}

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

:focus-visible {
  outline: 3px solid #d6a333;
  outline-offset: 3px;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  background: var(--red);
  color: white;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.wordmark small {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.trip-chip {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.trip-chip span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 0.8rem;
  background: var(--line-dark);
  vertical-align: -2px;
}

.hero {
  width: min(1440px, calc(100% - 48px));
  min-height: 580px;
  margin: 0 auto;
  padding: 88px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  align-items: end;
  gap: 8vw;
  border-bottom: 1px solid var(--line-dark);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero h1,
.section-heading h2,
.method h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.052em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  line-height: 0.99;
}

.hero h1 span {
  display: block;
  word-break: keep-all;
}

.hero-lede {
  max-width: 730px;
  margin: 2rem 0 0;
  color: #4f514c;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.primary-link,
.text-link,
.source-link {
  text-decoration: none;
}

.primary-link {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.primary-link:hover {
  background: var(--red-dark);
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.snapshot {
  padding: 1.5rem 0 0;
  border-top: 3px solid var(--red);
}

.snapshot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.snapshot dl {
  margin: 1rem 0;
}

.snapshot dl div {
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.snapshot dt {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
}

.snapshot dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.snapshot > p:last-child {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.explorer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2,
.method h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  line-height: 1.05;
  word-break: keep-all;
}

.section-heading > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 0.88rem;
}

.section-heading > p strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

#result-summary {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.quick-filters {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.preset-button {
  min-height: 54px;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-button:hover,
.preset-button.is-active {
  background: var(--ink);
  color: white;
}

.explorer-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 2.2rem;
}

.filters {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line-dark);
  background: var(--paper-deep);
}

.filters-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.filters-heading .eyebrow {
  margin-bottom: 0.15rem;
}

.filters-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.reset-button,
.gallery-close {
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.field {
  display: block;
  margin-top: 1.05rem;
}

.field > span,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  color: #50534d;
  font-size: 0.72rem;
  font-weight: 800;
}

.field input[type="search"],
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 0.82rem;
}

.field input[type="search"]::placeholder {
  color: #99948b;
}

.provider-fieldset {
  padding: 0;
  border: 0;
}

.provider-fieldset label,
.check-fields label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #494c47;
  font-size: 0.77rem;
  cursor: pointer;
}

.provider-fieldset label + label,
.check-fields label + label {
  margin-top: 0.45rem;
}

.provider-fieldset b {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--red);
}

.range-field span {
  display: flex;
  justify-content: space-between;
}

.range-field input {
  width: 100%;
  accent-color: var(--red);
}

.range-field output {
  color: var(--red);
}

.check-fields {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.result-toolbar {
  min-height: 52px;
  padding: 0 0 0.85rem;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line-dark);
}

.result-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.result-toolbar span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.result-toolbar select {
  min-height: 36px;
  padding: 0.35rem 1.8rem 0.35rem 0.5rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--card);
  font-size: 0.78rem;
}

.active-filters {
  min-height: 42px;
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.active-filters span,
.flags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.active-filters span {
  min-height: 26px;
  padding: 0.18rem 0.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.stay-card {
  min-width: 0;
  border: 1px solid var(--line-dark);
  background: var(--card);
}

.photo-button,
.photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: #d9d2c6;
}

.photo-button {
  padding: 0;
  cursor: zoom-in;
}

.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.photo-button:hover img {
  transform: scale(1.025);
}

.photo-button > span {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(22, 24, 21, 0.86);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
}

.photo-placeholder {
  display: grid;
  place-content: center;
  color: #817a70;
  text-align: center;
}

.photo-placeholder span {
  font-family: var(--serif);
  font-size: 2.3rem;
}

.photo-placeholder small {
  font-size: 0.67rem;
}

.card-body {
  padding: 1rem;
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-kicker span:last-child {
  margin-left: auto;
  color: #8a857d;
}

.provider-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--ink);
  color: white;
  font-family: var(--serif);
  font-size: 0.72rem;
}

.stay-card[data-provider="airbnb"] .provider-mark {
  background: var(--red);
}

.stay-card[data-provider="booking"] .provider-mark {
  background: var(--blue);
}

.stay-card[data-provider="agoda"] .provider-mark {
  background: #7f2830;
}

.stay-card[data-provider="hotels"] .provider-mark {
  background: var(--green);
}

.card-title-row {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.card-title-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.card-title-row p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.score {
  display: flex;
  align-items: baseline;
  color: var(--red);
  white-space: nowrap;
}

.score strong {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.score span {
  color: var(--muted);
  font-size: 0.56rem;
}

.score-track {
  height: 3px;
  margin-top: 0.75rem;
  background: var(--paper-deep);
}

.score-track span {
  display: block;
  height: 100%;
  background: var(--red);
}

.facts {
  margin: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.facts div {
  min-width: 0;
  min-height: 88px;
  padding: 0.62rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
}

.facts dd {
  margin: 0.22rem 0 0;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1.35;
}

.facts small {
  display: block;
  margin-top: 0.3rem;
  color: #86827b;
  font-size: 0.57rem;
  line-height: 1.35;
}

.sleep-row {
  padding: 0.7rem 0;
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: #555851;
  font-size: 0.68rem;
  font-weight: 700;
}

.sleep-row span + span::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--line-dark);
}

.flags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flags span {
  min-height: 23px;
  padding: 0.15rem 0.42rem;
  font-size: 0.58rem;
}

.card-note {
  min-height: 3.3em;
  margin: 0.75rem 0 0;
  color: #65675f;
  font-size: 0.69rem;
  line-height: 1.65;
}

.source-link {
  margin-top: 0.85rem;
  min-height: 39px;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-link:hover {
  color: var(--red);
}

.provider-group + .provider-group {
  margin-top: 3.2rem;
}

.provider-group-heading {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.provider-group-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.provider-group-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.empty-state {
  padding: 5rem 1rem;
  border: 1px solid var(--line-dark);
  background: var(--card);
  text-align: center;
}

.empty-state > span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 3rem;
}

.empty-state h3 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state .primary-link {
  margin-top: 0.5rem;
}

.method {
  padding: 100px max(24px, calc((100vw - 1440px) / 2)) 110px;
  background: #262b27;
  color: #f4efe7;
}

.method > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: end;
  gap: 3rem;
}

.method .eyebrow {
  color: #d9a29d;
}

.method-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #686e68;
  border-left: 1px solid #686e68;
}

.method-grid article {
  min-height: 245px;
  padding: 1.3rem;
  border-right: 1px solid #686e68;
  border-bottom: 1px solid #686e68;
}

.method-grid article > span {
  color: #c4bdb2;
  font-family: var(--serif);
  font-size: 0.8rem;
}

.method-grid h3 {
  margin: 3rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.method-grid p {
  margin: 0;
  color: #c7cbc6;
  font-size: 0.76rem;
  line-height: 1.75;
}

.evidence-note {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  border-top: 1px solid #686e68;
  color: #c7cbc6;
  font-size: 0.73rem;
}

.evidence-note strong {
  color: #fff;
}

.evidence-note span {
  color: #d9a29d;
}

.evidence-note p {
  margin: 0;
  text-align: right;
}

footer {
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171a18;
  color: #aeb2ad;
  font-size: 0.68rem;
}

footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.gallery-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #504b45;
  border-radius: 0;
  background: #171a18;
  color: white;
}

.gallery-dialog::backdrop {
  background: rgba(14, 16, 14, 0.84);
}

.gallery-shell {
  padding: 1.25rem;
}

.gallery-head {
  min-height: 62px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-head .eyebrow {
  margin-bottom: 0.2rem;
  color: #d9a29d;
}

.gallery-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 500;
}

.gallery-close {
  color: white;
}

.gallery-stage {
  position: relative;
  height: min(65dvh, 680px);
  display: grid;
  place-items: center;
  background: #090b09;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  background: rgba(16, 18, 16, 0.86);
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

#gallery-counter {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.25rem 0.45rem;
  background: rgba(16, 18, 16, 0.82);
  font-size: 0.7rem;
}

.gallery-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: 0 0 88px;
  height: 60px;
  padding: 0;
  border: 1px solid #5f655f;
  border-radius: 0;
  background: #090b09;
  cursor: pointer;
  opacity: 0.55;
}

.gallery-thumbs button.is-active {
  border-color: white;
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  margin: 0.8rem 0 0;
  color: #aeb2ad;
  font-size: 0.68rem;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .explorer {
    width: min(100% - 30px, 1440px);
  }

  .site-header {
    min-height: 72px;
  }

  .trip-chip span:first-child {
    display: none;
  }

  .trip-chip span + span::before {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 60px;
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 5.2rem);
  }

  .snapshot {
    max-width: none;
  }

  .explorer {
    padding: 70px 0 84px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    max-width: none;
    margin-top: 1.2rem;
    text-align: left;
  }

  .quick-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-filters .preset-button:first-child {
    grid-column: 1 / -1;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .provider-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
  }

  .provider-fieldset legend {
    grid-column: 1 / -1;
  }

  .provider-fieldset label + label {
    margin-top: 0;
  }

  .method {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .method > div:first-child {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .evidence-note {
    grid-template-columns: 1fr auto;
  }

  .evidence-note p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .site-header,
  .hero,
  .explorer {
    width: calc(100% - 24px);
  }

  .wordmark-mark {
    width: 38px;
    height: 38px;
  }

  .wordmark strong {
    font-size: 0.9rem;
  }

  .wordmark small {
    font-size: 0.5rem;
  }

  .trip-chip {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .hero-lede {
    line-height: 1.7;
  }

  .hero-actions {
    align-items: start;
    flex-direction: column;
  }

  .section-heading h2,
  .method h2 {
    font-size: 2.45rem;
  }

  .result-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }

  .result-toolbar label {
    justify-content: space-between;
  }

  .result-toolbar select {
    min-width: 190px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    min-height: 76px;
  }

  .card-title-row h3 {
    font-size: 1.22rem;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: 210px;
  }

  footer {
    padding: 1rem 20px;
  }

  .gallery-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
  }

  .gallery-shell {
    padding: 0.8rem;
  }

  .gallery-stage {
    height: 62dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Shared top-level tabs: lodging and things to do are separate workspaces. */
.page-tabs {
  align-self: stretch;
  display: flex;
  margin-left: auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.page-tab {
  position: relative;
  display: grid;
  min-width: 112px;
  padding: 0 1rem;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.page-tab + .page-tab {
  border-left: 1px solid var(--line);
}

.page-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.26);
}

.page-tab[aria-current="page"] {
  color: white;
  background: var(--ink);
}

.site-header > .trip-chip {
  margin-left: 1.25rem;
}

@media (max-width: 820px) {
  .page-tab {
    min-width: 94px;
    padding: 0 0.7rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 620px) {
  .site-header > .trip-chip {
    display: none;
  }

  .page-tabs {
    margin-left: auto;
  }
}

@media (max-width: 430px) {
  .wordmark small {
    display: none;
  }

  .page-tab {
    min-width: 62px;
    padding: 0 0.32rem;
    font-size: 0.62rem;
  }
}

/* Decision edition */
.hero {
  width: 100%;
  min-height: 760px;
  margin: 0;
  padding: 72px max(24px, calc((100vw - 1440px) / 2)) 80px;
  grid-template-columns: minmax(390px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 5vw, 92px);
  border: 0;
  background: #1d211e;
  color: #f5f0e7;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: hero-reveal 700ms both;
}

.hero .eyebrow {
  margin-bottom: 0.7rem;
  color: #e3aaa3;
}

.hero-index {
  margin: 0 0 1.7rem;
  color: #939c94;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.4rem, 6.3vw, 7.35rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.hero h1 span + span {
  margin-top: 0.12em;
  color: #d8b071;
}

.hero-lede {
  max-width: 650px;
  margin-top: 2.4rem;
  color: #c4cac4;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.85;
}

.hero .primary-link {
  border-color: #f5f0e7;
  background: #f5f0e7;
  color: #1d211e;
}

.hero .primary-link:hover {
  border-color: #d8b071;
  background: #d8b071;
}

.hero .text-link {
  color: #c4cac4;
}

.hero-gallery {
  height: min(610px, 68vw);
  max-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(190px, 0.72fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 104px;
  gap: 1px;
  border: 1px solid #6f766f;
  background: #6f766f;
  animation: gallery-reveal 800ms 120ms both;
}

.hero-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #343a35;
  cursor: zoom-in;
}

.hero-photo-main {
  grid-row: 1 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.hero-photo-main img {
  object-position: center 58%;
}

.hero-photo:hover img,
.hero-photo:focus-visible img {
  transform: scale(1.045);
}

.hero-photo > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 21, 18, 0.86);
  color: #f5f0e7;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-photo > span b {
  color: #d8b071;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #efe6d8;
  color: #1d211e;
}

.hero-metrics > div {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-metrics > div + div {
  border-left: 1px solid #bcb2a4;
}

.hero-metrics strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.hero-metrics span {
  color: #60635d;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: right;
}

.decision-stage {
  margin-top: 1.5rem;
  padding: clamp(18px, 2.2vw, 34px);
  background: #202521;
  color: #f7f2e9;
}

.decision-stage-head {
  min-height: 92px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.decision-stage-head .eyebrow,
.live-ranking .eyebrow {
  margin-bottom: 0.35rem;
  color: #dba19b;
}

.decision-stage-head h3,
.live-ranking-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.decision-stage-head > p {
  margin: 0.2rem 0 0;
  color: #aeb6af;
  font-size: 0.7rem;
  white-space: nowrap;
}

.decision-stage-head > p strong {
  color: #d8b071;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.decision-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(290px, 0.82fr);
  border-top: 1px solid #606861;
  border-bottom: 1px solid #606861;
}

.plot-panel {
  min-width: 0;
  padding: 1rem 1.2rem 1rem 0;
}

.plot-copy {
  display: flex;
  justify-content: space-between;
  color: #929b94;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.plot-wrap {
  position: relative;
  margin-top: 0.25rem;
  overflow-x: auto;
  background: #151a16;
  scrollbar-color: #6e766f #151a16;
}

#decision-plot {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.ideal-zone {
  fill: rgba(157, 45, 38, 0.19);
  stroke: #9d4e47;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.ideal-label {
  fill: #e9aaa3;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plot-grid {
  stroke: #3a413b;
  stroke-width: 1;
}

.plot-axis {
  stroke: #7a847c;
  stroke-width: 1;
}

.plot-axis-label,
.plot-empty {
  fill: #aeb6af;
  font-family: var(--sans);
  font-size: 11px;
}

.plot-point {
  fill: #ddd4c7;
  stroke: #151a16;
  stroke-width: 2;
  opacity: 0.9;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease, stroke-width 160ms ease;
}

.plot-point.provider-airbnb {
  fill: #e26057;
}

.plot-point.provider-booking {
  fill: #5691bb;
}

.plot-point.provider-agoda {
  fill: #bd6c91;
}

.plot-point.provider-hotels {
  fill: #7fa187;
}

.plot-point:hover,
.plot-point:focus,
.plot-point.is-selected {
  opacity: 1;
  stroke: #fff4de;
  stroke-width: 4;
  transform: scale(1.22);
}

.plot-tooltip {
  position: absolute;
  z-index: 4;
  width: 220px;
  padding: 0.7rem 0.78rem;
  border: 1px solid #9ba29b;
  background: #f5f0e7;
  color: #1d211e;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.plot-tooltip strong,
.plot-tooltip span,
.plot-tooltip small {
  display: block;
}

.plot-tooltip strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.25;
}

.plot-tooltip span {
  margin-top: 0.35rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
}

.plot-tooltip small {
  margin-top: 0.2rem;
  color: #62665f;
  font-size: 0.6rem;
}

.plot-legend {
  padding-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  color: #b4bbb5;
  font-size: 0.62rem;
}

.plot-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  display: inline-block;
  background: #ddd4c7;
}

.plot-legend span[data-provider="airbnb"]::before {
  background: #e26057;
}

.plot-legend span[data-provider="booking"]::before {
  background: #5691bb;
}

.plot-legend span[data-provider="agoda"]::before {
  background: #bd6c91;
}

.plot-legend span[data-provider="hotels"]::before {
  background: #7fa187;
}

.plot-legend em {
  margin-left: auto;
  color: #7f8881;
  font-style: normal;
}

.live-ranking {
  min-width: 0;
  padding: 1rem 0 1rem 1.2rem;
  border-left: 1px solid #606861;
}

.live-ranking-head {
  min-height: 70px;
}

.live-ranking-head h3 {
  font-size: 1.75rem;
}

.ranking-first {
  border: 1px solid #707870;
  background: #151a16;
}

.ranking-photo {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #707870;
  background: #2b302c;
  cursor: zoom-in;
}

.ranking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.ranking-photo:hover img {
  transform: scale(1.035);
}

.ranking-first-body {
  padding: 0.9rem;
}

.ranking-order {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #d8b071;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ranking-order strong {
  color: #f2b0a9;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.ranking-first h4 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.22;
}

.ranking-price {
  margin: 0.35rem 0 0;
  color: #b5bdb6;
  font-size: 0.66rem;
}

.ranking-reason-title {
  margin: 0.75rem 0 0.35rem;
  color: #d8b071;
  font-size: 0.62rem;
  font-weight: 800;
}

.ranking-first ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid #4c534d;
  border-left: 1px solid #4c534d;
}

.ranking-first li {
  min-height: 42px;
  padding: 0.45rem;
  display: grid;
  place-items: center;
  border-right: 1px solid #4c534d;
  border-bottom: 1px solid #4c534d;
  color: #d7ddd8;
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
}

.ranking-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ranking-actions button,
.ranking-add,
.ranking-name {
  border-radius: 0;
  cursor: pointer;
}

.ranking-actions button {
  min-height: 38px;
  border: 1px solid #7a837b;
  background: transparent;
  color: #f5f0e7;
  font-size: 0.65rem;
  font-weight: 800;
}

.ranking-actions button + button {
  border-left: 0;
  background: #f5f0e7;
  color: #1d211e;
}

.ranking-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #545c55;
}

.ranking-number {
  color: #7f8881;
  font-family: var(--serif);
  font-size: 0.85rem;
}

.ranking-name {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f0e7;
  text-align: left;
}

.ranking-name strong,
.ranking-name small {
  display: block;
}

.ranking-name strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-name small {
  margin-top: 0.12rem;
  color: #949d96;
  font-size: 0.56rem;
}

.ranking-score {
  color: #dba19b;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.ranking-add {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #707870;
  background: transparent;
  color: #f5f0e7;
}

.ranking-add.is-selected {
  background: #d8b071;
  color: #1d211e;
}

.ranking-empty {
  padding: 2rem 0;
  color: #aeb6af;
}

.ranking-empty p {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
}

.stay-card {
  transition: border-color 180ms ease, background-color 180ms ease;
}

.stay-card.is-compared {
  border-color: var(--red);
}

.stay-card.is-focus {
  border-color: var(--red);
  background: #fff5e6;
}

.card-actions {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
}

.compare-button {
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.compare-button:hover,
.compare-button.is-selected {
  background: var(--ink);
  color: white;
}

.card-actions .source-link {
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink);
  border-left: 0;
  font-size: 0.66rem;
}

.comparison-dock {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  padding: 0.7rem;
  display: grid;
  grid-template-columns: 82px minmax(420px, 1fr) 165px auto auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #777f78;
  background: #171b18;
  color: #f5f0e7;
  animation: dock-rise 240ms both;
}

.comparison-dock[hidden] {
  display: none;
}

.comparison-dock-title span,
.comparison-dock-title strong {
  display: block;
}

.comparison-dock-title span {
  color: #d8b071;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.comparison-dock-title strong {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.comparison-slots {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #616961;
}

.comparison-slot {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 0.4rem 1.8rem 0.4rem 0.4rem;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  background: #252a26;
}

.comparison-slot > img,
.slot-placeholder {
  width: 48px;
  height: 46px;
  object-fit: cover;
}

.slot-placeholder {
  display: grid;
  place-items: center;
  background: #3c443d;
  color: #d8b071;
  font-family: var(--serif);
}

.comparison-slot > span:not(.slot-placeholder) {
  min-width: 0;
}

.comparison-slot strong,
.comparison-slot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-slot strong {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 500;
}

.comparison-slot small {
  margin-top: 0.12rem;
  color: #adb4ae;
  font-size: 0.57rem;
}

.comparison-slot > button {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 24px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb6af;
  cursor: pointer;
  transform: translateY(-50%);
}

.comparison-slot.is-empty {
  padding: 0.5rem;
  grid-template-columns: 24px minmax(0, 1fr);
  border: 1px dashed #555e56;
  color: #687169;
}

.comparison-slot.is-empty > span {
  font-family: var(--serif);
  font-size: 1rem;
}

.comparison-slot.is-empty small {
  color: #7d867f;
}

.comparison-status {
  margin: 0;
  color: #aeb6af;
  font-size: 0.6rem;
  line-height: 1.45;
}

.dock-clear,
.dock-open {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border-radius: 0;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.dock-clear {
  border: 1px solid #707970;
  background: transparent;
  color: #d3d9d4;
}

.dock-open {
  border: 1px solid #f5f0e7;
  background: #f5f0e7;
  color: #171b18;
}

.dock-open:disabled {
  border-color: #535b54;
  background: #303631;
  color: #777f78;
  cursor: not-allowed;
}

body.has-comparison {
  padding-bottom: 116px;
}

.comparison-dialog {
  width: min(1240px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #5b5f59;
  border-radius: 0;
  background: #f5f0e7;
  color: var(--ink);
}

.comparison-dialog::backdrop {
  background: rgba(14, 16, 14, 0.86);
}

.comparison-shell {
  padding: clamp(16px, 2.5vw, 34px);
}

.comparison-head {
  min-height: 92px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.comparison-head .eyebrow {
  margin-bottom: 0.25rem;
}

.comparison-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.comparison-dialog .gallery-close {
  border-color: var(--ink);
  color: var(--ink);
}

.comparison-content {
  max-height: calc(100dvh - 180px);
  overflow: auto;
  border-top: 2px solid var(--ink);
}

.compare-table {
  width: 100%;
  min-width: calc(170px + var(--compare-count) * 260px);
  border-spacing: 0;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
}

.compare-table tr > :first-child {
  width: 150px;
  border-left: 1px solid var(--line-dark);
}

.compare-table thead > tr > th:first-child {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: left;
}

.compare-table thead th:not(:first-child) {
  padding: 0.8rem;
  text-align: left;
}

.compare-head-photo {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.compare-head-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-provider {
  margin-top: 0.65rem;
  display: block;
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.compare-table thead strong,
.compare-table thead a {
  display: block;
}

.compare-table thead strong {
  min-height: 2.4em;
  margin-top: 0.22rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.compare-table thead a {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.6rem;
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 0.85rem 1rem;
}

.compare-table tbody th {
  color: var(--muted);
  font-size: 0.65rem;
  text-align: left;
}

.compare-table tbody td {
  position: relative;
  font-size: 0.73rem;
  font-weight: 750;
}

.compare-table td.is-best {
  background: #eee0c9;
  color: var(--red-dark);
}

.compare-table td small {
  margin-top: 0.25rem;
  display: block;
  color: var(--red);
  font-size: 0.52rem;
  font-weight: 800;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gallery-reveal {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dock-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(340px, 0.78fr) minmax(460px, 1.22fr);
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 6vw, 5.7rem);
  }

  .decision-stage-grid {
    grid-template-columns: 1fr;
  }

  .plot-panel {
    padding-right: 0;
  }

  .live-ranking {
    padding: 1.2rem 0 0;
    border-top: 1px solid #606861;
    border-left: 0;
  }

  #live-ranking-list {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) minmax(210px, 0.8fr);
    column-gap: 1.1rem;
  }

  .ranking-first {
    grid-row: 1 / 3;
  }

  .comparison-dock {
    grid-template-columns: 76px minmax(380px, 1fr) auto auto;
  }

  .comparison-status {
    display: none;
  }
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 11vw, 6.8rem);
  }

  .hero-gallery {
    height: 600px;
    max-height: none;
  }

  .decision-stage-head {
    min-height: 106px;
  }

  #live-ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-first {
    grid-row: auto;
  }

  .ranking-row {
    min-height: 62px;
  }

  .comparison-dock {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 102px;
    grid-template-columns: 68px minmax(280px, 1fr) auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .comparison-slots {
    overflow-x: auto;
  }

  .comparison-slot {
    min-width: 150px;
  }

  .dock-clear {
    display: none;
  }

  body.has-comparison {
    padding-bottom: 108px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 54px 12px 62px;
    gap: 2.5rem;
  }

  .hero-index {
    margin-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16.2vw, 5.3rem);
    line-height: 0.91;
  }

  .hero-lede {
    margin-top: 1.7rem;
    font-size: 0.92rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .hero-gallery {
    height: 485px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.65fr) minmax(0, 0.8fr) 88px;
  }

  .hero-photo-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-photo-top {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-photo-bottom {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-photo > span {
    padding: 0.5rem 0.58rem;
    font-size: 0.58rem;
  }

  .hero-metrics {
    grid-row: 3;
  }

  .hero-metrics > div {
    padding: 0.6rem 0.45rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .hero-metrics strong {
    font-size: 1.8rem;
  }

  .hero-metrics span {
    font-size: 0.52rem;
    text-align: center;
  }

  .decision-stage {
    margin-top: 1rem;
    padding: 1rem 0.8rem;
  }

  .decision-stage-head {
    min-height: 132px;
    display: block;
  }

  .decision-stage-head h3 {
    font-size: 1.65rem;
  }

  .decision-stage-head > p {
    margin-top: 0.75rem;
  }

  .plot-copy {
    gap: 1rem;
  }

  #decision-plot {
    min-width: 660px;
  }

  .plot-legend em {
    width: 100%;
    margin-left: 0;
  }

  .live-ranking-head {
    min-height: 66px;
  }

  .ranking-photo {
    aspect-ratio: 16 / 9;
  }

  .card-actions {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .card-actions .source-link {
    font-size: 0.59rem;
  }

  .comparison-dock {
    min-height: 94px;
    padding: 0.55rem;
    grid-template-columns: 52px minmax(0, 1fr) 90px;
    gap: 0.45rem;
  }

  .comparison-dock-title span {
    font-size: 0.47rem;
  }

  .comparison-dock-title strong {
    font-size: 1rem;
  }

  .comparison-slots {
    grid-auto-flow: column;
    grid-auto-columns: 105px;
    grid-template-columns: none;
  }

  .comparison-slot {
    min-width: 105px;
    min-height: 64px;
    padding: 0.3rem 1.2rem 0.3rem 0.3rem;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.35rem;
  }

  .comparison-slot > img,
  .slot-placeholder {
    width: 32px;
    height: 42px;
  }

  .comparison-slot strong {
    font-size: 0.58rem;
  }

  .comparison-slot small {
    font-size: 0.49rem;
  }

  .comparison-slot.is-empty {
    min-width: 80px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .comparison-slot.is-empty small {
    display: none;
  }

  .dock-open {
    min-height: 54px;
    padding: 0.35rem;
    font-size: 0.58rem;
  }

  body.has-comparison {
    padding-bottom: 98px;
  }

  .comparison-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .comparison-shell {
    padding: 0.8rem;
  }

  .comparison-head {
    min-height: 105px;
  }

  .comparison-head h2 {
    font-size: 1.75rem;
  }

  .comparison-content {
    max-height: calc(100dvh - 130px);
  }

  .compare-table {
    min-width: calc(125px + var(--compare-count) * 235px);
  }

  .compare-table tr > :first-child {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-gallery,
  .comparison-dock {
    animation: none !important;
  }
}

/* Trip intelligence */
.trip-intel {
  padding: 108px max(24px, calc((100vw - 1440px) / 2)) 112px;
  background: #e9dfd0;
  color: var(--ink);
}

.trip-intel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.trip-intel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.trip-intel-heading > p {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  color: #5f625c;
  font-size: 0.78rem;
  line-height: 1.8;
}

.trip-calendar {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.trip-calendar article {
  min-height: 148px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 253, 248, 0.34);
}

.trip-calendar article.is-weekend {
  background: #982f29;
  color: #fff8ee;
}

.trip-calendar span {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.trip-calendar strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
}

.trip-calendar small {
  margin-top: 0.45rem;
  color: #676962;
  font-size: 0.62rem;
  font-weight: 700;
}

.trip-calendar .is-weekend small {
  color: #edc9c4;
}

.trip-rule-alert {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 2.6vw, 2.5rem);
  display: grid;
  grid-template-columns: 150px minmax(300px, 0.85fr) minmax(430px, 1.15fr);
  gap: clamp(1.4rem, 3vw, 3.5rem);
  background: #8f2b26;
  color: #fff8ee;
}

.trip-rule-alert > p:first-child {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  color: #efc2bd;
  font-size: 0.62rem;
  font-weight: 800;
}

.trip-rule-alert > p:first-child b {
  color: #fff8ee;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

.trip-rule-alert h3 {
  margin: 0;
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.trip-rule-alert > div > p {
  margin: 0;
  color: #f2deda;
  font-size: 0.76rem;
  line-height: 1.75;
}

.trip-rule-alert > div > p strong {
  color: white;
}

.trip-rule-alert ol {
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  list-style: none;
}

.trip-rule-alert li {
  min-height: 86px;
  padding: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #f7e7e3;
  font-size: 0.6rem;
  line-height: 1.45;
}

.trip-rule-alert li span {
  margin-bottom: 0.45rem;
  display: block;
  color: #e5aaa4;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.rule-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.rule-links a,
.tool-source {
  color: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.trip-tool-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.trip-tool {
  min-width: 0;
  min-height: 390px;
  padding: clamp(1.2rem, 2.1vw, 2rem);
  background: #fffaf3;
}

.trip-tool.tax-tool {
  grid-column: span 7;
}

.trip-tool.season-tool {
  grid-column: span 5;
  background: #28312b;
  color: #f7f1e8;
}

.trip-tool.luggage-tool,
.trip-tool.crowd-tool,
.trip-tool.emergency-tool {
  grid-column: span 4;
}

.tool-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.2rem;
}

.tool-heading span,
.tool-heading > b {
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.tool-heading > b {
  white-space: nowrap;
}

.tool-heading h3 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.35vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.season-tool .tool-heading span {
  color: #d8b071;
}

.trip-tool > p {
  color: #61645e;
  font-size: 0.72rem;
  line-height: 1.75;
}

.trip-tool > p strong {
  color: var(--ink);
}

.tool-lede {
  max-width: 660px;
  margin: 1.2rem 0 0;
}

.tax-calculator {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(250px, 1.1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.tax-calculator > label,
.tax-result {
  min-height: 128px;
  padding: 0.85rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.tax-calculator > label > span:first-child,
.tax-result > span {
  display: block;
  color: #6c6e68;
  font-size: 0.6rem;
  font-weight: 800;
}

.yen-input {
  margin-top: 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.yen-input b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.yen-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
}

.tax-result {
  display: flex;
  flex-direction: column;
}

.tax-result strong {
  margin-top: auto;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.tax-result small {
  margin-top: 0.45rem;
  color: #6b6d67;
  font-size: 0.6rem;
}

.tax-bands {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.tax-bands div {
  min-height: 68px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: #797b75;
}

.tax-bands div.is-active {
  background: #942f29;
  color: #fff8ee;
}

.tax-bands span {
  font-size: 0.5rem;
  font-weight: 700;
}

.tax-bands strong {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
}

.tool-boundary {
  color: #858780 !important;
  font-size: 0.6rem !important;
  line-height: 1.55 !important;
}

.weather-number {
  margin-top: 1.6rem;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: auto auto auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 0.25rem 0.6rem;
  border-top: 1px solid #69736b;
  border-bottom: 1px solid #69736b;
}

.weather-number strong {
  color: #e7b56e;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.weather-number span {
  color: #aeb7b0;
  font-size: 0.6rem;
  font-weight: 800;
}

.season-tool > p {
  color: #c7cec8;
}

.season-tool .rule-links {
  color: #f7f1e8;
}

.mini-facts {
  margin: 1.35rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.mini-facts div {
  min-height: 48px;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.mini-facts dt {
  font-size: 0.65rem;
  font-weight: 800;
}

.mini-facts dd {
  margin: 0;
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.crowd-callout {
  margin: 1.4rem 0 0;
  padding: 0.75rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.crowd-callout b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
}

.crowd-callout span {
  color: #73756f;
  font-size: 0.6rem;
  font-weight: 800;
}

.hotline {
  margin-top: 1.45rem;
  padding: 1rem 0;
  display: block;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.hotline span,
.hotline strong,
.hotline small {
  display: block;
}

.hotline span {
  color: #686b64;
  font-size: 0.6rem;
  font-weight: 800;
}

.hotline strong {
  margin-top: 0.45rem;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.hotline small {
  margin-top: 0.5rem;
  color: #74766f;
  font-size: 0.56rem;
}

.emergency-numbers {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.emergency-numbers a {
  min-height: 72px;
  padding: 0.65rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}

.emergency-numbers span {
  color: #777971;
  font-size: 0.58rem;
  font-weight: 800;
}

.emergency-numbers strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.consular-hotline {
  margin: 0 0 0.8rem;
  padding-bottom: 0.8rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}

.consular-hotline span {
  color: #73766f;
  font-size: 0.56rem;
  font-weight: 800;
}

.consular-hotline strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.emergency-tool > .tool-source + .tool-source {
  margin-left: 0.65rem;
}

.official-tools {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.official-tools > p {
  grid-column: 1 / -1;
  min-height: 70px;
  margin: 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.official-tools > p span {
  color: var(--red);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.official-tools > p strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.official-tools > a {
  min-width: 0;
  min-height: 115px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.official-tools > a:hover {
  background: var(--ink);
  color: #fff8ee;
}

.official-tools a > b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 500;
}

.official-tools a > span {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.official-tools a small {
  margin-top: 0.3rem;
  display: block;
  color: #74776f;
  font-family: var(--sans);
  font-size: 0.5rem;
}

.official-tools > a:hover small {
  color: #bfc6c0;
}

.trip-checklist {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 2.4rem);
  background: #1e231f;
  color: #f5f0e7;
}

.checklist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.checklist-heading .eyebrow {
  margin-bottom: 0.25rem;
  color: #dba19b;
}

.checklist-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.checklist-progress {
  min-width: 190px;
}

.checklist-progress strong {
  display: block;
  color: #d8b071;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: right;
}

.checklist-progress > span {
  height: 4px;
  margin-top: 0.35rem;
  display: block;
  background: #4b534c;
}

.checklist-progress i {
  width: 0;
  height: 100%;
  display: block;
  background: #d8b071;
  transition: width 200ms ease;
}

.checklist-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #5d655e;
  border-left: 1px solid #5d655e;
}

.checklist-grid label {
  position: relative;
  min-height: 64px;
  border-right: 1px solid #5d655e;
  border-bottom: 1px solid #5d655e;
  cursor: pointer;
}

.checklist-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checklist-grid label > span {
  min-height: 63px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #c9d0ca;
  font-size: 0.7rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.checklist-grid label > span b {
  color: #7e887f;
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 500;
}

.checklist-grid input:focus-visible + span {
  outline: 3px solid #d6a333;
  outline-offset: -3px;
}

.checklist-grid input:checked + span {
  background: #ede3d5;
  color: #1e231f;
  text-decoration: line-through;
}

.checklist-grid input:checked + span b {
  color: var(--red);
}

#checklist-reset {
  min-height: 40px;
  margin-top: 1rem;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid #aab2ac;
  border-radius: 0;
  background: transparent;
  color: #aab2ac;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.trip-research-note {
  margin: 1.2rem 0 0;
  color: #74766f;
  font-size: 0.58rem;
  text-align: right;
}

@media (max-width: 1120px) {
  .trip-rule-alert {
    grid-template-columns: 120px minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  }

  .trip-tool.tax-tool {
    grid-column: span 12;
  }

  .trip-tool.season-tool,
  .trip-tool.luggage-tool,
  .trip-tool.crowd-tool,
  .trip-tool.emergency-tool {
    grid-column: span 6;
  }

  .official-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .trip-intel {
    padding-top: 76px;
    padding-bottom: 84px;
  }

  .trip-intel-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trip-intel-heading h2 {
    font-size: clamp(3rem, 9.8vw, 5rem);
  }

  .trip-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-rule-alert {
    grid-template-columns: 1fr;
  }

  .trip-rule-alert > p:first-child {
    min-height: 40px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  }

  .trip-rule-alert h3 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .trip-tool.season-tool,
  .trip-tool.luggage-tool,
  .trip-tool.crowd-tool,
  .trip-tool.emergency-tool {
    grid-column: span 12;
  }

  .trip-tool {
    min-height: auto;
  }

  .official-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .trip-intel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .trip-intel-heading h2 {
    font-size: 2.75rem;
  }

  .trip-calendar article {
    min-height: 118px;
    padding: 0.75rem;
  }

  .trip-calendar strong {
    font-size: 2.25rem;
  }

  .trip-rule-alert {
    padding: 1rem;
  }

  .trip-rule-alert ol {
    grid-template-columns: 1fr;
  }

  .trip-rule-alert li {
    min-height: 58px;
  }

  .tax-calculator {
    grid-template-columns: 1fr;
  }

  .tax-calculator > label,
  .tax-result {
    min-height: 116px;
  }

  .tax-bands {
    grid-template-columns: repeat(5, 105px);
    overflow-x: auto;
  }

  .weather-number {
    gap: 0.25rem 0.4rem;
  }

  .weather-number strong {
    font-size: 3.25rem;
  }

  .official-tools > a {
    min-height: 104px;
  }

  .checklist-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .checklist-progress {
    width: 100%;
  }

  .checklist-progress strong {
    text-align: left;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .trip-research-note {
    text-align: left;
  }
}

/* Two-person travel tools */
.pair-lab {
  margin-top: clamp(5rem, 9vw, 9rem);
  padding-top: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 24px;
}

.pair-lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.pair-lab-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.pair-lab-heading > p {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  color: #5f625c;
  font-size: 0.78rem;
  line-height: 1.8;
}

.pair-tools-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.pair-tool {
  min-width: 0;
  padding: clamp(1.2rem, 2.1vw, 2rem);
  background: #fffaf3;
}

.pair-tool.expense-tool,
.pair-tool.host-message-tool {
  grid-column: span 7;
}

.pair-tool.transit-tool,
.pair-tool.voltage-tool {
  grid-column: span 5;
}

.pair-tool .tool-lede {
  color: #61645e;
  font-size: 0.72rem;
  line-height: 1.75;
}

.expense-form {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 0.8fr) minmax(110px, 0.65fr) auto;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.expense-form > label {
  min-width: 0;
  min-height: 82px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.expense-form label > span:first-child,
.ride-calculator label > span:first-child,
.host-message-label {
  color: #6f716b;
  font-size: 0.56rem;
  font-weight: 800;
}

.expense-form input,
.expense-form select,
.ride-calculator input,
.ride-calculator select {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: 0.34rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
}

.expense-yen {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.expense-yen b {
  color: var(--red);
  font-family: var(--serif);
  font-weight: 500;
}

.expense-yen input {
  margin-top: 0;
}

.expense-form > button,
.host-message-actions button {
  min-height: 82px;
  padding: 0.7rem 1rem;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fffaf3;
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

.form-error {
  margin: 0.55rem 0 0;
  color: var(--red-dark);
  font-size: 0.62rem;
  font-weight: 800;
}

.expense-summary {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.expense-summary > div {
  min-height: 96px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.expense-summary span {
  color: #72756e;
  font-size: 0.56rem;
  font-weight: 800;
}

.expense-summary strong {
  margin-top: auto;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.expense-summary > p {
  grid-column: 1 / -1;
  min-height: 50px;
  margin: 0;
  padding: 0.7rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.expense-list {
  max-height: 225px;
  margin-top: 0.8rem;
  overflow-y: auto;
  border-top: 1px solid var(--line-dark);
}

.expense-row {
  min-height: 52px;
  padding: 0.48rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line-dark);
}

.expense-row > span strong,
.expense-row > span small {
  display: block;
}

.expense-row > span strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-row > span small {
  color: #777a73;
  font-size: 0.52rem;
}

.expense-row > b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
}

.expense-row > button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  color: #777a73;
  cursor: pointer;
}

.expense-empty {
  margin: 0;
  padding: 1rem 0;
  color: #7b7d77;
  font-size: 0.64rem;
}

.expense-actions,
.host-message-actions {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.expense-actions button {
  min-height: 36px;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
}

.expense-actions button:disabled {
  border-color: #a5a79f;
  color: #a5a79f;
  cursor: default;
}

.expense-actions span,
.host-message-actions span {
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 800;
}

.payment-note {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  color: #62655f;
  font-size: 0.62rem;
  line-height: 1.7;
}

.payment-note a {
  margin-left: 0.2rem;
  font-weight: 800;
}

.ride-calculator {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.ride-calculator label {
  min-width: 0;
  min-height: 110px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ride-calculator input,
.ride-calculator select {
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.ride-calculator small {
  margin-top: 0.25rem;
  color: #777a73;
  font-size: 0.5rem;
}

.pass-result {
  min-height: 132px;
  margin-top: 0.85rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  background: #29312c;
  color: #f8f2e9;
}

.pass-result > span {
  color: #b8c1ba;
  font-size: 0.56rem;
  font-weight: 800;
}

.pass-result strong {
  margin-top: auto;
  color: #e5b76f;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.9;
}

.pass-result p {
  margin: 0.6rem 0 0;
  color: #d8dfd9;
  font-size: 0.62rem;
}

.transit-facts {
  margin: 0.9rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.transit-facts div {
  min-height: 45px;
  padding: 0.5rem 0;
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid var(--line-dark);
}

.transit-facts dt {
  color: #6e716a;
  font-size: 0.58rem;
  font-weight: 800;
}

.transit-facts dd {
  margin: 0;
  font-size: 0.62rem;
}

.night-return {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--red);
}

.night-return > span {
  color: var(--red);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.night-return p {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  line-height: 1.6;
}

.night-return small {
  display: block;
  margin-top: 0.35rem;
  color: #777a73;
  font-size: 0.54rem;
}

.voltage-options {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.voltage-options button {
  min-height: 62px;
  padding: 0.55rem;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.voltage-options button:hover,
.voltage-options button.is-active {
  background: var(--ink);
  color: #fffaf3;
}

.voltage-result {
  min-height: 150px;
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line-dark);
}

.voltage-result strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.voltage-result p {
  margin: 0.75rem 0 0;
  color: #61645e;
  font-size: 0.68rem;
  line-height: 1.7;
}

.host-checks {
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  list-style: none;
  counter-reset: host-check;
}

.host-checks li {
  min-height: 52px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.64rem;
  counter-increment: host-check;
}

.host-checks li::before {
  content: "0" counter(host-check);
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.72rem;
}

.host-message-label {
  margin-top: 1.15rem;
  display: block;
}

#host-message {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem;
  resize: vertical;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: #f2eadf;
  color: #363a36;
  font-size: 0.66rem;
  line-height: 1.65;
}

.host-message-actions button {
  min-height: 42px;
  border: 1px solid var(--ink);
}

.pair-safety {
  margin-top: 1px;
  padding: clamp(1.3rem, 2.8vw, 2.8rem);
  background: #28312b;
  color: #f7f1e8;
}

.pair-safety-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.pair-safety-heading .eyebrow {
  margin-bottom: 0.35rem;
  color: #d7a29b;
}

.pair-safety-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.pair-safety-heading > p {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid #667068;
  color: #c5cdc7;
  font-size: 0.69rem;
  line-height: 1.75;
}

.safety-actions {
  margin-top: 2rem;
  border-top: 1px solid #667068;
}

.safety-actions details {
  border-bottom: 1px solid #667068;
}

.safety-actions summary {
  min-height: 72px;
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.safety-actions summary::-webkit-details-marker {
  display: none;
}

.safety-actions summary span {
  color: #d7a29b;
  font-family: var(--serif);
  font-size: 0.84rem;
}

.safety-actions summary strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

.safety-actions summary b {
  color: #c4cdc6;
  font-size: 0.6rem;
}

.safety-actions summary::after {
  content: "+";
  margin-left: 0.5rem;
  color: #d8b071;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.safety-actions details[open] summary::after {
  content: "−";
}

.safety-actions details > div {
  max-width: 880px;
  padding: 0 0 1rem 60px;
}

.safety-actions details p {
  margin: 0;
  color: #c5cdc7;
  font-size: 0.68rem;
  line-height: 1.75;
}

.safety-actions details p + p {
  margin-top: 0.6rem;
}

.safety-actions details a,
.late-walk-note a {
  display: inline-block;
  margin-top: 0.65rem;
  color: #f7f1e8;
  font-size: 0.6rem;
  font-weight: 800;
}

.late-walk-note {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #667068;
  color: #c5cdc7;
  font-size: 0.65rem;
  line-height: 1.75;
}

.late-walk-note strong {
  color: #e5b76f;
}

.late-walk-note a {
  margin: 0 0 0 0.3rem;
}

@media (max-width: 1120px) {
  .expense-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expense-form > button {
    grid-column: 1 / -1;
    min-height: 46px;
  }
}

@media (max-width: 820px) {
  .pair-lab-heading,
  .pair-safety-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pair-lab-heading h2 {
    font-size: clamp(3rem, 9.8vw, 5rem);
  }

  .pair-tool.expense-tool,
  .pair-tool.host-message-tool,
  .pair-tool.transit-tool,
  .pair-tool.voltage-tool {
    grid-column: span 12;
  }

  .expense-form {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.7fr) auto;
  }

  .expense-form > button {
    grid-column: auto;
    min-height: 82px;
  }
}

@media (max-width: 560px) {
  .pair-lab-heading h2 {
    font-size: 2.75rem;
  }

  .expense-form {
    grid-template-columns: 1fr;
  }

  .expense-form > label,
  .expense-form > button {
    min-height: 68px;
  }

  .expense-summary,
  .host-checks {
    grid-template-columns: 1fr;
  }

  .expense-summary > p {
    grid-column: auto;
  }

  .ride-calculator {
    grid-template-columns: 1fr;
  }

  .ride-calculator label {
    min-height: 88px;
  }

  .voltage-options {
    grid-template-columns: 1fr;
  }

  .voltage-options button {
    min-height: 50px;
  }

  .safety-actions summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .safety-actions summary b {
    display: none;
  }

  .safety-actions details > div {
    padding-left: 44px;
  }
}
