/* WellPriced: an audit sheet with highlighter marks. Built to read outdoors on an iPad in the sun: white page,
   near-black ink, text at 7:1 contrast or better, saturated highlights that always come with a text label. */
:root {
  --ink: #0F2A24;        /* spruce, near black: text, buttons (15.3:1 on white) */
  --paper: #FFFFFF;      /* plain white: the highest contrast in glare */
  --sheet: #FFFFFF;
  --line: #A9BAB3;       /* ledger rules, still visible in sun */
  --input: #5F736C;      /* form field borders (5:1) */
  --muted: #3A4844;      /* secondary text (9.6:1) */
  --bar: #7E9A90;        /* chart bars for the middle group (3:1) */
  --tint: #E8F0EC;       /* quiet backgrounds; never the only boundary */
  --marker: #FFD000;     /* highlighter: undercharged (ink on it 10.4:1) */
  --protect: #6FD493;    /* highlighter: worth protecting (ink on it 8.4:1) */
  --error: #8A1414;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
}
img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2.1rem; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
* + h2 { margin-top: 1.6em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: calc(68ch + 40px); margin-left: max(0px, calc((100% - 1080px) / 2)); }
.prose > * { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-rabbit { display: block; width: 34px; height: 28px; }
.wordmark {
  font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.01em;
  background: linear-gradient(to bottom, transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%);
}
/* 2026-11-20: Firefox's PDF output turned the gradient's transparent bands black, so the printed logo was dark text
   on a black box. On paper the highlight is a plain bar instead, the way the shaded table rows print. */
@media print {
  .wordmark { background: none; position: relative; z-index: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wordmark::before { content: ''; position: absolute; left: 0; right: 0; top: 62%; bottom: 8%; z-index: -1; background: var(--marker); }
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; order: 3; width: 100%; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.header-cta { margin-left: auto; }
.header-signed-out { display: flex; align-items: center; gap: 16px; }
.header-signin { display: none; font-weight: 600; text-decoration: none; }
.header-signin:hover { text-decoration: underline; }
.site-nav .nav-narrow { margin-left: auto; color: var(--ink); font-weight: 600; }
.account-menu { position: relative; }
.account-menu summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 600;
  padding: 4px 8px 4px 4px; border-radius: 999px;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: var(--tint); }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; line-height: 1;
}
.account-name { display: none; }
.caret { font-size: 0.8rem; color: var(--muted); }
.account-menu[open] .caret { transform: rotate(180deg); }
.account-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; margin: 0; padding: 6px 0;
  list-style: none; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15, 42, 36, 0.14);
}
.account-menu form { margin: 0; }
.account-menu li a, .account-menu li button {
  display: block; width: 100%; padding: 9px 16px; text-align: left; color: var(--ink); text-decoration: none;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.account-menu li a:hover, .account-menu li button:hover { background: var(--tint); text-decoration: underline; }
.account-menu li + li { border-top: 1px solid var(--line); }
.header-inner { padding-top: 10px; padding-bottom: 10px; }
.nav-wide { display: none; }
@media (min-width: 760px) {
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .site-nav { order: 0; width: auto; }
  .nav-wide { display: inline; }
  .nav-narrow { display: none; }
  .header-signin, .account-name { display: inline; }
}

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.footer-nav a { color: var(--ink); }
.fine { font-size: 0.9rem; }

/* Buttons */
.button {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: var(--radius); border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.button:hover { background: #071815; text-decoration: none; }
.button-small { padding: 9px 14px; font-size: 0.9rem; }

/* Sections */
.section { border-top: 1px solid var(--line); padding: 48px 0; }
.page-top { border-top: 0; padding-top: 40px; }
.closing { background: var(--tint); }

/* Hero and the sample audit sheet */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 36px; }
.hero-text h1 { max-width: 16ch; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 900px) {
  h1 { font-size: 2.6rem; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
}

.sheet { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; }
.sheet figcaption { font-size: 0.9rem; color: var(--muted); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; margin: 18px 0 6px; letter-spacing: 0; }
.sheet-head .count { font-size: 0.9rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li { border-top: 1px solid var(--line); padding: 9px 0; }
.sheet-list .address { display: block; font-weight: 700; }
.sheet-list .detail { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.sheet-opportunity .sheet-head { margin-top: 14px; }
.sheet-opportunity .figure { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.sheet-opportunity .detail { font-size: 0.9rem; color: var(--muted); margin: 0; }
.sheet-list .more, .sheet-group .more, .first-look .more { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.sheet-total { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

.mark {
  background: linear-gradient(100deg, transparent 0.15em, var(--mark-color, var(--marker)) 0.15em, var(--mark-color, var(--marker)) calc(100% - 0.1em), transparent calc(100% - 0.1em));
  background-size: 100% 78%; background-position: 0 70%; background-repeat: no-repeat;
  padding: 0 0.2em; margin: 0 -0.2em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mark-protect { --mark-color: var(--protect); }

/* Lists */
.ticks { padding-left: 1.2em; }
.ticks li { margin-bottom: 0.5em; }
.ticks li::marker { color: var(--bar); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05em;
  width: 1.75rem; height: 1.75rem; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; line-height: 1;
}

.screenshot { display: flex; align-items: center; gap: 18px; margin: 4px 0 24px; }
.screenshot img { flex: none; border: 1.5px solid var(--line); border-radius: var(--radius); }
.screenshot figcaption { font-size: 1rem; }
.note { background: var(--tint); border-left: 4px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px 6px; }
.note h2 { font-size: 1.2rem; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details p { margin: 0 0 16px; }

.facts dt { font-weight: 700; margin-top: 1.1em; }
.facts dd { margin: 0.2em 0 0; }

/* Guides */
.crumbs { margin: 0 0 6px; font-size: 0.95rem; }
.guide-meta { color: var(--muted); font-size: 0.95rem; }
.guide-jump { font-size: 0.95rem; }
.guides-index { max-width: calc(880px + 40px); }
.guides-index > .guide-list { max-width: none; }
.guides-index h2 { width: fit-content; font-size: 1.5rem; padding: 0 4px; margin-left: -4px;
  background: linear-gradient(to bottom, transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%); }
.guide-list { list-style: none; padding: 0; display: grid; column-gap: 32px; }
.guide-list li { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.guide-list h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 2px; }
.guide-list p { color: var(--muted); font-size: 0.95rem; font-style: italic; margin: 0 0 10px; }
@media (min-width: 760px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-cta { margin-top: 32px; }
.formula { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.figures { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.figures th, .figures td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: bottom; }
.figures thead th { font-weight: 700; }
.figures tbody th { font-weight: 400; vertical-align: top; }
.figures thead th:first-child { white-space: nowrap; }
.figures-named tbody th { min-width: 9em; }
.figures-text td { vertical-align: top; }
.after-note { margin-top: 1.25rem; }
.figures .num { text-align: right; white-space: nowrap; padding-left: 10px; padding-right: 0; }
.figures thead .num { white-space: normal; }
.sheet .table-wrap { margin: 8px 0 0; }

/* Forms */
.form { margin-top: 28px; }
.field { margin: 0 0 24px; padding: 0; border: 0; max-width: 34rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field-sub { margin-top: -12px; }
.field-sub label { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--input); border-radius: var(--radius); padding: 11px 13px;
}
.field textarea { min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--marker); outline-offset: 0; border-color: var(--ink); }
.field [id^="id_"]:has(> div > label) { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 8px; }
.field [id^="id_"] > div label {
  display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer;
  border: 1.5px solid var(--input); border-radius: var(--radius); background: var(--sheet);
  padding: 9px 12px; height: 100%;
}
.field [id^="id_"] > div label:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.field input[type="radio"] { accent-color: var(--ink); width: 1.1em; height: 1.1em; margin: 0; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-weight: 700; font-size: 0.9rem; }
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="password"], .has-error textarea { border-color: var(--error); }
.form-alert p { margin: 0; }
.help { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.help ul { margin: 0; padding-left: 1.2em; }

/* Messages after an action, and contact threads */
.flash { padding-top: 16px; }
.flash p { margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--ink); background: var(--tint); font-weight: 700; }
.flash .flash-error { border-color: var(--error); background: #FBEFEF; color: var(--error); }
.flash .flash-warning { border-color: var(--marker); }
.button-quiet { background: var(--sheet); color: var(--ink); border: 1.5px solid var(--ink); }
.button-quiet:hover { background: var(--tint); }
.thread-message { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; }
.thread-message.from-admin { border-color: var(--ink); background: var(--tint); }
.thread-message.from-system { border-style: dashed; }
.thread-message .meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 6px; }
.thread-message p:last-child { margin-bottom: 0; }
.form-alert { border-left: 4px solid var(--error); background: #FBEFEF; color: var(--error); padding: 10px 14px; font-weight: 700; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Account page (requirements, 2026-11-20; layout 3): the current audit panel, the company form and the overlays */
.audit-panel { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 8px 0 40px; }
.audit-panel h2 { margin: 0 0 2px; }
.panel-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.progress { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); counter-reset: step; }
.progress li { counter-increment: step; display: flex; gap: 10px; align-items: flex-start; padding-top: 10px;
  border-top: 4px solid var(--line); }
.progress li.progress-done, .progress li.progress-current { border-top-color: var(--ink); }
.progress-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--input); font-weight: 700; font-size: 0.85rem; line-height: 1; color: var(--muted); }
.progress-mark::before { content: counter(step); }
.progress-done .progress-mark { background: var(--ink); border-color: var(--ink); }
.progress-done .progress-mark::before { content: none; }
.progress-current .progress-mark { background: var(--marker); border-color: var(--ink); color: var(--ink); }
.progress-name { display: block; font-weight: 700; line-height: 1.3; }
.progress-note { display: block; font-size: 0.85rem; color: var(--muted); }
.progress-current .progress-note { color: var(--ink); font-weight: 700; }
.panel-status { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.panel-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 16px 0 24px; }
.link-button { font-weight: 600; }
.latest-result { border-top: 1px solid var(--line); padding-top: 18px; }
.latest-result h3 { font-size: 1.05rem; margin: 0 0 2px; }
.result-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px;
  margin: 0 0 14px; }
.result-figures > div { display: flex; flex-direction: column; }
.result-figures dt { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.result-figures dd { margin: auto 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.result-figures .unit { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.company-grid .field { max-width: none; }
.field-label { font-weight: 700; margin: 0 0 8px; }
.readonly-value { margin: 0; padding: 11px 13px; background: var(--tint); border: 1.5px solid var(--tint);
  border-radius: var(--radius); overflow-wrap: anywhere; }
.field select { width: 100%; font: inherit; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--input); border-radius: var(--radius); padding: 11px 44px 11px 13px;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230F2A24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field select:focus { outline: 3px solid var(--marker); outline-offset: 0; border-color: var(--ink); }
.has-error select { border-color: var(--error); }
.js .other-field[data-closed] { display: none; }
.account-help { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.95rem; }
.overlay { width: calc(100% - 24px); max-width: 760px; border: 0; border-radius: var(--radius); padding: 0;
  color: var(--ink); box-shadow: 0 12px 40px rgba(15, 42, 36, 0.25); }
.overlay-wide { max-width: 960px; }
.overlay::backdrop { background: rgba(15, 42, 36, 0.55); }
.overlay-box { padding: 18px 16px 22px; }
.overlay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 4px; }
.overlay-head h2 { margin: 6px 0 0; font-size: 1.4rem; }
.overlay-close { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.overlay-close:hover { background: var(--tint); }
.overlay h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.overlay .quiet { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.timeline li { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); min-width: 11em; }
.versions .status { padding-left: 18px; white-space: nowrap; }
.versions .date { white-space: nowrap; }
@media (max-width: 599px) {
  .versions thead { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .versions, .versions tbody, .versions tr { display: block; }
  .versions tr { border-top: 1px solid var(--line); padding: 6px 0; }
  .versions tr:last-child { border-bottom: 1px solid var(--line); }
  .versions td, .versions .num, .versions .status { display: flex; justify-content: space-between; gap: 16px;
    padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .versions td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}
html:not(.js) dialog.overlay { display: block; position: static; width: auto; max-width: none; margin: 40px 0 0;
  box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
html:not(.js) .overlay-box { padding: 24px 0 0; }
html:not(.js) .overlay-close { display: none; }
html.dialog-open { overflow: hidden; }
@media (min-width: 760px) {
  .audit-panel { padding: 28px 30px; }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overlay-box { padding: 24px 28px 28px; }
}

/* "Increase Contrast" on iPad, iPhone or Mac: grey text becomes full ink, lines thicken, tinted panels get a border.
   Nothing changes for anyone who hasn't turned the setting on. */
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: #5F736C; --input: var(--ink); --bar: #5F736C; }
  .site-header, .section, .site-footer, .faq details, .sheet-list li, .sheet-total, .sheet-group .more,
  .first-look .more, .guide-list li, .figures th, .figures td, .formula { border-width: 2px; }
  .sheet, .field [id^="id_"] > div label, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea { border-width: 2px; }
  .note, .closing { border: 2px solid var(--ink); }
  .mark { text-decoration: underline 2px; text-underline-offset: 0.15em; }
  a { text-decoration-thickness: 2px; }
}

/* The Tools page: one box per free tool. The name is the link, and it covers the whole box. */
.tool-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-box { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.tool-box:hover { border-color: var(--ink); background: var(--tint); }
.tool-box:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.tool-box h2 { font-size: 1.2rem; margin: 0 0 6px; }
.tool-box h2 a { text-decoration: none; }
.tool-box h2 a:focus-visible { outline: none; }
.tool-box h2 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-box p { margin: 0; color: var(--muted); }
