/* 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; }

/* the literal scan message, styled as evidence rather than prose */
.g-alertmsg { margin: 0 0 8px; padding: 0; }
.g-alertmsg figcaption {
  font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .14em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 8px;
}
.g-alertmsg blockquote {
  margin: 0; padding: 14px 18px; border: 1px solid var(--rule); background: var(--band);
  font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.6;
  color: var(--evidence); word-break: break-word;
}

.g-faq { margin: 18px 0 0; padding: 0; }
.g-faq > div { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.g-faq > div:last-child { border-bottom: 0; }
.g-faq dt { margin: 0; font-weight: 600; font-size: 16.5px; }
.g-faq dd { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: #2b2b2d; max-width: 80ch; }

.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; }

/* alert explainer */
.x-form label {
  display: block; font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .14em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 8px;
}
.x-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--rule); background: #fff;
  font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.6;
  color: var(--ink); resize: vertical; box-sizing: border-box;
}
.x-form textarea:focus { outline: 2px solid var(--action); outline-offset: -1px; }
.x-actions { display: flex; gap: 10px; margin-top: 14px; }
.x-count { margin: 30px 0 0; font-weight: 600; }
.x-none { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--rule); background: var(--band); }
.x-none p { margin: 0; font-size: 15.5px; }
.x-card { margin-top: 18px; border: 1px solid var(--rule); padding: 20px 22px; }
.x-card header { display: flex; gap: 14px; align-items: baseline; }
.x-cat {
  font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crit);
}
.x-sev { font-size: 12.5px; color: var(--soft); }
.x-card h3 { margin: 10px 0 0; font: 600 20px/1.25 "Barlow Condensed", system-ui; letter-spacing: .03em; }
.x-card p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; }
.x-first { border-top: 1px solid var(--hair); padding-top: 12px; }
.x-more { display: inline-block; margin-top: 12px; font-size: 14.5px; }
.x-ref { list-style: none; margin: 14px 0 0; padding: 0; }
.x-ref li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.x-ref li:last-child { border-bottom: 0; }
.x-ref blockquote {
  margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--rule); background: var(--band);
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.55;
  color: var(--evidence); word-break: break-word;
}
.x-ref a { font-size: 15px; }

.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); }

/* comparison pages — side-by-side table and the two "choose" cards */
.c-tablewrap { overflow-x: auto; margin: 18px 0 6px; }
.c-table { width: 100%; border-collapse: collapse; }
.c-table thead th {
  font: 600 12px/1 "Barlow Condensed", system-ui; letter-spacing: .12em;
  text-transform: uppercase; text-align: left; color: var(--soft);
  padding: 0 14px 10px 0; border-bottom: 2px solid var(--ink);
}
.c-table tbody th {
  font-weight: 600; font-size: 14.5px; text-align: left; color: var(--ink);
  padding: 12px 14px 12px 0; vertical-align: top; width: 18%;
}
.c-table tbody td {
  font-size: 14.5px; line-height: 1.55; color: #2b2b2d;
  padding: 12px 14px 12px 0; vertical-align: top;
  border-left: 0;
}
.c-table tbody tr { border-bottom: 1px solid var(--hair); }
.c-table tbody tr:last-child { border-bottom: 0; }

.c-choose-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 6px; }
.c-choose { border: 1px solid var(--rule); padding: 18px 20px; background: var(--band); }
.c-choose h3 { margin: 0; font: 600 19px/1.25 "Barlow Condensed", system-ui; letter-spacing: .03em; }
.c-choose ul { list-style: none; margin: 12px 0 0; padding: 0; }
.c-choose li { padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.55; }
.c-choose li:last-child { border-bottom: 0; }

@media (max-width: 760px) {
  .c-choose-pair { grid-template-columns: 1fr; }
  .c-table tbody th { width: 26%; }
}

