/*
 * 404ops UI kit — the "Console" design language. GPL-2.0-or-later.
 *
 * Admin-only, light-only, with ONE inverted surface (.o4o-danger) reserved
 * for irreversible confirmation. Design rationale and the artboards this
 * implements: plugin-factory/docs/design-language/.
 *
 * MIGRATION NOTE (v0.4.0). Every class name and every element the kit
 * emitted before this version still exists and still means the same thing —
 * this release is a restyle, not a re-markup, so consumer selectors,
 * data-testids and e2e assertions keep matching. What changed is how it
 * looks. New in this file: components plugins were already hand-writing
 * class names for (.o4o-card was used 32 times across link-sentinel and
 * payment-forms while resolving to nothing at all), plus a restyle of
 * WordPress's own .form-table, which the estate uses 114 times.
 *
 * THE ONE RULE: monospace is for values a machine produced — codes, URLs,
 * timestamps, counts, identifiers. Anything addressed to a human is the
 * display face. Breaking that rule is what turns this language into costume.
 */

:root {
	/* Ink and ground. */
	--o4o-ink: #14181a;          /* 17.9:1 on white */
	--o4o-muted: #6a7276;        /*  4.9:1 on white — AA for normal text */
	--o4o-rule: #e6e8e7;         /* hairlines, dividers */
	--o4o-rule-strong: #c9cdcb;  /* disabled/queued text, heavier dividers */
	--o4o-shell: #f2f2f0;        /* page shell, footer bands, active rows */
	--o4o-surface: #ffffff;

	/* Status. Every value measured against white; all pass WCAG AA (4.5:1). */
	--o4o-alarm: #c62b1f;        /*  5.6:1 — failure, 4xx/5xx, destructive */
	--o4o-warn: #966206;         /*  5.2:1 — degraded, redirects, unpaid    */
	--o4o-ok: #1f7a4d;           /*  5.3:1 — healthy, complete, paid        */
	--o4o-alarm-bg: #fdf2f1;
	--o4o-warn-bg: #fdf9f0;
	--o4o-ok-bg: #f0f7f3;

	/*
	 * Inverted twins, for .o4o-danger only. These are not a dark theme —
	 * they exist because --o4o-alarm manages just 3.2:1 against the
	 * inverted ground and is unreadable there.
	 */
	--o4o-ink-inv: #ffffff;
	--o4o-ground-inv: #14181a;
	--o4o-ground-inv-deep: #0d1011;
	--o4o-muted-inv: #9aa2a5;    /*  6.9:1 on --o4o-ground-inv */
	--o4o-alarm-inv: #f0655a;    /*  5.7:1 on --o4o-ground-inv */
	--o4o-rule-inv: #2b3033;

	/* Shape: rules and rails, never cards with corners. */
	--o4o-radius: 0;
	--o4o-rail: 3px;

	/*
	 * Type. Both faces are bundled as SIL OFL 1.1 variable fonts, Latin
	 * subset, self-hosted from assets/fonts/ — 52 KB for the pair, admin
	 * screens only. Never loaded from Google's CDN: wp.org forbids calling
	 * third-party hosts for assets, and it would leak the admin's IP to
	 * Google besides. The fallbacks stay in the stack for the moment before
	 * the webfont lands and for anyone blocking it.
	 */
	--o4o-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--o4o-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/*
 * One file per family: these are VARIABLE fonts, so a single binary covers the
 * whole 400-700 range the language uses. Do not "helpfully" add separate
 * weight files — that is five downloads where two will do.
 *
 * font-display: swap so an admin screen is never blank waiting on 26 KB;
 * the fallback paints first and is replaced. Licences sit in assets/fonts/
 * and must ship with the binaries.
 */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/space-grotesk-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/jetbrains-mono-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ *
 * Scope
 * ------------------------------------------------------------------ */

.o4o-wrap { font-family: var(--o4o-display); color: var(--o4o-ink); }
.o4o-wrap p { font-size: 13.5px; line-height: 1.6; }

/* Machine values. Applied by the kit; also available to consumers. */
.o4o-mono, .o4o-wrap code, .o4o-wrap kbd { font-family: var(--o4o-mono); }

/* ------------------------------------------------------------------ *
 * Header — same markup as v0.1.0, restyled.
 *
 * Render::header() emits mark → title → subtitle inline. Console wants the
 * mark as a tracked mono eyebrow ABOVE the title, which is a flex-basis
 * change rather than a markup change, so no consumer has to be touched.
 * ------------------------------------------------------------------ */

.o4o-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 0 0 13px; border-bottom: 2px solid var(--o4o-ink); margin: 0 0 20px; font-weight: 400; line-height: 1.3; }
.o4o-header__mark { flex-basis: 100%; display: block; font-family: var(--o4o-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 7px; padding: 0; background: none; border: 0; border-radius: 0; }
.o4o-header__404 { color: var(--o4o-alarm); }
.o4o-header__ops { color: var(--o4o-muted); }
.o4o-header__title { font-family: var(--o4o-display); font-size: 32px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--o4o-ink); }
.o4o-header__subtitle { color: var(--o4o-muted); font-size: 13.5px; font-weight: 400; }

