/* Section navigation uses the same database sections as the homepage. */
.board-navigation { overflow: visible; gap: 18px; position: relative; z-index: 30; justify-content: space-between; flex-wrap: wrap; height: auto; min-height: 49px; }
.board-navigation > a,.board-menu summary { height: auto; font-size: 12px; white-space: nowrap; }
.board-menu { position: static; }
.board-menu summary { display: flex; align-items: center; gap: 6px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 750; color: #173d29; }
.board-menu summary::-webkit-details-marker { display: none; }
.board-menu summary span { display: flex; color: #496151; }
.board-menu summary svg { width: 13px; height: 13px; }
.board-menu[open] summary { color: #127a45; }
.section-dropdown { position: absolute; top: 100%; left: 0; width: min(650px,100%); max-height: min(65dvh,520px); overflow: auto; padding: 20px; background: #fff; border: 1px solid #d6e3da; border-radius: 0 0 12px 12px; box-shadow: 0 16px 32px #1c39221c; }
.section-all { display: flex; align-items: center; gap: 9px; padding: 0 0 14px; border-bottom: 1px solid #e3ece6; color: #127a45; font-weight: 650; font-size: 13px; }
.section-all svg { width: 16px; }
.section-menu-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 20px; }
.section-menu-groups h2 { margin: 16px 8px 8px; font-family: inherit; font-size: 13px; letter-spacing: .03em; }
.board-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.board-dropdown a { padding: 10px 8px; border-radius: 5px; font-size: 12px; }
.board-dropdown a:hover,.board-dropdown a:focus-visible { background: #edf6ef; color: #126c3c; }
@media(max-width:680px) {
 .board-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; overflow: visible; padding-block: 5px; min-height: 0; }
 .board-navigation .nav-browse { display: none; }
 .board-navigation > a,.board-menu summary { font-size: 11px; padding: 10px 0; white-space: normal; min-height: 42px; line-height: 1.3; }
 .board-menu summary { gap: 3px; }
 .section-dropdown { width: 100%; padding: 14px; }
 .section-menu-groups { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
 .section-menu-groups h2 { margin-inline: 4px; }
 .board-dropdown { grid-template-columns: 1fr; }
 .board-dropdown a { padding: 8px 4px; }
}
.new-release-hero { padding-block: 40px 32px; display: grid; grid-template-columns: 1fr 2fr; gap: 36px; align-items: center; }
.new-release-intro .eyebrow { font-size: 10px; letter-spacing: .15em; }
.new-release-intro h1 { font-size: clamp(30px,3.5vw,52px); line-height: 1.1; letter-spacing: -.045em; margin: 18px 0; font-weight: 650; }
.new-release-intro h1 em { color: #157a46; font-style: normal; }
.new-release-intro p { color: #48604f; font-size: 14px; line-height: 1.7; margin-bottom: 23px; }
.new-release-shelf { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 22px 20px; border-radius: 14px; background: #f2f6ef; border: 1px solid #dde6da; }
.new-release-book { min-width: 0; display: flex; flex-direction: column; }
.release-number { font-size: 8px; color: #4a6350; letter-spacing: .07em; margin-bottom: 16px; }
.release-cover { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: .77; padding: 0 5px 12px; border-bottom: 1px solid #c7d5c4; margin-bottom: 14px; }
.release-cover img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(3px 7px 5px #243c2826); transition: transform .2s; }
.new-release-book:hover .release-cover img { transform: translateY(-5px); }
.new-release-book .book-subject { font-size: 9px; }
.new-release-book h2 { font-size: 12px; line-height: 1.45; margin: 7px 0 12px; font-weight: 650; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.release-price { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-weight: 650; font-size: 11px; color: #126b3c; }
.release-price svg { width: 14px; height: 14px; }
@media(max-width:1000px) { .new-release-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }.new-release-intro h1 br { display: none; }.new-release-intro p br { display: none; }.new-release-intro h1 { margin: 12px 0; }.new-release-intro p { margin-bottom: 12px; }.release-cover { max-height: 215px; } }
@media(max-width:680px) { .new-release-hero { padding-block: 24px; }.new-release-intro h1 { font-size: 32px; }.new-release-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; padding: 18px; }.new-release-book h2 { font-size: 13px; }.release-number { font-size: 8px; }.release-cover { height: 170px; aspect-ratio: auto; }.release-price { font-size: 12px; } }
/* The reader owns one fixed viewport; only the document and panels scroll. */
body.is-reader { overflow: hidden; }
.study-reader { --study-bg:#e9ece8; --study-panel:#fafbf9; --study-ink:#263c30; --study-muted:#5b6b61; --study-border:#d9dfd8; --study-accent:#166c43; --study-active:#e2efe4; --study-left:260px; --study-right:330px; position: fixed; inset: 0; z-index: 100; height: 100dvh; display: grid; grid-template-rows: 64px auto minmax(0,1fr) auto 42px; color: var(--study-ink); background: var(--study-bg); font-family: inherit; font-size: 13px; }
.study-reader[data-theme="dark"] { --study-bg:#181d1a; --study-panel:#232b26; --study-ink:#e3e9e4; --study-muted:#b0bfb3; --study-border:#3d4840; --study-accent:#a4dfb5; --study-active:#344d3a; color-scheme: dark; }
.study-reader[data-theme="sepia"] { --study-bg:#e6decc; --study-panel:#f7f1e4; --study-ink:#443c2b; --study-muted:#6a604b; --study-border:#d6cbb3; --study-accent:#6d5b2d; --study-active:#e8ddbf; }
.study-reader *, .study-reader *::before,.study-reader *::after { box-sizing: border-box; }
.study-reader [hidden] { display: none !important; }
.study-reader button,.study-reader input,.study-reader select,.study-reader textarea { font: inherit; color: inherit; }
.study-reader button { cursor: pointer; border: 1px solid transparent; background: transparent; border-radius: 6px; min-height: 36px; padding: 7px 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; line-height: 1.3; }
.study-reader button:hover { background: var(--study-active); }
.study-reader button:disabled { opacity: .38; cursor: default; }
.study-reader button[aria-pressed="true"] { background: var(--study-active); color: var(--study-accent); border-color: var(--study-border); }
.study-reader :is(button,a,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--study-accent); outline-offset: 3px; }
.study-reader svg { width: 18px; height: 18px; flex-shrink: 0; }
.study-reader input,.study-reader select,.study-reader textarea { background: var(--study-panel); border: 1px solid var(--study-border); border-radius: 6px; padding: 9px; min-width: 0; }
.study-reader textarea { display: block; width: 100%; resize: vertical; line-height: 1.6; margin-top: 8px; }
.study-header { display: flex; align-items: center; gap: 12px; background: var(--study-panel); border-bottom: 1px solid var(--study-border); padding: 9px 18px; min-width: 0; }
.study-back { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-right: 1px solid var(--study-border); }
.study-heading { flex: 1; min-width: 0; }.study-heading > span { font-size: 9px; letter-spacing: .13em; color: var(--study-muted); font-weight: 600; }.study-heading h1 { font-weight: 600; font-size: 14px; line-height: 1.4; margin: 3px 0 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.study-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 4px 14px; background: var(--study-panel); border-bottom: 1px solid var(--study-border); padding: 7px 14px; position: relative; z-index: 3; }
.study-tool-group { display: flex; gap: 3px; align-items: center; min-width: 0; }.study-divider { height: 22px; width: 1px; background: var(--study-border); margin: 0 5px; }.study-page-control { display: flex; gap: 7px; align-items: center; white-space: nowrap; font-size: 12px; }.study-page-control input { width: 53px; padding: 7px 4px 7px 7px; }.study-select select { font-size: 11px; padding: 8px 6px; max-width: 120px; min-height: 34px; }.study-zoom { min-width: 53px; font-variant-numeric: tabular-nums; }
.study-workspace { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); position: relative; overflow: hidden; }.has-navigation .study-workspace { grid-template-columns: var(--study-left) minmax(0,1fr); }.has-context .study-workspace { grid-template-columns: minmax(0,1fr) var(--study-right); }.has-navigation.has-context .study-workspace { grid-template-columns: var(--study-left) minmax(0,1fr) var(--study-right); }
.study-navigation,.study-context { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--study-panel); position: relative; overflow: hidden; }.study-navigation { border-right: 1px solid var(--study-border); }.study-context { border-left: 1px solid var(--study-border); }.study-panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; gap: 10px; }.study-panel-heading h2 { font-size: 13px; font-weight: 650; margin: 0; }.study-panel-heading button { min-width: 34px; }.study-panel-select { padding: 0 14px 12px; font-size: 11px; color: var(--study-muted); }.study-panel-select select { display: block; width: 100%; margin-top: 6px; }.study-panel-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 24px; scrollbar-width: thin; }.study-panel-content label { display: block; font-size: 12px; line-height: 1.5; }.study-panel-content input { width: 100%; margin-block: 6px 10px; }
.study-document { min-width: 0; min-height: 0; padding: 0; overflow: auto; overscroll-behavior: contain; position: relative; outline-offset: -3px; scrollbar-width: thin; background: var(--study-bg); touch-action: pan-x pan-y; }
.study-pages { display: flex; flex-direction: column; align-items: flex-start; width: max-content; min-width: 100%; padding: 20px; gap: 24px; position: relative; }
.study-pages[data-layout="spread"] { flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 16px; }
.study-page { position: relative; flex-shrink: 0; margin-inline: auto; background: #fff; color: #37473d; box-shadow: 0 2px 10px #182a201c; overflow: hidden; }
.study-page canvas { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; }.study-page-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 22px; text-align: center; background: #fff; color: #405347; }.study-page-placeholder span { font-size: 12px; max-width: 300px; }.study-page-placeholder button { color: #126c3c; border-color: #a4b7a7; }.study-page-number { position: absolute; bottom: 3px; right: 7px; font-size: 9px; color: #356245; background: #f1f8f0e8; padding: 1px 4px; border-radius: 3px; pointer-events: none; }
.study-reader .study-annotation-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }.study-reader:not([data-tool="select"]) .study-page { cursor: crosshair; touch-action: none; }
.study-markbar { display: flex; justify-content: center; gap: 4px; align-items: center; background: var(--study-panel); padding: 4px 10px; border-top: 1px solid var(--study-border); }.study-mark-label { font-size: 10px; color: var(--study-muted); margin-right: 8px; }.study-footer { display: flex; align-items: center; gap: 18px; background: var(--study-panel); border-top: 1px solid var(--study-border); padding: 5px 18px; font-size: 10px; }.study-footer > [role="status"] { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 38%; }.study-footer label { flex: 1; max-width: 360px; margin-left: auto; }.study-footer input { padding: 0; border: 0; width: 100%; accent-color: #247548; display: block; }.study-license { display: flex; align-items: center; gap: 5px; color: var(--study-muted); white-space: nowrap; }.study-license svg { width: 12px; height: 12px; }
.study-muted { color: var(--study-muted); font-size: 11px; line-height: 1.7; }.study-empty { padding: 20px 0; font-size: 12px; line-height: 1.8; color: var(--study-muted); }.study-reader button.study-primary { display: flex; background: var(--study-accent); color: var(--study-panel); padding-inline: 14px; margin-block: 10px; font-weight: 600; }.study-reader button.study-link { color: var(--study-accent); padding-inline: 0; font-size: 12px; justify-content: flex-start; }.study-link svg { width: 13px; height: 13px; }
.study-thumbnail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.study-reader .study-thumbnail { display: block; padding: 5px; border: 2px solid var(--study-border); }.study-thumbnail img { display: block; width: 100%; aspect-ratio: .71; object-fit: contain; background: #fff; }.study-thumbnail span { display: block; padding-top: 4px; font-size: 11px; }.study-thumbnail[aria-current="page"] { border-color: var(--study-accent); background: var(--study-active); }.study-result-navigation { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin: 9px 0; gap: 3px; }.study-result-navigation button { font-size: 10px; padding-inline: 4px; }
.study-contents { padding-left: 18px; font-size: 12px; line-height: 1.8; }.study-contents li { margin-block: 9px; }.study-contents button { text-align: left; font-size: 12px; justify-content: flex-start; }
.study-reader .study-search-result { display: grid; text-align: left; width: 100%; justify-items: start; justify-content: stretch; padding: 12px; gap: 7px; margin-block: 8px; border: 1px solid var(--study-border); }.study-search-result span { font-size: 12px; line-height: 1.7; }.study-search-result.selected { background: var(--study-active); }.study-reader mark { background: #f5cc62; color: #2d3523; border-radius: 2px; }.study-filter-label { margin-top: 16px; }
.study-note-card { border: 1px solid var(--study-border); border-radius: 7px; padding: 10px 12px; margin-top: 12px; }.study-note-card > span { font-size: 10px; color: var(--study-muted); text-transform: capitalize; }.study-note-card p,.study-note-card blockquote { font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }.study-note-card blockquote { margin: 8px 0; padding-left: 10px; border-left: 2px solid var(--study-border); }.study-note-card > div { display: flex; justify-content: flex-end; }.study-note-card > div button { font-size: 11px; min-height: 30px; }
.study-context-tabs { display: flex; padding-bottom: 9px; border-bottom: 1px solid var(--study-border); gap: 5px; }.study-context-tabs button { font-size: 11px; flex: 1; }#study-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 14px; font-family: Georgia,serif; margin-top: 14px; user-select: text; }.study-ai-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 12px; }.study-ai-actions button { font-size: 11px; border-color: var(--study-border); min-height: 32px; }.study-answer { margin-top: 22px; border-top: 1px solid var(--study-border); padding-top: 16px; }.study-answer p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 13px; }.study-answer small { color: var(--study-muted); line-height: 1.7; }.study-answer h3 { font-size: 12px; margin-top: 20px; }.study-reader .study-source { display: grid; text-align: left; justify-items: start; font-size: 11px; line-height: 1.7; width: 100%; border: 1px solid var(--study-border); margin-bottom: 10px; }.study-source span { display: block; }
.study-resize { position: absolute; top: 55px; bottom: 0; width: 7px; cursor: col-resize; z-index: 4; }.study-navigation .study-resize { right: -2px; }.study-context .study-resize { left: -2px; }.study-resize:hover { background: var(--study-active); }
.study-selection-tools { position: absolute; bottom: 95px; right: 20px; max-width: calc(100% - 40px); display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; border: 1px solid var(--study-border); border-radius: 8px; box-shadow: 0 5px 20px #13221926; background: var(--study-panel); z-index: 30; }.study-selection-tools button { font-size: 11px; }
.study-dialog { color: var(--study-ink); background: var(--study-panel); border: 1px solid var(--study-border); width: min(480px,calc(100vw - 24px)); max-height: 88dvh; overflow: auto; border-radius: 12px; padding: 16px; }.study-dialog::backdrop { background: #15241d66; }.study-dialog .study-panel-heading { padding: 0 0 14px; }.study-dialog label { font-size: 12px; display: block; }.study-dialog > input { width: 100%; }.study-note-error { color: #c74f43; font-size: 12px; line-height: 1.6; }#study-command-list { margin-block: 10px; }#study-command-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; }.study-reader kbd { color: var(--study-muted); font-size: 10px; }.study-shortcut-setting { display: flex !important; align-items: center; gap: 8px; border-top: 1px solid var(--study-border); padding-top: 12px; }.study-shortcut-setting input { accent-color: #247548; }
.study-reader.study-focus { grid-template-rows: 45px 0 minmax(0,1fr) 0 32px; }.study-focus .study-header { padding-block: 4px; }.study-focus .study-heading > span { display: none; }.study-focus .study-toolbar,.study-focus .study-markbar { overflow: hidden; visibility: hidden; padding: 0; border: 0; }.study-focus .study-license { display: none; }
@media(max-width:1200px) { .study-toolbar { gap: 5px; }.study-tool-group { gap: 0; }.study-select select { max-width: 100px; }.study-reader button { padding-inline: 7px; }.study-divider { margin: 0 3px; } }
@media(max-width:1000px) { .study-workspace,.has-navigation .study-workspace,.has-context .study-workspace,.has-navigation.has-context .study-workspace { display: block; }.study-document { position: absolute; inset: 0; }.study-navigation,.study-context { position: absolute; top: 0; bottom: 0; width: min(340px,calc(100vw - 45px)); z-index: 12; box-shadow: 0 6px 25px #14231b29; }.study-navigation { left: 0; }.study-context { right: 0; }.study-scrim { position: absolute; inset: 0; z-index: 10; background: #172e2140; }.study-resize { display: none; }.study-license { display: none; }.study-toolbar { justify-content: center; }.study-reader .study-select select { max-width: 110px; } }
@media(max-width:680px) { .study-reader { grid-template-rows: 57px auto minmax(0,1fr) auto 39px; }.study-header { gap: 6px; padding-inline: 8px; }.study-heading h1 { font-size: 12px; }.study-heading > span { font-size: 8px; }.study-header > button { min-width: 34px; padding: 5px; }.study-reader button { min-height: 38px; }.study-toolbar { padding: 4px 7px; gap: 2px 10px; justify-content: space-between; }.study-tool-group:first-child { order: 1; }.study-tool-group:nth-child(2) { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--study-border); padding-top: 2px; }.study-tool-group:nth-child(3) { order: 2; }.study-tool-group:first-child [data-r^="history-"] { display: none; }.study-theme { display: none; }.study-page-control { gap: 4px; font-size: 11px; }.study-page-control input { width: 44px; padding: 7px 3px; }.study-divider { display: none; }.study-toolbar button { padding: 5px; min-width: 32px; }.study-reader .study-select select { max-width: 100px; font-size: 11px; }.study-toolbar [data-r="note"] { display: none; }.study-markbar { gap: 0; padding-inline: 4px; }.study-markbar button { min-width: 36px; padding-inline: 6px; }.study-mark-label { display: none; }.study-markbar .study-select select { max-width: 65px; font-size: 10px; padding-inline: 2px; }.study-footer { gap: 9px; padding-inline: 10px; }.study-footer > [role="status"] { max-width: 48%; font-size: 9px; }.study-footer label { max-width: 35%; }.study-pages { padding: 12px 20px; gap: 16px; }.study-pages[data-layout="spread"] { flex-direction: column; gap: 16px; }.study-reader.study-focus { grid-template-rows: 45px 0 minmax(0,1fr) 0 32px; }.study-selection-tools { right: 8px; bottom: 88px; max-width: calc(100% - 16px); }.study-panel-content { padding-inline: 16px; } }
@media(prefers-reduced-motion:reduce) { .new-release-book .release-cover img { transition: none; }.study-reader * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media(max-width:680px) { .study-toolbar button { min-height:44px; min-width:40px; }.study-toolbar .study-select select { min-height:40px; }.study-markbar button { min-width:40px; min-height:40px; }.study-header > button,.study-back { min-width:38px; min-height:40px; }.study-reader input[type="number"] { min-height:40px; } }

.study-export-actions { display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap; }.study-download { display:inline-flex;align-items:center;min-height:38px;padding:9px 14px;border:1px solid var(--study-border);border-radius:6px;color:var(--study-accent);font-size:12px;font-weight:600; }
