/* ABS V4.36 — Rider Safety & Remoteness in Alberta */

.safety-hero{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--forest);
  color:#fff;
}

.safety-hero-media{
  position:absolute;
  inset:0;
}

.safety-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}

.safety-hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(10,24,18,.86) 0%,rgba(10,24,18,.61) 43%,rgba(10,24,18,.1) 80%),
    linear-gradient(0deg,rgba(10,24,18,.76) 0%,rgba(10,24,18,.05) 54%);
}

.safety-hero-content{
  position:relative;
  z-index:2;
  padding:180px 0 76px;
}

.safety-hero h1{
  max-width:980px;
  margin:12px 0 18px;
  font-size:clamp(3.8rem,7.7vw,7.7rem);
  line-height:.92;
}

.safety-hero-content>p{
  margin:0;
  color:rgba(255,255,255,.87);
  font-family:var(--serif);
  font-size:clamp(1.35rem,2.3vw,2.1rem);
}

.safety-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  width:max-content;
  max-width:100%;
  margin-top:30px;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.28);
}

.safety-hero-meta span{
  color:rgba(255,255,255,.7);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.safety-intro{
  padding-top:92px;
}

.safety-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);
  gap:90px;
  align-items:center;
}

.safety-intro-statement p{
  margin:0;
  max-width:650px;
  font-family:var(--serif);
  font-size:clamp(3rem,5.2vw,5.6rem);
  line-height:1;
  letter-spacing:-.04em;
}

.safety-intro-statement .accent{
  margin-top:14px;
  color:var(--moss);
}

.safety-intro-copy{
  max-width:720px;
}

.safety-intro-copy p:not(.lead){
  color:#53605a;
  font-size:1.05rem;
  line-height:1.68;
}

.safety-principle{
  margin-top:72px;
  padding-top:34px;
  border-top:1px solid var(--line);
}

.safety-principle p{
  max-width:1060px;
  margin:0;
  color:var(--forest);
  font-family:var(--serif);
  font-size:clamp(2.5rem,4.4vw,4.7rem);
  line-height:1.04;
  letter-spacing:-.035em;
}

.safety-toc-wrap{
  position:sticky;
  top:84px;
  z-index:48;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(244,241,233,.96);
  backdrop-filter:blur(12px);
}

.safety-toc{
  justify-content:center;
  min-height:62px;
  display:flex;
  align-items:center;
  gap:5px;
  overflow-x:auto;
  scrollbar-width:none;
}

.safety-toc::-webkit-scrollbar{display:none;}

.safety-toc-label{
  flex:0 0 auto;
  margin-right:14px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.safety-toc a{
  flex:0 0 auto;
  padding:9px 11px;
  border-radius:999px;
  color:#5c6660;
  font-size:.77rem;
  font-weight:750;
  transition:.2s ease;
}

.safety-toc a:hover,
.safety-toc a.is-active{
  background:var(--forest);
  color:#fff;
}

#remoteness,
#communication,
#navigation,
#conditions,
#wildlife,
#rivers-roads,
#water-mechanical,
#bailouts,
#pretrip,
#abs-remoteness,
#reference,
#sources{
  scroll-margin-top:162px;
}

.safety-remoteness-grid,
.safety-section-head,
.safety-wildfire-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(380px,.9fr);
  gap:78px;
  align-items:start;
}

.safety-remoteness-grid h2,
.safety-section-head h2,
.safety-wildfire-grid h2{
  max-width:760px;
  margin:10px 0 0;
}

.safety-section-head{
  align-items:end;
  margin-bottom:52px;
}

.safety-section-head>p{
  margin:0;
}

.safety-prose p,
.safety-dark-prose p{
  line-height:1.68;
}

.safety-prose p{
  color:#56615c;
}

.safety-prose h3,
.safety-dark-prose h3{
  margin:31px 0 12px;
  font-family:var(--serif);
  font-size:1.6rem;
  font-weight:500;
}

.safety-list{
  margin:18px 0 28px;
  padding:0;
  list-style:none;
}

.safety-list li{
  position:relative;
  padding:11px 0 11px 27px;
  border-bottom:1px solid var(--line);
  color:#53605a;
  line-height:1.55;
}

.safety-list li:first-child{
  border-top:1px solid var(--line);
}

.safety-list li::before{
  content:"";
  position:absolute;
  left:1px;
  top:20px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--moss);
}

.safety-two-col{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.75fr);
  gap:82px;
  align-items:center;
}

.safety-side-image{
  margin:0;
}

.safety-side-image img{
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center 52%;
  border-radius:20px;
}

.safety-side-image figcaption,
.safety-river-image figcaption,
.safety-mechanical-image figcaption{
  margin-top:11px;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.45;
}

