/* Fox component classes. Colours, spacing and sizes come from tokens.json (--fox-*). */
.fox { margin: 0; background: var(--fox-bg); color: var(--fox-text); font-family: var(--font-sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.fox *, .fox *::before, .fox *::after { box-sizing: border-box; border-radius: var(--fox-radius); }
.fox a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: var(--fox-faint); text-underline-offset: 3px; transition: text-decoration-color 160ms; }
.fox a:not([class]):hover { text-decoration-color: var(--fox-text); }
.fox :focus-visible { outline: var(--fox-hairline) solid var(--fox-text); outline-offset: 2px; }
.fox ::selection { background: var(--fox-text); color: var(--fox-bg); }

/* Type helpers the token classes cannot express */
.fox-display, .fox-title, .fox-row-text { margin: 0; }
.fox-label, .fox-section-label, .fox-button, .fox-action, .fox-status, .fox-index-row__num, .fox-index-row__detail {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fox-muted { color: var(--fox-muted); }

.fox-hairline { height: var(--fox-hairline); background: var(--fox-line); border: 0; margin: 0; }

/* Top bar and wordmark */
.fox-topbar { height: var(--fox-topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--fox-space-5); border-bottom: var(--fox-hairline) solid var(--fox-line); }
.fox-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 700; letter-spacing: 3.2px; text-transform: uppercase; color: var(--fox-text); }
.fox-wordmark img { width: 28px; height: 28px; display: block; }

/* Section label: a label, 10 above a rule that runs edge to edge */
.fox-section-label { display: block; color: var(--fox-muted); padding: 0 var(--fox-space-5) 10px; border-bottom: var(--fox-hairline) solid var(--fox-line); }

/* Index row */
.fox-index-row { display: flex; align-items: center; width: 100%; padding: var(--fox-space-4) var(--fox-space-5); border: 0; border-bottom: var(--fox-hairline) solid var(--fox-line); background: transparent; color: var(--fox-text); text-align: left; text-decoration: none; cursor: pointer; transition: background-color 160ms; }
.fox-index-row:hover, .fox-index-row.is-pressed { background: var(--fox-surface); }
.fox-index-row:active { background: var(--fox-surface); transition: none; }
.fox-index-row__num { flex: 0 0 44px; color: var(--fox-muted); }
.fox-index-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--fox-space-1); }
.fox-index-row__title { font-family: var(--font-sans); font-size: 20px; line-height: 1.2; font-weight: 400; letter-spacing: -0.3px; }
.fox-index-row__detail { color: var(--fox-muted); }
.fox-index-row__arrow { flex: 0 0 auto; color: var(--fox-muted); font-size: 20px; line-height: 1; }
.fox-index-row[aria-disabled="true"] { cursor: default; background: transparent; }
.fox-index-row[aria-disabled="true"] .fox-index-row__arrow { color: var(--fox-faint); }

/* Button and text action */
.fox-button { display: inline-flex; align-items: center; justify-content: center; height: var(--fox-control-height); padding: 0 var(--fox-space-4); border: var(--fox-hairline) solid var(--fox-text); background: transparent; color: var(--fox-text); cursor: pointer; transition: background-color 160ms; }
.fox-button:hover { background: var(--fox-surface); }
.fox-button:active { background: var(--fox-surface); transition: none; }
.fox-button--filled, .fox-button--filled:hover, .fox-button--filled:active { background: var(--fox-text); color: var(--fox-bg); }
.fox-button:disabled, .fox-button[aria-disabled="true"] { border-color: var(--fox-faint); color: var(--fox-faint); background: transparent; cursor: default; }
.fox-action { display: inline-block; padding: 14px 0; border: 0; background: transparent; color: var(--fox-text); cursor: pointer; }

