@import url("styles.css") layer(template);
@import url("ledger.css") layer(template);

@font-face {
  font-family: "西南路书";
  src: url("assets/trip/type/noto-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "西南路书";
  src: url("assets/trip/type/noto-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-036F,U+058F,U+09F2-09F3,U+0E3F,U+17DB,U+1E00-1EFF,U+2000-20FF,U+2113,U+2122,U+2190-2199,U+2212,U+2C60-2C7F,U+A720-A7FF,U+FB00-FB06,U+FEFF,U+FFFD;
}
:root {
  --trip-font: "西南路书", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --text-body: 12pt;
  --text-subtitle: 16pt;
  --text-title: 20pt;
  --ink: #34352e;
  --muted: #626354;
  --lake: #625b3d;
  --lake-soft: #e8e5d4;
  --forest: #565d4d;
  --paper: #fff;
  --surface: var(--paper);
  --line: hsl(31.94 5% 69.02%);
  --terracotta: #746951;
  --shadow: 0 5px 20px #4646380c;
  --content: 1184px;
  --radius-lg: 20px;
}
*, *::before, *::after, *::placeholder {
  font-family: var(--trip-font);
  font-size: var(--text-body);
}
* {box-sizing:border-box;}
html {scroll-behavior:smooth;scroll-padding-top:83px;color-scheme:light;}
body {background:var(--paper);color:var(--ink);line-height:1.57;-webkit-text-size-adjust:100%;}
h1,h2,.ledger-hero h1 {font-size:var(--text-title);line-height:1.32;font-weight:720;letter-spacing:-.035em;}
h3,h4,h5,h6,.day-title,.stop-name,.ledger-card h2,.ledger-dialog h2,.ledger-confirm-card p,.place-map-sheet h2,.ticket-dialog h2 {font-size:var(--text-subtitle);line-height:1.42;font-weight:670;letter-spacing:-.02em;}
a {color:var(--lake);text-underline-offset:4px;}
a:hover {text-decoration-thickness:2px;}
button,input,select,textarea {font-family:var(--trip-font);font-size:var(--text-body);}
button,a,input,select,summary {outline-offset:4px;}
:focus-visible {outline:3px solid #867646;}
button,a {touch-action:manipulation;}
button:not(:disabled) {cursor:pointer;}
.icon-library {position:absolute;width:0;height:0;pointer-events:none;overflow:hidden;}
.ui-icon {width:20px;height:20px;flex:0 0 auto;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;}
[hidden] {display:none !important;}
.topbar {height:auto;min-height:68px;padding:var(--safe-top) 0 0;background:var(--paper);border:0;border-bottom:1px solid hsl(32.66 5% 56.27% / 67%);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
.topbar-inner {width:min(var(--content),calc(100% - 56px));min-height:68px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.wordmark {gap:11px;font-weight:740;letter-spacing:0;color:var(--ink);white-space:nowrap;}
.wordmark span {color:inherit;}
.wordmark>span:last-child {font-size:var(--text-subtitle);font-weight:720;letter-spacing:.015em;}
.wordmark .brand-icon {width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#58594a;color:#eee6b7;box-shadow:inset 0 0 0 1px #4a4b3e,inset 0 0 12px #e4d59138;}
.brand-icon .ui-icon {width:26px;height:26px;}
.topbar .primary-navigation,.travel-navigation-menu {display:flex;align-items:center;gap:7px;}
.travel-navigation-menu {position:static;width:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;}
.topbar nav a,.topbar .travel-navigation-menu a,.topbar .primary-navigation__ledger {border:1px solid transparent;gap:7px;padding:8px 13px;min-height:44px;color:#555748;background:transparent;border-radius:10px;font-weight:580;line-height:1.2;}
.topbar nav a:hover,.topbar nav a.is-current,.topbar nav a[aria-current="page"] {color:var(--lake);background:#f4f4f3;border-color:var(--line);}
.topbar .primary-navigation__ledger::after {display:none;}
main {overflow:clip;}
.hero,.trip-facts,.overview-grid,.section,.footer {width:min(var(--content),calc(100% - 56px));margin-inline:auto;}
.hero {isolation:isolate;position:relative;overflow:hidden;height:clamp(320px,30vw,398px);min-height:0;margin-top:26px;padding:36px 44px;display:flex;flex-direction:column;justify-content:flex-end;color:#fcf9e9;background:var(--surface);border-radius:20px;box-shadow:0 0 0 1px #aaa58d,0 0 0 4px #e6d5983b,0 5px 24px #8e86661a;}
.hero-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:64% 50%;z-index:-3;}
.hero::before {content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#1f201672 0%,#1f20168a 28%,#1f201649 42%,transparent 56%);}
.hero::after {content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffde9e7a,inset 0 0 22px #e9ae5720;}
.hero-copy {max-width:min(45%,465px);}
.hero__eyebrow {display:flex;align-items:center;gap:10px;margin:0 0 11px;color:#eee3ab;font-weight:640;letter-spacing:.07em;}
.hero__eyebrow::before {content:"";width:28px;height:2px;background:#d6ca87;box-shadow:0 0 8px #e5d69960;}
.hero h1 {margin:0;color:#fff9ed;letter-spacing:.015em;font-size:var(--text-title);text-shadow:0 2px 8px #25160f66;}
.hero__date {max-width:29em;text-wrap:pretty;margin:12px 0 20px;color:#fffaeb;font-weight:430;line-height:1.7;letter-spacing:0;}
.hero-button,.night-card button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 17px;border:1px solid #d4cfad;background:#e8e4c9;border-radius:10px;color:#424335;font-weight:650;text-decoration:none;box-shadow:inset 0 1px 0 #fbf9e8;}
.hero-button:hover,.night-card button:hover {background:#f5f1d6;}
.hero-button:active,.night-card button:active {transform:translateY(1px);}
.photo-location {position:absolute;bottom:24px;right:28px;display:inline-flex;align-items:center;gap:6px;color:#fff9ed;background:#24251cba;border-radius:6px;padding:3px 8px;}
.photo-location .ui-icon {width:17px;height:17px;}
.trip-facts {display:grid;grid-template-columns:1fr 1.3fr 1fr;margin-top:20px;margin-bottom:30px;padding:14px 22px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:inset 0 1px 1px #faf0df;}
.trip-facts>div {display:flex;gap:14px;align-items:center;min-width:0;padding:0 18px;border-left:1px solid var(--line);}
.trip-facts>div:first-child {padding-left:0;border:0;}
.trip-facts .ui-icon {height:24px;width:24px;color:var(--terracotta);}
.trip-facts dt,.trip-facts dd {margin:0;}
.trip-facts dt {color:var(--muted);}
.trip-facts dd {font-weight:630;color:var(--ink);line-height:1.5;}
.overview-grid {display:grid;grid-template-columns:minmax(0,2.13fr) minmax(275px,.93fr);align-items:start;gap:23px;}
.section,.footer {scroll-margin-top:85px;}
.section {padding:0;margin-top:34px;}
.route-section,.itinerary-section,.prep-section {padding:24px 25px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);}
.route-section {width:100%;max-width:none;margin:0;transform:none;min-width:0;}
.section-heading {align-items:center;margin:0 0 17px;gap:8px;}
.section-heading h2 {margin:0;font-size:var(--text-title);letter-spacing:-.035em;line-height:1.35;}
.soft-label {color:var(--muted);line-height:1.4;letter-spacing:0;font-weight:530;text-align:right;}
.heading-note {color:var(--muted);margin:6px 0 0;}
.route-notes {display:grid;gap:18px;min-width:0;}
.night-card {isolation:isolate;position:relative;overflow:hidden;border:1px solid hsl(33.43 5% 64.71%);border-radius:17px;padding:22px 24px;background:var(--surface);color:#424437;box-shadow:inset 0 0 0 1px #f6ebba88,0 0 12px #e1d39c49;}
.night-card>*,.sand-card>* {position:relative;}
.night-date {display:flex;align-items:center;gap:8px;color:#696646;font-weight:600;}
.night-card h2 {margin:12px 0 5px;font-size:var(--text-subtitle);letter-spacing:0;color:var(--ink);}
.night-card p {margin:0 0 14px;line-height:1.7;}
.night-card button {padding:7px 12px;min-height:42px;}
.sand-card {overflow:hidden;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);background:var(--surface);}
.sand-card>img {display:block;width:100%;height:auto;aspect-ratio:1248 / 568;object-fit:cover;}
.sand-card>div {padding:14px 20px 16px;}
.sand-card h3 {margin:0 0 5px;font-size:var(--text-subtitle);}
.sand-card p {margin:0 0 8px;line-height:1.6;}
.source-links {display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
.source-links span {color:var(--muted);}
.itinerary-section,.prep-section {margin-top:24px;}
.timeline::before {background:#bfa384;left:9px;}
.day-card {padding-left:30px;}
.day-dot {left:3px;top:27px;background:#807d5d;border-color:var(--surface);box-shadow:0 0 0 1px #a39c77;}
.day-card + .day-card {margin-top:0;}
.day-toggle {min-height:83px;padding:13px 0;align-items:center;}
.day-toggle>span:first-child {display:grid;gap:3px;}
.day-toggle:hover .day-title {color:var(--lake);}
.day-meta,.schedule-time {letter-spacing:0;}
.day-meta {font-weight:630;color:#666242;}
.day-title {margin:0;line-height:1.4;}
.day-locations {color:var(--muted);margin:0;line-height:1.55;}
.day-chevron {color:var(--lake);border-color:var(--line);}
.day-detail {padding:18px 0 12px;}
.schedule-item {padding:0 0 20px 148px;}
.schedule-item::before {left:122px;background:var(--line);}
.schedule-item::after {left:118px;border-color:#8a8260;background:#f8f7eb;}
.schedule-time {width:108px;line-height:1.5;font-weight:540;color:var(--muted);}
.stop-name {margin:0 0 2px;}
.stop-name span {font-size:var(--text-body);color:var(--muted);margin-left:.25em;font-weight:480;}
.schedule-text {line-height:1.65;}
.schedule-map-links {gap:13px;align-items:center;margin-top:5px;}
.schedule-map-link {display:inline-flex;gap:4px;align-items:center;min-height:35px;background:var(--surface);color:var(--lake);border:1px solid var(--line);border-radius:8px;font-weight:600;}
.schedule-map-link .ui-icon {width:17px;height:17px;}
.stop-source {padding-block:6px;}
.todo-form input,.todo-form button {min-height:46px;}
.todo-form input {background:var(--surface);border:1px solid var(--line);}
.todo-form button {background:var(--lake);color:white;border-radius:10px;}
.todo-list {margin-top:12px;}
.todo-empty {color:var(--muted);background:var(--surface);border-color:var(--line);}
.footer {margin:26px auto 0;padding:18px 0 32px;border-top:1px solid var(--line);align-items:center;}
.footer p {font-weight:600;}
.footer {display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:12px 20px;}
.photo-credits {color:var(--muted);max-width:55ch;}
.photo-credits summary {color:var(--lake);cursor:pointer;text-decoration:underline;text-underline-offset:4px;}
.footer .photo-credits p {margin:8px 0;font-weight:400;line-height:1.6;}
.photo-credits[open] {grid-column:1 / -1;grid-row:2;}
.footer>a {grid-column:3;grid-row:1;}
.footer a {font-weight:500;}
.ledger-view {background:transparent;color:var(--ink);}
.ledger-hero h2,.ledger-section-title h2 {font-size:var(--text-title);}
.ledger-view h3,.ledger-dialog h3 {font-size:var(--text-subtitle);}

/* Carry the same paper and ink through the working parts of the travel journal. */
.ledger-app,.ledger-dialog {--ledger-muted:var(--muted);}
.ledger-entry-card,.ledger-list-section,.ledger-transfer-list,.ledger-member-stats-list,.ledger-stats-overview,.ledger-dialog {
  border-color:var(--line);background:var(--surface);box-shadow:var(--shadow);
}
.ledger-transfer-row,.ledger-member-stat,.ledger-confirm-dialog,.ledger-currency-menu,.ledger-currency-result {background:var(--surface);}
.ledger-field-amount .ledger-amount-input,.ledger-converted-input-wrap,.ledger-currency-dropdown summary {background:var(--surface);}
.ledger-onboarding,.ledger-category-choice,.ledger-dialog-close {background:var(--surface);color:var(--ink);}
.ledger-primary-button {background:#62614c;color:#f8f7ea;}
.ledger-primary-button:hover,.ledger-secondary-button:hover {background:#514f3f;}
.ledger-icon-button,.ledger-input,.ledger-select,.ledger-currency-select-button,.ledger-note-field .ledger-input,.ledger-date-field .ledger-input {
  color:var(--ink);background:var(--surface);border-color:var(--line);
}
.ledger-icon-button:hover,.ledger-text-button:hover {background:#e8e4d0;}
.ledger-category-choice:has(input:checked) {color:var(--lake);background:#e4e2cd;border-color:#a29b78;}
.ledger-add-person>span {border-color:#a09b80;}
.ledger-input:focus,.ledger-select:focus,.ledger-amount-input:focus,.todo-form input:focus {
  border-color:#857e5d;box-shadow:0 0 0 3px #d7cb9660;
}
.todo-item input:focus-visible + .todo-check,.ledger-category-choice:has(input:focus-visible),.ledger-person-choice:has(input:focus-visible) {
  outline:2px solid #857e5d;outline-offset:3px;
}
.ledger-section-kicker {display:none;}
.ledger-entry-card h2,.ledger-list-section h2,.ledger-section-heading h2 {font-size:var(--text-subtitle);}
.ledger-stats-overview h2 {font-size:var(--text-title);}
.ledger-dialog h2 {font-size:var(--text-subtitle);}
.ledger-dialog::backdrop {background:#35261665;}
.ledger-confirm-actions button {font-size:var(--text-body);}
@media (max-width:380px) {
  .wordmark>span:last-child {display:inline;}
}
@media (max-width: 900px) {
  .topbar-inner,.hero,.trip-facts,.overview-grid,.section,.footer {width:calc(100% - 36px);}
  .overview-grid {grid-template-columns:minmax(0,1fr);}
  .route-section {width:100%;}
  .route-notes {grid-template-columns:1fr 1fr;}
  .trip-facts {grid-template-columns:.9fr 1.3fr 1fr;padding:13px 14px;}
  .trip-facts>div {gap:8px;padding:0 12px;}

}
@media (max-width: 620px) {
  html {scroll-padding-top:68px;}
  .topbar-inner {width:calc(100% - 24px);min-height:58px;gap:6px;}
  .topbar {min-height:58px;}
  .topbar .primary-navigation,.travel-navigation-menu {gap:1px;}
  .topbar nav a,.topbar .travel-navigation-menu a,.topbar .primary-navigation__ledger {padding:5px 6px;min-width:36px;min-height:42px;}
  .topbar nav .ui-icon {display:none;}
  .wordmark {gap:6px;}
  .wordmark .brand-icon {width:29px;height:29px;border-radius:8px;}
  .brand-icon .ui-icon {width:23px;height:23px;}
  .hero,.trip-facts,.overview-grid,.section,.footer {width:calc(100% - 24px);}
  .hero__date {max-width:100%;margin:8px 0 13px;line-height:1.58;}
  .trip-facts {display:flex;flex-wrap:wrap;margin-top:14px;margin-bottom:17px;gap:9px 15px;padding:12px 14px;}
  .trip-facts>div {display:block;padding:0;border:0;}
  .trip-facts .ui-icon {display:none;}
  .trip-facts>div:nth-child(2) {order:3;width:100%;border-top:1px solid var(--line);padding-top:6px;}
  .trip-facts>div:nth-child(2)>div {display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;}
  .trip-facts>div:nth-child(3) {margin-left:auto;}
  .trip-facts dt,.trip-facts dd {line-height:1.5;}
  .overview-grid {gap:15px;}
  .route-section,.itinerary-section,.prep-section {border-radius:14px;padding:17px 15px;}
  .route-section {width:100%;}
  .route-notes {grid-template-columns:1fr;gap:14px;}
  .night-card {padding:18px;}
  .sand-card>div {padding:12px;}
  .section-heading {margin-bottom:13px;align-items:flex-start;}
  .soft-label {white-space:nowrap;padding-top:5px;}
  .day-card {padding-left:19px;}
  .day-dot {left:0;width:10px;height:10px;}
  .timeline::before {left:5px;}
  .day-toggle {gap:6px;}
  .day-chevron {width:28px;height:28px;}
  .day-detail {padding-top:13px;}
  .schedule-item {padding:0 0 19px 15px;}
  .schedule-item::before {left:0;}
  .schedule-item::after {left:-4px;}
  .schedule-time {position:static;width:auto;display:block;margin-bottom:3px;}
  .stop-name span {display:block;margin-left:0;}
  .itinerary-section,.prep-section {margin-top:15px;}
  .footer {flex-wrap:wrap;gap:8px;margin-top:18px;}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  *,*::before,*::after {animation-duration:0s!important;transition-duration:0s!important;scroll-behavior:auto!important;}
}

.day-roads {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:13px 16px;margin:0 0 22px;background:var(--surface);border:1px solid var(--line);border-radius:10px;}
.day-roads p {margin:2px 0 0;line-height:1.5;}
.day-roads>div {flex:1 1 265px;min-width:0;}
.day-roads .schedule-map-link {padding-inline:10px;}
.day-toggle {scroll-margin-top:85px;}
.hero__eyebrow {letter-spacing:.025em;}
.detail-note {color:var(--ink);border-color:#aba37b;background:var(--surface);}
@media(max-width:620px){
  .topbar-inner {gap:4px;}
  .topbar .primary-navigation a {padding-inline:5px;}
  .trip-facts {display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .trip-facts>div:nth-child(2) {grid-column:1/-1;}
  .trip-facts>div:nth-child(3) {margin:0;}
  .section-heading .soft-label {padding:0;white-space:normal;}
  .photo-location {font-weight:500;}
}
@media(max-width:440px){.wordmark>span:last-child {display:none;} .topbar .primary-navigation {gap:3px;}}

/* Printed photographs sit directly in the itinerary's paper margin. */
.stop-layout.has-scene {display:grid;grid-template-columns:minmax(152px,26%) minmax(0,1fr);align-items:start;gap:clamp(18px,3vw,40px);padding-bottom:13px;}
.has-scene .schedule-content {grid-column:2;grid-row:1;max-width:63ch;}
.scene-print {display:block;grid-row:1;grid-column:1;width:100%;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--surface);cursor:zoom-in;}
button.scene-print:not(:disabled) {cursor:zoom-in;}
.scene-print img {display:block;width:100%;height:auto;aspect-ratio:1;}
#scene-dialog {position:fixed;inset:0;width:min(94vw,calc(72dvh + 36px),730px);max-width:94vw;max-height:94dvh;margin:auto;padding:15px 18px 20px;overscroll-behavior:contain;overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);box-shadow:0 14px 80px #2c2d2552;}
#scene-dialog::backdrop {background:#25271ed1;}
#scene-dialog form {display:flex;justify-content:flex-end;margin:0 0 6px;}
#scene-dialog button {background:transparent;color:var(--lake);border:0;padding:5px 0 5px 12px;min-height:36px;font-weight:600;}
#scene-full-image {display:block;width:100%;height:auto;aspect-ratio:1;}
#scene-title {font-size:var(--text-subtitle);margin:12px 0 4px;}
#scene-credit {color:var(--muted);line-height:1.5;margin:0;overflow-wrap:anywhere;}
.photo-credits[open] {max-width:100%;}
#scene-credits h3 {margin:17px 0 4px;}
#scene-credits ul {padding-left:20px;margin:8px 0;}
#scene-credits li {margin:7px 0;}
@media(max-width:760px){
  .stop-layout.has-scene {grid-template-columns:minmax(115px,31%) minmax(0,1fr);gap:16px;}
}
@media(max-width:620px){
  .stop-layout.has-scene {display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding-bottom:12px;}
  .scene-print {width:min(100%,340px);}
  #scene-dialog {width:94vw;padding:9px 11px 14px;}
}

@media(max-width:800px){
  .hero {display:block;height:auto;margin-top:16px;padding:0;background:var(--surface);border-radius:15px;color:var(--ink);}
  .hero::before {display:none;}
  .hero-photo {position:static;display:block;width:100%;height:auto;aspect-ratio:3 / 1;}
  .hero-copy {max-width:100%;padding:18px clamp(16px,3vw,26px) 22px;}
  .hero h1 {color:var(--ink);text-shadow:none;}
  .hero__eyebrow {color:var(--lake);margin:0 0 7px;}
  .hero__date {max-width:62ch;margin:7px 0 14px;color:var(--ink);}
  .photo-location {top:8px;left:9px;right:auto;bottom:auto;}
}

.visit-address {margin:7px 0 0;line-height:1.45;overflow-wrap:anywhere;}
.visit-address span {margin-right:5px;color:var(--muted);font-weight:600;}
@media(min-width:621px) and (max-width:740px){
  .topbar-inner {width:calc(100% - 24px);gap:10px;}
  .topbar nav a,.topbar .travel-navigation-menu a,.topbar .primary-navigation__ledger {padding-inline:7px;}
}
