/* =========================================================================
   Components. Loose BEM: .block, .block__element, .block--modifier.
   Behaviour hooks are data- attributes (see assets/js), never class names.
   ========================================================================= */

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rs-space-2);
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--rs-radius-pill);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease),
    border-color var(--rs-duration-fast) var(--rs-ease),
    transform var(--rs-duration-fast) var(--rs-ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--rs-lime);
  color: var(--rs-text-on-accent);
}

.btn--primary:hover {
  background: var(--rs-lime-bright);
  color: var(--rs-text-on-accent);
}

.btn--outline {
  border-color: var(--rs-border-strong);
  background: transparent;
  color: var(--rs-text);
}

.btn--outline:hover {
  border-color: var(--rs-blue-bright);
  color: var(--rs-blue-bright);
}

.btn--sm {
  min-height: 2.25rem;
  padding: 0.4rem 1rem;
  font-size: var(--rs-text-base);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.8rem 1.75rem;
  font-size: var(--rs-text-xl);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--rs-duration-fast) var(--rs-ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.link-arrow--back::after {
  content: none;
}

.link-arrow--back::before {
  content: '←';
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--rs-radius-pill);
  background: var(--rs-lime);
  color: var(--rs-text-on-accent);
  font-size: var(--rs-text-xs);
  font-weight: 600;
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  font-family: var(--rs-font-sans);
}

.badge--outline {
  background: transparent;
  color: var(--rs-sky);
  border: 1px solid var(--rs-border-strong);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--rs-z-header);
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rs-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--rs-space-5);
  min-height: var(--rs-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-3);
  color: var(--rs-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--rs-text);
}

.brand__logo {
  width: 40px;
  height: 40px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--rs-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand__sub {
  color: var(--rs-blue-bright);
  font-size: 0.78rem;
  letter-spacing: var(--rs-tracking-wide);
}

.main-nav {
  display: none;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--rs-space-1);
  list-style: none;
}

.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: var(--rs-radius-pill);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--rs-text);
  background: var(--rs-surface-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  margin-left: auto;
}

.site-header__cta {
  display: none;
  white-space: nowrap;
}

@media (min-width: 1240px) {
  .main-nav {
    display: block;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none !important;
  }
}

.nav-toggle,
.drawer__close {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rs-border);
  border-radius: 50%;
  background: transparent;
  color: var(--rs-text);
  cursor: pointer;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-pill);
  background: transparent;
  color: var(--rs-text);
  font: 600 var(--rs-text-sm) / 1 var(--rs-font-sans);
  cursor: pointer;
}

.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  padding: var(--rs-space-2);
  list-style: none;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity var(--rs-duration-fast) var(--rs-ease),
    transform var(--rs-duration-fast) var(--rs-ease),
    visibility var(--rs-duration-fast);
}

.lang-switcher[data-open='true'] .lang-switcher__menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.lang-switcher__menu a {
  display: flex;
  gap: var(--rs-space-3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--rs-radius-sm);
  color: var(--rs-text);
  text-decoration: none;
}

.lang-switcher__menu a:hover,
.lang-switcher__menu a[aria-current='true'] {
  background: var(--rs-surface-3);
}

.lang-switcher__code {
  width: 1.75rem;
  color: var(--rs-blue-bright);
  font-weight: 600;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--rs-z-drawer);
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-5);
  width: min(22rem, 88vw);
  padding: var(--rs-space-5);
  background: var(--rs-surface-1);
  border-left: 1px solid var(--rs-border);
  overflow-y: auto;
}

.drawer__close {
  align-self: flex-end;
}

.drawer__nav {
  list-style: none;
}

.drawer__nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rs-border);
  color: var(--rs-text);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xl);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 6vw, 9rem) var(--rs-space-8);
  background:
    radial-gradient(70% 90% at 80% 10%, rgba(0, 160, 227, 0.22), transparent 70%),
    var(--rs-ink);
  border-bottom: 1px solid var(--rs-border);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rs-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rs-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__track-line {
  fill: none;
  stroke: rgba(0, 160, 227, 0.28);
  stroke-width: 34;
  stroke-linecap: round;
}

