/* Newsreader by Production Type, self-hosted under the SIL Open Font License.
   Upstream: https://github.com/google/fonts/tree/main/ofl/newsreader */
@font-face {
  font-family: Newsreader; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: Newsreader; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url('fonts/newsreader-latin-italic.woff2') format('woff2');
}
:root {
  --paper: #f4f1e8; --surface: #faf8f1; --ink: #233d32; --muted: #59665b;
  --green: #2f5542; --line: #d0d4c4; --focus: #80602a; --sage: #829b88;
  --sage-surface: #e4e9dc; --control-edge: #7d8b7e; --surface-alt: #eceee4;
  --code-surface: #eaece3; --on-green: #f4f1e8; --on-green-muted: #d5dfd2; --gold: #dfcea4;
  --display: Newsreader, 'Iowan Old Style', Georgia, serif;
  --shadow: 0 8px 24px #233d320a, 0 24px 60px #233d3207;
}
body.open-research {
  border-top: 3px solid var(--green);
  background: radial-gradient(ellipse at 90% 2%, #e4e9dc66, transparent 46rem), var(--paper);
  -webkit-font-smoothing: antialiased;
}
.open-research ::selection { background: #d7dfcc; color: var(--ink); }
.open-research h1, .open-research h2, .open-research .brand { font-family: var(--display); font-optical-sizing: auto; }
/* The outlined identity stays sharp without an additional font download. */
.open-research .site-header { container-type: inline-size; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); max-width: 76rem; align-items: center; gap: 0 1.5rem; padding: 1rem 2rem; border-bottom-color: var(--line); }
.open-research .site-header::after { content: ''; position: absolute; bottom: -1px; left: 2rem; width: 3rem; height: 2px; background: var(--green); }
.open-research .brand { position: relative; z-index: 1; grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: .85rem; flex-shrink: 0; font-size: 2.5rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.open-research .brand .brand-wordmark { min-width: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.open-research .brand-logo { display: block; width: 14rem; max-width: 100%; height: auto; }
.open-research .brand .brand-fallback { display: none; }
.open-research .brand small { display: block; margin-top: .5rem; font: 400 .63rem/1.5 system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.open-research .site-navigation { display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; grid-column: 1 / -1; grid-row: 1 / span 2; align-self: stretch; gap: 0; }
.open-research .site-navigation-bar { grid-column: 2; grid-row: 1; gap: 0; flex-wrap: wrap; padding-top: .65rem; }
.site-nav-links, .site-nav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-width: 0; max-width: 100%; }
.site-nav-tools { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.open-research .site-navigation-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem .8rem; border: 1px solid transparent; border-radius: .2rem; font-size: .88rem; font-weight: 450; text-decoration: none; white-space: nowrap; }
.open-research .site-navigation-bar a:hover { background: var(--sage-surface); color: var(--green); }
.open-research .site-navigation-bar a[aria-current] { background: var(--sage-surface); border-bottom-color: var(--green); font-weight: 650; }
.site-search-icon { fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.site-browse-icon { fill: none; stroke: currentColor; stroke-width: 1.2; flex-shrink: 0; }
.open-research .site-nav-tools > button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-left: .3rem; min-height: 44px; padding: .55rem .85rem; font-size: .88rem; border: 1px solid var(--control-edge); background: var(--surface); color: var(--green); }
.open-research .site-nav-tools > button[hidden] { display: none; }
.open-research .site-nav-tools > button:hover, .open-research .site-nav-tools > button[aria-expanded=true] { border-color: var(--green); background: var(--sage-surface); }
.site-nav-tools > button[aria-expanded=true] span { display: inline-block; transform: rotate(180deg); }
.open-research .site-menu-panel { grid-column: 1 / -1; grid-row: 2; gap: 1rem 1.5rem; margin-top: .85rem; padding: 1rem; border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: .2rem; background: var(--surface); box-shadow: var(--shadow); }
.open-research .site-nav-label { font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; padding: 0 .55rem .45rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.open-research .site-menu-panel a { padding: .6rem .55rem; border-radius: .15rem; font-size: .85rem; line-height: 1.5; text-decoration: none; }
.open-research .site-menu-panel a:hover, .open-research .site-menu-panel a[aria-current] { background: var(--sage-surface); text-decoration: underline; text-underline-offset: .2em; }

/* Visual reading routes use the original artwork as linked previews. */
.visual-directory-intro { max-width:64ch; margin-bottom:1.5rem; }
.visual-guide-filter { max-width:42rem; margin:1.5rem 0 .65rem; }
.visual-guide-filter label { margin-bottom:.4rem; font-size:.9rem; }
.visual-guide-filter > div { display:flex; gap:.65rem; align-items:center; }
.visual-guide-filter input { min-width:0; max-width:none; margin:0; }
.visual-guide-filter button { background:var(--surface); color:var(--green); border-color:var(--line); padding:.45rem .9rem; }
.visual-guide-filter[hidden],.visual-guide-card[hidden],#visual-guide-empty[hidden] { display:none; }
.visual-directory-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.4rem 1rem; margin-bottom:1.2rem; }
.visual-guide-jump { display:flex; gap:.2rem; flex-wrap:wrap; }
.visual-guide-jump a { display:inline-flex; justify-content:center; align-items:center; min-width:40px; min-height:44px; padding:.35rem .5rem; border-bottom:1px solid var(--line); font-size:.9rem; text-decoration:none; }
.visual-guide-jump a:hover { background:var(--sage-surface); }
#visual-guide-count { margin:.4rem 0; color:var(--muted); font-size:.88rem; }
.visual-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; list-style:none; margin:0; padding:0; }
.visual-guide-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:.3rem; background:var(--surface); scroll-margin-top:1.2rem; }
.visual-guide-grid > li { margin:0; }
.visual-guide-card:target { outline:2px solid var(--green); outline-offset:3px; }
.visual-guide-open { display:grid; flex:1; grid-template-columns:8.5rem minmax(0,1fr); gap:1rem; padding:1.15rem; color:var(--ink); text-decoration:none; }
.visual-guide-open:hover h2 { text-decoration:underline; text-underline-offset:.15em; }
.visual-guide-preview { display:flex; align-items:center; align-self:stretch; min-width:0; min-height:125px; padding:.35rem; background:white; border:1px solid var(--line); }
.visual-guide-preview img { display:block; width:100%; max-height:160px; object-fit:contain; }
.visual-guide-copy { min-width:0; }
.open-research .visual-guide-copy .eyebrow { display:flex; flex-wrap:wrap; gap:.25rem .8rem; margin:0 0 .6rem; font-size:.66rem; }
.visual-guide-copy .eyebrow span { color:var(--muted); font-weight:400; letter-spacing:0; text-transform:none; }
.open-research .visual-guide-copy h2 { font-size:1.45rem; margin:0 0 .55rem; line-height:1.17; }
.visual-guide-copy > p:not(.eyebrow) { font-size:.87rem; line-height:1.6; margin:0 0 .65rem; color:var(--muted); }
.visual-guide-action { display:inline-flex; align-items:center; gap:.7rem; font-size:.87rem; font-weight:600; color:var(--green); }
.visual-guide-formats { display:flex; flex-wrap:wrap; gap:0 1.1rem; padding:.25rem 1.15rem; border-top:1px solid var(--line); }
.visual-guide-formats a { display:inline-flex; align-items:center; min-height:44px; font-size:.78rem; }
.visual-directory-footer { margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--line); font-size:.85rem; color:var(--muted); }
.visual-directory-footer nav a { min-height:44px; padding-block:.45rem; }
.visual-guide-routes .visual-guide-switch > summary { min-height:44px; padding:.45rem 0; cursor:pointer; color:var(--green); }
.visual-guide-switch[open] { flex:1 1 100%; }
.visual-guide-switch nav { width:100%; }
.visual-guide-switch ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.2rem 1rem; width:100%; list-style:none; margin:.4rem 0; padding:.65rem; background:var(--surface); border:1px solid var(--line); }
.visual-guide-switch li { margin:0; min-width:0; }
.visual-guide-switch li a { display:flex; gap:.65rem; align-items:baseline; min-height:44px; padding:.4rem .5rem; font-size:.85rem; text-decoration:none; }
.visual-guide-switch li a strong { flex:0 0 5.3rem; font-size:.78rem; }
.visual-guide-switch li a:hover,.visual-guide-switch li a[aria-current] { background:var(--sage-surface); }
.quantum-visual-jump { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; margin:1.5rem 0; }
.quantum-visual-jump a,.quantum-visual-sequences li a { display:inline-flex; align-items:center; min-height:44px; }
.quantum-visual-sequences { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; }
.quantum-visual-sequences section { min-width:0; scroll-margin-top:1rem; }
.quantum-visual-sequences ol { padding-left:1.6rem; }
.quantum-visual-sequences li { padding-left:.35rem; margin-bottom:.3rem; }
@media(max-width:700px) { .quantum-visual-sequences { grid-template-columns:1fr; } }
@media(max-width:900px) { .visual-guide-grid { grid-template-columns:1fr; } .visual-guide-open { grid-template-columns:9rem minmax(0,1fr); } }
@media(max-width:500px) { .visual-guide-open { grid-template-columns:5.5rem minmax(0,1fr); gap:.75rem; padding:.85rem; } .open-research .visual-guide-copy h2 { font-size:1.22rem; } .visual-guide-preview { min-height:95px; } .visual-guide-preview img { max-height:120px; } .visual-guide-formats { padding-inline:.85rem; gap:0 1rem; } .visual-guide-switch ul { grid-template-columns:1fr; } }
@media print { .visual-guide-filter,.visual-guide-jump,.visual-guide-switch { display:none; } .visual-guide-card { break-inside:avoid; } }

