/* Audiology Marketing Company (revision 5).
   A quiet clinical report: white paper, one typeface built for low vision at 20px, two accent colours that mean
   something (red O for map results, blue X for website results), text in a 7-column measure with figures in the
   5 beside it. No bands, no cards, no gadgets. The audiogram appears only where it is the real deliverable. */
:root {
  --navy: #14233a;
  --navy-2: #1b2f4d;
  --paper: #ffffff;
  --chart: #f2f6fb;
  --grid: #d9e3ef;
  --grid-strong: #b9c9dc;
  --slate: #4a5c73;
  --red: #c8302b;
  --blue: #1f56c3;
  --blue-deep: #17449d;
  --grey: #8a9bb0;
  --on-dark: #eef2f8;
  --on-dark-2: #b7c4d6;
  --line: #d3dce8;
  --photo-fallback: #9aa8b8;

  --font: "Atkinson Hyperlegible Next Variable", "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --fs-body: 1.1875rem;
  --fs-lede: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --fs-small: 1.0625rem;
  --fs-xs: .9375rem;
  --fs-h3: clamp(1.3125rem, 1.2rem + .5vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-display: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);

  --max: 1240px;
  --measure: 36rem;
  --section: clamp(56px, 7vw, 112px);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --chart-paper: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 26px,
                 linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 52px 100%,
                 var(--chart);
}
@media (min-width: 720px) { :root { --fs-body: 1.25rem; } }

@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; color-scheme: light; }
body {
  margin: 0; background: var(--paper); color: var(--navy); font-family: var(--font); font-size: var(--fs-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.024em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 700; }
a { color: var(--blue); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.close :focus-visible { outline-color: #fff; }
button { font: inherit; }
figure { margin: 0; }
blockquote { margin: 0; }
dl, dt, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--max) + 2 * 48px); 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(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1100px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--slate); max-width: 40rem; }
.small { font-size: var(--fs-small); }
.muted { color: var(--slate); }
.src { font-size: var(--fs-xs); color: var(--slate); line-height: 1.5; margin-top: 1.4em; }
.h-small { font-size: var(--fs-h3); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.5em; margin-bottom: .55em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: .4em; }
.prose p + p { margin-top: .9em; }
.prose ul:not([class]), .prose ol:not([class]) { margin: .9em 0 0 1.2em; display: grid; gap: .5em; }
.prose ul:not([class]) { list-style: none; margin-left: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 1.4em; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: .1em; top: .7em; width: .55em; height: .55em; border: 2px solid var(--red); border-radius: 50%; }
.prose ol:not([class]) > li { padding-left: .3em; }
.prose ol:not([class]) > li::marker { font-weight: 700; color: var(--blue); }
.prose li > p + p { margin-top: .4em; }
.prose a:not(.btn):not(.link-draw), .footer a, .toc a, .glist a, .linklist a { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.prose a:not(.btn):not(.link-draw):hover, .footer a:hover, .toc a:hover, .linklist a:hover { background-size: 100% 1.5px; }

/* ---------- buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease); }
.btn:hover { color: #fff; border-color: var(--blue); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.link-draw { color: inherit; font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease); }
.link-draw:hover { color: inherit; background-size: 0% 2px; background-position: 100% 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: .075em; text-underline-offset: .2em; }
.link-btn:hover { color: var(--blue-deep); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; color: var(--navy); --mark-o: var(--red); --mark-x: var(--blue); transition: border-color .3s, box-shadow .3s; }
.site-header.is-solid { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(10px); } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; line-height: 1.1; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark .o { stroke: var(--mark-o); }
.brand__mark .x { stroke: var(--mark-x); }
.brand__mark .g { stroke: currentColor; opacity: .28; }
.brand__name { font-size: 1.0625rem; letter-spacing: -.01em; }
.brand__name span { display: block; font-weight: 400; font-size: .8125rem; letter-spacing: .01em; opacity: .82; }
.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav__link { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.0625rem; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; transition: background-size .35s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: inherit; background-size: 100% 2px; }
.nav__cta { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__bars { width: 18px; height: 12px; position: relative; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu__bars::before { top: 1px; }
.menu__bars::after { bottom: 1px; }
.menu[open] .menu__bars::before { transform: translateY(4px) rotate(45deg); }
.menu[open] .menu__bars::after { transform: translateY(-4px) rotate(-45deg); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 340px); background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px -20px rgba(20, 35, 58, .45); padding: 10px; }
.menu__panel ul { list-style: none; display: grid; }
.menu__panel a { display: block; padding: 13px 14px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.125rem; border-radius: 6px; }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: var(--chart); }
.menu__panel .btn { width: 100%; margin-top: 8px; }
@media (min-width: 1100px) { .nav { display: block; } .menu { display: none; } }

/* ---------- photos: one cool daylight grade ---------- */
.ph { position: relative; overflow: hidden; background-color: var(--photo-fallback); isolation: isolate; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.84) contrast(1.05) brightness(1.03); }
.ph::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(165deg, rgba(31, 86, 195, .14), rgba(20, 35, 58, .1) 60%, rgba(20, 35, 58, .16)); mix-blend-mode: multiply; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--grain); background-size: 180px 180px; opacity: .12; mix-blend-mode: overlay; }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--bleed { width: 100%; height: min(56.25vw, 78vh); }
.ph--bleed img { object-position: 55% 40%; }
.ph--wide { width: 100%; height: min(42.8vw, 60vh); }
.bleed { margin-block: clamp(8px, 2vw, 24px) 0; }
.bleed__cap { font-size: var(--fs-xs); color: var(--slate); padding-top: 10px; }