.hero__track-dash {
  fill: none;
  stroke: var(--rs-lime);
  stroke-width: 2;
  stroke-dasharray: 14 12;
  opacity: 0.75;
  animation: track-run 18s linear infinite;
}

.hero__track-node {
  fill: var(--rs-ink);
  stroke: var(--rs-lime);
  stroke-width: 2;
}

@keyframes track-run {
  to {
    stroke-dashoffset: -520;
  }
}

.hero__inner {
  position: relative;
}

@media (max-width: 700px) {
  .hero__track {
    opacity: 0.35;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--rs-space-5);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  color: var(--rs-sky);
  font-family: var(--rs-font-display);
  font-weight: 600;
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
  background: rgba(7, 11, 18, 0.6);
}

.hero__title {
  max-width: 14ch;
  font-size: var(--rs-text-5xl);
  line-height: var(--rs-leading-tight);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__title span:nth-child(4n + 2) {
  color: var(--rs-blue-bright);
}

.hero__title span:nth-child(4n + 4) {
  color: var(--rs-lime);
}

.hero__lead {
  max-width: 40rem;
  margin-top: var(--rs-space-6);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-top: var(--rs-space-5);
  color: var(--rs-text);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-3);
  margin-top: var(--rs-space-7);
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: var(--rs-space-9) 0 0;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: rgba(12, 18, 28, 0.85);
  overflow: hidden;
}

.facts__item {
  padding: var(--rs-space-5);
  border-right: 1px solid var(--rs-border);
  border-bottom: 1px solid var(--rs-border);
  margin: 0 -1px -1px 0;
}

.facts dt {
  color: var(--rs-text-subtle);
  font-size: var(--rs-text-xs);
  font-weight: 600;
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
}

.facts dd {
  margin: var(--rs-space-1) 0 0;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xl);
  font-weight: 600;
}

/* ---------------------------------------------------------- page header */

.page-header {
  padding-block: var(--rs-space-9) var(--rs-space-7);
  background:
    linear-gradient(var(--rs-grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--rs-grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(60% 100% at 85% 0%, rgba(0, 160, 227, 0.18), transparent 70%),
    var(--rs-ink);
  border-bottom: 1px solid var(--rs-border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
  list-style: none;
  color: var(--rs-text-subtle);
  font-size: var(--rs-text-sm);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--rs-space-2);
}

.breadcrumbs a {
  color: var(--rs-text-muted);
  text-decoration: none;
}

.page-header__title {
  margin-top: var(--rs-space-4);
  font-size: var(--rs-text-4xl);
  text-transform: uppercase;
  line-height: 1;
}

.page-header__lead {
  max-width: 46rem;
  margin-top: var(--rs-space-4);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-lg);
}

/* -------------------------------------------------------------- pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--rs-space-4);
  list-style: none;
}

.pillar {
  padding: var(--rs-space-6);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-bg-card);
}

.pillar__num {
  display: block;
  color: var(--rs-blue-bright);
  font-family: var(--rs-font-mono);
  font-size: var(--rs-text-sm);
}

.pillar__num::before {
  content: '0';
}

.pillar__title {
  margin: var(--rs-space-3) 0 var(--rs-space-2);
  font-size: var(--rs-text-xl);
  text-transform: uppercase;
}

.pillar p {
  color: var(--rs-text-muted);
}

/* ---------------------------------------------------------- disciplines */

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--rs-space-5);
}

@media (min-width: 1100px) {
  .discipline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .discipline-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.discipline-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-bg-card);
  color: var(--rs-text);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color var(--rs-duration) var(--rs-ease),
    transform var(--rs-duration) var(--rs-ease),
    background var(--rs-duration) var(--rs-ease);
}

.discipline-card__link:hover {
  color: var(--rs-text);
  border-color: var(--accent);
  background: var(--rs-bg-card-hover);
  transform: translateY(-3px);
}

