/* Readable defaults for older readers; system sans-serif for sustained reading. */
:root{--read-body:16px;--read-small:14px;--read-h2:26px;--read-h3:21px}
:root[data-reading-size="extra"]{--read-body:18px;--read-small:16px;--read-h2:28px;--read-h3:23px}
:root[data-reading-size="largest"]{--read-body:22px;--read-small:20px;--read-h2:32px;--read-h3:27px}
html body{font-size:var(--read-body)!important;line-height:1.85}
html body :is(p,li,dt,dd,label,legend,td,th,input,textarea,select,button,summary){font-size:var(--read-body)!important;line-height:1.8!important;letter-spacing:.015em}
html body :is(p,li,dt,dd,label,legend,td,th,input,textarea,select){font-family:var(--font-ui,system-ui),sans-serif!important}
html body :is(small,figcaption,.rw-caption,.rw-source,.theme-note,.pro-note){font-size:var(--read-small)!important;line-height:1.8!important}
html body :is(h2){font-size:var(--read-h2)!important;line-height:1.55!important}
html body :is(h3,h4){font-size:var(--read-h3)!important;line-height:1.6!important}
html body :is(a,button,summary){overflow-wrap:anywhere}
html body :is(button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:48px;height:auto}
html body :is(input[type=checkbox],input[type=radio]){width:24px;height:24px;flex-shrink:0;accent-color:#265747}
html body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #9b4b22!important;outline-offset:4px}
html body :is(p,li){overflow-wrap:break-word}
.reading-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 5%;background:#eae7dc;color:#203d35;border-bottom:1px solid #b7b09c;font-family:system-ui,sans-serif}
.reading-tools>span{font-size:18px!important;font-weight:700}.reading-tools button{font-size:20px!important;min-width:72px;padding:5px 14px;border:1px solid #6d786e;border-radius:5px;background:#fff;color:#203d35;cursor:pointer}.reading-tools button[aria-pressed=true]{background:#203d35;color:#fff;border-color:#203d35}.reading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body .pt-category-toggle span,html body .pt-topbar>a,html body .pt-topbar>button,html body .pt-drawer-tools>a,html body .pt-drawer-tools .pt-open{font-size:var(--read-body)!important;white-space:normal!important}
html body .pt-dropdown-panel{width:340px;max-width:90vw}html body .pt-dropdown-panel a{white-space:normal!important}
html body .pg-dock{width:190px}html body #platform-guide.pg-compact .pg-dock{width:205px}html body .pg-label{padding:10px!important}html body .pg-label strong{font-size:22px!important}html body .pg-agent-label{font-size:var(--read-small)!important}
html body #pg-panel{width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 30px);bottom:12px}html body .pg-welcome{grid-template-columns:110px 1fr}html body .pg-welcome img{width:110px;height:150px}html body .pg-tabs{flex-wrap:wrap}html body .pg-tabs button{flex:1;min-width:140px}
html body .scholar-hero-scene{position:relative;top:auto;right:auto;bottom:auto;margin:0;width:48%;align-self:center;flex-shrink:0}html body .brand-hero-immersive:has(.scholar-hero-scene){gap:4%;align-items:center}html body .brand-hero-immersive .rw-hero-copy{flex:1;min-width:0}html body .brand-hero-inscription{display:none}html body .brand-scroll{display:none}
html body .brand-book,html body .brand-chapters>a{height:auto;min-height:0}html body .brand-chapters b{position:static}
@media(max-width:1400px){html body .pt-header-host .pt-topbar{display:none!important}html body .pt-header-host .pt-drawer-tools{display:flex!important}}
@media(max-width:760px){html body .scholar-hero-scene{width:100%;margin:28px 0 0}html body .brand-hero-immersive .rw-hero-copy{width:100%}.reading-tools{justify-content:center;padding:10px 12px;gap:6px}.reading-tools>span{width:100%;text-align:center}.reading-tools button{flex:1;max-width:130px;padding-inline:8px}html body .brand-chapters{grid-template-columns:1fr 1fr}html body .pt-drawer .pt-quick{grid-template-columns:1fr}html body .pg-welcome{display:block}html body .pg-portrait-stage{display:none}html body .scholar-profile a{display:block}html body .theme-switch{flex-wrap:wrap}html body .theme-switch a{white-space:normal}html body .pt-category-header{padding:12px!important}}
@media print{.reading-tools{display:none!important}}
html body #platform-guide .pg-dock,html body #platform-guide.pg-compact .pg-dock,html body #platform-guide.pg-auto-compact .pg-dock{width:270px;max-width:calc(100vw - 40px)}
html body #platform-guide:is(.pg-compact,.pg-auto-compact) .pg-label{grid-template-columns:34px minmax(0,1fr) 24px;gap:3px 8px}
html body #platform-guide:is(.pg-compact,.pg-auto-compact) .pg-agent-label{grid-column:2;grid-row:3}
html body #platform-guide:is(.pg-compact,.pg-auto-compact) .pg-mini-portrait{grid-column:1;grid-row:1/4}
html body #platform-guide:is(.pg-compact,.pg-auto-compact) .pg-label>b{grid-column:3;grid-row:1/4}
html body #platform-guide .pg-minimize{width:48px;height:48px;right:0;top:-40px}
html body .pg-label-subtitle{letter-spacing:0;overflow-wrap:normal}
@media(max-width:600px){html body .personal-options{grid-template-columns:1fr}html body .personal-options label{padding:14px;gap:12px}html body .personal-steps{display:grid;grid-template-columns:1fr 1fr}html body .brand-chapters{grid-template-columns:1fr}html body .brand-masthead{display:none}}
html body :is(.iv-overview-head,.iv-concepts,.brand-overline,.rw-kicker,.exploration-kicker) :is(span,small,strong),html body figcaption{overflow-wrap:anywhere;white-space:normal}
html body :is(.personal-muted,.personal-storage small,.theme-note,.exploration-lead,.scholar-profile small){color:#485443}
/* Dense layouts: dedicated assistance row outside the content and form cards. */
html body #platform-guide.pg-inline{z-index:80;background:#eeece3;border-bottom:1px solid #d0c7b4;padding:12px max(18px,5%)}
html body #platform-guide.pg-inline .pg-dock{width:100%;max-width:none;filter:none}
html body #platform-guide.pg-inline .pg-label{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:10px 16px!important;background:transparent;border:0}
html body #platform-guide.pg-inline .pg-mini-portrait{flex:0 0 34px}
html body #platform-guide.pg-inline .pg-label b{margin-left:auto}
html body #platform-guide.pg-inline .pg-agent-label{font-size:var(--read-small,18px)!important}
html body #platform-guide.pg-inline .pg-minimize{display:none}
html body #platform-guide.pg-inline .pg-launch{width:100%}
@media(max-width:600px){html body #platform-guide.pg-inline .pg-label{display:grid;grid-template-columns:34px minmax(0,1fr) 24px}html body #platform-guide.pg-inline .pg-label-subtitle{grid-column:2}html body #platform-guide.pg-inline .pg-agent-label{grid-column:2}html body #platform-guide.pg-inline .pg-mini-portrait{grid-row:1/4}}
@media print{html body #platform-guide.pg-inline{display:none!important}}
html body #platform-guide.pg-inline:has(#pg-panel:not([hidden])),html body #platform-guide.pg-inline:has(.pg-tour:not([hidden])){z-index:1000}

/* Fixed compact guide entry, independent of page layout. */
html body.pg-has-fixed-entry{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
html body #platform-guide .pg-dock{position:fixed!important;left:12px!important;right:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:calc(100vw - 24px)!important;margin:0!important}
html body #platform-guide .pg-launch{display:flex!important;align-items:center;gap:8px;padding:6px 12px!important;min-height:52px;width:auto;background:#21483d;color:#fff;border:1px solid #9b875d;border-radius:30px;box-shadow:0 3px 14px #18352c30}
html body #platform-guide .pg-launch img{width:30px;height:40px;object-fit:cover;object-position:top;border-radius:16px;background:#efeadd}
html body #platform-guide .pg-launch span{font-size:var(--read-small,18px)!important;line-height:1.4}
html body #platform-guide #pg-panel,html body #platform-guide .pg-tour{left:12px;right:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px)}
html body #platform-guide .pg-tour{max-height:45dvh}
html body #platform-guide .pg-welcome{display:none}
html body #platform-guide .pg-path{padding:12px 0 20px;border-bottom:1px solid #c7bda7;margin-bottom:18px}
html body #platform-guide .pg-path label{display:flex;align-items:center;gap:10px;cursor:pointer}
html body #platform-guide .pg-path input{width:24px;height:24px;flex-shrink:0}
html body #platform-guide .pg-path nav{display:grid;gap:8px}
html body #platform-guide .pg-path a{display:block;padding:8px 0;overflow-wrap:anywhere}
html body #platform-guide .pg-path summary{cursor:pointer;padding:10px 0}
html body #platform-guide .pg-path p{margin:10px 0}
html body #platform-guide [hidden]{display:none!important}
@media print{html body.pg-has-fixed-entry{padding-bottom:0!important}}

/* Keep the large-text guide heading concise, leaving room for usable content. */
html body #platform-guide .pg-head>div>span{display:none}
html body #platform-guide .pg-head{padding:14px 18px}
html body #platform-guide .pg-close{flex-shrink:0;min-width:48px;min-height:48px}

html body #platform-guide .pg-dock{left:var(--pg-dock-x,12px)!important;top:var(--pg-dock-y,auto)!important;bottom:var(--pg-dock-bottom,calc(12px + env(safe-area-inset-bottom)))!important}
html body #platform-guide .pg-launch{touch-action:none;user-select:none;cursor:grab}
html body #platform-guide .pg-launch.pg-dragging{cursor:grabbing}
html body #platform-guide .pg-launch img{pointer-events:none;-webkit-user-drag:none}
/* Preserve readable contrast for the movable guide launcher in every state. */
html body #platform-guide .pg-launch:hover,
html body #platform-guide .pg-launch:focus-visible,
html body #platform-guide .pg-launch:active,
html body #platform-guide .pg-launch.pg-dragging{background:#173b32!important;color:#fff!important;border-color:#b49b68}
html body #platform-guide .pg-launch:hover span,
html body #platform-guide .pg-launch:focus-visible span,
html body #platform-guide .pg-launch:active span{color:#fff!important}


/* Reading controls are the first, highlighted card inside the main menu. */
#platform-navigation .reading-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px;margin:0 0 22px;border:1px solid #b9aa87;border-top:3px solid #8b7040;border-radius:8px;background:#eeeadb;color:#203d35}
#platform-navigation .reading-tools>span:first-child{grid-column:1/-1;text-align:left;width:auto;font-size:18px!important}
#platform-navigation .reading-tools>span:first-child b{display:inline-block;font-family:serif;font-size:23px;margin-right:6px;color:#806339}
#platform-navigation .reading-tools button{width:100%;min-width:0;max-width:none;min-height:48px;font-size:20px!important;padding:5px 8px}
#platform-navigation .reading-tools button[aria-pressed=true]{background:#203d35;color:#fff;border-color:#203d35}