/* Warm table surfaces and alternating rows keep dense comparisons readable. */
.open-research table { --table-base: var(--surface); --table-alt: var(--surface-alt); --table-heading: var(--sage-surface); background: var(--table-base); }
.open-research table td { background: var(--table-base); }
.open-research table th { background: var(--table-heading); }
.open-research table tbody > tr:nth-child(even) > td { background: var(--table-alt); }
.open-research table caption { background: var(--table-heading); padding: .65rem .8rem; border: 1px solid var(--line); border-bottom: 0; text-align: left; font-size: .9rem; font-weight: 600; line-height: 1.5; }
.open-research table tfoot td { background: var(--table-heading); font-weight: 600; }

.open-research h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 450; line-height: 1.08; letter-spacing: -.025em; }
.open-research h2 { font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.open-research .eyebrow { font-size: .77rem; letter-spacing: .09em; }
.open-research .status { font-size: .9rem; }
.open-research .button, .open-research button { min-height: 48px; font-weight: 550; border-radius: .2rem; }
.open-research .button:hover { text-decoration: underline; text-underline-offset: .2em; box-shadow: 0 4px 12px #233d3215; }
.open-research .route { border-radius: .2rem; border-color: var(--control-edge); }
.open-research .route h2, .open-research .route h3 { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.open-research .route:hover { box-shadow: var(--shadow); background: var(--surface); }
.open-research .reading-navigation .reading-step, .open-research .reading-menu-panel { border-radius: .2rem; }
.open-research .reading-menu-panel { box-shadow: 0 8px 32px #233d3218; }
.open-research input:not([type=checkbox]):not([type=radio]):focus-visible, .open-research select:focus-visible { box-shadow: 0 0 0 5px var(--sage-surface); }
.open-research footer { width: 100%; font-size: .8rem; padding: 1rem 2rem 1.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.open-research .footer-links { gap: .25rem 1.3rem; line-height: 1.6; }
.open-research .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .35rem; }
.footer-github { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .2rem; background: var(--surface); font-weight: 550; text-decoration: none; white-space: nowrap; }
.footer-github:hover { border-color: var(--green); text-decoration: underline; text-underline-offset: .2em; }

/* A typographic introduction and one concrete entry into the collection. */
.home-interactive { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; padding: 1.2rem 0; margin-top: 1.5rem; border-block: 1px solid var(--line); }
.home-interactive h2 { font: 400 1.9rem/1.2 var(--display); margin: 0 0 .35rem; }
.home-interactive p { font-size: .85rem; color: var(--muted); margin: 0; }
.home-interactive a { display: inline-flex; gap: 1.5rem; align-items: center; min-height: 44px; font-size: .85rem; }
.home-page main { padding-top: 0; padding-bottom: 1rem; min-height: 0; }
.home-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center;
  gap: clamp(1.5rem, 3.2vw, 2.75rem); padding: 2.2rem 0 2rem;
}
.home-hero::before { content: ''; position: absolute; inset: .8rem -1.2rem .6rem; z-index: -1; pointer-events: none; border: 1px solid var(--line); border-radius: .4rem; background: linear-gradient(115deg, var(--surface), var(--sage-surface)); }
.home-copy { min-width: 0; }
.home-kicker { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.1rem; }
.home-kicker::before { content: ''; flex: 0 0 1.6rem; height: 1px; background: var(--green); }
.home-page .home-hero h1 { margin: 0; font-size: clamp(3rem, 5.7vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.home-hero h1 em { color: var(--green); font-weight: 400; }
.home-lede { max-width: 56ch; font-size: 1.08rem; line-height: 1.7; color: var(--muted); margin: 1.25rem 0 0; }
.home-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
.home-actions .button { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .8rem 1.05rem; font-size: .88rem; }
.home-actions .button-secondary { border-color: transparent; background: transparent; color: var(--green); padding-inline: .2rem; text-decoration: underline; text-underline-offset: .35em; }
.home-actions .button-secondary:hover { background: transparent; box-shadow: none; text-decoration-thickness: 2px; }
.home-feature {
  position: relative; display: block; min-width: 0; padding: 1.5rem 1.5rem 1.2rem; border: 1px solid #496451; border-radius: .35rem;
  color: var(--on-green); text-decoration: none; box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 100% 0, #81968029, transparent 75%), #233d32;
}
.home-feature::before { content: ''; position: absolute; top: -1px; left: 1.5rem; width: 3rem; height: 2px; background: var(--gold); }
.home-feature:hover { background-color: #1e352b; text-decoration: none; box-shadow: 0 14px 40px #233d3225; }
.home-feature .home-feature-kicker { color: var(--on-green-muted); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; }
.home-feature-kicker > span { color: #b0c1ac; margin-inline: .35rem; }
.home-feature h2 { font-size: clamp(2rem, 3vw, 2.55rem); font-weight: 400; line-height: 1.07; color: var(--on-green); margin: 0; letter-spacing: -.025em; }
.home-feature h2 em { font-weight: 400; color: var(--gold); }
.home-feature-description { font-size: .88rem; line-height: 1.7; color: var(--on-green-muted); margin: .9rem 0 0; }
.home-sequence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; margin: 1.15rem 0; padding: .75rem 0; border-block: 1px solid #9baa984d; }
.home-sequence > div { min-width: 0; text-align: center; }
.home-sequence dt { font: italic 400 .82rem/1.4 var(--display); color: #c7d4c1; }
.home-sequence dt sub { font-size: .7em; }
.home-sequence dd { margin: .35rem 0 0; font: 400 clamp(1.35rem, 2.1vw, 1.8rem)/1.15 var(--display); color: var(--on-green); font-variant-numeric: lining-nums tabular-nums; }
.home-feature-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; font-weight: 550; min-height: 44px; }
.home-feature-link > span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #afbeaa80; border-radius: 50%; font-size: 1rem; }
.home-feature:hover .home-feature-link { text-decoration: underline; text-underline-offset: .3em; }
.home-feature:focus-visible { outline-color: var(--focus); outline-offset: 5px; }
.home-ways { margin-top: 1.5rem; }
.home-ways > h2 { font-size: 2.2rem; margin: 0 0 .5rem; font-weight: 400; }
.home-ways > p { font-size: .9rem; color: var(--muted); margin: 0; }
.home-route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.home-route { position: relative; display: block; min-width: 0; border: 1px solid var(--line); border-top-color: var(--control-edge); border-radius: .25rem; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: 0 2px 6px #233d3204; }
.home-route:hover { background: var(--surface-alt); border-color: var(--green); box-shadow: 0 5px 16px #233d320a; text-decoration: none; }
.home-route-number { display: block; font: italic 400 2rem/1 var(--display); letter-spacing: -.03em; color: var(--muted); }
.home-route .home-route-label { margin: .65rem 0 .45rem; color: var(--muted); font-size: .63rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.home-route h3 { font: 400 1.8rem/1.1 var(--display); color: var(--green); letter-spacing: -.02em; margin: 0; min-height: 2.2em; }
.home-route:hover h3, .home-route:focus-visible h3 { text-decoration: underline; text-underline-offset: .17em; text-decoration-thickness: 1px; }
.home-route p { color: var(--muted); font-size: .87rem; line-height: 1.65; margin: .8rem 0 0; }
.home-route-arrow { position: absolute; top: 1rem; right: 1.1rem; font-size: 1.2rem; color: var(--green); }
.home-notes { margin-top: 1rem; padding-inline: 1.1rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface-alt); }
.home-more, .home-status { margin: 0; padding: 0; border: 0; }
.home-status { border-top: 1px solid var(--line); }
.home-more > summary, .home-status > summary { min-height: 48px; padding: .65rem .1rem; color: var(--green); text-underline-offset: .18em; cursor: pointer; font-size: .88rem; font-weight: 500; }
.home-more > summary:hover, .home-status > summary:hover { text-decoration: underline; }
.home-more > summary::marker, .home-status > summary::marker { color: var(--green); font-size: .75em; }
.home-collection-list { max-width: 75ch; padding-bottom: 1rem; }
.home-collection-list h2 { margin-top: 1rem; }
.home-collection-list dt a { display: inline-flex; align-items: center; min-height: 44px; }
.home-collection-list dd { color: var(--muted); margin: .2rem 0 1rem; }
.home-collection-list li a, .home-status p a { display: inline-block; padding: .4rem 0; min-height: 44px; }
.home-status p { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .open-research .button, .open-research button, .open-research .route, .home-route, .home-feature,
  .open-research .reading-step { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
  .home-actions .button:not(.button-secondary):hover, .home-feature:hover { transform: translateY(-2px); }
  .home-copy { animation: home-arrive .45s ease-out both; }
  @keyframes home-arrive { from { transform: translateY(7px); } to { transform: none; } }
}
@media (max-width: 1000px) {
  .home-hero { gap: 1.5rem; }
  .home-feature { padding: 1.4rem 1.3rem 1.1rem; }
  .home-page .home-hero h1 { font-size: clamp(3rem, 5.7vw, 4rem); }
  .home-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .home-route h3 { min-height: 0; }
}
@media (max-width: 860px) {
  .open-research .site-header { grid-template-columns: minmax(0, 1fr); }
  .open-research .site-navigation { grid-row: 2 / span 2; width: 100%; margin-top: .85rem; }
  .open-research .site-navigation-bar { grid-column: 1; justify-content: space-between; padding-top: 0; }
  .site-nav-tools { margin-left: auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.8rem 0 1.6rem; }
  .home-hero::before { inset: .6rem -.8rem .5rem; }
  .home-copy { max-width: 46rem; }
  .home-page .home-hero h1 { font-size: clamp(3rem, 7.7vw, 4.5rem); }
  .home-lede { max-width: 56ch; }
  .home-feature { max-width: none; padding: 1.5rem; }
  .home-feature h2 { font-size: 2.5rem; }
}
@media (max-width: 620px) {
  .open-research .site-header { padding: .85rem 1.2rem .65rem; }
  .open-research .site-navigation { margin-top: .55rem; }
  .open-research .site-header::after { left: 1.2rem; }
  .open-research .brand { font-size: 2.2rem; gap: .7rem; max-width: calc(100% - 5.25rem); }
  .open-research .brand-logo { width: 12.5rem; }
  .open-research .brand small { font-size: .58rem; letter-spacing: .06em; margin-top: .4rem; }
  .site-nav-links, .site-nav-tools { gap: .15rem; }
  .site-nav-tools { padding-left: .55rem; }
  .open-research .site-navigation-bar a, .open-research .site-nav-tools > button { font-size: .78rem; padding-inline: .5rem; }
  .open-research .site-nav-tools > button { position: absolute; top: 1.05rem; right: 1.2rem; gap: .35rem; margin: 0; }
  .site-search-icon { width: 14px; height: 14px; }
  .site-browse-icon { display: none; }
  .open-research .site-menu-panel { padding: .8rem; gap: 1rem; }
  .open-research footer { padding: .75rem 1.2rem 1rem; }
  .footer-inner { align-items: flex-start; gap: .6rem; }
  .footer-github { max-width: 100%; white-space: normal; }
  .open-research .footer-links { flex-direction: column; gap: 0; }
  .home-hero { padding: 1.35rem 0 1.2rem; gap: 1.25rem; }
  .home-hero::before { inset: .4rem -.8rem .35rem; }
  .home-kicker { font-size: .62rem; letter-spacing: .07em; margin-bottom: 1rem; gap: .6rem; }
  .home-kicker::before { flex-basis: 1.2rem; }
  .home-page .home-hero h1 { font-size: clamp(2.6rem, 9.4vw, 3.5rem); line-height: 1.04; }
  .home-lede { font-size: 1rem; margin-top: .95rem; }
  .home-actions { margin-top: 1rem; gap: .5rem 1rem; }
  .home-actions .button { font-size: .86rem; }
  .home-feature { max-width: none; padding: 1.25rem 1.1rem 1rem; }
  .home-feature::before { left: 1.1rem; }
  .home-feature .home-feature-kicker { font-size: .59rem; }
  .home-feature h2 { font-size: 2.3rem; }
  .home-feature-description { font-size: .87rem; }
  .home-sequence { margin: .85rem 0 .7rem; }
  .home-sequence dd { font-size: 1.55rem; }
  .home-ways { margin-top: 1.25rem; }
  .home-ways > h2 { font-size: 1.9rem; }
  .home-route-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: .85rem; }
  .home-route { display: grid; grid-template-columns: 2.2rem minmax(0,1fr); gap: .7rem; padding: .9rem 2.2rem .9rem .95rem; }
  .home-route-number { font-size: 1.9rem; }
  .home-route .home-route-label { margin: 0 0 .6rem; }
  .home-route h3 { font-size: 1.7rem; }
  .home-route-arrow { top: 1rem; right: .8rem; }
  .home-notes { padding-inline: .85rem; }
}
@media (forced-colors: active) {
  .open-research .brand-logo { display: none; }
  .open-research .brand .brand-fallback { display: block; color: LinkText; }
  .open-research table { --table-base: Canvas; --table-alt: Canvas; --table-heading: Canvas; }
  body.open-research { background: Canvas; border-top-color: CanvasText; }
  .home-hero::before { background: Canvas; border-color: CanvasText; }
  .home-feature, .home-route, .home-actions .button { border-color: ButtonText; box-shadow: none; }
  .home-feature, .home-feature h2, .home-feature h2 em, .home-feature p, .home-feature span,
  .home-sequence dt, .home-sequence dd { background: Canvas; color: LinkText; }
  .home-sequence { border-color: CanvasText; }
  .home-kicker::before { background: CanvasText; }
  .open-research .site-navigation-bar a[aria-current] { border-color: LinkText; }
}
@media (max-width: 360px) {
  .open-research .site-header { padding-inline: .85rem; }
  .open-research .site-header::after { left: .85rem; }
  .open-research .site-navigation-bar a, .open-research .site-nav-tools > button { padding-inline: .35rem; font-size: .75rem; }
  .open-research .brand { font-size: 1.95rem; gap: .6rem; }
  .open-research .brand-logo { width: 11.5rem; }
  .open-research .brand small { font-size: .55rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .open-research .site-nav-tools > button { right: .85rem; }
}
@container (max-width: 15rem) {
  .open-research .brand { max-width: none; }
  .open-research .brand small { white-space: normal; }
  .open-research .site-nav-tools > button { position: static; }
  .site-nav-tools { margin-left: 0; padding-left: 0; border-left: 0; }
}
@media print {
  .open-research table { --table-base: white; --table-alt: white; --table-heading: white; }
  .open-research .site-header { display: none; }
  body.open-research { border-top: 0; background: white; }
  .home-hero { display: block; padding: 0; border: 0; }
  .home-hero::before { display: none; }
  .home-actions, .home-feature, .home-route-grid, .home-more > summary, .home-status > summary { display: none; }
  .home-more > .home-collection-list, .home-status > p { display: block; }
}
/* Euler's long derivation has one compact guide and navigation between parts. */
.euler-example > h1 { font-size: clamp(2rem,3.7vw,2.85rem); line-height: 1.12; }
.euler-byline { color: var(--muted); font-size: .82rem; line-height: 1.65; }
.euler-byline strong { font-weight: 450; }
.euler-reading-guide { display: block; margin: 1.3rem 0 1.8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); }
.euler-shortcuts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.euler-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 550; }
.euler-contents { border-top: 1px solid var(--line); margin-top: .4rem; }
.euler-contents > summary { display: list-item; cursor: pointer; min-height: 48px; padding: .7rem 0 .4rem; color: var(--green); font-size: .9rem; font-weight: 550; }
.euler-contents > summary > span { font-size: .75rem; color: var(--muted); margin-left: .65rem; font-weight: 400; }
.euler-parts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: .6rem; padding: .65rem 0 .25rem; }
.euler-part-menu { min-width: 0; border: 1px solid var(--line); border-radius: .2rem; background: var(--paper); }
.euler-part-menu > summary { cursor: pointer; min-height: 60px; padding: .7rem .75rem; font-size: .85rem; color: var(--green); line-height: 1.6; }
.euler-part-number { margin-right: .4rem; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .75rem; }
.euler-part-menu small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); margin: .2rem 0 0 1rem; }
.euler-part-menu ol { margin: 0; padding: 0 .8rem .7rem 2rem; font-size: .82rem; }
.euler-part-menu li { padding-left: .1rem; margin: 0; }
.euler-part-menu a { display: block; min-height: 44px; padding: .4rem 0; }
.euler-part-label { color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; margin: 2.4rem 0 .5rem; }
.euler-part-label > span { margin-inline: .35rem; }
.euler-part-label + h2 { margin-top: .5rem; }
.euler-part-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.2rem; margin: 2.5rem 0 0; padding: .7rem 0; border-block: 1px solid var(--line); }
.euler-part-navigation a { display: flex; flex-direction: column; justify-content: center; flex: 1 1 10rem; min-height: 48px; padding: .4rem 0; font-size: .85rem; }
.euler-part-navigation a small { color: var(--muted); font-size: .7rem; margin-bottom: .2rem; }
.euler-part-navigation .euler-guide-return { flex: 0 0 auto; font-size: .8rem; }
.euler-part-navigation .euler-next-part { text-align: right; align-items: flex-end; }
@media (max-width: 620px) {
  .euler-example span.arithmatex { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
  .euler-reading-guide { padding: .65rem .8rem; }
  .euler-shortcuts { gap: 0 .9rem; }
  .euler-shortcuts a { font-size: .8rem; }
  .euler-parts { grid-template-columns: minmax(0,1fr); }
  .euler-part-navigation .euler-guide-return { flex-basis: 100%; order: 2; align-items: center; }
  .euler-part-navigation a { flex-basis: 40%; min-width: 0; }
}
@media print { .euler-reading-guide, .euler-part-navigation { display: none; } }

/* Work overviews have one toolbar before the introduction. */
.work-page article { max-width: none; }
.work-page .breadcrumbs { margin-bottom: .8rem; }
.work-page h1 { max-width: 44ch; font-size: clamp(2rem, 3.8vw, 2.8rem); margin: .4rem 0 1rem; }
.work-overview-nav { align-items: center; gap: .3rem 1.2rem; padding: .6rem 0; margin: 0 0 1rem; border-block: 1px solid var(--line); font-size: .95rem; }
.work-overview-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.work-overview-nav .button { margin: 0; }
.work-more { position: relative; margin-left: auto; }
.work-more > summary { cursor: pointer; min-height: 44px; padding: .5rem .2rem; color: var(--green); font-weight: 600; }
.work-more-links { position: absolute; right: 0; top: 100%; z-index: 8; width: min(36rem, 85vw); max-height: 65vh; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; padding: .8rem 1rem; border: 1px solid var(--green); background: var(--surface); box-shadow: var(--shadow); }
.work-more-links a { min-height: 44px; padding: .4rem 0; }
.paper-routes { display: flex; flex-wrap: wrap; }
.work-more-links.reading-resource-menu { display: block; width: min(52rem, 85vw); }
.reading-resource-menu > a { display: block; }
.reading-resource-menu .reading-resource-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paper-routes > a[aria-current] { font-weight: 700; text-decoration-thickness: 2px; }
.reading-contents-group { border-top: 1px solid var(--line); }
.reading-contents-group > summary { cursor: pointer; min-height: 44px; padding: .6rem .3rem; color: var(--green); font-weight: 600; }
.reading-contents-group > summary > span { color: var(--muted); font-weight: 400; }
.reading-contents-index { max-width: 65rem; }
.reading-contents-index ol { list-style: none; margin: 0; padding: 0; }
.reading-contents-index a[data-reading-entry] { display: flex; align-items: baseline; gap: .65rem; min-height: 44px; padding: .5rem .4rem; }
.reading-contents-index .reading-contents-group ol { padding: 0 .5rem .6rem; }
.work-summary { font-size: 1.15rem; margin: .5rem 0 .8rem; }
.work-status { font-size: .85rem; color: var(--muted); margin: .5rem 0 1rem; }
.proofreading-note { max-width: 78ch; margin: 1rem 0; padding: .65rem 1rem; border-left: 3px solid var(--green); background: var(--sage-surface); font-size: .9rem; }
.proofreading-note p { margin: .25rem 0; }

/* Compact chapter controls leave room for the opening mathematical text. */
.reading-page-header { position: relative; margin:.2rem 0 .65rem; }
.reading-page-header .eyebrow { display:flex; flex-wrap:wrap; align-items:baseline; gap:.15rem .4rem; margin:0 0 .3rem; }
.reading-page-header .eyebrow a { text-decoration:none; }
.reading-page-header .eyebrow a:hover { text-decoration:underline; }
.reading-page-header h1 { max-width:30ch; margin:.2rem 0 .4rem; font-size:clamp(1.75rem,2.8vw,2.4rem); line-height:1.18; overflow-wrap:anywhere; }
.reading-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.15rem 1.4rem; }
.reading-actions .reading-save { margin:.15rem 0; }
.reading-actions .reading-save:not([hidden]) { display: contents; }
.reading-actions .reading-save-status { order: 1; flex-basis: 100%; }
.reading-actions .side-launch { margin:0; font-size:.85rem; }
.reading-actions .side-launch a { display:inline-flex; align-items:center; min-height:44px; }
.reading-page-tools { position: static; }
.reading-page-tools > summary { display: list-item; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .2rem; background: var(--surface); color: var(--green); cursor: pointer; font-size: .85rem; line-height: 1.45; }
.reading-page-tools[open] > summary { border-color: var(--green); background: var(--sage-surface); }
.reading-page-tools-panel { position: absolute; top: calc(100% + .4rem); left: 0; z-index: 9; width: min(36rem, 100%); max-height: 70vh; overflow-y: auto; overflow-wrap: anywhere; padding: .75rem 1rem; border: 1px solid var(--green); background: var(--surface); box-shadow: var(--shadow); }
.reading-page-tools-panel .reading-collection-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; margin: 0; }
.reading-page-tools-panel .reading-collection-nav > a { padding: .4rem .2rem; }
.reading-page-tools-panel .reading-paper-menu > nav, .reading-page-tools-panel .reading-display > div { position: static; width: 100%; max-height: none; overflow-y: visible; box-shadow: none; }
.reading-page-tools-panel .reading-paper-menu > nav { display: block; }
.reading-page-tools-panel .reading-paper-menu ul { grid-template-columns: minmax(0, 1fr); }
.reading-page-tools-panel > p { margin: .25rem 0; font-size: .85rem; }
.reading-page-tools-panel > p a { display: inline-flex; align-items: center; min-height: 44px; }
.reading-library-groups { display:flex; flex-wrap:wrap; gap:.4rem 1.5rem; margin:1rem 0 1.5rem; }
.reading-library-groups a { display:inline-flex; align-items:center; min-height:44px; }
.reading-page main { padding-top: 1.4rem; }
.reading-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.65rem); margin: .3rem 0 .5rem; }
.reading-page .eyebrow { margin: 0 0 .3rem; }
.reading-page .side-launch { margin: 0 0 .35rem; font-size: .85rem; }
.reading-page .reading-navigation { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin: .4rem 0; padding: .65rem 0; gap: .5rem .6rem; }
.reading-page .reading-position { display: flex; grid-column: 1 / -1; grid-row: 1; min-width: 0; align-items: baseline; justify-content: space-between; gap: .75rem; }
.reading-page .reading-position > span { font-size: .78rem; line-height: 1.45; text-align: left; }
.reading-page .reading-position > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.reading-page .reading-position > span:last-child { flex-shrink: 0; white-space: nowrap; }
.reading-page .reading-steps { display: contents; }
.reading-page .reading-navigation .reading-step { min-height: 64px; padding: .4rem .65rem; }
.reading-page .reading-previous { grid-column: 1; grid-row: 2; }
.reading-page .reading-next { grid-column: 3; grid-row: 2; }
.reading-page .reading-step-title { font-size: .85rem; }
.reading-page .reading-menu, .reading-page .reading-menu-link { grid-column: 2; grid-row: 2; }
.reading-page .reading-menu > summary { min-height: 44px; padding: .55rem .75rem; font-size: .85rem; line-height: 1.45; }
.reading-page .reading-menu-panel { top: 100%; }
.reading-page .reading-navigation[data-reading-placement=bottom] .reading-menu-panel { top: auto; }
.chapter-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; margin-bottom: .6rem; }
.chapter-toolbar .reading-start { margin: 0; }
.chapter-toolbar .reading-resources { position: relative; max-width: none; border: 0; margin: 0; }
.chapter-toolbar .reading-resources > summary { min-height: 44px; padding: .4rem 0; font-size: .85rem; }
.chapter-toolbar .reading-resources > div { position: absolute; top: 100%; left: 0; width: min(52rem, 85vw); max-height: 65vh; overflow-y: auto; padding: .8rem 1rem; z-index: 8; border: 1px solid var(--green); background: var(--surface); box-shadow: var(--shadow); }
.chapter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; gap: 2rem; }
.chapter-reading { grid-column: 1; grid-row: 1; min-width: 0; }
.chapter-reading .readable-chapter { max-width: 78ch; }
.visual-reading .chapter-layout { display:block; }
.visual-reading .chapter-sidebar { position:relative; top:auto; margin-bottom:1rem; }
.visual-reading .chapter-sidebar .chapter-contents { max-height:45vh; }
.visual-reading .chapter-sidebar:has(.reading-outline:not([open])) .reading-return { display:none; }
.visual-reading .chapter-reading .readable-chapter { max-width:none; }
.visual-reading .chapter-reading [id] { scroll-margin-top:1rem; }
.visual-reading .atlas-drawing { padding:.8rem; border:1px solid var(--line); background:white; }
.visual-reading .atlas-drawing img { display:block; margin-inline:auto; }
.drawing-transcript { margin:1.1rem 0 1.6rem; border:1px solid var(--line); border-radius:.2rem; background:var(--surface); }
.drawing-transcript > summary { min-height:48px; padding:.65rem .9rem; cursor:pointer; color:var(--green); font-weight:600; }
.drawing-transcript > summary > span { margin-left:.8rem; font-size:.78rem; font-weight:400; color:var(--muted); }
.drawing-transcript > :not(summary) { margin-inline:1rem; }
.drawing-transcript-help { font-size:.85rem; color:var(--muted); }
.drawing-label-list { display:flex; flex-wrap:wrap; gap:.4rem .6rem; padding:0; list-style:none; }
.drawing-label-list > li { display:flex; align-items:center; max-width:100%; min-width:2rem; margin:0; padding:.25rem .55rem; border:1px solid var(--line); border-radius:.15rem; }
.drawing-label-list p { margin:0; }
.drawing-transcript table { width:auto; min-width:min(100%,30rem); font-variant-numeric:tabular-nums; }
.drawing-transcript th,.drawing-transcript td { padding:.4rem .65rem; white-space:nowrap; }
.drawing-transcript .table-scroll { margin-block:1rem; }
.chapter-reading article > :first-child { margin-top: .4rem; }
.chapter-reading.has-repeated-title #chapter-text > h2:first-child:not(:target):not(:focus-within) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chapter-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; min-width: 0; }
.chapter-sidebar .reading-outline { max-width: none; margin: 0; border: 1px solid var(--line); background: var(--surface); }
.chapter-sidebar .reading-outline > summary { display: list-item; min-height: 44px; padding: .5rem .8rem; font-weight: 650; }
.chapter-sidebar .chapter-contents { max-height: calc(100vh - 10rem); overflow-y: auto; max-width: none; border: 0; margin: 0; padding: .2rem .65rem .65rem; background: none; }
.reading-return { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 .2rem; padding: 0 .25rem; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.reading-return a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .2rem .1rem; font-size: .78rem; line-height: 1.4; text-align: center; }
.chapter-sidebar .chapter-contents > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chapter-sidebar .chapter-contents ol { margin: 0; }
.chapter-sidebar .chapter-contents a { display: block; padding: .45rem .5rem; font-size: .83rem; line-height: 1.45; border-left: 2px solid transparent; text-decoration: none; }
.chapter-sidebar .chapter-contents a:hover { text-decoration: underline; }
.chapter-sidebar .chapter-contents a[aria-current=location] { background: var(--sage-surface); border-left-color: var(--green); font-weight: 650; }
.chapter-sidebar .subsection-entry { margin-left: .6rem; }
.reading-current-section { display: none; }
@media (max-width: 63.999rem) {
  .chapter-layout { display: block; }
  .chapter-sidebar { position: sticky; top: 0; z-index: 6; margin-bottom: .8rem; }
  .chapter-sidebar .chapter-contents { max-height: 60vh; }
  .chapter-sidebar .reading-outline > summary { background: var(--surface); }
  .chapter-sidebar .reading-outline[open] { box-shadow: var(--shadow); }
  /* The chapter bar already has these routes; keep them in the open outline
     while leaving just one compact section control visible during reading. */
  .chapter-sidebar:has(.reading-outline:not([open])) .reading-return { display: none; }
  .reading-current-section { display: inline-block; max-width: 65%; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: .8rem; font-size: .78rem; font-weight: 400; }
  .chapter-reading h2, .chapter-reading h3, .chapter-reading h4, .chapter-reading h5, .chapter-reading section, .chapter-reading figure, .chapter-reading .proofreading-note { scroll-margin-top: 4.5rem; }
  .chapter-reading [id], .chapter-reading .proofreading-note { scroll-margin-top: var(--reading-clearance, 6rem); }
}
@media (max-width: 40rem) {
  .work-overview-nav { gap: .25rem 1rem; }
  .work-more { margin-left: 0; }
  .work-more-links { position: static; width: 100%; grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .work-more-links.reading-resource-menu { width: 100%; }
  .reading-resource-menu .reading-resource-groups { grid-template-columns: minmax(0, 1fr); }
  .work-more[open] { flex-basis: 100%; }
  .reading-page main { padding: 1rem 1rem 2.5rem; }
  .reading-page-header .eyebrow > span { display: none; }
  .reading-actions { gap: .25rem .6rem; }
  .reading-page-tools-panel { left: 0; right: 0; width: auto; }
  /* The sticky contents control replaces this lone link while passage tools are off. */
  .chapter-reading .readable-chapter > .passage-links:has(> a[href="#contents"]):not(:has(> a:not([href="#contents"]))):has(> .passage-tools[hidden]) { display: none; }
  .reading-page .reading-navigation { display: flex; flex-wrap: wrap; }
  .reading-page .reading-position { flex-basis: 100%; order: 0; }
  .reading-page .reading-navigation .reading-step { flex: 1 0 auto; min-width: max-content; min-height: 44px; padding: .5rem .55rem; }
  .reading-page .reading-menu, .reading-page .reading-menu-link { flex: 1 0 auto; order: 2; }
  .reading-page .reading-step-label { font-size: .78rem; line-height: 1.45; white-space: nowrap; letter-spacing: 0; }
  .reading-page .reading-next { order: 3; align-items: center; text-align: center; }
  .reading-page .reading-previous { order: 1; align-items: center; text-align: center; }
  .reading-page .reading-step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reading-page .reading-menu-panel, .reading-page .reading-navigation[data-reading-placement=bottom] .reading-menu-panel { position: absolute; top: 100%; left: 0; right: 0; }
  .reading-page .reading-navigation[data-reading-placement=bottom] .reading-menu-panel { top: auto; bottom: 100%; }
  .chapter-toolbar { gap: 0 1rem; }
  .chapter-toolbar .reading-start { display: none; }
  .chapter-sidebar .reading-current-section { display: none; }
  .chapter-toolbar .reading-resources > div { position: static; width: 100%; box-shadow: none; }
  .chapter-toolbar .reading-resources[open] { flex-basis: 100%; }
}
@media print {
  .work-overview-nav, .reading-page .reading-navigation, .chapter-sidebar, .chapter-toolbar, .reading-actions { display: none; }
  .chapter-layout { display: block; }
}

/* Editorial entrances into the retained source, with a short reading path. */
.paper-introduction { max-width: 66rem; margin: 1.2rem 0; }
.paper-introduction #paper-question { max-width: 42ch; margin: .4rem 0 .7rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.paper-contribution { max-width: 78ch; margin: .5rem 0; font-size: 1.08rem; }
.paper-limits { max-width: 85ch; margin: .75rem 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.paper-reading-path { display: block; margin: 1rem 0; }
.paper-reading-path h3 { font-size: .9rem; margin: .3rem 0 .55rem; }
.paper-reading-path ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; list-style: none; counter-reset: reading-step; padding: 0; margin: 0; }
.paper-reading-path li { margin: 0; min-width: 0; counter-increment: reading-step; }
.paper-reading-path a { display: block; height: 100%; min-height: 78px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .2rem; background: var(--surface); font-size: .85rem; line-height: 1.45; }
.paper-reading-path a > span { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.paper-reading-path a > span::before { content: counter(reading-step) ' · '; }
.paper-reading-path a:hover { border-color: var(--green); background: var(--sage-surface); }
.chapter-notation-controls { display: inline-flex; align-items: center; }
.chapter-sidebar-tools { position: absolute; top: 0; right: .65rem; z-index: 1; display: flex; align-items: center; min-height: 44px; }
.has-reading-tools .reading-outline > summary { padding-right: 7.4rem; }
.open-research .chapter-notation-open { min-height: 44px; padding: .4rem .1rem; border: 0; background: transparent; color: var(--green); font-size: .85rem; text-decoration: underline; text-underline-offset: .18em; }
.chapter-notation-open[hidden], .chapter-notation-fallback[hidden] { display: none !important; }
.chapter-notation-fallback { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.chapter-notation { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.1rem 1.3rem; border: 1px solid var(--green); border-radius: .3rem; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.chapter-notation::backdrop { background: #233d3255; }
.chapter-notation-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.reading-page .chapter-notation h2 { font-size: 1.7rem; margin: .3rem 0 .5rem; }
.chapter-notation-heading button { flex-shrink: 0; padding: .4rem .8rem; background: var(--surface); color: var(--green); border-color: var(--control-edge); font-size: .85rem; }
.chapter-notation > p { font-size: .9rem; line-height: 1.6; margin: .5rem 0; }
.chapter-notation-search label { font-size: .85rem; margin: .65rem 0 .35rem; }
.chapter-notation-search > div { display: flex; align-items: stretch; gap: .6rem; }
.chapter-notation-search input { min-width: 0; width: 100%; font-size: 1rem; }
.chapter-notation-search button { margin: 0; font-size: .9rem; padding: .4rem .8rem; }
.chapter-notation-status { color: var(--muted); }
.chapter-notation-results { list-style: none; padding: 0; margin: .6rem 0; }
.chapter-notation-results > li { margin: .7rem 0; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.chapter-notation-results h3 { font-size: 1rem; margin: 0 0 .3rem; }
.chapter-notation-results p { font-size: .9rem; line-height: 1.65; margin: .4rem 0; }
.chapter-notation-symbols { overflow-x: auto; overflow-y: hidden; min-height: 2.3rem; padding: .2rem 0; }
.chapter-notation-symbols mjx-container svg { max-width: none; }
.chapter-notation-links { font-size: .82rem !important; }
.chapter-notation .chapter-notation-note { color: var(--muted); font-size: .8rem; }
@media (max-width: 48rem) {
  .paper-reading-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-notation { padding: .85rem; }
  .chapter-notation-results > li { padding: .65rem .8rem; }
  .has-reading-tools .reading-current-section { display: none; }
}
@media print { .chapter-notation { display: none; } }

/* Guided entry into the Quantum and Circuits reading edition. */
.quantum-start .lede { max-width: 60ch; font-size: 1.2rem; line-height: 1.65; }
.quantum-guide-facts { color: var(--muted); font-size: .9rem; margin: 1.5rem 0; }
.quantum-path-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.quantum-path-cards .route { padding: 1.4rem; }
.quantum-path-cards .route h2 { font-size: 1.6rem; margin: .7rem 0; }
.quantum-path-cards .route .eyebrow { text-decoration: none; }
.quantum-start .quantum-path { max-width: 76ch; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; scroll-margin-top: 1rem; }
.quantum-path ol { padding-left: 1.6rem; }
.quantum-path li { padding-left: .4rem; margin-top: 1.25rem; }
.quantum-path li > a { display: inline-block; padding: .35rem 0; font-weight: 650; }
.quantum-path li p { margin: .2rem 0 .8rem; }
.quantum-guide-return { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.quantum-guide-entry { margin: 1rem 0 2rem; }
@media (max-width: 50rem) { .quantum-path-cards { grid-template-columns: 1fr; } }

/* Reading paths for manuscripts with an on-site visual companion. */
.reading-guide .lede { max-width: 60ch; font-size: 1.2rem; line-height: 1.65; }
.reading-path-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.reading-path-cards .route { padding: 1.4rem; }
.reading-path-cards .route h2 { font-size: 1.6rem; margin: .7rem 0; }
.reading-path-cards .route .eyebrow { text-decoration: none; }
.reading-guide-path { max-width: 76ch; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; scroll-margin-top: 1rem; }
.reading-guide-path ol { padding-left: 1.6rem; }
.reading-guide-path li { padding-left: .4rem; margin-top: 1.25rem; }
.reading-guide-path li > a { display: inline-block; padding: .35rem 0; font-weight: 650; }
.reading-guide-path li p { margin: .2rem 0 .8rem; }
.reading-guide-return { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
@media (max-width: 50rem) { .reading-path-cards { grid-template-columns: 1fr; } }
