/* ==========================================================================
   BIOS design system · 3/5 · components
   Header & navigation · footer · page head · buttons · fields · panels ·
   badges · alerts · empty states · tables · tabs & filters · modals ·
   timeline · prose · disclosure · pagination · stats · ornaments
   ========================================================================== */

/* ---------- header & navigation ----------
   The original BIOS bar on every page, the homepage included: the logo on the left, the page links in
   small spaced capitals, centred so they sit in the same place on every page, and on the right Login or
   the Menu. The Menu is a small panel hung under its button with "Your BIOS" (Dashboard, Admin, Profile…);
   on narrow screens, where the centred links fold away, it lists the pages as well. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 230, 216, .94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(243, 230, 216, .82); backdrop-filter: blur(8px) saturate(1.1); } }
.site-header__bar {
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto; align-items: center; column-gap: var(--s-4);
  min-height: var(--header-h);
  max-width: 100rem; margin-inline: auto; padding-inline: var(--gutter);
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.brand__logo { display: block; flex: none; width: 6.2rem; height: auto; aspect-ratio: 322 / 162; overflow: visible; --lg-stroke: 3.6; }
.brand__sub { display: none; font: 500 .62rem/1.25 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 100rem) { .brand__sub { display: block; } }
.brand:hover { color: var(--ink); }

/* the logo, wherever it appears (see #bios-logo in partials/sprite.html) */
.lg-glyph { fill: none; stroke: var(--lg-ink, #16120f); stroke-width: var(--lg-stroke, 2.6); stroke-linejoin: miter; stroke-miterlimit: 8; }
.lg-line { stroke: #b0793a; stroke-width: calc(var(--lg-stroke, 2.6) * .62); stroke-opacity: .72; }
.bios-logo { display: block; width: 8rem; height: auto; aspect-ratio: 322 / 162; overflow: visible; }

.nav-primary { display: none; min-width: 0; }
.nav-primary ul, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-primary ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem clamp(1rem, 2vw, 2rem); }
.nav-primary li { margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .25rem 0;
  font: 500 .7rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--ink); border-bottom-color: currentColor; }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-soft); }
.nav-link--danger { color: var(--bad-ink); }

.nav-actions { justify-self: end; position: relative; display: flex; align-items: center; gap: var(--s-2); }
.nav-login { min-height: 2.4rem; padding-inline: 1rem; }

/* the Menu button: the original pill, with lines that fold into a cross while the menu is open */
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.4rem; padding: .3rem .8rem;
  border: 1px solid var(--rule-2); border-radius: var(--btn-radius); background: var(--paper-2); color: var(--ink);
  font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav-toggle:hover { border-color: var(--rule-3); }
.nav-toggle[aria-expanded="true"] { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.nav-toggle__icon, .nav-toggle__icon > span, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; }
.nav-toggle__icon { position: relative; flex: none; width: 1rem; height: .7rem; }
.nav-toggle__icon > span, .nav-toggle__icon::before, .nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, top .3s cubic-bezier(.2, .8, .2, 1);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon > span { top: calc(50% - .75px); }
.nav-toggle__icon::after { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: calc(50% - .75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: calc(50% - .75px); transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span { opacity: 0; transform: scaleX(0); }

/* the menu: a small sheet of the same paper, hung from its button */
.nav-menu {
  position: absolute; top: calc(100% + .6rem); right: 0; z-index: 45;
  width: min(17.5rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--header-h) - 1.5rem); max-height: calc(100dvh - var(--header-h) - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-2);
  background: radial-gradient(120% 90% at 100% 0%, rgba(240, 214, 160, .24), transparent 60%), var(--paper-2);
  border: 1px solid var(--rule-2); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-2);
  transform-origin: calc(100% - 2.4rem) 0;
  opacity: 0; transform: translateY(-.4rem) scale(.965);
  transition: opacity .18s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}