/* ---------- home opening ---------- */
.open { padding-block: clamp(32px, 6vw, 88px) clamp(32px, 5vw, 64px); }
.open__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.open__text { display: grid; gap: 24px; align-content: start; }
.open__text h1 { font-size: var(--fs-display); max-width: 15ch; }
.open__note { font-size: var(--fs-small); color: var(--slate); }
.open__fig { align-self: end; }
@media (min-width: 1000px) {
  .open__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

/* ---------- sections: text with a figure beside it ---------- */
.sec { border-top: 1px solid var(--line); }
.sec > .wrap { padding-block: var(--section); }
.sec__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.sec__text { display: grid; gap: 20px; align-content: start; }
.sec__text.prose h2 { margin-top: 0; }
.sec__aside { display: grid; gap: 28px; align-content: start; }
.sec--who > .wrap, .sec--after > .wrap, .sec--credits > .wrap { padding-block: clamp(40px, 5vw, 72px); }
.aside-note { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--navy); font-size: var(--fs-small); max-width: 26rem; }
.aside-note h3 { font-size: 1.125rem; }
@media (min-width: 1000px) {
  .sec__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sec__grid--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sec__aside { position: sticky; top: 100px; }
}

/* ---------- figures and charts ---------- */
.fig { display: grid; gap: 12px; }
.fig__cap { font-size: var(--fs-small); color: var(--navy); line-height: 1.5; }
.fig__src { font-size: var(--fs-xs); color: var(--slate); line-height: 1.5; }
.fig--inline, .fig--wide { margin: 1.8em 0 2.2em; }
.fig--paper { background: var(--chart-paper); padding: clamp(14px, 2vw, 24px); border-radius: 8px; border: 1px solid var(--grid); }
.fig--report { margin: 1.5em 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.chart--serp { max-width: 100%; }
.chart--bars { max-width: 660px; }
.chart--bars.chart--phone { max-width: 340px; width: 100%; }
.chart--delay, .chart--season { max-width: 580px; }
.chart--deg { max-width: 440px; }
.chart-key { list-style: none; display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--slate); }
.chart-key li { display: flex; align-items: center; gap: 10px; }
.key { width: 14px; height: 14px; border-radius: 2px; flex: none; border: 1.5px solid var(--grey); background: #fff; }
.key--clinic { background: var(--blue); border-color: var(--blue); }
.key--chain { background: var(--red); border-color: var(--red); }
.key--bigbox { background: var(--grey); border-color: var(--grey); }
.key--directory { background: #fff; border-color: var(--grey); }
.key--civic { background: var(--navy); border-color: var(--navy); }

.ag { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.ag-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); }
.ag-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sym { display: inline-block; width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.sym-o { border: 2.6px solid var(--red); border-radius: 50%; background: #fff; }
.sym-x { background: linear-gradient(45deg, transparent 41%, var(--blue) 41%, var(--blue) 59%, transparent 59%), linear-gradient(-45deg, transparent 41%, var(--blue) 41%, var(--blue) 59%, transparent 59%); }
.sym-dash { width: 26px; height: 0; border-top: 2px dashed var(--navy); vertical-align: 4px; }
.ag-key { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 4px 18px; margin-top: 10px; font-size: var(--fs-xs); color: var(--slate); }
.ag-key li { display: flex; gap: 8px; align-items: baseline; }
.ag-key b { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; transform: translateY(3px); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.tbl { font-size: var(--fs-small); min-width: 560px; }
.tbl caption { text-align: left; font-size: var(--fs-xs); color: var(--slate); padding-bottom: 8px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: var(--fs-xs); color: var(--slate); font-weight: 700; border-bottom: 2px solid var(--navy); }
.tbl tbody th { font-weight: 700; white-space: nowrap; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl__total th, .tbl__total td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; }
.tbl--report { min-width: 680px; }
.tbl--report td:last-child { min-width: 18rem; }

/* ---------- document pages ---------- */
.doc__head { padding-block: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 48px); }
.doc__head-inner { display: grid; gap: 18px; max-width: 48rem; }
@media (min-width: 1120px) { .doc__head--toc .doc__head-inner, .doc__grid--single, .report { margin-left: calc(15rem + clamp(48px, 6vw, 96px)); } }
.doc__head h1 { max-width: 20ch; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-xs); color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { color: var(--slate); }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-small); color: var(--slate); }
.doc { border-top: 1px solid var(--line); }
.doc > .wrap { padding-block: clamp(36px, 5vw, 72px) var(--section); }
.doc__grid { display: grid; gap: 40px; min-width: 0; }
.doc__grid > * { min-width: 0; }
.doc__body { max-width: var(--measure); }
.doc__body h2 { scroll-margin-top: 100px; }
.toc { font-size: var(--fs-xs); color: var(--slate); }
.toc__title { font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.toc ol { list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover { color: var(--navy); }
@media (max-width: 1119px) { .toc { padding-bottom: 20px; border-bottom: 1px solid var(--line); min-width: 0; } .toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } .toc li { min-width: 0; overflow-wrap: anywhere; } }
@media (min-width: 1120px) {
  .doc__grid { grid-template-columns: minmax(0, 15rem) minmax(0, var(--measure)); gap: clamp(48px, 6vw, 96px); }
  .toc { position: sticky; top: 100px; align-self: start; }
  .doc__grid--single { grid-template-columns: minmax(0, var(--measure)); }
}
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--navy); font-size: var(--fs-small); color: var(--slate); }
.sources h2 { font-size: var(--fs-h3); margin: 0 0 .6em; color: var(--navy); }
.sources ol { margin-left: 1.2em; display: grid; gap: .5em; }
.sources li { overflow-wrap: anywhere; }
.linklist { list-style: none; display: grid; gap: .7em; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1.2em 0 .4em; }
.email-line__addr { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- questions ---------- */
.qa h3 { margin-top: 1.6em; margin-bottom: .35em; font-size: 1.25rem; }
.qa h2 + h3 { margin-top: .8em; }

/* ---------- opinions ---------- */
.opinions { list-style: none; counter-reset: op; display: grid; gap: 1.1em; margin-top: .8em; }
.opinions li { counter-increment: op; position: relative; padding-left: 2.6em; }
.opinions li::before { content: counter(op); position: absolute; left: 0; top: .1em; width: 1.9em; height: 1.9em; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 50%; font-weight: 700; font-size: .85em; }
.opinions b { display: block; margin-bottom: .2em; }

/* ---------- guides list ---------- */
.glist { list-style: none; display: grid; max-width: 52rem; border-top: 2px solid var(--navy); }
.glist__item { border-bottom: 1px solid var(--line); }
.glist__link { display: grid; gap: 8px; padding: 26px 0; color: inherit; text-decoration: none; background: none; }
.glist__link:hover .glist__title { color: var(--blue); }
.glist__meta { font-size: var(--fs-xs); color: var(--slate); }
.glist__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; transition: color .2s; }
.glist__desc { font-size: var(--fs-small); color: var(--slate); max-width: 44rem; }

