/* Look B, "Evergreen": forest-green bands, karst hero, timeline days. */
:root {
  --forest: #16302b;
  --forest-2: #24473f;
  --forest-3: #2c574d;
  --mist: #eef2ee;
  --card: #ffffff;
  --ink: #16302b;
  --muted: #4b635b;
  --line: #d3ddd8;
  --leaf: #8fd6a6;
  --leaf-ink: #0e211d;
  --link: #1f6b4f;
  --sun: #f2c46d;
  --danger: #a3302a;
  --notice: #dff1e4;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  color-scheme: light;
}
body.dark {
  --mist: #16302b;
  --card: #1f4039;
  --ink: #eef2ee;
  --muted: #b9cfc6;
  --line: #3c6259;
  --link: #b9e3c6;
  --danger: #f3a39c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #10231f;
    --card: #1b3631;
    --ink: #eef2ee;
    --muted: #a9c2b8;
    --line: #33544c;
    --link: #b9e3c6;
    --danger: #f3a39c;
    --notice: #1f3d33;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 17px / 1.5 var(--body);
}
a {
  color: var(--link);
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
}
h1 {
  font-size: 1.9rem;
  margin: 0.25rem 0 0.75rem;
}
h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 16px 6rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.error {
  color: var(--danger);
  margin: 0;
}
.notice {
  background: var(--notice);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
}

/* Header band */
.band {
  background: var(--forest);
  color: #eef2ee;
}
.band-row {
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #eef2ee;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.band a {
  color: #b9e3c6;
}
.band form {
  margin: 0;
}
.chips {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.band .chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--forest-3);
  color: #eef2ee;
  text-decoration: none;
}
.band .chip.today {
  box-shadow: inset 0 0 0 2px var(--sun);
}
.band .chip.current {
  background: var(--leaf);
  color: var(--leaf-ink);
}
.chip-top {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chip-num {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Sign-in hero */
.hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--forest-2);
  color: #eef2ee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 24px;
}
.hero svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-top,
.hero-title {
  position: relative;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
}
.hero-top {
  display: flex;
  justify-content: flex-end;
}
.hero .eyebrow {
  color: var(--leaf);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
}

/* Controls */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
textarea {
  min-height: 90px;
}
input.code {
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  text-align: center;
}
button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
  padding: 0.6rem 1.3rem;
  border-radius: 26px;
  border: 1px solid transparent;
}
button.primary {
  background: var(--forest);
  color: #eef2ee;
}
body.dark button.primary {
  background: var(--leaf);
  color: var(--leaf-ink);
}
button.big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
  text-align: left;
}
button.big svg {
  flex: none;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}
button.small-button {
  min-height: 44px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}
button.link {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  font-weight: 400;
  text-decoration: underline;
  color: var(--link);
}
button.danger {
  background: none;
  color: var(--danger);
  border-color: var(--danger);
}
.pill {
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: #eef2ee;
  border: 1px solid #6f9a8e;
  border-radius: 20px;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.band button.link {
  color: #b9e3c6;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

/* Days */
.day {
  margin: 0 0 2rem;
  scroll-margin-top: 1rem;
}
.day header {
  margin-bottom: 0.75rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 18px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before {
  display: none;
}
.dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 7px;
  background: var(--ink);
}
.stop {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--link);
  font-variant-numeric: tabular-nums;
}
.what {
  font-size: 1.15rem;
  font-weight: 700;
}
.note {
  margin: 6px 0 2px;
  background: var(--card);
  border-radius: 12px;
  padding: 10px 14px;
  white-space: pre-wrap;
}
.fab {
  position: fixed;
  right: max(16px, calc(50vw - 20rem + 16px));
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--forest);
  color: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
}

/* People */
.people {
  list-style: none;
  padding: 0;
  margin: 0;
}
.people .card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

/* Header band content */
.band-body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px 20px;
}
.band-body h1 {
  margin: 0.25rem 0 0.25rem;
}
.band-sub {
  margin: 0 0 14px;
  color: #b9cfc6;
}
.split-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.split-bar .th {
  background: var(--sun);
}
.split-bar .vn {
  background: var(--leaf);
}
.split-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.split-legend .th {
  color: var(--sun);
}
.split-legend .vn {
  color: var(--leaf);
}
.band-back {
  padding-top: 0;
}
.band .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  text-decoration: none;
}
.chip-top.th {
  color: var(--sun);
}
.chip-top.vn {
  color: var(--leaf);
}
.band .chip.current .chip-top {
  color: var(--leaf-ink);
}

/* Whole trip */
.route {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.country {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.country.th {
  color: #8a5a00;
}
.country.vn {
  color: var(--link);
}
.flight-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.flight-icon {
  display: flex;
  color: var(--link);
}
.flight-date {
  font-weight: 700;
}
.stay-hotel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.missing {
  color: #8a5a00;
  font-style: italic;
}
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--leaf);
  color: var(--leaf-ink);
}
.todos {
  margin-top: 0;
}
.todos summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
}
.todos ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}
.todos li {
  margin: 0.35rem 0;
}
.secondary-link {
  display: inline-block;
  font-weight: 600;
  min-height: 44px;
}

/* One day */
.day-head {
  margin-bottom: 1rem;
}
.day-head h1 {
  margin-bottom: 0.1rem;
}
.day-head p {
  margin: 0;
}
.dot.hollow {
  background: var(--mist);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.timeline .time {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tonight {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.tonight .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Legs */
.route > li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leg-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}
.leg-card.now {
  box-shadow: 0 0 0 3px var(--leaf);
}
.leg-art {
  position: relative;
  display: block;
  height: 128px;
  color: #eef2ee;
}
.scene,
.leg-band-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.leg-art::after,
.leg-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(22 48 43 / 0) 30%, rgb(22 48 43 / 0.85));
}
.leg-art-text {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
}
.leg-city {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
}
.leg-dates {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d6e6df;
}
.leg-art .badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
}
.leg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 14px;
}
.leg-about {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
}

/* One leg */
.leg-band {
  position: relative;
  overflow: hidden;
}
.leg-band > .band-row,
.leg-band > .band-body {
  position: relative;
  z-index: 1;
}
.leg-band .band-body {
  padding-top: 24px;
}
.leg-band .band-sub {
  color: #d6e6df;
}
.country-tag.th {
  color: var(--sun);
}
.country-tag.vn {
  color: var(--leaf);
}
.leg-band + .chips {
  padding-top: 14px;
}
.band .chip.chip-wide {
  justify-content: center;
  padding: 6px 14px;
}
.chip-wide .chip-num {
  font-size: 0.95rem;
}
.hotel {
  margin-top: 0;
}
.hotel .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotel h2 {
  margin: 0.4rem 0 0.5rem;
}
.about {
  margin: 0 0 0.75rem;
}
.facts {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.facts li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.fact-icon {
  flex: none;
  display: flex;
  padding-top: 3px;
  color: var(--link);
}
.block {
  display: block;
}
.section-title {
  margin: 1.75rem 0 0.75rem;
}
.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.day-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  padding: 4px 0;
  border-radius: 12px;
  background: var(--mist);
}
.day-sum {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.day-title {
  font-weight: 700;
}
.day-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.75rem;
}
.pager a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.pager-next {
  text-align: right;
}
.more > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
}
.details-body {
  margin-top: 1rem;
}
