:root{
  --black:#000;
  --gold:#f0b82d;
  --blue:#4298b5;
  --blue-dark:#267893;
  --dark:#53565a;
  --light:#e2e1dd;
  --soft:#f5f7f8;
  --white:#fff;
  --focus:#0b5f82;
  --line:#d5d9dc;
}
*,
*::before,
*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:#111;
  background:#eef0f2;
  line-height:1.55;
  overflow-x:hidden;
}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,textarea,select{font:inherit;max-width:100%}
button{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.25}
input,textarea,select{min-width:0}
textarea{resize:vertical}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  background:#fff;
  padding:.75rem;
  z-index:100;
}
.skip:focus{left:1rem;top:1rem}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--black);
  color:#fff;
  border-top:8px solid var(--gold);
  border-bottom:4px solid var(--blue);
}
.header-inner{
  max-width:1300px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:1rem;
  padding:.8rem 1rem;
  min-width:0;
}
.brand{
  background:transparent;
  border:0;
  color:#fff;
  text-align:left;
  cursor:pointer;
  min-width:0;
  flex:1 1 260px;
}
.brand strong,
.brand span{overflow-wrap:anywhere}
.brand strong{display:block;font-size:1.2rem}
.brand span{font-size:.86rem;color:#d9e2e6}

.primary-nav{
  margin-left:auto;
  display:flex;
  gap:.35rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  min-width:0;
  flex:1 1 620px;
}
.primary-nav button{
  background:#202427;
  color:#fff;
  border:1px solid #697177;
  padding:.48rem .62rem;
  cursor:pointer;
  min-height:2.5rem;
  flex:0 1 auto;
}
.primary-nav button:hover,
.primary-nav button[aria-current="page"]{
  background:var(--blue);
  border-color:var(--blue);
}
.menu-toggle{
  display:none;
  margin-left:auto;
  background:#fff;
  border:0;
  padding:.55rem .8rem;
  font-weight:700;
}

main{
  width:min(100%,1300px);
  margin:auto;
  padding:1.2rem;
}
.view{display:none;min-width:0}
.view.active{display:block}

.hero,
.section-head,
.panel,
.helper,
.checker,
.timer-card,
.checklist{
  background:#fff;
  border:1px solid var(--line);
  min-width:0;
  overflow-wrap:anywhere;
}
.hero{
  border-top:8px solid var(--gold);
  padding:clamp(1.5rem,4vw,3.5rem);
}
.section-head{
  border-top:7px solid var(--gold);
  padding:1.4rem;
  margin-bottom:1rem;
}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
  font-weight:800;
  color:#247f9e;
}
h1,h2,h3,p,li,legend,label,strong,span{
  overflow-wrap:anywhere;
}
h1{
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.05;
  margin:.2rem 0 1rem;
}
h2{line-height:1.2}
.lede{font-size:1.2rem;max-width:850px}

.boundary,
.notice{
  background:#edf6f9;
  border-left:6px solid var(--blue);
  padding:1rem;
  margin:1rem 0;
  min-width:0;
}
.boundary strong,
.notice strong{display:block}

.btn,
.secondary,
.pager button{
  border:0;
  padding:.72rem 1rem;
  font-weight:800;
  cursor:pointer;
  min-height:2.75rem;
  max-width:100%;
  overflow-wrap:anywhere;
}
.btn,
.pager button{
  background:var(--blue);
  color:#fff;
}
.btn:hover,
.pager button:hover{background:var(--blue-dark)}
.secondary{
  background:#fff;
  color:#111;
  border:2px solid #777;
}

.route-grid,
.two-col,
.three-col{
  display:grid;
  gap:1rem;
  margin:1rem 0;
  min-width:0;
}
.route-grid,
.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}
.route-card{
  background:#fff;
  border:1px solid var(--line);
  border-left:6px solid var(--blue);
  padding:1.2rem;
  text-align:left;
  cursor:pointer;
  min-width:0;
  width:100%;
}
.route-card strong{display:block;font-size:1.2rem}
.route-card span{display:block;margin-top:.35rem;color:var(--dark)}

.stepper{
  list-style:none;
  padding:0;
  display:grid;
  gap:.7rem;
  min-width:0;
}
.stepper li{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--line);
  padding:1rem;
  min-width:0;
}
.stepper li>div{min-width:0}
.stepper span{
  width:2.2rem;
  height:2.2rem;
  background:var(--blue);
  color:#fff;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:800;
  flex:0 0 auto;
}
.stepper p{margin:.2rem 0}

