/* TriBook V25.6 — site-wide editorial design */
html[data-theme=light],html:not([data-theme]){color-scheme:light;--bg:#f4f7fb;--card:#fff;--line:#dce5ef;--text:#14263d;--muted:#53657a;--accent:#0757a6;--green:#127d63;--gold:#98601b;--blue:#0756a5;--soft:#eaf2fc}
html[data-theme=dark]{--blue:#73b9ff;--soft:#172c46;--bg:#0b1627;--card:#112239;--line:#2b415c;--text:#edf5ff;--muted:#b3c4d8;--accent:#86c2ff}
html body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.65}html .wrap{width:min(1240px,calc(100% - 48px))}html header,html[data-theme=light] header{background:var(--card);color:var(--text);border-bottom:1px solid var(--line);box-shadow:0 2px 10px #102b4610;backdrop-filter:none}html header .nav{min-height:66px;gap:20px}html header .brand{flex:none;display:flex;gap:7px;align-items:center;color:var(--text);font-size:25px;letter-spacing:-1px;font-weight:850}html header .brand .tb256-mark{width:37px;height:37px;object-fit:contain;display:block;max-width:none}html header .brand .tb256-word em{color:var(--blue);font-style:normal}html header .navlinks,html[data-theme=light] header .navlinks{display:flex;gap:24px;align-items:center;color:var(--text);font-weight:650;font-size:14px;flex:1;justify-content:center}html header .navlinks a:hover{color:var(--blue)}html header .navright{display:none}html header .langswitch{display:flex;gap:2px;align-items:center;background:var(--soft);border:0;padding:3px;border-radius:8px;flex:none}html header .langswitch :is(a,span){color:var(--text);border:0;padding:4px 8px;font-size:12px;border-radius:5px}html header .langswitch [aria-current=true]{background:#0756a5;color:#fff}html header .tb10-theme,html[data-theme=light] header .tb10-theme{border:1px solid var(--line);color:var(--text);background:var(--card);padding:5px 10px;min-width:34px}html .tb256-searchlink{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:8px;color:var(--text)}.tb256-searchlink svg{width:20px;height:20px}.tb256-searchlink:hover{background:var(--soft)}
html .primary{background:#0756a5;color:white;border-color:#0756a5}html .primary:hover:not(:disabled){background:#064583}html :is(.secondary,.filter,.tb8-fav){border-color:var(--line);background:var(--card);color:var(--text)}html :is(.secondary,.filter,.tb8-fav):hover{background:var(--soft)}html .filter.active{background:#0756a5;color:#fff}html .hero{position:relative;display:flex;align-items:flex-end;min-height:400px;isolation:isolate;background:#0a213c;border:0;border-radius:16px;box-shadow:none;overflow:hidden;margin:22px 0 18px}html .heroart{position:absolute;inset:0;z-index:-2;height:100%;min-height:0;width:100%;display:block}html .heroart img{width:100%;height:100%;object-fit:cover;max-height:none;display:block}html .hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071a31ed 0%,#071a3199 40%,#071a3112 100%)}html .herotext{position:relative;padding:40px;max-width:680px;color:white}html .hero h1{font-size:clamp(35px,5vw,59px);line-height:1.1;letter-spacing:-1.5px;color:#fff;margin:14px 0}html .hero h1 span{color:#b6ddff}html .hero .eyebrow,html[data-theme=light] .hero .eyebrow{color:#d8edff;letter-spacing:.12em}html .hero p{color:#eaf2fa}html .hero .secondary,html[data-theme=light] .hero .secondary{background:#ffffff20;color:white;border:1px solid #ffffff80}html .hero .primary{background:#0756a5;color:white}html .sectionhead h2,html .tb25-featured h2{font-size:clamp(23px,3vw,32px);color:var(--text);letter-spacing:-.6px}html .sectionhead{border-bottom:1px solid var(--line);padding-bottom:12px}html .ed-kicker,html .ed-more{color:var(--blue);font-weight:750}html .tb25-featured{margin:28px 0}html .tb25-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}html :is(.ed-card,.tb25-card,.tile,.tb10-panel,.tb9-guide,.ed-panel,.strip,.stat,.legal,.tb8-search){background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px #102b4608;color:var(--text)}html :is(.ed-card,.tb25-card):hover{border-color:var(--blue);transform:translateY(-2px)}html .ed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}html .ed-card>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}html .ed-body{padding:18px}html .ed-body h3{font-size:19px;line-height:1.4;color:var(--text)}html .ed-body p{color:var(--muted);font-size:14px;line-height:1.6}html .ed-banner{background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--text);margin-top:22px}html .ed-banner h1{color:var(--text)}html .ed-banner p{color:var(--muted)}html .topicbar a{background:var(--card);border:1px solid var(--line);color:var(--blue);border-radius:8px}html .tb8-search label{color:var(--blue)}html :is(.tb8-search input,.tb8-filter input,.tb8-filter select){background:var(--card);color:var(--text);border-color:var(--line)}html .tb8-results a{background:var(--soft);color:var(--text)}html .footer{border-color:var(--line);color:var(--muted)}html .ed-article:not(.tb23-editorial){background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:clamp(18px,4vw,36px);max-width:920px;margin:25px auto 50px}html .ed-article:not(.tb23-editorial) h1{font-size:clamp(29px,4vw,42px);color:var(--text)}
/* Article cover, horizontal chapter index and alternating illustrated scenes */
html .tb23-editorial{max-width:1160px;margin:18px auto 50px;padding:0;color:var(--text);--tb23-blue:var(--blue);--tb23-ink:var(--text);--tb23-dim:var(--muted);--tb23-surface:var(--card);--tb23-line:var(--line)}html .tb23-editorial .ed-links{font-size:13px;margin:0 0 10px}html .tb23-discoveryhero{position:relative;display:flex;align-items:flex-end;min-height:340px;isolation:isolate;border:0;border-radius:12px;background:#071a31}html .tb23-discoveryhero .tb23-hero-visual{position:absolute;inset:0;z-index:-2;display:block}html .tb23-discoveryhero .tb23-hero-visual>img{height:100%;width:100%;max-height:none!important;object-fit:cover;aspect-ratio:auto}html .tb23-discoveryhero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#061527e8 0%,#06152790 46%,#06152708 100%),linear-gradient(0deg,#06152799,transparent 70%)}html .tb23-discoveryhero .tb23-hero-copy{padding:30px 32px;width:min(780px,100%)}html .tb23-editorial .tb23-discoveryhero h1,html[data-theme=light] .tb23-editorial .tb23-discoveryhero h1{color:#fff;font-size:clamp(29px,4.4vw,48px);margin:12px 0;letter-spacing:-.6px}html .tb23-discoveryhero .tb23-hero-copy>p{color:#e5effb!important;font-size:16px!important}html .tb23-discoveryhero .tb23-eyebrow{display:none}html .tb23-discoveryhero .ed-kicker{display:inline-block;color:#fff;background:#0756a5;border-radius:6px;padding:5px 10px;letter-spacing:0}html .tb23-discoveryhero .tb23-hero-visual>p{position:absolute;right:0;top:0;max-width:70%;background:#071a31b8!important;border-radius:0 0 0 6px;font-size:10px!important;padding:4px 8px!important}.tb256-meta{display:flex;flex-wrap:wrap;gap:18px;color:#e5effb;font-size:13px;margin:14px 0 0}.tb23-bookhero .tb256-meta{color:var(--muted)}html .tb23-bookhero{border-radius:12px;grid-template-columns:1.3fr .7fr;background:var(--card);border-color:var(--line)}html .tb23-bookhero .tb23-hero-visual{background:#0d2b48}html .tb23-bookhero .ed-book{min-height:290px}html .tb23-bookhero .tb23-hero-copy{padding:30px}html .tb23-layout{display:flex;flex-direction:column;gap:12px}html .tb23-sidebar{width:100%;position:static;max-height:none;overflow:visible;margin:0}html .tb23-body{width:100%;max-width:none}html .tb23-toc-details{background:var(--card);border-radius:10px;padding:12px 14px}html .tb23-toc-details>summary{display:inline-block;background:#0756a5;color:white;border-radius:6px;padding:6px 12px;font-size:13px;letter-spacing:0}html .tb23-editorial .tb15-toc ol{display:flex;flex-wrap:wrap;gap:5px 12px;columns:auto}html .tb23-editorial .tb15-toc li{min-width:0;max-width:100%}html .tb23-editorial .tb15-toc a{border:0;border-radius:6px;color:var(--text)!important;font-size:13px;padding:5px 8px}html .tb23-editorial .tb15-toc a[aria-current=location]{background:var(--soft);color:var(--blue)!important}html .tb23-tools{position:static;display:flex;background:transparent;margin:8px 0 12px;padding:8px 0;border:0}html .tb23-tools .tb23-chapter-controls{flex:0 1 auto;margin-left:auto}html .tb23-tools .tb23-progress{flex-basis:100%}html .tb23-editorial .tb16-hook{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;padding:18px 22px;margin:0 0 14px;font-size:18px!important}html .tb23-editorial .tb16-story{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:0 20px;margin:0}html .tb256-scene{display:flow-root;padding:18px 0;border-bottom:1px solid var(--line)}html .tb256-scene:last-child{border-bottom:0}html .tb23-editorial .tb16-story .tb256-scene h2[id]{display:flex;align-items:flex-start;gap:12px;font-size:clamp(20px,2.2vw,27px);line-height:1.35;border:0;margin:0 0 14px;padding:0;scroll-margin-top:90px}html .tb23-editorial .tb16-story .tb256-scene h2[data-tb23-scene]:before{display:inline-grid;place-items:center;flex:none;min-width:32px;height:32px;padding:0 8px;margin:0;border:0;border-radius:6px;background:#0756a5;color:white;font-size:16px;letter-spacing:0}html .tb256-scene p,html .tb256-scene ul{font-size:16px;line-height:1.82;color:var(--text)!important;margin:0 0 12px;overflow-wrap:anywhere}html .tb256-scene>.tb22-figure:first-of-type{float:right;width:46%;max-width:520px;margin:0 0 14px 24px;padding:0;background:transparent;border:0}html .tb256-scene:nth-child(even)>.tb22-figure:first-of-type{float:left;margin:0 24px 14px 0}html .tb256-scene .tb22-figure img{border-radius:10px;max-width:100%;height:auto}html .tb256-scene figcaption{color:var(--muted);font-size:12px;line-height:1.5}html .tb23-editorial .tb17-narration{margin:18px 0;border-radius:10px;padding:16px;background:var(--card)}html.tb10-large .tb256-scene p{font-size:21px}html.tb10-focus .tb23-editorial{max-width:850px}
@media(max-width:850px){html header .nav{flex-wrap:wrap;gap:9px;padding:10px 0}html header .navlinks,html[data-theme=light] header .navlinks{order:5;flex:1 0 100%;justify-content:flex-start;overflow-x:auto;gap:18px;white-space:nowrap;padding:4px 0;font-size:13px}html header .langswitch{margin-left:auto}html .ed-grid,html .tb25-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html .tb25-card:first-child{grid-column:auto}html .hero{min-height:335px}html .herotext{padding:28px}html .tb23-discoveryhero{min-height:300px}html .tb23-discoveryhero .tb23-hero-copy{padding:24px}html .tb23-editorial .tb16-story .tb256-scene h2[id]{scroll-margin-top:125px}}
@media(max-width:560px){html .wrap{width:calc(100% - 24px)}html header .brand{font-size:22px}html header .brand .tb256-mark{width:30px;height:30px}html .hero{min-height:310px;margin-top:14px}html .herotext{padding:23px}html .hero h1{font-size:36px}html .hero:after{background:linear-gradient(0deg,#071a31ef,#071a3155)}html .ed-grid,html .tb25-grid{grid-template-columns:1fr}html .tb23-discoveryhero{min-height:285px}html .tb23-discoveryhero .tb23-hero-copy{padding:20px}html .tb23-discoveryhero .tb23-hero-copy>p{font-size:14px!important}html .tb23-bookhero{grid-template-columns:1fr}html .tb23-bookhero .tb23-hero-visual .ed-book{min-height:230px}html .tb23-editorial .tb16-story{padding:0 14px}html .tb256-scene>.tb22-figure:first-of-type,html .tb256-scene:nth-child(even)>.tb22-figure:first-of-type{float:none;width:100%;max-width:none;margin:0 0 14px}html .tb23-tools .tb23-chapter-controls{flex:1 0 100%}html .tb256-meta{font-size:12px;gap:10px}html .tb23-editorial .tb16-hook{font-size:16px!important;padding:14px}html .tb23-editorial .tb16-story .tb256-scene h2[id]{font-size:20px}}
