@font-face {
  font-family: "Official Display";
  src: url("../assets/AstralSerif-Subset.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/*
 * Competition operations design system v2
 * Reference direction: calm civic information design, strong contrast, clear route hierarchy.
 */

:root {
  color-scheme: light;
  --office-bg: #efeee7;
  --office-paper: #fffdf8;
  --office-paper-2: #edf3ef;
  --office-ink: #172729;
  --office-muted: #526266;
  --office-line: #c6d0cc;
  --office-line-dark: #7c908e;
  --office-blue: #1d6067;
  --office-blue-dark: #10363c;
  --office-red: #8d3e36;
  --office-green: #286348;
  --office-amber: #7b521f;
  --official-sidebar: #0d3035;
  --official-sidebar-deep: #08252a;
  --official-sidebar-ink: #f7f6ef;
  --official-sidebar-muted: #bfd0cd;
  --official-accent: #e7a653;
  --official-focus: #d36b31;
  --official-dark-surface: #0c2a2f;
  --official-dark-surface-strong: #091b1f;
  --official-on-dark: #f7f6ef;
  --official-on-dark-muted: #cbdad7;
  --official-on-dark-accent: #a9e1e8;
  --official-shadow: 0 16px 44px rgba(24, 47, 48, .11);
  --official-radius: 18px;
  --official-radius-small: 10px;
  --office-width: 1180px;
}

html {
  background: var(--office-bg);
}

html.official-large-text {
  font-size: 18px;
}

body.official-site {
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 4%, rgba(29, 96, 103, .11), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, .68), transparent 38rem),
    var(--office-bg) !important;
  color: var(--office-ink) !important;
  font-size: 17px;
  line-height: 1.8;
}

body.official-site :focus-visible {
  outline: 3px solid var(--official-focus) !important;
  outline-offset: 3px !important;
}

body.official-site ::selection {
  background: #cce7e2;
  color: #102b2f;
}

body.official-site .skip-link,
body.official-site .arena-skip {
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--office-blue-dark) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
}

/* Sidebar / responsive route shell */
.official-header {
  background: linear-gradient(165deg, var(--official-sidebar), var(--official-sidebar-deep)) !important;
  color: var(--official-sidebar-ink) !important;
}

.official-header .authority {
  color: var(--official-sidebar-ink) !important;
}

.official-header .authority::before {
  filter: none;
  opacity: 1;
}

.official-header .authority mark {
  border: 1px solid rgba(231, 166, 83, .7) !important;
  border-radius: 999px !important;
  background: rgba(231, 166, 83, .12) !important;
  color: #ffd99d !important;
}

.official-header .authority span {
  color: var(--official-sidebar-muted) !important;
}

.official-header .authority strong {
  color: var(--official-sidebar-ink) !important;
}

.official-header > nav {
  border: 0 !important;
}

.official-header > nav a {
  position: relative;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  min-height: 56px;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--official-sidebar-muted) !important;
  text-align: left;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.official-header > nav a:hover,
.official-header > nav a:focus-visible {
  border-color: rgba(255, 255, 255, .2) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}

.official-header > nav a[aria-current="page"] {
  border-color: var(--official-accent) !important;
  background: var(--official-accent) !important;
  color: #182729 !important;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .2) !important;
}

.official-route-icon {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  color: currentColor;
}

.official-header > nav small {
  grid-column: 3;
  grid-row: 1 / 3;
  color: inherit !important;
  font-size: 10px !important;
  opacity: .7;
}

.official-header > nav a[aria-current="page"] small {
  opacity: 1;
}

.official-header > nav b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: inherit !important;
  font-size: 14px !important;
  letter-spacing: .04em !important;
}

.official-sidebar-tools {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body.official-site .official-cycle {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .055);
}

.official-cycle > span,
.official-sidebar-media > header span,
.official-mobile-media > header span {
  color: #9ec2bd;
  font: 800 10px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
}

.official-cycle > strong {
  color: #fff;
  font-size: 15px;
}

.official-cycle > small {
  color: #dce7e4;
  font-size: 11px;
}

.official-cycle i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50% !important;
  background: #65d096;
  box-shadow: 0 0 0 4px rgba(101, 208, 150, .12) !important;
}

.official-type-control {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}

.official-type-control > span {
  color: var(--official-sidebar-muted);
  font-size: 11px;
}

.official-type-control button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
}

.official-type-control button[aria-pressed="true"] {
  border-color: #f5c580 !important;
  background: #f5c580 !important;
  color: #172729 !important;
}

.official-sidebar-media,
.official-mobile-media {
  display: grid;
  gap: 8px;
}

