:root {
  color-scheme: light;
  --ink: #42162d;
  --muted: #644d56;
  --plum: #511a34;
  --paper: #faf5ed;
  --card: #fffaf3;
  --line: #d9c5c5;
  --sand: #f3e7d5;
  --ochre: #9b5110;
  --serif: Georgia, "Th Sarabun New", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, sans-serif; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #995412; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0 0 .55em; }
h1, h3, h4 { line-height: 1.2; }
.icon { width: 1.35em; height: 1.35em; vertical-align: -.27em; filter: invert(12%) sepia(23%) saturate(3000%) hue-rotate(285deg); flex: none; }
.mast { background: var(--plum); color: #fff5e8; }
.mast-inner { display: flex; align-items: center; gap: 14px; min-height: 54px; padding-block: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; letter-spacing: .12em; font: 700 16px/.96 var(--serif); }
.wordmark img { width: 28px; height: 28px; filter: invert(71%) sepia(65%) saturate(679%) hue-rotate(349deg); }
.mast-description { padding-left: 14px; border-left: 1px solid #ac7a91; font-size: .76rem; line-height: 1.32; }
.mast-edition { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.cover { display: flex; justify-content: space-between; align-items: center; min-height: 130px; border-bottom: 1px solid var(--line); gap: 8px; }
.cover h1 { font-size: clamp(1.55rem, 5.5vw, 3.8rem); letter-spacing: -.045em; margin-bottom: .22em; }
.cover p { margin-bottom: 0; font-size: clamp(.74rem, 3.2vw, 1rem); }
.cover-art { display: block; width: clamp(85px, 24vw, 198px); height: auto; align-self: end; flex: none; margin-block: -8px 0; }
.jump { position: sticky; top: 0; z-index: 500; background: var(--paper); }
.tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tabs a { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 44px; border-radius: 9px; text-decoration: none; font-weight: 750; }
.tabs a[aria-current] { color: #fff9f1; background: var(--plum); }
.tabs a[aria-current] img, .route-button img { filter: invert(1); }
main { padding: 13px 0 26px; }
.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dates button, .map-stops button { background: #f5ebe1; border: 1px solid var(--line); border-radius: 9px; min-height: 44px; padding: 5px 2px; }
.dates strong, .dates small { display: block; line-height: 1.18; }
.dates strong { font: 700 1.17rem/1.1 var(--serif); }
.dates small { margin-top: 3px; }
.dates button[aria-pressed="true"], .map-stops button[aria-pressed="true"] { background: var(--plum); color: white; }
.day-heading p { margin: 0; color: var(--muted); font-size: .84rem; }
#map { isolation: isolate; height: clamp(150px, 38vw, 315px); border-radius: 12px; background: #ece5d7; }
#map .leaflet-tile { filter: saturate(.65) sepia(.12); }
.map-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid white; background: var(--plum); color: white; font-weight: 800; }
.map-pin.selected { background: var(--ochre); }
.map-stops { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.map-stops button { min-height: 35px; padding-inline: 8px; font-size: .75rem; }
#map-caption { font-size: .72rem; margin: 3px 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 12px; border: 1px solid var(--plum); border-radius: 9px; background: var(--plum); color: white; text-decoration: none; font-weight: 750; }
.secondary { background: var(--sand); color: var(--ink); border-color: var(--line); }
.route-button { display: flex; background: var(--ochre); border-color: var(--ochre); margin-top: 7px; }
#day-travel { font-size: .81rem; }
.access { background: var(--sand); border-radius: 9px; padding: 7px 9px; margin: 5px 0; }
.links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .77rem; margin: 5px 0; }
.muted { color: var(--muted); }
.access { padding: 12px 14px; margin: 14px 0; }
.access p { margin: 4px 0; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.summary, .lower-grid, .family { display: grid; gap: 12px; }
.summary { grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 14px; }
.summary > div, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.summary > div { padding: 9px; font-size: .76rem; }
.summary strong { display: block; font-size: clamp(.98rem, 4vw, 1.6rem); }
progress { display: block; width: 100%; accent-color: var(--plum); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 5px; border-bottom: 1px solid var(--line); }
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--plum); }
.budget-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(70px,110px) auto; align-items: center; gap: 7px; margin-block: 7px; }
.total { font-weight: 800; }
input:not([type="checkbox"]), textarea, select { background: white; border: 1px solid #a88f9b; padding: 6px; border-radius: 6px; }
input:not([type="checkbox"]), textarea { width: 100%; min-height: 44px; }
textarea { display: block; resize: vertical; margin: 4px 0 8px; }
#family, #shared { margin-top: 12px; }
.input-line { display: flex; align-items: center; gap: 7px; max-width: 32rem; }
#feedback { position: fixed; z-index: 510; bottom: 12px; inset-inline: 16px; margin: auto; max-width: 510px; background: var(--plum); color: white; border-radius: 9px; padding: 12px; pointer-events: none; }
.visa-guide { max-width: 760px; }
.visa-guide .panel { margin-top: 18px; }
.visa-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
footer { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0 20px; font-size: .73rem; border-top: 1px solid var(--line); }
@media (max-width: 450px) {
  .cover { min-height: 88px; }
  .mast-edition { font-size: .56rem; }
  .wrap { width: calc(100% - 26px); }
}
@media (min-width: 780px) {
  .lower-grid, .family { grid-template-columns: 1fr 1fr; }
}
@media print {
  .jump, .dates, #feedback, button, select { display: none !important; }
}
@media (max-width: 450px) {
  .mast-description { font-size: .68rem; }
  .mast-edition { white-space: nowrap; }
  .cover h1 { font-size: clamp(1.48rem, 6.3vw, 1.8rem); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#map-error { font-size: .75rem; }
#day-travel { margin-top: 8px; }
@media (max-width: 450px) {
  .mast-inner { min-height: 44px; padding-block: 4px; }
  .tabs { padding-block: 4px; }
  main { padding-top: 8px; }
}
.trip-guide { margin-top: 15px; }
.meal-options, .guide-list { margin-block: 8px 12px; }
.meal-options { list-style: none; padding: 0; }
.meal-options li { border-top: 1px solid var(--line); padding: 10px 0; }
.meal-options h4 { margin-bottom: 4px; }
.meal-options p { margin-bottom: 4px; }
.guide-list { padding-inline-start: 1.25rem; }
.guide-list li { margin-bottom: 8px; }
.prep-guide-links { margin-bottom: 12px; }
.fare-table { width: 100%; border-collapse: collapse; margin-block: 10px; font-size: .9rem; }
.fare-table th, .fare-table td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 7px 5px; }
.fare-table thead { background: var(--sand); }
.fare-table th:first-child { width: 32%; }

#flight-timing { font-weight: 700; }
/* Keep the itinerary readable at a glance and group supporting details. */
:root { --line: #ded1d1; }
main { padding-block: 18px 32px; }
summary { cursor: pointer; }
.quiet-details { border-top: 1px solid var(--line); padding-block: 8px; margin-top: 6px; }
.quiet-details summary { font-weight: 650; }
.quiet-details[open] summary, .visa-reference[open] summary { margin-bottom: 8px; }
.photo-credit { display: inline-block; }
.photo-credit summary { min-height: 26px; padding-block: 4px; }
.day-extra { margin-top: 12px; padding-block: 10px; }
.day-extra summary { min-height: 36px; }
.day-extra summary span { font-weight: 750; }
.day-extra summary small { display: block; color: var(--muted); margin-inline-start: 16px; line-height: 1.4; }
.day-extra[open] summary { margin-bottom: 10px; }
.trip-shortcuts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 10px; }
.trip-shortcuts a { display: inline-flex; align-items: center; min-height: 38px; font-weight: 650; }
.prep-heading { margin-bottom: 12px; }
.prep-heading h2 { margin-bottom: 2px; }
.visa-links > details { flex-basis: 100%; }
.visa-reference summary { font-weight: 750; }
@media (max-width: 450px) {
  .mast-description { display: none; }
}

/* The photo book reads as a chapter per day, with practical details below it. */
#itinerary { max-width: 1024px; margin-inline: auto; }
.book-chapter { display: block; border: 0; padding: 0; margin: 18px 0 14px; }
.book-chapter h3 { margin-bottom: 0; font-size: clamp(1.6rem, 5vw, 2.9rem); line-height: 1.2; letter-spacing: -.035em; }
.book-chapter p { font-size: .77rem; font-weight: 650; margin-bottom: 4px; }
.photo-spread { display: grid; gap: 22px; }
.photo-spread > * { min-width: 0; }
.place-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: var(--sand); }
.place-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; }
.place-photo > span { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff8ee; color: var(--plum); font-weight: 700; }
.photo-caption { display: flex; justify-content: space-between; gap: 5px 12px; align-items: baseline; flex-wrap: wrap; margin-top: 8px; }
.photo-caption h4 { font: 700 clamp(1.25rem, 3.5vw, 1.75rem)/1.15 var(--serif); margin: 0; }
.photo-caption small { font-size: .8rem; color: var(--muted); font-weight: 650; }
.bonus-spread { margin-top: 20px; }
.book-tools { margin-top: 18px; }
.book-tools .day-extra > summary { padding-block: 6px; min-height: 44px; font-weight: 700; }
@media (min-width: 700px) {
  .photo-spread { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-spread > :only-child { grid-column: 1 / -1; }
  .photo-spread > :only-child .place-photo img,
  #stops > :only-child .place-photo img { aspect-ratio: 16 / 8; }
  .book-tools { max-width: 760px; }
}

.overview-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.overview-heading h2 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.35rem); }
.overview-heading > span, .timeline-day small { color: var(--muted); font-size: .8rem; }
.trip-timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.trip-timeline li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) clamp(90px, 29vw, 220px); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 10px; }
.trip-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 19px; width: 1px; top: 50%; bottom: -50%; background: var(--line); }
.timeline-date { z-index: 1; display: grid; place-content: center; text-align: center; height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #fff8ee; line-height: 1.05; }
.timeline-date strong { font: 700 1.4rem/1 var(--serif); }
.timeline-date small { font-size: .7rem; }
.timeline-day { display: grid; align-content: center; min-height: 44px; text-decoration: none; line-height: 1.3; }
.timeline-day strong { font-size: clamp(.96rem, 3.8vw, 1.35rem); }
.timeline-day:hover strong { text-decoration: underline; }
.timeline-day small { margin-top: 4px; }
.timeline-photo img { aspect-ratio: 16 / 10; }
.timeline-photo > span { width: 24px; height: 24px; right: 4px; bottom: 4px; }
.overview-back { display: block; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--plum); font-weight: 700; }
#day-map { scroll-margin-top: 75px; }
.place-dialog { position: fixed; width: min(92vw, 610px); max-height: 88dvh; padding: 0; border: 0; border-radius: 16px; background: #fff8ee; color: var(--ink); }
.place-dialog::backdrop { background: rgb(31 17 23 / .65); }
.place-dialog form { position: sticky; top: 8px; height: 0; margin: 0; z-index: 1; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: auto; margin-inline-end: 8px; border: 1px solid var(--line); border-radius: 50%; background: #fff8ee; color: var(--plum); font-size: 1.55rem; }
.place-hero { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 34dvh; object-fit: cover; }
.place-body { padding: 14px 18px 18px; }
.place-body h2 { margin-bottom: 12px; }
.place-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.place-access { margin: 15px 0; padding: 12px; border-radius: 10px; background: var(--sand); }
.place-access h3 { margin-bottom: 4px; font-size: 1rem; }
.place-access p { margin-bottom: 4px; }
.place-body > .photo-credit { display: block; margin-top: 10px; font-size: .78rem; }
@media print { .place-photo { display: block !important; } .place-photo > span { display: none; } }

/* Melbourne field guide */
:root {
  --ink: #172b2b;
  --muted: #4b6260;
  --plum: #164b45;
  --paper: #f9f7f0;
  --card: #fffefa;
  --line: #d6ded2;
  --sand: #eaf0e6;
  --ochre: #8b431e;
  --serif: system-ui, sans-serif;
}
:focus-visible { outline-color: #a74e24; }
.mast { background: var(--paper); color: var(--ink); }
.mast-description { display: none; }
.wordmark img, .icon { filter: none; }
.cover { border: 0; }
.tabs { gap: 3px; }
.tabs a { border-radius: 999px; font-size: clamp(.72rem, 3.2vw, .95rem); text-align: center; }
.tabs a[aria-current] { color: #fff; }
.overview-heading { margin-block: 6px 16px; }
.trip-timeline { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.trip-timeline li { display: block; border: 0; padding: 0; }
.trip-timeline li::before { display: none; }
.timeline-day { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; height: 100%; padding: 4px; text-align: center; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); }
.timeline-day strong { padding: 3px; font-size: clamp(.88rem, 3.7vw, 1.2rem); }
.timeline-day small { margin: 2px 1px 4px; font-size: clamp(.68rem, 2.8vw, .9rem); }
.timeline-day img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.day-pages { display: flex; justify-content: space-between; gap: 12px; }
.day-pages a { display: inline-flex; align-items: center; min-height: 44px; color: var(--plum); font-weight: 700; }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.agenda-stop { display: grid; grid-template-columns: minmax(62px, 17%) minmax(0,1fr); gap: 12px; align-items: start; }
.agenda-time { border-radius: 10px; padding: 4px; background: #e6f2ff; text-align: center; font-weight: 750; font-size: .78rem; }
.agenda-main { padding: 0 0 10px 12px; border-left: 2px solid var(--line); min-width: 0; }
.agenda-main h4 { font-size: clamp(1.05rem, 4vw, 1.5rem); margin-bottom: 4px; }
.agenda-main p { font-size: .8rem; color: var(--muted); }
.agenda-main .place-photo img { aspect-ratio: 16 / 9; max-height: 340px; }
.agenda-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.agenda-actions > * { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 3px 8px; background: var(--sand); border: 0; border-radius: 9px; font-weight: 650; font-size: .8rem; text-decoration: none; }
.place-dialog { background: var(--paper); }
.place-dialog form { z-index: 2; }
.dialog-close { background: var(--card); }
.place-body h2 { padding-inline-end: 32px; }
.gallery-frame { position: relative; margin-bottom: 8px; touch-action: pan-y; }
.place-hero { border-radius: 12px; }
#gallery-counter { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #231435; color: white; font-size: .8rem; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding: 3px; }
.gallery-thumbs button { flex: 0 0 76px; padding: 0; border: 2px solid transparent; border-radius: 9px; background: var(--sand); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--plum); }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; display: block; border-radius: 7px; object-fit: cover; }
.places-view { max-width: 760px; margin-inline: auto; }
.places-form { display: grid; gap: 8px; }
.places-form input, #route-brief { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.candidate-list { list-style: none; padding: 0; }
.candidate-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.candidate-list li small { width: 100%; color: var(--muted); }
.text-button { background: none; border: 0; color: var(--plum); min-height: 44px; text-decoration: underline; }
#route-request label { display: block; margin-top: 10px; }
.visa-travelers { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px; }
.visa-travelers button[aria-pressed="true"] { background: var(--plum); color: white; }
#visa-progress { width: 100%; }
.budget-category { border-bottom: 1px solid var(--line); padding-block: 9px; }
.budget-category h3 { font-size: 1rem; }
.budget-category .budget-row { grid-template-columns: minmax(0, 1fr) minmax(64px, 26%) auto; }
@media (max-width: 400px) {
  .tabs .icon { display: none; }
}
@media (min-width: 800px) {
  .trip-timeline { gap: 12px; }
  .timeline-day img { aspect-ratio: 16 / 10; }
}
.cover-art { filter: hue-rotate(27deg); }
#place-map { font-size: .87rem; }
@media print { .gallery-thumbs { display: none; } }
.place-photo > span { width: auto; min-width: 30px; padding-inline: 7px; font-size: .75rem; }
.gallery-caption { margin-top: -3px; margin-bottom: 12px; font-size: .8rem; }
.agenda-meal .agenda-time { background: #faeacb; }
.agenda-meal .agenda-main { border-color: #e7cb96; }
.agenda-meal .agenda-main p { margin-bottom: 0; }
.agenda-meal .agenda-actions:empty { display: none; }

.mast-account { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-weight: 650; font-size: .82rem; }

/* Larger labels and touch targets for a phone used on the trip. */
body { font-size: 18px; line-height: 1.65; }
.tabs { gap: 6px; }
.tabs a { border-radius: 10px; min-height: 48px; font-size: 1rem; line-height: 1.3; padding: 6px; }
.tabs a:not([aria-current]) { background: var(--sand); }
.timeline-day { padding: 7px; text-align: start; gap: 6px; }
.timeline-day strong { font-size: 1rem; }
.timeline-day small { font-size: 1rem; line-height: 1.4; color: var(--ink); }
.day-card-action { font-size: .9rem; color: var(--plum); font-weight: 750; }
.overview-heading > span, .day-heading p { font-size: 1rem; }
.overview-back, .day-pages a { min-height: 48px; }
.day-pages a { background: var(--sand); padding-inline: 12px; border-radius: 10px; text-decoration: none; }
.agenda-time { font-size: 1rem; padding: 5px 8px; }
.agenda-main h4 { font-size: clamp(1.25rem,5vw,1.6rem); }
.agenda-main p, .agenda-actions > *, .place-details, .place-body select, #place-map, #day-travel { font-size: 1rem; }
.agenda-actions > * { min-height: 48px; }
.agenda-actions a { background: var(--plum); color: white; }
.dialog-close { width: auto; min-width: 48px; height: 48px; padding-inline: 10px; font-size: 1rem; font-weight: 750; }
@media (max-width: 600px) {
  .jump { position: static; }
  .tabs .icon { display: none; }
  .trip-timeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .timeline-day img { aspect-ratio: 4 / 3; }
  .agenda-stop { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .agenda-time { justify-self: start; }
  .agenda-main { padding-inline-start: 8px; }
}
.place-body h2 { padding-inline-end: 52px; }

.open-day-label { display: grid; place-items: center; min-height: 65px; padding: 8px; border-radius: 8px; background: var(--card); color: var(--muted); }

.prep-progress { margin-bottom: 12px; }
.prep-progress p { margin-block: 4px 8px; }
.prep-progress strong { font-size: 1.4rem; }
.prep-section, #family.prep-section, #shared.prep-section { margin-block: 10px; }
.prep-section > summary { min-height: 44px; padding-block: 8px; font-weight: 750; }
.prep-section .check-row small { display: block; color: var(--muted); }
.prep-section .check-row { cursor: pointer; }
.expense-summary > div { font-size: .9rem; }
.room-entry { max-width: 32rem; margin-block: 32px; }
.room-entry input { display: block; margin-block: 6px 12px; }

.editor-toolbar { margin-block: 12px; }
.record-form { display: grid; gap: 12px; }
.record-form label, #stop-extra:not([hidden]) { display: grid; gap: 5px; }
.record-form select { min-height: 44px; }
.record-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.record-form [data-record-status]:empty { display: none; }
#stop-editor, #expense-editor { max-height: calc(100dvh - 32px); overflow: auto; width: min(440px, calc(100% - 24px)); }
.google-stops { padding-inline-start: 22px; }
.google-stops li { margin-block: 8px; }
.ledger-list { padding: 0; list-style: none; }
.ledger-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; margin-block: 8px; }
.ledger-list small { display: block; color: var(--muted); }
.ledger-list li > div { overflow-wrap: anywhere; }
#stop-editor, #expense-editor {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
}
#stop-editor::backdrop, #expense-editor::backdrop { background: rgb(31 17 23 / .65); }
.overview-actions, .day-actions, .editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 10px 14px;
}
.overview-actions .button, .day-actions .button, .editor-toolbar .button { min-height: 44px; }
.day-switcher { display: flex; gap: 8px; align-items: center; margin-block: 12px; }
.day-switcher select { min-height: 44px; }
@media (max-width: 420px) {
  .tabs a { font-size: .87rem; }
  .day-actions .button { flex: 1 1 auto; }
}

.mast-inner { min-height: 64px; }
.wordmark { letter-spacing: -.02em; font-size: clamp(.98rem,3.8vw,1.23rem); }
.wordmark img { width: 23px; height: 23px; }
.mast-edition { color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.tabs { border-block: 1px solid var(--line); }
.tabs a { border-radius: 8px; }
.tabs a:not([aria-current]) { background: transparent; }
.tabs a:hover:not([aria-current]) { background: var(--sand); }
.trip-cover {
  min-height: clamp(265px,29vw,350px);
  display: grid;
  align-items: end;
  padding: clamp(20px,4vw,48px);
  margin-bottom: clamp(22px,4vw,42px);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(90deg,#102a2bea 0%,#102a2b9e 45%,#102a2b1a 100%),
    #263f3d url('/photos/apostles.jpg') center 57% / cover no-repeat;
}
.trip-cover h1 { font-size: clamp(2.55rem,6vw,4.55rem); letter-spacing: -.065em; line-height: 1.07; margin-bottom: .18em; }
.trip-cover .eyebrow { font-size: .84rem; letter-spacing: .06em; }
.trip-cover-dates { font-weight: 700; }
.trip-cover .button { background: #ffe4ad; color: #2c3021; border-color: #ffe4ad; margin-top: 8px; }
.trip-dashboard, .day-layout { display: grid; gap: clamp(16px,3vw,36px); align-items: start; }
.trip-dashboard-side { display: grid; gap: 14px; }
.trip-timeline { grid-template-columns: minmax(0,1fr); gap: 8px; }
.timeline-day {
  grid-template: auto / 53px clamp(56px,12vw,108px) minmax(0,1fr) 16px;
  align-items: center; gap: clamp(7px,2vw,14px); padding: 7px 10px;
  background: var(--card); text-decoration: none;
}
.timeline-day:hover { background: var(--sand); }
.timeline-day img, .timeline-placeholder { width: 100%; aspect-ratio: 5 / 4; border-radius: 8px; }
.timeline-placeholder { display: grid; place-items: center; color: var(--muted); background: var(--sand); }
.timeline-date { text-align: center; }
.timeline-date strong { display: block; padding: 0; font-size: clamp(1.35rem,4vw,2rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.timeline-label b { display: block; line-height: 1.35; }
.timeline-day small { display: block; font-size: .76rem; color: var(--muted); margin: 0; }
.day-card-action { font-size: 1.55rem; }
.dashboard-progress, .dashboard-shortcuts, .ledger-balance { padding: clamp(15px,2vw,24px); border-radius: 16px; }
.dashboard-progress { background: var(--sand); }
.dashboard-progress h2, .dashboard-shortcuts h2 { font-size: 1.25rem; }
.dashboard-progress strong { font-size: 1.45rem; }
.dashboard-progress .button { margin-top: 14px; }
.dashboard-shortcuts a { display: flex; align-items: center; gap: 9px; min-height: 48px; padding-block: 5px; border-top: 1px solid var(--line); text-decoration: none; }
.dashboard-shortcuts a span { margin-inline-start: auto; }
.day-heading { background: var(--sand); border: 1px solid var(--line); border-radius: 18px; padding: clamp(15px,3vw,28px); }
.day-heading .day-actions { margin-bottom: 0; }
.schedule-title { margin-bottom: 0; font-size: 1.3rem; }
.agenda-stop { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(10px,2vw,17px); }
.agenda-main { border: 0; padding: 0; }
.agenda-main .place-photo img { max-height: 210px; }
.agenda-time { background: #fff0d4; color: #5b3c18; }
.day-side { margin-top: 0; }
#planning, #ledger, #expenses, #packing { max-width: 820px; margin-inline: auto; }
.prep-heading { padding-block: 10px; }
.ledger-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--sand); }
.ledger-balance strong { display: block; font-size: clamp(1.6rem,5vw,2.8rem); line-height: 1.25; }
@media (min-width: 760px) {
  .trip-dashboard, .day-layout { grid-template-columns: minmax(0, 1.95fr) minmax(260px, 1fr); }
}
@media (max-width: 500px) {
  .trip-cover { background-image: linear-gradient(90deg,#102a2bf0,#102a2b68),url('/photos/apostles.jpg'); }
  .timeline-day { grid-template-columns: 43px 62px minmax(0,1fr) 12px; }
  .timeline-label b { font-size: .96rem; }
}

.trip-cover #today-plan:not([hidden]) + .cover-calendar { display: none; }

.is-editing .agenda-main > .place-photo { display: none; }
.stop-edit-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-edit-actions button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 3px 9px; min-height: 44px; min-width: 44px; }
.stop-edit-actions button:disabled { opacity: .5; }
.ledger-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-block: 12px; }
.ledger-filters label { display: grid; flex: 1 1 145px; gap: 4px; }
.ledger-filters select { min-height: 44px; width: 100%; }
.ledger-filters p { flex-basis: 100%; }
.member-list { list-style: none; padding: 0; }
.member-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
#member-editor { max-height: calc(100dvh - 32px); width: min(440px,calc(100% - 24px)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); }
#member-editor::backdrop { background: rgb(31 17 23 / .65); }

#undo-stop { position: fixed; z-index: 505; inset-inline-end: 16px; bottom: 80px; box-shadow: 0 3px 14px #172b2b26; }

.trip-stays { margin-block: 16px; padding: 16px; border: 1px solid #cdd9d2; border-radius: 16px; background: #fffdf8; }
.trip-stays > summary { cursor: pointer; font-weight: 700; }
.trip-stays > summary span { display: block; font-size: .85rem; font-weight: 400; margin-top: 4px; }
.stay-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 12px; margin-top: 18px; }
.stay-card { min-width: 0; border: 1px solid #d8ded8; border-radius: 12px; padding: 16px; }
.stay-card h3 { font-size: 1.1rem; margin-block: 6px; overflow-wrap: anywhere; }
.stay-card p { font-size: .9rem; margin-block: 8px; }
.stay-card small { display: block; font-weight: 400; }
.stay-card details { margin-block: 12px; }
.stay-card summary { cursor: pointer; font-size: .88rem; }
.stay-current { border-color: #287163; background: #edf7f1; }
.stay-total { margin-top: 18px; padding-top: 14px; border-top: 1px solid #cdd9d2; }
.event-food-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.event-food-gallery figure { margin: 0; min-width: min(80%,280px); flex: 1 0 75%; scroll-snap-align: start; }
.event-food-gallery .event-preview-photo { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; }
.event-food-gallery figcaption { font-size: .85rem; margin-top: 6px; }

.stay-gallery{margin-block:14px}.stay-gallery-strip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:10px}.stay-gallery-strip figure{flex:0 0 90%;margin:0;scroll-snap-align:start}.stay-gallery-strip img{display:block;width:100%;height:210px;object-fit:contain;border-radius:12px;background:#edf0e3}.stay-gallery-strip figcaption{font-size:.75rem;margin-top:6px}
