/* GEOwner customer space. Same Ledger tokens as geowner.com (src/styles/design.css), quieter:
   ivory paper, charcoal ink, cobalt for links and focus, sage for the one main action.
   State colours (--ok --warn --bad) are for data and messages only. Served under a CSP with
   style-src 'self': no inline style anywhere, fonts are local files in /fonts. */
@font-face { font-family: 'GEOWNER Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geowner-sans-400-5c7fcd6f0c64.woff2') format('woff2'); }
@font-face { font-family: 'GEOWNER Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geowner-sans-500-9485f65d56e5.woff2') format('woff2'); }
@font-face { font-family: 'GEOWNER Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/geowner-sans-600-8abe1c249c0b.woff2') format('woff2'); }
@font-face { font-family: 'GEOWNER Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geowner-mono-400-986188bc10ac.woff2') format('woff2'); }
@font-face { font-family: 'GEOWNER Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geowner-mono-500-237b93108922.woff2') format('woff2'); }
@font-face { font-family: 'GEOWNER Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geowner-serif-normal-400-e2a38afe5443.woff2') format('woff2'); }
/* Metric-matched fallbacks (same figures as the site's fonts.css): the swap moves nothing. */
@font-face { font-family: 'GEOWNER Sans Fallback'; src: local('Arial'), local('Liberation Sans'), local('Arimo'), local('Helvetica'); size-adjust: 101.6%; ascent-override: 100.9%; descent-override: 27.1%; line-gap-override: 0%; }
@font-face { font-family: 'GEOWNER Serif Fallback'; src: local('Times New Roman'), local('Liberation Serif'), local('Tinos'), local('Times'); size-adjust: 110.7%; ascent-override: 93.6%; descent-override: 30.3%; line-gap-override: 0%; }