.safety-narrow{
  max-width:860px;
}

.safety-narrow h2{
  margin:10px 0 22px;
}

.safety-narrow>p:not(.lead){
  color:#56615c;
  font-size:1.06rem;
  line-height:1.72;
}

.safety-conditions-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);
  gap:84px;
  align-items:center;
}

.safety-condition-copy h2{
  max-width:760px;
  margin:10px 0 22px;
  color:#fff;
}

.safety-condition-copy p:not(.lead){
  color:rgba(255,255,255,.72);
  line-height:1.68;
}

.safety-condition-copy .lead{
  color:rgba(255,255,255,.84);
}

.safety-cite{
  margin-left:2px;
  color:var(--moss);
  font-size:.78em;
  font-weight:800;
  vertical-align:super;
}

.section-dark .safety-cite{
  color:#e2d3a9;
}

.safety-weather-image{
  margin:0;
}

.safety-weather-image img{
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
}

.safety-wildfire-grid{
  margin-top:90px;
  padding-top:44px;
  border-top:1px solid rgba(255,255,255,.18);
}

.safety-wildfire-grid h2{
  color:#fff;
}

.safety-dark-prose p{
  color:rgba(255,255,255,.72);
}

.safety-dark-prose h3{
  color:#fff;
}

.safety-list-dark li{
  border-color:rgba(255,255,255,.14);
  color:rgba(255,255,255,.72);
}

.safety-list-dark li::before{
  background:#e2d3a9;
}

.safety-source-buttons{
  margin-top:30px;
}

.safety-source-buttons .btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,.42);
}

.safety-river-grid{
  display:grid;
  grid-template-columns:minmax(390px,.9fr) minmax(0,1.1fr);
  gap:84px;
  align-items:center;
}

.safety-river-image{
  margin:0;
}

.safety-river-image img{
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
}

.safety-river-grid h2,
.safety-road-grid h2{
  margin:10px 0 20px;
}

.safety-road-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(330px,.65fr);
  gap:80px;
  align-items:center;
  margin-top:90px;
  padding-top:52px;
  border-top:1px solid var(--line);
}

.safety-road-callout{
  padding:34px;
  border-radius:18px;
  background:var(--forest);
  color:#fff;
}

.safety-road-callout .eyebrow{
  color:#e2d3a9;
}

.safety-road-callout p{
  color:rgba(255,255,255,.75);
  line-height:1.6;
}

.safety-road-callout .btn{
  margin-top:15px;
  background:var(--wheat);
  color:var(--ink);
}

.safety-dual-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
}

.safety-dual-grid article{
  padding:42px;
}

.safety-dual-grid article+article{
  border-left:1px solid var(--line);
}

.safety-dual-grid h2{
  margin:10px 0 20px;
}

.safety-dual-grid p{
  color:#56615c;
  line-height:1.68;
}

.safety-dual-grid h3{
  margin:28px 0 12px;
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:500;
}

.safety-mechanical-image{
  max-width:780px;
  margin-top:64px;
}

.safety-mechanical-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center 54%;
  border-radius:20px;
}

.safety-bailout{
  max-width:880px;
}

.safety-bailout h2{
  margin:10px 0 22px;
  color:#fff;
}

.safety-bailout p:not(.lead){
  color:rgba(255,255,255,.72);
  font-size:1.06rem;
  line-height:1.7;
}

.safety-big-quote{
  margin-top:68px;
  padding-top:38px;
  border-top:1px solid rgba(255,255,255,.18);
}

.safety-big-quote p{
  max-width:1080px;
  margin:0;
  color:#fff;
  font-family:var(--serif);
  font-size:clamp(2.7rem,4.7vw,5rem);
  line-height:1.03;
  letter-spacing:-.04em;
}

.safety-check-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
}

.safety-check-grid article{
  min-height:230px;
  padding:28px 24px 30px;
}

.safety-check-grid article:not(:nth-child(5n+1)){
  border-left:1px solid var(--line);
}

.safety-check-grid article:nth-child(n+6){
  border-top:1px solid var(--line);
}

.safety-check-grid span{
  display:block;
  margin-bottom:28px;
  color:var(--moss);
  font-family:var(--serif);
}

.safety-check-grid h3{
  margin-bottom:10px;
}

.safety-check-grid p{
  margin:0;
  color:#58635d;
  line-height:1.55;
}

.safety-abs{
  max-width:900px;
}

.safety-abs h2{
  margin:10px 0 20px;
}

.safety-abs>p:not(.lead):not(.safety-final-sentence){
  color:#56615c;
  font-size:1.07rem;
  line-height:1.72;
}

