:root{
  --o1:#ff9b28;
  --o2:#ff4d2e;
  --bg:#f8f4ee;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#4b5563;
  --line:#efe3d2;
}

html.dark{
  --bg:#0b0b0b;
  --card:#151515;
  --text:#f3f4f6;
  --muted:#a3a3a3;
  --line:#262626;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height:1.75;
  font-size:15px;
}

.lg-hero{
  color:#fff;
  padding:calc(28px + env(safe-area-inset-top,0px)) 20px 56px;
  background:
    radial-gradient(120% 160% at 100% -20%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, var(--o1), var(--o2));
  border-radius:0 0 30px 30px;
  box-shadow:0 18px 40px rgba(255,77,46,.25);
}

.lg-hero-inner{ max-width:820px; margin:0 auto; }

.lg-back{
  display:inline-block;
  color:#fff;
  text-decoration:none;
  font-size:22px;
  line-height:1;
}

.lg-hero h1{
  margin:14px 0 6px;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.4px;
}

.lg-hero p{ margin:0; font-size:13.5px; opacity:.95; }

.lg-wrap{
  max-width:820px;
  margin:-28px auto 60px;
  padding:0 14px;
}

.lg-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px 22px;
  box-shadow:0 12px 40px rgba(0,0,0,.07);
  margin-bottom:16px;
}

.lg-toc ol{
  margin:10px 0 0;
  padding-left:20px;
  columns:2;
  column-gap:28px;
  font-size:14px;
}

.lg-toc a{ color:var(--text); text-decoration:none; }
.lg-toc a:hover{ color:#e8590c; }

@media (max-width:620px){ .lg-toc ol{ columns:1; } }

h2{
  margin:30px 0 8px;
  padding-top:6px;
  font-size:19px;
  font-weight:800;
  color:#e8590c;
}

h2:first-of-type{ margin-top:6px; }

h3{ margin:18px 0 4px; font-size:15.5px; font-weight:700; }

p{ margin:0 0 12px; color:var(--muted); }

ul, ol{ margin:0 0 14px; padding-left:22px; color:var(--muted); }

li{ margin-bottom:6px; }

strong{ color:var(--text); }

a{ color:#e8590c; }

.lg-fill{
  background:#fff3a8;
  color:#5b4500;
  padding:0 5px;
  border-radius:5px;
  font-weight:700;
}

html.dark .lg-fill{ background:#4a3d00; color:#ffe58a; }

.lg-box{
  margin:12px 0 16px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,155,40,.12);
  border:1px solid rgba(255,155,40,.35);
  color:var(--text);
  font-size:14px;
}

.lg-box p{ color:var(--text); margin:0; }

table{
  width:100%;
  border-collapse:collapse;
  margin:8px 0 16px;
  font-size:13.5px;
}

th, td{
  text-align:left;
  vertical-align:top;
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
}

th{ color:var(--text); font-weight:700; }

.lg-table-wrap{ overflow-x:auto; }

.lg-foot{
  text-align:center;
  font-size:13px;
  color:var(--muted);
}

.lg-foot a{ margin:0 8px; text-decoration:none; font-weight:700; }