/* Web section: Names and terms worksheet. Scoped to .ws-section so it can drop into the existing article page.
   Loads AFTER the page's site-v8.css / pages-v8.css; uses their tokens (--text, --text-2, --line, --rule, --r, --font, --display, --mono, --panel).
   Dark only: the paper variant exists only as the print PDF. */
.ws-section { margin: 56px 0; padding: 32px; border: 1px solid transparent; border-radius: var(--r);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(225deg, #4db9b7, #3aa35c80 42%, #ffffff0f) border-box; position: relative; isolation: isolate; overflow: hidden; }
.ws-section::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, #4db9b766, #0000 70%); pointer-events: none; }
.ws-eyebrow { margin: 0 0 14px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.ws-section h2 { margin: 0; font: 600 clamp(26px, 2.5vw, 36px)/1.15 var(--display); letter-spacing: -.04em; color: var(--text); }
.ws-lede { margin: 14px 0 0; max-width: 46em; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.ws-table-wrap { margin-top: 28px; overflow-x: auto; }
.ws-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.ws-table th { padding: 8px 10px; text-align: left; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid #ffffff38; }
.ws-table td { height: 44px; padding: 10px; border-bottom: 1px solid var(--rule, #ffffff1f); color: var(--text); overflow-wrap: anywhere; }
.ws-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: ws; }
.ws-steps li { counter-increment: ws; padding: 14px 16px; border: 1px solid var(--line, #ffffff24); border-radius: var(--r); }
.ws-steps h3 { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing: -.02em; color: var(--text); }
.ws-steps h3::before { content: counter(ws) ". "; }
.ws-steps p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ws-notes p { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.ws-downloads { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: var(--r); background: var(--text); color: #08080a; font: 600 16px/1 var(--font); text-decoration: none; }
.ws-btn:hover { background: #fff; }
.ws-btn--ghost { background: #15171c; color: var(--text); border: 1px solid #ffffff52; }
.ws-btn--ghost:hover { background: #1b1e25; }
.ws-btn small { margin-left: 10px; font: 400 11px/1 var(--mono); letter-spacing: .08em; color: inherit; opacity: .7; }
.ws-btn:focus-visible { outline: 2px solid #7aa2f7; outline-offset: 3px; }
@media (max-width: 700px) { .ws-section { padding: 22px 18px; margin: 40px 0; } .ws-steps { grid-template-columns: 1fr; } .ws-btn { width: 100%; } }

/* Keep worksheet buttons readable over their own backgrounds. */
.ga-body .ws-btn { color: #08080a; text-decoration: none; }
.ga-body .ws-btn--ghost { color: var(--text); }

@media (max-width: 760px) {
  .ws-section .table-hint { margin: 24px 0 8px; }
  .ws-table-wrap { margin-top: 0; }
  .ga-body .ws-table { display: table; overflow: visible; }
  .ws-table th:first-child, .ws-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
}

@media (max-width: 700px) {
  .ws-btn { padding-inline: 12px; font-size: 14px; }
  .ws-btn small { white-space: nowrap; font-size: 10px; }
}
@media (max-width: 360px) {
  .ws-btn { padding-inline: 8px; font-size: 13px; }
  .ws-btn small { font-size: 9px; }
}
