/* ==========================================================================
   Devitc brand atoms — shared by the Landing (marketing.css) and the access
   portal (auth.css): base, browser surfaces, buttons, fields. Needs tokens.css.
   ========================================================================== */
/* Self-hosted fonts (OFL; wwwroot/fonts): preloaded by the public layouts, so text never re-flows (no CLS) */
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-latin-wght.woff2') format('woff2-variations'), url('../../fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Long-form reading pages: same file, display optional — never swaps mid-read (no re-wrap, no CLS) */
@font-face { font-family: 'Inter Read'; src: url('../../fonts/inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: optional; }
/* Metric-matched fallbacks: the swap from the local fallback to the web font moves nothing (CLS 0 even on a cold cache) */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: 'DM Mono Fallback'; src: local('Courier New'), local('Courier'); size-adjust: 100.3%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: 'DM Mono'; src: url('../../fonts/dm-mono-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../../fonts/dm-mono-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* ── Base & browser surfaces ───────────────────────────────────────────── */
body { margin: 0; background: var(--dv-sea); color: var(--dv-ink); font: 400 16px/1.6 var(--dv-font); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
::selection { background: var(--dv-gold); color: var(--dv-gold-ink); }
html { scrollbar-color: var(--dv-shoal) var(--dv-abyss); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dv-abyss); }
::-webkit-scrollbar-thumb { background: var(--dv-shoal); border-radius: 10px; border: 2px solid var(--dv-abyss); }
a { color: var(--dv-gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dv-gold-hi); }
:focus-visible { outline: 2px solid var(--dv-gold); outline-offset: 3px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; } /* headings/regions focused by script for screen readers */
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
input, textarea, button { font: inherit; color: inherit; caret-color: var(--dv-gold); }

.dv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dv-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--dv-r);
  background: var(--dv-gold); color: var(--dv-gold-ink); font-weight: 600; text-decoration: none;
  transition: transform var(--dv-mid) var(--dv-ease-out);
}
.dv-skip:focus { transform: translateY(76px); }


/* ── Buttons ───────────────────────────────────────────────────────────── */
.dv-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--dv-r); border: 1px solid transparent;
  font: 600 14.5px/1 var(--dv-font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; user-select: none;
  /* magnetic offset (--mx/--my, set by page JS) + press scale (--ms) */
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--ms, 1));
}
.dv-btn:active { --ms: .97; }
.dv-btn-arrow, .dv-btn-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-btn-arrow { transition: transform var(--dv-mid) var(--dv-ease-out); }
.dv-btn:hover .dv-btn-arrow, .dv-btn:focus-visible .dv-btn-arrow { transform: translateX(4px); }
.dv-btn--gold::after { /* light sweep across the gold */
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 700ms var(--dv-ease-out);
}
.dv-btn--gold:hover::after { transform: translateX(130%); }
.dv-btn--gold { background-color: var(--dv-gold); background-image: linear-gradient(180deg, var(--dv-gold-hi), var(--dv-gold)); color: var(--dv-gold-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 22px -12px rgba(0,0,0,.7); }
.dv-btn--gold:hover { color: var(--dv-gold-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 28px -12px rgba(0,0,0,.75); }
.dv-btn--ghost { background: rgba(11,26,46,.5); color: var(--dv-ink); border-color: var(--dv-line-2); }
.dv-btn--ghost:hover { background: var(--dv-shoal); color: var(--dv-ink); border-color: rgba(201,168,76,.5); }
.dv-btn[disabled], .dv-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.dv-btn--block { width: 100%; }
.dv-spinner { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 40 60; stroke-linecap: round; }

/* ── Fields ────────────────────────────────────────────────────────────── */
.dv-field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dv-field label { font: 500 13px/1.3 var(--dv-font); color: var(--dv-ink-2); }
.dv-optional { color: var(--dv-ink-3); font-weight: 400; }
.dv-field input, .dv-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--dv-r);
  background: var(--dv-sea); border: 1px solid var(--dv-line-field); color: var(--dv-ink); font-size: 16px;
  transition: border-color var(--dv-fast) var(--dv-ease-std), background-color var(--dv-fast);
}
.dv-field textarea { resize: vertical; min-height: 88px; }
.dv-field input::placeholder, .dv-field textarea::placeholder { color: var(--dv-ink-3); }
.dv-field input:hover, .dv-field textarea:hover { border-color: rgba(127,179,213,.45); }
.dv-field input:focus, .dv-field textarea:focus { outline: none; border-color: var(--dv-gold); background: var(--dv-abyss); }
.dv-control { position: relative; display: block; }
.dv-control::after { /* focus underline: scaleX + opacity only */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--dv-gold); transform: scaleX(0); opacity: 0; transform-origin: left center; pointer-events: none;
}
.dv-control:focus-within::after { transform: scaleX(1); opacity: 1; }
.dv-control:has([aria-invalid="true"])::after { background: var(--dv-err); }
.dv-field [aria-invalid="true"] { border-color: var(--dv-err); }
.dv-field-err { font-size: 13px; line-height: 1.4; color: var(--dv-err); }
.dv-field-help { font-size: 12px; color: var(--dv-ink-3); }

/* Brand lockup on public pages (one size everywhere). The drawn disc is 68 % of the mark's box: 46 px box = 31 px disc.
   The negative margins take the mark's empty rim back, so the disc sits on the page gutter and close to the word. */
.mk-brand, .au-brand { --mark: 46px; gap: 4px; min-height: 46px; font-size: 21px; }
.mk-brand svg, .au-brand svg { width: var(--mark); height: var(--mark); flex: none; margin-left: calc(var(--mark) * -.12); }
@media (max-width: 576px) { .mk-brand, .au-brand { --mark: 44px; font-size: 20px; } }
@media (min-width: 2200px) { .mk-brand, .au-brand { --mark: 58px; font-size: 26px; } }
