/* Glossary — reading pages. Inherits the homepage's Industry language and adds
   a prose measure, a facts strip and numbered remediation steps. */

.g-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.g-hero h1 { max-width: 20ch; }

/* index */
.g-cat { padding: clamp(38px, 5vw, 60px) 0; }
.g-table { margin-top: 20px; table-layout: fixed; }
.g-table th:nth-child(1) { width: 24%; }
.g-table th:nth-child(2) { width: 34%; }
.g-table td { padding: 16px 16px 16px 0; }
.g-type code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--evidence); word-break: break-word; }
.g-type a, .g-title a { text-decoration: none; }
.g-type a:hover code, .g-title a:hover { text-decoration: underline; }
.g-title a { font-weight: 500; color: var(--ink); }
.g-sum { color: #2b2b2d; font-size: 15.5px; }

/* article */
.g-article-head { padding-top: clamp(40px, 6vw, 72px); }
.g-article-head .eyebrow a { color: var(--soft); text-decoration: none; }
.g-article-head .eyebrow a:hover { color: var(--ink); text-decoration: underline; }
.g-article-head h1 { margin-top: 16px; max-width: 22ch; font-size: clamp(34px, 5.4vw, 62px); }
.g-article-head .lede { margin-top: 22px; }

.g-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 0; margin: 26px 0 0; border: 1px solid var(--rule); width: fit-content; max-width: 100%;
}
.g-facts > div { padding: 12px 20px; border-right: 1px solid var(--rule); }
.g-facts > div:last-child { border-right: 0; }
.g-facts dt { margin: 0; font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.g-facts dd { margin: 7px 0 0; font-size: 14px; }
.g-facts code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--evidence); }

/* Keep the container at the page width so prose starts on the same left edge
   as the heading; constrain the measure on the children instead. */
.g-body { padding: clamp(34px, 5vw, 56px) 24px clamp(48px, 6vw, 76px); }
.g-body > *, .g-body > aside { max-width: 78ch; }
.g-body h2 {
  font-size: clamp(21px, 2.4vw, 26px); letter-spacing: .04em;
  margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--hair);
}
.g-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.g-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: #2b2b2d; text-wrap: pretty; }
.g-body code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; color: var(--evidence); }
.g-body strong { color: var(--ink); }

.g-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; }
.g-steps li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 16.5px; line-height: 1.6; color: #2b2b2d; }
.g-steps li:last-child { border-bottom: 0; }
.g-step {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 "Barlow Condensed", system-ui;
  color: #f2f2f3; background: var(--action); border-radius: 2px;
}

.g-note { margin: 26px 0 0; padding: 18px 20px; border-left: 3px solid var(--crit); background: var(--band); }
.g-note p { margin: 0; font-size: 16px; }

.g-related { padding: clamp(38px, 5vw, 56px) 0; }
.g-rel-list { list-style: none; margin: 18px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.g-rel-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.g-rel-list a { text-decoration: none; color: var(--ink); font-size: 15.5px; }
.g-rel-list a:hover { text-decoration: underline; }
.g-rel-list code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--evidence); margin-right: 6px; }

@media (max-width: 760px) {
  .g-table { table-layout: auto; }
  .g-table th:nth-child(3), .g-table td:nth-child(3) { display: none; }
  .g-facts { grid-template-columns: 1fr; width: 100%; }
  .g-facts > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .g-facts > div:last-child { border-bottom: 0; }
  .g-rel-list { columns: 1; }
}

/* tool callout — the right instrument at the moment it is needed */
.g-tool { margin: 26px 0 0; padding: 16px 20px; border: 1px solid var(--action); }
.g-tool .eyebrow { margin: 0 0 6px; color: var(--action); }
.g-tool p { margin: 0; font-size: 16px; }
.g-tool a { font-weight: 500; }

/* cross-category links */
.g-see { list-style: none; margin: 18px 0 0; padding: 0; }
.g-see li { padding: 11px 0; border-bottom: 1px solid var(--hair); }
.g-see li:last-child { border-bottom: 0; }
.g-see a { color: var(--ink); text-decoration: none; font-size: 16.5px; }
.g-see a:hover { text-decoration: underline; }
.g-see-cat {
  font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .12em;
  text-transform: uppercase; color: var(--soft); margin-left: 10px;
}

/* related tools, index only */
.g-tools { padding: clamp(40px, 5vw, 64px) 0; }
.g-tool-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--rule); }
.g-tool-list li { padding: 20px 22px; border-bottom: 1px solid var(--hair); }
.g-tool-list li:last-child { border-bottom: 0; }
.g-tool-list a { font: 600 18px/1.2 "Barlow Condensed", system-ui; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.g-tool-list a:hover { text-decoration: underline; }
.g-tool-list span { display: block; margin-top: 7px; color: #2b2b2d; font-size: 15.5px; max-width: 80ch; }

.c-email {
  font: 600 clamp(20px, 2.6vw, 28px)/1.2 "Barlow Condensed", system-ui;
  letter-spacing: .04em; text-decoration: none;
  border-bottom: 2px solid var(--action); padding-bottom: 2px;
}
.c-email:hover { border-bottom-color: var(--ink); }