/* ------------------------------------------------------------------ *
 * Tabs
 * ------------------------------------------------------------------ */

.o4o-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--o4o-rule); margin: 0 0 20px; }
.o4o-tab { font-family: var(--o4o-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--o4o-muted); text-decoration: none; padding: 0 14px 8px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.o4o-tab:first-child { padding-left: 0; }
.o4o-tab:hover, .o4o-tab:focus { color: var(--o4o-ink); }
.o4o-tab.is-active { color: var(--o4o-ink); font-weight: 700; border-bottom-color: var(--o4o-alarm); }

/*
 * Cross-page navigation (Render::page_nav) deliberately shares the tab
 * chrome: to a user these are one control. It carries its own class only so
 * a consumer can target sibling-page nav specifically -- e.g. to keep it
 * visible while an intra-page tab strip scrolls away.
 */
.o4o-page-nav { margin-bottom: 20px; }

/* ------------------------------------------------------------------ *
 * Status chips. Squared, mono, tracked.
 *
 * A chip must never be the ONLY carrier of severity — pair it with the
 * code or word in the row, so the table survives greyscale printing and
 * colour-blind readers. Render::chip() enforces the token set; see
 * Render::assert_token().
 * ------------------------------------------------------------------ */

.o4o-chip { display: inline-block; padding: 3px 9px; border-radius: var(--o4o-radius); font-family: var(--o4o-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid transparent; }
.o4o-chip--green { color: var(--o4o-ok); background: var(--o4o-ok-bg); border-color: var(--o4o-ok); }
.o4o-chip--amber { color: var(--o4o-warn); background: var(--o4o-warn-bg); border-color: var(--o4o-warn); }
.o4o-chip--red { color: var(--o4o-alarm); background: var(--o4o-alarm-bg); border-color: var(--o4o-alarm); }
.o4o-chip--neutral { color: var(--o4o-muted); background: var(--o4o-shell); border-color: var(--o4o-rule-strong); }

/* Status rail: the row-level alternative to a chip. */
.o4o-rail { display: inline-block; width: var(--o4o-rail); align-self: stretch; min-height: 1em; background: var(--o4o-rule-strong); }
.o4o-rail--green { background: var(--o4o-ok); }
.o4o-rail--amber { background: var(--o4o-warn); }
.o4o-rail--red { background: var(--o4o-alarm); }

/* ------------------------------------------------------------------ *
 * Key-value details
 * ------------------------------------------------------------------ */

.o4o-details { border: 0; border-top: 1px solid var(--o4o-ink); border-collapse: collapse; max-width: 680px; margin: 16px 0; font-size: 12.5px; color: var(--o4o-ink); background: transparent; }
.o4o-details th { text-align: left; font-family: var(--o4o-mono); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--o4o-muted); width: 180px; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--o4o-rule); vertical-align: top; }
.o4o-details td { padding: 9px 0; border-bottom: 1px solid var(--o4o-rule); }
.o4o-details code { background: transparent; padding: 0; font-family: var(--o4o-mono); font-size: 12px; }

/* ------------------------------------------------------------------ *
 * Data tables. Rules, not cards; no zebra striping.
 *
 * Emitted by Render::table(). Also restyles WordPress's .widefat inside
 * .o4o-wrap, because the estate uses widefat 109 times against this kit's
 * own table 3 times — meeting that reality is cheaper and less risky than
 * migrating 109 call sites.
 * ------------------------------------------------------------------ */

