/* The help centre retains SANDR typography and colours, with natural reading
   flow instead of full-screen sections or nested text scrollers. */
html:has(.help-copy-hero) { scroll-snap-type: none; }
.page-help main > .help-copy-hero,
.page-help main > .help-copy-section {
  height: auto;
  min-height: 0;
  overflow: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  padding-block: clamp(32px, 5vw, 66px);
}
.page-help main > .help-copy-hero { padding-top: clamp(42px, 6vw, 80px); }
.help-copy-hero h1 {
  max-width: 920px;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.1;
  letter-spacing: -.048em;
}
.help-copy-hero .hero-lede { max-width: 800px; font-size: clamp(17px, 1.75vw, 20px); line-height: 1.65; }
.help-copy-hero .eyebrow a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.help-copy-section .resource-layout {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 82px);
}
.help-copy-section h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.help-copy-section .resource-body { min-width: 0; max-width: 720px; font-size: 16px; line-height: 1.75; }
.help-copy-section .resource-body p { margin-bottom: 20px; }
.help-copy-section .resource-body > :last-child { margin-bottom: 0; }
.help-copy-section .resource-body ul { padding-left: 23px; }
.help-copy-section .resource-body li + li { margin-top: 12px; }
.help-copy-section .resource-heading .eyebrow { margin-bottom: 16px; }
.help-copy-section + .help-copy-section { border-top: 1px solid var(--hairline); }
.help-copy-anchor { position: absolute; width: 0; height: 0; pointer-events: none; scroll-margin-top: calc(var(--header-h) + 24px); }
.help-copy-toc { margin-top: 36px; max-width: 960px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.help-copy-toc h2 { margin: 0 0 15px; color: var(--muted); font: 500 12px/1.5 var(--font-mono); }
.help-copy-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 38px; margin: 0; padding-left: 20px; }
.help-copy-toc li { padding-left: 3px; font-size: 14px; line-height: 1.6; }
.help-copy-toc li::marker { color: var(--page-accent); font: 500 11px var(--font-mono); }
.help-copy-toc a { text-decoration-thickness: 1px; text-decoration-color: var(--hairline); text-underline-offset: 4px; }
.help-copy-toc a:hover { color: var(--page-accent); text-decoration-color: currentColor; }
.help-copy-section .help-copy-example,
/* Constitution R17: no coloured edge rails. A rounded, lightly tinted card carries the example. */
.help-copy-section .help-copy-examples li { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--page-accent) 6%, var(--bg)); color: var(--ink); }
.help-copy-section .help-copy-examples { margin: 22px 0; padding: 0; list-style: none; }
.help-copy-directory .guide-grid { gap: 16px 40px; }
.help-copy-directory .guide-card { padding: 22px 0 28px; border-top: 1px solid var(--hairline); text-align: left; }
.help-copy-directory .guide-card h3 { margin: 12px 0 10px; font-size: clamp(23px, 2.25vw, 29px); line-height: 1.2; }
.help-copy-directory .guide-card p { margin-inline: 0; max-width: 48ch; font-size: 15px; line-height: 1.65; }
.help-copy-directory .guide-card-action { padding-top: 18px; }
.help-copy-directory .guide-card:hover h3 { color: var(--page-accent); }
.help-copy-hero .guide-search { margin-top: 32px; }
.help-copy-hero .guide-search input { min-width: 0; font-size: 16px; }
.help-copy-hero .resource-meta { margin-top: 14px; }
.help-copy-next h2 { margin: 0 0 24px; }
.help-copy-next .button-row { flex-wrap: wrap; gap: 18px 30px; }
.help-copy-next .button { white-space: normal; text-align: left; }
.help-copy-table-wrap { max-width: 100%; overflow-x: auto; margin-block: 24px; }
.help-copy-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.help-copy-table-wrap th, .help-copy-table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.help-copy-table-wrap th { color: var(--ink); font-weight: 600; }
.page-help main:has(.help-copy-hero)::after { display: none; }
.page-help main:has(.help-copy-hero) > section:last-of-type { position: static; }
.page-help main:has(.help-copy-hero) + .site-footer { height: auto; margin-top: 0; overflow: visible; scroll-snap-align: none; scroll-snap-stop: normal; }
@media (max-width: 760px) {
  .help-copy-section .resource-layout { grid-template-columns: 1fr; gap: 22px; }
  .help-copy-section .resource-heading h2 { max-width: 680px; }
  .help-copy-toc ol { grid-template-columns: 1fr; gap: 10px; }
  .help-copy-directory .guide-grid { grid-template-columns: 1fr; gap: 0; }
  .help-copy-section .resource-body { font-size: 16px; }
  .help-copy-directory .guide-card { min-height: 0; }
  .help-copy-next .button-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .help-copy-hero .guide-search { gap: 12px 8px; }
  .help-copy-hero .guide-search input { flex: 1 1 180px; width: auto; }
  .help-copy-hero .guide-search .button { flex: 0 0 auto; }
}
