/*
 * The guide uses the same Brill Family Paper Ledger foundation as /index.html.
 * Serif is voice, sans is prose, mono is data and interface chrome.
 */
:root {
  --paper: #f1ebdd;
  --paper-deep: #efe7d4;
  --paper-card: #faf6ec;
  --paper-card-2: #f6f0e2;
  --ink: #2a2520;
  --ink-soft: #6c6256;
  --ink-faint: #938872;
  --rule: #ddd2ba;
  --rule-strong: #cabd9f;
  --terra: #b1542f;
  --terra-deep: #90401f;
  --terra-tint: #f3ddd1;
  --green: #4f6b41;
  --green-tint: #e7ecdd;
  --blue: #566776;
  --blue-tint: #e2e7eb;
  --steel: #566776;
  --steel-tint: #e2e7eb;
  --amber: #a87d1c;
  --amber-tint: #f4ead0;
  --red: #b23529;
  --red-tint: #f2dcd6;
  --on-colour: #fdf7ec;
  --on-color: #fdf7ec;
  --working-cream: #efe7d4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", "Roboto Mono", monospace;
  --shadow: 0 1px 0 rgba(120, 105, 80, 0.18), 0 10px 22px -16px rgba(60, 48, 30, 0.45);
  --shadow-card: 0 1px 0 rgba(120, 105, 80, 0.18), 0 10px 22px -16px rgba(60, 48, 30, 0.45);
  --shadow-feature: 0 1px 0 rgba(120, 105, 80, 0.22), 0 22px 48px -26px rgba(60, 48, 30, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 250, 238, 0.72), rgba(255, 250, 238, 0) 60%),
    repeating-linear-gradient(to bottom, transparent 0 30px, rgba(180, 160, 120, 0.07) 30px 31px),
    var(--paper);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--terra-tint);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 10px 14px;
  color: var(--on-colour);
  background: var(--terra-deep);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--terra-deep);
  outline-offset: 2px;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 300;
  width: 0;
  height: 4px;
  background: var(--terra);
}

.shell,
.wrap {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 26px 28px 0;
}

.reader-shell {
  width: min(900px, 100%);
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.brandblock {
  display: flex;
  align-items: baseline;
  gap: 13px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.tagline {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.site-meta,
.meta {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.guide-nav,
nav.pillnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-nav::-webkit-scrollbar,
nav.pillnav::-webkit-scrollbar {
  display: none;
}

.nav-spacer {
  min-width: 8px;
  flex: 1 1 auto;
}

.mast-link,
.chip {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.mast-link:hover,
.chip:hover {
  color: var(--terra-deep);
  border-color: var(--terra-deep);
}

.mast-link.active,
.chip.active {
  color: var(--on-colour);
  background: var(--terra);
  border-color: var(--terra-deep);
}

.eyebrow,
.kicker,
.chapter-count,
.facts-checked {
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  margin-top: 28px;
}

.guidehero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: end;
  padding: 0;
}

.hero-title,
.article h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.hero-title {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 52px);
}

.hero-lede {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

.card {
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.card.feature {
  position: relative;
  overflow: hidden;
  border-color: var(--terra);
  border-top: 3px solid var(--terra);
  box-shadow: var(--shadow-feature);
}

.card.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(243, 221, 209, 0.45), rgba(250, 246, 236, 0) 120px);
  pointer-events: none;
}

.card .cm {
  position: relative;
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provenance {
  position: relative;
  margin-top: 10px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.guide-summary p:not(.cm, .provenance) {
  position: relative;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.58;
}

.button-row,
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.btn,
.copy-button,
.reset-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--terra-deep);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button.primary,
.btn.primary,
.copy-button {
  color: var(--on-colour);
  background: var(--terra);
}

.button.primary:hover,
.btn.primary:hover,
.copy-button:hover {
  background: var(--terra-deep);
}

.button.secondary,
.btn.ghost,
.reset-button {
  color: var(--ink);
  background: var(--paper-card);
  border-color: var(--rule-strong);
}

.button.secondary:hover,
.btn.ghost:hover,
.reset-button:hover {
  color: var(--terra-deep);
  border-color: var(--terra-deep);
}

.btn .arr {
  transition: transform 180ms ease;
}

.btn:hover .arr {
  transform: translateX(3px);
}

.section,
section.block {
  margin-top: 40px;
  padding: 26px 0 0;
  border-top: 1px solid var(--rule-strong);
  scroll-margin-top: 72px;
}

h2.title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.lede {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
}

.chapter-list {
  padding: 18px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  min-height: 44px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--rule);
  text-decoration: none;
}

.chapter-row:first-child {
  padding-top: 2px;
}

.chapter-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.chapter-row .cn {
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.chapter-row .ct2,
.chapter-row .cd {
  display: block;
}

.chapter-row .ct2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.chapter-row .cd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.chapter-row:hover .ct2 {
  color: var(--terra-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 24px;
}

.section h2,
.article h2,
.article h3 {
  font-family: var(--serif);
  color: var(--ink);
}

.section h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  counter-reset: ladder -1;
}

.ladder-step {
  position: relative;
  min-height: 190px;
  padding: 20px 16px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-right: 0;
  counter-increment: ladder;
}

.ladder-step:first-child {
  border-radius: 7px 0 0 7px;
}

.ladder-step:last-child {
  border-right: 1px solid var(--rule-strong);
  border-radius: 0 7px 7px 0;
}

.ladder-step::before {
  content: counter(ladder);
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--on-colour);
  background: var(--terra);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.ladder-step strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 19px;
}

.ladder-step span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.48;
}

.access-grid,
.chapter-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.access-card,
.chapter-card,
.small-card {
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.access-card {
  border-top-width: 4px;
}

.access-card.self {
  border-top-color: var(--green);
}

.access-card.tenant {
  border-top-color: var(--amber);
}

.access-card.it {
  border-top-color: var(--blue);
}

.access-card h3,
.small-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 21px;
}

.access-card p,
.small-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.chapter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chapter-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.chapter-card:hover {
  border-color: var(--terra-deep);
  transform: translateY(-2px);
}

.chapter-card .chapter-number {
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.chapter-card h3 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}

.chapter-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.chapter-card .time {
  margin-top: auto;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
}

.article-header {
  margin-top: 28px;
  padding: 0 0 12px;
}

.article h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 52px);
}

