/* Literata (SIL Open Font License, fonts/OFL.txt): bundled so the type is the same on
   every phone and works offline. Only regular and italic, Latin and Latin Extended. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(app/fonts/literata-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(app/fonts/literata-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(app/fonts/literata-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(app/fonts/literata-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* The Thinking Place website. Same colours and type as the app (brand/colors.json). */
:root {
  --bg: #FBFAF7; --fg: #262626; --muted: #6B6862; --faint: #E3DFD7; --accent: #4E7378; --logo-accent: #4E7378;
  --serif: "Literata", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #262626; --fg: #E3DFD7; --muted: #A09B92; --faint: #3D3B38; --accent: #8FB2B6; color-scheme: dark; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 300 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
main { max-width: 34rem; margin: 0 auto; padding: max(8vh, 2.5rem) 16px 2rem; min-height: calc(100dvh - 5rem); }
h1 { font: 400 2rem/1.25 var(--serif); margin: 0 0 .5rem; }
h2 { font: 400 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 .75rem; }
p { margin: 0 0 1rem; }
a { color: var(--fg); }
.muted { color: var(--muted); }
.logo-mark { display: block; width: 72px; height: 72px; margin: 0 0 1.5rem; }
.small { font-size: .9rem; }

/* Home: quiet like the app's daily page, read from the left. A small spaced label (like a
   path's name), the line in serif, short paragraphs, the app's short divider, text links. */
.home main { padding-top: max(10vh, 3rem); }
.home .name { font: 400 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem; }
.home h1 { font: 400 clamp(1.6rem, 6.5vw, 2.2rem)/1.3 var(--serif); margin: 0 0 2rem; text-wrap: balance; }
.home .welcome p { max-width: 30rem; text-wrap: pretty; }
.home h2 { margin-top: 0; letter-spacing: .18em; }
.home .phone p { font: italic 400 1.1rem/1.5 var(--serif); max-width: 28rem; margin: 0; text-wrap: pretty; }
/* The ways in: one card per device, the reader's own first and marked. */
.devices { margin-top: 2.5rem; }
.device { border: 1px solid var(--faint); border-radius: 14px; padding: 1.2rem 1.25rem 1rem; margin: 0 0 1rem; }
.device.mine { border-color: color-mix(in srgb, var(--accent) 55%, var(--faint)); }
.device-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.device-head h2 { font: 400 1.35rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--fg); margin: 0; }
.device-icon { width: 1.35rem; height: 1.35rem; flex: none; }
.device-icon rect, .device-icon path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.yours { display: none; margin-left: auto; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.device.mine .yours { display: inline; }
.device-sum { margin: 0 0 .8rem; }
.device-lead { margin: 1rem 0 .1rem; }
.guide-text { margin: .8rem 0 .2rem; }
.device-fine { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: .7rem 0 0; }
.device .way { margin-bottom: .2rem; }
.others { margin: 2.2rem 0 1rem; padding: 0 1.25rem; }  /* lines up with the text inside the cards */
.others h2 { margin: 0 0 .5rem; }
.perks { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0; font-size: .92rem; }
.guide { margin: .9rem 0 0; }
.guide summary { display: inline-block; cursor: pointer; list-style: none; padding-bottom: .15rem;
  border-bottom: 1px solid var(--faint); transition: border-color .3s; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "  ▾"; color: var(--muted); font-size: .8em; }
.guide[open] summary::after { content: "  ▴"; }
.guide summary:hover, .guide summary:focus-visible { border-bottom-color: var(--accent); outline: none; }
.guide[open] { animation: open .4s ease; }
@keyframes open { from { opacity: 0; } to { opacity: 1; } }
.guide .steps { margin: 1rem 0 .6rem; }
.cta { display: inline-block; margin: .4rem 0 .4rem; padding: .6rem 1.2rem; border: 1px solid var(--fg); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: .95rem; transition: background .3s, color .3s; }
.cta:hover, .cta:focus-visible { background: var(--fg); color: var(--bg); outline: none; }
/* The store button, where an app store has it: filled, so it reads before the browser link. */
.cta-main { margin-top: .6rem; background: var(--fg); color: var(--bg); }
.cta-main:hover, .cta-main:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cta-note { display: block; font-size: .8rem; color: var(--muted); margin: .1rem 0 0; }
/* The browser route as one sentence; tapping it (outside the link) opens the home-screen tip. */
details.lead { margin: 1rem 0 0; }
details.lead > summary { display: block; cursor: pointer; list-style: none; }
details.lead > summary::-webkit-details-marker { display: none; }
details.lead .tap { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
details.lead .tap::after { content: "\00a0\25BE"; color: var(--muted); font-size: .75em; }
details.lead[open] .tap::after { content: "\00a0\25B4"; }
details.lead > summary:focus-visible .tap { text-decoration-color: var(--accent); }
details.lead > summary:focus-visible { outline: none; }
details.lead[open] { animation: open .4s ease; }
/* A thought, as in the app: the passage with a soft quote mark, author and path, then the
   note and the question folded away. */
/* The top of the page is a centred cover (logo, name, line, the thought); what you read
   and act on below stays left-aligned. */
.home .hero { text-align: center; }
.home .hero .logo-mark { margin-left: auto; margin-right: auto; }
/* Set apart like the app's daily page: centred, between two short lines. */
.today { margin: 0 0 2.25rem; padding: 2rem 0; text-align: center; position: relative; }
.today::before, .today::after { content: ""; position: absolute; left: 50%; width: 2.5rem; margin-left: -1.25rem; border-top: 1px solid var(--faint); }
.today::before { top: 0; }
.today::after { bottom: 0; }
.today .today-text { max-width: 30rem; margin: 0 auto; text-wrap: balance; }
.today .today-text::before { margin-left: 0; }
.today .today-links { justify-content: center; }
.today .today-panel { margin-left: auto; margin-right: auto; text-wrap: pretty; }
.today-text { margin: 0; font: 400 1.3rem/1.5 var(--serif); }
/* The mark's own side bearing would push it right: pull it back to the text's left edge. */
.today-text::before { content: "“"; display: block; height: 1.6rem; margin-left: -.06em; font: 400 3.2rem/1 var(--serif); color: var(--accent); opacity: .35; pointer-events: none; }
.today-text.long { font-size: 1.12rem; line-height: 1.55; }
.today-text.verse { font-size: clamp(1.02rem, 4.1vw, 1.2rem); line-height: 1.5; }
.today-text .verse-line { display: block; }
.today-source { margin: .9rem 0 .5rem; font-size: .85rem; color: var(--muted); }
.today-path { color: var(--accent); }
.today-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0; }
.today-link { background: none; border: 0; padding: .2rem 0 .1rem; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer;
  border-bottom: 1px solid var(--faint); }
.today-link:hover, .today-link:focus-visible, .today-link[aria-expanded="true"] { color: var(--fg); border-bottom-color: var(--fg); outline: none; }
.today-panel { margin: .8rem 0 0; font-size: .92rem; color: var(--muted); max-width: 32rem; animation: open .4s ease; }
#today-context { white-space: pre-line; text-align: left; }  /* the long About has paragraphs */
.today-question { font: italic 400 1.08rem/1.5 var(--serif); color: var(--fg); }

/* While the cards are below the first screen, a soft chevron says there is more. */
.more-below { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--muted); z-index: 5;
  animation: nudge 2.4s ease-in-out infinite; }