.discipline-card__media {
  position: relative;
  border-bottom: 1px solid var(--rs-border);
  background: var(--rs-ink);
  border-top: 3px solid var(--accent);
}

.discipline-card__meta {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
}

.discipline-card__index {
  color: var(--accent);
  line-height: 1;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-2xl);
  font-weight: 700;
}

.discipline-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rs-space-3);
  padding: var(--rs-space-5);
}

.discipline-card__title {
  font-size: var(--rs-text-xl);
  text-transform: uppercase;
}

.discipline-card__summary {
  flex: 1;
  color: var(--rs-text-muted);
  font-size: var(--rs-text-sm);
}

.discipline-card .link-arrow {
  color: var(--accent);
}

/* -------------------------------------------------------------- diagram */

.diagram {
  width: 100%;
  height: auto;
  --accent-stroke: var(--accent, var(--rs-blue));
}

.diagram .dg-grid {
  stroke: var(--rs-grid-line);
  stroke-width: 1;
}

.diagram .dg-route {
  fill: none;
  stroke: var(--accent-stroke);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
}

.diagram .dg-fill-accent {
  fill: var(--accent-stroke);
}

.diagram .dg-block {
  fill: rgba(161, 216, 246, 0.08);
  stroke: var(--rs-sky);
  stroke-width: 1.5;
}

.diagram .dg-robot {
  fill: var(--accent-stroke);
  stroke: none;
}

.diagram .dg-robot--alt {
  fill: var(--rs-sky);
}

.diagram .dg-ring {
  fill: #0d141f;
  stroke: rgba(161, 216, 246, 0.3);
  stroke-width: 2;
}

.diagram .dg-ring-edge {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  opacity: 0.85;
}

.diagram .dg-startlines {
  stroke: rgba(161, 216, 246, 0.5);
  stroke-width: 2;
}

.diagram .dg-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 10;
  stroke-linecap: round;
}

.diagram .dg-line-core {
  fill: none;
  stroke: var(--accent-stroke);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.diagram .dg-wall {
  fill: none;
  stroke: var(--rs-sky);
  stroke-width: 4;
  stroke-linejoin: round;
}

.diagram .dg-finish {
  stroke: var(--rs-lime);
  stroke-width: 4;
  stroke-dasharray: 4 4;
}

.diagram .dg-dim {
  fill: none;
  stroke: var(--rs-text-subtle);
  stroke-width: 1;
}

.diagram .dg-label {
  fill: var(--rs-text-muted);
  font-family: var(--rs-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.diagram-figure {
  margin: 0;
  border: 1px solid var(--rs-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-ink);
  overflow: hidden;
}

.diagram-figure figcaption {
  padding: var(--rs-space-3) var(--rs-space-4);
  border-top: 1px solid var(--rs-border);
  color: var(--rs-text-subtle);
  font-size: var(--rs-text-sm);
}

.detail-aside {
  display: grid;
  gap: var(--rs-space-5);
}

@media (min-width: 900px) {
  .detail-aside {
    position: sticky;
    top: calc(var(--rs-header-h) + var(--rs-space-5));
  }
}

.detail-block__title {
  margin-bottom: var(--rs-space-2);
  font-size: var(--rs-text-2xl);
  text-transform: uppercase;
}

.detail-block p {
  color: var(--rs-text-muted);
}

.detail-block .badge {
  margin-right: var(--rs-space-2);
}

.callout {
  padding: var(--rs-space-4) var(--rs-space-5);
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-blue);
  border-radius: var(--rs-radius);
  background: rgba(0, 160, 227, 0.08);
  color: var(--rs-text);
}

.callout .badge {
  margin-right: var(--rs-space-2);
}

.fee {
  font-size: var(--rs-text-lg);
}

.fee strong {
  color: var(--rs-text);
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--rs-space-4);
  list-style: none;
  counter-reset: none;
}

.steps__item {
  position: relative;
  padding: var(--rs-space-6) var(--rs-space-5) var(--rs-space-5);
  border-top: 2px solid var(--rs-border-strong);
}

.steps__item:first-child {
  border-top-color: var(--rs-lime);
}

.steps__num {
  display: block;
  color: var(--rs-lime);
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-4xl);
  font-weight: 700;
  line-height: 1;
}

