/* Trang bài giảng mẫu công khai (bai-giang-toan-lop-5.html, toan-lop-5-*.html): không khung, tách bằng khoảng trắng + đường kẻ mảnh. */
:root { --ink:#153125; --muted:#5b6f65; --green:#1f6b48; --board:#06634e; --chalk:#fff8df; --gold:#ffd666; --soft:#f8fff7; --paper:#fffaf0; --line:rgba(21,49,37,.14); }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:Inter,"Segoe UI",Arial,sans-serif; color:var(--ink); background:linear-gradient(180deg,var(--soft),var(--paper)); min-height:100vh; }
a { color:inherit; text-decoration:none; }
.wrap { width:min(1040px,calc(100% - 40px)); margin:0 auto; }
.nav { position:sticky; top:0; z-index:10; background:rgba(248,255,247,.9); border-bottom:1px solid var(--line); backdrop-filter:blur(14px); }
.nav-inner { min-height:72px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:850; letter-spacing:-.03em; }
.nav-links { display:flex; gap:4px; font-size:14px; font-weight:700; }
.nav-links a { padding:10px 12px; border-radius:999px; white-space:nowrap; }
.nav-links a:hover, .nav-links .active { background:rgba(31,107,72,.1); color:var(--green); }
.nav-links .cta { background:var(--green); color:white; }
.crumb { padding-top:34px; font-size:14px; color:var(--muted); }
.crumb a { text-decoration:underline; text-underline-offset:3px; }
h1 { font-size:clamp(34px,4.6vw,54px); line-height:1.1; letter-spacing:-.04em; margin-top:14px; max-width:860px; }
.lead { margin-top:18px; color:var(--muted); font-size:19px; line-height:1.7; max-width:760px; }
section.block { padding:52px 0; border-top:1px solid var(--line); }
section.first { border-top:0; padding-top:36px; }
.kicker { color:var(--green); font-size:13px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:12px; }
h2 { font-size:clamp(26px,3vw,34px); line-height:1.2; letter-spacing:-.03em; margin-bottom:22px; }
h3 { font-size:20px; margin-bottom:6px; }
p, li { line-height:1.7; }
.muted { color:var(--muted); }
.problem { font-size:20px; line-height:1.7; max-width:800px; border-left:2px solid var(--green); padding-left:22px; }
.board { background:var(--board); color:var(--chalk); border-radius:14px; padding:28px 32px; display:grid; grid-template-columns:1fr 1.2fr; gap:28px 40px;
  font-family:"Segoe Print","Comic Sans MS","Segoe UI",sans-serif; font-size:17px; line-height:1.95; }
.board h4 { font-family:inherit; font-size:16px; letter-spacing:.08em; color:var(--gold); margin-bottom:6px; }
.board svg { display:block; width:100%; height:auto; margin-top:12px; }
.board .calc { color:#fff; font-weight:700; padding-left:18px; }
.board .ans { margin-top:8px; color:var(--gold); font-weight:700; }
ol.asks { list-style:none; counter-reset:s; display:grid; gap:16px; max-width:820px; }
ol.asks li { counter-increment:s; padding-left:44px; position:relative; }
ol.asks li::before { content:counter(s); position:absolute; left:0; top:-1px; font-weight:900; font-size:20px; color:var(--green); }
ol.asks em { font-style:normal; color:var(--muted); }
.cols { display:grid; grid-template-columns:repeat(2,1fr); gap:28px 48px; }
ul.plain { list-style:none; display:grid; gap:14px; }
ul.plain li { padding-left:22px; position:relative; }
ul.plain li::before { content:""; position:absolute; left:2px; top:.75em; width:8px; height:1.5px; background:var(--green); }
.actions { display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; margin-top:26px; }
.btn { display:inline-block; background:var(--green); color:white; padding:14px 22px; border-radius:999px; font-weight:800; border:0; cursor:pointer; font:inherit; font-weight:800; }
.link { font-weight:800; color:var(--green); text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; }
.list { display:grid; gap:0; }
.list a { display:grid; grid-template-columns:1fr auto; gap:6px 24px; padding:22px 0; border-top:1px solid var(--line); }
.list a:last-child { border-bottom:1px solid var(--line); }
.list a strong { font-size:21px; }
.list a span { color:var(--muted); grid-column:1; }
.list a::after { content:"→"; grid-row:1 / span 2; grid-column:2; align-self:center; color:var(--green); font-size:22px; }
footer { padding:28px 0 42px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
footer a { text-decoration:underline; }
@media (max-width:820px) {
  .nav { position:static; }
  .nav-inner { align-items:flex-start; flex-direction:column; padding:14px 0; gap:10px; }
  .nav-links { overflow-x:auto; width:100%; }
  .board, .cols { grid-template-columns:1fr; }
  .board { padding:22px 20px; font-size:16px; }
  section.block { padding:40px 0; }
}
