.gr-preview{--gr-ink:#213e52;--gr-blue:#306e98;color:var(--gr-ink);font-size:17px;line-height:1.65}
.gr-preview *{box-sizing:border-box}
.gr-preview h2,.gr-preview h3,.gr-preview h4{line-height:1.22;letter-spacing:-.02em;color:#26343e}
.gr-preview h2{font-size:clamp(28px,3vw,42px);margin:8px 0 16px}.gr-preview h3{font-size:26px;margin:0 0 20px}.gr-preview h4{font-size:20px;margin:28px 0 12px}
.gr-reference h1{font-size:clamp(28px,3vw,42px);margin:8px 0 16px;line-height:1.22;letter-spacing:-.02em;color:#26343e}
.gr-reference .gr-section h2{font-size:26px;margin:0 0 20px}
.gr-reference .gr-language{display:flex;gap:6px}
.gr-reference .gr-scope{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}
.gr-reference .gr-scope>div{display:flex;gap:8px}
.gr-reference .gr-scope label{display:flex;align-items:center;gap:8px;font-weight:700}
.gr-reference .gr-scope select{padding:8px;border:1px solid #c8dce9;border-radius:8px;background:#fff;color:#213e52;max-width:100%}
.gr-reference .gr-scope>span{font-size:14px;color:#607788}
.gr-reference .gr-inline-link{display:inline;border:0;background:none;color:#306e98;text-decoration:underline;padding:0;font-size:inherit;line-height:inherit}
.gr-reference .gr-sources{padding:14px 18px;border:1px solid #dce5ec;border-radius:12px;background:#fff}
.gr-reference .gr-sources summary{font-size:15px}
.gr-reference button:disabled{cursor:default;opacity:.55}
.gr-reference .gr-toolbar [data-gr-wide]{background:#b92340!important;border-color:#b92340!important;color:#fff!important;font-size:14px!important;padding:8px 13px!important;flex:none}
.gr-reference .gr-toolbar [data-gr-wide]:hover{background:#961a33!important}
.gr-reference .gr-part-heading{font-size:clamp(25px,3vw,34px);margin:36px 0 18px;color:#26343e}
.gr-reference .gr-level-jumps{width:100%;margin:0 0 18px}
.gr-reference .gr-level-jumps>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.gr-reference .gr-level-jumps button{text-align:center;padding:8px;font-size:14px;font-weight:700}
@media(max-width:620px){.gr-reference .gr-section h2{font-size:23px}.gr-reference .gr-toolbar{position:static!important}.gr-reference .gr-scope>div{flex-wrap:wrap}.gr-reference .gr-scope>span{width:100%}}
/* Narrow screens keep complete words readable instead of squeezing table columns. */
@media(max-width:620px){
 .gr-reference .gr-sections table,.gr-reference .gr-sections tbody,.gr-reference .gr-sections tr,.gr-reference .gr-sections td{display:block;width:100%}
 .gr-reference .gr-sections thead{display:none}
 .gr-reference .gr-sections tr{padding:8px 0;border-bottom:2px solid #dce5ec}
 .gr-reference .gr-sections tr:last-child{border-bottom:0}
 .gr-reference .gr-sections td{padding:7px 12px;border-bottom:0}
 .gr-reference .gr-sections td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:#607788;margin-bottom:3px}
}
.gr-preview p{margin:0 0 16px}.gr-preview p:last-child{margin-bottom:0}
.gr-preview button,.gr-preview select{font:inherit;cursor:pointer}.gr-preview button:focus-visible,.gr-preview a:focus-visible,.gr-preview select:focus-visible{outline:3px solid #daab32;outline-offset:3px}
.gr-preview button{border:1px solid #c8dce9;border-radius:12px;background:#fff;color:var(--gr-blue);padding:9px 15px;text-align:left}
.gr-preview button[aria-pressed=true]{background:var(--gr-blue);border-color:var(--gr-blue);color:#fff}
.gr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.gr-preview .gr-kicker{font-size:12px;letter-spacing:.12em;font-weight:800;text-transform:uppercase;color:var(--gr-blue)}
.gr-tabs,.gr-topics,.gr-levels{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.gr-topics button{flex:1;min-width:min(300px,100%);font-weight:700;padding:16px 20px}
.gr-notice{padding:14px 18px;background:#eef5fa;border-left:3px solid #81a8c2;border-radius:0 14px 14px 0;font-size:14px;margin:16px 0}
.gr-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(200px,1fr);align-items:center;gap:25px;border:1px solid #dae4ee;border-radius:26px;padding:30px;background:linear-gradient(120deg,#e9f5ff,#f1edfc 72%,#fcf1eb);margin:20px 0 24px}
.gr-hero img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;mix-blend-mode:multiply}
.gr-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:24px;align-items:start}
.gr-index{position:sticky;top:18px;background:#fff;border:1px solid #dde6eb;border-radius:18px;padding:18px;font-size:14px;max-height:calc(100vh - 40px);overflow:auto}
.gr-index strong{display:block;margin-bottom:10px}.gr-index a{display:flex;gap:10px;color:#3e5e73;text-decoration:none;padding:9px 0;border-bottom:1px solid #eef1f4}.gr-index a:hover{color:#af2942}.gr-index a span{color:#8589a6;font-size:12px;padding-top:2px}
.gr-sections{min-width:0}.gr-section{background:#fff;border:1px solid #dfe7ed;border-radius:22px;padding:28px;margin-bottom:22px;scroll-margin-top:18px;overflow-wrap:anywhere}
.gr-section .gr-level{display:inline-block;border:1px solid #d2e0ec;background:#eff6fa;color:#306e98;border-radius:20px;font-size:12px;font-weight:750;padding:2px 10px;margin-bottom:12px}
.gr-scene{background:linear-gradient(120deg,#f7fbfe,#fbf7fc);border-left:4px solid #84a9bf;padding:22px;border-radius:0 18px 18px 0;margin-bottom:20px}.gr-scene p{font-size:18px;line-height:1.8}
.gr-section .gr-illustration{max-width:340px;max-height:220px;width:100%;height:auto;object-fit:contain;display:block;margin:0 auto 20px}
.gr-preview .gr-table{overflow-x:auto;max-width:100%;margin:18px 0;border:1px solid #dce5ec;border-radius:12px}
.gr-preview table{border-collapse:collapse;table-layout:auto;width:100%;font-size:16px;line-height:1.5;text-align:left;margin:0}
.gr-preview th,.gr-preview td{padding:12px 14px;border-bottom:1px solid #e4eaf0;vertical-align:top;text-align:left;white-space:normal;overflow-wrap:anywhere}
.gr-preview thead{background:#edf3f8}.gr-preview th{font-weight:750;color:#36576e}.gr-preview tbody tr:nth-child(even){background:#f8fafc}.gr-preview tbody tr:last-child td{border-bottom:0}
.gr-preview{--gr-spanish:#2d7396}
.gr-preview .gr-es,.gr-preview .spanish-inline,.gr-preview [lang="es"],.gr-preview [lang="es"] *{color:var(--gr-spanish)!important;font-weight:700!important;font-size:inherit;font-style:normal}
.gr-preview .grammar-example-grid [lang="es"],.gr-preview .grammar-example-grid [lang="es"] span{display:inline}
.gr-preview blockquote{margin:20px 0;padding:16px 22px;background:#eef6fb;border-left:4px solid #75a5c3}
.gr-preview .grammar-table-scroll{max-width:100%;overflow:auto}.gr-preview .grammar-example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin:18px 0}.gr-preview .grammar-example-grid article{padding:16px;background:var(--cs-ui-card-bg,#f3f7fa);border:var(--cs-ui-card-border-width,1px) solid var(--cs-ui-card-border,#dde6ec);border-radius:var(--cs-ui-card-radius,12px)}.gr-preview .grammar-example-grid span,.gr-preview .grammar-example-grid small{display:block}
.gr-preview .grammar-warning{background:#fff7e9;padding:16px;border-radius:12px;margin:18px 0}.gr-preview .grammar-stress-syllable{font-weight:850;text-decoration:underline}.gr-preview .grammar-word-list{display:flex;gap:10px;flex-wrap:wrap}
.gr-preview .gr-original details{border:1px solid #dde6eb;background:white;border-radius:18px;padding:20px;margin:14px 0}.gr-preview summary{cursor:pointer;font-size:20px;font-weight:750}.gr-original details>div{margin-top:20px}.gr-preview .gr-original h4{margin-top:24px}
.gr-preview .gr-empty{padding:24px}.gr-preview .gr-footer{color:#607788;font-size:14px;margin:25px 0}.gr-preview .gr-sources{font-size:13px;color:#697b8a}.gr-preview .gr-sources a{color:#306e98}
@media(min-width:1700px){.gr-layout{grid-template-columns:250px minmax(0,1fr)}.gr-section{padding:34px 40px}}
@media(max-width:1050px){.gr-layout{grid-template-columns:minmax(0,1fr)}.gr-index{position:static;max-height:none;display:flex;gap:8px;flex-wrap:wrap}.gr-index strong{width:100%}.gr-index a{padding:6px 10px;background:#f1f6fa;border:0;border-radius:9px}}
@media(max-width:620px){.gr-preview{font-size:16px}.gr-hero{grid-template-columns:minmax(0,1fr);padding:22px;gap:10px}.gr-hero img{max-height:180px}.gr-section{padding:20px 16px;border-radius:16px}.gr-section h3{font-size:23px}.gr-scene{padding:16px}.gr-scene p{font-size:16px}.gr-preview table{font-size:14px}.gr-preview td,.gr-preview th{padding:9px 8px}.gr-tabs button{flex:1;font-size:14px}.gr-index{padding:14px}.gr-topics button{font-size:16px}.gr-preview .gr-original details{padding:16px}}

/* Scoped to the open reader; the regular navigation returns on every exit. */
.gr-index-heading strong{line-height:1.35;margin:6px 0 16px}
.gr-preview .gr-mobile-index-toggle,.gr-preview .gr-index-exit{display:none}
body.grammar-reference-wide{--gr-reader-top:16px}
body.environment-development.grammar-reference-wide{--gr-reader-top:56px}
body.grammar-reference-wide .app{display:block!important;grid-template-columns:minmax(0,1fr)!important;padding-left:0!important}
body.grammar-reference-wide .app>.side,body.grammar-reference-wide .mobile-header,body.grammar-reference-wide #mobileMenuHint,body.grammar-reference-wide #mobileMenuBackdrop{display:none!important}
body.grammar-reference-wide .main{width:100%;max-width:none;padding:24px 28px 60px!important;margin:0!important;overflow:visible}
body.grammar-reference-wide .shell{max-width:none!important;width:100%;margin:0}
body.grammar-reference-wide .shell>.mast,body.grammar-reference-wide .shell>.searchbar,body.grammar-reference-wide .shell>.navigation-context{display:none!important}
body.grammar-reference-wide #content{margin-top:0}
body.grammar-reference-wide .gr-preview[data-preview-view="combined"]{padding-left:258px}
body.grammar-reference-wide .gr-layout{display:block}
body.grammar-reference-wide .gr-index{position:fixed;display:block;left:20px;top:var(--gr-reader-top);width:242px;max-height:calc(100dvh - var(--gr-reader-top) - 20px);z-index:490;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.grammar-reference-wide .gr-index a{display:flex;border-radius:0;background:transparent;border-bottom:1px solid #eef1f4;padding:10px 0}
body.grammar-reference-wide .gr-index-exit{display:block;width:100%;margin-top:16px;font-size:14px}
body.grammar-reference-wide .gr-toolbar{position:sticky;top:var(--gr-reader-top);z-index:480;background:rgba(250,252,254,.97);padding:10px 12px;border:1px solid #dce6ee;border-radius:15px;box-shadow:0 4px 16px #1d3e5510}
body.grammar-reference-wide .gr-section{scroll-margin-top:calc(var(--gr-reader-top) + 96px)}
@media(max-width:1050px){.gr-index-heading{width:100%}.gr-index-links{display:flex;gap:8px;flex-wrap:wrap}body.grammar-reference-wide .gr-index-links{display:block}}
@media(max-width:1050px){
 body.grammar-reference-wide .main{padding:16px 12px 40px!important}
 body.grammar-reference-wide .gr-preview[data-preview-view="combined"]{padding-left:0}
 body.grammar-reference-wide .gr-index,.gr-preview .gr-index{position:static;display:block;width:100%;max-height:none;margin-bottom:18px;overflow:visible}
 .gr-preview .gr-mobile-index-toggle{display:block;width:100%;font-size:15px}
 .gr-preview .gr-index-links,body.grammar-reference-wide .gr-index-links{display:none}
 .gr-preview .gr-index[data-open="true"] .gr-index-links{display:block}
 body.grammar-reference-wide .gr-index-exit{display:none}
 body.grammar-reference-wide .gr-toolbar{gap:8px;padding:8px;top:var(--gr-reader-top)}
 body.grammar-reference-wide .gr-toolbar button{font-size:14px;padding:9px 11px}
 .gr-preview .gr-toolbar .gr-kicker{font-size:10px}
 body.grammar-reference-wide .gr-section{scroll-margin-top:calc(var(--gr-reader-top) + 125px)}
}

/* Past narrative study material: native disclosure controls keep answers optional. */
.gr-reference[data-gr-topic-current="past-narrative"] .gr-study-answer{margin:14px 0;padding:14px 16px;border:var(--cs-ui-card-border-width,1px) solid var(--cs-ui-card-border,#dce5ec);border-radius:var(--cs-ui-card-radius,12px);background:var(--cs-ui-card-bg,#f8fafc)}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-study-answer summary{font-size:16px;line-height:1.5;color:var(--cs-ui-heading,#36576e)}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-study-answer[open]>div{margin-top:14px}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-questions{list-style:none;padding:0;counter-reset:none}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-questions>li{padding:16px 0;border-bottom:var(--cs-ui-line-width,1px) solid var(--cs-ui-line,#dfe7ed)}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-questions>li>b{margin-right:8px;color:var(--cs-ui-heading,#26343e)}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-timeline>div{display:grid;align-content:start;gap:8px;border:var(--cs-ui-card-border-width,1px) solid var(--cs-ui-card-border,#dfe7ed);background:var(--cs-ui-card-bg,#f3f7fa);padding:16px;border-radius:var(--cs-ui-card-radius,12px)}
.gr-reference[data-gr-topic-current="past-narrative"] .gr-study-answer summary:focus-visible{outline:3px solid var(--cs-ui-focus,#263f5a);outline-offset:4px}
@media(max-width:620px){.gr-reference[data-gr-topic-current="past-narrative"] .gr-past-timeline{grid-template-columns:1fr}}