.official-sidebar-media > header,
.official-mobile-media > header {
  display: grid;
  gap: 2px;
}

.official-sidebar-media > header strong {
  color: #fff;
  font-size: 13px;
}

.official-media-boundary {
  margin: 0;
  color: #dce7e4;
  font-size: 12px;
  line-height: 1.55;
}

.official-media-list {
  display: grid;
  gap: 9px;
}

body.official-site .official-media-banner {
  position: relative;
  display: block;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 12px !important;
  background: #08191c;
  color: #fff !important;
  text-decoration: none !important;
  isolation: isolate;
}

.official-media-banner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 13, 18, .94), rgba(3, 13, 18, .48) 72%, rgba(3, 13, 18, .15));
  content: "";
}

.official-media-banner img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.official-media-banner > span {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 12px 14px;
}

.official-media-banner small {
  color: #bfeaf2;
  font: 800 9px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
}

.official-media-banner strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: .06em;
}

.official-media-banner em {
  color: #e9f1ef;
  font-size: 11px;
  font-style: normal;
}

.official-media-banner--astralium small {
  color: #bfeaf2;
}

.official-media-banner--touro small {
  color: #ffe176;
}

.official-media-banner:hover img,
.official-media-banner:focus-visible img {
  transform: scale(1.04);
}

.official-mobile-media {
  display: none;
}

.authority-boundary__links {
  display: grid;
  gap: 8px;
}

body.official-site .authority-boundary__links > a {
  display: flex;
  flex-direction: column;
  padding: 12px 13px;
  border: 1px solid var(--office-line-dark);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--office-blue);
  text-decoration: none;
}

body.official-site .authority-boundary__links > a:hover,
body.official-site .authority-boundary__links > a:focus-visible {
  border-color: var(--office-blue);
  background: #eef4f2;
}

body.official-site .authority-boundary__links .route-cue__action {
  color: var(--office-blue);
}

.authority-boundary__links > a span {
  color: var(--office-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.authority-boundary__links > a b {
  color: inherit;
  font-size: 12px;
}

.service-counter--journeys {
  margin-top: 24px !important;
  margin-bottom: 40px !important;
}

.service-counter__grid--journeys {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.service-counter__grid--journeys > a {
  min-height: 208px !important;
  border-top: 5px solid var(--office-blue) !important;
}

.service-counter__grid--journeys > a:first-child {
  border-top-color: var(--official-accent) !important;
}

.service-counter__grid--journeys > a:nth-child(2) {
  border-top-color: #385f7b !important;
}

.service-counter__grid--journeys > a:first-child .service-counter__icon {
  color: #a56522;
}

.service-counter__grid--journeys > a:nth-child(2) .service-counter__icon {
  color: #385f7b;
}

.service-counter__grid--journeys b {
  font-size: 1.08rem !important;
}

.service-counter__grid--journeys small {
  font-size: 0.875rem !important;
  line-height: 1.65;
}

/* Illustrated masthead for the public operations home. */
body.official-site .operations-head.operations-head--visual {
  isolation: isolate;
  min-height: 400px !important;
  grid-template-columns: 128px minmax(0, 1.2fr) minmax(285px, .72fr) !important;
  background: var(--official-dark-surface-strong) !important;
  color: var(--official-on-dark) !important;
}

.operations-head__art,
.operations-head__art-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.operations-head__art {
  z-index: -3;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(.82) contrast(1.05) brightness(.86);
}

.operations-head__art-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 28, 33, .98) 0%, rgba(7, 31, 36, .9) 37%, rgba(7, 31, 36, .52) 66%, rgba(7, 25, 29, .78) 100%),
    linear-gradient(180deg, rgba(6, 25, 29, .12), rgba(6, 25, 29, .76));
}

body.official-site .operations-head.operations-head--visual > :not(.operations-head__art):not(.operations-head__art-shade) {
  position: relative;
  z-index: 1;
}

body.official-site .operations-head.operations-head--visual .document-id {
  border-right-color: rgba(255, 255, 255, .18);
  background: rgba(4, 24, 28, .72);
  backdrop-filter: blur(8px);
}

body.official-site .operations-head.operations-head--visual .document-id span,
body.official-site .operations-head.operations-head--visual .document-id small {
  color: var(--official-on-dark-muted);
}

body.official-site .operations-head.operations-head--visual .document-id b {
  color: var(--official-on-dark-accent);
}

body.official-site .operations-head.operations-head--visual .operations-head__copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 64px) !important;
}

body.official-site .operations-head.operations-head--visual .operations-head__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bfeaf0 !important;
}

.operations-head__channel svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

