/* Shared baseline: reset, layout tokens, media defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

:root {
    --nav-h: 70px;
    --page-pad: clamp(14px, 3vw, 25px);
}

body {
    padding-top: var(--nav-h);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: clip;
}

html.nav-open,
html.nav-open body {
    overflow-y: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

img,
video {
    height: auto;
}

iframe {
    max-width: 100%;
    border: 0;
}

h1,
h2,
h3,
h4,
p,
li,
a,
td,
th {
    overflow-wrap: break-word;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

input,
select,
textarea {
    font-size: 16px;
}

:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    :root {
        --nav-h: 64px;
    }
}