/* Status tag */
.fox-status { display: inline-flex; align-items: center; gap: var(--fox-space-2); color: var(--fox-text); }
.fox-status::before { content: ""; flex: 0 0 auto; width: var(--fox-dot); height: var(--fox-dot); border-radius: 50%; background: var(--fox-muted); }
.fox-status--ok::before { background: var(--fox-ok); }
.fox-status--alert::before { background: var(--fox-alert); }
.fox-status--muted::before { background: var(--fox-muted); }
.fox-status--off::before { background: var(--fox-faint); }

/* Text field */
.fox-field { display: block; width: 100%; padding: 0 0 var(--fox-space-3); border: 0; border-bottom: var(--fox-hairline) solid var(--fox-line); background: transparent; color: var(--fox-text); caret-color: var(--fox-text); font-family: var(--font-mono); font-size: 20px; line-height: 1.5; transition: border-color 160ms; }
.fox-field:focus, .fox-field:focus-visible { outline: 0; border-bottom-color: var(--fox-text); }
.fox-field::placeholder { color: var(--fox-faint); }

/* Value row with stepper */
.fox-value-row { display: flex; align-items: center; justify-content: space-between; padding: var(--fox-space-4) var(--fox-space-5); border-bottom: var(--fox-hairline) solid var(--fox-line); }
.fox-value-row__name { font-family: var(--font-sans); font-size: 20px; line-height: 1.2; font-weight: 400; letter-spacing: -0.3px; }
.fox-stepper { display: inline-flex; align-items: center; }
.fox-stepper__arrow { width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--fox-muted); font-family: var(--font-sans); font-size: 26px; line-height: 1; cursor: pointer; }
.fox-stepper__value { font-family: var(--font-mono); font-size: 16px; line-height: 1.5; padding: 0 var(--fox-space-2); }

/* Progress: a one-pixel line moving along the track */
.fox-progress { position: relative; height: var(--fox-hairline); background: var(--fox-line); overflow: hidden; }
.fox-progress::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--fox-text); animation: fox-progress 1.6s linear infinite; }
@keyframes fox-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Alert strip */
.fox-alert-strip { display: block; width: 100%; padding: var(--fox-space-4) var(--fox-space-5); border: 0; border-top: var(--fox-hairline) solid var(--fox-alert); background: transparent; color: var(--fox-alert); font-family: var(--font-sans); font-size: 15px; line-height: 1.45; text-align: left; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .fox *, .fox *::before, .fox *::after { transition: none !important; }
  .fox-progress::after { animation: none; transform: translateX(75%); }
}

/* ===== Websites ===== */
/* The originals of the two inks, so a light band can swap them */
.fox { --fox-bg-0: var(--fox-bg); --fox-text-0: var(--fox-text); --fox-muted-0: var(--fox-muted); }

/* Light band: fox-text as ground, fox-bg as ink */
.fox-invert { --fox-bg: var(--fox-text-0); --fox-text: var(--fox-bg-0); --fox-muted: var(--fox-muted-invert); --fox-line: var(--fox-muted-0); --fox-faint: var(--fox-muted-0); --fox-surface: var(--fox-surface-invert); background: var(--fox-bg); color: var(--fox-text); }

/* Media slot: a photograph or video, square, cropped to fill */
.fox-media { position: relative; display: block; overflow: hidden; background: var(--fox-line); }
.fox-media > img, .fox-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fox-media--16x9 { aspect-ratio: 16 / 9; }
.fox-media--scrim::after { content: ""; position: absolute; inset: 0; background: var(--fox-scrim); }

/* Site nav */
.fox-sitenav { height: var(--fox-topbar-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--fox-space-5); padding: 0 var(--fox-space-5); border-bottom: var(--fox-hairline) solid var(--fox-line); }
.fox-sitenav__links { display: flex; gap: var(--fox-space-5); margin: 0; padding: 0; list-style: none; }
.fox .fox-sitenav__links a { font-size: 15px; line-height: 1.45; color: var(--fox-muted); text-decoration: none; transition: color 160ms; }
.fox .fox-sitenav__links a:hover, .fox .fox-sitenav__links a[aria-current] { color: var(--fox-text); }
.fox-sitenav__end { justify-self: end; }
@media (max-width: 719px) { .fox-sitenav { grid-template-columns: 1fr auto; } .fox-sitenav__links { display: none; } }