body.official-site .operations-head.operations-head--visual h1 {
  max-width: 8em;
  margin: 10px 0 16px !important;
  color: #fffdf8 !important;
  font-family: "Official Display", "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: clamp(3rem, 6vw, 5.6rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .38) !important;
}

body.official-site .operations-head.operations-head--visual .operations-head__copy > p:last-child {
  max-width: 48em;
  color: #e3efec !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

body.official-site .operations-head.operations-head--visual .operations-state {
  align-self: stretch;
  border-left-color: rgba(255, 255, 255, .2) !important;
  background: rgba(5, 27, 31, .76) !important;
  backdrop-filter: blur(10px);
}

body.official-site .operations-head.operations-head--visual .operations-state > div {
  border-bottom-color: rgba(255, 255, 255, .16) !important;
}

body.official-site .operations-head.operations-head--visual .operations-state dt {
  color: #b7cac7 !important;
}

body.official-site .operations-head.operations-head--visual .operations-state dd {
  color: #fffdf8 !important;
}

body.official-site .operations-head.operations-head--visual .state-dot {
  background: #74dda1;
  box-shadow: 0 0 0 4px rgba(116, 221, 161, .14);
}

body.official-site .operations-head.operations-head--visual .document-updated {
  border-top-color: rgba(255, 255, 255, .16) !important;
  background: rgba(4, 22, 26, .92) !important;
  color: #c4d7d3 !important;
}

@media (max-width: 720px) {
  .service-counter__grid--journeys {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  body.official-site .operations-head.operations-head--visual {
    grid-template-columns: 100px minmax(0, 1fr) !important;
  }

  body.official-site .operations-head.operations-head--visual .operations-state {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-top: 1px solid rgba(255, 255, 255, .18) !important;
    border-left: 0 !important;
  }
}

@media (max-width: 720px) {
  body.official-site .operations-head.operations-head--visual {
    grid-template-columns: 1fr !important;
  }

  body.official-site .operations-head.operations-head--visual .operations-head__copy {
    min-height: 330px;
    align-content: end;
    padding: 44px 20px 28px !important;
  }

  body.official-site .operations-head.operations-head--visual h1 {
    font-size: clamp(2.55rem, 13vw, 3.65rem) !important;
  }

  body.official-site .operations-head.operations-head--visual .operations-head__copy > p:last-child {
    font-size: .9rem !important;
  }

  body.official-site .operations-head.operations-head--visual .operations-state {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
  }

  .operations-head__art {
    object-position: 64% center;
  }

  .operations-head__art-shade {
    background: linear-gradient(180deg, rgba(5, 24, 28, .26), rgba(5, 24, 28, .92) 58%, rgba(5, 24, 28, .98));
  }
}

/* Content surfaces */
body.official-site > main,
body.official-site main.official-main,
body.official-site main.entry-shell,
body.official-site main.equipment-shell,
body.official-site main.calls-shell {
  width: min(var(--office-width), calc(100% - 64px)) !important;
  margin: 40px auto 76px !important;
}

body.official-site main > :is(section, aside, header),
body.official-site :is(.panel, .account-bar, .entry-card, .request-card) {
  border-radius: var(--official-radius) !important;
}

body.official-site main > :is(section, aside, header),
body.official-site :is(.panel, .account-bar) {
  box-shadow: var(--official-shadow) !important;
}

body.official-site :is(
  .document-masthead,
  .operations-head,
  .rules-document-head,
  .result-hero,
  .entry-heading,
  .equipment-intro,
  .calls-intro,
  .arena-intro
) {
  overflow: hidden !important;
  border: 1px solid var(--office-line) !important;
  border-top: 0 !important;
  border-radius: 24px !important;
  background: var(--office-paper) !important;
  box-shadow: var(--official-shadow) !important;
}

body.official-site :is(
  .document-masthead,
  .operations-head,
  .rules-document-head,
  .result-hero,
  .entry-heading,
  .equipment-intro,
  .calls-intro,
  .arena-intro
)::after {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--office-blue-dark), var(--office-blue), var(--official-accent));
  content: "";
  pointer-events: none;
}

body.official-site main :is(p, li, small, time, figcaption) {
  text-wrap: pretty;
}

body.official-site main :is(.eyebrow, [class$="-kicker"], [class*="__head"] > p:first-child) {
  color: var(--office-blue) !important;
}

body.official-site main a:not([class*="button"]):not(.official-media-banner) {
  text-decoration-color: rgba(29, 96, 103, .48);
  text-decoration-thickness: 2px;
}

body.official-site main a:not([class*="button"]):not(.official-media-banner):hover {
  text-decoration-color: currentColor;
}

