/* Additive reading controls. Existing ten-theme styling remains unchanged. */
.topbar>.reader-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:52px;border-top:1px solid var(--line);font-size:13px}
.reader-search{display:inline-flex;gap:16px;align-items:center;min-height:44px;text-decoration:none;font-weight:600}
.theme-switcher{position:relative;z-index:5;min-width:180px}
.theme-switcher>summary{display:flex;justify-content:space-between;gap:20px;min-height:44px;align-items:center;cursor:pointer;list-style:none}
.theme-switcher>summary::-webkit-details-marker{display:none}
.theme-switcher[open]>summary>span{transform:rotate(45deg)}
.theme-switcher>nav{position:absolute;right:0;top:calc(100% + 8px);display:grid;grid-template-columns:1fr!important;gap:0!important;width:min(340px,calc(100vw - 36px));padding:10px 18px;background:var(--paper);border:1px solid var(--line);box-shadow:0 12px 30px #26362e18}
.theme-switcher>nav>a{display:flex;gap:16px;align-items:center;min-height:45px;border-bottom:1px solid var(--line);padding:9px 0;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.theme-switcher>nav>a:last-child{border:0}
.theme-switcher>nav>a>span{font:12px Georgia,serif;color:var(--accent)}
.theme-switcher a[aria-current]{font-weight:750;color:var(--accent)}
.reading-disclosure{border-left:3px solid var(--accent);padding:17px 22px;background:var(--tint);margin:0 0 30px;font-size:13px}
.reading-disclosure>strong{font-size:13px}.reading-disclosure p{margin:5px 0 0;line-height:1.85}
.article-pager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:25px 0 0;border-top:1px solid var(--line);padding-top:30px}
.article-pager>a{display:flex;flex-direction:column;gap:10px;min-height:110px;padding:20px 24px;border:1px solid var(--line);background:#fff;text-decoration:none}
.article-pager small{color:var(--accent);font-size:12px}.article-pager strong{font-size:16px;font-weight:600;line-height:1.8}
.article-pager a:hover{background:var(--tint)}
.reading-actions{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:24px 0 35px;font-size:13px}
.reading-actions a{display:flex;align-items:center;min-height:44px}.reading-actions [hidden]{display:none}
@media(max-width:700px){.topbar>.reader-nav{gap:14px;font-size:11px;min-height:50px}.reader-search{gap:8px}.theme-switcher{min-width:120px}.theme-switcher>summary{gap:8px}.theme-switcher>nav{font-size:13px}.article-pager{gap:12px}.article-pager>a{padding:16px;min-height:130px}.article-pager strong{font-size:14px}.reading-disclosure{padding:15px 17px;font-size:12px}.reading-actions{align-items:flex-start;gap:12px}.reading-actions .secondary{font-size:12px;padding:12px}.topbar .brand{min-width:0}.topbar .brand small{overflow-wrap:anywhere}}
@media(max-width:380px){.topbar>.reader-nav{flex-wrap:wrap;gap:0;align-items:flex-start}.reader-search{width:100%;border-bottom:1px solid var(--line)}.theme-switcher{width:100%}.theme-switcher>nav{width:100%;font-size:12px}.article-pager{grid-template-columns:1fr}.article-pager>a{min-height:90px}.reading-actions{flex-wrap:wrap}.topbar>.wrap{flex-wrap:wrap;padding-block:14px}.topbar nav{margin-left:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{@page{size:A4;margin:16mm}html{scroll-behavior:auto}body{background:white!important;color:#111!important;font-size:10pt;line-height:1.65}.wrap{width:100%!important;max-width:none!important}.topbar,.skip,.breadcrumb,.article-sidebar,.related,.article-pager,.reading-actions,.reader-nav,.footer,.next-action{display:none!important}.article-header{padding:0 0 15px}.article-header h1{font-size:24pt;max-width:none}.article-layout,.tools-layout{display:block}.article-page{max-width:none!important}.article-section p{font-size:11pt;line-height:1.85}.article-section h2{font-size:16pt;break-after:avoid}.article-section{padding-bottom:15px;margin-bottom:20px}.takeaway,.checks,.reading-disclosure{background:white!important;border:1px solid #777;padding:14px}.takeaway p{font-size:13pt}.source-list{grid-template-columns:1fr}.source-list a{font-size:9pt;overflow-wrap:anywhere}.source-list a::after{content:" (" attr(href) ")";font-weight:normal}.table-scroll{overflow:visible}table{min-width:0!important;font-size:9pt}th,td{min-width:0!important;padding:8px}thead th{background:#eee!important;color:#111!important}.article-pager,.form-actions{display:none!important}.checks label,.worked-example{break-inside:avoid}details{break-inside:avoid}a{color:inherit!important}.reading-disclosure{margin-bottom:20px}}

/* Reader pages are genre-local; the numbered chooser is owner-review-only. */
.theme-switcher>nav>a>span{flex:0 0 2ch;white-space:nowrap}
.genre-reader-nav{justify-content:flex-start!important;flex-wrap:wrap;gap:12px 28px!important}
.genre-reader-nav>a{display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:13px}
@media(max-width:700px){.genre-reader-nav{gap:0 18px!important;padding-block:5px}.genre-reader-nav>a{font-size:12px;min-height:42px}.finder-controls:has(label[hidden]){grid-template-columns:minmax(0,1fr) auto}}

/* v13: keep semantic phrases intact instead of squeezing Japanese into tall columns. */
.genre-color .topbar .brand{min-width:0;flex:1}
.genre-color .brand-phrase,.genre-color .hero-phrase{display:inline-block;white-space:nowrap}
.genre-color .topbar>div.wrap>nav{flex-shrink:0}
.genre-color .topbar nav>a{white-space:nowrap}
.genre-color .hero h1{font-size:clamp(30px,3.1vw,44px);line-height:1.45;letter-spacing:.01em;white-space:normal;overflow-wrap:normal;margin-bottom:16px}
.genre-color .hero-support{font-size:18px;font-weight:600;line-height:1.8;letter-spacing:0;max-width:34em;margin:0 0 20px}
.genre-color .hero-question{font-size:16px;font-weight:600;line-height:1.8;color:var(--secondary);margin:0 0 10px}
@media(min-width:701px) and (max-width:960px){.genre-color .hero h1{font-size:26px}.genre-color .hero-support{font-size:16px}}
@media(max-width:700px){
 .genre-color .topbar>div.wrap{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding-block:15px 8px;min-height:0}
 .genre-color .topbar .brand{display:block;max-width:none;width:100%;font-size:18px;line-height:1.55;letter-spacing:.015em;padding-block:0}
 .genre-color .topbar .brand small{font-size:10px;letter-spacing:.02em;line-height:1.6;margin-bottom:5px}
 .genre-color .topbar>div.wrap>nav{width:100%;max-width:none;display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:18px;font-size:12px;margin:0;min-height:44px}
 .genre-color .topbar>div.wrap>nav>a{min-height:44px;display:inline-flex;align-items:center;flex:0 0 auto}
 .genre-color .topbar>div.wrap>nav .private{margin-left:auto}
 .genre-color .topbar>.genre-reader-nav{justify-content:flex-start;max-width:none;flex-wrap:wrap;gap:0 20px!important;padding-block:3px;min-height:48px}
 .genre-color .topbar>.genre-reader-nav>a{flex:0 0 auto;white-space:nowrap;min-height:42px}
 .genre-color .hero h1{font-size:clamp(24px,6.7vw,28px);line-height:1.5;letter-spacing:0;margin-bottom:12px}
 .genre-color .hero-support{font-size:16px;line-height:1.8;margin-bottom:16px}
 .genre-color .hero .intro{font-size:15px;line-height:1.9;margin-bottom:16px}
 .genre-color .hero .eyebrow{margin-bottom:12px}
 .genre-color .article-header h1{font-size:26px;line-height:1.55;letter-spacing:.01em;text-wrap:balance}
}