/* ---------- the report ---------- */
.report-wrap > .wrap { padding-block: clamp(16px, 3vw, 40px) var(--section); }
.report { max-width: 56rem; border: 1px solid var(--grid-strong); border-radius: 6px; padding: clamp(20px, 4vw, 56px); background: #fff; font-size: var(--fs-small); line-height: 1.55; }
.report__head { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 2px solid var(--navy); }
.report__example { display: inline-block; justify-self: start; padding: 4px 12px; border: 2px solid var(--red); border-radius: 999px; color: var(--red); font-weight: 700; font-size: var(--fs-xs); }
.report__head h2 { font-size: var(--fs-h2); }
.report__meta { display: grid; gap: 10px 24px; }
.report__meta div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 8px; }
.report__meta dt { font-weight: 700; color: var(--slate); }
@media (max-width: 520px) { .report__meta div { grid-template-columns: 1fr; gap: 2px; } }
.rsec { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.rsec h3 { font-size: var(--fs-h3); }
.rsec p + p { margin-top: .6em; }
.report__fixes { list-style: none; counter-reset: fx; display: grid; gap: 14px; }
.report__fixes li { counter-increment: fx; position: relative; padding-left: 2.4em; }
.report__fixes li::before { content: counter(fx); position: absolute; left: 0; top: .05em; width: 1.8em; height: 1.8em; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 50%; font-weight: 700; font-size: .9em; }
.report__fixes b { display: block; margin-bottom: .15em; }
.report__findings, .report__plan { display: grid; gap: 12px; }
.report__findings div, .report__plan div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px dashed var(--grid-strong); }
.report__findings dt, .report__plan dt { font-weight: 700; }
@media (min-width: 760px) {
  .report__findings div, .report__plan div { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; }
}
.report__note { font-size: var(--fs-xs); color: var(--slate); }
.report__foot { margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--red); font-size: var(--fs-xs); color: var(--slate); }
.report .tbl { font-size: var(--fs-xs); }