.steps__title {
  margin: var(--rs-space-3) 0 var(--rs-space-2);
  font-size: var(--rs-text-xl);
  text-transform: uppercase;
}

.steps__item p {
  color: var(--rs-text-muted);
}

/* -------------------------------------------------------------- formats */

.format-cards {
  display: grid;
  gap: var(--rs-space-4);
}

.format-cards--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.format-card {
  padding: var(--rs-space-6);
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-blue);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-bg-card);
}

.format-card--remote {
  border-left-color: var(--rs-slate-bright);
  border-left-style: dashed;
}

.format-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rs-space-3);
  margin-bottom: var(--rs-space-2);
  font-size: var(--rs-text-2xl);
  text-transform: uppercase;
}

.format-card p {
  color: var(--rs-text-muted);
}

.contact-email {
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-2xl);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- audience */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--rs-space-3);
  list-style: none;
}

.audience li {
  position: relative;
  padding: var(--rs-space-4) var(--rs-space-4) var(--rs-space-4) 2.75rem;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-bg-card);
}

.audience li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--rs-blue-bright);
  border-radius: 3px;
}

.audience--goals {
  grid-template-columns: 1fr;
}

/* ----------------------------------------------------------------- news */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--rs-space-5);
}

.news-card {
  padding: var(--rs-space-6);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-bg-card);
}

.news-card__date {
  color: var(--rs-blue-bright);
  font-family: var(--rs-font-mono);
  font-size: var(--rs-text-sm);
}

.news-card__title {
  margin: var(--rs-space-2) 0;
  font-size: var(--rs-text-xl);
  text-transform: uppercase;
}

.news-card__title a {
  color: var(--rs-text);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--rs-lime);
}

.news-card__summary {
  color: var(--rs-text-muted);
}

/* ------------------------------------------------------------ organiser */

.organiser {
  display: flex;
  gap: var(--rs-space-5);
  align-items: flex-start;
}

.organiser img {
  flex: none;
  width: 72px;
  height: 72px;
}

.organiser p {
  color: var(--rs-text-muted);
}

.organiser p + p {
  margin-top: var(--rs-space-3);
}

/* ----------------------------------------------------------- status list */

.status-list {
  list-style: none;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-bg-card);
}

.status-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-3);
  padding: var(--rs-space-4) var(--rs-space-5);
}

.status-list__item + .status-list__item {
  border-top: 1px solid var(--rs-border);
}

.status-list__item:first-child {
  font-weight: 600;
}

/* ------------------------------------------------------------- timeline */

.timeline {
  list-style: none;
  margin-bottom: var(--rs-space-6);
}

.timeline__item {
  position: relative;
  padding: 0 0 var(--rs-space-6) var(--rs-space-6);
  border-left: 2px solid var(--rs-border-strong);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rs-lime);
}

.timeline__date {
  display: block;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-2xl);
  font-weight: 700;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ accordion */

.accordion__item {
  border-bottom: 1px solid var(--rs-border);
}

.accordion__q {
  position: relative;
  padding: var(--rs-space-5) var(--rs-space-7) var(--rs-space-5) 0;
  font-family: var(--rs-font-display);
  font-size: var(--rs-text-xl);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.accordion__q::-webkit-details-marker {
  display: none;
}

.accordion__q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rs-blue-bright);
  font-size: 1.75rem;
  font-weight: 400;
}

.accordion__item[open] .accordion__q::after {
  content: '−';
}

.accordion__a {
  padding-bottom: var(--rs-space-5);
  color: var(--rs-text-muted);
}

/* ----------------------------------------------------------------- forms */

.form-card {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface-1);
  box-shadow: var(--rs-shadow);
}

