/* Michael Lopez for OSPOA — site styles (blue version) */
html, body { margin: 0; }
[hidden] { display: none !important; }
/* V2 layout: plain report. One column of text, no decoration, Michael's words only.
   Dark header bar, paper body, rules between sections. */
:root {
  --ink: #0D1321;
  --navy: #1D2D44;
  --slate: #3E5C76;
  --mist: #748CAB;
  --paper: #F0EBD8;
  --mist-lt: #B8C5D6;
  --rule: rgba(29, 45, 68, 0.2);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mist); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; text-wrap: balance; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* Header */
.site-header { background: var(--ink); color: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: 18px; }
.wordmark { text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.wordmark span { display: block; font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--mist-lt); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--body); font-weight: 600; font-size: 15px; min-width: 0; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--mist); }
.site-header .nav a[aria-current="page"] { border-bottom-color: var(--paper); }
/* Phone menu: nav collapses behind a Menu button */
.menu-toggle { display: none; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--mist-lt); background: transparent; color: var(--paper); font-family: var(--body); font-weight: 600; font-size: 15px; cursor: pointer; }
.menu-toggle svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .close, .site-header.open .menu-toggle .bars { display: none; }
.site-header.open .menu-toggle .close { display: inline; }
.menu-toggle:focus-visible { outline: 3px solid var(--mist); outline-offset: 2px; }
@media (max-width: 999px) {
  .menu-toggle { display: inline-flex; }
  .site-header .nav { display: none; width: 100%; flex-direction: column; gap: 0; font-size: 17px; border-top: 1px solid rgba(116, 140, 171, 0.3); }
  .site-header.open .nav { display: flex; }
  .site-header .nav a { padding-block: 13px; border-bottom: 1px solid rgba(116, 140, 171, 0.3); }
  .site-header .nav a:last-child { border-bottom: 0; }
  .site-header .nav a[aria-current="page"] { border-bottom-color: rgba(116, 140, 171, 0.3); color: var(--mist-lt); }
}

/* Page top: title, and on Home and About a straight photo */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 48px; }
.top .wrap > div { container-type: inline-size; }
/* Photo column is 75% of its earlier width (was 1fr beside 1.3fr) */
.top.with-photo .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.63fr); align-items: start; gap: 48px; }
/* Pull the headline's cap height up to line up with the top edge of the photo */
.top.with-photo h1 { margin-top: -0.18em; }
.top.home-top h1 { font-size: clamp(28px, 7cqi, 50px); line-height: 1.1; }
.h1-sub { display: block; margin-top: 0.3em; font-size: 0.62em; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; padding: 13px 26px; border: 2px solid var(--navy); background: var(--navy); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
/* About: title and photo sit side by side from the left, not spread to the page edges */
@media (min-width: 800px) {
  .top.about-top h1 { font-size: clamp(40px, 5.4vw, 60px); }
}
.top h1 { font-weight: 800; font-size: clamp(30px, 10.5cqi, 60px); line-height: 1.04; letter-spacing: -0.015em; }
.top p { margin: 18px 0 0; font-size: 20px; color: var(--slate); max-width: 40ch; }
.top figure { margin: 0; }
.about-top figure { max-width: 640px; }
.top figcaption, .prose figcaption { margin-top: 8px; font-size: 14px; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
@media (max-width: 799px) {
  .top .wrap { padding-block: 40px 36px; }
  .top.with-photo .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Body text */
.section { border-bottom: 1px solid var(--rule); }
.section .wrap { padding-block: 48px 56px; }
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; font-weight: 600; }
.prose h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 0 0 18px; }
.prose figure { margin: 1.6em 0; }
.prose figure.inset { max-width: 420px; }
.prose .note { font-size: 15px; color: var(--slate); }
.signature { margin-top: 1.6em; line-height: 1.4; }
.signature strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--navy); }
.signature span { font-size: 15px; color: var(--slate); }

/* Five measures: plain list */
.measure-list { list-style: none; margin: 8px 0 1.4em; padding: 0; border-top: 1px solid var(--rule); }
.measure-list li { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.measure-list h3 { font-weight: 800; font-size: 22px; line-height: 1.25; }
.measure-list p { margin: 4px 0 8px; color: var(--slate); }
.measure-list a, .text-link { font-weight: 700; color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Table */
.table-scroll { overflow-x: auto; margin: 0.4em 0 1.1em; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 420px; }
caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--navy); padding-bottom: 8px; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 700; color: var(--slate); border-bottom: 1.5px solid var(--navy); }
td:last-child, th:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; }
/* Phones: fit the table to the screen instead of scrolling sideways */
@media (max-width: 599px) {
  table { min-width: 0; font-size: 15px; }
  th, td { padding-right: 10px; }
  td:last-child, th:last-child { white-space: normal; min-width: 4.5em; }
}

/* Next page link */
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 2em; padding: 18px 22px; background: var(--navy); color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.next:hover { background: var(--ink); }
.next small { display: block; font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--mist-lt); }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist-lt); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 32px 40px; }
.site-footer img { width: 210px; }
.site-footer .nav { color: var(--paper); font-size: 14px; gap: 4px 20px; }
.site-footer small { flex-basis: 100%; font-size: 13px; }

/* Blue variant: navy page, cream headings, light blue-grey text (matches V1's measures band) */
:root { --rule: rgba(116, 140, 171, 0.3); color-scheme: dark; }
body { background: var(--navy); color: var(--mist-lt); }
h1, h2, h3, caption, .signature strong, tr.total td { color: var(--paper); }
.h1-sub, .top p, .top figcaption, .prose figcaption, .prose .note, .measure-list p, .signature span, thead th { color: var(--mist-lt); }
.measure-list a, .text-link { color: var(--paper); }
thead th { border-bottom-color: var(--mist-lt); }
.btn, .btn-outline { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn:hover, .btn-outline:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.next { background: var(--ink); color: var(--paper); }
.next:hover { background: var(--slate); }
.site-footer { border-top: 1px solid var(--rule); }
