.content-page {
  line-height: 1.8;
}
.content-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 32px 48px;
}
.content-page a {
  color: var(--text-soft);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.content-header {
  padding: 36px 0 30px;
  max-width: 800px;
}
.content-kicker {
  color: var(--accent-hot);
  font: 12px var(--font-display);
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}
.content-page h1 {
  font: 650 clamp(28px, 4vw, 44px) / 1.25 var(--font-display);
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}
.content-page h2 {
  font: 600 23px/1.4 var(--font-display);
  margin: 0 0 14px;
}
.content-page h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.content-page p {
  margin: 0 0 16px;
}
.content-lead {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 45em;
}
.content-meta {
  color: var(--text-soft);
  font-size: 13px;
}
.content-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.content-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--accent);
}
.content-toc a {
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  font-size: 14px;
}
.content-article {
  max-width: 760px;
  min-width: 0;
}
.content-section {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 24px;
}
.content-section ol,
.content-section ul {
  padding-left: 22px;
}
.content-section li {
  margin-bottom: 10px;
}
.content-number {
  color: var(--accent-hot);
  margin-right: 12px;
  font: 15px var(--font-display);
  font-variant-numeric: tabular-nums;
}
.content-callout {
  background: var(--surface-2);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
}
.content-page details {
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
}
.content-page summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  color: var(--text);
  font-weight: 600;
}
.content-page details p {
  padding: 8px 0;
  color: var(--text-soft);
}
.content-footer {
  border-top: 1px solid var(--line-strong);
  margin-top: 36px;
  padding-top: 24px;
  color: var(--text-soft);
  font-size: 13px;
}
.content-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.content-form legend {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}
.content-field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.content-field label {
  font-weight: 600;
}
.content-field small,
.content-hint {
  color: var(--text-soft);
  font-size: 14px;
}
.content-page input,
.content-page select,
.content-page textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  font: inherit;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
}
.content-page textarea {
  resize: vertical;
  min-height: 150px;
}
.content-page #draft-preview {
  min-height: 300px;
  white-space: pre-wrap;
}
.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.content-page .content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms ease-out;
}
.content-page .content-button-primary {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.content-page .content-button:active {
  transform: scale(0.97);
}
.content-page :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.guide-page {
  min-width: 0;
}
.guide-page .content-toc {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
}
.guide-page .content-toc a {
  min-height: 36px;
  padding: 5px 0;
}
.guide-page .guide-intro {
  padding: 0 0 20px;
}
.guide-page .content-section h3 {
  margin-top: 30px;
  scroll-margin-top: 24px;
}
.guide-page dl {
  margin: 20px 0;
}
.guide-page dt {
  margin-top: 24px;
  line-height: 1.65;
}
.guide-page dd {
  margin: 8px 0 0;
}
.guide-page dd p:last-child {
  margin-bottom: 0;
}
.guide-page .guide-refs {
  display: inline;
  margin-left: 4px;
  font-size: 12px;
  white-space: normal;
}
.guide-page .guide-ref {
  display: inline-block;
  margin-left: 3px;
  color: var(--accent-hot);
  scroll-margin-top: 90px;
}
.guide-page .guide-table {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}
.guide-page table {
  border-collapse: collapse;
  width: 100%;
  min-width: 470px;
  font-size: 14px;
  text-align: left;
}
.guide-page th,
.guide-page td {
  border-bottom: 1px solid var(--line-strong);
  padding: 12px;
  vertical-align: top;
}
.guide-page th {
  background: var(--surface-2);
}
.guide-page #sources p {
  color: var(--text-soft);
  font-size: 14px;
}
.guide-page #sources h3 {
  overflow-wrap: anywhere;
}
.guide-page #sources :target {
  color: var(--accent-hot);
}
.content-page .content-status {
  min-height: 3.6em;
  color: var(--text);
  margin: 20px 0;
}
@media (hover: hover) {
  .content-page a:hover {
    color: var(--accent-hot);
  }
  .content-page .content-button:hover {
    background: var(--surface-2);
  }
}
@media (max-width: 680px) {
  .guide-page .content-toc {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .guide-page .content-toc a {
    min-height: 44px;
    padding: 8px 0;
  }
  .content-shell {
    padding: 16px 20px 32px;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .content-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }
  .content-header {
    padding: 28px 0 20px;
  }
  .content-callout {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .content-page .content-button {
    transition: none;
  }
  .content-page .content-button:active {
    transform: none;
  }
}
.online-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 8px;
  font-size: 14px;
  line-height: 1.7;
}
.online-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent-hot);
}