.more-below svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); opacity: .55; } 50% { transform: translate(-50%, 4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .more-below { animation: none; } }
.pause { width: 2.5rem; height: 0; border-top: 1px solid var(--faint); margin: 2.75rem 0; }

.way { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-decoration: none; color: var(--fg); }
.way b { font: 400 1.05rem/1.35 var(--sans); padding-bottom: .2rem; border-bottom: 1px solid var(--faint);
  transition: border-color .3s; }
.way span { font-size: .8rem; color: var(--muted); }
.way:hover b, .way:focus-visible b { border-bottom-color: var(--accent); }
.way:focus-visible { outline: none; }
/* Not out yet: shown quietly, with a small note, and not clickable. */
.way.soon b { color: var(--muted); border-bottom-style: dashed; }
.way.soon em { font-style: normal; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-left: .45rem; vertical-align: .12em; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .75rem; }
.share-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }
.share-icon path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
footer { display: flex; justify-content: center; gap: .85rem; padding: 1.25rem 16px max(1.25rem, env(safe-area-inset-bottom));
  font-size: .8rem; letter-spacing: .08em; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
.dot { color: color-mix(in srgb, var(--muted) 55%, var(--bg)); }
.back { display: inline-block; margin-top: 2rem; font-size: .85rem; color: var(--muted); }

/* Phones: tighter spacing above the cards, so the reader's own card starts on the first screen. */
@media (max-width: 600px) {
  .home main { padding-top: max(5vh, 1.75rem); }
  .logo-mark { width: 60px; height: 60px; margin-bottom: 1rem; }
  .home .name { margin-bottom: .75rem; }
  .home h1 { margin-bottom: 1.25rem; }
  .home .pause { margin: 1.5rem 0; }
  .devices { margin-top: 0; }
}

/* Questions page: each question in the serif, the answer below it, like a short conversation. */
.faq h2 { font: 400 1.2rem/1.35 var(--serif); letter-spacing: 0; text-transform: none; color: var(--fg); margin: 2.2rem 0 .5rem; }
.faq h2:first-child { margin-top: 1.5rem; }
/* Four footer links: on a narrow phone they wrap as whole links, never mid-link. */
footer { flex-wrap: wrap; row-gap: .4rem; }
footer a { white-space: nowrap; }
@media (max-width: 420px) { footer { gap: .3rem .55rem; letter-spacing: .03em; } }

/* The Library pages (site/library/, tools/make_library_site.py): the app's Library page layout. */
.libpage-kind { color: var(--accent); font: 600 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .4rem; }
.libpage h1 { margin-bottom: .35rem; overflow-wrap: break-word; }
.libpage-intro { color: var(--muted); }
.libpage-header { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }
.libpage-also { color: var(--muted); font-size: .82rem; margin: -1rem 0 1.6rem; }
.libpage-header a, .libpage a.lib-in, .libpage-related a, .libpage-era a { color: inherit; text-decoration: underline 1px;
  text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.libpage p, .libpage li { line-height: 1.65; }
.libpage p { margin: 0 0 .9rem; }
.libpage ul { margin: 0 0 .9rem; padding-left: 1.1rem; }
.libpage li { margin: 0 0 .5rem; }
.libpage strong { font-weight: 500; }
.libpage-one { font: italic 400 1.15rem/1.5 var(--serif); margin: 0 0 1.4rem; }
.libpage h2 { margin-top: 2.2rem; }
.libpage ul.libpage-list { list-style: none; padding: 0; margin: 0; }
.libpage-list li { margin: 0; border-top: 1px solid var(--faint); }
.libpage-list li:last-child { border-bottom: 1px solid var(--faint); }
.libpage-list a { display: block; padding: .7rem 0; color: inherit; text-decoration: none; }
.libpage-list .t { display: block; font: 400 1.05rem/1.35 var(--serif); }
.libpage-list .d { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: .15rem; }
.libpage-list .d:empty { display: none; }
.libpage-era { margin: 1.8rem 0 0; padding: .9rem 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); font-size: .95rem; }
.libpage-era .k { color: var(--muted); font-size: .8rem; display: block; margin-bottom: .15rem; }
.libpage-met { list-style: none; padding: 0; margin: 0; }
.libpage-met li { padding: .8rem 0; margin: 0; border-top: 1px solid var(--faint); }
.libpage-met li:first-child { border-top: 0; padding-top: 0; }
.libpage-met a { color: inherit; text-decoration: none; display: block; }
.libpage-met .date, .libpage-met .s { display: block; color: var(--muted); font-size: .78rem; }
.libpage-met .q { display: block; font: 400 1.02rem/1.5 var(--serif); margin: .2rem 0; }
.libpage-related { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .95rem; }
.libpage ul.libpage-sources { list-style: none; padding: 0; margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); word-break: break-word; }
.libpage-sources li { margin: 0 0 .35rem; }
.libpage-sources a { color: var(--muted); }
.libpage-ai { color: var(--muted); font-size: .8rem; margin-top: 1.6rem; }
/* The one way into the app: at the end, set apart by a line, never in front of the page */
.libpage-app { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--faint); font-size: .95rem; }
.libpage-app p { margin: 0 0 .5rem; }
/* Wide screens (1000px and up): the app's rail beside each Library page, the page at reading width */
.librail { display: none; }
@media (min-width: 1000px) {
  main:has(.libwrap) { max-width: 66rem; }
  main:has(.libwrap) > .back { display: none; }  /* the rail and the browser's back button replace it */
  .libwrap { display: grid; grid-template-columns: 15rem minmax(0, 38rem); gap: 0 5rem; justify-content: center; align-items: start; }
  .librail { display: block; position: sticky; top: 2rem; font-size: .88rem; }
  .librail .home { display: block; font: 400 1.25rem/1.3 var(--serif); color: inherit; text-decoration: none; margin: 0 0 1.2rem; }
  .librail ul { list-style: none; margin: 0; padding: 0; }
  .librail .secs > li > a { display: block; padding: .35rem 0; color: var(--muted); text-decoration: none; }
  .librail .secs > li > a[aria-current], .librail a:hover { color: var(--fg); }
  .librail .sub { max-height: calc(90vh - 18rem); overflow-y: auto; scrollbar-width: thin; margin: .1rem 0 .6rem;
    padding-left: .8rem; border-left: 1px solid var(--faint); }
  .librail .sub a { display: block; padding: .18rem 0; color: var(--muted); text-decoration: none; font: 400 .92rem/1.35 var(--serif); }
  .librail .sub a[aria-current] { color: var(--fg); }
  .librail .sub .letter { margin: .6rem 0 .1rem; font-size: .65rem; letter-spacing: .14em; color: var(--muted); }
}
/* The Library home and sections, as in the app */
.libpage-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1rem; }
.libpage-list a > :first-child { flex: 1 1 0; min-width: min-content; }
.libpage-list .k { color: var(--accent); font: 600 .62rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-align: right; flex-shrink: 0; max-width: 45%; min-width: min-content; margin-left: auto; }
.libpage-letter { color: var(--muted); font-size: .72rem; letter-spacing: .14em; margin: 1.6rem 0 .4rem; }
.libpage-end { color: var(--muted); margin-top: 1.6rem; }
.libpage-fold { border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: .8rem 0; margin: 0 0 .5rem; }
.libpage-fold summary { cursor: pointer; list-style: none; }
.libpage-fold summary::-webkit-details-marker { display: none; }
.libpage-fold summary .t { display: block; font: 400 1.05rem/1.35 var(--serif); }
.libpage-fold summary .t::after { content: " ▾"; color: var(--muted); font-size: .8em; }
.libpage-fold[open] summary .t::after { content: " ▴"; }
.libpage-fold summary .d { display: block; color: var(--muted); font-size: .85rem; }
.libpage-fold[open] summary { margin-bottom: .8rem; }
.libhl-label { color: var(--accent); font: 600 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 2.4rem 0 .5rem; }
.libhl { display: block; color: inherit; text-decoration: none; padding: 1rem 0 1.1rem; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.libhl .kind { display: block; color: var(--muted); font-size: .78rem; margin: 0 0 .15rem; }
.libhl .t { display: block; font: 400 1.35rem/1.3 var(--serif); }
.libhl .d { color: var(--muted); font-size: .9rem; margin: .35rem 0 .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.libhl .go { font-size: .85rem; border-bottom: 1px solid var(--faint); }
.libhl .go::after { content: " →"; }
@media (min-width: 1000px) {
  main:has(.libhome) { max-width: 50rem; }
  .libhome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; align-items: start; }
  .libhome .libhl-label { margin-top: 0; }
}
.libpage .libhl-label { margin: 2.4rem 0 .5rem; }
.libsearch { width: 100%; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--faint);
  border-radius: 0; padding: .6rem 0; margin: .4rem 0 1.4rem; }