/* Top-page schedule: template-derived notice cards plus a compact seven-day calendar. */
.operations-schedule {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 36px) !important;
  border: 1px solid var(--office-line) !important;
  background:
    linear-gradient(135deg, rgba(29, 96, 103, .075), transparent 24rem),
    var(--office-paper) !important;
  color: var(--office-ink) !important;
}

.operations-schedule__header,
.schedule-week-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: flex-end;
  justify-content: space-between;
}

.operations-schedule__header > div,
.schedule-week-card__header > div {
  display: grid;
  gap: 2px;
}

.operations-schedule__header p,
.schedule-week-card__header p {
  margin: 0;
  color: var(--office-blue) !important;
  font: 800 .75rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}

.operations-schedule__header h2,
.schedule-week-card__header h3 {
  margin: 0;
  color: var(--office-ink) !important;
  line-height: 1.35;
}

.operations-schedule__header h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.schedule-week-card__header h3 {
  font-size: 1.25rem;
}

.operations-schedule__header > span,
.schedule-week-card__header > span {
  color: var(--office-muted) !important;
  font-size: .875rem;
  font-weight: 700;
}

.schedule-highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-highlight {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #9bb8b3;
  border-left: 6px solid var(--office-blue);
  border-radius: var(--official-radius-small);
  background: #fff;
  color: var(--office-ink);
}

.schedule-highlight--operations {
  border-left-color: var(--official-accent);
}

.schedule-highlight.is-ended {
  border-left-color: var(--office-line-dark);
  background: #f0f2ee;
}

.schedule-highlight__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.schedule-highlight__number {
  color: var(--office-blue) !important;
  font: 800 .75rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.schedule-highlight time {
  color: var(--office-ink) !important;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.55;
}

.schedule-highlight__state {
  padding: 3px 9px;
  border: 1px solid #7da79a;
  border-radius: 999px;
  background: #e7f3ed;
  color: #1d553e !important;
  font-size: .75rem;
  font-weight: 800;
}

.schedule-highlight.is-ended .schedule-highlight__state {
  border-color: #aab5b2;
  background: #e1e5e2;
  color: #435557 !important;
}

.schedule-highlight p {
  margin: 0;
  color: var(--office-ink) !important;
  font-size: 1rem;
  line-height: 1.75;
}

.schedule-highlight p strong {
  color: var(--office-blue-dark) !important;
}

body.official-site .schedule-highlight > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #82a9a3;
  border-radius: 8px;
  background: var(--office-paper-2);
  color: var(--office-blue-dark) !important;
  font-size: .875rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}

body.official-site .schedule-highlight > a:hover,
body.official-site .schedule-highlight > a:focus-visible {
  border-color: var(--office-blue);
  background: #dcece8;
  color: var(--office-blue-dark) !important;
}

.schedule-week-card {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--office-line);
}

.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-day {
  display: flex;
  min-width: 0;
  min-height: 128px;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--office-line);
  border-radius: 10px;
  background: #fff;
}

.schedule-day.is-today {
  border: 2px solid var(--office-blue);
  padding: 7px;
}

.schedule-day__date {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  color: var(--office-ink);
  font-size: .8125rem;
  font-weight: 800;
}

.schedule-day.is-sun .schedule-day__date {
  color: var(--office-red);
}

.schedule-day.is-sat .schedule-day__date {
  color: #28577c;
}

.schedule-day__date small {
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--office-blue);
  color: #fff !important;
  font-size: .6875rem;
}

body.official-site .schedule-day__event {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 9px;
  border: 1px solid #4f9199;
  border-radius: 8px;
  background: var(--official-dark-surface);
  color: var(--official-on-dark) !important;
  text-decoration: none !important;
}

body.official-site .schedule-day__event--operations {
  border-color: #b17a35;
  background: #563a16;
}

body.official-site .schedule-day__event:hover,
body.official-site .schedule-day__event:focus-visible {
  filter: brightness(1.12);
  color: var(--official-on-dark) !important;
}

.schedule-day__event time,
.schedule-day__event strong {
  color: inherit !important;
}

.schedule-day__event time {
  font-size: .75rem;
  font-weight: 800;
}

.schedule-day__event strong {
  overflow-wrap: anywhere;
  font-size: .8125rem;
  line-height: 1.45;
}

.schedule-day__none {
  margin: auto 0;
  color: var(--office-muted) !important;
  font-size: .75rem;
  text-align: center;
}

.schedule-week-card__note {
  margin: 0;
  color: var(--office-muted) !important;
  font-size: .875rem;
}

