/* Inner-page openings share the paper, ink and seal of the home journal. */
.phead.chapter-head, #v-route .phead.chapter-head {
  background:var(--fibers),var(--paper-hi); color:var(--ink-title);
  padding:clamp(24px,3.5vw,50px) 0; border-bottom:1px solid var(--paper-3);
}
.chapter-head .phead-in { display:grid; grid-template-columns:minmax(0,1fr) minmax(95px,185px); align-items:center; gap:clamp(22px,5vw,76px); }
.chapter-head .phead-copy { grid-area:1/1; padding:0; }
.chapter-head .idiom { grid-area:1/2; justify-self:center; align-items:center; padding-inline:14px; border-inline-start:1px solid #c9b58f; gap:6px; }
.chapter-head .idiom-zh { font-size:clamp(30px,3.1vw,47px); color:var(--lacquer); text-shadow:none; }
.chapter-head .idiom-py,.chapter-head .idiom-he { color:var(--paper-mute); }
.chapter-head h1 { font-size:clamp(31px,3.6vw,56px); line-height:1.13; color:var(--ink-title); }
.chapter-head .lede { color:var(--txt); margin-top:12px; max-width:68ch; }
.chapter-head :is(.kicker,.kicker .py,.crumbs,.crumbs a,.crumbs span,.h1-zh,.edition-links a,.inl-btn) { color:var(--lacquer); }
.chapter-head .actions { margin-top:16px; }
.phead.chapter-head .btn-lac, .about-links .btn-lac { color:#fffaf0; background:var(--lacquer); box-shadow:none; }
.phead.chapter-head .btn-lac:hover,.about-links .btn-lac:hover { color:white; background:#6d231e; }
.chapter-head .btn-ghost,.about-links .btn-ghost { background:transparent; color:var(--wine); box-shadow:inset 0 0 0 1px #ac917a; }
.chapter-head .btn-ghost:hover,.about-links .btn-ghost:hover { background:#ede1cd; color:var(--wine); }
#v-route .chapter-head .hub-jump,#v-route .chapter-head .hub-jump a { color:var(--wine); }
.chapter-head .edition-links { margin-top:8px; }
.chapter-head .edition-links a,.chapter-head .inl-btn { text-decoration:underline; text-underline-offset:3px; }
.chapter-head.trip-head .phead-in { grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr); }
.chapter-photo,.about-photo { margin:0; padding:5px; background:#fcf7eb; border:1px solid #aa977b; box-shadow:0 8px 16px -12px #544335; }
.chapter-photo { grid-area:1/2; }
.chapter-photo img { width:100%; aspect-ratio:1.95; object-fit:cover; }
.chapter-head.trip-head .idiom { grid-area:auto; display:block; text-align:start; max-width:none; border:0; margin-top:10px; padding:0; }
.chapter-head.trip-head .idiom-zh { display:inline; font-size:22px; }
.chapter-head.trip-head .idiom-zh span { writing-mode:horizontal-tb; }
.chapter-head.trip-head .idiom-py,.chapter-head.trip-head .idiom-he { display:inline; margin-inline-start:6px; }
.about-first { background:var(--fibers),var(--paper-hi); color:var(--txt); padding-block:clamp(26px,4vw,60px); border-bottom:1px solid var(--paper-3); }
.about-spread { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.92fr); gap:clamp(24px,5vw,72px); align-items:center; }
.about-first h1 { color:var(--ink-title); font:900 clamp(38px,4.5vw,66px)/1.08 var(--he); letter-spacing:-.025em; margin:0 0 18px; }
.about-first .about-copy>p:not(.kicker) { font-size:clamp(16px,1.35vw,19px); line-height:1.65; margin-top:10px; max-width:58ch; }
.about-first .kicker { color:var(--lacquer); }
.about-photo img { width:100%; height:auto; aspect-ratio:1.21; object-fit:cover; }
.about-photo figcaption { color:var(--paper-mute); padding:6px 5px 2px; font-size:14px; }
.about-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
#v-about .about-timeline { padding-block:clamp(24px,4vw,52px); }
.about-timeline h2 { font-size:clamp(25px,2.8vw,38px); color:var(--wine); }
@media(max-width:760px) {
  .chapter-head .phead-in,#v-route .chapter-head .phead-in { display:flex; flex-direction:column; gap:13px; align-items:stretch; }
  .chapter-head .phead-copy { order:-1; }
  .chapter-head .idiom { max-width:none; display:flex; flex-direction:row; flex-wrap:wrap; text-align:start; justify-content:flex-start; gap:5px 10px; padding:0; border:0; }
  .chapter-head .idiom-zh { font-size:21px; }
  .chapter-head .idiom-zh span { writing-mode:horizontal-tb; }
  .chapter-head .idiom-py,.chapter-head .idiom-he { font-size:13px; }
  .chapter-head .actions,#v-route .chapter-head .actions { flex-wrap:wrap; }
  .chapter-head .phead-copy .actions.dadd-act { margin-bottom:0; }
  .chapter-photo img { aspect-ratio:2.5; }
  .about-spread { grid-template-columns:1fr; gap:18px; }
  .about-photo { max-width:480px; }
  .about-photo img { aspect-ratio:1.8; }
}

.about-links .btn-ghost { padding-inline:4px; box-shadow:none; text-decoration:underline; text-underline-offset:4px; }

/* Paper pages, ink headings and cinnabar actions throughout the journal. */
:root {
  --journal-action: #882d23;
  --journal-heading: #292b24;
  --journal-edge: #cfc1a8;
}
#main .band.paper, #main .band.paper-2 { color: var(--txt); }
#main :is(.dmain,.gpage,.sec-head,.dbox,.teaser,.cta2,.pl-sec-h,.acard,.jbody) :is(h2,h3) {
  color:var(--journal-heading); text-shadow:none;
}
#main :is(.dbox,.acard,.jcard,.linkcard,.num-card,.pk-b,.pcards .pcard,.prep-card) { border-radius:4px; }
#main :is(.dbox,.acard,.jcard,.linkcard,.num-card) {
  background:var(--paper-hi); border:1px solid var(--journal-edge); box-shadow:none;
}
#main .dbox h3,#main .dmain h2 { border-bottom:1px solid var(--journal-edge); padding-bottom:7px; }
#main .dbox h3 { margin-bottom:9px; }
#main .dmain h2 { border-inline-start:3px solid var(--journal-action); padding-inline-start:10px; }
#main .acard:hover,#main .jcard:hover { border-color:#927858; }
#main :is(.paper,.paper-2,.chapter-head,.about-links,.place-cover) .btn-lac {
  background:var(--journal-action); color:#fff9ec; border-radius:4px; box-shadow:none;
}
#main :is(.paper,.paper-2,.chapter-head,.about-links,.place-cover) .btn-lac:hover { background:#692017; }
#main .journal-section { background:var(--fibers),var(--paper); color:var(--txt); color-scheme:light; }
#main .journal-section :is(h2,h3) { color:var(--journal-heading); }
#main .journal-section :is(.kicker,.myth-say .zh,.value-lab,.value-num,.price-big .n,.proof-t b,.num-card b,.aud li b,.inl-btn,.wa-num) { color:var(--journal-action); text-shadow:none; }
#main .journal-section :is(.lede,.sub-p,.proof-t,.cover li span:last-child,.fine-print,.price-big .u,.num-card span,.linkcard p,.cta2 p,.checker legend,.ticks,.verdict p) { color:var(--txt); }
#main .journal-section :is(.sch .card,.aud li,.verdict) { border:1px solid var(--journal-edge); border-radius:4px; background:var(--paper-hi); color:var(--txt); }
#main .journal-section .verdict b { color:var(--wine); }
#main .journal-section .opts span { border-color:#9b8b74; color:var(--txt); background:var(--paper-hi); }
#main .journal-section .opts input:checked + span { background:var(--selected); color:#fff; border-color:var(--selected); }
#main .journal-section .opts input:focus-visible + span { outline-color:var(--journal-action); }
#main .journal-section .gal-pause { background:var(--paper-hi); color:var(--wine); border-color:#ad9576; }
#main .journal-section .vlabel { background:var(--journal-action); color:#fff4db; }
#main .pl-wa { color:var(--txt); background:var(--paper-hi); box-shadow:none; border:1px solid var(--journal-edge); border-inline-start:4px solid var(--journal-action); border-radius:4px; }
#main .pl-wa :is(.pl-wa-tx h3,.pl-wa-lead,.pl-wa-when,.wa-num,.pl-wa-sub,.wa-copied) { color:var(--txt); }
#main .pl-wa .pl-wa-lead b { color:var(--wine); }
#main .pl-wa .pl-wa-on { color:#24513c; background:#e4ecdF; box-shadow:none; }
#main .pl-wa .btn-ghost { color:var(--wine); background:transparent; box-shadow:inset 0 0 0 1px #af9779; }
#main :is(.paper,.paper-2) .btn:focus-visible { outline:3px solid var(--journal-action); outline-offset:3px; }
/* The standalone links directory uses the same paper, seal and card treatment. */
body.journal-directory {
  color-scheme:light; color:#39352e;
  background:#f1e8d6 url('/img/noise1.webp');
  border-top:6px solid #54201f;
}
.journal-directory .group h2,.journal-directory .profile h1 { color:#54201f; }
.journal-directory .profile .avatar { border-radius:2px; border:4px solid #fff8eb; outline:1px solid #ae9676; box-shadow:none; }
.journal-directory .link { background:#fcf8ed; border:1px solid #cfc1a8; border-radius:4px; box-shadow:none; }
.journal-directory :is(.share,.socials a,.foot,.foot a,.foot .legal,.note) { color:#62352c; }
.journal-directory .tool { color:#6a3027; }
.journal-directory .link:focus-visible,.journal-directory a:focus-visible,.journal-directory button:focus-visible { outline:3px solid #882d23; }

/* The shared sign-up and route-choice dialogs follow the same journal palette. */
.ld-card { background:var(--fibers),var(--paper-hi); color:var(--txt); border:1px solid var(--journal-edge); border-top:4px solid var(--journal-action); border-radius:6px; box-shadow:0 18px 58px #29141142; color-scheme:light; }
:is(.ld-card,.ld-inl) :is(h2,.ld-k,.ld-l span,.ld-q legend,.ld-fine a) { color:var(--wine); }
:is(.ld-card,.ld-inl) :is(.ld-p,.ld-c,.ld-fine,.ld-inl-p,.ld-ok p) { color:var(--txt); }
.ld-card .ld-x { background:var(--paper-2); color:var(--wine); border-color:var(--journal-edge); }
:is(.ld-card,.ld-inl) .ld-l input { background:var(--paper-hi); color:var(--txt); border:1px solid #9b8b74; }
:is(.ld-card,.ld-inl) .ld-q span { color:var(--txt); background:var(--paper-hi); box-shadow:inset 0 0 0 1px #af9779; }
:is(.ld-card,.ld-inl) .ld-q input:checked+span { background:var(--selected); color:white; }
:is(.ld-card,.ld-inl) :is(.ld-go,.ld-ok .btn) { color:#fff8ed; background:var(--journal-action); box-shadow:none; border-radius:4px; }
:is(.ld-card,.ld-inl) .ld-err { color:#891f1a; }
:is(.ld-card,.ld-inl) input[aria-invalid="true"] { border-color:#891f1a; }
.rw-strip .rw-cta { border-radius:99px; }
/* The chooser carries the strip's violet and teal light into both views. */
.rw-box {
  color-scheme:dark;
  background:
    radial-gradient(ellipse at 0 0,rgba(255,85,216,.19),transparent 48%),
    radial-gradient(ellipse at 100% 0,rgba(60,220,255,.17),transparent 55%),
    linear-gradient(105deg,#1a1029,#220e2d 43%,#0b2431);
  border-color:#776180;
}
.rw-card { box-shadow:0 0 14px -7px var(--gl); }
.rw-go,.rw-back {
  background:#171021;
  border:1px solid var(--bd);
  color:color-mix(in srgb,var(--bd) 55%,white);
}
.rw-go { box-shadow:0 0 10px -5px var(--gl); }
.rw-back:hover { background:#302034; }
.rw-bar {
  border-color:var(--bd);
  background:linear-gradient(100deg,#201125,#101a29);
}
.rw-build {
  background:color-mix(in srgb,var(--bd) 76%,white);
  color:#170e20;
  box-shadow:0 0 18px -6px var(--gl);
}
.rw-dlg :is(.rw-card,.rw-back,.rw-build):focus-visible {
  outline:2px solid white;
  outline-offset:3px;
}

.rw-length { color:#fff; font:700 13px/1.3 var(--he); text-shadow:0 1px 4px #000; }
#pl-presets,#pl-map,.rw-recovery { scroll-margin-block-start:5rem; }
.rw-recovery { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-block-end:10px; padding:10px 14px; border-inline-start:3px solid var(--journal-action); background:var(--paper-hi); }
.rw-recovery[hidden] { display:none; }
.dest-notes { margin-block-start:28px; }
.dest-notes h3 { margin:0 0 12px; }
.dest-notes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.dest-notes figure { display:flex; align-items:flex-start; gap:14px; margin:0; padding-block-start:14px; border-top:1px solid var(--journal-edge); }
.dest-notes img { width:clamp(70px,8vw,106px); height:auto; aspect-ratio:1; object-fit:cover; }
.dest-notes blockquote { margin:4px 0 6px; font-size:15px; line-height:1.5; }
.dest-notes a { color:var(--journal-action); text-underline-offset:3px; }
@media(max-width:700px) { .dest-notes-grid { grid-template-columns:1fr; } }

.pk-search-tools { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 16px; margin:14px 0 8px; }
.pk-search-label { display:grid; gap:4px; flex:0 1 23rem; max-width:100%; font-weight:700; }
#pk-query { width:100%; min-height:44px; padding:8px 12px; border:1px solid #998773; border-radius:4px; color:var(--txt); background:var(--paper-hi); font:inherit; font-weight:400; }
.pk-selected-label,#pk-reset { display:inline-flex; align-items:center; gap:7px; min-height:44px; font:inherit; cursor:pointer; }
.pk-selected-label input { width:18px; height:18px; accent-color:var(--journal-action); }
#pk-reset { padding:0 4px; border:0; background:transparent; color:var(--journal-action); text-decoration:underline; text-underline-offset:3px; }
#pk-reset[hidden],#pk-more[hidden],.pk-trip-summary:empty,.pk-match-count:empty { display:none; }
.pk-match-count { margin:5px 0; color:var(--txt); }
.pk-trip-summary { flex-basis:100%; margin:0; text-align:center; color:var(--wine); font-weight:700; }
.pk-search-tools :focus-visible { outline:2px solid var(--journal-action); outline-offset:3px; }
.rt-travel { margin-block:8px 14px; color:var(--txt); font-size:14px; }
.rt-travel summary { cursor:pointer; color:var(--wine); font-weight:700; padding-block:6px; }
.rt-compare { margin-top:12px; padding:14px; border-inline-start:3px solid var(--journal-action); background:var(--paper-hi); }
.rt-compare h4,.rt-travel p { margin:0; }
.rt-compare p { margin:7px 0; }
.rt-diffs { display:flex; flex-wrap:wrap; gap:4px 16px; font-weight:700; }
.rt-travel[hidden],.rt-compare[hidden],#rt-proposal[hidden],#rt-confirm[hidden] { display:none; }
#rt-sort:disabled { opacity:.55; cursor:default; }