.o4o-table, .o4o-wrap .widefat { border: 0; border-collapse: collapse; width: 100%; background: transparent; box-shadow: none; font-size: 12.5px; color: var(--o4o-ink); margin: 16px 0; }
.o4o-table th, .o4o-wrap .widefat thead th, .o4o-wrap .widefat thead td { text-align: left; font-family: var(--o4o-mono); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--o4o-muted); background: transparent; padding: 0 12px 8px; border-bottom: 1px solid var(--o4o-ink); }
.o4o-table th:first-child, .o4o-wrap .widefat thead th:first-child { padding-left: 0; }
.o4o-table td, .o4o-wrap .widefat tbody td { padding: 10px 12px; border-bottom: 1px solid var(--o4o-rule); vertical-align: middle; }
.o4o-table td:first-child, .o4o-wrap .widefat tbody td:first-child { padding-left: 0; }
.o4o-table tbody tr:hover, .o4o-wrap .widefat tbody tr:hover { background: var(--o4o-shell); }
.o4o-table code, .o4o-wrap .widefat code { font-family: var(--o4o-mono); background: transparent; }
/* Kill WP's zebra: Console separates rows with rules, not fills. */
.o4o-wrap .widefat.striped > tbody > :nth-child(odd), .o4o-wrap .striped > tbody > :nth-child(odd) { background: transparent; }
/* Machine-value columns opt in. */
.o4o-table .o4o-num, .o4o-wrap .widefat .o4o-num { font-family: var(--o4o-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ *
 * Notices. A left rail carries severity; the text carries the meaning.
 * ------------------------------------------------------------------ */

.o4o-notice { border: 0; border-left: var(--o4o-rail) solid var(--o4o-rule-strong); border-radius: var(--o4o-radius); background: transparent; padding: 2px 0 2px 14px; max-width: 700px; margin: 16px 0; font-size: 13px; line-height: 1.55; color: var(--o4o-ink); }
.o4o-notice--info { border-left-color: var(--o4o-ink); }
.o4o-notice--success { border-left-color: var(--o4o-ok); }
.o4o-notice--warning { border-left-color: var(--o4o-warn); }
.o4o-notice--error { border-left-color: var(--o4o-alarm); }
.o4o-notice--nudge { border-left-color: var(--o4o-muted); background: var(--o4o-shell); padding: 12px 16px; }
.o4o-notice p { margin: 0.35em 0; font-size: 13px; }
.o4o-notice p:first-child { margin-top: 0; }
.o4o-notice p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ *
 * Empty state. Honest zero, not an apology — pair with a real next step.
 * ------------------------------------------------------------------ */

.o4o-empty { border: 0; border-top: 1px solid var(--o4o-rule); border-radius: var(--o4o-radius); background: transparent; padding: 26px 0 0; max-width: 660px; margin: 20px 0; text-align: left; }
.o4o-empty__title { font-family: var(--o4o-display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--o4o-ink); margin: 0 0 7px; }
.o4o-empty__hint { font-size: 13.5px; line-height: 1.6; color: var(--o4o-muted); margin: 0; max-width: 60ch; }

/* ------------------------------------------------------------------ *
 * Stat / readout. Big mono numerals divided by rules, not boxed cards.
 * ------------------------------------------------------------------ */

.o4o-stat { display: inline-flex; flex-direction: column; gap: 0; border: 0; border-right: 1px solid var(--o4o-rule); border-radius: var(--o4o-radius); background: transparent; padding: 0 34px 0 0; margin: 4px 34px 12px 0; min-width: 0; }
.o4o-stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.o4o-stat__value { font-family: var(--o4o-mono); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--o4o-ink); font-variant-numeric: tabular-nums; }
.o4o-stat__label { font-family: var(--o4o-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--o4o-muted); margin-top: 7px; }
.o4o-stat--green .o4o-stat__value { color: var(--o4o-ok); }
.o4o-stat--amber .o4o-stat__value { color: var(--o4o-warn); }
.o4o-stat--red .o4o-stat__value { color: var(--o4o-alarm); }
/* Layout helpers plugins were already writing by hand. */
.o4o-stats, .o4o-stats-row { display: flex; flex-wrap: wrap; align-items: flex-end; border-bottom: 1px solid var(--o4o-rule); padding: 4px 0 18px; margin: 0 0 20px; }

/* ------------------------------------------------------------------ *
 * Buttons.
 *
 * DELIBERATE, NOT ACCIDENTAL: the kit restyles WordPress buttons inside
 * .o4o-wrap. That was previously an undocumented side effect of a wrapper
 * class (and .o4o-btn, the component you were supposed to call, had zero
 * uses estate-wide). It is kept because a Console screen with a stock blue
 * WP button in it looks broken — but it is now documented, and any single
 * control can opt back out with .o4o-native.
 * ------------------------------------------------------------------ */

.o4o-btn,
.o4o-wrap .button,
.o4o-wrap .button-secondary,
.o4o-wrap p.submit .button {
	font-family: var(--o4o-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
	border-radius: var(--o4o-radius); border: 1px solid var(--o4o-ink); background: var(--o4o-surface); color: var(--o4o-ink);
	padding: 8px 15px; height: auto; line-height: 1.5; cursor: pointer; text-decoration: none; display: inline-block; text-shadow: none; box-shadow: none;
}
.o4o-btn--primary,
.o4o-wrap .button-primary,
.o4o-wrap p.submit .button-primary {
	background: var(--o4o-ink); border-color: var(--o4o-ink); color: var(--o4o-surface); font-weight: 700; padding: 9px 17px;
}
.o4o-btn--danger { background: var(--o4o-alarm); border-color: var(--o4o-alarm); color: var(--o4o-surface); font-weight: 700; }
.o4o-btn:hover, .o4o-wrap .button:hover, .o4o-wrap .button:focus { border-color: var(--o4o-alarm); color: var(--o4o-alarm); background: var(--o4o-surface); }
.o4o-btn--primary:hover, .o4o-wrap .button-primary:hover, .o4o-wrap .button-primary:focus { background: #000; border-color: #000; color: var(--o4o-surface); }
.o4o-btn--danger:hover { background: #a8241a; border-color: #a8241a; color: var(--o4o-surface); }
.o4o-wrap .button:disabled, .o4o-wrap .button[disabled] { border-color: var(--o4o-rule-strong); color: var(--o4o-rule-strong); background: var(--o4o-surface); }
/* Escape hatch: restore WordPress's own button styling for one control. */
.o4o-wrap .o4o-native { font: inherit; text-transform: none; letter-spacing: normal; border-radius: 3px; }

/* ------------------------------------------------------------------ *
 * Card.
 *
 * New in 0.4.0 and overdue: .o4o-card was already written 32 times across
 * link-sentinel and payment-forms while the kit defined nothing, so those
 * elements have been rendering as bare unstyled divs.
 * ------------------------------------------------------------------ */

.o4o-card { border: 1px solid var(--o4o-rule); border-radius: var(--o4o-radius); background: var(--o4o-surface); padding: 18px 20px; margin: 0 0 16px; }
.o4o-card__title { font-family: var(--o4o-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--o4o-ink); margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--o4o-ink); }
.o4o-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.o4o-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }

/* ------------------------------------------------------------------ *
 * Forms — the cheapest win in the language.
 *
 * WordPress's .form-table is used 114 times across the estate. Console
 * keeps that exact markup (<th scope="row"> + <td>) and only restyles it,
 * so every one of those screens upgrades without being rewritten.
 * Hints belong under the label, not after the field, so the column scans.
 * ------------------------------------------------------------------ */

.o4o-wrap .form-table, .o4o-form { border-top: 1px solid var(--o4o-ink); border-collapse: collapse; margin: 12px 0 26px; max-width: 760px; }
.o4o-wrap .form-table th, .o4o-form th { width: 240px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--o4o-rule); vertical-align: top; font-family: var(--o4o-display); font-size: 13px; font-weight: 500; color: var(--o4o-ink); }
.o4o-wrap .form-table td, .o4o-form td { padding: 16px 0; border-bottom: 1px solid var(--o4o-rule); font-size: 13px; }
.o4o-wrap .form-table .description, .o4o-form .description { display: block; font-size: 11.5px; line-height: 1.45; color: var(--o4o-muted); margin-top: 4px; font-style: normal; }
.o4o-wrap .form-table input[type="text"], .o4o-wrap .form-table input[type="email"], .o4o-wrap .form-table input[type="url"],
.o4o-wrap .form-table input[type="number"], .o4o-wrap .form-table input[type="password"], .o4o-wrap .form-table select,
.o4o-wrap .form-table textarea, .o4o-form input[type="text"], .o4o-form select {
	font-family: var(--o4o-mono); font-size: 12.5px; color: var(--o4o-ink);
	border: 1px solid var(--o4o-ink); border-radius: var(--o4o-radius); background: var(--o4o-surface);
	padding: 8px 10px; box-shadow: none; min-height: 0; line-height: 1.4;
}
.o4o-wrap .form-table select { font-family: var(--o4o-display); }
.o4o-wrap .form-table input:focus, .o4o-wrap .form-table select:focus, .o4o-wrap .form-table textarea:focus { border-color: var(--o4o-alarm); box-shadow: 0 0 0 1px var(--o4o-alarm); outline: 2px solid transparent; }
.o4o-wrap .form-table input[type="checkbox"], .o4o-wrap .form-table input[type="radio"] { border: 1.5px solid var(--o4o-ink); border-radius: 0; box-shadow: none; }
.o4o-wrap .form-table input[type="checkbox"]:checked { background: var(--o4o-ink); border-color: var(--o4o-ink); }
.o4o-wrap .form-table input[type="checkbox"]:checked::before { color: var(--o4o-surface); }
/* Touch: the 34px desk control is too small for a finger. */
@media (pointer: coarse) {
	.o4o-wrap .form-table input, .o4o-wrap .form-table select, .o4o-btn, .o4o-wrap .button { min-height: 44px; }
}

/* ------------------------------------------------------------------ *
 * Step ledger — a multi-step flow is a persistent ledger, never a modal.
 * ------------------------------------------------------------------ */

.o4o-steps { display: flex; align-items: center; gap: 0; padding: 16px 0 17px; border-bottom: 1px solid var(--o4o-rule); margin: 0 0 20px; list-style: none; }
.o4o-step { display: flex; align-items: center; gap: 9px; font-family: var(--o4o-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--o4o-muted); }
.o4o-step__n { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--o4o-rule-strong); font-size: 10px; font-weight: 700; }
.o4o-step.is-active { color: var(--o4o-ink); font-weight: 700; }
.o4o-step.is-active .o4o-step__n { background: var(--o4o-ink); border-color: var(--o4o-ink); color: var(--o4o-surface); }
.o4o-step.is-failed { color: var(--o4o-alarm); }
.o4o-step.is-failed .o4o-step__n { background: var(--o4o-alarm); border-color: var(--o4o-alarm); color: var(--o4o-surface); }
.o4o-steps__gap { flex-grow: 1; height: 1px; background: var(--o4o-rule); margin: 0 14px; }