/* Dark callouts must own their foreground colors instead of inheriting the paper theme. */
body.entry-page .entry-account-link {
  border-color: #4f9199 !important;
  background: linear-gradient(110deg, var(--official-dark-surface), var(--official-dark-surface-strong)) !important;
  color: var(--official-on-dark) !important;
}

body.entry-page .entry-account-link > div > span {
  color: var(--official-on-dark-accent) !important;
  font-size: .75rem !important;
}

body.entry-page .entry-account-link > div > b {
  color: var(--official-on-dark) !important;
  font-size: 1rem !important;
}

body.entry-page .entry-account-link > div > p {
  color: var(--official-on-dark-muted) !important;
  font-size: .875rem !important;
}

body.entry-page .entry-account-link > a {
  border-color: #73bec7 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .055) !important;
  color: var(--official-on-dark) !important;
}

body.entry-page .entry-account-link > a:hover,
body.entry-page .entry-account-link > a:focus-visible {
  background: rgba(255, 255, 255, .12) !important;
  color: var(--official-on-dark) !important;
}

body.entry-page .entry-account-link > a > small {
  color: var(--official-on-dark-muted) !important;
  font-size: .75rem !important;
}

body.entry-page .entry-account-link > a > strong {
  color: var(--official-on-dark-accent) !important;
  font-size: .875rem !important;
}

body.official-site :is(input, textarea, select) {
  border: 1px solid var(--office-line-dark) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--office-ink) !important;
}

body.official-site :is(input, textarea, select)::placeholder {
  color: #657477 !important;
  opacity: 1;
}

body.official-site :is(button, [role="button"], .entry-card nav a) {
  border-radius: 9px !important;
}

body.official-site .status,
body.official-site .state-chip,
body.official-site [class*="status"] > span,
body.official-site [class*="state"] > span {
  border-radius: 999px !important;
}

.official-footer,
body.official-site > footer,
.entry-site-footer {
  border-top: 1px solid #b8c5c1 !important;
  background: #dce3df !important;
  color: var(--office-ink) !important;
}

body.entry-page .entry-closed:not(.entry-open) span {
  color: #7b312c !important;
}

body.entry-page .entry-site-footer p {
  color: var(--office-ink) !important;
}

.official-mobile-nav {
  display: none !important;
}

/* Participant account and feedback now share the same operations theme. */
body.participant-site {
  --bg: var(--office-bg);
  --panel: var(--office-paper);
  --panel-strong: var(--office-paper-2);
  --text: var(--office-ink);
  --muted: var(--office-muted);
  --mint: var(--office-blue);
  --mint-soft: #dcece8;
  --amber: var(--official-accent);
  --line: var(--office-line-dark);
  --field: #fff;
  --field-text: var(--office-ink);
  --danger: var(--office-red);
  --ok: var(--office-green);
  --feedback-option-bg: #f7faf8;
  --feedback-option-text: var(--office-ink);
  --feedback-option-hover-bg: #e4f0ec;
  --feedback-option-selected-bg: #fff3dc;
  --feedback-option-selected-text: #5d3b12;
  --feedback-option-disabled-bg: #e1e5e2;
  --feedback-option-disabled-text: #435557;
  --feedback-other-bg: #fff8eb;
  --feedback-other-border: #c7a56e;
  --feedback-other-heading: #5d3b12;
  --feedback-other-copy: var(--office-muted);
}

body.participant-site > main {
  padding: 0 !important;
}

body.participant-site .intro {
  max-width: none;
  margin: 0 0 24px;
  padding: clamp(26px, 5vw, 56px) !important;
  border: 1px solid var(--office-line) !important;
  border-left: 8px solid var(--office-blue) !important;
  background:
    linear-gradient(120deg, rgba(29, 96, 103, .08), transparent 52%),
    var(--office-paper) !important;
}

body.participant-site .intro > :is(p, span, h1) {
  color: var(--office-ink) !important;
}

body.participant-site .intro > p:first-child,
body.participant-site .intro .eyebrow,
body.participant-site .panel header p,
body.participant-site .section-heading > p {
  color: var(--office-blue) !important;
}

body.participant-site .intro > span,
body.participant-site .state-mark {
  border: 1px solid #b77b31 !important;
  border-radius: 999px !important;
  background: #fff3dc !important;
  color: #68430f !important;
}

body.participant-site .intro h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

body.participant-site .migration-notice {
  border-color: var(--official-accent) !important;
  background: var(--official-dark-surface) !important;
  color: var(--official-on-dark) !important;
}

body.participant-site .migration-notice strong {
  color: var(--official-on-dark) !important;
}

body.participant-site .migration-notice p {
  color: var(--official-on-dark-muted) !important;
}

