/* SUB7 design tokens. Component styles and styles/site-system.css read from these; add new colors here, not in components. */
:root {
    /* Framing: header, footer, dark bands */
    --ink: #101416;
    --ink-soft: #1b2125;
    --ink-raised: #232a2e;
    --ink-line: #333b40;

    /* Light surfaces: warm canvas, white detail surfaces */
    --paper: #f4f3ef;
    --paper-deep: #e7e5de;
    --surface: #ffffff;
    --surface-muted: #faf9f6;
    --line-light: #dcd9d0;
    --line-strong: #b9b5aa;

    /* Text */
    --text: #15191b;
    --text-muted: #555c61;
    --smoke: #c1c7cb;
    --muted: #697278;

    /* Brand signal and action. --action meets AA with white text; --signal is for marks and rules. */
    --signal: #f04424;
    --signal-dark: #b73520;
    --action: #bd371f;
    --action-hover: #9c2c17;

    /* GTD livery accent. Use for data, tags and illustration, not for buttons. */
    --metallic-blue: #7188a2;
    --metallic-blue-bright: #a5b7c8;
    --metallic-blue-deep: #344a62;

    --acid: #d9ff43;
    --success: #1f7a4d;
    --focus: var(--signal);
    --line: rgba(255, 255, 255, 0.12);

    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-ui: 'Instrument Sans', system-ui, sans-serif;
    /* Long-form Journal article prose only. */
    --font-editorial: Georgia, 'Times New Roman', serif;
    --radius: 2px;
    --gutter: clamp(1.25rem, 6vw, 6rem);
    --header-height: 4.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--ink);
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.5;
    margin: 0;
    min-width: 20rem;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

a,
button,
summary,
input,
select,
textarea {
    outline-offset: 3px;
}

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

/* Blazor moves focus to the page H1 after navigation; that programmatic focus should not draw a ring. */
h1:focus,
h1:focus-visible {
    outline: none;
}

::selection {
    background: var(--signal);
    color: #fff;
}

.container {
    margin-inline: auto;
    max-width: 96rem;
    padding-inline: var(--gutter);
    width: 100%;
}

.eyebrow {
    align-items: center;
    color: currentColor;
    display: inline-flex;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.6rem;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    background: var(--signal);
    content: '';
    flex: none;
    height: 0.5rem;
    width: 0.5rem;
}

/* One button system: .button is the conversion action, .button--dark/.button--blue are solid secondary actions,
   .button--ghost is an outline that follows the surrounding text color. */
.button {
    align-items: center;
    background: var(--action);
    border: 1px solid var(--action);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    gap: 0.75rem;
    justify-content: center;
    letter-spacing: 0.08em;
    line-height: 1.2;
    min-height: 3rem;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
    background: var(--action-hover);
    border-color: var(--action-hover);
    color: #fff;
}

.button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--dark,
.button--blue {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.button--dark:hover,
.button--blue:hover {
    background: var(--action);
    border-color: var(--action);
    color: #fff;
}

.button--ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.button--ghost:hover {
    background: transparent;
    border-color: var(--signal);
    color: inherit;
}

.text-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.text-link:hover {
    color: var(--action);
}

/* Unclassed links inside running text inherit the text color instead of the browser's default blue. */
:where(.site-shell) :where(p, li, dd, small, figcaption) a:not([class]) {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

:where(.site-shell) :where(p, li, dd, small, figcaption) a:not([class]):hover {
    text-decoration-thickness: 2px;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.validation-message {
    color: #ff795e;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--signal-dark);
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: 'Something went wrong.';
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}