/* vulnerability checker */
.x-attrib { margin-top: 34px; font-size: 13.5px; color: var(--soft); }
.v-sum { margin: 26px 0 0; font-weight: 600; }
.v-badge {
  display: inline-block; font: 600 10px/1 "Barlow Condensed", system-ui;
  letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px;
  border: 1px solid currentColor;
}
.v-badge.crit { color: var(--crit); }
.v-badge.ok { color: #1d7a3a; }
.v-badge.warn { color: #8a6d00; }
.v-clean { margin-top: 18px; }
.v-clean li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.v-clean li:last-child { border-bottom: 0; }
.v-meta { font-size: 13px; color: var(--soft); margin-top: 6px; }

/* learning & resources — a course map rendered as an operator's ledger */
.r-hero { padding-bottom: clamp(46px, 7vw, 82px); }
.r-hero h1 { max-width: 12ch; }
.r-hero .lede { max-width: 66ch; }
.r-stats {
  display: flex; width: fit-content; max-width: 100%; margin-top: 34px;
  border: 1px solid var(--rule); background: var(--band);
}
.r-stats span { padding: 12px 18px; border-right: 1px solid var(--rule); color: var(--mid); font-size: 13px; }
.r-stats span:last-child { border-right: 0; }
.r-stats b { color: var(--ink); font-family: "Barlow Condensed", system-ui; font-size: 17px; margin-right: 4px; }

.r-starts-section { padding: clamp(42px, 6vw, 68px) 0; }
.r-starts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--rule); }
.r-start {
  min-width: 0; padding: 22px; color: var(--ink); text-decoration: none;
  display: flex; flex-direction: column; border-right: 1px solid var(--rule); background: transparent;
  transition: background .15s ease;
}
.r-start:last-child { border-right: 0; }
.r-start:hover { background: #fff; }
.r-start-n { font-family: ui-monospace, Menlo, monospace; color: var(--action); font-size: 12px; }
.r-start strong { margin-top: 22px; font: 600 21px/1.15 "Barlow Condensed", system-ui; text-transform: uppercase; letter-spacing: .04em; }
.r-start > span:nth-child(3) { margin-top: 9px; color: #2b2b2d; font-size: 15px; line-height: 1.5; }
.r-start b { margin-top: 26px; color: var(--action); font: 600 12px/1 "Barlow Condensed", system-ui; text-transform: uppercase; letter-spacing: .1em; }

.r-index {
  display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 20px; padding-bottom: 20px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.r-index a {
  padding: 4px 16px; border-right: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  font: 600 12px/1.2 "Barlow Condensed", system-ui; text-transform: uppercase; letter-spacing: .1em;
}
.r-index a:first-child { padding-left: 0; }
.r-index a:last-child { border-right: 0; }
.r-index a:hover { color: var(--action); }
.r-index span { color: var(--action); margin-right: 8px; }

.r-track { scroll-margin-top: 16px; padding: clamp(58px, 8vw, 94px) 0; }
.r-track-head { display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: start; }
.r-track-number { font: 700 clamp(52px, 7vw, 80px)/.85 "Barlow Condensed", system-ui; color: var(--action); }
.r-track-head .eyebrow { margin: 0 0 13px; }
.r-track-head h2 { max-width: 25ch; font-size: clamp(30px, 4vw, 46px); }
.r-track-head .lede { margin: 16px 0 0; max-width: 64ch; }
.r-lessons { margin-top: 38px; border-top: 2px solid var(--ink); }
.r-lesson {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 78px; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--hair);
}
.r-lesson-meta { display: grid; grid-template-columns: 52px 1fr; gap: 5px 12px; align-items: center; }
.r-number { grid-row: 1 / 3; font: 700 22px/1 "Barlow Condensed", system-ui; color: var(--action); }
.r-level, .r-format {
  font: 600 10px/1 "Barlow Condensed", system-ui; letter-spacing: .12em; text-transform: uppercase;
}
.r-level { color: var(--ink); }
.r-format { color: var(--soft); }
.r-lesson-copy h3 { margin: 0; font-size: 20px; line-height: 1.2; text-transform: none; letter-spacing: .01em; }
.r-lesson-copy h3 a { color: var(--ink); text-decoration: none; }
.r-lesson-copy h3 a:hover { text-decoration: underline; }
.r-lesson-copy p { margin: 7px 0 0; max-width: 76ch; color: #2b2b2d; font-size: 14.5px; line-height: 1.5; }
.r-open {
  justify-self: end; color: var(--action); text-decoration: none;
  font: 600 11px/1 "Barlow Condensed", system-ui; letter-spacing: .1em; text-transform: uppercase;
}
.r-open:hover { color: var(--ink); }
.r-open span { margin-left: 4px; }
.r-close h2 { max-width: 23ch; }

@media (max-width: 820px) {
  .r-stats { display: grid; width: 100%; }
  .r-stats span { border-right: 0; border-bottom: 1px solid var(--rule); }
  .r-stats span:last-child { border-bottom: 0; }
  .r-starts { grid-template-columns: 1fr; }
  .r-start { border-right: 0; border-bottom: 1px solid var(--rule); }
  .r-start:last-child { border-bottom: 0; }
  .r-index { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .r-index a:nth-child(2) { border-right: 0; }
  .r-track-head { grid-template-columns: 72px 1fr; gap: 18px; }
  .r-lesson { grid-template-columns: 150px minmax(0, 1fr) 60px; gap: 16px; }
}

@media (max-width: 590px) {
  .r-index { grid-template-columns: 1fr; }
  .r-index a, .r-index a:first-child { padding: 6px 0; border-right: 0; }
  .r-track-head { grid-template-columns: 1fr; }
  .r-track-number { font-size: 46px; }
  .r-lesson { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .r-lesson-meta { grid-template-columns: 52px 1fr; max-width: 190px; }
  .r-open { justify-self: start; }
}