body.participant-site .migration-notice a {
  color: var(--official-on-dark-accent) !important;
  text-decoration-color: currentColor !important;
}

body.participant-site .auth-tabs button {
  border-color: var(--office-line-dark) !important;
  background: var(--official-dark-surface) !important;
  color: var(--official-on-dark) !important;
}

body.participant-site .auth-tabs button:hover,
body.participant-site .auth-tabs button:focus-visible {
  border-color: var(--official-accent) !important;
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}

body.participant-site .auth-tabs button[aria-pressed="true"] {
  border-color: var(--official-accent) !important;
  background: var(--official-dark-surface) !important;
  color: var(--official-accent) !important;
}

body.participant-site :is(.panel, .account-bar, .entry-card, .request-card) {
  border-color: var(--office-line) !important;
  background: var(--office-paper) !important;
  color: var(--office-ink) !important;
}

body.participant-site :is(.panel, .entry-card, .request-card) :is(p, small) {
  color: var(--office-muted);
}

body.participant-site .panel :is(label, h2, h3),
body.participant-site .request-card label,
body.participant-site .account-bar strong {
  color: var(--office-ink) !important;
}

body.participant-site.feedback-page .rating-option {
  color: var(--feedback-option-text) !important;
}

body.participant-site.feedback-page .rating-option:hover,
body.participant-site.feedback-page .rating-option:focus-within {
  color: var(--feedback-option-text) !important;
}

body.participant-site.feedback-page .rating-option:has(input:checked) {
  color: var(--feedback-option-selected-text) !important;
}

body.participant-site.feedback-page .rating-option:has(input:disabled) {
  color: var(--feedback-option-disabled-text) !important;
}

body.participant-site.feedback-page .rating-option > span {
  color: inherit !important;
}

body.participant-site.feedback-page .other-field {
  color: var(--feedback-other-copy) !important;
}

body.participant-site.feedback-page .other-field label {
  color: var(--feedback-other-heading) !important;
}

body.participant-site.feedback-page .other-field :is(p, small, .counter) {
  color: var(--feedback-other-copy) !important;
}

body.participant-site.feedback-page .other-field .counter[data-over-limit="true"] {
  color: var(--office-red) !important;
}

body.participant-site .panel button:not(.text-button),
body.participant-site .submit-row button,
body.participant-site .entry-card nav a {
  border-color: var(--office-blue-dark) !important;
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}

body.participant-site .panel button:not(.text-button):hover,
body.participant-site .submit-row button:hover,
body.participant-site .entry-card nav a:hover {
  background: var(--office-blue) !important;
}

body.participant-site .panel .text-button,
body.participant-site .minor-note a {
  color: var(--office-blue-dark) !important;
}

body.participant-site .message,
body.participant-site .form-message {
  color: var(--office-green) !important;
}

body.participant-site :is(.message, .form-message)[data-error="true"] {
  color: var(--office-red) !important;
}

body.participant-site .account-bar span,
body.participant-site .request-number {
  color: var(--office-blue) !important;
}

body.participant-site .quiet-button,
body.participant-site .account-bar button {
  border-color: var(--office-line-dark) !important;
  background: #fff !important;
  color: var(--office-blue-dark) !important;
}

body.participant-site .entry-picker select {
  background: #fff !important;
  color: var(--office-ink) !important;
}

body.participant-site button:disabled:not(.text-button) {
  border-color: #a6b1ae !important;
  background: #e1e5e2 !important;
  color: #435557 !important;
  cursor: not-allowed;
}

body.participant-site :is(input, textarea, select):disabled,
body.participant-site :is(input, textarea)[readonly] {
  border-color: #a6b1ae !important;
  background: #edf0ee !important;
  color: #435557 !important;
  opacity: 1;
}

body.participant-site .cycle-state {
  border-left-color: var(--official-accent) !important;
  border-radius: var(--official-radius-small) !important;
  background: #fff4e2 !important;
  color: #5d3b12 !important;
}

body.participant-site .seed-note {
  border-color: #7da79a !important;
  border-radius: var(--official-radius-small) !important;
  background: #e7f3ed !important;
}

body.participant-site .seed-note strong {
  color: #1d553e !important;
}

body.participant-site .seed-note p {
  color: #344e45 !important;
}

body.participant-site .feedback-guardrails {
  border-color: #c7a56e !important;
  background: #fff8eb !important;
  color: var(--office-ink) !important;
}

body.participant-site .feedback-guardrails .section-heading > p {
  color: var(--office-blue) !important;
}

body.participant-site .guardrail-grid article {
  border-color: #d7c6a7 !important;
  background: var(--office-paper) !important;
}