/* ---------- closing section (home) ---------- */
.close { background: var(--navy); color: var(--on-dark); }
.close__inner { padding-block: clamp(56px, 8vw, 112px); display: grid; gap: 20px; max-width: 44rem; }
.close h2 { color: #fff; }
.close a { color: #fff; }
.close__email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: var(--fs-lede); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { background: var(--chart); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.footer .wrap { padding-block: 56px 36px; }
.footer__grid { display: grid; gap: 36px; }
.footer__brand { display: grid; gap: 14px; max-width: 26rem; color: var(--slate); }
.footer__brand .brand { color: var(--navy); --mark-o: var(--red); --mark-x: var(--blue); }
.footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--navy); text-decoration: none; }
.footer__legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--slate); font-size: var(--fs-xs); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- photo credits ---------- */
.photo-credits { list-style: none; display: grid; gap: 6px; font-size: var(--fs-small); color: var(--slate); margin-top: 12px; }
.photo-credits-note { font-size: var(--fs-small); color: var(--slate); }
.sec--credits .small { max-width: 44rem; margin-top: 10px; }

/* ---------- motion helpers (states only apply while scripts run) ---------- */
.js:not(.reveal-all) [data-hero-in] { opacity: 0; }
.js:not(.reveal-all) [data-hero-line] { visibility: hidden; }
.js:not(.reveal-all) [data-serp-draw] .sq { opacity: 0; }
.js:not(.reveal-all) [data-ag-plot] .ag-o, .js:not(.reveal-all) [data-ag-plot] .ag-x,
.js:not(.reveal-all) [data-ag-plot] .ag-line, .js:not(.reveal-all) [data-ag-plot] .ag-threshold { opacity: 0; }
.line-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print: the report prints as a document ---------- */
@media print {
  .site-header, .footer, .menu, .sec--after, .doc__head .link-btn, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .report { border: 0; padding: 0; max-width: none; font-size: 10.5pt; }
  .report-wrap > .wrap { padding: 0; }
  .doc__head { padding: 0 0 12pt; }
  .rsec { break-inside: avoid; }
  .tbl-wrap { overflow: visible; }
  .tbl, .tbl--report { min-width: 0; }
  a { color: #000; text-decoration: none; }
  .ph { display: none; }
}

/* Report table reflows on phones so no column hides behind a scroll */
@media (max-width: 699px) {
  .tbl--report { min-width: 0; width: 100%; }
  .tbl--report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--report tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl--report th, .tbl--report td { display: block; padding: 2px 0; border: 0; min-width: 0; white-space: normal; }
  .tbl--report tbody th { padding-bottom: 4px; }
  .tbl--report td[data-label]::before { content: attr(data-label) ": "; color: var(--slate); font-weight: 700; }
  .tbl--report td:last-child { min-width: 0; }
}

/* The address stays on one line on phones instead of breaking mid-word */
@media (max-width: 480px) { .close__email { font-size: 15px; } .close__email a { white-space: nowrap; overflow-wrap: normal; } }

/* Chart variants: one drawing for desks, one for phones, never both */
.ag--phone, .chart--phone { display: none; }
@media (max-width: 600px) {
  .ag--desk, .chart--desk { display: none; }
  .ag--phone, .chart--phone { display: block; }
  .fig--paper { padding: 10px 8px; }
  .report { padding-inline: 12px; }
}

/* Wide tables on phones: a cue that there is more to the right, and a shadow that fades as you scroll */
@media (max-width: 699px) {
  .tbl-wrap--scroll::before { content: "Swipe sideways for the rest of the columns."; display: block; font-size: var(--fs-xs); color: var(--slate); margin-bottom: 8px; }
  .tbl-wrap--scroll {
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left/48px 100% no-repeat local,
      linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right/48px 100% no-repeat local,
      linear-gradient(to right, rgba(20,35,58,.14), rgba(20,35,58,0)) left/18px 100% no-repeat scroll,
      linear-gradient(to left, rgba(20,35,58,.14), rgba(20,35,58,0)) right/18px 100% no-repeat scroll;
  }
}

/* Case study screenshots: shown as they are, on a hairline, never stretched past their own width */
.case-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.case-fig--small { max-width: 500px; }
.case-fig--wide { margin: 1.8em 0 2.2em; width: min(1000px, calc(100vw - 32px)); max-width: none; }
.case-fig--small { margin: 1.8em 0 1.4em; }
.case__cta { margin-top: 2em; }

/* Home: the terms, the monthly work and the approval lines sit side by side on wide screens */
.cols3 { display: grid; gap: clamp(36px, 5vw, 56px); }
.cols3__col h2 { font-size: var(--fs-h3); line-height: 1.2; }
.cols3__col ul:not([class]) { font-size: var(--fs-small); }
@media (min-width: 900px) { .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols3__col > p { font-size: var(--fs-small); margin-top: 1em; }
.case-fig--wide .fig__cap { max-width: var(--measure); }
/* On phones the 16-month screenshot is too small to read at screen width, so it keeps a readable size and scrolls sideways */
@media (max-width: 600px) {
  .case-fig--wide { width: 100%; }
  .case-fig--wide picture { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; }
  .case-fig--wide picture::before { content: "Swipe sideways to see the whole chart."; display: block; position: sticky; left: 0; padding: 8px 10px; font-size: var(--fs-xs); color: var(--slate); background: #fff; }
  .case-fig--wide img { width: 760px; max-width: none; border: 0; border-radius: 0; }
}
.open__check { font-weight: 700; font-size: var(--fs-body); }
.open .open__fig.fig--paper { align-self: center; max-width: 520px; }

/* ranking check lead form */
.lf { margin: 1.25rem 0 2rem; }
.lf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf__grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
@media (min-width: 640px) { .lf__grid { grid-template-columns: 1fr 1fr; } .lf__wide { grid-column: 1 / -1; } }
.lf__field { display: block; margin: 0; }
.lf__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.lf__label small { font-weight: 400; opacity: .75; }
.lf input:not([type=hidden]):not([type=checkbox]), .lf textarea {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.4;
  color: #16191d; background: #fff; border: 1px solid rgba(20, 25, 30, .28); border-radius: 4px; padding: .7rem .8rem; }
.lf textarea { resize: vertical; min-height: 5.5rem; }
.lf input:focus-visible, .lf textarea:focus-visible { outline: 3px solid rgba(30, 90, 200, .35); outline-offset: 1px; border-color: rgba(20, 25, 30, .55); }
.lf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.lf__actions .btn { cursor: pointer; }
.lf__actions .btn[disabled] { opacity: .6; cursor: progress; }
.lf__note { margin: 0; font-size: .92rem; opacity: .8; max-width: 34rem; }
.lf__status { margin: 1rem 0 0; font-weight: 600; }
.lf__status:empty { display: none; }