:root {
  --paper: #f2f0e8; --paper-2: #e8e8df; --card: #fcfcf8;
  --ink: #171914; --ink-2: #4a5045; --ink-3: #5a6054;
  --measured: #4353e5; --blue-dark: #2f3cb8; --blue-soft: #e4e7fb;
  --accent: #c1d5c9; --accent-2: #a9c2b3; --accent-hover: #b0c9ba;
  --ok: #1b6b3f; --warn: #8a5300; --bad: #b3261e;
  --ok-bg: #e0efe5; --warn-bg: #f5e8cd; --bad-bg: #f7e0dd;
  --rule: #d3d5ca; --rule-strong: #b7beaa; --field: #7c8472;
  --sans: 'GEOWNER Sans', 'IBM Plex Sans', 'GEOWNER Sans Fallback', system-ui, sans-serif;
  --serif: 'GEOWNER Serif', 'GEOWNER Serif Fallback', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'GEOWNER Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --dur-fast: 160ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, p, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--measured); text-underline-offset: .2em; }
a:hover { color: var(--blue-dark); }
button, input { font: inherit; color: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--measured); outline-offset: 3px; }
h1:focus, main:focus { outline: none; }          /* focus is moved here only to announce a new state */
::selection { background: var(--blue-soft); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 12px 18px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; color: #fff; }

/* ---- header -------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 10px var(--gutter); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { flex: none; }
.mark-g { fill: currentColor; }
.mark-dot, .wordmark .dot { fill: var(--measured); color: var(--measured); }
.wordmark { font: 600 24px/1 var(--sans); letter-spacing: -1px; white-space: nowrap; }
.account { position: relative; min-width: 0; }
.account summary { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: min(56vw, 22rem); padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; cursor: pointer; list-style: none; font-size: 14px; }
.account summary::-webkit-details-marker { display: none; }
.account summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.account[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.account summary:hover { background: var(--paper-2); }
.who { min-width: 8ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(20rem, calc(100vw - 2 * var(--gutter))); padding: 16px; display: grid; gap: 10px; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 3px; box-shadow: 0 12px 26px #17191412; }
.who-full { font-weight: 500; overflow-wrap: anywhere; }

/* ---- page ---------------------------------------------------------------------------------- */
.sheet { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: clamp(28px, 6vw, 64px) var(--gutter) 48px; }
.sheet.narrow { max-width: 31rem; }
h1 { font: 400 clamp(32px, 6vw, 44px)/1.1 var(--serif); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font: 500 20px/1.3 var(--sans); letter-spacing: -.015em; }
.lede { margin-top: 14px; max-width: 60ch; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.label, h2.label { font: 500 12px/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.fine { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.next { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.next a { display: inline-flex; align-items: center; min-height: 44px; }
.crumb { margin-bottom: 20px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.crumb a::before { content: '←'; margin-right: 8px; text-decoration: none; }

/* ---- buttons and fields -------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--accent-2); border-radius: 3px; background: var(--accent); color: var(--ink); font-weight: 500; font-size: 16px; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.btn:hover { background: var(--accent-hover); color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled='true'] { cursor: default; color: var(--ink-2); background: var(--paper-2); border-color: var(--rule); }
form { margin-top: 28px; display: grid; gap: 8px; }
label { font-weight: 500; }
input[type='email'] { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--card); border: 1px solid var(--field); border-radius: 3px; font-size: 16px; }
input[aria-invalid='true'] { border-color: var(--bad); border-width: 2px; }
.field-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.field-error::before { content: '! '; font-family: var(--mono); }
form .btn { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.help { margin-top: 10px; display: grid; gap: 8px; max-width: 60ch; color: var(--ink-2); }
.help li { padding-left: 18px; position: relative; }
.help li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 1.5px; background: var(--ink-3); }
[data-sent] { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
[data-continue-box] { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }

/* ---- messages ------------------------------------------------------------------------------ */
.status { margin-top: 24px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-left: 3px solid var(--ok); background: var(--ok-bg); border-radius: 0 3px 3px 0; }
.status p { flex: 1 1 16rem; }
.status[data-empty] { margin: 0; padding: 0; border: 0; background: none; }      /* empty, but still in the page for a screen reader */
.status[data-state='error'] { border-left-color: var(--bad); background: var(--bad-bg); }
.status[data-state='busy'] { border-left-color: var(--rule-strong); background: var(--paper-2); }

/* ---- my audits ----------------------------------------------------------------------------- */
.audits, [data-audit] { margin-top: 28px; min-height: 168px; }
.skeleton { display: grid; gap: 12px; }
.skeleton span { display: block; height: 72px; border-radius: 3px; background: var(--paper-2); }
.site + .site { margin-top: 40px; }
.site h2 { font: 500 18px/1.3 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.site .fine { margin-top: 6px; max-width: 60ch; }
.rows { margin-top: 12px; border-top: 1px solid var(--ink); }
.row { border-bottom: 1px solid var(--rule); }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; min-height: 76px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.row a:hover { background: var(--card); color: var(--ink); }
.row .when { font-weight: 500; }
.row .ref { grid-column: 1; font: 400 13px/1.5 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.row .state { grid-column: 2; grid-row: 1 / span 2; min-width: 8.5rem; display: grid; justify-items: end; gap: 2px; text-align: right; }
.num { font: 500 22px/1.2 var(--mono); letter-spacing: -.02em; }
.num small { font: 400 13px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.chip { display: inline-flex; align-items: baseline; text-align: left; gap: 6px; padding: 4px 9px; border-radius: 3px; font: 400 12px/1.5 var(--mono); }
.chip::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.pending { color: transparent; background: var(--paper-2); min-width: 6.5rem; min-height: 26px; }
.chip.pending::before { display: none; }
.empty { padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; max-width: 60ch; }
.empty strong { font-weight: 500; overflow-wrap: anywhere; }

/* ---- one audit ----------------------------------------------------------------------------- */
.facts { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts div { padding: 14px 16px 14px 0; }
.facts dd { margin-top: 2px; font: 400 15px/1.5 var(--mono); overflow-wrap: anywhere; }
.result { margin-top: 32px; display: grid; gap: 14px; justify-items: start; max-width: 60ch; }
.result .big { font: 500 clamp(56px, 14vw, 84px)/1 var(--mono); letter-spacing: -.04em; }
.result .big small { font: 400 18px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.result .btn { margin-top: 10px; }
.result p { color: var(--ink-2); }

/* ---- footer -------------------------------------------------------------------------------- */
.foot { padding: 12px 0 24px; border-top: 1px solid var(--rule); }
.foot-in { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.help-line { font-size: 14px; color: var(--ink-2); }
.help-line a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -12px; }
.langs button { min-height: 44px; min-width: 44px; padding: 8px 12px; background: none; border: 0; border-radius: 3px; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.langs button[aria-pressed='true'] { color: var(--ink); font-weight: 500; text-decoration: none; }
.langs button:hover { background: var(--paper-2); }

@media (max-width: 520px) {
  .top { min-height: 60px; }
  .sheet.narrow .btn, .result .btn, .actions .btn { width: 100%; }
  .actions { flex-direction: column; }
  .row .state { min-width: 6.5rem; max-width: 46vw; }
}
/* Motion: only the loading placeholder breathes, and only when motion is welcome. No page
   transition: a cross-document view transition stalled rendering after the redirect to sign-in. */
@media (prefers-reduced-motion: no-preference) {
  .skeleton span { animation: breathe 1.6s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: 1; } to { opacity: .55; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .btn, .account summary, input[type='email'], .chip { border: 1px solid ButtonText; }
  .status { border: 1px solid CanvasText; }
  .chip.pending, .skeleton span { forced-color-adjust: none; }
}
@media print {
  .top, .foot, .skip, .crumb, .btn { display: none; }
}
