/* ═══════════════════════════════════════════════════════════
   OXFORD THEME
   Activate: add data-style="oxford" to <html>.

   Weirdly Perfect, recoloured in a five-step blue scale:

     Alice Blue  #f0f4f8   the page
     Beau Blue   #c5d4e0   trays, halos, the lightest accent
     Blue/grey   #7a93ab   secondary accent, quiet controls
     Light Navy  #3a5572   the accent: checked, on, focused
     Oxford Blue #0c1f33   ink: text and the primary button

   Everything structural is Weirdly Perfect's, unchanged: white
   cards curving into tinted footer trays,
   an iOS-style segmented picker, tinted tags with no keyline,
   concentric corners, Inter with Plus Jakarta Sans headings.

   One warm accent against the blues: muted Coral (#e8735a), a
   warm counterpoint to the scale's cool hue. It marks only what the
   eye should find first: the primary button, the active tab, a
   highlighted heading word in dark mode, selected text. Text on
   coral is Oxford Blue (5.6:1), except on the primary button, which
   is a deeper coral (#c14f3a) so its white label clears AA (4.7:1).
   Coral is never text on a light ground (2.7:1 on Alice Blue).

   The accent slots stay in the same cool, muted family so a tag
   never breaks the scale; the four status colours keep their hue
   (they carry meaning) but are muted to sit beside it.

   Fonts: Inter (400/500/600) and Plus Jakarta Sans (500/600/700),
   each with a system-ui fallback.
   ═══════════════════════════════════════════════════════════ */

