* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 18px; line-height: 1.8; }
a { color: #d6e8c4; text-underline-offset: 4px; }
a:hover { color: var(--court-accent); }
.guide-header, footer { max-width: 1360px; margin: auto; padding: 28px 42px 24px; display: flex; align-items: center; gap: 32px; }
.guide-header { border-bottom: 1px solid var(--court-line); }
.guide-header nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.guide-header nav>a:not(.cta) { color: var(--court-body); font-size: 16px; text-decoration: none; }
.guide-header nav>a:hover { color: #fff; }
.guide-header .cta { margin-left: auto; }
.cta { display: inline-block; border: 1px solid #62783e; border-radius: 8px; padding: 11px 20px; background: var(--court-accent); color: #15231c; font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.cta:hover { color: #15231c; background: #d6ff88; }
main { max-width: 900px; margin: 0 auto; padding: 48px 32px 72px; }
.breadcrumbs, .byline, .formrefine-note { font-size: 16px; color: var(--court-muted); }
.breadcrumbs { margin-bottom: 28px; }
h1 { font-size: clamp(34px, 3.8vw, 52px); font-weight: 750; line-height: 1.12; letter-spacing: -1.5px; margin: 0 0 24px; }
h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 18px; }
p { margin: 0 0 22px; color: var(--court-body); }
.lede { font-size: 21px; line-height: 1.7; color: var(--court-text); }
.toc { background: var(--court-panel); border: 1px solid var(--court-line); padding: 24px 28px; border-radius: 12px; margin: 32px 0 44px; }
.toc strong { color: var(--court-text); }
.toc ul { margin: 12px 0 0; padding-left: 20px; }
.toc li { margin: 8px 0; }
.toc a { font-size: 17px; }
section, aside { margin-top: 44px; scroll-margin-top: 24px; }
details { border-bottom: 1px solid var(--court-line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 16px 0 0; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.guide-cards article { min-width: 0; padding: 26px; background: var(--court-panel); border: 1px solid var(--court-line); border-radius: 12px; }
.guide-cards article:hover { border-color: #64794a; }
.guide-cards h2 { font-size: 23px; }
.guide-cards h2 a { text-decoration: none; }
.guide-cards p { font-size: 17px; line-height: 1.75; margin: 0; }
.sources { font-size: 17px; overflow-wrap: anywhere; }
.sources h2 { font-size: 24px; }
.guide-cta { border: 1px solid #40513b; border-radius: 14px; padding: 30px; background: #122024; }
.guide-cta p { font-size: 18px; }
footer { border-top: 1px solid var(--court-line); font-size: 16px; flex-wrap: wrap; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--court-panel); padding: 12px; z-index: 2; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--court-accent); outline-offset: 5px; }
.rhythm-example { display: grid; grid-template-columns: minmax(0, 290px) 1fr; gap: 36px; align-items: center; margin: 0 0 32px; }
.rhythm-poster { display: block; }
.rhythm-example img { display: block; width: 100%; height: auto; border-radius: 6px; }
.rhythm-example h2 { margin-bottom: 8px; }
.rhythm-example p { max-width: 34ch; margin-bottom: 16px; line-height: 1.5; }
@media (max-width: 650px) {
  .guide-header { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .guide-header nav { flex-basis: 100%; gap: 14px; flex-wrap: wrap; }
  .guide-header nav>a:not(.cta) { font-size: 15px; }
  .guide-header .cta { font-size: 15px; padding: 9px 12px; }
  main { padding: 30px 20px 52px; }
  .guide-cards { grid-template-columns: 1fr; }
  .lede { font-size: 19px; }
  .guide-cards article, .toc, .guide-cta { padding: 22px; }
  h2 { font-size: 25px; }
  footer { padding: 24px 20px; gap: 18px; }
}
@media (max-width: 650px) {
  .rhythm-example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 4vw, 22px); }
  .rhythm-example .cta { padding: 9px 12px; }
  .rhythm-example h2 { font-size: 20px; }
  .rhythm-example p { max-width: none; font-size: 16px; margin-bottom: 10px; }
  main:has(.rhythm-example) { padding-top: 12px; }
  main:has(.rhythm-example) .breadcrumbs { margin-bottom: 8px; }
  main:has(.rhythm-example) h1 { margin-bottom: 14px; }
}
