/* shared-ui -- minimal shared reset. Deliberately small: normalise box
 * sizing, kill default margins, make media responsive. Anything more
 * opinionated belongs in a consuming app's own stylesheet. */

*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

body {
  background: var(--td-bg);
  color: var(--td-text);
  font-family: var(--td-font);
  font-size: var(--td-font-size);
  line-height: var(--td-line);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video, canvas { max-width: 100%; display: block; }

input, button, textarea, select { font: inherit; color: inherit; }

/* Chrome (desktop and mobile) forces an input it's showing an autofill
 * suggestion for to its own white background + dark text, ignoring the
 * page's `background`/`color` entirely -- background-color can't be
 * overridden directly on an autofilled input, only painted over with a
 * huge inset box-shadow, and `color` alone doesn't reliably override the
 * text either, hence -webkit-text-fill-color. Without this, --td-text
 * (near-white, meant for the dark --td-bg) renders white-on-white the
 * moment a field is autofilled -- invisible, not just low-contrast.
 * Found live 2026-10-15 on LevyLens_Wow_V6's login page; this is a
 * browser quirk every app's forms are equally exposed to, not an
 * app-specific styling choice, hence fixed here rather than per-app. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--td-bg) inset;
  -webkit-text-fill-color: var(--td-text);
  caret-color: var(--td-text);
  transition: background-color 5000s ease-in-out 0s;
}

a { color: var(--td-accent); text-decoration: none; }
a:hover { color: var(--td-accent-hover); }
