/* Public competition pages. Shared tokens, controls and shell live in design-system.f12.css. */
.kadet-page main.shell-container { padding-block: 0 4rem; }
.kadet-page [id] { scroll-margin-top: 2rem; }
.kadet-page h1,
.kadet-page h2,
.kadet-page h3 { color: var(--text); letter-spacing: -.035em; }
.kadet-page h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; text-wrap: balance; }
.kadet-page h3 { line-height: 1.3; }
.kadet-page .eyebrow { margin: 0 0 .85rem; }

.kadet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5.75rem) clamp(3rem, 6vw, 5rem);
}
.kadet-hero h1 { font-size: clamp(3.5rem, 5.6vw, 5.15rem); line-height: 1.02; font-weight: 850; letter-spacing: -.055em; }
.kadet-hero h1 > span { display: block; color: var(--accent); }
.kadet-motto { margin: 1.4rem 0 0; font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
.kadet-motto > span { color: var(--accent); }
.kadet-hero-intro { max-width: 42ch; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.kadet-hero-facts { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.kadet-hero-facts li { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 650; color: var(--text); }
.kadet-hero-facts li::before { width: .3rem; height: .3rem; border-radius: 50%; background: var(--warm-accent); content: ""; }
.kadet-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; margin-top: 1.9rem; }
.kadet-hero-actions .button { min-height: 3.15rem; gap: 1.25rem; padding-inline: 1.2rem; }
.kadet-text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--accent); font-size: .93rem; font-weight: 700; text-decoration: none; text-underline-offset: .2em; }
.kadet-text-link:hover { color: var(--accent-hover); text-decoration: underline; }
.kadet-hero-availability { display: flex; align-items: center; gap: .55rem; margin: .95rem 0 0; color: var(--muted); font-size: .8rem; }
.kadet-status-dot { flex: 0 0 .4rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--warm-accent); }
.kadet-status-dot.is-open { background: var(--accent); }
/* Reuse the former hero-seal's circular surface and inset double ring. */
.kadet-brand-visual {
  display: grid;
  width: min(100%, 20rem);
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid #b49352;
  outline: 1px solid #b49352;
  outline-offset: -10px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.kadet-brand-visual .brand-motif { width: 62%; height: auto; }


.kadet-section { padding-block: clamp(2.6rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.kadet-section-heading > p:last-child { max-width: 60ch; margin: 1rem 0 0; color: var(--muted); }
.kadet-section-heading > .eyebrow:last-child { margin-top: 0; }
.kadet-about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; }
.kadet-about h2 { font-size: clamp(1.7rem, 2.7vw, 2.1rem); }
.kadet-about-copy { max-width: 66ch; color: var(--muted); line-height: 1.8; }
.kadet-about-copy p { margin: 0 0 .9rem; }
.kadet-about-copy p:last-child { margin-bottom: 0; }
.kadet-about-copy strong { color: var(--text); font-weight: 650; }
.kadet-rounds { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.kadet-round { min-width: 0; padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 1.1rem; background: var(--surface); }
.kadet-round-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--accent); }
.kadet-round-number { font-size: 2.4rem; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: #647b63; }
.kadet-round h3 { margin: 1.45rem 0 .7rem; font-size: 1.4rem; }
.kadet-round p { max-width: 48ch; margin: 0; color: var(--muted); line-height: 1.75; }
.kadet-round-label { display: inline-block; margin-top: 1.5rem; padding: .35rem .7rem; border-radius: .4rem; background: var(--accent-soft); color: var(--accent-hover); font-size: .75rem; font-weight: 700; }
.kadet-round-final { background: #f0f4ec; }
.kadet-round-final .kadet-round-label { background: var(--surface); }
.kadet-round-connector { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid var(--border); border-radius: 50%; transform: translate(-50%, -50%); background: var(--bg); color: var(--accent); font-size: 1.2rem; }

.kadet-current { display: flex; align-items: flex-start; gap: 1.3rem; margin-block: .25rem 3.5rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid #d7e2cf; border-radius: 1.1rem; background: var(--accent-soft); }
.kadet-current-icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; flex: 0 0 3.3rem; border: 1px solid #d1dfc9; border-radius: .85rem; background: var(--surface); color: var(--accent); }
.kadet-current-copy { flex: 1; min-width: 0; }
.kadet-current .eyebrow { margin-bottom: .5rem; font-size: .7rem; }
.kadet-current h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }
.kadet-current-copy > p:not(.eyebrow) { max-width: 65ch; margin: .7rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.kadet-current > .button { align-self: center; flex-shrink: 0; gap: 1rem; }
.kadet-current .kadet-text-link { margin-top: .35rem; }
.kadet-history { padding-bottom: 0; }
.kadet-section-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }

.kadet-archive-index { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.kadet-archive-heading { max-width: 52rem; margin-bottom: 2.5rem; }
.kadet-archive-heading h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.kadet-archive-heading .lead { max-width: 54ch; margin-top: 1.15rem; line-height: 1.75; }
.kadet-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; margin-top: 1.75rem; }
.kadet-year-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.8rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); color: var(--text); text-decoration: none; overflow-wrap: anywhere; transition: border-color 150ms, box-shadow 150ms; }
.kadet-year-card:hover { border-color: var(--accent); box-shadow: 0 5px 20px #1b42250a; }
.kadet-year { display: inline-flex; padding: .35rem .65rem; border-radius: .4rem; background: var(--accent-soft); color: var(--accent); font-size: .95rem; font-weight: 800; }
.kadet-year-card h3 { margin: 1.1rem 0 .65rem; font-size: 1.35rem; }
.kadet-year-card p { margin: 0 0 1.5rem; color: var(--muted); line-height: 1.75; }
.kadet-year-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; padding-top: 1rem; color: var(--accent); font-size: .85rem; font-weight: 750; }
.kadet-archive-empty { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.75rem; padding: 1.75rem 2rem; border: 1px dashed #bdccba; border-radius: 1rem; background: #f0f3eb; }
.kadet-empty-icon { display: grid; place-items: center; flex: 0 0 3.25rem; width: 3.25rem; height: 3.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); color: var(--accent); }
.kadet-archive-empty h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.kadet-archive-empty p { margin: 0; color: var(--muted); font-size: .92rem; }

.archive-year { padding-block: 2.5rem 0; min-width: 0; }
.archive-heading { max-width: 58rem; }
.archive-back-link { margin-bottom: 2rem; font-size: .85rem; }
.archive-heading h1 { margin-bottom: 1.4rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.archive-heading > .lead { max-width: 65ch; line-height: 1.8; }
.archive-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-section-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.5rem; }
.archive-section-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); color: var(--accent); font-size: .85rem; font-weight: 650; text-decoration: none; }
.archive-section-nav a:hover { background: var(--accent-soft); border-color: var(--accent); }
.archive-dates { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.archive-dates dt { color: var(--muted); font-size: .8rem; }
.archive-dates dd { margin: .35rem 0 0; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.archive-section { min-width: 0; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.archive-section > h2 { margin-bottom: 1.25rem; font-size: 1.65rem; }
.archive-announcement { max-width: 76ch; color: var(--text); font-size: 1rem; line-height: 1.9; tab-size: 4; }
.archive-poster-figure { max-width: 27rem; margin: 2rem 0; }
.archive-poster-link { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; max-width: 100%; padding: .8rem .8rem .35rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); color: var(--accent); text-decoration: none; }
.archive-poster-link:hover { border-color: var(--accent); }
.archive-poster { display: block; width: auto; height: auto; max-width: 100%; max-height: 30rem; margin-inline: auto; object-fit: contain; }
.archive-poster-link > span { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .85rem; font-weight: 650; }
.archive-poster-figure figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.kadet-page .table-scroll { max-width: 100%; margin: 1.2rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.kadet-page .archive-results { table-layout: fixed; width: 100%; min-width: 35rem; border-collapse: collapse; }
.archive-results .result-place { width: 16%; }
.archive-results .result-team { width: 36%; }
.archive-results .result-town { width: 30%; }
.archive-results .result-score { width: 18%; }
.kadet-page .archive-results th,
.kadet-page .archive-results td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.kadet-page .archive-results th:last-child,
.kadet-page .archive-results td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kadet-page .archive-results thead th { background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; }
.kadet-page .archive-results tbody th { font-weight: 650; }
.kadet-page .archive-results tbody tr:nth-child(even) { background: #f4f7f0; }
.kadet-page .archive-results tr:last-child > * { border-bottom: 0; }
.kadet-page .archive-results caption { padding: .85rem 1rem; color: var(--muted); font-size: .85rem; text-align: left; }
.kadet-preview-notice { margin-top: 2rem; padding: 1.5rem; border: 1px solid #d5bd81; border-radius: .85rem; background: #fbf4e3; }
.kadet-preview-notice h2 { margin-top: .7rem; font-size: 1.4rem; }
.kadet-preview-notice p { margin: .65rem 0; }
.kadet-preview-notice details { margin-top: 1rem; }
.kadet-preview-notice summary { cursor: pointer; font-weight: 650; }
.kadet-preview-label { display: inline-flex; padding: .2rem .55rem; border: 1px solid #cdb577; border-radius: .35rem; color: #725415; font-size: .75rem; font-weight: 750; }

@media (max-width: 64rem) {
  .kadet-hero { gap: 1.25rem; }
  .kadet-hero h1 { font-size: clamp(3rem, 6.2vw, 4.5rem); }
  .kadet-motto { font-size: 1.4rem; }
  .kadet-hero-facts { gap: .5rem .85rem; }
  .kadet-hero-actions { gap: .5rem 1rem; }
  .kadet-about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
  .kadet-current { flex-wrap: wrap; }
  .kadet-current > .button { margin-left: 4.6rem; }
}
@media (max-width: 45rem) {
  .kadet-page main.shell-container { padding-bottom: 2.5rem; }
  .kadet-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2.5rem; }
  .kadet-hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.5rem); }
  .kadet-hero-copy > .eyebrow { font-size: .68rem; }
  .kadet-motto { margin-top: 1.1rem; font-size: 1.35rem; }
  .kadet-hero-intro { font-size: 1rem; }
  .kadet-hero-facts { margin-top: 1.1rem; gap: .5rem .85rem; }
  .kadet-hero-facts li { font-size: .76rem; }
  .kadet-hero-actions { margin-top: 1.4rem; }
  .kadet-hero-actions .button { padding-inline: .95rem; gap: .8rem; font-size: .9rem; }
  .kadet-brand-visual { width: min(100%, 11.5rem); outline-offset: -7px; }
  .kadet-about { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .kadet-section { padding-block: 2.25rem; }
  .kadet-about-copy { font-size: .95rem; }
  .kadet-rounds { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .kadet-round { padding: 1.5rem; }
  .kadet-round-connector { transform: translate(-50%, -50%) rotate(90deg); }
  .kadet-round h3 { margin-top: 1.2rem; }
  .kadet-round p { font-size: .95rem; }
  .kadet-current { gap: 1rem; margin-bottom: 2.25rem; padding: 1.25rem; }
  .kadet-current-icon { width: 2.7rem; height: 2.7rem; flex-basis: 2.7rem; border-radius: .7rem; }
  .kadet-current-copy { flex-basis: calc(100% - 3.7rem); }
  .kadet-current > .button { margin-left: 0; }
  .kadet-section-topline { flex-wrap: wrap; }
  .kadet-history { padding-bottom: 0; }
  .kadet-archive-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.4rem; }
  .kadet-year-card { padding: 1.5rem; }
  .kadet-archive-heading { margin-bottom: 1.75rem; }
  .kadet-archive-empty { align-items: flex-start; gap: 1rem; padding: 1.4rem; }
  .kadet-empty-icon { width: 2.65rem; height: 2.65rem; flex-basis: 2.65rem; border-radius: .6rem; }
  .kadet-archive-empty h3 { font-size: 1rem; }
  .kadet-archive-empty p { font-size: .88rem; }
  .archive-year { padding-top: 1.75rem; }
  .archive-back-link { margin-bottom: 1.5rem; }
  .archive-heading h1 { font-size: 2.2rem; }
  .archive-dates { gap: 1.1rem; padding: 1.1rem; }
  .archive-dates > div { flex: 1 1 10rem; }
  .archive-section { margin-top: 2rem; padding-top: 2rem; }
  .archive-poster { max-height: 26rem; }
  .kadet-page .archive-results th,
  .kadet-page .archive-results td { padding: .85rem; }
  .kadet-preview-notice { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kadet-year-card { transition: none; }
}