.chapter-count {
  margin: 0 0 8px;
}

.article .chapter-lead {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

.chapter-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
}

.section-nav {
  position: static;
  margin: 0 0 28px;
  padding: 10px 0;
  background: rgba(241, 235, 221, 0.95);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.section-nav-inner {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.section-nav a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  color: var(--terra-deep);
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.section-nav a[aria-current="true"] {
  color: var(--on-colour);
  background: var(--terra);
  border-color: var(--terra-deep);
}

.article h2 {
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  scroll-margin-top: 82px;
}

.article h2 .section-number {
  display: block;
  margin-bottom: 6px;
  color: var(--terra);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.article h3 {
  margin: 28px 0 9px;
  font-size: 21px;
  line-height: 1.15;
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.67;
}

.article p {
  margin: 0 0 17px;
}

.article ul,
.article ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--terra-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article strong {
  font-weight: 700;
}

.article blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--paper-card);
  border-left: 4px solid var(--terra);
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow);
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--terra);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.callout.self {
  background: linear-gradient(120deg, var(--green-tint), var(--paper-card) 62%);
  border-left-color: var(--green);
}

.callout.tenant {
  background: linear-gradient(120deg, var(--amber-tint), var(--paper-card) 62%);
  border-left-color: var(--amber);
}

.callout.it {
  background: linear-gradient(120deg, var(--blue-tint), var(--paper-card) 62%);
  border-left-color: var(--blue);
}

.callout.safety {
  background: linear-gradient(120deg, var(--red-tint), var(--paper-card) 62%);
  border-left-color: var(--red);
}