.libsearch:focus { outline: none; border-bottom-color: var(--muted); }
.libsearch::placeholder { color: var(--muted); }
.libsearch-hits .none { color: var(--muted); padding: .7rem 0; }
@media (min-width: 1000px) { .libhome .libhl-label { margin-top: 0; } }
.libpage .libpage-letter { margin: 1.6rem 0 .4rem; }
.libpage .libpage-end { margin-top: 1.6rem; }
/* "← the Library" at the top too, as in the app; on wide screens the rail replaces both */
.libpage-back { display: inline-block; color: var(--muted); font-size: .85rem; text-decoration: none; margin: 0 0 1.6rem; }
.libpage-back:hover { color: var(--fg); }
@media (min-width: 1000px) { .libpage-back { display: none; } }

/* Maps and timelines, Compare two paths, Questions for good conversations (as in the app) */
.libpage-hint { color: var(--muted); font-size: .85rem; }
.libpage .libpage-go a, .libpage-compare-k + .libpage-related a { color: inherit; }
.libpage .libpage-go a { font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--faint); }
.libpage .libpage-go a::after { content: " →"; }
.libpage .libpage-compare-k { color: var(--muted); font-size: .85rem; margin: 1rem 0 .3rem; }
.map-figure { margin: 1.5rem 0; }
.map-wrap { position: relative; }
.map { display: block; width: 100%; height: auto; }
.map-coast { fill: none; stroke: var(--fg); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-inset { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .7; }
.map-dot { position: absolute; display: block; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.map-dot::before { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg);
  transition: transform .2s ease; }
.map-dot::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0;
  animation: map-pulse 3.6s ease-out infinite; pointer-events: none; }
