/* Only the grammar question bank. Shared template and site styles remain the foundation. */
.grammar { --gr-accent:#cd663b; }
.grammar .tc-wrap { max-width:1200px; gap:32px; padding-top:24px; }
.gr-hero { display:grid; grid-template-columns:1.12fr 1fr; align-items:center; gap:58px; padding:8px 0 14px; }
.gr-eyebrow { margin:0; color:#0b625a; font-size:11px; font-weight:800; letter-spacing:.09em; line-height:1.5; }
.gr-eyebrow>span { display:inline-grid; place-items:center; background:#e3eee7; width:30px; height:30px; border-radius:9px; margin-right:8px; font-size:17px; letter-spacing:-.06em; }
.grammar h1 { font-size:clamp(30px,3.2vw,43px); line-height:1.14; letter-spacing:-.045em; margin:18px 0 0; max-width:570px; text-wrap:balance; }
.gr-h1-note { display:block; margin-top:14px; color:#687570; font-size:16px; font-weight:600; letter-spacing:-.02em; }
.gr-lead { font-size:17px; line-height:1.65; margin:18px 0 8px; }
.gr-summary { color:#4e605e; font-size:14px; line-height:1.7; max-width:460px; margin:0; }
.gr-summary strong { font-weight:700; color:#283d37; }
.gr-actions { display:flex; align-items:center; flex-wrap:wrap; gap:20px; margin-top:25px; }
.grammar .gr-btn { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:48px; padding:12px 18px; border-radius:11px; font-size:14px; font-weight:800; text-decoration:none; box-sizing:border-box; }
.grammar .gr-btn--primary { color:#fff; background:#0c665b; box-shadow:0 3px 0 #08493f; }
.grammar .gr-btn--primary:hover { background:#084f46; transform:translateY(-1px); }
.grammar .gr-text-link { color:#334c44; font-size:13px; font-weight:700; text-underline-offset:5px; }
.gr-stats { display:flex; gap:24px; margin-top:26px; color:#586a62; font-size:11px; }
.gr-stats span { display:flex; align-items:baseline; gap:6px; }
.gr-stats b { font-size:21px; color:#203b31; letter-spacing:-.04em; }
.gr-example { position:relative; background:#fff; border:1px solid #dbe3db; border-radius:20px; padding:24px; box-shadow:8px 8px 0 #e6ebe0,0 14px 36px -22px #1936295c; transform:rotate(1deg); }

.gr-example-top { display:flex; align-items:center; gap:7px; border-bottom:1px solid #e7ebe4; padding-bottom:16px; }
.gr-live-dot { width:7px; height:7px; border-radius:50%; background:#0b7668; }
.gr-example h2 { font-size:12px; font-weight:800; }
.gr-example-label { margin-left:auto; font-size:10px; color:#5b6b62; }
.gr-example-topic { font-size:10px; letter-spacing:.09em; font-weight:800; color:#737b67; margin:23px 0 12px; text-transform:uppercase; }
.gr-example-statement { font-size:clamp(20px,2vw,25px); font-weight:700; line-height:1.45; min-height:74px; letter-spacing:-.035em; margin:0 0 20px; }
.gr-example-answers { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gr-example-answers button { display:flex; align-items:center; justify-content:space-between; min-height:45px; padding:10px 16px; border:1px solid #d5dfd6; background:#f9faf6; color:#274234; font:inherit; font-weight:800; font-size:14px; border-radius:10px; cursor:pointer; transition:background .18s,transform .18s; }
.gr-example-answers button:hover { transform:translateY(-2px); border-color:#0f766e; }
.gr-example-answers button span { opacity:.65; font-size:18px; }
.gr-example-answers .is-right { background:#e1f1e9; border-color:#358767; }
.gr-example-answers .is-wrong { background:#fff0e6; border-color:#bd6d40; }
.gr-example-feedback { min-height:91px; margin-top:16px; border-left:2px solid #d9dfd4; padding-left:12px; }
.gr-example-feedback p { margin:0; line-height:1.55; font-size:12px; color:#516257; }
.gr-example-feedback p:first-child { font-weight:700; color:#334d3f; }
.gr-example-feedback p+p:not(:empty) { margin-top:5px; animation:gr-arrive .22s ease-out; }
.gr-example-bottom { display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid #e7ebe4; font-size:11px; color:#667467; min-height:37px; }
.gr-next { min-height:36px; border:0; background:none; padding:6px 0 6px 12px; color:#0c665b; font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.gr-path { position:relative; border-top:1px solid #dddeda; border-bottom:1px solid #dddeda; padding:20px 0; }
.gr-path ol { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; list-style:none; padding:0; margin:0; }
.gr-path li { display:flex; align-items:center; gap:12px; }
.gr-path li>b { font-size:12px; color:#a65a35; border:1px solid #dfcabc; background:#f4eee1; width:32px; height:32px; display:grid; place-items:center; flex:none; border-radius:50%; }
.gr-path li>span { display:flex; flex-direction:column; gap:3px; }
.gr-path strong { font-size:13px; font-weight:700; }
.gr-path small { font-size:11px; color:#647164; }
.gr-motion { position:absolute; right:0; bottom:-25px; border:0; background:none; color:#5b6b62; font:inherit; font-size:10px; text-decoration:underline; text-underline-offset:3px; min-height:24px; cursor:pointer; }
.gr-motion-on li>b { animation:gr-step 1.5s ease-in-out 1 both; }
.gr-motion-on li:nth-child(2)>b { animation-delay:1.5s; }
.gr-motion-on li:nth-child(3)>b { animation-delay:3s; }
.gr-bank-intro { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; padding-top:16px; scroll-margin-top:100px; }
.gr-bank-intro h2,.gr-guide h2 { font-size:27px; letter-spacing:-.035em; line-height:1.25; margin-top:8px; }
.gr-bank-intro p:not(.gr-eyebrow) { color:#58685e; font-size:13px; max-width:540px; line-height:1.6; margin:10px 0 0; }
.gr-formats { display:flex; align-items:center; gap:4px; background:#eaece4; padding:4px; border-radius:11px; flex:none; }
.gr-formats button { min-height:40px; font:inherit; padding:8px 11px; color:#43594b; font-size:12px; font-weight:700; border:1px solid transparent; background:none; border-radius:8px; cursor:pointer; }
.gr-formats button[aria-pressed=true] { background:white; border-color:#d5ddcf; box-shadow:0 2px 4px #1b352511; color:#0c665b; }
.gr-formats button span { font-size:10px; margin-left:4px; opacity:.8; }
.grammar .tq-bar { position:static; box-shadow:none; min-height:48px; margin-top:-8px; border-radius:10px; padding:6px 10px; background:#eeeee7; }
.grammar .tq-badge { background:#e1e7da; height:32px; min-width:32px; }
.grammar .tq-bar-copy strong { font-size:12px; }
.grammar .tq-bar-copy span { font-size:11px; }
.grammar .tq-bar-actions .tq-primary,.grammar .tq-bar-actions .tq-soft { font-size:12px; height:34px; padding:0 12px; }
.grammar .tq-layout { gap:24px; }
.grammar .tq-aside { flex-basis:260px; }
.grammar .tq-body { gap:12px; }
.grammar .tq-q { padding:18px; border-radius:12px; }
.grammar .tq-q.is-picked { padding:17.5px; }
.grammar .tq-text { font-size:15px; line-height:1.55; }
.grammar .tq-top { flex-wrap:wrap; }
.grammar .tq-foot { margin-left:auto; }
.grammar .answer { position:static; width:auto; height:auto; clip:auto; overflow:visible; white-space:normal; margin:0; font-size:13px; font-weight:800; color:#0b625a; }
.gr-explanation { margin:0; padding:12px 14px; background:#f3f6ee; border-radius:8px; color:#3e5144; font-size:13px; line-height:1.65; }
.gr-attempt { margin:0; font-size:11px; color:#58685e; }
.grammar.is-enhanced [data-question-type=truefalse] .opts { display:flex; gap:10px; }
.grammar.is-enhanced [data-question-type=truefalse] .opts li { border:0!important; padding:0!important; background:none!important; min-width:110px; }
.grammar.is-enhanced [data-question-type=truefalse] .tq-letter,.grammar.is-enhanced [data-question-type=truefalse] .tq-opt-text,.grammar.is-enhanced [data-question-type=truefalse] .tq-tick { display:none!important; }
.gr-bank-answer { width:100%; min-height:44px; border:1px solid #ced9cd; background:#fafbf7; color:#254631; font:inherit; font-size:14px; font-weight:700; border-radius:8px; padding:9px 18px; cursor:pointer; }
.gr-bank-answer:hover { border-color:#0f766e; background:#eef5ec; }
.grammar .is-shown .opts li[data-correct] .gr-bank-answer { background:#e2efe3; border-color:#549663; }
.gr-bank-answer.is-wrong { background:#fff0e7; border-color:#be7349; }
.gr-bank-answer[aria-pressed=true] { box-shadow:inset 0 0 0 1px currentColor; }
.gr-aside { scroll-margin-top:100px; }
.gr-teacher-card { background:#233e32; color:#f1f3e9; padding:24px; border-radius:14px; }
.gr-teacher-card .gr-eyebrow { color:#bbd3b6; font-size:10px; }
.gr-teacher-card h2 { font-size:22px; line-height:1.3; letter-spacing:-.035em; margin-top:12px; }
.gr-teacher-card ol { margin:20px 0; padding-left:18px; display:grid; gap:13px; font-size:12px; line-height:1.65; }
.gr-teacher-card p:not(.gr-eyebrow) { color:#cbd8c9; font-size:11px; line-height:1.6; }
.grammar .gr-teacher-card .gr-text-link { color:#fff; line-height:1.6; }
.gr-small { font-size:11px; line-height:1.6; color:#62705d; margin-bottom:0; }
.gr-guide { padding:30px 0 12px; border-top:1px solid #dedfd7; }
.gr-guide-heading>p:not(.gr-eyebrow) { color:#5b6b60; font-size:14px; line-height:1.65; }
.gr-guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:25px 0; }
.gr-guide-grid article { background:#eeeee5; padding:24px; border-radius:12px; }
.gr-rule-num { font-size:10px; letter-spacing:.08em; font-weight:800; color:#886440; }
.gr-guide-grid h3 { font-size:21px; margin:14px 0 12px; letter-spacing:-.03em; }
.gr-guide-grid p { font-size:13px; line-height:1.75; color:#455945; }
.gr-guide-grid .gr-rule-tip { padding-top:12px; border-top:1px solid #d9dece; font-size:12px; font-weight:700; }
.gr-guide-note { font-size:12px; line-height:1.7; color:#5b6b60; max-width:850px; }
@keyframes gr-arrive { from {opacity:.35;transform:translateY(3px)} to {opacity:1;transform:translateY(0)} }
@keyframes gr-step { 50% {background:#dcebd6; border-color:#43865e;transform:scale(1.08)} }
@media(min-width:1100px) { .grammar .tq-main { flex-basis:650px; } }
@media(max-width:850px) { .gr-hero { gap:24px; }.gr-example-label{display:none}.gr-bank-intro{flex-direction:column;align-items:flex-start;gap:18px}.gr-guide-grid{gap:12px}.gr-guide-grid article{padding:18px}.gr-stats{gap:14px} }
@media(max-width:640px) { .grammar .tc-wrap{padding:18px 18px 48px;gap:25px}.gr-hero{grid-template-columns:1fr;gap:26px;padding-bottom:4px}.grammar h1{font-size:32px;max-width:400px}.gr-h1-note{font-size:14px;margin-top:12px}.gr-lead{font-size:15px;margin-top:16px}.gr-summary{font-size:13px}.gr-actions{margin-top:20px;gap:18px}.gr-stats{gap:20px;margin-top:20px}.gr-stats b{font-size:19px}.gr-stats span{font-size:10px}.gr-example{padding:20px;transform:none;margin-right:7px}.gr-example-statement{font-size:23px;min-height:64px}.gr-example-feedback{min-height:87px}.gr-path{padding:18px 0}.gr-path ol{gap:14px;grid-template-columns:1fr}.gr-path li>b{width:27px;height:27px;font-size:10px}.gr-path li>span{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:6px 10px}.gr-path small{font-size:11px}.gr-bank-intro h2,.gr-guide h2{font-size:25px}.gr-formats{max-width:100%;box-sizing:border-box}.gr-formats button{padding:8px 10px}.grammar .tq-bar{flex-wrap:wrap;gap:8px;padding:10px}.grammar .tq-bar-actions{width:100%;margin:0}.grammar .tq-bar-copy span{display:block}.grammar .tq-bar-actions .tq-primary{flex:1;justify-content:center}.grammar .tq-q{padding:14px;gap:10px}.grammar .tq-q.is-picked{padding:13.5px}.grammar .tq-foot{margin:0}.grammar .tq-text{flex-basis:100%}.grammar .tq-aside{flex-basis:100%}.gr-guide-grid{grid-template-columns:1fr}.gr-guide-grid article{padding:22px}.grammar .tq-tabs{flex-wrap:wrap}.grammar .tq-tab{flex:1 1 120px;white-space:normal;min-height:48px}.gr-guide{padding-top:25px} }
@media(prefers-reduced-motion:reduce) { .grammar *,.grammar *::before,.grammar *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.grammar .gr-btn:hover,.gr-example-answers button:hover{transform:none} }
@media print { .gr-hero,.gr-path,.gr-bank-intro,.gr-guide,.gr-aside,.gr-attempt{display:none!important}.grammar .tq-q .gr-bank-answer{display:none!important}.grammar.is-enhanced [data-question-type=truefalse] .tq-opt-text{display:block!important}.grammar .answer,.grammar .gr-explanation{display:none!important}.print-answers .grammar .answer,.print-answers .grammar .gr-explanation{display:block!important}.grammar .gr-explanation{background:none;padding:0;font-size:10px} }
/* Keep the question header in one wrapping row, including at phone widths. */
.grammar .tq-top { flex-direction:row; }
.grammar .gr-btn>span { font-family:system-ui,sans-serif; }
@media(max-width:640px) { .grammar .tq-tab-name{white-space:normal;min-width:0;line-height:1.45}.grammar .tq-tabs{overflow:visible}.grammar .tq-top{align-items:flex-start}.grammar .tq-tab{padding:10px;align-items:flex-start}.grammar .tq-tab-num{flex:none} }
