/* ═══════════════════════════════════════════════════════════════
   Teacher guides (/blog/). Loaded after site.css and page.css; every
   rule is scoped under .gd so nothing reaches a tool page.
   ═══════════════════════════════════════════════════════════════ */
.gd { max-width: 860px; }
.gd-head { margin: 0 0 22px; }
.gd-kicker { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 999px; font: 600 .74rem/1.4 var(--pg-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.gd h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; }
.gd-meta { margin: 0; color: var(--text-dim); font-size: .88rem; }
.gd-body { color: var(--pg-ink); font-size: 1rem; line-height: 1.78; }
.gd-body > p, .gd-body li { color: var(--pg-ink); }
.gd-body p { margin: 0 0 16px; }
.gd-body h2 { margin: 40px 0 14px; color: var(--text); font-size: clamp(1.25rem, 2.6vw, 1.5rem); letter-spacing: -.01em; scroll-margin-top: 72px; }
.gd-body h3 { margin: 26px 0 10px; color: var(--text); font-size: 1.08rem; }
.gd-body strong { color: var(--text); }
.gd-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gd-body ul, .gd-body ol { margin: 0 0 18px; padding-left: 1.3em; }
.gd-body li { margin: 0 0 8px; }
.gd-fig { margin: 22px 0 26px; }
.gd-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.gd-fig figcaption { margin: 10px 2px 0; color: var(--text-dim); font-size: .86rem; line-height: 1.55; }
.gd-box { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 12px; background: var(--surface); }
.gd-box p:last-child, .gd-box ul:last-child { margin-bottom: 0; }
.gd-box-title { display: block; margin: 0 0 6px; color: var(--text); font-weight: 700; }
.gd-calc { margin: 14px 0 18px; padding: 12px 16px; border-radius: 10px; background: var(--surface2, #161b22);
  font: .92rem/1.7 var(--pg-mono); color: var(--text); overflow-x: auto; }
.gd-table-wrap { margin: 18px 0 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.gd table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gd th, .gd td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.gd th { color: var(--text); background: var(--surface); font-weight: 650; }
.gd td { color: var(--pg-ink); }
.gd tr:last-child td { border-bottom: 0; }
.gd-plan { list-style: none; padding: 0 !important; counter-reset: plan; }
.gd-plan li { position: relative; margin: 0 0 14px; padding: 12px 14px 12px 64px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.gd-plan li b { color: var(--text); }
.gd-plan .gd-min { position: absolute; left: 12px; top: 12px; width: 42px; text-align: center; font: 700 .78rem/1.3 var(--pg-mono); color: var(--accent); }
.gd-try { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.gd-try a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  text-decoration: none !important; color: var(--text) !important; }
.gd-try a:hover { border-color: var(--accent); }
.gd-try b { display: block; margin: 0 0 4px; }
.gd-try span { color: var(--text-dim); font-size: .86rem; line-height: 1.5; }
.gd-sources li { font-size: .9rem; }
.gd .pg-faq { margin-top: 8px; }
.gd-list { display: grid; gap: 16px; margin: 8px 0 40px; }
.gd-card { display: grid; grid-template-columns: 260px 1fr; gap: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); text-decoration: none; color: var(--text); }
.gd-card:hover { border-color: var(--accent); }
.gd-card img { width: 100%; height: auto; border-radius: 10px; display: block; }
.gd-card h2 { margin: 2px 0 8px; font-size: 1.15rem; line-height: 1.3; }
.gd-card p { margin: 0 0 8px; color: var(--pg-ink); font-size: .92rem; line-height: 1.6; }
.gd-card small { color: var(--text-dim); }
@media (max-width: 640px) { .gd-card { grid-template-columns: 1fr; } .gd-plan li { padding-left: 14px; padding-top: 34px; } }

/* Author card: site.css styles it inside .seo-article only; same rules here */
.gd .author-byline {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
  margin: 0 0 24px; padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: .86rem; line-height: 1.45;
}
.author-byline .byline-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.author-byline .byline-photo-link { flex: none; display: block; line-height: 0; border-radius: 50%; }
.author-byline img, .author-byline .byline-av {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); display: block; object-fit: cover;
}
.author-byline .byline-av {
  display: grid; place-items: center;
  font: 700 .9rem/1 var(--font); color: #0d1117;
  background: linear-gradient(135deg, #5eead4, #2dd4bf 55%, #38bdf8);
}
.author-byline .byline-text { min-width: 0; }
.author-byline .byline-row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; color: var(--text); }
.gd .author-byline .byline-row1 a.byline-name { color: var(--accent); text-decoration: none; }
.gd .author-byline .byline-row1 a.byline-name:hover { color: var(--accent); text-decoration: underline; }
.author-byline .byline-row2 { color: var(--text-dim); font-size: .8rem; margin-top: 2px; }
.author-byline .byline-row3 { grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-dim); font-size: .76rem; }
.gd .author-byline .byline-row3 a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.gd .author-byline .byline-row3 a:hover { color: var(--text); }
.gd .author-byline a.byline-in {         /* the .dev-linkedin badge, small */
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px; border-radius: 5px;
  background: #0a66c2; color: #fff; text-decoration: none;
  font-size: .62rem; font-weight: 700; line-height: 1;
  transition: background .18s, box-shadow .18s;
}
.gd .author-byline a.byline-in:hover { background: #004182; color: #fff; box-shadow: 0 3px 12px rgba(10,102,194,.4); }
.byline-in svg { width: 10px; height: 10px; fill: currentColor; }
@media (max-width: 700px) { .gd .author-byline { grid-template-columns: 1fr; } }
