:root {
  font-family: "Nunito Sans", sans-serif;
  color: #1f2f3e;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #123454;
  --blue: #246c8e;
  --yellow: #f3c84b;
  --muted: #657482;
  --line: #dce3e8;
  --paper: #f5f7f8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner, .brand, .main-nav, .footer-inner, .summary-heading, .section-heading, .confirmation-heading {
  display: flex;
  align-items: center;
}
.header-inner, .footer-inner { min-height: 88px; justify-content: space-between; gap: 24px; }
.brand { gap: 12px; text-decoration: none; color: var(--navy); font-size: 1.08rem; font-weight: 900; line-height: 1.05; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.main-nav { gap: 28px; color: #425466; font-size: .92rem; font-weight: 800; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.system-switch {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--navy);
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}
.main-nav a.system-switch:hover { border-color: #0b263e; background: #f1f5f8; color: #0b263e; }
.system-sidebar { display: none; }
.has-system-sidebar .system-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 260px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 18px;
  background: var(--white);
  box-shadow: 8px 0 30px rgb(18 52 84 / 8%);
  transition: width .24s ease, transform .28s cubic-bezier(.2,.75,.25,1);
}
.system-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; margin-bottom: 14px; }
.system-sidebar-title { margin: 0 0 12px; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.system-sidebar-heading .system-sidebar-title { margin: 0; }
.system-sidebar nav { display: grid; gap: 8px; }
.system-sidebar-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}
.system-sidebar-link:hover, .system-sidebar-link[aria-current="page"] { border-color: var(--navy); background: #f1f5f8; }
.system-sidebar-signout { width: 100%; margin-top: 18px; }
.sidebar-desktop-toggle, .sidebar-mobile-toggle, .system-sidebar-close, .system-sidebar-backdrop { display: none; }
.sidebar-desktop-toggle { display: inline-flex; }
.sidebar-desktop-toggle, .sidebar-mobile-toggle, .system-sidebar-close {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.sidebar-desktop-toggle svg, .sidebar-mobile-toggle svg, .system-sidebar-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.has-system-sidebar .site-header { margin-left: 260px; transition: margin-left .24s ease; }
.has-system-sidebar main, .has-system-sidebar .site-footer { margin-left: 260px; transition: margin-left .24s ease; }
.has-system-sidebar.sidebar-collapsed .system-sidebar { width: 76px; padding-right: 12px; padding-left: 12px; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-title,
.has-system-sidebar.sidebar-collapsed .system-sidebar-link { font-size: 0; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-title { overflow: hidden; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-link { position: relative; min-height: 46px; padding: 10px 4px; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-link::before { position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 2px solid var(--blue); border-radius: 50%; content: ""; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-signout { overflow: hidden; min-height: 42px; padding: 0; font-size: 0; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-signout::before { content: "↪"; font-size: 20px; }
.has-system-sidebar.sidebar-collapsed .site-header,
.has-system-sidebar.sidebar-collapsed main,
.has-system-sidebar.sidebar-collapsed .site-footer { margin-left: 76px; }
.has-system-sidebar.sidebar-collapsed .system-sidebar-heading { justify-content: center; }
.has-system-sidebar.sidebar-collapsed .sidebar-desktop-toggle { transform: rotate(180deg); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #1b496f; }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #e4ac16;
  outline-offset: 2px;
}
.button:disabled { cursor: wait; opacity: .7; }
.button-small { min-height: 40px; padding: 7px 16px; }
.button-outline { border-color: var(--line); background: var(--white); color: var(--navy); }
.button-outline:hover { background: var(--paper); }

.intro { border-bottom: 1px solid var(--line); background: #f5f7f8; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 18px; color: var(--navy); font-size: clamp(2.35rem, 5vw, 4.3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; }
.intro-lead { max-width: 620px; margin-bottom: 12px; color: #334b5e; font-size: 1.23rem; font-weight: 700; line-height: 1.5; }
.intro-note { max-width: 600px; margin-bottom: 24px; color: var(--muted); line-height: 1.7; }
.training-summary { border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 24px; background: var(--white); }
.summary-heading { gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-heading img { object-fit: contain; }
.summary-heading .eyebrow { margin-bottom: 3px; }
.summary-heading h2 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.summary-list { margin: 4px 0 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; color: var(--navy); font-weight: 800; text-align: right; }
.summary-foot { margin: 14px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }

.section { padding: 68px 0; }
.section-heading { justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .registration-aside h2, .confirmation-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.025em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); text-align: right; }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region-card { display: flex; min-height: 238px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 22px; background: var(--white); }
.region-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.15rem; }
.region-status { margin: 0 0 16px; color: var(--blue); font-size: .84rem; font-weight: 800; }
.region-facts { display: grid; gap: 7px; margin-bottom: 20px; color: #475967; font-size: .92rem; }
.region-facts strong { color: var(--navy); }
.region-card .button { margin-top: auto; }
.loading { color: var(--muted); }

.register-section { background: var(--paper); }
.registration-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.registration-aside { position: sticky; top: 24px; padding-top: 8px; }
.registration-aside h2 { margin-bottom: 14px; }
.registration-aside > p:not(.eyebrow):not(.fine-print) { color: #536574; line-height: 1.65; }
.plain-list { display: grid; gap: 10px; margin: 22px 0; padding-left: 20px; color: #405362; line-height: 1.55; }
.fine-print { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.form-card { border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); background: var(--white); }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section h3 { margin-bottom: 18px; color: var(--navy); font-size: 1.12rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: #314352; font-size: .87rem; font-weight: 800; }
.field label span { color: #a63b28; }
.field input, .field select { width: 100%; min-height: 46px; border: 1px solid #cbd5dc; border-radius: 4px; padding: 9px 11px; background: var(--white); color: #243746; }
.field input::placeholder { color: #8996a0; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.fee-summary { margin-top: 18px; border-left: 3px solid var(--yellow); padding: 12px 14px; background: #f6f7f7; color: #314352; font-weight: 700; line-height: 1.55; }
.attendee-list { display: grid; gap: 18px; }
.attendee-card { border: 1px solid var(--line); padding: 18px; }
.attendee-card h4 { margin: 0 0 14px; color: var(--navy); font-size: 1rem; }
.attendance-check { display: flex; align-items: flex-start; gap: 11px; margin: 22px 0; color: #314352; font-weight: 700; line-height: 1.5; }
.attendance-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--navy); }
.submit-button { width: 100%; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: #a12c20; font-weight: 800; }
.form-status.success { color: #21643b; }
.form-status.info { color: var(--muted); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.confirmation-section { border-top: 1px solid var(--line); }
.confirmation-heading { justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.confirmation-heading p:last-child { margin: 9px 0 0; color: var(--muted); }
.reference-line { margin-bottom: 18px; color: var(--navy); }
.ticket-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-card { border: 1px solid var(--line); border-left: 4px solid var(--yellow); padding: 18px; }
.ticket-card h3 { margin-bottom: 4px; color: var(--navy); font-size: 1.05rem; }
.ticket-card p { margin-bottom: 8px; color: #465969; }
.ticket-reference { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #c8d2d9; color: var(--navy); font-weight: 900; overflow-wrap: anywhere; }
.ticket-fee, .ticket-payment-status { color: var(--blue) !important; font-size: .87rem; font-weight: 800; }
.payment-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; margin-top: 20px; border: 1px solid var(--line); border-left: 4px solid #25834b; padding: 20px; background: #f7faf8; }
.payment-panel[hidden] { display: none; }
.payment-panel h3 { margin: 0 0 5px; color: var(--navy); font-size: 1.05rem; }
.payment-panel p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-status { grid-column: 1 / -1; min-height: 1.4em; color: var(--muted) !important; font-weight: 800; }
.payment-status.success { color: #21643b !important; }
.payment-status.error { color: #a12c20 !important; }
.payment-status.info { color: var(--blue) !important; }
.payment-actions [hidden] { display: none; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 92px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand { font-size: .95rem; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: .87rem; }

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
  .training-summary { max-width: 560px; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .registration-layout { grid-template-columns: 1fr; gap: 22px; }
  .registration-aside { position: static; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand { gap: 8px; font-size: .96rem; }
  .brand small { font-size: .67rem; }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { width: 100%; justify-content: flex-end; gap: 8px; font-size: .82rem; }
  .main-nav a:not(.button):not(.system-switch) { display: none; }
  .main-nav a.system-switch { flex: 1 1 auto; padding: 7px 9px; }
  .intro-grid { padding-top: 40px; padding-bottom: 40px; }
  .section { padding: 48px 0; }
  .region-grid, .form-grid, .ticket-list { grid-template-columns: 1fr; }
  .payment-panel { grid-template-columns: 1fr; }
  .section-heading, .confirmation-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .region-card { min-height: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}
@media (max-width: 1000px) {
  .has-system-sidebar .system-sidebar {
    z-index: 40;
    width: min(320px, 84vw);
    padding: 20px;
    transform: translateX(-105%);
    transition-delay: 0s;
  }
  .has-system-sidebar.sidebar-open .system-sidebar {
    transform: translateX(0);
    transition-delay: .12s;
  }
  .system-sidebar-heading { margin-bottom: 20px; }
  .system-sidebar-close, .sidebar-mobile-toggle { display: inline-flex; }
  .sidebar-desktop-toggle { display: none; }
  .system-sidebar-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    padding: 0;
    background: rgb(28 39 49 / 48%);
    opacity: 0;
    transition: opacity .16s ease, visibility .16s ease;
  }
  .has-system-sidebar.sidebar-open .system-sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }
  .has-system-sidebar .site-header,
  .has-system-sidebar main,
  .has-system-sidebar .site-footer,
  .has-system-sidebar.sidebar-collapsed .site-header,
  .has-system-sidebar.sidebar-collapsed main,
  .has-system-sidebar.sidebar-collapsed .site-footer { margin-left: 0; }
  .has-system-sidebar.sidebar-collapsed .system-sidebar { width: min(320px, 84vw); }
  .has-system-sidebar.sidebar-collapsed .system-sidebar-title { overflow: visible; font-size: .78rem; }
  .has-system-sidebar.sidebar-collapsed .system-sidebar-link { min-height: 0; padding: 11px 12px; font-size: .88rem; }
  .has-system-sidebar.sidebar-collapsed .system-sidebar-link::before { display: none; }
  .has-system-sidebar.sidebar-collapsed .system-sidebar-signout { min-height: 48px; padding: 10px 20px; font-size: 1rem; }
  .has-system-sidebar.sidebar-collapsed .system-sidebar-signout::before { content: none; }
}
@media (max-width: 560px) {
  .has-system-sidebar .header-inner { flex-wrap: nowrap; }
  .has-system-sidebar .main-nav { width: auto; flex: 1 1 auto; }
  .sidebar-mobile-toggle { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-system-sidebar .system-sidebar,
  .has-system-sidebar .site-header,
  .has-system-sidebar main,
  .has-system-sidebar .site-footer,
  .system-sidebar-backdrop { transition-duration: .01ms; transition-delay: 0ms !important; }
}
@media print {
  .site-header, .intro, #regions, #register, .site-footer, .confirmation-heading button { display: none !important; }
  .confirmation-section[hidden] { display: none !important; }
  .confirmation-section { display: block; padding: 0; }
  .ticket-list { grid-template-columns: 1fr 1fr; }
}
