:root {
  color-scheme: light;
  --navy: #061B2C;
  --blue: #0B4E9B;
  --sky: #168FE0;
  --paper: #EAF7FF;
  --line: #D5E2EC;
  --muted: #526B81;
  --ink: #132F49;
  --white: #FFFFFF;
  --display: "Arial Black", Impact, "DejaVu Sans Condensed", "Arial Narrow", sans-serif;
  --body: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--navy); }

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-head {
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}
.page-head__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 5vw, 76px);
}
.page-head h1 {
  min-width: 0;
  margin: 0;
  color: var(--white);
  font: 900 clamp(20px, 2vw, 28px)/1.1 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.brand-mark { display: block; width: 116px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.eyebrow, .section-kicker {
  color: var(--sky);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}
.page-wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 12px 0 24px; }
.page-location { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.section-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.section-nav a:hover, .section-nav a[aria-current="location"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.intro-panel, .content-section, .contact-panel {
  margin: 0 0 12px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.intro-panel { border-top: 3px solid var(--sky); }
.section-kicker { display: flex; align-items: center; gap: 8px; color: var(--blue); }
.section-no { color: var(--sky); font: 700 14px/1 var(--display); letter-spacing: 0; }
.intro-panel h2, .section-heading h2, .contact-panel h2 {
  margin: 7px 0 8px;
  color: var(--navy);
  font: 900 clamp(20px, 2.4vw, 27px)/1.05 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.intro-panel p, .content-section > p, .contact-panel p { margin: 7px 0 0; }
.intro-panel > p:not(.intro-lead) { max-width: 880px; color: var(--muted); }
.intro-lead { color: var(--blue); font-weight: 700; }
.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.fact-item, .feature-item, .safety-point { min-width: 0; display: flex; align-items: flex-start; gap: 11px; }
.fact-item { padding: 6px 0; }
.fact-item .icon, .feature-item .icon, .safety-point .icon { color: var(--blue); margin-top: 1px; }
.fact-item strong, .fact-item small, .safety-point strong, .safety-point small { display: block; }
.fact-item strong { font-size: 12px; line-height: 1.35; }
.fact-item small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.content-section { scroll-margin-top: 8px; }
.section-heading { margin: 0 0 13px; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { margin-bottom: 12px !important; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  border-top: 1px solid var(--line);
}
.feature-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.feature-item h3 { margin: 0; color: var(--navy); font-size: 13px; line-height: 1.35; }
.feature-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.participation-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.steps-list, .rule-list, .rank-list, .document-list { margin: 0; padding-left: 22px; }
.steps-list { list-style: none; padding-left: 0; }
.steps-list li { position: relative; min-height: 31px; margin: 0 0 9px; padding-left: 37px; }
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font: 700 10px var(--display);
}
.accordion-stack { border-top: 1px solid var(--line); }
.accordion-stack details { border-bottom: 1px solid var(--line); }
.accordion-stack summary { position: relative; cursor: pointer; list-style: none; padding: 11px 28px 11px 0; color: var(--blue); font-size: 12px; font-weight: 800; }
.accordion-stack summary::-webkit-details-marker { display: none; }
.accordion-stack summary::after { content: "+"; position: absolute; right: 3px; top: 7px; color: var(--sky); font: 700 19px var(--display); }
.accordion-stack details[open] summary::after { content: "−"; }
.accordion-stack details p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; background: var(--navy); border-color: var(--navy); color: var(--white); }
.contact-panel .section-kicker { color: var(--sky); }
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: #D4E1EB; font-size: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 480px; }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button svg:not(.icon) { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--sky); color: var(--navy); }
.button-primary:hover { background: #DDF1FF; }
.button-light { background: var(--white); color: var(--blue); }
.button-light:hover { background: #DDF1FF; }
.button-outline { border-color: rgba(234,247,255,.55); color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy); }
.page-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px clamp(24px, 5vw, 76px); background: var(--navy); color: #9FB3C4; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.footer-brand { color: var(--white); font: 18px var(--display); letter-spacing: .06em; }
.footer-up { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; background: var(--blue); color: var(--white); }
.footer-up svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Regulation page */
.table-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 5px; }
.table-heading h3, .subheading, .accommodation-block h3 { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.35; }
.table-heading--sub { margin-top: 16px; margin-bottom: 7px; }
.review-flag { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-left: 2px solid var(--sky); background: #EAF4FB; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.source-review { margin: 0 0 7px !important; padding: 7px 10px; border-left: 2px solid var(--sky); background: #EAF4FB; color: var(--muted); font-size: 11px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 12px; line-height: 1.35; }
.data-table caption { caption-side: top; padding: 0 0 5px; color: var(--muted); font-size: 10px; text-align: left; }
.data-table thead { background: var(--navy); color: var(--white); text-align: left; }
.data-table th, .data-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.data-table tbody th[scope="row"] { color: var(--blue); font-weight: 900; text-align: left; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #F7FAFC; }
.inline-note { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0 !important; padding: 10px 12px; border-left: 2px solid var(--sky); background: #EAF4FB; color: var(--muted); font-size: 11px; }
.inline-note .icon { color: var(--blue); width: 16px; height: 16px; }
.rule-list { display: grid; gap: 7px; }
.rule-list li, .rank-list li, .document-list li { padding-left: 2px; }
.rule-list li::marker, .rank-list li::marker, .document-list li::marker { color: var(--sky); font-weight: 900; }
.rule-list--plain { margin-top: 13px; }
.subheading { margin: 15px 0 7px; }
.rank-list { display: grid; gap: 5px; }
.safety-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.safety-point { padding: 8px 0; }
.safety-point strong { color: var(--navy); font-size: 12px; }
.safety-point small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.content-section--soft { background: #EAF4FB; border-color: #C7DDED; }
.content-section--soft p { max-width: 850px; }
.document-list { display: grid; gap: 7px; }
.deadline-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--blue); background: #EAF4FB; }
.deadline-note strong { color: var(--navy); font-size: 12px; }
.deadline-note span { color: var(--muted); font-size: 12px; }
.accommodation-block { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.accommodation-block p { margin: 4px 0 0 !important; color: var(--muted); font-size: 12px; }
.document-button { margin-top: 12px; border-color: var(--blue); background: var(--blue); color: var(--white); }
.document-button:hover { background: var(--navy); color: var(--white); }
.closing-note { margin-top: 12px !important; color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: 1fr; gap: 12px; }
  .contact-actions { justify-content: flex-start; max-width: none; }
  .data-table caption { display: block; }
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th[scope="row"] { display: block; width: 100%; }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .data-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    margin: 0 0 8px;
    padding: 6px 9px 3px;
    border: 1px solid var(--line);
    background: var(--white) !important;
  }
  .data-table tbody th[scope="row"] { grid-column: 1 / -1; padding: 3px 0 7px; border-bottom: 1px solid var(--line); }
  .data-table tbody td { min-width: 0; padding: 6px 0; border-bottom: 0; overflow-wrap: anywhere; }
  .data-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.25;
    text-transform: uppercase;
  }
}

@media (max-width: 640px) {
  .page-head__inner { min-height: 62px; padding: 0 18px; gap: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .page-wrap { width: calc(100% - 24px); }
  .page-head h1 { font-size: 20px; }
  .page-wrap { padding-top: 9px; }
  .section-nav { gap: 5px; margin-bottom: 9px; }
  .section-nav a { min-height: 32px; padding: 5px 9px; font-size: 10px; }
  .intro-panel, .content-section, .contact-panel { padding: 14px; margin-bottom: 9px; }
  .intro-panel h2, .section-heading h2, .contact-panel h2 { font-size: 19px; }
  .fact-strip { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { padding: 10px 0; }
  .participation-grid { grid-template-columns: 1fr; gap: 7px; }
  .contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-actions .button { min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 10px; }
  .contact-actions .button-outline { grid-column: 1 / -1; }
  .safety-points { grid-template-columns: 1fr; gap: 4px; }
  .review-flag { font-size: 8px; }
  .table-heading h3, .subheading, .accommodation-block h3 { font-size: 13px; }
  .data-table tbody tr { gap: 0 8px; padding-left: 8px; padding-right: 8px; }
  .data-table tbody td { font-size: 13px; }
  .page-footer { min-height: 64px; padding: 14px 18px; gap: 8px; }
  .footer-brand { font-size: 15px; }
  .page-footer > span { max-width: 155px; font-size: 10px; text-align: right; }
  .footer-up { width: 34px; height: 34px; }
}

@media (max-width: 340px) {
  .page-wrap { width: calc(100% - 20px); }
  .page-head h1 { font-size: 18px; }
  .intro-panel, .content-section, .contact-panel { padding: 12px; }
  .data-table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
