.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.hero { padding-block: clamp(32px, 4vw, 52px); }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); }
.asa-calculator-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(36px, 6vw, 80px); padding-block: 44px 56px; align-items: start; }
.asa-controls { min-width: 0; }
.asa-classes { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.asa-option { border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.asa-option:has(input:checked) { border-color: var(--teal); background: #edf6f3; box-shadow: inset 4px 0 0 var(--teal); }
.asa-option:hover { border-color: #809b99; }
.asa-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 17px 18px; cursor: pointer; font-size: .93rem; font-weight: 650; line-height: 1.5; }
.asa-choice input { appearance: auto; accent-color: var(--teal); width: 20px; height: 20px; margin: 1px 0 0; cursor: pointer; }
.asa-choice:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.asa-examples { margin: -5px 18px 0 54px; }
.asa-examples summary { padding-block: 0 12px; color: #365d67; font-size: .78rem; font-weight: 650; cursor: pointer; min-height: 32px; }
.asa-examples p { margin: 0 0 16px; color: #4b596b; font-size: .85rem; line-height: 1.65; }
.asa-emergency { border: 1px solid #cfb887; background: #faf5e9; margin: 30px 0 0; padding: 6px 0 0; min-width: 0; border-radius: 3px; }
.asa-emergency legend { margin-left: 16px; padding: 0 7px; color: #765619; font-size: .8rem; font-weight: 750; }
.asa-emergency .asa-choice { padding-bottom: 8px; }
.asa-emergency p { margin: 0; padding: 0 18px 20px 54px; color: #655b48; font-size: .82rem; line-height: 1.6; }
.asa-result-panel { align-self: stretch; border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 40px); min-width: 0; }
.asa-result-inner { position: sticky; top: 28px; }
#result-card { --asa-color: var(--navy); padding-top: 20px; border-top: 4px solid var(--asa-color); }
#result-card.border-green-500 { --asa-color: #26704e; }
#result-card.border-emerald-500 { --asa-color: #176c54; }
#result-card.border-yellow-500 { --asa-color: #8a6216; }
#result-card.border-orange-500 { --asa-color: #a54e22; }
#result-card.border-red-600 { --asa-color: #a73535; }
#result-card.border-slate-600 { --asa-color: #405268; }
#asa-result { margin: 20px 0 14px; color: var(--asa-color); font-family: var(--serif); font-size: clamp(3.2rem, 5.5vw, 4.8rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
#asa-desc { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.24rem; line-height: 1.5; }
.asa-result-note { margin: 28px 0 18px; color: var(--muted); font-size: .84rem; }
.asa-help-link { color: var(--navy); font-size: .8rem; font-weight: 700; text-underline-offset: 4px; }
.article-layout { padding-block: 76px 24px; }
@media (max-width: 820px) {
  .asa-calculator-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; }
  .asa-result-panel { grid-row: 1; position: sticky; top: 0; z-index: 5; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
  .asa-result-inner { position: static; }
  #result-card { padding-top: 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
  #result-card .result-kicker { grid-column: 1 / -1; margin-bottom: 4px; font-size: .65rem; }
  #asa-result { margin: 0; font-size: 2.4rem; white-space: nowrap; }
  #asa-desc { font-family: var(--sans); font-size: .85rem; line-height: 1.45; }
  .asa-result-note, .asa-help-link { display: none; }
  .asa-choice, .asa-examples summary { scroll-margin-top: 190px; }
  .asa-controls .section-heading { margin-bottom: 24px; }
}
@media (max-width: 520px) {
  .hero { padding-block: 30px; }
  .hero .standfirst { margin-top: 20px; }
  .hero-facts { display: flex; gap: 8px 18px; font-size: .78rem; }
  .asa-choice { padding: 15px 14px; gap: 12px; font-size: .9rem; }
  .asa-examples { margin-left: 48px; margin-right: 14px; }
  .asa-examples summary { min-height: 44px; padding-top: 4px; }
  .asa-emergency p { padding-left: 48px; padding-right: 14px; }
  #result-card { column-gap: 14px; }
  #asa-result { font-size: 2rem; }
  #asa-desc { font-size: .8rem; }
  .masthead-note { max-width: 130px; text-align: right; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