.helper,
.checker,
.panel,
.checklist,
.timer-card{padding:1.1rem}
.helper fieldset{
  border:1px solid #aeb4b8;
  margin:0 0 1rem;
  padding:1rem;
  min-width:0;
}
.helper legend{
  font-weight:800;
  max-width:100%;
  padding:0 .35rem;
}
.helper label{
  display:flex;
  gap:.5rem;
  align-items:flex-start;
  margin:.55rem 0;
}
.helper input[type="radio"]{flex:0 0 auto;margin-top:.25rem}
.result{
  margin-top:1rem;
  padding:1rem;
  background:#f8f2df;
  border-left:6px solid var(--gold);
  min-height:3.2rem;
  min-width:0;
  overflow-wrap:anywhere;
}
.result ul{padding-left:1.2rem;margin-bottom:0}

.checker{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:.8rem;
  align-items:end;
}
.checker label{
  font-weight:700;
  min-width:0;
}
.checker input{
  width:100%;
  min-width:0;
  padding:.65rem;
  border:2px solid #777;
}
.checker .result{grid-column:1/-1}

.panel{
  border-top:6px solid var(--blue);
  min-width:0;
}
.panel ol,
.panel ul{padding-left:1.25rem}
.panel li{margin-bottom:.45rem}

.checklist{
  display:grid;
  gap:.55rem;
  min-width:0;
}
.checklist label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:.65rem;
  align-items:start;
  padding:.55rem;
  border-bottom:1px solid #eceff0;
  min-width:0;
}
.checklist input{
  width:1.2rem;
  height:1.2rem;
  margin-top:.15rem;
}

.timer-card{text-align:center}
.timer-card #timer{
  font-size:clamp(2.8rem,10vw,4rem);
  font-weight:800;
  letter-spacing:.05em;
  line-height:1;
}
.timer-actions,
.button-row{
  display:flex;
  justify-content:center;
  gap:.6rem;
  flex-wrap:wrap;
}
.timer-actions button,
.button-row button{flex:0 1 auto}

.notes-label{
  display:block;
  font-weight:800;
  margin-top:1rem;
}
textarea{
  width:100%;
  min-width:0;
  padding:.8rem;
  border:2px solid #777;
  background:#fff;
}
.closing{
  text-align:center;
  background:#111;
  color:#fff;
  border-top:6px solid var(--gold);
  padding:1.2rem;
  margin-top:1rem;
  font-size:clamp(1rem,2.5vw,1.25rem);
  font-weight:800;
  overflow-wrap:anywhere;
}
.pager{
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:.8rem;
  margin:1.2rem 0;
  min-width:0;
}
.pager button{
  flex:1 1 0;
  min-width:0;
}
footer{
  background:#111;
  color:#fff;
  text-align:center;
  padding:1rem;
  margin-top:2rem;
}
footer small{color:#dfe5e8}

@media(max-width:1100px){
  .header-inner{align-items:flex-start;flex-wrap:wrap}
  .primary-nav{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    flex:1 1 100%;
  }
}

@media(max-width:900px){
  .menu-toggle{display:block}
  .primary-nav{
    display:none;
    width:100%;
    margin:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .primary-nav.open{display:grid}
  .primary-nav button{width:100%}
  .header-inner{flex-wrap:wrap}
  .route-grid,
  .two-col,
  .three-col,
  .checker{grid-template-columns:1fr}
  .checker .result{grid-column:auto}
}

@media(max-width:560px){
  main{padding:.75rem}
  .hero,.section-head,.panel,.helper,.checker,.timer-card,.checklist{padding:1rem}
  .primary-nav.open{grid-template-columns:1fr}
  .pager{flex-direction:column}
  .pager button{width:100%}
  .timer-actions,
  .button-row{flex-direction:column}
  .timer-actions button,
  .button-row button{width:100%}
  .route-card{padding:1rem}
  .stepper li{gap:.7rem;padding:.85rem}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

@media print{
  .site-header,
  .pager,
  .timer-actions,
  .button-row,
  footer,
  .btn,
  .secondary{display:none!important}
  .view{display:block!important}
  .hero,
  .section-head,
  .panel,
  .helper,
  .checker,
  .timer-card,
  .checklist{break-inside:avoid}
  body{background:#fff}
  main{max-width:none;padding:0}
}
