/* Reading layout uses the shared brand, while inline trip theme values stay in control. */
.reader-page > .wrap { max-width:1168px; }
.reader-page .share-bar { font-family:var(--sans); }
.reader-page .share-kind { font:13px var(--sans); letter-spacing:0; }
.reader-page .share-what { font:13px var(--sans); letter-spacing:0; }
.reader-page .head { padding-top:48px; }
.reader-page .head h1 { font-size:clamp(34px,4.5vw,56px); font-weight:400; line-height:1.15; max-width:24ch; margin:14px 0 28px; }
.reader-page .head-top .meta-line { font:13px var(--sans); letter-spacing:.02em; }
.reader-page .head .collage { aspect-ratio:16/9; border-radius:var(--radius-card); overflow:hidden; gap:8px; }
.reader-page .head .summary { font-size:18px; line-height:1.8; max-width:64ch; margin:28px 0 16px; }
.reader-page .head .stats { font-family:var(--sans); font-size:13px; }
.reader-page .highlights { margin:32px 0 44px; max-width:var(--reading-width); }
.reader-page .highlights h3 { font-family:var(--sans); letter-spacing:.08em; font-size:12px; }
.reader-page .track { max-width:960px; margin:40px auto 0; }
.reader-page .quote blockquote { font-family:var(--heading-font); }
.reader-page .note-ending { max-width:var(--reading-width); margin-inline:auto; }
.reader-page .share-invite { margin:32px auto 0; max-width:var(--reading-width); padding:24px 0 48px; border-top:1px solid var(--hairline); line-height:1.8; }
.reader-page .share-start { text-decoration:underline; text-underline-offset:4px; }
@media (max-width:720px) {
  .reader-page .head { padding-top:32px; }
  .reader-page .head h1 { font-size:36px; margin-bottom:22px; }
  .reader-page .head .collage { aspect-ratio:4/3; grid-template-columns:2fr 1fr; }
  .reader-page .head .summary { font-size:16px; }
  .reader-page .head .stats { gap:6px 0; }
  .reader-page .track { margin-top:32px; }
}
.reader-page .reader-retry { display:block; width:fit-content; margin-top:16px; }
@media (max-width:720px) {
  /* Reset the legacy single-column child rules along with the new cover grid. */
  .reader-page .head .collage > * { height:100%; }
  .reader-page .head .collage .ph-main { aspect-ratio:auto; }
  .reader-page .head .collage .side { grid-auto-flow:row; grid-auto-rows:minmax(0,1fr); grid-auto-columns:auto; }
  .reader-page .head .collage .side .photo { height:100%; aspect-ratio:auto; }
}
/* The timeline already includes the trip title and branded outer header. */
.reader-page:has(.trip-timeline:not([hidden])) .trip-masthead { display:none; }
/* Owners keep journal tasks with the journal identity in Discoveries too. */
body:has(.trip-discoveries:not([hidden])) .trip-masthead:has(.trip-owner-actions) { display:flex; max-width:1280px; margin-inline:auto; padding:24px clamp(20px,4vw,48px); z-index:31; }
.trip-masthead:has(.trip-owner-actions) > div { text-align:left; }
.trip-masthead:has(.trip-owner-actions) .trip-masthead-brand { display:none; }
.trip-masthead:has(.trip-owner-actions) strong { font:500 18px/1.5 var(--sans); }
/* The fixed reading dock must not cover link-access controls in the mobile sheet. */
.reader-page:has(.trip-owner-actions .share-pop:not([hidden])) .trip-view-nav { visibility:hidden; }