.callout-label {
  margin: 0 0 7px;
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.callout.self .callout-label {
  color: var(--green);
}

.callout.tenant .callout-label {
  color: var(--amber);
}

.callout.it .callout-label {
  color: var(--blue);
}

.callout.safety .callout-label {
  color: var(--red);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.prompt-card {
  margin: 24px 0;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.prompt-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px 5px 15px;
  background: var(--paper-card-2);
  border-bottom: 1px solid var(--rule);
}

.prompt-label {
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-button {
  min-width: 82px;
  padding: 0 13px;
  font-size: 11px;
}

.copy-button[data-state="success"] {
  background: var(--green);
  border-color: var(--green);
}

.copy-button[data-state="error"] {
  background: var(--red);
  border-color: var(--red);
}

.prompt-card pre {
  margin: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

.source-note {
  margin: 24px 0;
  padding: 13px 15px;
  color: var(--ink-soft);
  background: rgba(250, 246, 236, 0.72);
  border: 1px dashed var(--rule-strong);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.55;
}

.source-note strong {
  color: var(--ink);
}

.workflow-card {
  margin: 24px 0;
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--terra);
  border-top: 3px solid var(--terra);
  border-radius: 6px;
  color: var(--ink);
  box-shadow: var(--shadow-feature);
}

.workflow-card h3 {
  margin-top: 0;
  color: var(--ink);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-item {
  padding: 13px;
  background: var(--paper-card-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
}

.workflow-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-item span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.comparison-card {
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.comparison-card.before {
  border-top: 4px solid var(--ink-faint);
}

.comparison-card.after {
  border-top: 4px solid var(--terra);
}

.comparison-card h3 {
  margin-top: 0;
  font-size: 19px;
}

.comparison-card p,
.comparison-card li {
  font-size: 14px;
  line-height: 1.55;
}

.scorecard {
  margin: 24px 0;
  padding: 20px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.scorecard h3 {
  margin-top: 0;
}

.check-row {
  display: flex;
  min-height: 52px;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}

.check-row:first-of-type {
  border-top: 0;
}

.check-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--terra);
}

.check-row span {
  font-size: 15px;
  line-height: 1.45;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.score-status {
  min-height: 24px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.chapter-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.chapter-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--terra-deep);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

.chapter-nav a:hover {
  text-decoration: underline;
}

.chapter-nav .next {
  justify-self: end;
  text-align: right;
}

.chapter-nav .all {
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta {
  margin-top: 44px;
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--terra);
  border-top-width: 3px;
  border-radius: 6px;
  box-shadow: var(--shadow-feature);
}

.cta h2,
.cta h3 {
  margin-top: 0;
  font-family: var(--serif);
}

.article .cta h2 {
  margin: 0 0 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 30px;
  line-height: 1.12;
}

.cta p {
  color: var(--ink-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 20px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer a {
  color: var(--terra-deep);
}

footer.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 46px;
  padding: 22px 0 40px;
  border-top: 2px solid var(--ink);
}

footer .fmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

footer .fmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer .fmeta .sep {
  color: var(--rule-strong);
}

footer .flinks {
  display: flex;
  gap: 8px;
}

footer .flinks a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
}

footer .flinks a:hover {
  color: var(--terra-deep);
  border-color: var(--terra-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .guidehero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .guidehero {
    gap: 20px;
  }

  .ladder {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ladder-step,
  .ladder-step:first-child,
  .ladder-step:last-child {
    min-height: 0;
    border: 1px solid var(--rule-strong);
    border-radius: 7px;
  }

  .ladder-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
  }

  .ladder-step::before {
    grid-row: span 2;
    margin: 0;
  }

  .access-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 34px 0;
  }

  .section-heading {
    gap: 16px;
  }

  .chapter-grid,
  .comparison,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    min-height: 160px;
  }

  .article p,
  .article li {
    font-size: 16px;
  }

  .prompt-toolbar {
    align-items: stretch;
  }

  .chapter-nav {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-nav .all {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .shell,
  .wrap {
    padding: 16px 16px 0;
  }

  .wordmark {
    font-size: 26px;
  }

  .site-meta,
  .meta {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .shell,
  .wrap,
  .reader-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .masthead,
  .guide-nav,
  .pillnav,
  .skip-link,
  .section-nav,
  .progress,
  .button-row,
  .copy-button,
  .score-actions,
  .chapter-nav {
    display: none !important;
  }

  .callout,
  .workflow-card,
  .scorecard,
  .chapter-card,
  .access-card,
  .ladder-step,
  .comparison-card,
  .small-card,
  .source-note,
  .cta {
    box-shadow: none;
    break-inside: avoid;
  }

  .prompt-card {
    box-shadow: none;
    break-inside: auto;
  }

  .prompt-toolbar {
    break-after: avoid;
  }

  .article a::after,
  .source-note a::after {
    content: " (" attr(href) ")";
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .footer,
  .foot {
    margin-top: 28px;
  }
}