/* Media hero */
.fox-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 70vh; padding: var(--fox-space-7) var(--fox-space-5); border-bottom: var(--fox-hairline) solid var(--fox-line); }
.fox-hero > .fox-media { position: absolute; inset: 0; }
.fox-hero__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--fox-space-5); max-width: var(--fox-measure); }
@media (min-width: 900px) { .fox-hero .fox-display { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.03em; } }

/* Tile grid */
.fox-tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: var(--fox-space-2); padding: var(--fox-space-2) var(--fox-space-5); }
.fox .fox-tile { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--fox-space-3); padding: var(--fox-space-4); color: var(--fox-text); text-decoration: none; overflow: hidden; }
.fox-tile > .fox-media { position: absolute; inset: 0; }
.fox-tile__name, .fox-tile__arrow { position: relative; font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.3px; }
.fox-tile__arrow { color: var(--fox-muted); font-weight: 400; transition: color 160ms; }
.fox-tile:hover .fox-tile__arrow { color: var(--fox-text); }
.fox-tile--wide { grid-column: 1 / -1; }
.fox-tile--tall { grid-row: span 2; }
@media (max-width: 719px) { .fox-tiles { grid-template-columns: 1fr; } .fox-tile--tall { grid-row: auto; } }

/* Feature band */
.fox-feature { display: grid; grid-template-columns: 2fr 3fr; gap: var(--fox-space-5); padding: var(--fox-space-7) var(--fox-space-5); border-top: var(--fox-hairline) solid var(--fox-line); }
.fox-feature__text { display: flex; flex-direction: column; justify-content: space-between; gap: var(--fox-space-6); }
@media (max-width: 719px) { .fox-feature { grid-template-columns: 1fr; } }

/* News list */
.fox-news__head { display: flex; align-items: baseline; justify-content: space-between; padding: var(--fox-space-7) var(--fox-space-5) var(--fox-space-3); border-bottom: var(--fox-hairline) solid var(--fox-line); }
.fox .fox-news__row { display: grid; grid-template-columns: 132px 1fr auto; align-items: baseline; gap: var(--fox-space-5); padding: var(--fox-space-4) var(--fox-space-5); border-bottom: var(--fox-hairline) solid var(--fox-line); color: var(--fox-text); text-decoration: none; transition: background-color 160ms; }
.fox-news__row:hover { background: var(--fox-surface); }
.fox-news__date, .fox-news__more { font-family: var(--font-mono); font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; color: var(--fox-muted); }
.fox-news__title { font-size: 20px; line-height: 1.2; letter-spacing: -0.3px; }
.fox-news__row:hover .fox-news__more { color: var(--fox-text); }
@media (max-width: 719px) { .fox .fox-news__row { grid-template-columns: 1fr; gap: var(--fox-space-2); } }

/* Site footer */
.fox-footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--fox-space-7) var(--fox-space-5); padding: var(--fox-space-7) var(--fox-space-5) var(--fox-space-5); border-top: var(--fox-hairline) solid var(--fox-line); }
.fox-footer__col { display: flex; flex-direction: column; gap: var(--fox-space-2); margin: 0; padding: 0; list-style: none; }
.fox-footer__col .fox-label { color: var(--fox-muted); margin-bottom: var(--fox-space-2); }
.fox .fox-footer__col a { color: var(--fox-text); text-decoration: none; }
.fox .fox-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--fox-text); }
.fox-footer__legal { grid-column: 1 / -1; color: var(--fox-muted); }
@media (max-width: 719px) { .fox-footer { grid-template-columns: 1fr 1fr; } }
