/* A shared interior-page visual language. Page purpose stays distinct from the homepage. */
/* --- The guide is an application of the homepage's outcome-first language. --- */
.guide-preview-hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.guide-preview-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.guide-preview-hero-copy { min-width: 0; }
.guide-preview-audience {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.guide-preview-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
}
.guide-preview-hero .lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}
.guide-preview-promise {
  max-width: 55ch;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.guide-preview-hero .cta-row { gap: var(--space-3); margin-top: var(--space-8); }
.guide-preview-hero .btn-lg { padding: var(--space-3) var(--space-5); }
.guide-preview-hero-note {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}
.guide-record {
  min-width: 0;
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.guide-record-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.guide-record-kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.guide-record h2 {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 500;
}
.guide-record-fiction {
  display: inline-flex;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
}
.guide-record-intro {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.guide-record-fields { margin-top: var(--space-5); }
.guide-record-fields > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .52fr) minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.guide-record-fields dt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.guide-record-fields dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.guide-record-fields code {
  font-size: .88em;
  overflow-wrap: anywhere;
}
.guide-record-fields .guide-record-next {
  border-bottom: 0;
  margin-top: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
}
.guide-record > a {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.guide-record > a:hover { text-decoration: underline; }

.guide-contents {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.guide-contents-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 3.75rem;
  padding-block: var(--space-3);
}
.guide-contents-inner > span {
  flex: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}
.guide-contents-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.guide-contents-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.guide-contents-links a:hover { color: var(--color-primary); text-decoration: underline; }
.guide-prototype .guide-section {
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.guide-prototype .summary-panel { box-shadow: none; }
.guide-prototype .guide-summary { padding-top: var(--space-12); }
.guide-prototype .guide-section-head h2 { max-width: 42ch; }


/* Other guide output cards: prompt readers toward an actual governance artefact. */
.guide-output-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: artefact;
}
.guide-output-list li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  line-height: 1.65;
  counter-increment: artefact;
}
.guide-output-list li::before {
  content: counter(artefact, decimal-leading-zero);
  color: var(--color-primary);
  font-weight: 600;
}
.guide-output-list strong { color: var(--color-text); }
.guide-output-card > .guide-record-intro { margin-top: var(--space-4); }
.guide-output-card h2 { max-width: 24ch; }

.practice-overview-hero-grid,
.walkthrough-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.practice-overview-hero .lede,
.walkthrough-overview-hero .lede { max-width: 60ch; }
.practice-map,
.walkthrough-orientation {
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.practice-map-label,
.walkthrough-orientation-label {
  display: block;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.practice-map h2,
.walkthrough-orientation h2 {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 500;
}
.practice-map ol,
.walkthrough-orientation ol {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-left: 1.25rem;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.practice-map li::marker { color: var(--color-primary); font-weight: 600; }
.practice-map-foot,
.walkthrough-orientation p {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.practice-index .relationship-grid,
.practice-index .guide-feature { align-items: stretch; }
.walkthrough-prototype .scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.walkthrough-prototype .scenario-card { min-width: 0; padding: var(--space-6); }
.walkthrough-prototype .domain-list li { min-width: 0; }
.walkthrough-prototype .domain-list code {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-size: .88em;
}
.walkthrough-prototype .table-scroll {
  scrollbar-color: var(--color-primary) var(--color-surface-offset);
}
.walkthrough-prototype .walkthrough-nav {
  margin-top: var(--space-8);
}
.walkthrough-orientation .walkthrough-fictitious {
  display: inline-flex;
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}
.editorial-page .hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.editorial-page .hero h1 { max-width: 22ch; }
.editorial-page .hero .lede { max-width: 70ch; }
.editorial-page .hero-meta { margin-top: var(--space-6); }
.editorial-page .section-head { max-width: 75ch; }
.editorial-page .section-head h2 { max-width: 38ch; }
.editorial-page .stance { max-width: 70ch; }

@media (max-width: 850px) {
  .guide-preview-hero-grid,
  .practice-overview-hero-grid,
  .walkthrough-overview-grid { grid-template-columns: 1fr; }
  .guide-record, .practice-map, .walkthrough-orientation { max-width: 720px; }
  .walkthrough-prototype .scenario-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .guide-preview-hero .cta-row { flex-direction: column; align-items: stretch; }
  .guide-preview-hero .cta-row .btn { width: 100%; }
  .guide-contents-inner { align-items: flex-start; flex-direction: column; }
  .guide-record-fields > div { grid-template-columns: 1fr; gap: var(--space-1); }
}
@media print {
  .guide-contents { display: none !important; }
  .guide-record, .practice-map, .walkthrough-orientation {
    break-inside: avoid;
    box-shadow: none;
  }
  .guide-preview-hero { padding-bottom: var(--space-6); }
}