.form-card__title {
  font-size: var(--rs-text-2xl);
  text-transform: uppercase;
}

.form-card__intro {
  margin-top: var(--rs-space-3);
  color: var(--rs-text-muted);
}

.form {
  display: grid;
  gap: var(--rs-space-5);
  margin-top: var(--rs-space-6);
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: var(--rs-space-2);
  padding: 0;
  font-weight: 600;
}

.field__optional {
  color: var(--rs-text-subtle);
  font-weight: 400;
}

.field__hint {
  margin-top: var(--rs-space-1);
  color: var(--rs-text-subtle);
  font-size: var(--rs-text-sm);
}

.field__error {
  margin-top: var(--rs-space-1);
  color: var(--rs-danger);
  font-size: var(--rs-text-sm);
}

.field__error:empty {
  display: none;
}

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius);
  background: var(--rs-ink);
  color: var(--rs-text);
  font: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--rs-blue-bright);
  box-shadow: var(--rs-focus);
}

.input[aria-invalid='true'] {
  border-color: var(--rs-danger);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--rs-space-2);
}

.choice {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-ink);
  cursor: pointer;
  font-size: var(--rs-text-sm);
  transition: border-color var(--rs-duration-fast) var(--rs-ease);
}

.choice:hover {
  border-color: var(--rs-border-strong);
}

.choice:has(input:checked) {
  border-color: var(--rs-blue-bright);
  background: rgba(0, 160, 227, 0.12);
}

.choice input,
.checkbox input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--rs-lime);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-3);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.2rem;
}

.form__minors {
  color: var(--rs-text-subtle);
  font-size: var(--rs-text-sm);
}

.form-status {
  font-size: var(--rs-text-sm);
  color: var(--rs-danger);
}

.form-status:empty {
  display: none;
}

.form-status[data-state='info'] {
  color: var(--rs-text-muted);
}

.form-success {
  margin-top: var(--rs-space-6);
  padding: var(--rs-space-6);
  border: 1px solid rgba(88, 224, 139, 0.4);
  border-radius: var(--rs-radius);
  background: rgba(88, 224, 139, 0.08);
  color: var(--rs-text);
}

.form-success:focus {
  outline: none;
}

.form-success svg {
  color: var(--rs-success);
  margin-bottom: var(--rs-space-3);
}

.form-success h3 {
  margin-bottom: var(--rs-space-2);
  font-size: var(--rs-text-2xl);
  text-transform: uppercase;
}

.form-success p + p {
  margin-top: var(--rs-space-3);
}

/* Visually hidden, not display:none -- some bots skip hidden inputs. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: var(--rs-space-9) var(--rs-space-6);
  background: var(--rs-surface);
  border-top: 1px solid var(--rs-border);
  font-size: var(--rs-text-sm);
}

.site-footer__grid {
  display: grid;
  gap: var(--rs-space-7);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
  }
}

.site-footer__brand p {
  margin-top: var(--rs-space-4);
  color: var(--rs-text-muted);
  max-width: 26rem;
}

.site-footer__event {
  color: var(--rs-text) !important;
  font-weight: 600;
}

.site-footer__title {
  margin-bottom: var(--rs-space-3);
  color: var(--rs-text-subtle);
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-xs);
  font-weight: 600;
  letter-spacing: var(--rs-tracking-wider);
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: var(--rs-space-2);
  list-style: none;
}

.site-footer__links a {
  color: var(--rs-text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__links a:hover {
  color: var(--rs-lime);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rs-space-3);
  margin-top: var(--rs-space-8);
  padding-top: var(--rs-space-5);
  border-top: 1px solid var(--rs-border);
  color: var(--rs-text-subtle);
}

/* ------------------------------------------------------------ error page */