.nav-menu.is-open { opacity: 1; transform: none; }
.nav-menu::before {
  /* where life meets computation: a two-tone hairline along the top edge */
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: -1px; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #c99343, #8fb0e6);
}
.nav-menu__group + .nav-menu__group { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--rule); }
.nav-menu__title {
  display: flex; align-items: center; gap: .5rem; margin: 0; padding: .5rem .75rem .35rem;
  font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.nav-menu__o { width: .95rem; height: .95rem; flex: none; --o-stroke: 7; overflow: visible; color: var(--ink-2); }
.nav-menu__who { padding-bottom: .5rem; margin-bottom: .3rem; border-bottom: 1px solid var(--rule); }
.nav-menu__name { margin: 0; padding: 0 .75rem; font: 500 var(--fs-sm)/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.nav-menu__mail { margin: .1rem 0 0; padding: 0 .75rem; font: 500 var(--fs-xs)/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.nav-menu li { margin: 0; opacity: 0; transform: translateY(-.3rem); transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.nav-menu.is-open li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 28ms + 50ms); }
.nav-menu__link {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: 2.75rem; padding: .5rem .75rem; border-radius: var(--radius-sm);
  font: 500 var(--fs-sm)/1.3 var(--sans); color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-menu__link::after { content: "→"; font-size: .9em; color: var(--gold-text); opacity: 0; transform: translateX(-.35rem); transition: opacity .2s ease, transform .25s ease; }
.nav-menu__link:hover { background: rgba(74, 48, 28, .07); color: var(--ink); }
.nav-menu__link:hover::after, .nav-menu__link:focus-visible::after { opacity: 1; transform: none; }
.nav-menu__link[aria-current="page"] { background: rgba(207, 152, 68, .16); color: var(--ink); }
.nav-menu__link[aria-current="page"]::after { content: "•"; opacity: 1; transform: none; }
.nav-menu__end { margin-top: .3rem !important; padding-top: .3rem; border-top: 1px solid var(--rule); }
.nav-menu__link--danger { color: var(--bad-ink); }
.nav-menu__link--danger:hover { background: rgba(142, 42, 27, .08); color: var(--danger-hover); }
.nav-menu__link--danger::after { color: currentColor; }

/* without JavaScript the Menu still opens: on hover, and while focus is inside it */
.no-js .nav-actions:hover > .nav-menu.hidden, .no-js .nav-actions:focus-within > .nav-menu.hidden { display: block !important; opacity: 1; transform: none; }
.no-js .nav-menu { top: 100%; }  /* no gap to cross between the button and the panel */
.no-js .nav-menu li { opacity: 1; transform: none; }

/* Wide screens: the page links sit in the bar and leave the Menu, which keeps only "Your BIOS". With more than the
   usual nine links (the project gallery pages), the header is marked --long and waits for a wider screen (100rem). */
@media (min-width: 76rem) {
  .site-header:not(.site-header--long) .site-header__bar { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .site-header:not(.site-header--long) .nav-primary { display: block; }
  .site-header:not(.site-header--long) .nav-toggle--guest { display: none; }
  .site-header:not(.site-header--long) .nav-menu__group--pages { display: none; }
  .site-header:not(.site-header--long) .nav-menu__group--pages + .nav-menu__group { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (min-width: 100rem) {
  .site-header--long .site-header__bar { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .site-header--long .nav-primary { display: block; }
  .site-header--long .nav-toggle--guest { display: none; }
  .site-header--long .nav-menu__group--pages { display: none; }
  .site-header--long .nav-menu__group--pages + .nav-menu__group { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 26rem) { .brand__logo { width: 5.2rem; } }
@media (max-width: 22rem) {
  /* visitors on the narrowest phones see Login and the Menu's lines; the word stays for screen readers */
  .nav-toggle--guest { padding-inline: .8rem; }
  .nav-toggle--guest .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-menu li, .nav-link, .nav-menu__link::after,
  .nav-toggle__icon > span, .nav-toggle__icon::before, .nav-toggle__icon::after { transition: none !important; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--rule); background: rgba(236, 222, 207, .6); }
.site-footer__inner { max-width: 76rem; margin-inline: auto; padding: var(--s-7) var(--gutter) var(--s-6); display: grid; gap: var(--s-5); }
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: end; } }
.site-footer__logo { display: block; width: 7.4rem; height: auto; aspect-ratio: 322 / 162; overflow: visible; --lg-stroke: 3.1; }
.site-footer__line { font: 500 var(--fs-lg)/1.35 var(--serif); color: var(--ink-2); }
.site-footer__line strong { font: 500 .78rem/1 var(--sans); letter-spacing: .28em; }
.site-footer__small { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }
.site-footer__links li + li { margin-top: 0; }
.site-footer__links a { font: 500 var(--fs-xs)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__links button { padding: 0; border: 0; background: none; font: 500 var(--fs-xs)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.site-footer__links button:hover { color: var(--ink); text-decoration: underline; }
.site-footer__links a, .site-footer__links button { display: inline-flex; align-items: center; min-height: 1.5rem; }   /* 24 px targets */

/* ---------- page head ---------- */
.page-head { position: relative; display: grid; gap: var(--s-5); align-items: end; }
.page-head__text > * + * { margin-top: var(--s-3); }
.page-head__text h1 { margin-top: var(--s-3); }
.page-head .lede { max-width: 42rem; }
.page-head__actions { margin-top: var(--s-5) !important; }
.eyebrow {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow__o { width: 1.05rem; height: 1.05rem; flex: none; color: var(--ink-2); --o-stroke: 7; overflow: visible; fill: none; }
.eyebrow a { color: inherit; }
.lede { font: 500 clamp(1.15rem, 1.8vw, 1.4rem)/1.45 var(--serif); color: var(--ink-2); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.section-title h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.section-title__meta { font: 400 var(--fs-sm)/1.4 var(--sans); color: var(--ink-3); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.back-link::before { content: "←"; font-family: var(--sans); letter-spacing: 0; }
.back-link:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-edge: var(--rule-3);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.75rem; padding: .6rem 1.25rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-edge); border-radius: var(--btn-radius);
  font: 500 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer; max-width: 100%; text-wrap: balance;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { color: var(--btn-fg); border-color: var(--ink); background-color: rgba(74, 48, 28, .06); }
.btn--primary { --btn-bg: var(--ink); --btn-fg: #f7efe6; --btn-edge: var(--ink); }
.btn--primary:hover { background-color: #3a2e25; border-color: #3a2e25; color: #fff; }
.world-os .btn--primary, .world-forge .btn--primary, .world-admin .btn--primary { --btn-bg: #1e2433; --btn-edge: #1e2433; }
.world-os .btn--primary:hover, .world-forge .btn--primary:hover, .world-admin .btn--primary:hover { background-color: #2c3548; border-color: #2c3548; }
.btn--secondary { --btn-bg: var(--paper-2); --btn-edge: var(--rule-3); }
.btn--ghost { --btn-edge: transparent; padding-inline: .6rem; }
.btn--ghost:hover { border-color: transparent; background-color: rgba(74, 48, 28, .07); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-edge: var(--danger); }
.btn--danger:hover { background-color: var(--danger-hover); border-color: var(--danger-hover); color: #fff; }
.btn--danger-outline { --btn-fg: var(--bad-ink); --btn-edge: var(--bad-edge); }
.btn--danger-outline:hover { color: #fff; background-color: var(--danger); border-color: var(--danger); }
.btn--success { --btn-bg: #2f5a2b; --btn-fg: #fff; --btn-edge: #2f5a2b; }
.btn--success:hover { background-color: #244722; border-color: #244722; color: #fff; }
.btn--on { --btn-bg: var(--ok-bg); --btn-fg: var(--ok-ink); --btn-edge: var(--ok-edge); }
.btn--sm { min-height: 2.25rem; padding: .4rem .85rem; font-size: .7rem; }
.btn--lg { min-height: 3.25rem; padding: .85rem 1.8rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn__o { width: .85em; height: .85em; flex: none; overflow: visible; fill: none; --o-stroke: 9; }
.btn-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.btn-link:hover { color: var(--ink); }
.btn-link--danger { color: var(--bad-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.actions form { display: inline-flex; margin: 0; }

/* ---------- fields ---------- */
.form { display: grid; align-content: start; gap: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5) var(--s-5); }
@media (min-width: 42rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid > .span-full, .form-grid > .field--full { grid-column: 1 / -1; } }
.field { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.label, .form-label, .field > label:not(.check), .field__label {
  display: block; font: 500 var(--fs-sm)/1.35 var(--sans); color: var(--ink); letter-spacing: .01em;
}
.world-os .label, .world-os .form-label, .world-forge .label, .world-forge .form-label, .world-admin .label, .world-admin .form-label,
.world-admin .field > label:not(.check) { font: 500 .8rem/1.35 var(--mono); letter-spacing: .02em; }
.label .req, .form-label .req { color: var(--bad-ink); }
.hint, .field__hint { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.45; }
.field__error, .error-text { font-size: var(--fs-sm); font-weight: 500; color: var(--bad-ink); }
.check { display: inline-flex; align-items: flex-start; gap: .6rem; min-height: 2rem; padding: .2rem 0; font-size: var(--fs-md); color: var(--ink-2); cursor: pointer; line-height: 1.4; }
.check input { margin-top: .12rem; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.form fieldset > legend { margin-bottom: var(--s-4); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-top: var(--s-2); }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); }
.inline-form > .field { flex: 1 1 12rem; }
.input-group { display: flex; gap: var(--s-2); align-items: stretch; }
.input-group > input { min-width: 0; flex: 1; }

/* ---------- panels & cards ---------- */
.panel {
  position: relative; padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--panel-radius);
  box-shadow: var(--shadow-1);
}
.panel > * + * { margin-top: var(--s-4); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--tight { padding: var(--s-4); }
.panel--quiet { background: rgba(247, 239, 230, .55); box-shadow: none; }
.panel--well { background: var(--paper-3); box-shadow: none; }
.panel--accent { border-top: 2px solid var(--accent-soft); }
.panel--warn { background: #fbf1dc; border-color: var(--pending-edge); }
.panel--danger { border-color: var(--bad-edge); }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.panel__title { font: 500 1.35rem/1.2 var(--serif); color: var(--heading); }
.panel__kicker { font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.panel__foot { padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.card {
  position: relative; display: block; padding: var(--s-4) var(--s-5);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--panel-radius);
}
.card > * + * { margin-top: var(--s-2); }
.card--link { color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card--link:hover { border-color: var(--rule-3); box-shadow: var(--shadow-1); color: inherit; }
.card__title { font: 500 1.2rem/1.25 var(--serif); color: var(--heading); }
.card__meta { font-size: var(--fs-sm); color: var(--ink-3); }
.list-plain { list-style: none; padding: 0; }
.list-plain > li + li { margin-top: var(--s-3); }
.list-rule { list-style: none; padding: 0; }
.list-rule > li { padding: var(--s-3) 0; border-top: 1px solid var(--rule); margin: 0; }
.list-rule > li:first-child { border-top: 0; padding-top: 0; }
.list-dots { padding-left: 1.1em; }
.list-dots li::marker { color: var(--accent-soft); }
/* items laid out by a grid or cluster are spaced by its gap, never by list rhythm */
.grid > li + li, .cluster > li + li { margin-top: 0; }

/* key / value */
.dl { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: .45rem var(--s-5); }
.dl dt { font: 500 var(--fs-sm)/1.5 var(--sans); color: var(--ink-3); }
.dl dd { color: var(--ink); overflow-wrap: anywhere; }
.world-admin .dl dt, .world-os .dl dt { font: 500 var(--fs-xs)/1.8 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 30rem) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: .4rem; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: var(--s-3); }
.stat { padding: var(--s-4); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--panel-radius); }
.stat dt, .stat__label { font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat dd, .stat__value { margin-top: .35rem; font: 500 clamp(1.6rem, 3vw, 2.1rem)/1.05 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.world-os .stat dd, .world-admin .stat dd, .world-os .stat__value, .world-admin .stat__value { font: 500 1.6rem/1.1 var(--mono); }

/* ---------- badges (status is never colour alone: every badge carries its word) ---------- */
.badge {
  --b-ink: var(--neutral-ink); --b-bg: var(--neutral-bg); --b-edge: var(--neutral-edge);
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%;
  padding: .22rem .6rem; border: 1px solid var(--b-edge); border-radius: var(--radius-pill);
  background: var(--b-bg); color: var(--b-ink);
  font: 500 var(--fs-xs)/1.3 var(--sans); letter-spacing: .06em; white-space: nowrap;
}
.world-os .badge, .world-admin .badge, .world-forge .badge { border-radius: 2px; font-family: var(--mono); letter-spacing: .02em; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.badge--plain::before { display: none; }
.badge--pending, .badge--warn, .badge--upcoming-soon { --b-ink: var(--pending-ink); --b-bg: var(--pending-bg); --b-edge: var(--pending-edge); }
.badge--pending::before { background: transparent; border: 1.5px solid currentColor; }
.badge--approved, .badge--ok, .badge--live, .badge--open { --b-ink: var(--ok-ink); --b-bg: var(--ok-bg); --b-edge: var(--ok-edge); }
.badge--rejected, .badge--bad, .badge--closed { --b-ink: var(--bad-ink); --b-bg: var(--bad-bg); --b-edge: var(--bad-edge); }
.badge--rejected::before, .badge--bad::before, .badge--closed::before { border-radius: 1px; transform: rotate(45deg); width: .4rem; height: .4rem; }
.badge--info, .badge--upcoming, .badge--submitted { --b-ink: var(--info-ink); --b-bg: var(--info-bg); --b-edge: var(--info-edge); }
.badge--ended, .badge--past, .badge--neutral { --b-ink: var(--neutral-ink); --b-bg: var(--neutral-bg); --b-edge: var(--neutral-edge); }
.badge--ended::before, .badge--past::before { background: transparent; border: 1.5px solid currentColor; opacity: .6; }
.badge--live::before { box-shadow: 0 0 0 3px rgba(63, 107, 58, .18); }
.badge--gold { --b-ink: var(--gold-text); --b-bg: #f6e7c8; --b-edge: #d8b36a; }
.badge--quiet { --b-bg: transparent; }

/* mode badges carry the divided O of the logo: gold for life, blue for computation */
.mode-badge {
  --o-left: var(--gold-2); --o-right: var(--gold-2);
  display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .65rem .2rem .3rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius-pill); background: var(--paper-2);
  font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: .2em; color: var(--ink); white-space: nowrap;
}
.mode-badge__o { width: 1.05rem; height: 1.05rem; flex: none; overflow: visible; fill: none; }
.mode-badge--seed { --o-left: #d4a24c; --o-right: #d4a24c; border-color: rgba(122, 74, 34, .35); color: var(--sepia); }
.mode-badge--core { --o-left: #d4a24c; --o-right: #8fb0e6; }
.mode-badge--frontier { --o-left: #d4a24c; --o-right: #3d69bd; color: var(--indigo); }
.mode-badge--forge { --o-left: #3d69bd; --o-right: #3d69bd; border-color: rgba(43, 63, 124, .4); border-radius: 3px; color: var(--indigo); font-family: var(--mono); letter-spacing: .14em; }
.o-mode__left { fill: var(--o-left, #d4a24c); }
.o-mode__right { fill: var(--o-right, #8fb0e6); }
.o-mode__ring { fill: none; stroke: currentColor; stroke-width: 6; }
.o-mode__axis { stroke: #b07a35; stroke-width: 6; }

/* ---------- alerts ---------- */
.alert {
  --a-ink: var(--info-ink); --a-bg: var(--info-bg); --a-edge: var(--info-edge);
  position: relative; display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem; border: 1px solid var(--a-edge); border-left-width: 4px; border-radius: var(--radius-sm);
  background: var(--a-bg); color: var(--a-ink); font-size: var(--fs-md); line-height: 1.5;
}
.alert::before { content: "i"; flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: .05rem; border: 1.5px solid currentColor; border-radius: 50%; font: 600 .78rem/1 var(--serif); font-style: italic; }
.alert > * { min-width: 0; }
.alert a { color: inherit; font-weight: 600; }
.alert strong { color: inherit; }
.alert--success { --a-ink: var(--ok-ink); --a-bg: var(--ok-bg); --a-edge: var(--ok-edge); }
.alert--success::before { content: "✓"; font: 600 .8rem/1 var(--sans); font-style: normal; }
.alert--error, .alert--danger { --a-ink: var(--bad-ink); --a-bg: var(--bad-bg); --a-edge: var(--bad-edge); }
.alert--error::before, .alert--danger::before { content: "!"; font: 700 .8rem/1 var(--sans); font-style: normal; border-radius: 3px; transform: rotate(45deg); }
.alert--warning { --a-ink: var(--pending-ink); --a-bg: var(--pending-bg); --a-edge: var(--pending-edge); }
.alert--warning::before { content: "!"; font: 700 .8rem/1 var(--sans); font-style: normal; }
.alert--plain::before { display: none; }
.alert__title { display: block; font-weight: 600; }

/* ---------- empty states ---------- */
.empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-5); text-align: center; color: var(--ink-3); border: 1px dashed var(--rule-2); border-radius: var(--panel-radius); background: rgba(247, 239, 230, .45); }
.empty__o { width: 2.4rem; height: 2.4rem; color: var(--ink-3); overflow: visible; fill: none; --o-stroke: 4; opacity: .85; }
.empty__title { font: 500 1.3rem/1.25 var(--serif); color: var(--ink-2); }
.empty p { max-width: 34rem; }
.empty--inline { justify-items: start; text-align: left; padding: var(--s-4) var(--s-5); }

/* ---------- tables ---------- */
.table-wrap {
  position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule); border-radius: var(--panel-radius); background: var(--paper-2);
  background-image: linear-gradient(90deg, var(--paper-2) 30%, rgba(247, 239, 230, 0)), linear-gradient(90deg, rgba(247, 239, 230, 0), var(--paper-2) 70%),
    radial-gradient(farthest-side at 0 50%, rgba(60, 36, 18, .18), transparent), radial-gradient(farthest-side at 100% 50%, rgba(60, 36, 18, .18), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 2.5rem 100%, 2.5rem 100%, .9rem 100%, .9rem 100%;
  background-attachment: local, local, scroll, scroll;
}
.table-wrap:focus-visible { box-shadow: var(--focus); outline: none; }
.table { width: 100%; min-width: 36rem; font-size: var(--fs-sm); color: var(--ink-2); }
.table--auto { min-width: 0; }
.table caption { padding: var(--s-3) var(--s-4); font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.table th, .table td { padding: .7rem .9rem; vertical-align: top; border-top: 1px solid var(--rule); }
.table thead th {
  position: sticky; top: 0; z-index: 1; border-top: 0; background: var(--paper-3);
  font: 500 var(--fs-xs)/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.table tbody tr:hover { background: rgba(207, 152, 68, .07); }
.world-admin .table tbody tr:hover, .world-os .table tbody tr:hover { background: rgba(61, 105, 189, .06); }
.table tbody tr.is-highlight, .table tbody tr.is-self { background: rgba(207, 152, 68, .14); }
.table td.num, .table th.num { text-align: right; }
.cell-title { font-weight: 500; color: var(--ink); }
.cell-sub { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.table--dense th, .table--dense td { padding: .45rem .7rem; }
.table--dense .btn, .table--dense .state-btn { white-space: nowrap; }
.table--lined td { border-top-style: dashed; }

/* ---------- tabs, filters, chips ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border: 1px solid var(--rule); border-radius: var(--btn-radius); background: rgba(247, 239, 230, .6); width: fit-content; max-width: 100%; }
.tab {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.4rem; padding: .35rem .95rem;
  border: 1px solid transparent; border-radius: var(--btn-radius); background: transparent; color: var(--ink-2);
  font: 500 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.tab:hover { color: var(--ink); background: rgba(74, 48, 28, .06); }
.tab[aria-selected="true"], .tab.is-active, .tab[aria-pressed="true"], .tab[aria-current="page"] { background: var(--ink); color: #f7efe6; border-color: var(--ink); }
.world-admin .tab[aria-selected="true"], .world-admin .tab.is-active, .world-admin .tab[aria-pressed="true"], .world-os .tab.is-active { background: #1e2433; border-color: #1e2433; }
.tab__count { font: 500 var(--fs-xs)/1 var(--mono); opacity: .8; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--panel-radius); background: rgba(247, 239, 230, .7); }
.filters > .field { flex: 1 1 13rem; }
.filters > .field--search { flex: 2 1 18rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: .2rem .7rem; border: 1px solid var(--rule-2); border-radius: var(--radius-pill); background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink-2); }
.world-admin .chip { border-radius: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.bulk-bar { position: sticky; bottom: var(--s-3); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: #1e2433; color: #eef0f5; border-radius: var(--panel-radius); box-shadow: var(--shadow-2); }
.bulk-bar .btn { --btn-fg: #eef0f5; --btn-edge: rgba(238, 240, 245, .45); }
.bulk-bar .btn--primary { --btn-bg: #eef0f5; --btn-fg: #1e2433; --btn-edge: #eef0f5; }
.bulk-bar .check { color: #eef0f5; }
.bulk-bar input[type="checkbox"] { accent-color: #eef0f5; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: var(--s-4); background: rgba(27, 21, 18, .55); }
@supports (backdrop-filter: blur(4px)) { .modal { backdrop-filter: blur(3px); } }
.modal__dialog { position: relative; width: 100%; max-width: 38rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: var(--panel-radius); box-shadow: var(--shadow-2); }
.modal__dialog > * + * { margin-top: var(--s-4); }
.modal__close { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.modal__close:hover { background: rgba(74, 48, 28, .08); color: var(--ink); }
.modal__close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .42rem; top: .4rem; bottom: .4rem; width: 1px; background: linear-gradient(var(--rule), var(--accent-soft) 50%, var(--rule)); }
.timeline__item { position: relative; margin: 0; }
.timeline__item + .timeline__item { margin-top: var(--s-4); }
.timeline__node { position: absolute; left: -1.6rem; top: 1.05rem; width: .85rem; height: .85rem; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--paper-2); }
.timeline__node--live { border-color: var(--ok-ink); background: var(--ok-ink); box-shadow: 0 0 0 4px rgba(63, 107, 58, .18); }
.timeline__node--upcoming { border-color: var(--info-ink); background: linear-gradient(90deg, var(--paper-2) 50%, var(--info-ink) 50%); }
.timeline__node--past { border-color: var(--ink-4); background: var(--paper-3); }
.timeline__card { padding: var(--s-4) var(--s-5); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--panel-radius); }
.timeline__card > * + * { margin-top: .35rem; }
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem .8rem; }
.timeline__title { font: 500 1.2rem/1.25 var(--serif); color: var(--heading); }
.timeline__range { font: 400 var(--fs-xs)/1.5 var(--mono); color: var(--ink-3); }
.timeline__desc { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- prose (rendered Markdown and long-form copy) ---------- */
.prose { max-width: 46rem; color: var(--ink-2); line-height: 1.7; }
.prose > * + * { margin-top: .9em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h1 { font-size: 2rem; } .prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; }
.prose h4, .prose h5, .prose h6 { font-family: var(--sans); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent-soft); }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--radius-sm); }
.prose table { font-size: var(--fs-sm); border: 1px solid var(--rule); }
.prose th, .prose td { padding: .5rem .7rem; border-top: 1px solid var(--rule); }
.prose th { background: var(--paper-3); }
.prose blockquote { color: var(--ink-3); }

/* ---------- disclosure (details / summary) ---------- */
.disclosure { border: 1px solid var(--rule); border-radius: var(--panel-radius); background: var(--paper-2); }
.disclosure + .disclosure { margin-top: var(--s-2); }
.disclosure > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 3rem; padding: .75rem 1.1rem; font-weight: 500; color: var(--ink); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; flex: none; width: .8rem; height: .8rem; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .2s ease; }
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure__body { padding: 0 1.1rem 1.1rem; color: var(--ink-2); }
.disclosure__body > * + * { margin-top: var(--s-3); }
.disclosure--lg > summary { font: 500 1.25rem/1.25 var(--serif); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.pagination__status { font: 400 var(--fs-sm)/1.4 var(--mono); color: var(--ink-3); }

/* ---------- progress ---------- */
.progress { height: .55rem; width: 100%; overflow: hidden; border-radius: var(--radius-pill); background: var(--paper-3); border: 1px solid var(--rule); }
.progress__bar { height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.world-admin .progress__bar, .world-os .progress__bar { background: var(--blue); }

/* ---------- people & media ---------- */
.person { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.person__img { width: 3rem; height: 3rem; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--paper-3); }
.person__name { font-weight: 500; color: var(--ink); }
.person__meta { font-size: var(--fs-sm); color: var(--ink-3); }
.initials { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--rule-2); font: 500 1.1rem/1 var(--serif); color: var(--ink-2); }
.logo-tile { display: grid; place-items: center; min-height: 7rem; padding: var(--s-4); background: #fffdf9; border: 1px solid var(--rule); border-radius: var(--panel-radius); }
.logo-tile img { max-height: 4.5rem; width: auto; object-fit: contain; }
.frame { overflow: hidden; border-radius: var(--panel-radius); border: 1px solid var(--rule); background: var(--paper-3); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1 { aspect-ratio: 1; }

/* ---------- ornaments ---------- */
.o-mini__fill { fill: var(--o-fill, #a9c1e8); }
.o-mini__ring { fill: none; stroke: var(--o-ring, currentColor); stroke-width: var(--o-stroke, 6); }
.o-mini__axis { stroke: #b07a35; stroke-width: var(--o-stroke, 6); }
.o-mini__dot { fill: #cf9844; }
.rule-hand, .rule-eng { display: block; width: 7.5rem; height: 12px; border: 0; margin: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.rule-hand { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M1 6.4C12 4.6 22 8 34 6.2S56 4.4 68 6.6 92 8 104 5.8C110 4.9 115 5.6 119 6' fill='none' stroke='%239a6a36' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='119' cy='6' r='1.7' fill='%23c99343'/%3E%3C/svg%3E"); }
.rule-eng { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M1 6H116M40 3V9M80 3V9' fill='none' stroke='%233d5a9c' stroke-width='.9'/%3E%3Crect x='115' y='3.5' width='5' height='5' fill='none' stroke='%233d5a9c' stroke-width='.9'/%3E%3C/svg%3E"); }

/* ---------- table head (a title bar inside .table-wrap) ---------- */
.table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); background: rgba(232, 213, 193, .4); }
.table-head h2, .table-head h3 { font: 500 1.3rem/1.2 var(--serif); color: var(--heading); }
.table-head__meta { font-size: var(--fs-sm); color: var(--ink-3); }
.world-admin .table-head, .world-os .table-head { background: rgba(230, 227, 222, .6); }

/* ---------- dialog (native <dialog>: focus is trapped and Escape closes it) ---------- */
.dialog { width: min(100% - 2rem, 34rem); max-height: calc(100vh - 2rem); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule-2); border-radius: var(--panel-radius); background: var(--paper-2); color: var(--ink-2); box-shadow: var(--shadow-2); }
.dialog::backdrop { background: rgba(27, 21, 18, .55); }
.dialog > * + * { margin-top: var(--s-4); }
.dialog__title { font: 500 1.5rem/1.2 var(--serif); color: var(--heading); }
/* a final choice (app.js, form[data-final-choice]): a participation mode or a team's problem statement, which can't be undone */
.final-dialog {
  width: min(100% - 2rem, 32rem); max-height: calc(100vh - 2rem); padding: 0;
  border: 1px solid var(--rule-2); border-top: 3px solid var(--gold-2); border-radius: calc(var(--panel-radius) + 4px);
  background: var(--paper-2); color: var(--ink-2); box-shadow: var(--shadow-2);
}
.final-dialog::backdrop { background: rgba(27, 21, 18, .5); }
@supports (backdrop-filter: blur(2px)) { .final-dialog::backdrop { backdrop-filter: blur(2px); } }
.final-dialog__panel { padding: clamp(1.4rem, 4vw, 2.1rem); }
.final-dialog__eyebrow { font: 500 .68rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.final-dialog__title { margin-top: .55rem; font: 400 clamp(1.55rem, 4.5vw, 2rem)/1.12 var(--serif); color: var(--heading); text-wrap: balance; }
.final-dialog__body { margin-top: .75rem; color: var(--ink-2); }
.final-dialog__actions { margin-top: var(--s-6); }
@media (prefers-reduced-motion: no-preference) {
  .final-dialog[open] { animation: final-dialog-in .24s cubic-bezier(.2, .7, .2, 1); }
  @keyframes final-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
}

/* ---------- problem statements: a mode's list to read before one is chosen, and the brief a team works on ----------
   A team chooses one of its mode's problem statements (never a track), and the choice is final. The list
   (partials/ui.html problem_list) is ruled like the FAQs: each entry opens to its description and expected outcome.
   The brief is the chosen one, on its own sheet, sealed "Fixed". Organisers' line breaks are kept. */
.problem-list { padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.problem-list__item { margin: 0; }
.problem-list__entry { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.problem-list__entry > summary { justify-content: flex-start; gap: 1rem; min-height: 3.4rem; padding: .85rem 0; font: 500 1.14rem/1.3 var(--serif); cursor: pointer; }
.problem-list__entry > summary::after { margin-left: auto; color: var(--ink-3); }
.problem-list__entry > summary:hover .problem-list__name { color: var(--accent); }
.problem-list__n { flex: none; min-width: 1.6rem; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.problem-list__name { min-width: 0; color: var(--heading); overflow-wrap: anywhere; transition: color .2s ease; }
.problem-list__body { padding: 0 0 1.15rem calc(1.6rem + 1rem); }
.problem-list__text { max-width: 44rem; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
.problem-list__text--empty { font-style: italic; color: var(--ink-3); }
.problem-list__label { margin-top: var(--s-4) !important; font: 500 .64rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.problem-list__body > .problem-list__label:first-child { margin-top: 0 !important; }
.problem-list__label + .problem-list__text { margin-top: .35rem !important; }
.brief {
  position: relative; max-width: 46rem; padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3.2vw, 2.25rem);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--panel-radius); box-shadow: var(--shadow-1);
}
/* a margin rule in the mode's colour */
.brief::before { content: ""; position: absolute; left: -1px; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.brief > * + * { margin-top: var(--s-3); }
.brief__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font: 500 .66rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.brief__seal { margin-left: auto; padding: .2rem .6rem; border: 1px solid #d8b36a; border-radius: var(--radius-pill); background: #f6e7c8; letter-spacing: .12em; color: var(--gold-text); }
.brief__title { margin-top: var(--s-4) !important; font: 400 clamp(1.6rem, 2.8vw, 2.2rem)/1.12 var(--serif); letter-spacing: -.008em; color: var(--heading); overflow-wrap: anywhere; text-wrap: balance; }
.brief__text { max-width: 40rem; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; color: var(--ink-2); }
.brief__outcome { margin-top: var(--s-5) !important; padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.brief__label { margin: 0 0 .4rem; font: 500 .64rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* chips that act (skill filters) and chips that are on */
.chip--button { cursor: pointer; font: 500 var(--fs-sm)/1.2 var(--sans); }
.chip--button:hover { border-color: var(--rule-3); color: var(--ink); background: #fff; }
.chip--on { background: var(--ink); border-color: var(--ink); color: #f7efe6; }
.input-group--wrap { flex-wrap: wrap; }
.input-group--wrap > input { flex: 1 1 14rem; }
