:root {
  --ink: #1d3333;
  --muted: #70807c;
  --paper: #f6f5ef;
  --white: #fffefa;
  --line: #e4e5dc;
  --green: #175f56;
  --green-dark: #104740;
  --green-pale: #e5efe8;
  --gold: #d8b86c;
  --shadow: 0 18px 50px rgba(27, 59, 51, .10);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, 'Yu Gothic', 'Meiryo', sans-serif; line-height: 1.65; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1160px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: white; background: var(--green); font-size: 21px; }
.brand-name strong, .brand-name small { display: block; line-height: 1.2; }
.brand-name strong { font-size: 13px; letter-spacing: .14em; }
.brand-name small { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.main-nav { display: flex; gap: 8px; height: 100%; align-items: center; }
.nav-link { height: 100%; padding: 0 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #566966; font-size: 12px; cursor: pointer; }
.nav-link.active, .nav-link:hover { border-bottom-color: var(--green); color: var(--green-dark); }
.private-note { padding: 6px 11px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 10px; }
main { width: min(1160px, calc(100% - 44px)); min-height: calc(100vh - 143px); margin: 0 auto; padding: 28px 0 56px; }
.home-hero { position: relative; display: flex; align-items: center; min-height: 370px; overflow: hidden; padding: 50px 60px; border-radius: 22px; color: #fff; background: linear-gradient(110deg, #173d38, #1b6055 72%, #387969); box-shadow: var(--shadow); }
.home-hero::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(35deg, transparent 48%, #fff 49%, transparent 50%), linear-gradient(145deg, transparent 48%, #fff 49%, transparent 50%); background-size: 75px 75px; mask-image: linear-gradient(90deg, transparent 20%, #000); }
.hero-content { position: relative; z-index: 2; max-width: 570px; }
.eyebrow { margin: 0 0 10px; color: #648d7c; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.hero-content .eyebrow { color: #bdd8c5; }
h1, h2, h3, p { margin-top: 0; }
.hero-content h1 { margin-bottom: 13px; font-size: clamp(32px, 4.4vw, 51px); line-height: 1.25; font-weight: 600; letter-spacing: -.03em; }
.hero-content h1 span { color: #e6cf91; }
.hero-description { max-width: 495px; margin-bottom: 24px; color: #e2eee6; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 17px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-light { background: #f6e6b8; color: #244b40; }
.button-light:hover { background: #fff0c9; }
.button-primary { margin-top: 14px; background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.hero-illustration { position: absolute; right: 45px; bottom: 0; width: 390px; height: 315px; }
.sun { position: absolute; top: 25px; right: 65px; width: 105px; height: 105px; border-radius: 50%; background: #d9bd77; opacity: .95; }
.building { position: absolute; bottom: 0; display: grid; gap: 9px; padding: 30px 20px 0; border: 1px solid rgba(255,255,255,.46); border-bottom: 0; background: rgba(245, 241, 222, .90); }
.building i { display: block; border: 1px solid rgba(31,83,71,.5); background: rgba(68,120,103,.22); }
.building-back { right: 145px; width: 115px; height: 190px; grid-template-columns: repeat(2,1fr); }
.building-back i { height: 37px; }
.building-front { right: 20px; width: 165px; height: 245px; grid-template-columns: repeat(3,1fr); gap: 11px; padding-inline: 22px; }
.building-front i { height: 42px; }
.ground-line { position: absolute; right: 0; bottom: 0; left: 0; height: 8px; background: #d0b56c; }
.vertical-caption { position: absolute; top: 58px; right: 5px; color: #c0dacb; font-size: 11px; writing-mode: vertical-rl; letter-spacing: .16em; }
.home-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; padding: 52px 10px 42px; }
.intro-heading h2, .home-library h2 { margin-bottom: 8px; font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.intro-heading > p:last-child { max-width: 370px; margin: 0; color: var(--muted); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.feature-card { min-height: 139px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.feature-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 10px; border-radius: 9px; background: #e3eee7; color: var(--green); font-size: 13px; font-weight: 700; }
.feature-icon-vn { background: #edf0f7; color: #4d6480; }
.feature-icon-gold { background: #f4edda; color: #987a39; }
.feature-card h3 { margin-bottom: 4px; font-size: 11px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.home-library { padding: 25px 28px 28px; border: 1px solid var(--line); border-radius: 16px; background: #efeee6; }
.home-library { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.home-library > div .eyebrow { margin-bottom: 4px; }
.home-library h2 { margin: 0; font-size: 20px; }
.text-button, .back-link { padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.featured-book { grid-column: 1 / -1; display: flex; align-items: center; gap: 19px; width: 100%; margin-top: 18px; padding: 15px; border: 1px solid #e0dfd5; border-radius: 12px; background: var(--white); text-align: left; cursor: pointer; transition: box-shadow .16s ease, transform .16s ease; }
.featured-book:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 61, 51, .09); }
.book-cover-mini { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 70px; height: 88px; flex: 0 0 70px; overflow: hidden; border-radius: 3px 7px 7px 3px; background: #2b695d; color: #f7e7bd; text-align: center; box-shadow: inset 5px 0 0 rgba(0,0,0,.12), 2px 3px 5px #c5c8be; }
.book-cover-mini span { font-family: 'Yu Gothic', 'Meiryo', sans-serif; font-size: 15px; line-height: 1.15; }
.book-cover-mini small { margin-top: 7px; font-size: 7px; }
.featured-book-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.featured-book-text small, .book-category { margin: 0; color: #658578; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.featured-book-text strong { font-size: 15px; }
.featured-book-text > span { color: var(--muted); font-size: 10px; }
.book-open-icon { margin-left: auto; color: var(--green); font-size: 20px; }
.site-footer { display: flex; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 15px 22px 23px; border-top: 1px solid var(--line); color: #75827d; font-size: 9px; }
.page-heading { padding: 19px 0 27px; }
.page-heading .back-link { display: block; margin-bottom: 29px; }
.page-heading h1 { margin: 0 0 4px; font-size: 32px; }
.page-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.category-tabs { display: flex; gap: 8px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.category-tab { display: flex; align-items: center; gap: 16px; padding: 9px 13px; border: 1px solid #dfe3dc; border-radius: 8px; background: var(--white); color: #536760; font-size: 10px; cursor: pointer; }
.category-tab span { color: #8a9992; font-size: 9px; }
.category-tab.selected { border-color: var(--green); background: var(--green); color: white; }
.category-tab.selected span { color: #c7e0d1; }
.catalog-summary { display: flex; justify-content: space-between; padding: 21px 0 12px; color: #789084; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.catalog-summary span:last-child { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.book-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.book-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 24px rgba(31, 66, 61, .035); }
.book-cover { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 230px; overflow: hidden; border-radius: 4px 9px 9px 4px; background: linear-gradient(145deg, #1f5a4e, #327867); color: #f1dfac; text-align: center; box-shadow: inset 8px 0 0 rgba(5, 33, 29, .15), 3px 5px 12px rgba(24, 52, 42, .18); }
.cover-lines { position: absolute; inset: 12px; border: 1px solid rgba(238,222,174,.4); }
.cover-kicker { position: relative; z-index: 1; margin-bottom: 8px; font-size: 9px; letter-spacing: .12em; }
.book-cover strong { position: relative; z-index: 1; font-family: 'Yu Gothic', 'Meiryo', sans-serif; font-size: 26px; line-height: 1.22; }
.book-cover small { position: relative; z-index: 1; margin-top: 12px; font-size: 10px; letter-spacing: .08em; }
.cover-number { position: absolute; right: 18px; bottom: 14px; font-size: 8px; }
.book-card-info { align-self: center; padding: 10px 0; }
.book-card-info h2 { margin: 6px 0; font-family: 'Yu Gothic', 'Meiryo', sans-serif; font-size: 16px; line-height: 1.4; }
.book-card-info > p:not(.book-category) { margin: 0; color: var(--muted); font-size: 11px; }
.book-meta { display: flex; gap: 7px; margin-top: 11px; color: #7a8c83; font-size: 9px; }
.empty-category { grid-column: 1 / -1; display: grid; justify-items: center; padding: 54px 20px; border: 1px dashed #cbd7ce; border-radius: 14px; background: rgba(255,254,250,.6); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 20px; }
.empty-category h2 { margin: 14px 0 4px; font-size: 16px; }
.empty-category p { max-width: 380px; margin: 0; color: var(--muted); font-size: 11px; }
.reader-topline { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 18px; }
.reader-breadcrumb { display: flex; align-items: center; gap: 9px; color: #809089; font-size: 10px; }
.reader-breadcrumb b { color: #c0c9c2; }
.reader-breadcrumb strong { color: #435d53; font-weight: 600; }
.reader-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.reader-heading .eyebrow { margin-bottom: 5px; }
.reader-heading h1 { margin: 0; font-family: 'Yu Gothic', 'Meiryo', sans-serif; font-size: 22px; }
.reader-heading #page-label { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.language-switch { display: flex; padding: 3px; border: 1px solid #dfe3dc; border-radius: 9px; background: #eeefe9; }
.language-button { padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: #64736d; font-size: 10px; cursor: pointer; }
.language-button.selected { background: white; color: var(--green-dark); box-shadow: 0 2px 6px rgba(23,64,51,.12); }
.reader-progress { height: 3px; overflow: hidden; border-radius: 3px; background: #e1e5dc; }
.reader-progress span { display: block; width: 33%; height: 100%; background: #4b8b75; transition: width .2s ease; }
.book-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 12px 0 10px; padding: 9px; border: 1px solid #e0e5dd; border-radius: 12px; background: #f8faf6; }
.book-tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.book-tool { min-height: 32px; padding: 6px 9px; border: 1px solid #d8dfd6; border-radius: 7px; background: #fff; color: #43524b; font-size: 10px; cursor: pointer; }
.book-tool:hover, .book-tool.selected { border-color: #4f8c75; background: #e9f3ed; color: #205c48; }
.book-tool:focus-visible, .book-color:focus-visible { outline: 2px solid #337b64; outline-offset: 2px; }
.book-color { width: 22px; height: 22px; padding: 0; border: 2px solid white; border-radius: 50%; background: var(--mark-color); box-shadow: 0 0 0 1px #bbc5bb; cursor: pointer; }
.book-color.selected { box-shadow: 0 0 0 2px #34765f; }
.book-tool-status { flex-basis: 100%; color: #748078; font-size: 10px; }
.reader-layout { display: grid; grid-template-columns: 45px minmax(0,780px) 45px; justify-content: center; align-items: center; gap: 14px; margin: 24px auto 15px; }
.book-page { position: relative; min-height: 640px; padding: 46px 58px 48px; border: 1px solid #e8e4d7; background-color: #fffef8; background-image: radial-gradient(rgba(143,126,87,.045) .6px, transparent .6px); background-size: 7px 7px; box-shadow: 0 8px 25px rgba(52, 53, 36, .12), 0 0 0 7px rgba(255,255,255,.35); color: #272a25; font-family: 'Yu Gothic', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.95; }
.annotation-canvas { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; pointer-events: none; touch-action: none; }
.book-page[data-mark-tool="pencil"] .annotation-canvas, .book-page[data-mark-tool="fine-pen"] .annotation-canvas, .book-page[data-mark-tool="circle"] .annotation-canvas, .book-page[data-mark-tool="eraser"] .annotation-canvas { pointer-events: auto; cursor: crosshair; }
.book-page[data-mark-tool="eraser"] .annotation-canvas { cursor: cell; }
.book-page mark.personal-highlight { padding: 0 .05em; border-radius: 2px; background: var(--personal-highlight, #ffe47a); color: inherit; }
.book-page h2 { margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid #d8d1bd; color: #20251f; font-size: 19px; line-height: 1.55; }
.book-page h2:not(:first-child) { margin-top: 26px; }
.book-page h3 { font-size: 15px; }
.book-page p { margin: 0 0 14px; }
.book-page mark { padding: 0 2px; background: #f2e7a2; color: inherit; }
.study-term { cursor: help; text-decoration: underline dotted #8a7140; text-underline-offset: 3px; }
.study-term:focus-visible { border-radius: 2px; outline: 2px solid #527b69; outline-offset: 2px; }
.exam-key { border-radius: 2px; background: linear-gradient(transparent 68%, rgba(218, 190, 112, .28) 68%); color: inherit; text-decoration: underline; text-decoration-color: #b18b3c; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.term-tooltip { position: fixed; z-index: 1000; width: min(315px, calc(100vw - 24px)); padding: 13px 15px; border: 1px solid #d7ddce; border-radius: 11px; background: #fffef8; color: #26352f; box-shadow: 0 9px 28px rgba(31, 48, 40, .2); font-family: Arial, 'Yu Gothic', 'Meiryo', sans-serif; font-size: 12px; line-height: 1.55; pointer-events: auto; }
.term-tooltip[hidden], .term-tooltip [hidden] { display: none; }
.term-tooltip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.term-reading { color: #587b68; font-size: 11px; font-weight: 700; }
.term-importance { padding: 3px 7px; border-radius: 20px; background: #f3ead0; color: #765d28; font-size: 9px; font-weight: 700; }
.term-meaning { display: block; color: #263f34; font-size: 14px; }
.term-example { display: grid; gap: 4px; margin: 8px 0 0; padding-top: 7px; border-top: 1px solid #e7e7dd; color: #65736c; font-size: 10px; }
.term-illustration { display: flex; justify-content: center; margin-top: 8px; padding: 6px; border-radius: 7px; background: #f1f5ef; }
.term-illustration svg { width: 100px; height: 64px; fill: none; stroke: #3f7867; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.term-illustration svg text { fill: #3f7867; stroke: none; font: 7px Arial, sans-serif; }
.book-page .paper-heading { display: flex; align-items: center; gap: 12px; margin: -10px 0 20px; color: #3c5148; font-size: 15px; font-weight: 700; }
.book-list { display: grid; gap: 5px; margin: 7px 0 14px; padding-left: 22px; }
.book-list li { padding-left: 3px; }
.toc-preface { padding: 8px 11px; border-radius: 5px; background: #f1f4ef; color: #53655b; font-size: 11px; }
.toc-section { margin: 12px 0 16px; break-inside: avoid; }
.toc-section h3 { margin: 8px 0 5px; padding: 4px 8px; background: #327ca0; color: white; font-size: 12px; }
.toc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 0; padding: 0; list-style: none; }
.toc-list li { display: grid; grid-template-columns: 21px minmax(0,1fr) 24px; align-items: start; gap: 5px; padding: 3px 0; border-bottom: 1px dotted #e1ddcf; font-size: 9px; line-height: 1.45; }
.toc-number { display: inline-grid; place-items: center; width: 18px; min-height: 17px; border-radius: 3px; background: #39799a; color: white; font-weight: 700; }
.toc-link { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 5px; width: 100%; color: inherit; text-decoration: none; }
.toc-link:hover .toc-title, .toc-link:focus-visible .toc-title { color: #1b668d; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.toc-link:focus-visible { outline: 2px solid #39799a; outline-offset: 2px; border-radius: 2px; }
.toc-preface a { color: #276b96; text-decoration: underline; text-underline-offset: 2px; }
.toc-title small { display: block; margin-top: 1px; color: #738077; font-size: 8px; }
.toc-page { text-align: right; color: #36779a; font-weight: 700; }
.chapter-opener { margin: 20px 0 26px !important; padding: 17px 10px !important; border: 0 !important; background: #e5f1f2; text-align: center; font-size: 24px !important; }
.planning-illustration { margin: 34px 0 10px; padding: 20px; border-radius: 14px; background: linear-gradient(145deg,#e8f3f2,#f5efe0); color: #315d4c; text-align: center; }
.planning-illustration div { font-size: 19px; font-weight: 700; }
.planning-illustration figcaption { margin-top: 12px; color: #65736c; font-size: 11px; }
.paper-rule { height: 1px; flex: 1; background: #ddd8ca; }
.paper-page-number { position: absolute; right: 24px; bottom: 14px; color: #776f5d; font: 11px Arial, sans-serif; }
.field-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin: 18px auto 0; padding: 12px 15px; border-top: 1px solid #e3dece; border-bottom: 1px solid #e3dece; }
.field-wheel { position: relative; width: 240px; height: 215px; margin: 0 auto; }
.field-wheel::before { content: ''; position: absolute; inset: 35px; border: 2px dotted #6b99a5; border-radius: 50%; }
.field-wheel strong { position: absolute; top: 96px; left: 87px; font-size: 18px; }
.field { position: absolute; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #91b6c0; border-radius: 50%; background: #e3f0ef; font-size: 12px; }
.field-design { top: 2px; left: 47px; }
.field-law { top: 2px; right: 47px; }
.field-structure { top: 76px; left: 0; }
.field-equipment { top: 76px; right: 0; }
.field-construction { bottom: 0; left: 47px; }
.field-material { right: 47px; bottom: 0; }
.field-figure figcaption { color: #43483e; font-size: 11px; line-height: 1.8; }
.author-line { text-align: right; font-size: 12px; }
.geometry-block { margin: 17px 0; padding: 15px; border-top: 1px solid #e7e1d0; border-bottom: 1px solid #e7e1d0; background: rgba(250,249,239,.7); }
.formula-card { display: grid; grid-template-columns: 1fr .8fr; gap: 14px; align-items: center; padding: 8px; }
.formula-card svg { width: 100%; height: 125px; overflow: visible; }
.formula-card svg path, .formula-card svg rect { fill: none; stroke: #333932; stroke-width: 3; stroke-linejoin: round; }
.formula-card svg .dash { stroke-dasharray: 6 5; stroke-width: 2; }
.formula-card svg text { fill: #343a32; stroke: none; font: 16px Arial, sans-serif; }
.formula-card p { margin: 0; font-size: 11px; line-height: 1.75; }
.formula-card .blue-note { color: #3f7092; font-weight: 700; }
.trapezoid-card { border-top: 1px dotted #d6d0c0; }
.geometry-question { margin: 8px 0; color: #3f7092; font-weight: 700; }
.memory-note { margin: 10px 0 0 !important; color: #333a33; font-size: 11px; font-weight: 700; text-align: right; }
.handwriting-vocab { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 18px; padding: 12px 14px; border-left: 3px solid #dfa98c; background: #fff6ee; font-family: Arial, 'Yu Gothic', 'Meiryo', sans-serif; font-size: 10px; line-height: 1.6; }
.handwriting-vocab strong { width: 100%; color: #825942; }
.book-blue-heading { margin: 18px 0 8px; color: #276b96; font-size: 14px !important; }
.book-blue-text { color: #286b96; }
.book-blue-box { margin: 12px 0; padding: 10px 13px; border: 1px solid #6d9ab0; border-radius: 3px; background: #e7f1f5; color: #34434a; }
.book-blue-box > :first-child { margin-top: 0; }
.book-blue-box > :last-child { margin-bottom: 0; }
.book-blue-box h4, .book-blue-box figcaption { margin: 0 0 7px; color: #286b96; font-size: 12px; font-weight: 700; }
.book-table { width: 100%; margin: 12px 0; border-collapse: collapse; color: #343a32; font-size: 11px; }
.book-table caption { padding: 7px; border: 1px solid #7f9dab; border-bottom: 0; background: #dcecf2; color: #285e7a; font-weight: 700; text-align: left; }
.book-table th, .book-table td { padding: 6px 8px; border: 1px solid #9aabb0; text-align: left; vertical-align: top; }
.book-table th { background: #dcecf2; color: #334c58; }
.book-table tbody tr:nth-child(even) { background: #f1f6f7; }
.book-illustration { margin: 12px 0; padding: 10px; border: 1px solid #e1dccd; background: #faf9f2; }
.book-illustration svg { display: block; width: 100%; max-height: 210px; margin: auto; }
.book-illustration figcaption { margin-top: 6px; color: #4c5049; font-size: 10px; text-align: center; }
.book-illustration svg text { fill: #34434a; stroke: none; font: 12px Arial, 'Yu Gothic', sans-serif; }
.book-illustration svg .blue-line { fill: none; stroke: #377da2; stroke-width: 3; }
.book-illustration svg .gray-line { fill: none; stroke: #50554e; stroke-width: 2; }
.book-illustration svg .dash-line { fill: none; stroke: #4688aa; stroke-width: 2; stroke-dasharray: 5 4; }
.book-diagram { margin: 12px 0; padding: 10px 12px; border: 1px solid #e1dccd; background: #faf9f2; }
.book-diagram p { margin: 6px 0; }
.thermal-factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.thermal-factor-grid span { padding: 7px; border-bottom: 2px solid #78a1b2; background: #eaf3f5; text-align: center; }
.book-timeline { display: grid; gap: 3px; margin: 8px 0 15px; padding: 0; list-style: none; }
.book-timeline li { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 5px 9px; border-bottom: 1px dotted #ded8c8; font-size: 12px; }
.book-timeline b { color: #393f38; }
.book-handnote { margin: 10px 0 15px auto; padding: 8px 12px; width: fit-content; border-right: 2px solid #9c8666; color: #554b3b; font-size: 11px; line-height: 1.55; text-align: center; transform: rotate(-1deg); }
.book-handnote small { color: #8a7b66; font-size: 8px; }
.book-session { margin: 12px 0; padding: 11px 14px; border: 1px solid #e1dccd; background: #faf9f2; }
.book-session p { margin: 0; font-size: 12px; }
.book-session .lunch { padding-left: 115px; color: #766d5c; font-size: 10px; }
.verification-note { padding: 9px 12px; border-left: 3px solid #c9954a; background: #fcf2df; color: #714f20; font-family: Arial, sans-serif; font-size: 11px; }
.page-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d8e0d8; border-radius: 50%; background: var(--white); color: var(--green); font-size: 20px; cursor: pointer; }
.page-arrow:hover:not(:disabled) { background: var(--green); color: white; }
.page-arrow:disabled { opacity: .35; cursor: default; }
.reader-bottomline { display: flex; justify-content: space-between; max-width: 880px; margin: 15px auto 0; color: var(--muted); font-size: 9px; }
button:focus-visible { outline: 3px solid #c7a64f; outline-offset: 3px; }

@media (max-width: 850px) {
  .home-intro { grid-template-columns: 1fr; gap: 22px; }
  .hero-illustration { right: 5px; opacity: .75; }
  .book-grid { grid-template-columns: 1fr; }
  .book-page { padding: 35px 38px 45px; }
}
@media (max-width: 600px) {
  .site-header { height: 65px; padding: 0 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name strong { font-size: 11px; }
  .brand-name small { font-size: 7px; }
  .main-nav { gap: 0; }
  .nav-link { padding: 0 8px; font-size: 10px; }
  .private-note { display: none; }
  main { width: calc(100% - 26px); padding-top: 16px; }
  .home-hero { min-height: 340px; padding: 36px 23px; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 35px; }
  .hero-description { max-width: 300px; font-size: 12px; }
  .hero-illustration { right: -95px; opacity: .35; }
  .home-intro { padding: 37px 2px 28px; }
  .intro-heading h2 { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 35px 1fr; column-gap: 8px; min-height: 0; padding: 12px; }
  .feature-icon { grid-row: span 2; margin: 0; }
  .feature-card h3 { margin: 0; }
  .home-library { padding: 19px 15px; }
  .featured-book { gap: 11px; padding: 10px; }
  .book-cover-mini { width: 58px; height: 76px; flex-basis: 58px; }
  .featured-book-text strong { font-size: 12px; }
  .featured-book-text small { font-size: 7px; }
  .featured-book-text > span { font-size: 9px; }
  .page-heading h1 { font-size: 28px; }
  .category-tabs { overflow-x: auto; }
  .category-tab { flex: 0 0 auto; gap: 7px; font-size: 9px; }
  .book-card { grid-template-columns: 105px 1fr; gap: 13px; padding: 12px; }
  .book-cover { min-height: 180px; }
  .book-cover strong { font-size: 21px; }
  .book-card-info h2 { font-size: 13px; }
  .reader-topline { align-items: flex-start; flex-direction: column; gap: 5px; }
  .reader-breadcrumb { font-size: 9px; }
  .reader-heading { align-items: flex-start; flex-direction: column; }
  .book-tools { gap: 6px; padding: 7px; }
  .book-tool { min-height: 34px; font-size: 9px; }
  .book-tool-group { gap: 4px; }
  .book-tool-status { font-size: 9px; }
  .toc-list { grid-template-columns: 1fr; }
  .reader-heading h1 { font-size: 18px; }
  .reader-layout { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 5px; margin-top: 17px; }
  .page-arrow { width: 29px; height: 29px; font-size: 15px; }
  .book-page { min-height: 570px; padding: 28px 20px 42px; font-size: 12px; line-height: 1.85; }
  .book-page h2 { font-size: 16px; }
  .field-figure { grid-template-columns: 1fr; gap: 7px; padding: 10px 2px; }
  .field-wheel { transform: scale(.9); margin: -5px auto; }
  .field-figure figcaption { text-align: center; }
  .formula-card { grid-template-columns: 1fr; gap: 0; }
  .thermal-factor-grid { grid-template-columns: 1fr 1fr; }
  .formula-card svg { height: 115px; }
  .formula-card p { padding: 0 7px 6px; text-align: center; }
  .book-timeline li { grid-template-columns: 85px 1fr; font-size: 10px; }
  .book-session { padding: 8px; }
  .book-session p { font-size: 10px; }
  .book-session .lunch { padding-left: 60px; }
  .reader-bottomline { gap: 10px; font-size: 8px; }
  .site-footer { gap: 5px; flex-direction: column; padding: 13px; }
}