.error-page {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

.error-page__code {
  color: var(--rs-blue);
  font-family: var(--rs-font-display);
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
}

.error-page .cluster {
  margin-top: var(--rs-space-6);
}

/* -------------------------------------------------------------- assistant */
/* Copied from roboskills.fi so the two assistants look and behave alike. */

.ask-ai {
  position: fixed;
  right: max(var(--rs-space-4), env(safe-area-inset-right));
  bottom: max(var(--rs-space-4), env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: var(--rs-space-3);
}

/* Enough room that the launcher never covers the last row of footer links. */
.has-ask-ai .site-footer {
  padding-bottom: calc(var(--rs-space-6) + 3rem);
}

.ask-ai__launcher {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2);
  padding: var(--rs-space-2) var(--rs-space-4) var(--rs-space-2) var(--rs-space-2);
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: rgba(23, 31, 49, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  box-shadow: var(--rs-shadow);
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    transform var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__launcher:hover {
  border-color: var(--rs-lime);
  transform: translateY(-1px);
}

.ask-ai__launcher-label {
  font-size: var(--rs-text-sm);
  letter-spacing: 0.01em;
}

.ask-ai__panel {
  width: min(24rem, calc(100vw - 2rem));
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow);
  padding: var(--rs-space-4);
  display: grid;
  gap: var(--rs-space-3);
  max-height: min(70vh, 34rem);
  overflow-y: auto;
}

.ask-ai__bar {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2);
  padding: var(--rs-space-1) var(--rs-space-1) var(--rs-space-1) var(--rs-space-3);
  background: var(--rs-surface-3);
  border: 1px solid var(--rs-border-strong);
  border-radius: var(--rs-radius-pill);
  transition: border-color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__bar:focus-within {
  border-color: var(--rs-lime);
}

.ask-ai__avatar {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.ask-ai__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: #fff;
  padding-block: var(--rs-space-2);
}

.ask-ai__input::placeholder {
  color: var(--rs-text-subtle);
}

.ask-ai__input:focus {
  outline: none;
}

.ask-ai__send {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--rs-lime);
  color: #05070c;
  cursor: pointer;
  transition: background-color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__send:hover {
  background: var(--rs-lime-bright);
}

.ask-ai__send:disabled {
  opacity: 0.5;
  cursor: default;
}

.ask-ai__head {
  display: flex;
  align-items: center;
  gap: var(--rs-space-2);
}

.ask-ai__title {
  font-family: var(--rs-font-display);
  text-transform: uppercase;
  letter-spacing: var(--rs-tracking-wide);
  font-size: var(--rs-text-sm);
}

.ask-ai__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--rs-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--rs-space-1);
}

.ask-ai__close:hover {
  color: #fff;
}

.ask-ai__body {
  display: grid;
  gap: var(--rs-space-3);
  justify-items: start;
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}

.ask-ai__answer {
  margin: 0;
  color: var(--rs-text);
}

.ask-ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2);
}

.ask-ai__chip {
  border: 1px solid var(--rs-border);
  background: transparent;
  color: var(--rs-text-muted);
  font: inherit;
  font-size: var(--rs-text-xs);
  padding: var(--rs-space-1) var(--rs-space-3);
  border-radius: var(--rs-radius-pill);
  cursor: pointer;
  transition:
    border-color var(--rs-duration-fast) var(--rs-ease),
    color var(--rs-duration-fast) var(--rs-ease);
}

.ask-ai__chip:hover {
  border-color: var(--rs-lime);
  color: #fff;
  background: rgba(214, 251, 35, 0.1);
}

/* An assistant that can be wrong has to say so where the answer is read. */
.ask-ai__note {
  margin: 0;
  font-size: var(--rs-text-xs);
  color: var(--rs-text-subtle);
}

@media (max-width: 40rem) {
  /* On a phone the corner is worth more than the word: the launcher is the
     robot and nothing else, and the panel takes the width it needs. */
  .ask-ai__launcher {
    padding: var(--rs-space-2);
  }

  .ask-ai__launcher-label {
    display: none;
  }

  .ask-ai__panel {
    width: calc(100vw - 1.5rem);
    max-height: min(75vh, 32rem);
  }
}

@media print {
  .ask-ai {
    display: none;
  }
}