.map-dot:nth-of-type(4n+2)::after { animation-delay: .9s; }
.map-dot:nth-of-type(4n+3)::after { animation-delay: 1.8s; }
.map-dot:nth-of-type(4n)::after { animation-delay: 2.7s; }
@keyframes map-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-dot::after { animation: none; } }
.map-dot:hover::before, .map-dot:focus-visible::before { transform: scale(1.35); }
.map-zoom { display: block; position: absolute; border-radius: 4px; }
.libplace { padding: .9rem 0; border-top: 1px solid var(--faint); scroll-margin-top: 1rem; }
.libplace:target h3 { color: var(--accent); }
.libplace h3 { font: 400 1.1rem/1.35 var(--serif); margin: 0 0 .4rem; }
.libpage .libplace p { margin: 0 0 .5rem; font-size: .95rem; }
.libpage .libplace .where { font-weight: 500; margin-top: .8rem; }
.libpage .libplace .who { color: var(--muted); font-size: .88rem; margin-bottom: .2rem; }
.timeline { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0 0 0 1.1rem; border-left: 1px solid var(--faint); }
.libpage .timeline li { margin-bottom: 0; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(-1.1rem - 4px); top: .45rem; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tl-year { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; letter-spacing: .06em; }
.tl-path { display: block; font: 400 1rem/1.4 var(--serif); color: var(--fg); text-decoration: underline 1px;
  text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: .22em; }
.libpage .timeline .tl-break { position: relative; margin: 1.1rem 0 1.1rem -1.1rem; padding: .2rem 0; background: var(--bg);
  color: var(--muted); font-size: .75rem; display: flex; gap: .6rem; align-items: center; }
.tl-mark { font: 400 1rem/1 var(--serif); letter-spacing: -.1em; margin-left: -.3rem; }
.tl-gap { font-style: italic; }
.ttl-note { color: var(--muted); font-size: .85rem; }
.libpage ol.ttl { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1.4rem; position: relative; }
.ttl::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--faint); }
.libpage .ttl li { margin: 0; }
.libpage .ttl .ttl-century { margin: 1.4rem 0 .3rem; }
.ttl-century span { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.ttl-century::before { content: ""; position: absolute; left: calc(.3rem - 4px); width: 9px; height: 1px; margin-top: .55rem; background: var(--muted); }
.libpage .ttl .ttl-gap { margin: 1.2rem 0 .2rem; }
.ttl-gap span { color: var(--muted); font: italic 400 .9rem/1.4 var(--serif); }
.ttl-row { position: relative; }
.ttl-row::before { content: ""; position: absolute; left: calc(-1.1rem - 3px); top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.ttl-row.soft::before { background: var(--bg); border: 1px dashed var(--muted); width: 6px; height: 6px; }
.ttl-row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; padding: .55rem 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--faint); }
.ttl-row .t { font: 400 1.05rem/1.35 var(--serif); overflow-wrap: break-word; }
.ttl-row.soft .t { font-style: italic; }
.ttl-row .d { grid-column: 1; color: var(--muted); font-size: .8rem; }
.ttl-row .k { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font: 600 .6rem/1.4 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; text-align: right; max-width: 7.5rem; min-width: min-content; }
.libpage ul.libpage-points { list-style: none; padding: 0; }
.libpage .libpage-points li { margin: 0 0 .8rem; }
.libcite { display: block; color: inherit; text-decoration: none; padding: .85rem 0; border-top: 1px solid var(--faint); }
.libcite:last-child { border-bottom: 1px solid var(--faint); }
.libcite .p, .libfrom .p { color: var(--accent); font: 600 .6rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.libcite .q { display: block; font: 400 1.02rem/1.5 var(--serif); margin: .25rem 0 .2rem; }
.libcite .s { display: block; color: var(--muted); font-size: .85rem; }
.libpage ul.libqs { list-style: none; padding: 0; margin: 0; }
.libpage .libqs li { padding: .8rem 0; margin: 0; border-top: 1px solid var(--faint); }
.libqs li:last-child { border-bottom: 1px solid var(--faint); }
.libpage .libqs .q { font: 400 1.05rem/1.45 var(--serif); margin: 0 0 .25rem; }
.libfrom { color: var(--muted); font-size: .8rem; text-decoration: none; }
a.libfrom::after { content: " →"; }
.libfrom .p { font-size: .58rem; margin-left: .3rem; }
@media (min-width: 1000px) {
  .libmap .map-figure { width: min(78vw, 66rem); margin-left: 50%; transform: translateX(-50%); }
  .libmap .map-figure[data-map="europe"] { width: min(78vw, 52rem); }
}
.libq-give { font: inherit; font-size: .95rem; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--faint);
  padding: 0 0 .1rem; margin: 0 0 .5rem; cursor: pointer; }
