/* OHOTAME reading edition. Shared MusEDLab assets remain unchanged. */
body.ohotame-reading {
  --ink: #173b3c; --muted: #526869; --bg: #f7f5ef; --line: #cdd7d2; --gold: #ba9262;
  margin: 0; padding: 18px 24px; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, sans-serif;
}
.ohotame-reading * { box-sizing: border-box; }
.ohotame-reading a { color: #155f60; text-underline-offset: .2em; }
.ohotame-reading a:hover { color: #783e1d; }
.ohotame-reading :is(a, input, select, summary, button):focus-visible { outline: 3px solid #a34d28; outline-offset: 4px; }
.ohotame-reading .skip { position: absolute; left: 1rem; top: -6rem; z-index: 20; background: #fffdf8; padding: 1rem; }
.ohotame-reading .skip:focus { top: 1rem; }
.ohotame-reading .ohotame-local-header {
  max-width: 1120px; margin: auto; display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.ohotame-reading .ohotame-local-header strong { font-size: .9rem; }
.ohotame-reading .ohotame-subnav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .85rem; }
.ohotame-reading .ohotame-subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .75rem; border-radius: 3px; text-decoration: none;
}
.ohotame-reading .ohotame-subnav a:hover { background: #eeede4; }
.ohotame-reading .ohotame-subnav a[aria-current] {
  background: #e4eae3; color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px;
}
.ohotame-reading main.ohotame-main { max-width: 1120px; padding: 2.25rem 0 4rem; margin: auto; overflow-wrap: anywhere; }
.ohotame-reading .hero { max-width: 880px; padding: .25rem 0 1rem; }
.ohotame-reading .eyebrow { text-transform: uppercase; font-size: .75rem; font-weight: 650; letter-spacing: .12em; color: var(--muted); }
.ohotame-reading .ohotame-main :is(h1, h2, h3) { font-family: Georgia, serif; line-height: 1.22; font-weight: 500; }
.ohotame-reading .ohotame-main h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.035em; margin: .5rem 0 1.1rem; text-wrap: balance; }
.ohotame-reading .ohotame-main h2 { font-size: 1.85rem; }
.ohotame-reading .ohotame-main h3 { font-size: 1.3rem; }
.ohotame-reading .ohotame-main p { max-width: 72ch; }
.ohotame-reading .hero > p:not([class]) { font-size: 1.08rem; line-height: 1.65; }
.ohotame-reading .note, .ohotame-reading .withheld { color: var(--muted); }
.ohotame-reading .notice { border-left: 3px solid var(--gold); background: #efebe0; padding: .9rem 1.2rem; margin: 1rem 0 1.6rem; font-size: .9rem; max-width: 88ch; }
.ohotame-reading .tools {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: end;
  padding: 1.25rem; margin: 1.5rem 0 .75rem; background: #eaf0e9; border: 1px solid var(--line); border-radius: 4px;
}
.ohotame-reading .tools label { min-width: 0; font-size: .85rem; font-weight: 650; }
.ohotame-reading .tools :is(input, select) {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: .4rem; padding: .7rem .8rem;
  font: 400 1rem/1.4 system-ui, sans-serif; border: 1px solid #879e97; border-radius: 3px; background: #fffefb; color: var(--ink);
}
.ohotame-reading .count { font-size: .85rem; color: var(--muted); }
.ohotame-reading #count { margin: .6rem 0 1.5rem; }
.ohotame-reading section.category { border-top: 2px solid var(--ink); padding: .6rem 0 0; margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.ohotame-reading .category > h2 { margin: 1rem 0; }
.ohotame-reading .subcat { margin: 1.8rem 0 0 1rem; padding-left: 1.5rem; border-left: 2px solid var(--line); scroll-margin-top: 1.5rem; }
.ohotame-reading .subcat > h2 { font: 650 1rem/1.5 system-ui, sans-serif; margin: 0 0 .5rem; }
.ohotame-reading .topic-card { border-bottom: 1px solid var(--line); padding: 1.25rem 0; scroll-margin-top: 1.5rem; }
.ohotame-reading .topic-card h3 { margin: 0; max-width: 52ch; font-size: 1.4rem; }
.ohotame-reading .topic-card h3 a { display: inline-block; padding: .4rem 0; text-decoration-thickness: 1px; text-decoration-color: #9ab4ad; }
.ohotame-reading .topic-card p { margin: .4rem 0 .65rem; color: #354e4e; font-size: .95rem; }
.ohotame-reading .meta { color: var(--muted); font-size: .78rem; }
.ohotame-reading .chapter-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 2.5rem; align-items: start;
  border-top: 1px solid var(--line); padding: 2rem 0; scroll-margin-top: 1.5rem;
}
.ohotame-reading .chapter-card > .eyebrow { grid-column: 1; grid-row: 1; margin: 0 0 .7rem; }
.ohotame-reading .chapter-card > h2 { grid-column: 1; grid-row: 2; font-size: 1.65rem; margin: 0 0 .8rem; }
.ohotame-reading .chapter-card > p:nth-child(3) { grid-column: 1; grid-row: 3; margin: 0 0 1rem; font-size: .95rem; }
.ohotame-reading .chapter-card > .abstract, .ohotame-reading .chapter-card > .note {
  grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 1.4rem 1.65rem;
  border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fffdf8;
}
.ohotame-reading .chapter-card > p:has(a) { grid-column: 2; margin: .65rem 0 0; font-size: .85rem; }
.ohotame-reading .chapter-card > p > a { display: inline-flex; align-items: center; min-height: 44px; }
.ohotame-reading .post { margin: 1.4rem 0; border-top: 1px solid var(--line); padding: 1.4rem 0; scroll-margin-top: 1.5rem; }
.ohotame-reading .post > .meta { margin-bottom: 1.4rem; }
.ohotame-reading .post-body { font: 1.1rem/1.75 Georgia, serif; overflow-wrap: anywhere; }
.ohotame-reading .post-body > :first-child { margin-top: 0; }
.ohotame-reading .post-body > :last-child { margin-bottom: 0; }
.ohotame-reading .post-body h3 { font-size: 1.35rem; line-height: 1.4; }
.ohotame-reading .post-body p { margin: 1em 0; }
.ohotame-reading .post-body li { margin: .6em 0; }
.ohotame-reading .post-body table { border-collapse: collapse; max-width: 100%; }
.ohotame-reading .post-body td, .ohotame-reading .post-body th { border: 1px solid var(--line); padding: .5rem; }
.ohotame-reading .post-body pre { white-space: pre-wrap; }
.ohotame-reading .post-body blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: 1rem; }
.ohotame-reading .withheld { font-size: .85em; }
.ohotame-reading .chapter-links { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0; }
.ohotame-reading .chapter-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
  border: 1px solid #99b1a7; border-radius: 3px; background: #eaf0e9; font-size: .9rem;
}
.ohotame-reading.ohotame-topic main.ohotame-main, .ohotame-reading.ohotame-about main.ohotame-main { max-width: 780px; }
.ohotame-reading.ohotame-topic .ohotame-main > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.ohotame-reading.ohotame-topic .ohotame-main > h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1rem; }
.ohotame-reading.ohotame-about .ohotame-main > h2 { margin-top: 2rem; }
.ohotame-reading .empty { padding: 2rem; border: 1px solid var(--line); background: #fffdf8; }
.ohotame-reading .lab-footer { max-width: 1120px; }
.ohotame-reading [hidden] { display: none !important; }
@media (max-width: 760px) {
  body.ohotame-reading { padding: 12px 18px; }
  .ohotame-reading .ohotame-local-header { display: block; padding: 1rem 0 .65rem; }
  .ohotame-reading .ohotame-subnav { margin: .65rem -.6rem 0; gap: .1rem; }
  .ohotame-reading .ohotame-subnav a { padding-inline: .6rem; }
  .ohotame-reading main.ohotame-main { padding-top: 1.4rem; }
  .ohotame-reading .tools { grid-template-columns: minmax(0, 1fr); gap: .85rem; padding: 1rem; }
  .ohotame-reading .chapter-card { display: block; padding: 1.6rem 0; }
  .ohotame-reading .chapter-card > .abstract, .ohotame-reading .chapter-card > .note { padding: 1rem; }
  .ohotame-reading .subcat { margin-left: 0; padding-left: .85rem; }
  .ohotame-reading .ohotame-main h2 { font-size: 1.55rem; }
  .ohotame-reading .subcat > h2 { font-size: 1rem; }
  .ohotame-reading .topic-card h3 { font-size: 1.25rem; }
  .ohotame-reading .notice { padding: .8rem 1rem; }
}

/* The landing page is a section map; long-form reading stays in the archive. */
body.ohotame-index { padding: 6px 24px; }
.ohotame-index > .container, .ohotame-index .ohotame-local-header,
.ohotame-index main.ohotame-main, .ohotame-index .lab-footer { max-width: 1200px; }
.ohotame-index .site-header { padding-block: 0; margin-bottom: 0; gap: 16px; }
.ohotame-index .site-header .site-brand { font-size: 1.1rem; padding-block: 4px; }
.ohotame-index .site-header .site-brand span { font-size: .61rem; }
.ohotame-index .site-header .site-nav { gap: 4px 16px; padding-bottom: 0; }
.ohotame-index .site-header .site-nav a { font-size: .77rem; }
.ohotame-index .ohotame-local-header { padding-block: 2px; }
.ohotame-index .ohotame-subnav { margin: 0; }
.ohotame-index main.ohotame-main { padding: 4px 0 0; }
.ohotame-index .hero { display: grid; grid-template-columns: 1fr auto; max-width: none; padding: 0 0 6px; gap: 2px 20px; }
.ohotame-index .hero > .eyebrow { grid-column: 1; grid-row: 1; font-size: .64rem; margin: 0; }
.ohotame-index .hero > .count { grid-column: 2; grid-row: 1; font-size: .69rem; margin: 0; text-align: right; }
.ohotame-index .hero > h1 { grid-column: 1 / -1; margin: 2px 0; font-size: 1.95rem; }
.ohotame-index .hero > p:not([class]) { grid-column: 1 / -1; max-width: none; margin: 0; font-size: .85rem; line-height: 1.4; }
.ohotame-index .hero > p { line-height: 1.4; }
.ohotame-index .map-heading { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.ohotame-index .map-heading h2 { font-size: 1.15rem; margin: 0; }
.ohotame-index .map-heading p { font-size: .76rem; line-height: 1.4; margin: 0; color: var(--muted); }
.ohotame-index .section-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ohotame-index .section-tabs button {
  font: 500 .9rem/1.25 Georgia, serif; text-align: left; color: var(--ink); background: #eeeee5;
  border: 1px solid var(--line); border-top: 3px solid #b7c6bb; padding: 9px 12px; min-height: 76px; cursor: pointer;
}
.ohotame-index .section-tabs button > span { display: block; font: 650 .61rem/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.ohotame-index .section-tabs button:hover { background: #e4eae3; }
.ohotame-index .section-tabs button[aria-selected="true"] { background: var(--ink); color: #fffdf8; border-color: var(--ink); border-top-color: var(--gold); }
.ohotame-index .landing-ready .panel-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ohotame-index .section-panel:focus-visible { outline: 3px solid #a34d28; outline-offset: 3px; }
.ohotame-index .question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: #fffdf8; border: 1px solid var(--line); border-top: 0; padding: 14px 18px 8px; }
.ohotame-index .question-set { display: flex; flex-direction: column; min-width: 0; }
.ohotame-index .question-set + .question-set { border-left: 1px solid var(--line); padding-left: 20px; }
.ohotame-index .question-set h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font: 650 .73rem/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.ohotame-index .question-set h3 span { font: 500 1.2rem/1 Georgia, serif; color: #77542d; }
.ohotame-index .question-text { font: 1rem/1.43 Georgia, serif; }
.ohotame-index .question-text ul { margin: 0; padding-left: 1.2em; }
.ohotame-index .question-text li { margin: 0 0 .48em; padding-left: .15em; }
.ohotame-index .perspective-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: auto 0 0; padding-top: 4px; font-size: .75rem; }
.ohotame-index .perspective-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; }
.ohotame-index .perspective-links .question-source { margin-left: auto; font-size: .67rem; font-weight: 400; }
.ohotame-index .notice { max-width: none; font-size: .69rem; line-height: 1.4; padding: 6px 10px; margin: 8px 0 0; }
.ohotame-index .archive-browser { border-bottom: 1px solid var(--line); }
.ohotame-index .archive-browser > summary { min-height: 44px; padding: 9px 0; font-size: .8rem; cursor: pointer; font-weight: 650; }
.ohotame-index .archive-browser[open] { padding-bottom: 24px; }
.ohotame-index .overview-return { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.ohotame-index .lab-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 0; margin: 0 auto; border: 0; background: transparent; }
.ohotame-index .lab-footer-main { gap: 8px 20px; align-items: center; }
.ohotame-index .lab-footer .site-brand { font-size: .88rem; }
.ohotame-index .lab-footer .site-brand span { font-size: .55rem; }
.ohotame-index .lab-footer-identity { display: flex; align-items: center; gap: 14px; }
.ohotame-index .lab-footer-identity p { font-size: .6rem; margin: 0; line-height: 1.5; }
.ohotame-index .lab-footer-links { gap: 4px 12px; }
.ohotame-index .lab-footer-links > a, .ohotame-index .lab-footer #privacy-preferences { font-size: .67rem; }
.ohotame-index .lab-footer-bottom { gap: 4px 10px; border: 0; margin: 0; padding: 0; display: block; }
.ohotame-index .lab-footer-support { display: flex; align-items: center; gap: 8px; }
.ohotame-index .lab-footer .affiliation-label { font-size: .5rem; margin: 0; }
.ohotame-index .lab-affiliations { gap: 10px; }
.ohotame-index .lab-affiliations img { height: 15px; }
.ohotame-index .lab-affiliations a { min-height: 30px; }
.ohotame-index .lab-footer-bottom > p { font-size: .52rem; margin: 0; text-align: right; }
@media (min-width: 1000px) and (min-height: 700px) {
  .ohotame-index .landing-ready .question-grid { min-height: 248px; }
}
@media (max-width: 999px) {
  .ohotame-index .lab-footer { display: block; }
  .ohotame-index .lab-footer-bottom { display: flex; margin-top: 10px; }
  .ohotame-index .perspective-links .question-source { margin-left: 0; }
}
@media (max-width: 760px) {
  body.ohotame-index { padding: 10px 18px; }
  .ohotame-index .hero { display: block; padding: 10px 0 16px; }
  .ohotame-index .hero > h1 { font-size: 2rem; margin: 8px 0; }
  .ohotame-index .hero > .count { text-align: left; margin-top: 8px; }
  .ohotame-index .map-heading { display: block; margin-bottom: 10px; }
  .ohotame-index .map-heading p { margin-top: 4px; }
  .ohotame-index .section-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ohotame-index .section-tabs button { min-height: 100px; font-size: .95rem; }
  .ohotame-index .question-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px 14px; }
  .ohotame-index .question-text { font-size: 1.06rem; line-height: 1.6; }
  .ohotame-index .question-set + .question-set { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
  .ohotame-index .perspective-links { font-size: .8rem; gap: 0 14px; }
  .ohotame-index .perspective-links .question-source { font-size: .75rem; }
  .ohotame-index .notice { font-size: .8rem; margin-top: 14px; padding: 10px; }
  .ohotame-index .lab-footer { padding-block: 16px; }
  .ohotame-index .lab-footer-main { display: block; }
  .ohotame-index .lab-footer-identity { flex-wrap: wrap; margin-bottom: 10px; }
  .ohotame-index .lab-footer-identity p, .ohotame-index .lab-footer-bottom > p { font-size: .65rem; }
  .ohotame-index .lab-footer-links > a, .ohotame-index .lab-footer #privacy-preferences { font-size: .8rem; }
  .ohotame-index .lab-footer-bottom { justify-content: flex-start; }
  .ohotame-index .lab-affiliations img { height: 18px; }
  .ohotame-index .lab-affiliations a { min-height: 44px; }
}

/* Section readers retain the complete public text beside its title index. */
.ohotame-section .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 8px 0; }
.ohotame-section .section-heading .eyebrow { margin: 0; font-size: .66rem; }
.ohotame-section .section-heading h1 { font-size: 1.8rem; margin: 2px 0; }
.ohotame-section .section-heading nav { display: flex; gap: 4px; margin: 0; flex-shrink: 0; }
.ohotame-section .section-heading nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; font-size: .75rem; text-decoration: none; }
.ohotame-section .section-heading nav a[aria-current] { background: #e4eae3; text-decoration: underline; font-weight: 650; }
.ohotame-section .reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-bottom: 8px; }
.ohotame-section .reader-toolbar > p { font-size: .74rem; line-height: 1.4; color: var(--muted); margin: 0; }
.ohotame-section .reader-modes { display: flex; gap: 4px; }
.ohotame-section .reader-modes button { min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: #eeeee5; color: var(--ink); font: 650 .78rem/1.4 system-ui,sans-serif; padding: 8px 14px; cursor: pointer; }
.ohotame-section .reader-modes button[aria-pressed="true"] { background: var(--ink); color: #fffdf8; }
.ohotame-section .section-reading-layout { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 2fr); border: 1px solid var(--line); background: #fffdf8; }
.ohotame-section .reader-index { margin: 0; padding: 12px; background: #eeeee5; }
.ohotame-section .reader-index h2 { font: 650 .8rem/1.4 system-ui,sans-serif; margin: 0 0 8px; }
.ohotame-section .reader-index h3 { font: 650 .67rem/1.4 system-ui,sans-serif; letter-spacing: .06em; margin: 12px 8px 4px; color: #77542d; }
.ohotame-section .reader-index a { display: block; padding: 8px; min-height: 44px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; }
.ohotame-section .reader-index a strong { display: block; font: 500 .92rem/1.3 Georgia,serif; }
.ohotame-section .reader-index a span { display: block; font: .69rem/1.4 system-ui,sans-serif; color: var(--muted); margin-top: 3px; }
.ohotame-section .reader-index a:hover { background: #e4eae3; }
.ohotame-section .reader-index a[aria-current] { background: #fffdf8; border-left-color: var(--gold); }
.ohotame-section .reader-index a[aria-current] strong { text-decoration: underline; text-underline-offset: .2em; }
.ohotame-section .reader-panel { padding: 14px 24px 24px; scroll-margin-top: 12px; }
.ohotame-section .reader-panel:focus-visible, .ohotame-section .reader-index:focus-visible { outline: 3px solid #a34d28; outline-offset: -3px; }
.ohotame-section .reader-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 16px; }
.ohotame-section .reader-caption p { margin: 0; font-size: .7rem; color: var(--muted); }
.ohotame-section .reader-caption a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }
.ohotame-section .reader-panel .post-body { font-size: 1.04rem; line-height: 1.65; }
@media (min-width: 1000px) and (min-height: 650px) {
  body.ohotame-section.section-ready { height: 100dvh; display: flex; flex-direction: column; }
  .ohotame-section.section-ready > .container, .ohotame-section.section-ready .ohotame-local-header,
  .ohotame-section.section-ready > .lab-footer { width: 100%; flex-shrink: 0; }
  .ohotame-section.section-ready main.ohotame-main { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
  .ohotame-section.section-ready .section-heading, .ohotame-section.section-ready .reader-toolbar { flex-shrink: 0; }
  .ohotame-section.section-ready .section-reading-layout { flex: 1; min-height: 0; }
  .ohotame-section.section-ready .reader-index { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .ohotame-section.section-ready .reader-content { min-height: 0; overflow: hidden; }
  .ohotame-section.section-ready .reader-panel { height: 100%; overflow: auto; overscroll-behavior: contain; }
}
@media (max-width: 999px), (max-height: 649px) {
  .ohotame-section .section-heading { display: block; }
  .ohotame-section .section-heading nav { flex-wrap: wrap; margin-top: 8px; }
  .ohotame-section .section-heading h1 { font-size: 1.7rem; }
  .ohotame-section .section-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .ohotame-section .reader-panel { padding: 16px; }
  .ohotame-section .reader-index a { padding: 10px; }
  .ohotame-section .reader-index a strong { font-size: 1rem; }
  .ohotame-section .reader-index a span { font-size: .8rem; }
}