body.participant-site .guardrail-grid strong {
  color: #5d3b12 !important;
}

body.participant-site .guardrail-grid p {
  color: var(--office-muted) !important;
}

@media (min-width: 1101px) {
  body.official-site {
    display: grid;
    grid-template-columns: minmax(270px, 304px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.official-site .official-header {
    position: sticky !important;
    top: 0;
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: auto;
    height: 100vh;
    min-height: 680px;
    padding: 28px 18px 20px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0 !important;
    box-shadow: 12px 0 40px rgba(16, 45, 49, .13) !important;
  }

  .official-header .authority {
    grid-template-columns: 48px minmax(0, 1fr);
    flex: 0 0 auto;
    padding: 0 4px 2px !important;
  }

  .official-header .authority::before {
    width: 44px;
    height: 44px;
  }

  .official-header .authority mark {
    font-size: 9px !important;
  }

  .official-header .authority span {
    font-size: 6px !important;
  }

  .official-header .authority strong {
    font-size: 16px !important;
    letter-spacing: .035em !important;
  }

  .official-header > nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px;
    flex: 0 0 auto;
  }

  .official-header > nav a {
    padding: 8px 12px !important;
  }

  .official-sidebar-tools {
    margin-top: auto;
  }

  body.official-site > main {
    grid-column: 2;
    grid-row: 1;
  }

  .official-footer,
  body.official-site > footer,
  .entry-site-footer {
    grid-column: 2;
    grid-row: 2;
    padding-right: max(32px, calc((100vw - 304px - var(--office-width)) / 2)) !important;
    padding-left: max(32px, calc((100vw - 304px - var(--office-width)) / 2)) !important;
  }
}

@media (max-width: 1100px) {
  body.official-site {
    display: block;
    padding-bottom: 0 !important;
  }

  body.official-site .official-header {
    position: sticky !important;
    top: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-height: 0;
    padding: 12px 18px 0 !important;
    border: 0 !important;
    box-shadow: 0 8px 28px rgba(8, 37, 42, .18) !important;
  }

  .official-header .authority {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 0 0 11px !important;
  }

  .official-header .authority::before {
    width: 38px;
    height: 38px;
  }

  .official-header .authority mark {
    font-size: 8px !important;
  }

  .official-header .authority span {
    font-size: 6px !important;
  }

  .official-header .authority strong {
    font-size: 15px !important;
  }

  .official-header > nav {
    grid-column: 1 / -1;
    display: grid !important;
    grid-auto-columns: minmax(142px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 5px;
    width: calc(100% + 36px);
    margin-left: -18px;
    padding: 7px 18px 10px;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, .13) !important;
    scrollbar-width: thin;
    scrollbar-color: #7aa19c transparent;
  }

  .official-header > nav a {
    min-height: 48px;
    padding: 6px 10px !important;
  }

  .official-sidebar-tools {
    display: block;
    align-self: start;
  }

  .official-cycle,
  .official-sidebar-media {
    display: none;
  }

  .official-type-control {
    grid-template-columns: auto auto;
  }

  .official-type-control > span {
    display: none;
  }

  .official-type-control button {
    min-height: 30px;
    padding: 3px 8px;
  }

  body.official-site > main,
  body.official-site main.official-main,
  body.official-site main.entry-shell,
  body.official-site main.equipment-shell,
  body.official-site main.calls-shell {
    width: min(var(--office-width), calc(100% - 36px)) !important;
    margin: 28px auto 52px !important;
  }

  body.official-site .official-mobile-media {
    display: grid;
    width: min(var(--office-width), calc(100% - 36px));
    margin: 0 auto 38px;
    padding: 22px;
    border: 1px solid var(--office-line);
    border-radius: var(--official-radius) !important;
    background: var(--office-paper);
    box-shadow: var(--official-shadow) !important;
  }

  .official-mobile-media > header strong {
    color: var(--office-ink);
  }

  .official-mobile-media .official-media-boundary {
    color: var(--office-muted);
    font-size: 12px;
  }

  .official-mobile-media .official-media-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-mobile-nav {
    display: none !important;
  }

  .schedule-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.official-site {
    font-size: 16px;
  }

  body.official-site .official-header {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .official-header .authority mark,
  .official-header .authority span {
    display: none !important;
  }

  .official-header .authority {
    grid-template-rows: 1fr;
    align-items: center;
  }

  .official-header .authority::before {
    grid-row: 1;
  }

  .official-header .authority strong {
    grid-row: 1;
  }

  .official-header > nav {
    width: calc(100% + 24px);
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .official-header > nav a {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .official-route-icon {
    width: 22px;
    height: 22px;
  }

  body.official-site > main,
  body.official-site main.official-main,
  body.official-site main.entry-shell,
  body.official-site main.equipment-shell,
  body.official-site main.calls-shell {
    width: calc(100% - 22px) !important;
    margin: 18px auto 42px !important;
  }

  body.official-site main > :is(section, aside, header),
  body.official-site :is(.panel, .account-bar, .entry-card, .request-card) {
    border-radius: 13px !important;
  }

  body.official-site :is(
    .document-masthead,
    .operations-head,
    .rules-document-head,
    .result-hero,
    .entry-heading,
    .equipment-intro,
    .calls-intro,
    .arena-intro
  ) {
    border-radius: 16px !important;
  }

  .official-mobile-media {
    width: calc(100% - 22px);
    padding: 16px;
  }

  .official-mobile-media .official-media-list {
    grid-template-columns: 1fr;
  }

  .official-media-banner,
  .official-media-banner > span {
    min-height: 92px;
  }

  .operations-schedule {
    gap: 18px;
    padding: 20px 16px !important;
  }

  .schedule-highlight-list,
  .schedule-week {
    grid-template-columns: 1fr;
  }

  .schedule-highlight {
    padding: 15px;
  }

  .schedule-highlight__meta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .schedule-highlight__state {
    grid-column: 2;
    justify-self: start;
  }

  .schedule-day {
    min-height: 0;
    padding: 10px;
  }

  .schedule-day.is-today {
    padding: 9px;
  }

  .schedule-day__event {
    margin-top: 0;
  }

  body.participant-site .intro {
    padding: 26px 20px !important;
  }

  body.participant-site .intro h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }
}

/* Paper surfaces retain their own ink even when the component originated in
   the dark catalogue. Selected tabs keep the existing white-on-teal state. */
body.official-site .standard-supply dd {
  color: var(--office-ink) !important;
}

body.official-site :is(.standard-supply, .slot-rail, .call-slot-rail, .call-summary) > header :is(span, b),
body.official-site :is(.equipment-intro__visual, .standard-supply__visual) figcaption span,
body.official-site .call-catalog__head > div > :is(span, p),
body.official-site .call-summary__rule b,
body.official-site :is(.equipment-mobile-status, .calls-mobile-status) :is(span, b) {
  color: var(--office-blue-dark) !important;
}

body.official-site .standard-supply aside > span {
  color: var(--office-amber) !important;
}

body.official-site .call-slot-button[aria-selected="false"] :is(span, b) {
  color: var(--office-muted) !important;
}

/* Catalogue controls now sit on paper surfaces, including their helper text.
   Keep selected tabs white on teal and avoid changing decorative brand fills. */
body.official-site .slot-button[aria-selected="false"] :is(.slot-button__number, .slot-button__copy span),
body.official-site .build-summary :is(span, dt, .build-summary__note),
body.official-site .safety-choice button[aria-checked="false"] small,
body.official-site :is(.equipment-finish__next, .calls-finish__next) > span {
  color: var(--office-muted) !important;
}

body.official-site .equipment-quick-guide__groups > article > header span,
body.official-site .equipment-catalog__head div p,
body.official-site .equipment-finish__next :is(b, i) {
  color: var(--office-blue-dark) !important;
}

body.official-site .equipment-catalog__head span,
body.official-site .equipment-function-note span,
body.official-site .equipment-item__code,
body.official-site .equipment-item__ability i,
body.official-site .safety-registry__kicker,
body.official-site .safety-registry > figure figcaption span,
body.official-site .safety-choice button[aria-checked="false"] span,
body.official-site .safety-result > header span {
  color: var(--office-amber) !important;
}

body.official-site .equipment-item__cost {
  background: var(--office-paper-2) !important;
}
body.official-site .equipment-item__cost span {
  background: var(--office-paper-2) !important;
  color: var(--office-muted) !important;
}
body.official-site .equipment-item__cost b {
  color: var(--office-blue-dark) !important;
}

body.official-site .safety-choice button[aria-checked="true"] {
  background: var(--office-blue-dark) !important;
  color: #fff !important;
}
body.official-site .safety-choice button[aria-checked="true"] :is(span, b, small) {
  color: #fff !important;
}

body.official-site .call-rules > header > p,
body.official-site .call-rules article > span {
  color: #655083 !important;
}

@media (prefers-reduced-motion: reduce) {
  .official-header > nav a,
  .official-media-banner img {
    transition: none;
  }
}

@media print {
  .official-sidebar-tools,
  .official-mobile-media {
    display: none !important;
  }
}
