/* Athos: finance workflow and audit practice. Shared type, colours and actions remain in the design system. */
body { text-rendering: optimizeLegibility; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--signal); z-index: 100; }
.cover .inner { max-width: var(--content-wide); margin: auto; padding: var(--s-96) var(--gutter) var(--s-80); }
.cover h1 { --cover-title-size: clamp(44px, 6vw, 82px); max-width: 20ch; }
.cover .lede { max-width: 780px; margin-top: var(--s-32); }
.context { background: var(--sage); }
.audit { background: var(--surface); scroll-margin-top: var(--s-32); }
.design { background: var(--bg); }
.delivery { background: var(--frost); }
.outcomes { background: var(--surface); }
.eyebrow { margin-bottom: var(--s-16); }
.h-section { text-wrap: balance; margin-bottom: var(--s-32); }
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-64); }
.prose-grid p { font-size: var(--body-large-size); line-height: 1.65; }
.viewer-gain { display: flex; align-items: center; gap: var(--s-12); font-size: var(--body-size); line-height: 1.4; }
.gain-number { font: 900 32px/1 var(--f-display); letter-spacing: -.04em; color: var(--depth); }
.workspace-viewer { margin-top: var(--s-48); }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-24); margin-bottom: var(--s-20); }
.view-switch { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.view-switch button { background: var(--surface); border: 0; border-radius: var(--r-sm); padding: 10px 18px; min-height: 44px; color: var(--text-primary); font-size: 17px; line-height: 1.4; }
.view-switch button[aria-pressed="true"] { background: var(--depth); color: var(--on-dark); }
.view-switch button:hover { box-shadow: inset 0 0 0 2px var(--depth); }
.workspace-viewer img { border-radius: var(--r-sm); box-shadow: var(--shadow-media); }
.image-link { display: block; border-radius: var(--r-sm); cursor: zoom-in; }
.image-link:hover img { box-shadow: var(--shadow-media), 0 0 0 2px var(--primary); }
.workspace-viewer .figure-caption { margin-top: var(--s-24); max-width: none; }
.workspace-viewer .figure-caption a { color: var(--primary); text-decoration: underline; text-underline-offset: .16em; }
.delivery-sequence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-32); list-style: none; margin-top: var(--s-48); padding: 0; }
.delivery-sequence h3 { font: 700 23px/1.25 var(--f-display); letter-spacing: -.015em; margin-bottom: var(--s-12); }
.delivery-sequence p { font-size: var(--body-size); line-height: 1.6; }
.step-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: var(--s-16); }
@media (max-width: 1024px) {
  .prose-grid { gap: var(--s-32); }
  .delivery-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-32); }
}
@media (max-width: 640px) {
  .cover .inner { padding-bottom: var(--s-64); }
  .cover h1 { --cover-title-size: 38px; max-width: none; }
  .cover h1 br, .h-section br { display: none; }
  .cover .lede { margin-top: var(--s-24); }
  .prose-grid { grid-template-columns: 1fr; gap: var(--s-20); }
  .workspace-viewer { margin-top: var(--s-32); }
  .viewer-toolbar { flex-direction: column; align-items: start; gap: var(--s-16); margin-bottom: var(--s-16); }
  .viewer-gain { order: -1; }
  .gain-number { font-size: 28px; }
  .view-switch { gap: var(--s-8); }
  .view-switch button { padding-inline: 12px; font-size: 16px; }
  .delivery-sequence { gap: var(--s-24); margin-top: var(--s-32); }
  .delivery-sequence h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .page-end__arrow { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.nowrap { white-space: nowrap; }

/* Findings are a comparison, not a set of decorative cards. */
.audit-findings { margin-top: var(--s-48); }
.finding-head, .finding { display: grid; grid-template-columns: .8fr 1.35fr 1.35fr; column-gap: var(--s-32); }
.finding-head { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: var(--s-24); }
.finding + .finding { margin-top: var(--s-32); }
.finding h3 { font: 700 22px/1.3 var(--f-display); letter-spacing: -.015em; }
.finding p { font-size: var(--body-size); line-height: 1.6; }
.finding-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.audit-provenance { margin-top: var(--s-32); max-width: none; }
.practice { background: var(--sage); }
.practice a { color: var(--primary); text-decoration: underline; text-underline-offset: .15em; }
.review-close { margin-top: var(--s-48); }
@media (max-width: 640px) {
  .finding-head { display: none; }
  .finding { grid-template-columns: 1fr; gap: var(--s-16); }
  .finding + .finding { margin-top: var(--s-48); }
  .finding-label { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--s-8); }
}

/* The connecting branches show complementary review lenses, not audit stages. */
.checklist-map { margin: var(--s-48) 0 0; --connector: var(--primary); }
.checklist-root { position: relative; width: fit-content; margin: 0 auto; padding: var(--s-20) var(--s-48); text-align: center; background: var(--depth); color: var(--on-dark); border-radius: var(--r-sm); }
.checklist-root h3 { font: 700 28px/1.2 var(--f-display); letter-spacing: -.025em; }
.checklist-root p { margin-top: var(--s-8); font-size: 16px; line-height: 1.5; }
.checklist-root::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--s-32); border-left: 2px solid var(--connector); }
.checklist-branches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s-32); padding-top: var(--s-64); }
.checklist-lens { position: relative; padding: var(--s-24) var(--s-32) 0; }
.checklist-lens::before { content: ""; position: absolute; top: calc(-1 * var(--s-32)); height: var(--s-32); width: calc(50% + var(--s-16)); border-top: 2px solid var(--connector); }
.checklist-lens:first-child::before { left: 50%; border-left: 2px solid var(--connector); border-top-left-radius: var(--r-sm); }
.checklist-lens:last-child::before { right: 50%; border-right: 2px solid var(--connector); border-top-right-radius: var(--r-sm); }
.checklist-lens-heading { text-align: center; margin-bottom: var(--s-32); }
.checklist-lens-heading h4 { font: 700 23px/1.3 var(--f-display); letter-spacing: -.02em; }
.checklist-lens-heading p { margin-top: var(--s-8); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.checklist-outcomes { display: grid; gap: var(--s-24); margin: 0; }
.checklist-outcomes > div { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: baseline; }
.checklist-outcomes dt { font: 700 24px/1.3 var(--f-display); letter-spacing: -.025em; color: var(--depth); }
.checklist-outcomes dd { margin: 0; font-size: 16px; line-height: 1.5; }
.checklist-method { font-size: 15px; line-height: 1.5; margin-top: var(--s-32); color: var(--text-secondary); }
.checklist-areas { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s-24) var(--s-32); margin: 0; padding: 0; list-style: none; }
.checklist-areas li { font: 600 23px/1.35 var(--f-display); letter-spacing: -.015em; color: var(--depth); min-height: 48px; }
.checklist-map .figure-caption { max-width: none; margin-top: var(--s-24); }
@media (max-width: 1100px) {
  .checklist-lens { padding: var(--s-24); }
  .checklist-lens-heading { display: block; }
  .checklist-lens-heading p { margin-top: var(--s-8); }
  .checklist-outcomes > div { grid-template-columns: 1fr; gap: var(--s-8); }
  .checklist-outcomes dd br { display: none; }
}
@media (max-width: 640px) {
  .checklist-root { margin-left: var(--s-24); width: calc(100% - var(--s-24)); padding: var(--s-20) var(--s-16); text-align: left; }
  .checklist-root h3 { font-size: 26px; }
  .checklist-root::after { left: calc(-1 * var(--s-24)); top: 50%; width: var(--s-24); height: calc(50% + var(--s-32)); border-top: 2px solid var(--connector); border-top-left-radius: var(--r-sm); }
  .checklist-branches { grid-template-columns: 1fr; padding-top: var(--s-32); gap: var(--s-24); }
  .checklist-lens { margin-left: var(--s-24); padding: var(--s-24) var(--s-20); }
  .checklist-lens:first-child::before, .checklist-lens:last-child::before { left: calc(-1 * var(--s-24)); right: auto; top: calc(-1 * var(--s-24)); height: calc(100% + var(--s-24)); width: var(--s-24); border: 0; border-left: 2px solid var(--connector); border-radius: 0; }
  .checklist-lens:last-child::before { height: 70px; border-bottom: 2px solid var(--connector); border-bottom-left-radius: var(--r-sm); }
  .checklist-lens:first-child::after { content: ""; position: absolute; left: calc(-1 * var(--s-24)); top: 46px; width: var(--s-24); border-top: 2px solid var(--connector); }
  .checklist-lens-heading { text-align: left; margin-bottom: var(--s-24); }
  .checklist-outcomes { gap: var(--s-20); }
  .checklist-outcomes dt { font-size: 23px; }
  .checklist-areas { gap: var(--s-20); }
  .checklist-areas li { font-size: 18px; min-height: auto; }
  .checklist-method { margin-top: var(--s-24); }
}
