/* R9 — restrained usability layer. Cinematic composition and game canvases stay under their existing controllers. */
:root{--r9-ink:#10283a;--r9-paper:#faf7f0;--r9-gold:#e8bc6b;--r9-rule:#dcd8cf}
html{scroll-padding-top:120px}
body.jt-polished-r9{overflow-wrap:break-word}
body.jt-polished-r9 :where(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #c48d35;outline-offset:4px}
body.jt-polished-r9 :where(a,button){touch-action:manipulation}
body.jt-polished-r9 :where(button,input,select,textarea){font:inherit}
body.jt-polished-r9 main :where(img){max-width:100%}
body.jt-polished-r9 main :where(article,.card,.panel,.paper-card,.a-book,.jtbf-book){min-width:0}
body.jt-polished-r9 :where(.v39-skip,.skip-link,.a-skip){z-index:10010!important}
body.jt-polished-r9 :where(.v39-explore,.a-menu) summary{min-height:44px;align-content:center;cursor:pointer}
body.jt-polished-r9 :where(.v39-mega,.a-menu-panel){overscroll-behavior:contain}
body.jt-polished-r9 .v39-mega a{padding-block:8px;line-height:1.45}
body.jt-polished-r9 .v39-mega h2{line-height:1.2}
body.jt-polished-r9 :where(.v39-search-link,.ar5-author-entry){min-height:44px;align-content:center}
body.jt-polished-r9 :where(.jtbf-actions,.a-actions,.jr-buttons){gap:12px}
body.jt-polished-r9 :where(.jtbf-actions,.a-actions,.jr-buttons) a{min-height:44px;align-content:center;white-space:normal}
body.jt-polished-r9 .jtbf-card{display:flex;flex-direction:column;min-width:0}
body.jt-polished-r9 .jtbf-card .jtbf-actions{margin-top:auto;padding-top:12px}
body.jt-polished-r9 :where(.jtbf-intro,.jtbf-note){max-width:72ch}
body.jt-polished-r9 .jtbf-title{overflow-wrap:normal;text-wrap:balance}
body.jt-polished-r9 main :where(.page-jump-nav,.page-jump-links){row-gap:10px}
body.jt-polished-r9 main :where(.page-jump-nav,.page-jump-links) a{display:inline-flex;align-items:center;min-height:40px}
.r9-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:14px 0}
.r9-table-scroll table{margin:0;max-width:none}
.r9-table-scroll:focus-visible{outline:3px solid #c48d35;outline-offset:3px}
.r9-archive-notice{max-width:1160px;margin:22px auto;padding:16px 22px;border-left:4px solid #aa7934;background:#fff8e8;color:#3d321e;font:400 15px/1.65 system-ui,sans-serif}
.r9-archive-notice a{color:#154c65;font-weight:700;text-decoration:underline}
.r9-tech{padding:52px clamp(20px,4.5vw,72px);background:#0e2737;color:#f6f3eb;border-block:1px solid #2b4250;isolation:isolate}
.r9-tech__inner{max-width:1260px;margin:auto;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:40px;align-items:center}
.r9-tech .r9-eyebrow{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#ebc580;margin:0 0 12px}
.r9-tech h2{font:700 clamp(27px,3.6vw,46px)/1.15 system-ui,sans-serif;letter-spacing:-.025em;text-wrap:balance;color:#fff;margin:0 0 16px}
.r9-tech p{font:400 16px/1.75 system-ui,sans-serif;color:#dfebf0;max-width:66ch;margin:0 0 14px}
.r9-tech .r9-tech__note{font-size:12px;color:#bfced6;margin:16px 0 0}
.r9-tech__actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.r9-tech__actions a{display:block;border:1px solid #718795;border-radius:5px;padding:14px 20px;font:650 15px/1.4 system-ui,sans-serif;color:#fff;text-decoration:none;text-align:center;min-height:48px}
.r9-tech__actions a:first-child{background:#f3e1bd;border-color:#f3e1bd;color:#112b3d}
.r9-tech__actions a:hover{filter:brightness(1.08);text-decoration:underline;text-underline-offset:4px}
.r9-footer{display:block;clear:both;padding:30px clamp(20px,4vw,64px);background:#081b28;color:#d2dee5;border-top:1px solid #2d4451;font:400 13px/1.65 system-ui,sans-serif}
.r9-footer__inner{max-width:1260px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.r9-footer__brand{font-weight:750;color:#fff;margin:0}
.r9-footer__copy{display:block;font-size:12px;color:#bfcdd6;font-weight:400;margin-top:3px}
.r9-footer nav{display:flex;flex-wrap:wrap;gap:4px 20px;align-items:center}
.r9-footer a,.r9-footer button{font:600 13px/1.5 system-ui,sans-serif;color:#e8eff4;display:inline-flex;align-items:center;min-height:44px;background:none;border:0;padding:4px 0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.r9-footer a:hover,.r9-footer button:hover{color:#f4cf88}
.r9-policy{background:var(--r9-paper);color:var(--r9-ink);padding:clamp(35px,5vw,76px) 22px;font:400 17px/1.8 system-ui,sans-serif}
.r9-policy__shell{max-width:1000px;margin:auto}
.r9-policy .r9-eyebrow{font:750 11px/1.5 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#586873;margin:0 0 14px}
.r9-policy h1{font:750 clamp(34px,4.7vw,58px)/1.1 system-ui,sans-serif;letter-spacing:-.035em;text-wrap:balance;max-width:20ch;color:#10283a;margin:0 0 22px}
.r9-policy h2{font:720 clamp(23px,2.6vw,31px)/1.25 system-ui,sans-serif;margin:35px 0 12px;color:#10283a}
.r9-policy h3{font:700 20px/1.3 system-ui,sans-serif;color:#10283a;margin:23px 0 10px}
.r9-policy p,.r9-policy ul{max-width:79ch;margin:0 0 18px}
.r9-policy ul{padding-left:24px}
.r9-policy a{color:#125570;text-decoration:underline;text-underline-offset:3px;font-weight:650}
.r9-policy .r9-policy__lead{font-size:19px;line-height:1.65;color:#38515f}
.r9-policy .r9-policy__notice{border-left:4px solid #b48a43;padding:18px 22px;background:#f0eadc;margin:25px 0}
.r9-policy .r9-policy__nav{display:flex;flex-wrap:wrap;gap:8px 20px;border-block:1px solid var(--r9-rule);padding:16px 0;margin:28px 0}
.r9-policy .r9-policy__nav a{font-size:14px;min-height:36px;align-content:center}
.r9-policy .r9-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.r9-policy .r9-contact-card{padding:24px;border:1px solid var(--r9-rule);border-radius:8px;background:#fff}
.r9-policy .r9-contact-card h2{font-size:24px;margin-top:0}
.r9-policy .r9-contact-card p{font-size:15px}
.r9-policy button{padding:12px 18px;border:1px solid #17445b;border-radius:4px;background:#102d41;color:#fff;font-weight:650;cursor:pointer;min-height:46px}
.r9-consent-banner{position:fixed;bottom:18px;left:18px;width:min(430px,calc(100vw - 36px));z-index:9500;background:#fffdf8;color:#183244;border:1px solid #b9c5cb;border-radius:10px;box-shadow:0 14px 60px #0004;padding:20px;font:400 14px/1.6 system-ui,sans-serif}
.r9-consent-banner[hidden]{display:none!important}
.r9-consent-banner h2{margin:0 0 6px;font:750 17px/1.3 system-ui,sans-serif;color:#183244}
.r9-consent-banner p{margin:0 0 12px;font:400 13px/1.55 system-ui,sans-serif;color:#344e5d}
.r9-consent-actions{display:flex;gap:10px;flex-wrap:wrap}
.r9-consent-actions button{flex:1;min-height:44px;padding:10px 14px;background:#fff;color:#17374a;border:1px solid #577285;border-radius:4px;font:650 13px/1.35 system-ui,sans-serif;cursor:pointer}
.r9-consent-actions button:hover{background:#eaf1f4}
.r9-consent-banner a{color:#1b5773;font-size:12px;text-decoration:underline;display:inline-block;margin-top:10px}
.r9-privacy-dialog{max-width:520px;width:calc(100vw - 40px);max-height:85svh;overflow:auto;background:#fffdf8;color:#173448;border:1px solid #839aaa;border-radius:10px;padding:28px;font:400 15px/1.7 system-ui,sans-serif;box-shadow:0 22px 80px #0005;z-index:11000}
.r9-privacy-dialog::backdrop{background:#041523a8}
.r9-privacy-dialog h2{font:750 26px/1.2 system-ui,sans-serif;color:#173448;margin:0 0 18px}
.r9-privacy-dialog p{font:400 15px/1.7 system-ui,sans-serif;color:#2e4b5d;margin:0 0 14px}
.r9-privacy-dialog .r9-close{display:block;margin:20px 0 0 auto;border:0;background:none;text-decoration:underline;font:650 14px/1.4 system-ui,sans-serif;color:#173448;padding:10px;min-height:42px;cursor:pointer}
.r9-privacy-dialog a{color:#15506e}
@media(max-width:700px){
 html{scroll-padding-top:102px}
 body.jt-polished-r9 .v39-mega{max-height:75svh;overflow-y:auto}
 .r9-tech__inner,.r9-policy .r9-contact-grid{grid-template-columns:1fr;gap:24px}
 .r9-tech{padding-block:36px}.r9-tech h2{font-size:29px}
 .r9-footer__inner{display:block}.r9-footer nav{margin-top:16px;gap:3px 18px}
 .r9-policy{padding:36px 20px;font-size:16px}.r9-policy h1{font-size:35px}
 .r9-consent-banner{bottom:10px;left:10px;width:calc(100vw - 20px);padding:15px}
 body.jt-polished-r9 .hd149-flagship-strip{margin:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}body.jt-polished-r9 :where(.r9-tech,.r9-footer,.jtbf-card,.a-book){animation:none!important;transition:none!important}}
@media print{.r9-footer,.r9-tech,.r9-consent-banner,.r9-privacy-dialog,.hd149-flagship-strip{display:none!important}.r9-table-scroll{overflow:visible}.r9-policy{background:white;color:#111;padding:0}.r9-policy a{color:#111}}

body.jt-polished-r9 .jtv4-scene-fallback .jtv4-family-purpose{font:700 clamp(16px,2vw,26px)/1.4 system-ui,sans-serif;color:#f4d6a0;max-width:28ch;margin:17px 0;text-transform:none;letter-spacing:.02em}
body.jt-polished-r9 .jtbf-book .jtbf-copy{min-width:0}
body.jt-polished-r9 .jtbf-book .jtbf-amazon{min-height:44px;align-content:center}