.libq-card { border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: 1rem 0; margin: 0 0 .9rem; }
.libpage .libq-card .q { font: italic 400 1.25rem/1.45 var(--serif); margin: 0 0 .5rem; }
/* Compare two paths: the picker, as in the app (a picked path is ticked, bold, and outlined; never colour alone) */
.libpage .libpick-label { color: var(--muted); font-size: .85rem; margin: 0 0 .6rem; }
.libpage ul.libchips { display: flex; flex-wrap: wrap; gap: .5rem .55rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.libpage .libchips li { margin: 0; }
.libchip { font: inherit; font-size: .9rem; color: var(--fg); background: none; border: 1px solid var(--faint);
  border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.libchip[aria-pressed="true"] { border-color: var(--fg); font-weight: 500; }
.libchip[aria-pressed="true"]::before { content: "✓ "; }
.libchip:focus-visible { outline: 1px solid var(--muted); outline-offset: 3px; }
.libverdict { border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: 1rem 0 1.1rem; margin: 0 0 1rem; }
.libverdict-pair { display: block; color: inherit; text-decoration: none; }
.libverdict .t { display: block; font: 400 1.25rem/1.3 var(--serif); }
.libverdict .d { display: block; color: var(--muted); font-size: .9rem; margin: .35rem 0 .45rem; }
.libverdict .go { font-size: .85rem; border-bottom: 1px solid var(--faint); }
.libverdict .go::after { content: " →"; }
.libpage .libverdict .quiet { color: var(--muted); font: italic 400 1rem/1.5 var(--serif); margin: 0; }

/* Right after the thought: one quiet next step for the reader's own device. */
.get-it { text-align: center; margin: -1.25rem 0 2.25rem; }
.get-it .cta { margin: .25rem .2rem; padding: .5rem 1.15rem; font-size: .9rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.others { scroll-margin-top: 1.5rem; }
.get-it .cta-note { margin-top: .4rem; }
@media (max-width: 600px) { .get-it { margin: -1rem 0 1.75rem; } }