.safety-final-sentence{
  margin:48px 0 38px;
  color:var(--forest);
  font-family:var(--serif);
  font-size:clamp(2.5rem,4.4vw,4.7rem);
  line-height:1.04;
  letter-spacing:-.035em;
}

.safety-secondary-btn{
  border:1px solid rgba(24,33,29,.28);
  color:var(--ink);
  background:transparent;
}

.safety-reference-title{
  margin:10px 0 38px;
}

.safety-reference-wrap{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.safety-reference-table{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
}

.safety-reference-table th,
.safety-reference-table td{
  padding:19px 22px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}

.safety-reference-table th{
  color:var(--muted);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  background:#f7f4ed;
}

.safety-reference-table td{
  color:#4f5b55;
  line-height:1.5;
}

.safety-reference-table td:first-child{
  color:var(--ink);
  font-weight:750;
}

.safety-reference-table tr:last-child td{
  border-bottom:0;
}

.safety-reference-table a{
  text-decoration:underline;
  text-decoration-color:rgba(24,33,29,.22);
  text-underline-offset:3px;
}

.safety-sources{
  padding-top:90px;
}

.safety-sources h2{
  margin:10px 0 18px;
}

.safety-source-note{
  max-width:760px;
  margin-bottom:42px;
  color:var(--muted);
}

.safety-source-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:source;
  border-top:1px solid var(--line);
}

.safety-source-list li{
  position:relative;
  counter-increment:source;
  padding:22px 0 22px 55px;
  border-bottom:1px solid var(--line);
  color:#59635e;
  line-height:1.55;
}

.safety-source-list li::before{
  content:"[" counter(source) "]";
  position:absolute;
  left:0;
  top:22px;
  color:var(--moss);
  font-weight:800;
}

.safety-source-list a{
  text-decoration:underline;
  text-decoration-color:rgba(24,33,29,.22);
  text-underline-offset:3px;
}

@media (max-width:1100px){
  .safety-check-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .safety-check-grid article:not(:nth-child(5n+1)){
    border-left:0;
  }

  .safety-check-grid article:nth-child(even){
    border-left:1px solid var(--line);
  }

  .safety-check-grid article:nth-child(n+3){
    border-top:1px solid var(--line);
  }

  .safety-check-grid article:last-child{
    grid-column:1 / -1;
  }
}

@media (max-width:900px){
  .safety-intro-grid,
  .safety-remoteness-grid,
  .safety-section-head,
  .safety-two-col,
  .safety-conditions-grid,
  .safety-wildfire-grid,
  .safety-river-grid,
  .safety-road-grid{
    grid-template-columns:1fr;
    gap:38px;
  }

  .safety-side-image{
    width:min(100%,620px);
    margin-inline:auto;
  }

  .safety-side-image img{
    aspect-ratio:4/3;
  }

  .safety-weather-image,
  .safety-river-image{
    width:min(100%,720px);
    margin-inline:auto;
  }

  .safety-road-callout{
    max-width:600px;
  }

  .safety-dual-grid{
    grid-template-columns:1fr;
  }

  .safety-dual-grid article+article{
    border-left:0;
    border-top:1px solid var(--line);
  }
}

@media (max-width:700px){
  .safety-hero{
    min-height:74vh;
  }

  .safety-hero-media img{
    object-position:58% 50%;
  }

  .safety-hero-media::after{
    background:linear-gradient(0deg,rgba(10,24,18,.91) 0%,rgba(10,24,18,.5) 66%,rgba(10,24,18,.15) 100%);
  }

  .safety-hero-content{
    padding:150px 0 52px;
  }

  .safety-hero h1{
    font-size:clamp(3.2rem,13.6vw,5.2rem);
  }

  .safety-intro{
    padding-top:68px;
  }

  .safety-toc-wrap{
    top:72px;
  }

  .safety-toc{
    min-height:58px;
  }

  .safety-toc-label{
    margin-right:8px;
  }

  #remoteness,
  #communication,
  #navigation,
  #conditions,
  #wildlife,
  #rivers-roads,
  #water-mechanical,
  #bailouts,
  #pretrip,
  #abs-remoteness,
  #reference,
  #sources{
    scroll-margin-top:144px;
  }

  .safety-dual-grid article{
    padding:30px 24px;
  }

  .safety-check-grid{
    grid-template-columns:1fr;
  }

  .safety-check-grid article:nth-child(even){
    border-left:0;
  }

  .safety-check-grid article:nth-child(n+2){
    border-top:1px solid var(--line);
  }

  .safety-check-grid article:last-child{
    grid-column:auto;
  }

  .safety-mechanical-image{
    width:min(calc(100% - 36px),780px);
  }

  .safety-reference-wrap{
    margin-inline:-6px;
  }
}


@media (max-width:700px){
  .safety-toc{
    justify-content:flex-start;
  }
}
