/* Short exhibitions and explicit return paths around the existing art wall. */
html[data-surface] .context-return { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 0; font-size: 12px; color: var(--muted); }
html[data-surface] .context-return:hover { color: var(--ink); }
html[data-surface] .index-page .card-explore { padding: 0; text-align: left; }
html[data-surface] .routes-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 32px 0 24px; }
html[data-surface] .routes-heading h1 { font-size: 33px; }
html[data-surface] .routes-tools { display: flex; align-items: center; gap: 20px; }
html[data-surface] .routes-tools select { max-width: 160px; min-height: 36px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #332d3b; font-size: 11px; }
html[data-surface] .routes-heading p { color: var(--muted); font-size: 12px; }
html[data-surface] .route-theme { margin-bottom: 45px; }
html[data-surface] .route-theme-heading { scroll-margin-top: 18px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 20px 0; }
html[data-surface] .route-theme-heading > span { color: var(--accent); font: italic 14px Georgia,serif; }
html[data-surface] .route-theme-heading h2 { font-size: 23px; }
html[data-surface] .exhibition-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 36px; }
html[data-surface] .exhibition-choice { display: block; min-width: 0; }
html[data-surface] .route-previews { display: flex; align-items: center; gap: 11px; height: 170px; }
html[data-surface] .route-previews > span { display: flex; justify-content: center; align-items: center; flex: calc(var(--preview-ratio) * 2) 1 0; min-width: 0; height: 100%; }
html[data-surface] .route-previews img { width: 100%; height: 100%; object-fit: contain; }
html[data-surface] .route-choice-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 13px; }
html[data-surface] .route-choice-title h3 { font-size: 20px; line-height: 1.6; }
html[data-surface] .route-choice-title > span { flex-shrink: 0; font-size: 10px; color: var(--accent); }
html[data-surface] .exhibition-choice > p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 7px; max-width: 580px; }
html[data-surface] .exhibition-choice:hover h3 { color: var(--accent); }
html[data-surface] .segment-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0 0; }
html[data-surface] .segment-picker { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); }
html[data-surface] .segment-picker > span { white-space: nowrap; font: 12px Georgia,serif; }
html[data-surface] .segment-picker select { width: 146px; min-height: 40px; padding: 8px 5px; background: #332d3b; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); font-size: 11px; }
html[data-surface] .segment-heading { padding: 9px 0 18px; max-width: 900px; }
html[data-surface] .segment-heading h1 { font-size: 31px; line-height: 1.5; margin: 6px 0 8px; }
html[data-surface] .segment-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.95; max-width: 760px; }
html[data-surface] .segment-wall { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 36px; align-items: start; }
html[data-surface] .segment-work { margin: 0; min-width: 0; }
html[data-surface] .segment-image { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; padding: 0; }
html[data-surface] .segment-image img { width: 100%; height: auto; max-height: min(52svh,560px); object-fit: contain; }
html[data-surface] .segment-work.portrait .segment-image img { width: auto; max-width: 100%; }
html[data-surface] .segment-image > span { position: absolute; right: 10px; bottom: 10px; color: #4b3e52; background: #e9e2d7ed; padding: 8px 10px; font-size: 10px; opacity: 0; }
html[data-surface] .segment-image:hover > span, html[data-surface] .segment-image:focus-visible > span { opacity: 1; }
html[data-surface] .segment-work figcaption { padding-top: 13px; }
html[data-surface] .segment-work-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
html[data-surface] .segment-work-title h2 { min-width: 0; font-size: 22px; line-height: 1.5; }
html[data-surface] .segment-version { display: block; font: 11px/1.6 var(--sans); color: var(--accent); margin-top: 3px; }
html[data-surface] .segment-work-title h2 button { font: inherit; text-align: left; padding: 0; white-space: normal; overflow-wrap: anywhere; }
html[data-surface] .segment-work figcaption > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 4px; }
html[data-surface] .segment-work-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 5px; }
html[data-surface] .segment-work-links > * { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 0; font-size: 11px; color: var(--accent); }
html[data-surface] .segment-ending { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 45px; border-top: 1px solid var(--line); padding-top: 22px; }
html[data-surface] .segment-ending a { display: flex; flex-direction: column; align-items: start; gap: 8px; padding: 6px 0; }
html[data-surface] .segment-ending > :last-child { align-items: end; text-align: right; }
html[data-surface] .segment-ending small { font-size: 10px; color: var(--muted); }
html[data-surface] .segment-ending span { font-family: var(--serif); font-size: 20px; line-height: 1.5; }
html[data-surface] .segment-home { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }
html[data-surface] .linked-pair .context-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0 5px; }
html[data-surface] .linked-pair .trail-archive-list { right: 0; left: auto; }
html[data-surface] .linked-pair .pair-heading { padding: 7px 0 28px; }
html[data-surface] .linked-pair .pair-heading h1 { font-size: 25px; margin-top: 7px; }
html[data-surface] .linked-pair .encounter-figure h2 button { font: inherit; line-height: inherit; padding: 0; text-align: left; }
html[data-surface] .linked-pair .pair-ending { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 15px; }
html[data-surface] .compare-return { padding-top: 15px; }
@media(max-width:800px) {
  html[data-surface] .route-previews { height: 135px; }
  html[data-surface] .route-choice-title h3 { font-size: 18px; }
  html[data-surface] .exhibition-choices { gap: 28px 24px; }
  html[data-surface] .segment-wall { gap: 30px 24px; }
  html[data-surface] .segment-heading h1 { font-size: 28px; }
}
@media(max-width:520px) {
  html[data-surface] .site-header { height: 72px; flex-direction: row; align-items: center; padding: 0 5vw; gap: 12px; }
  html[data-surface] .brand { height: auto; gap: 6px; }
  html[data-surface] .brand b { font-size: 22px; letter-spacing: 2px; }
  html[data-surface] .brand small { font-size: 8px; margin-left: 6px; }
  html[data-surface] .site-header nav { gap: 16px; font-size: 10px; }
  html[data-surface] .site-header nav a { padding: 14px 0; }
  html[data-surface] .context-return { font-size: 11px; }
  html[data-surface] .routes-heading { padding: 18px 0 13px; display: block; }
  html[data-surface] .routes-tools { margin-top: 8px; gap: 10px; justify-content: space-between; }
  html[data-surface] .routes-tools select { max-width: 112px; font-size: 10px; }
  html[data-surface] .routes-heading h1 { font-size: 28px; }
  html[data-surface] .routes-heading p { font-size: 11px; margin-top: 0; }
  html[data-surface] .route-theme { margin-bottom: 30px; }
  html[data-surface] .route-theme-heading { padding: 16px 0; }
  html[data-surface] .route-theme-heading h2 { font-size: 21px; }
  html[data-surface] .exhibition-choices { grid-template-columns: 1fr; gap: 27px; }
  html[data-surface] .route-previews { height: 135px; }
  html[data-surface] .route-choice-title { margin-top: 9px; gap: 10px; }
  html[data-surface] .route-choice-title h3 { font-size: 20px; }
  html[data-surface] .exhibition-choice > p { font-size: 11px; margin-top: 5px; }
  html[data-surface] .segment-topbar { gap: 10px; padding: 8px 0 0; }
  html[data-surface] .segment-picker { gap: 9px; }
  html[data-surface] .segment-picker select { width: 110px; font-size: 10px; }
  html[data-surface] .segment-picker > span { font-size: 10px; }
  html[data-surface] .segment-heading { padding: 5px 0 16px; }
  html[data-surface] .segment-heading h1 { font-size: 25px; margin: 4px 0 5px; }
  html[data-surface] .segment-heading .eyebrow { font-size: 9px; }
  html[data-surface] .segment-heading > p:last-child { font-size: 11px; line-height: 1.85; }
  html[data-surface] .segment-wall { display: block; }
  html[data-surface] .segment-work { margin-bottom: 30px; }
  html[data-surface] .segment-image img { max-height: 48svh; }
  html[data-surface] .segment-image > span { opacity: 1; font-size: 9px; padding: 7px 9px; }
  html[data-surface] .segment-work figcaption { padding-top: 9px; }
  html[data-surface] .segment-work-title h2 { font-size: 21px; }
  html[data-surface] .segment-work figcaption > p { font-size: 12px; }
  html[data-surface] .segment-work-links { gap: 18px; }
  html[data-surface] .segment-work-links > * { font-size: 10px; }
  html[data-surface] .segment-ending { gap: 24px; margin-top: 24px; padding-top: 18px; }
  html[data-surface] .segment-ending span { font-size: 17px; }
  html[data-surface] .segment-home { margin-top: 14px; display: block; }
  html[data-surface] .segment-home .text-link { font-size: 11px; margin-right: 15px; }
  html[data-surface] .linked-pair .context-bar { padding-top: 8px; }
  html[data-surface] .linked-pair .pair-heading { padding: 4px 0 21px; }
  html[data-surface] .linked-pair .pair-heading h1 { font-size: 21px; }
  html[data-surface] .linked-pair .pair-ending { display: block; margin-top: 18px; padding-top: 9px; }
  html[data-surface] .linked-pair .pair-ending .text-link { display: flex; font-size: 11px; }
}
