/* Reading edition: content is preserved, with a more deliberate reading room. */
.page .breadcrumb { padding-top: 28px; font-size: 11px; color: var(--ed-muted); }
.page .breadcrumb a { min-height: 24px; display: inline-flex; align-items: center; }
.page-post .article-shell { grid-template-columns: minmax(0, 790px) 236px; gap: 62px; padding-top: 24px; padding-bottom: 70px; }
.page-post .post-header { padding: 24px 0 26px; border-top: 3px solid var(--ed-link); }
.page-post .post-header .category-label { font-size: 12px; color: var(--ed-link); }
.page-post .post-header h1 { font: 700 clamp(32px, 3.05vw, 43px)/1.5 var(--ed-display); margin-block: 17px 20px; letter-spacing: -.04em; text-wrap: balance; }
.page-post .post-meta { gap: 13px 22px; font-size: 11px; color: var(--ed-muted); }
.page-post .post-summary-lede { margin-top: 25px; padding: 20px 24px; border-left: 3px solid var(--ed-note); border-radius: 0 10px 10px 0; background: var(--ed-tint); font-size: 15px; line-height: 1.95; color: var(--ed-muted); }
.article-map { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0 21px; color: var(--ed-muted); font-size: 11px; }
.article-map-label { font-weight: 600; }
.article-map ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.article-map li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.article-map li > a { display: flex; align-items: center; min-height: 44px; line-height: 1.75; color: var(--ed-link); font-size: 11px; overflow-wrap: anywhere; }
.article-map li > a:hover { color: var(--ed-note); text-decoration: underline; text-underline-offset: .25em; }
.article-map li > span { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid var(--ed-line); border-radius: 50%; background: var(--ed-sheet); font-size: 8px; font-family: var(--ed-mono); color: var(--ed-link); }
.page-post .reader-toolbar { min-height: 64px; padding: 8px 0; margin-bottom: 34px; border-color: var(--ed-line); font-size: 11px; gap: 10px; }
.page-post .reader-controls { gap: 8px; }
.page-post .reader-controls [data-focus-reading] { border-radius: 7px; border-color: var(--ed-line); font-size: 12px; padding-inline: 12px; color: var(--ed-ink); }
.page-post .reader-controls [data-focus-reading][aria-pressed=true] { background: var(--ed-link); color: var(--ed-on-action); border-color: var(--ed-link); }
.page-post .reader-controls .font-controls { gap: 2px; }
.page-post .reader-controls .font-controls button { border-radius: 6px; color: var(--ed-ink); }
.page-post .reader-controls .share-button { font-size: 11px; color: var(--ed-muted); }
.page-post .prose { max-width: min(74ch, 100%); line-height: 1.96; font-size: var(--article-size); color: var(--ed-ink); letter-spacing: .015em; }
.page-post .prose > p { margin-top: 1.45em; }
.page-post .prose > p:first-child { margin-top: 0; }
.page-post .prose h2 { font-family: var(--ed-display); font-weight: 700; line-height: 1.65; font-size: 1.48em; margin-top: 2.6em; border-bottom: 1px solid var(--ed-line); padding-bottom: .42em; letter-spacing: -.025em; }
.page-post .prose h3 { font-family: var(--ed-display); font-weight: 700; font-size: 1.2em; margin-top: 1.9em; letter-spacing: -.015em; }
.page-post .prose :is(p, li) > a:not(.heading-link) { color: var(--ed-link); text-decoration: underline; text-decoration-color: var(--ed-line); text-underline-offset: .2em; }
.page-post .prose :is(p, li) > a:not(.heading-link):hover { color: var(--ed-note); text-decoration-color: currentColor; }
.page-post .prose blockquote { background: var(--ed-tint); border-left: 3px solid var(--ed-note); border-radius: 0 8px 8px 0; color: var(--ed-muted); padding: 18px 22px; }
.page-post .prose :not(pre) > code { background: var(--ed-tint); color: var(--ed-ink); border: 1px solid var(--ed-line); border-radius: 4px; padding: 1px 5px; }
.page-post .prose figure.code { border: 1px solid var(--ed-line); background: var(--ed-sheet); border-radius: 10px; box-shadow: none; }
.page-post .prose figure.code figcaption { background: var(--ed-tint); border-color: var(--ed-line); }
.page-post .prose figure.code pre { padding: 20px 22px; font-size: .79em; line-height: 1.9; color: var(--ed-ink); background: var(--ed-sheet); }
.page-post .copy-btn { border: 1px solid var(--ed-line); border-radius: 5px; background: var(--ed-sheet); color: var(--ed-link); min-height: 32px; }
.page-post .table-wrap { background: var(--ed-sheet); border: 1px solid var(--ed-line); border-radius: 9px; }
.page-post .prose th { background: var(--ed-tint); color: var(--ed-ink); }
.page-post .prose td { background: var(--ed-sheet); }
.page-post .prose :is(th, td) { border-color: var(--ed-line); line-height: 1.8; }
.page-post .post-aside { padding-top: 24px; }
.page-post .toc { border: 1px solid var(--ed-line); border-top: 3px solid var(--ed-link); border-radius: 0 0 10px 10px; padding: 20px 15px; background: var(--ed-sheet); }
.page-post .toc-title { margin-bottom: 14px; color: var(--ed-ink); font: 700 16px/1.5 var(--ed-display); }
.page-post .toc h2 { margin-bottom: 14px; color: var(--ed-ink); font: 700 16px/1.5 var(--ed-display); }
.page-post .toc-item a { color: var(--ed-muted); font-size: 12px; line-height: 1.85; padding-block: 7px; }
.page-post .toc-item a.is-active { border-left-color: var(--ed-note); background: var(--ed-tint); color: var(--ed-ink); font-weight: 650; }
.page-post .toc-mobile { border-radius: 8px; border-color: var(--ed-line); background: var(--ed-sheet); }
.page-post .toc-mobile summary { font-size: 13px; }
.page-post .toc-mobile .toc-item a { font-size: 12px; }
.page-post .post-footer { margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--ed-line); }
.page-post .post-end { font-family: var(--ed-display); color: var(--ed-muted); font-size: 17px; }
.page .tag { background: var(--ed-sheet); border: 1px solid var(--ed-line); border-radius: 5px; color: var(--ed-muted); min-height: 30px; display: inline-flex; align-items: center; }
.page .tag:hover { background: var(--ed-tint); color: var(--ed-link); border-color: var(--ed-link); }
.page-post .post-pager { gap: 16px; }
.page-post .post-pager > a { border: 1px solid var(--ed-line); border-radius: 9px; padding: 20px; background: var(--ed-sheet); }
.page-post .post-pager > a:hover { background: var(--ed-tint); border-color: var(--ed-muted); }
.page-post .post-pager strong { font-family: var(--ed-display); font-size: 16px; line-height: 1.8; }
.page-post .related { margin-top: 40px; }
.page-post .related h2 { font: 700 27px/1.5 var(--ed-display); }
.page .progress { background: var(--ed-tint); }
.page .progress-bar { background: var(--ed-note); }
.page .back-top { background: var(--ed-sheet); color: var(--ed-ink); border-color: var(--ed-line); }
.page .toast { background: var(--ed-deep); color: #f0f6e7; border: 1px solid #688b70; }

/* Shared subject illustrations also appear on topic, tag and related pages. */
.page .category-art-wrap { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; background: var(--ed-topic-mint); color: var(--ed-link); }
.page .category-art-wrap[data-topic=dsh] { background: var(--ed-topic-blue); }
.page .category-art-wrap[data-topic=review] { background: var(--ed-topic-sand); }
.page .category-art-wrap[data-topic=pitfalls] { background: var(--ed-topic-orange); }
.page .category-art-wrap[data-topic=method] { background: var(--ed-topic-green); }
.page .category-art-wrap .topic-drawing { width: 88%; height: 88%; object-fit: contain; }
.page .collection-header { padding: 38px 0 42px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; margin-bottom: 10px; }
.page .collection-header h1, .page .simple-header h1, .page .about-header h1, .page .not-found h1 { font: 700 clamp(30px, 3.5vw, 45px)/1.5 var(--ed-display); letter-spacing: -.035em; }
.page .collection-header p { color: var(--ed-muted); font-size: 14px; line-height: 1.9; }
.page .collection-icon { width: 43px; height: 45px; background: var(--ed-tint); color: var(--ed-link); border: 1px solid var(--ed-line); border-radius: 10px; margin-bottom: 18px; }
.page .collection-count { color: var(--ed-muted); font-size: 11px; }
.page .collection-art { border: 1px solid var(--ed-line); border-radius: 14px; aspect-ratio: 1.9; }
.page .post-item { padding-block: 28px; border-color: var(--ed-line); gap: 25px; }
.page .post-item-art { width: 210px; aspect-ratio: 1.6; border: 1px solid var(--ed-line); border-radius: 9px; }
.page .post-item-title { font: 700 23px/1.7 var(--ed-display); letter-spacing: -.02em; margin-top: 4px; }
.page .post-item-title a:hover { color: var(--ed-note); }
.page .post-item-summary { font-size: 13px; line-height: 1.95; color: var(--ed-muted); margin-bottom: 14px; }
.page .post-item-meta { font-size: 10px; color: var(--ed-muted); }
.page .category-label { color: var(--ed-link); }
.page .simple-header { padding-block: 45px 32px; }
.page .simple-header p { font-size: 14px; color: var(--ed-muted); }
.page .archive-shell { padding-top: 35px; gap: 60px; }
.page .archive-year h2 { font: 700 29px/1.5 var(--ed-display); }
.page .archive-row { min-height: 72px; padding-block: 17px; gap: 17px; border-color: var(--ed-line); }
.page .archive-row > a { font-size: 14px; }
.page .archive-row > .archive-cat { font-size: 10px; }
.page .archive-topics { padding: 22px; background: var(--ed-tint); border: 1px solid var(--ed-line); border-radius: 12px; align-self: start; }
.page .archive-topics h2 { font: 700 20px/1.5 var(--ed-display); margin-bottom: 20px; }
.page .about-shell { max-width: 800px; padding-top: 45px; }
.page .about-header { border-top: 3px solid var(--ed-link); padding-top: 30px; }
.page .about-logo { background: var(--ed-deep); color: #f4f6e9; border-radius: 12px 12px 12px 3px; }
.page .about-header p { color: var(--ed-muted); font-size: 16px; }
.page .about-section h2 { font-family: var(--ed-display); }
.page .about-section { line-height: 1.95; }
.page .about-rss { border: 1px solid var(--ed-line); border-radius: 10px; background: var(--ed-tint); }
.page .not-found-code { font: 700 110px/1 var(--ed-display); color: var(--ed-note); margin-bottom: 25px; }
.page .not-found { padding-top: 65px; }
.page .not-found p { color: var(--ed-muted); }

/* Search is still a native modal, with the standalone page as its fallback. */
.page .search-dialog { border: 1px solid var(--ed-line); border-top: 3px solid var(--ed-link); border-radius: 13px; background: var(--ed-sheet); color: var(--ed-ink); box-shadow: 0 30px 100px -30px rgb(0 24 18 / .55); }
.page .search-dialog::backdrop { background: rgb(7 25 19 / .72); }
.page .search-panel { padding: 25px; }
.page .search-panel-head h2 { font: 700 24px/1.5 var(--ed-display); }
.page .search-panel-head .icon-button { width: 44px; height: 44px; min-height: 44px; min-width: 44px; background: var(--ed-tint); color: var(--ed-ink); }
.page .search-input-wrap { border-radius: 7px; border-color: var(--ed-line); background: var(--ed-paper); color: var(--ed-muted); }
.page .search-input-wrap:focus-within { border-color: var(--ed-focus); outline: 2px solid var(--ed-focus); outline-offset: 2px; }
.page .search-input-wrap input { font-size: 16px; color: var(--ed-ink); }
.page .search-input-wrap input::placeholder { color: var(--ed-muted); }
.page .search-presets { gap: 8px; font-size: 11px; }
.page .search-presets button { min-height: 36px; padding: 7px 11px; border-radius: 5px; border-color: var(--ed-line); background: var(--ed-tint); color: var(--ed-ink); font-size: 11px; }
.page .search-status { color: var(--ed-muted); font-size: 12px; }
.page .search-result { border-radius: 7px; border-color: transparent; padding: 14px; }
.page .search-result:hover { background: var(--ed-tint); border-color: var(--ed-line); }
.page .search-result-title { font-size: 15px; font-weight: 700; }
.page .search-result-meta, .page .search-result-excerpt { color: var(--ed-muted); }
.page .search-result mark { background: var(--ed-tint); color: var(--ed-link); }
.page .search-hint { border-color: var(--ed-line); color: var(--ed-muted); }
.page .search-page > .search-panel { border-color: var(--ed-line); background: var(--ed-sheet); border-radius: 12px; }

@media (max-width: 1180px) {
  .page-post .article-shell { grid-template-columns: minmax(0, 1fr) 215px; gap: 38px; }
  .page-post .post-header h1 { font-size: 36px; }
  .page .post-item-art { width: 185px; }
  .page .post-item-title { font-size: 21px; }
}
@media (max-width: 900px) {
  .page-post .article-shell { grid-template-columns: minmax(0, 1fr); max-width: 780px; gap: 0; }
  .page-post .post-aside { display: none; }
  .page-post .toc-mobile { display: block; }
  .page .collection-header { gap: 30px; }
  .page .collection-header h1 { font-size: 34px; }
  .page .archive-shell { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .page .archive-topics { margin-top: 5px; }
}
@media (max-width: 680px) {
  .page-post .article-shell { padding-top: 18px; }
  .page-post .post-header { padding-top: 20px; }
  .page-post .post-header h1 { font-size: clamp(27px, 7.25vw, 35px); line-height: 1.55; }
  .page-post .post-meta { font-size: 10px; gap: 10px 15px; }
  .page-post .post-summary-lede { font-size: 13px; padding: 17px 18px; margin-top: 21px; }
  .article-map { gap: 12px 18px; padding-top: 4px; font-size: 10px; }
  .article-map ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-map li { gap: 5px; }
  .article-map li > a { font-size: 11px; }
  .article-map li > span { width: 22px; height: 22px; font-size: 8px; }
  .page-post .reader-toolbar { min-height: 88px; align-items: stretch; gap: 7px; padding-block: 12px; }
  .page-post .reader-toolbar > span { font-size: 10px; }
  .page-post .reader-controls { gap: 5px; }
  .page-post .reader-controls .share-button { font-size: 10px; padding-inline: 7px; }
  .page-post .reader-controls [data-focus-reading] { font-size: 11px; padding-inline: 10px; }
  .page-post .reader-controls .font-controls button { font-size: 13px; }
  .page-post .prose { line-height: 1.95; }
  .page-post .prose h2 { font-size: 1.38em; }
  .page-post .prose figure.code pre { padding: 16px; font-size: .76em; }
  .page-post .toc-mobile summary { font-size: 12px; }
  .page-post .toc-mobile summary > span { font-size: 10px; }
  .page-post .post-pager > a { padding: 17px; }
  .page-post .post-pager strong { font-size: 15px; }
  .page .post-item { gap: 18px; padding-block: 23px; }
  .page .post-item-art { width: 145px; }
  .page .post-item-title { font-size: 19px; }
  .page .post-item-summary { font-size: 12px; }
  .page .post-item-meta { gap: 10px; font-size: 9px; }
  .page .collection-header { padding-block: 28px 30px; gap: 24px; }
  .page .collection-header h1 { font-size: 31px; }
  .page .collection-header p { font-size: 13px; }
  .page .simple-header { padding-top: 32px; }
  .page .simple-header h1, .page .about-header h1 { font-size: 33px; }
  .page .archive-row { grid-template-columns: 40px minmax(0,1fr) 14px; gap: 12px; min-height: 66px; }
  .page .archive-row > a { font-size: 13px; }
  .page .archive-row .archive-cat { display: none; }
  .page .about-shell { padding-top: 30px; }
  .page .about-header p { font-size: 14px; }
  .page .about-section { font-size: 16px; }
  .page .search-panel, .page .search-page > .search-panel { padding: 20px; }
  .page .search-panel-head h2 { font-size: 22px; }
  .page .search-result { padding: 13px 10px; }
  .page .search-result-title { font-size: 14px; }
}
@media (max-width: 500px) {
  .page .breadcrumb { font-size: 10px; padding-top: 20px; }
  .page-post .post-header h1 { font-size: 28px; }
  .page-post .post-header .category-label { font-size: 11px; }
  .page-post .reader-controls { gap: 2px; }
  .page-post .reader-controls [data-focus-reading] { padding-inline: 8px; }
  .page-post .reader-controls .share-button { padding-inline: 4px; }
  .page-post .reader-controls .font-controls button { min-inline-size: 40px; }
  .page-post .prose h2 { font-size: 1.3em; }
  .page-post .prose blockquote { padding: 15px 17px; }
  .page .collection-header { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .page .collection-art { max-height: 215px; }
  .page .collection-header h1 { font-size: 31px; }
  .page .post-item { gap: 15px; }
  .page .post-item-art { width: 100px; aspect-ratio: 1; border-radius: 7px; }
  .page .post-item-title { font-size: 18px; line-height: 1.75; }
  .page .post-item-summary { font-size: 11px; line-height: 1.85; }
  .page .post-item-meta { font-size: 9px; gap: 6px 9px; }
  .page .post-item-content > .category-label { font-size: 10px; }
  .page .about-header h1, .page .simple-header h1 { font-size: 30px; }
  .page .search-panel { padding: 18px; }
  .page .search-panel-head { gap: 10px; }
  .page .search-presets { gap: 6px; }
  .page .search-presets button { font-size: 10px; padding-inline: 9px; }
  .page .search-hint { flex-wrap: wrap; gap: 9px; font-size: 9px; }
}
@media (max-width: 360px) {
  .page-post .post-header h1 { font-size: 25px; }
  .page-post .reader-controls .font-controls button { min-inline-size: 36px; padding-inline: 5px; }
  .page-post .reader-controls .share-button { font-size: 9px; gap: 4px; }
  .page-post .reader-controls [data-focus-reading] { font-size: 10px; padding-inline: 7px; }
  .page .post-item-art { width: 82px; }
  .page .post-item-title { font-size: 17px; }
  .article-map { font-size: 9px; }
  .article-map ol { gap: 6px; }
  .article-map li + li::before { width: 10px; margin-right: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .page .post-item .topic-drawing { transition: transform 250ms cubic-bezier(.2,.7,.2,1); }
  .page .post-item:hover .topic-drawing { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .page .post-item .topic-drawing { transform: none; }
}
@media (forced-colors: active) {
  .page .article-map li > span, .page .category-art-wrap, .page .search-dialog { border-color: CanvasText; }
  .page-post .toc-item a.is-active { border-left-color: Highlight; outline: 1px solid Highlight; }
}
@media print {
  .page-post .article-map { display: none; }
  .page-post .post-header { border-top: 0; }
  .page-post .post-header h1 { font-size: 24pt; }
  .page-post .prose { color: #000; }
}
