/* v14 free grammar reference library */
.grammar-guide-section{background:linear-gradient(180deg,#f7fbff,#fffdf7);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.grammar-guide-lead{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:end;margin-bottom:22px}
.grammar-guide-lead h2{font-size:clamp(38px,5vw,62px);line-height:1;color:var(--deep);margin:12px 0 10px;letter-spacing:-.035em}
.grammar-guide-lead p{font-size:17px;line-height:1.7;color:var(--muted);max-width:820px}
.grammar-guide-summary{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px 20px;box-shadow:var(--shadow)}
.grammar-guide-summary strong{display:block;color:var(--blue);font-size:28px}.grammar-guide-summary span{display:block;color:var(--muted);font-size:13px;font-weight:750;margin-top:3px}
.grammar-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grammar-guide-card{background:white;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 12px 34px rgba(30,73,105,.09);display:flex;flex-direction:column;min-height:240px;position:relative;overflow:hidden}
.grammar-guide-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--blue),#42b5df,var(--gold))}
.grammar-guide-card .gg-num{width:42px;height:42px;border-radius:14px;background:#eaf7ff;color:var(--blue);display:grid;place-items:center;font-weight:950;margin-bottom:13px}
.grammar-guide-card h3{font-size:22px;line-height:1.1;color:var(--deep);margin:0 0 8px}.grammar-guide-card p{margin:0 0 14px;color:var(--muted);line-height:1.55;font-size:14px}.grammar-guide-card ul{margin:0 0 16px 18px;padding:0;color:var(--muted);font-size:13px;line-height:1.5}.grammar-guide-card button{margin-top:auto;border:0;border-radius:999px;padding:11px 15px;background:var(--blue);color:white;font-weight:900}
.grammar-guide-note{margin-top:18px;background:#fff8e8;border:1px solid #edd69e;border-radius:18px;padding:14px 16px;color:#6d581f;line-height:1.55}
.grammar-guide-player{position:fixed;inset:0;background:rgba(6,28,48,.84);z-index:155;display:grid;place-items:center;padding:18px}.grammar-guide-player[hidden]{display:none}.grammar-guide-shell{position:relative;width:min(1160px,97vw);max-height:94vh;overflow:auto;background:#fff;border-radius:30px;box-shadow:0 35px 100px rgba(0,0,0,.38)}.grammar-guide-shell>.close{position:sticky;float:right;top:14px;right:14px;margin:14px 14px -58px 0}
.gg-head{padding:34px 34px 24px;background:linear-gradient(135deg,#eef9ff,#fff9e9)}.gg-head .eyebrow{margin-bottom:10px}.gg-head h2{font-size:clamp(36px,5vw,58px);line-height:1;color:var(--deep);margin:5px 0 10px}.gg-head p{font-size:17px;color:var(--muted);line-height:1.6;max-width:850px}.gg-body{padding:0 34px 36px}.gg-panel{border:1px solid var(--line);border-radius:22px;padding:20px;margin:16px 0;background:#fff}.gg-panel.soft{background:#f6fbff}.gg-panel.gold{background:#fff9e7;border-color:#ead391}.gg-panel h3{font-size:26px;color:var(--deep);margin:0 0 12px}.gg-panel h4{font-size:18px;color:var(--deep);margin:16px 0 8px}.gg-panel p,.gg-panel li{line-height:1.7}.gg-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}.gg-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff}.gg-table th,.gg-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.gg-table th{background:#edf7ff;color:var(--deep);font-size:13px}.gg-table tr:last-child td{border-bottom:0}.gg-table .ending{font-weight:950;color:var(--blue)}.gg-table .form{font-weight:850;color:var(--deep)}
.gg-examples{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.gg-example{background:#f8fbfd;border:1px solid var(--line);border-radius:16px;padding:14px}.gg-example b{color:var(--deep)}.gg-example small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}
.gg-audio{border:0;background:#eaf6ff;color:var(--deep);border-radius:999px;padding:7px 10px;font-weight:900;margin-left:6px}.gg-audio:hover{background:#d9efff}.gg-callout{border-left:5px solid var(--gold);background:#fff8e8;padding:14px 16px;border-radius:0 16px 16px 0;line-height:1.65}.gg-correct{color:#277948;font-weight:900}.gg-wrong{color:#a94343;text-decoration:line-through}.gg-index-search{display:flex;gap:10px;align-items:center;margin:0 0 14px}.gg-index-search input{flex:1;border:1px solid var(--line);border-radius:999px;padding:11px 15px;font:inherit}.gg-chiprow{display:flex;flex-wrap:wrap;gap:8px}.gg-chip{background:#eef8ff;border:1px solid #d3eaf8;border-radius:999px;padding:7px 10px;font-size:13px;color:var(--deep);font-weight:750}
@media(max-width:950px){.grammar-guide-grid{grid-template-columns:repeat(2,1fr)}.grammar-guide-lead{grid-template-columns:1fr}.gg-examples{grid-template-columns:1fr}}
@media(max-width:620px){.grammar-guide-grid{grid-template-columns:1fr}.gg-head{padding:26px 20px 18px}.gg-body{padding:0 18px 24px}.grammar-guide-player{padding:7px}.grammar-guide-shell{border-radius:20px}.gg-head h2{font-size:34px}.grammar-guide-card{min-height:0}}
