/* Shared by index.html and tools.html. Tools inside the iframe keep their own styles. */
:root {
    --navy: #124475;
    --navy-dark: #0c3156;
    --blue-50: #eef2f7;
    --blue-100: #d6e0ec;
    --blue-500: #2b5d92;
    --blue-600: var(--navy);
    --blue-700: var(--navy-dark);
    --ink: #17191c;
    --ink-2: #3b3f45;
    --muted: #6d7077;
    --line: #dedad2;
    --paper: #f7f5f0;
    --bg: #f3f1ec;
    --white: #fff;
    --green: #2f6b3a;
    --green-bg: #edf3ec;
    --radius: 4px;
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .04);
    --shadow: 0 1px 2px rgba(0, 0, 0, .06);
    --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--ink); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { top: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 3px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1rem; border-radius: var(--radius);
    font-weight: 500; font-size: .95rem; line-height: 1.2;
    transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }

.privacy-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .25rem .55rem; border-radius: var(--radius);
    background: var(--green-bg); color: var(--green);
    font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.privacy-pill svg { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