/*
 * Segmented progress. Discrete because the work is discrete — one cell per
 * unit. Never animate this into a smooth bar; that invents precision the
 * caller does not have.
 */
.o4o-progress { display: flex; gap: 2px; height: 8px; margin: 8px 0; }
.o4o-progress__done { background: var(--o4o-ink); }
.o4o-progress__running { background: var(--o4o-muted); }
.o4o-progress__queued { background: var(--o4o-rule); }

/* ------------------------------------------------------------------ *
 * Danger surface — THE INVERTED ONE.
 *
 * Reserved for irreversible confirmation and nothing else. It registers
 * precisely because no other screen in the suite inverts; a second use
 * spends the effect. Failure states get the alarm rail on white instead —
 * the ladder is rail → rail + inversion.
 * ------------------------------------------------------------------ */

.o4o-danger { background: var(--o4o-ground-inv); border-left: 5px solid var(--o4o-alarm); color: var(--o4o-ink-inv); padding: 26px 30px; margin: 20px 0; }
.o4o-danger .o4o-header, .o4o-danger .o4o-header__title { color: var(--o4o-ink-inv); border-bottom-color: var(--o4o-alarm-inv); }
.o4o-danger .o4o-header__404, .o4o-danger .o4o-header__mark { color: var(--o4o-alarm-inv); }
.o4o-danger .o4o-header__subtitle, .o4o-danger .o4o-muted { color: var(--o4o-muted-inv); }
.o4o-danger p { color: #e8ebea; }
.o4o-danger strong { color: var(--o4o-ink-inv); }
.o4o-danger code, .o4o-danger .o4o-mono { font-family: var(--o4o-mono); color: var(--o4o-ink-inv); }
.o4o-danger hr, .o4o-danger .o4o-rule { border: 0; border-top: 1px solid var(--o4o-rule-inv); }
.o4o-danger .o4o-btn, .o4o-danger .button { background: transparent; border-color: var(--o4o-muted-inv); color: #c9cdcb; }
.o4o-danger .o4o-btn--danger, .o4o-danger .button-primary { background: var(--o4o-alarm-inv); border-color: var(--o4o-alarm-inv); color: var(--o4o-ground-inv); font-weight: 700; }
.o4o-danger input[type="text"] { font-family: var(--o4o-mono); background: var(--o4o-ground-inv-deep); border: 1px solid var(--o4o-alarm-inv); color: var(--o4o-ink-inv); padding: 11px 13px; border-radius: 0; }

/* ------------------------------------------------------------------ *
 * Accessibility
 * ------------------------------------------------------------------ */

.o4o-wrap a { color: var(--o4o-ink); text-decoration: underline; text-underline-offset: 2px; }
.o4o-wrap a:hover, .o4o-wrap a:focus { color: var(--o4o-alarm); }
.o4o-wrap :focus-visible { outline: 2px solid var(--o4o-alarm); outline-offset: 2px; }
.o4o-danger :focus-visible { outline-color: var(--o4o-alarm-inv); }

@media (prefers-reduced-motion: reduce) {
	.o4o-wrap *, .o4o-wrap *::before, .o4o-wrap *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (prefers-contrast: more) {
	:root { --o4o-muted: #4a5154; --o4o-rule: #b9bdbb; }
}