/* ── Oxford light ── */
html[data-style='oxford'] {
	/* ── Palette ── the scale first, then cool neighbours of it. ── */
	--p-accent-1: #3a5572;
	--p-accent-2: #7a93ab;
	--p-accent-3: #4f7ca8;
	--p-accent-4: #2f6f7e;
	--p-accent-5: #5b5f97;
	--p-accent-6: #6b8199;
	--p-accent-7: #8aa6c1;
	--p-accent-8: #0c1f33;
	--p-info: #3f74b0;
	--p-success: #3f8a68;
	/* Yellow-amber, not orange: a warning must never look like the
	   coral accent. */
	--p-warn: #d9a520;
	/* A deep crimson, not a coral red: danger must never look like the
	   coral accent. */
	--p-danger: #b4233c;
	/* White ink on the solid fills, so the fill is pinned DARK (see the
	   --fill-l block in base.css). Same direction as Weirdly Perfect. */
	--p-on-accent: #ffffff;
	--fill-l: 0.5;
	--fill-toward: #000000;

	/* ── Type ── as Weirdly Perfect. ── */
	--t-h1: clamp(2rem, 1.55rem + 2vw, 2.75rem);
	--t-h2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	--t-h3: 1.125rem;
	--t-body: 0.9375rem;
	--t-lh-display: 1.1;
	--t-lh-heading: 1.25;
	--t-lh-body: 1.55;
	--t-track-display: -0.03em;
	--t-track-heading: -0.015em;

	/* ── Radius ── as Weirdly Perfect: 16px cards, 12px trays and
	   menus, 8px controls, 6px tags. ── */
	--r-xs: 0.375rem;
	--r-sm: 0.5rem;
	--r-md: 0.75rem;
	--r-lg: 1rem;

	/* ── Elevation ── Weirdly Perfect's two-layer shadows, tinted
	   Oxford Blue instead of black. ── */
	--e-control: 0 1px 2px rgba(12, 31, 51, 0.07);
	--e-input: 0 1px 2px rgba(12, 31, 51, 0.06);
	--e-raised: 0 1px 2px rgba(12, 31, 51, 0.07), 0 6px 16px -4px rgba(12, 31, 51, 0.14);
	--e-surface: 0 1px 2px rgba(12, 31, 51, 0.05), 0 12px 32px -8px rgba(12, 31, 51, 0.16);
	--e-accent: var(--e-surface);

	/* A 1px accent line hugging the control (the contrast) plus a soft
	   Beau Blue halo (the softness). Declared once: it is
	   --c-accent-derived, so it re-resolves under the dark accent. */
	--e-focus:
		0 0 0 1px var(--c-accent),
		0 0 0 4px color-mix(in srgb, #c5d4e0 80%, transparent);

	/* Resting material shadow, theme-private (shape, not elevation):
	   the edge under the pressed segment and under a card's lip. */
	--ox-lift: 0 1px 2px rgba(12, 31, 51, 0.08), 0 1px 1px rgba(12, 31, 51, 0.03);

	--bw-hair: 1px;
	--bw-base: 1px;
	--bw-thick: 2px;
	--bw-edge: 2px;

	/* ── Motion ── as Weirdly Perfect: fast and decisive. */
	--dur-fast: 0.12s;
	--dur-base: 0.2s;
	--dur-slow: 0.5s;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	/* Hover pace for buttons and cards: long enough to be seen as a
	   movement, with a strong ease-out so it still feels immediate. */
	--ox-hover: 0.28s;

	/* ── Surfaces & text ── */
	--c-bg: #f0f4f8;
	--c-surface: #ffffff;
	--c-border: #dbe4ed;
	/* Between Blue/grey and Light Navy: Blue/grey itself measures
	   2.9:1 on the Alice Blue page, just under the 3:1 a control's
	   boundary needs (WCAG SC 1.4.11). */
	--c-control-border: #6b8199;
	/* Muted text has to clear 4.5:1 on the page as well as on a card;
	   the page is the binding constraint. */
	--c-muted: #56708b;
	--c-text: #0c1f33;
	--c-text-sub: #3a5572;
	--c-dot: #dde5ee;
	--c-nav-bg: rgba(240, 244, 248, 0.85);
	--c-accent: #3a5572;
	--c-accent-2: #7a93ab;
	--c-accent-3: #c5d4e0;
	--c-on-accent: #ffffff;
	--c-grad-h1-from: var(--c-text);
	--c-grad-h1-mid: var(--c-text);
	--c-grad-h1-to: var(--c-accent);

	/* ── Theme-private surfaces ──
	   --ox-tray     the tinted well: segmented track, chips
	   --ox-pill     what sits raised inside a tray (the pressed segment)
	   --ox-inverse  the ink fill: primary button, tooltip, card footer
	   --ox-thumb    an unchecked switch's thumb
	   --ox-lip      height and radius of the card's curve into its tray */
	--ox-tray: #e3eaf1;
	--ox-pill: #ffffff;
	--ox-inverse: #0c1f33;
	--ox-on-inverse: #f0f4f8;
	--ox-thumb: #ffffff;
	--ox-lip: var(--r-md);

	/* ── The coral accent ──
	   --ox-coral is the accent itself (tab marker, selected text), with
	   Oxford Blue on it. */
	--ox-coral: #e8735a;
	--ox-on-coral: #0c1f33;

	/* The primary button carries WHITE text, which only reaches 3:1 on
	   #e8735a. Its fill is the same coral taken deeper until white
	   clears AA (4.7:1). Hover and press go deeper still, never lighter,
	   so the label never drops below 4.5:1. The fill alone clears 3:1
	   on the Alice Blue page, so it needs no outline of another shade. */
	--ox-btn: #c14f3a;
	--ox-btn-hover: #b44634;
	--ox-btn-press: #a63f2f;
	--ox-on-btn: #ffffff;
	--ox-btn-lift: 0 1px 0 0 var(--ox-btn-press);
	--ox-btn-glow: 0 1px 0 0 var(--ox-btn-press), 0 8px 20px -6px rgba(166, 63, 47, 0.45);

	/* The colour a card's label, subtitle and link icon ink from when
	   no .accent-N says otherwise. Set on <html> so it inherits. */
	--card-color: var(--c-muted);
}

/* ── Oxford dark ──
   The scale read from the dark end: a page below Oxford Blue, cards a
   step up, Beau and Alice Blue as the light ink, and the ink fill
   inverted to Alice Blue. */
html[data-style='oxford'][data-theme='dark'] {
	--c-bg: #071320;
	--c-surface: #0f2238;
	--c-border: #1f3550;
	--c-control-border: #62798f;
	--c-muted: #9db0c3;
	--c-text: #f0f4f8;
	--c-text-sub: #c5d4e0;
	--c-dot: #142a42;
	--c-nav-bg: rgba(7, 19, 32, 0.85);
	/* Lifted to a light step of the scale so it reads on the dark
	   surface; the ink on it flips to Oxford Blue. */
	--c-accent: #8aa6c1;
	--c-accent-2: #7a93ab;
	--c-accent-3: #c5d4e0;
	--c-on-accent: #0c1f33;
	--c-grad-h1-from: var(--c-text);
	--c-grad-h1-mid: var(--c-text);
	--c-grad-h1-to: #e8735a;

	--ox-tray: #16293f;
	--ox-pill: #22384f;
	--ox-inverse: #f0f4f8;
	--ox-on-inverse: #0c1f33;
	--ox-thumb: #9db0c3;

	/* In the dark the button's hover lift glows in its own colour. */
	--ox-btn-glow: 0 1px 0 0 var(--ox-btn-press), 0 8px 24px -6px rgba(232, 115, 90, 0.4);

	/* Faint text: base's dark 0.62 lands at 4.44:1 on the Oxford card,
	   just under AA; 0.65 clears it. */
	--faint-l: 0.65;

	/* Restated, not inherited: base.css's own dark --e-surface has
	   the same specificity as the light block above and loads later,
	   so it would otherwise win in dark mode. */
	--e-control: 0 1px 2px rgba(0, 0, 0, 0.4);
	--e-input: 0 1px 2px rgba(0, 0, 0, 0.4);
	--e-raised: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -4px rgba(0, 0, 0, 0.55);
	--e-surface: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -8px rgba(0, 0, 0, 0.6);
	--e-accent: var(--e-surface);
	--e-focus:
		0 0 0 1px var(--c-accent),
		0 0 0 4px color-mix(in srgb, #7a93ab 45%, transparent);
	--ox-lift: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ── Oxford dark (system preference) ── */
@media (prefers-color-scheme: dark) {
	html[data-style='oxford']:not([data-theme]) {
		--c-bg: #071320;
		--c-surface: #0f2238;
		--c-border: #1f3550;
		--c-control-border: #62798f;
		--c-muted: #9db0c3;
		--c-text: #f0f4f8;
		--c-text-sub: #c5d4e0;
		--c-dot: #142a42;
		--c-nav-bg: rgba(7, 19, 32, 0.85);
		--c-accent: #8aa6c1;
		--c-accent-2: #7a93ab;
		--c-accent-3: #c5d4e0;
		--c-on-accent: #0c1f33;
		--c-grad-h1-from: var(--c-text);
		--c-grad-h1-mid: var(--c-text);
		--c-grad-h1-to: #e8735a;

		--ox-tray: #16293f;
		--ox-pill: #22384f;
		--ox-inverse: #f0f4f8;
		--ox-on-inverse: #0c1f33;
		--ox-thumb: #9db0c3;
		--faint-l: 0.65;
		--ox-btn-glow: 0 1px 0 0 var(--ox-btn-press), 0 8px 24px -6px rgba(232, 115, 90, 0.4);

		--e-control: 0 1px 2px rgba(0, 0, 0, 0.4);
		--e-input: 0 1px 2px rgba(0, 0, 0, 0.4);
		--e-raised: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -4px rgba(0, 0, 0, 0.55);
		--e-surface: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -8px rgba(0, 0, 0, 0.6);
		--e-accent: var(--e-surface);
		--e-focus:
			0 0 0 1px var(--c-accent),
			0 0 0 4px color-mix(in srgb, #7a93ab 45%, transparent);
		--ox-lift: 0 1px 2px rgba(0, 0, 0, 0.5);
	}
}

/* ══════════════════════════════════════════════════════════
   OXFORD STYLE OVERRIDES
   Applied to html[data-style='oxford']
   ══════════════════════════════════════════════════════════ */

/* ── Type: Inter for the interface, Plus Jakarta Sans for headings
   and figures (the profile card's name and stat values). ── */
html[data-style='oxford'] body {
	font-family: 'Inter', system-ui, sans-serif;
}

html[data-style='oxford'] h1,
html[data-style='oxford'] h2,
html[data-style='oxford'] h3,
html[data-style='oxford'] h4,
html[data-style='oxford'] h5,
html[data-style='oxford'] h6,
html[data-style='oxford'] .gradient-text,
html[data-style='oxford'] .page-title,
html[data-style='oxford'] .figure,
html[data-style='oxford'] .card-foot-value,
html[data-style='oxford'] .quote-mark {
	font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
	font-weight: 600;
}

/* "SAVED VIEWS": small caps label, light tracking, grey. The colour
   goes through :where() so it stays below base's `.card .section-label`,
   which inks a card's label from --card-color (grey here by default
   too, see the token block, but still re-tintable with .accent-N). */
html[data-style='oxford'] .section-label {
	letter-spacing: 0.06em;
	font-weight: 500;
}
html[data-style='oxford'] :where(.section-label) {
	color: var(--c-muted);
}

/* ── Buttons: rounded rectangles, not pills ──
   One border width for all three so a filled and an outlined button
   standing side by side are the same height, and a line-height that
   matches .input so a button next to a field lines up. ── */
html[data-style='oxford'] .btn-primary,
html[data-style='oxford'] .btn-danger,
html[data-style='oxford'] .btn-outlined {
	padding: 0.5rem 0.875rem;
	border-width: var(--bw-base);
	border-radius: var(--r-sm);
	letter-spacing: normal;
	line-height: 1.4;
}
html[data-style='oxford'] .btn-sm {
	padding: 0.3125rem 0.625rem;
}

/* Primary is deep coral with white text: the one warm thing on the
   page. Hover deepens it a step, lifts it a pixel and lets a coral
   glow spread under it; pressing deepens it again and sets it down. */
html[data-style='oxford'] .btn-primary {
	border-color: var(--ox-btn);
	background: var(--ox-btn);
	color: var(--ox-on-btn);
	font-weight: 600;
	box-shadow: var(--ox-btn-lift);
	transition:
		background-color var(--ox-hover) var(--ease-out),
		border-color var(--ox-hover) var(--ease-out),
		box-shadow var(--ox-hover) var(--ease-out),
		transform var(--ox-hover) var(--ease-out);
}
html[data-style='oxford'] .btn-primary:hover {
	opacity: 1;
	border-color: var(--ox-btn-hover);
	background: var(--ox-btn-hover);
	box-shadow: var(--ox-btn-glow);
}
html[data-style='oxford'] .btn-primary:active {
	border-color: var(--ox-btn-press);
	background: var(--ox-btn-press);
	box-shadow: var(--ox-btn-lift);
}

/* Selected text: Oxford Blue on coral, in both modes. */
html[data-style='oxford'] ::selection {
	background: var(--ox-coral);
	color: var(--ox-on-coral);
}

/* Outlined sits on white even on the grey page, like "Profile" and
   "Send offer". Hover tints the face and firms the edge rather than
   turning the label blue. */
html[data-style='oxford'] .btn-outlined {
	background: var(--c-surface);
	transition:
		background-color var(--ox-hover) var(--ease-out),
		border-color var(--ox-hover) var(--ease-out),
		color var(--ox-hover) var(--ease-out),
		transform var(--ox-hover) var(--ease-out),
		box-shadow var(--ox-hover) var(--ease-out);
}
html[data-style='oxford'] .btn-outlined:hover {
	border-color: var(--c-text-sub);
	background: color-mix(in srgb, var(--c-text) 4%, var(--c-surface));
	color: var(--c-text);
	box-shadow: var(--e-raised);
}

/* Ghost: a text-style button with no padding, so a hover fill would hug
   the letters. Instead the label darkens to ink and an underline fades
   in beneath it. */
html[data-style='oxford'] .btn-ghost {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition:
		color var(--ox-hover) var(--ease-out),
		text-decoration-color var(--ox-hover) var(--ease-out);
}
html[data-style='oxford'] .btn-ghost:hover {
	color: var(--c-text);
	text-decoration-color: currentColor;
}

html[data-style='oxford'] .btn-icon,
html[data-style='oxford'] .theme-toggle {
	transition:
		background-color var(--ox-hover) var(--ease-out),
		border-color var(--ox-hover) var(--ease-out),
		color var(--ox-hover) var(--ease-out),
		transform var(--ox-hover) var(--ease-out),
		box-shadow var(--ox-hover) var(--ease-out);
}
html[data-style='oxford'] .btn-icon:hover,
html[data-style='oxford'] .theme-toggle:hover {
	border-color: var(--c-control-border);
	background: color-mix(in srgb, var(--c-text) 4%, var(--c-surface));
	color: var(--c-text);
}

/* Focus: base draws --e-focus on its form controls, tabs and segments,
   but leaves buttons to the browser's own outline, which follows the OS
   accent colour (orange, graphite…) rather than this theme's blue. The
   kit's three-part recipe brings buttons in line with everything else. */
html[data-style='oxford'] .btn-primary:focus-visible,
html[data-style='oxford'] .btn-danger:focus-visible,
html[data-style='oxford'] .btn-outlined:focus-visible,
html[data-style='oxford'] .btn-ghost:focus-visible,
html[data-style='oxford'] .btn-icon:focus-visible,
html[data-style='oxford'] .theme-toggle:focus-visible {
	outline: var(--o-focus);
	outline-offset: var(--o-focus-offset);
	box-shadow: var(--e-focus);
}

/* Hover lift and press feedback. Motion-gated: under reduced motion the
   colour and shadow changes still happen, but nothing moves. The
   :active rule comes after :hover, so pressing replaces the lift with
   the press. */
@media (prefers-reduced-motion: no-preference) {
	html[data-style='oxford'] .btn-primary:hover,
	html[data-style='oxford'] .btn-danger:hover,
	html[data-style='oxford'] .btn-outlined:hover,
	html[data-style='oxford'] .btn-icon:hover,
	html[data-style='oxford'] .theme-toggle:hover {
		transform: translateY(-1px);
	}
	html[data-style='oxford'] .btn-primary:active,
	html[data-style='oxford'] .btn-danger:active,
	html[data-style='oxford'] .btn-outlined:active,
	html[data-style='oxford'] .btn-icon:active {
		transform: scale(0.97);
	}
}

/* ── Cards: a gentle lift on hover ──
   The card rises 3px, a soft shadow spreads under it and its hairline
   firms toward the accent. All three ease together at the hover pace.
   Under reduced motion the shadow and edge still change; the card
   does not move. */
html[data-style='oxford'] .card,
html[data-style='oxford'] .link-card {
	transition:
		transform var(--ox-hover) var(--ease-out),
		box-shadow var(--ox-hover) var(--ease-out),
		border-color var(--ox-hover) var(--ease-out);
}
html[data-style='oxford'] .card:hover,
html[data-style='oxford'] .link-card:hover {
	transform: none;
	box-shadow: var(--e-surface);
}
/* A danger card keeps its own red edge. */
html[data-style='oxford'] .card:not(.card-danger):hover,
html[data-style='oxford'] .link-card:hover {
	border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
}
@media (prefers-reduced-motion: no-preference) {
	html[data-style='oxford'] .card:hover,
	html[data-style='oxford'] .link-card:hover {
		transform: translateY(-3px);
	}
}
html[data-style='oxford'] .card-static:hover,
html[data-style='oxford'] .link-card-static:hover,
html[data-style='oxford'] .card-static:hover:hover,
html[data-style='oxford'] .link-card-static:hover:hover {
	transform: none;
	border-color: var(--c-border);
	box-shadow: none;
}

/* ── The tray ──
   The card's footer bands become a grey well, and the white card
   curves into it. Three parts:

   1. The band. --card-band-bg is the kit's own hook for the band fill.
      It stays translucent (text-over-transparent, like base) so a tinted
      card's band darkens that tint instead of covering it in neutral
      grey.
   2. An upward copy of the band, as a box-shadow offset by the lip
      height. An outer shadow is clipped to outside the border box, so
      only the part ABOVE the band paints: a strip of tray behind where
      the lip goes.
   3. The lip: a ::before with the card's own surface, a hairline and
      rounded bottom corners, sitting on that strip. Its sides overlap
      the card's border by exactly --bw-base, so the hairline peels
      inward from the card's edge. That reads as a white card resting in
      a grey tray, from plain .card-sub-foot / .card-foot markup.

   The lip lives in the card's own gap above the band, so it never
   covers content as long as --ox-lip (12px) is no taller than
   --card-gap (16px). ── */
html[data-style='oxford'] .card {
	--card-band-bg: color-mix(in srgb, var(--c-text) 6.5%, transparent);
}

html[data-style='oxford'] .card-sub-foot,
html[data-style='oxford'] .card-foot-quiet {
	position: relative;
	border-top: none;
	box-shadow: 0 calc(-1 * var(--ox-lip)) 0 0 var(--card-band-bg);
}

/* The figure the card adds up to: ink, like the tooltip and the
   primary button, rather than base's accent. */
html[data-style='oxford'] .card-foot {
	position: relative;
	background: var(--ox-inverse);
	color: var(--ox-on-inverse);
	box-shadow: 0 calc(-1 * var(--ox-lip)) 0 0 var(--ox-inverse);
}
/* Restated after .card-foot, which it also matches: the `background`
   shorthand above would otherwise wipe the band's gradient layer. */
html[data-style='oxford'] .card-foot-quiet {
	background: none;
	background-image: linear-gradient(var(--card-band-bg), var(--card-band-bg));
	color: var(--c-text);
	box-shadow: 0 calc(-1 * var(--ox-lip)) 0 0 var(--card-band-bg);
}

html[data-style='oxford'] .card-sub-foot::before,
html[data-style='oxford'] .card-foot::before {
	content: '';
	position: absolute;
	right: calc(-1 * var(--bw-base));
	bottom: 100%;
	left: calc(-1 * var(--bw-base));
	box-sizing: border-box;
	height: var(--ox-lip);
	border: var(--bw-hair) solid var(--c-border);
	border-top: none;
	border-radius: 0 0 var(--ox-lip) var(--ox-lip);
	background: var(--c-surface);
	box-shadow: var(--ox-lift);
	pointer-events: none;
}

/* Docked under a sub-footer, the footer is the same tray continuing,
   not a second card edge: no lip, no upward strip, a hairline between. */
html[data-style='oxford'] .card-sub-foot + .card-foot {
	border-top: var(--bw-hair) solid var(--c-border);
	box-shadow: none;
}
html[data-style='oxford'] .card-sub-foot + .card-foot::before {
	content: none;
}

/* A danger card's surface is tinted and its border is --bw-thick, so a
   white lip at --bw-base would be the wrong colour and the wrong width.
   Its bands fall back to a plain hairline-topped band. */
html[data-style='oxford'] .card-danger .card-sub-foot,
html[data-style='oxford'] .card-danger .card-foot {
	border-top: var(--bw-hair) solid var(--c-border);
	box-shadow: none;
}
html[data-style='oxford'] .card-danger .card-sub-foot::before,
html[data-style='oxford'] .card-danger .card-foot::before {
	content: none;
}

/* ── Tags: tinted, no keyline ──
   The source's FINANCE / VC / PAYROLL chips are a soft fill with
   coloured caps, and no visible border. The border is made transparent
   rather than removed, so the box keeps its size and the fill paints
   under it (background-clip is border-box). .tag-strong is covered
   too, and its solid fill shows through the same way. A bare .tag
   keeps its hairline: with no tint, that line is its only shape. */
html[data-style='oxford'] .tag {
	padding: 0.125rem 0.4375rem;
	border-radius: var(--r-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
}
html[data-style='oxford'] .tag[class*='tag-accent-'],
html[data-style='oxford'] .tag-success,
html[data-style='oxford'] .tag-warn,
html[data-style='oxford'] .tag-danger,
html[data-style='oxford'] .tag-info {
	border-color: transparent;
}

/* "in 2 days": a grey well instead of a hairline pill. */
html[data-style='oxford'] .chip {
	border-color: transparent;
	background: var(--ox-tray);
}

/* ── Segmented control: iOS-style ──
   A grey track, with the pressed segment as a raised white pill
   carrying ink, not an accent fill. This is the Custom / Safe /
   Standard / Full picker from the source. The pill's ring is drawn
   as a shadow so it costs no layout. */
html[data-style='oxford'] .segmented {
	gap: 0.125rem;
	padding: 0.1875rem;
	border-color: transparent;
	background: var(--ox-tray);
}
html[data-style='oxford'] .segment {
	padding: 0.375rem 0.75rem;
	border-radius: var(--r-sm);
	transition:
		background var(--dur-base) var(--ease-standard),
		box-shadow var(--dur-base) var(--ease-standard),
		color var(--dur-base) var(--ease-standard);
}
html[data-style='oxford'] .segmented .segment[aria-pressed='true'] {
	background: var(--ox-pill);
	color: var(--c-text);
	font-weight: 600;
	box-shadow:
		0 0 0 var(--bw-hair) var(--c-border),
		var(--ox-lift);
}
/* The pill's resting shadow outranks base's focus rule, so focus is
   restated or a focused pressed segment shows no ring. */
html[data-style='oxford'] .segmented .segment[aria-pressed='true']:focus-visible {
	box-shadow: var(--e-focus);
}

/* ── Switch: a white thumb on the blue track, like the source ──
   Base paints the thumb --c-surface, which is right on a light track and
   wrong in dark mode, where it becomes a dark disc on a dark track (off)
   and on the blue (on). Off takes --ox-thumb (white / mid-grey). On takes
   --c-on-accent, the ink already verified against the accent fill. */
html[data-style='oxford'] .switch::before {
	background: var(--ox-thumb);
}
html[data-style='oxford'] .switch:checked::before {
	background: var(--c-on-accent);
}

/* ── Inputs: matched to the button height ── */
html[data-style='oxford'] .input {
	padding: 0.5rem 0.75rem;
}
html[data-style='oxford'] .select {
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
	line-height: 1.4;
}

/* ── Tabs ──
   Horizontal: an ink underline, not an accent one (the accent is kept
   for state). Vertical, the CRM sidebar: rounded rows inset from the
   rail. The active one gets a grey fill and drops the edge marker.
   Fill, weight and ink together carry the state. */
html[data-style='oxford'] .tab-active::after {
	background: var(--ox-coral);
}
html[data-style='oxford'] .tabs-vertical {
	gap: 0.125rem;
}
/* Inset on both sides, not just the rail side: in an icon-only rail
   the icon is centred in the row, so a one-sided margin pushes the pill
   off-centre beneath it. */
html[data-style='oxford'] .tabs-vertical .tab {
	margin-inline: var(--sp-2);
	padding: 0.4375rem var(--sp-3);
	border-radius: var(--r-sm);
}
html[data-style='oxford'] .tabs-vertical .tab:hover {
	background: color-mix(in srgb, var(--c-text) 4%, transparent);
}
html[data-style='oxford'] .tabs-vertical .tab-active,
html[data-style='oxford'] .tabs-vertical .tab-active:hover {
	background: color-mix(in srgb, var(--c-text) 7%, transparent);
}
html[data-style='oxford'] .tabs-vertical .tab-active::after {
	background: transparent;
}

/* ── Tooltip: the dark chip from the expense chart ──
   The short label only. :not(.tooltip-rich *) leaves the rich variant
   as base's light surface with full-ink emphasis. An ink fill there
   would put its <b> on the same ink, and a paragraph in a black box is
   the "wall of colour" base's note warns about. */
html[data-style='oxford'] .tooltip-bubble:not(.tooltip-rich *) {
	padding: 0.3125rem 0.625rem;
	background: var(--ox-inverse);
	color: var(--ox-on-inverse);
}

/* ── Hover transitions everywhere ──
   Base already eases most hover states (buttons, cards, inputs, tabs,
   segments, pages, menu items). These are the ones it switches
   instantly; each gets exactly the properties its :hover rule changes,
   at the theme's own pace, so no hover in this theme snaps.

   Table rows repaint through --table-cell-bg on the <tr>, so the ease
   goes on the cells' background-color. background-image is left alone:
   that layer carries the derived/flash tints, which have their own
   timing. */
html[data-style='oxford'] .table th,
html[data-style='oxford'] .table td {
	transition: background-color var(--dur-base) var(--ease-standard);
}
html[data-style='oxford'] .cell-select,
html[data-style='oxford'] .tag-button {
	transition:
		border-color var(--dur-base) var(--ease-standard),
		background-color var(--dur-base) var(--ease-standard);
}
html[data-style='oxford'] .disclosure > summary,
html[data-style='oxford'] .row-actions button,
html[data-style='oxford'] .breadcrumbs a,
html[data-style='oxford'] .page-back {
	transition: color var(--dur-base) var(--ease-standard);
}
/* Base eases .add-slot's colour and border at --dur-fast; matched to the
   rest of the theme's hovers. */
html[data-style='oxford'] .add-slot {
	transition:
		color var(--dur-base) var(--ease-standard),
		border-color var(--dur-base) var(--ease-standard);
}
