/* BDN: offshore jobs in Newfoundland and Labrador.
   Raven black base, powder blue for tools and data, poppy red for the one thing to do next.
   Type: Host Grotesk, self-hosted. No monospace anywhere. */

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --raven: #0B0B0C;
  --raven-2: #141416;
  --raven-3: #1E1E22;
  --line: #2A2A30;
  --line-2: #3A3A42;
  --text: #F2F5F8;
  --soft: #C9CFD6;
  --muted: #9FA7B0;
  --powder: #C4E0F0;
  --powder-deep: #9CC6DE;
  --poppy: #E5332A;
  --poppy-hover: #F04A40;
  --poppy-text: #FF6A60;
  --sea: #0F1317;
  --tax: #7D858E;
  --dues: #4A4F58;
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--raven);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--poppy); color: #fff; }
img, svg { max-width: 100%; }
a { color: var(--powder); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--powder); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 5.5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 20; background: var(--powder); color: var(--raven); padding: .6rem 1rem; border-radius: 6px; font-weight: 600; }
.skip:focus { left: .5rem; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--soft); max-width: 52ch; }
.sub { font-size: 1.5rem; margin: 0 0 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.2rem; border-radius: 8px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 2.5rem; padding: .5rem .9rem; font-size: .95rem; }
.btn--red { background: var(--poppy); color: #fff; }
.btn--red:hover { background: var(--poppy-hover); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--powder); color: var(--powder); }
.btn--ink { background: var(--raven); color: var(--powder); }
.btn--ink:hover { background: #26262b; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 12, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4rem; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.mark__name { font-weight: 750; font-size: 1.2rem; letter-spacing: .02em; }
.nav { display: flex; gap: .25rem 1.5rem; margin-right: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--poppy); }
@media (max-width: 40rem) {
  .top__in { padding-top: .6rem; padding-bottom: .6rem; gap: .35rem 1rem; }
  .top__cta { display: none; }
  .nav { width: 100%; order: 3; gap: 1.25rem; }
}

/* Home hero */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; gap: 2.5rem 3.5rem; align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.6rem); line-height: .98; letter-spacing: -.04em; max-width: 15ch; margin-bottom: .45em; }
.hero .lead { margin-bottom: 2rem; }
.hero__copy { min-width: 0; }
@media (min-width: 66rem) {
  .hero__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 3rem; }
  .hero h1 { font-size: clamp(2.7rem, .9rem + 2.5vw, 3.6rem); }
  .hero .search { flex-direction: column; align-items: stretch; }
  .hero .search input { flex: none; }
  .hero .search .btn { align-self: flex-start; }
}

/* Offshore map */
.map { margin: 0; min-width: 0; }
.map__fig { position: relative; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sea); }
.map__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.map__sea { fill: var(--sea); }
.map__depth { fill: #040507; fill-opacity: .34; fill-rule: evenodd; }
.map__contour { fill: none; stroke: var(--powder); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map__contour--200 { stroke-opacity: .55; }
.map__contour--1000 { stroke-opacity: .3; }
.map__contour--2000 { stroke-opacity: .2; }
.map__contour--3000 { stroke-opacity: .13; }
.map__land { fill: #1D1F24; fill-rule: evenodd; stroke: #4A4F58; stroke-width: .8; vector-effect: non-scaling-stroke; }
.map__rings path { fill: none; stroke: var(--powder); stroke-opacity: .34; stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.map__route { fill: none; stroke: var(--poppy); stroke-width: 2.6; stroke-linecap: round; }
.map__home { fill: var(--text); }
.map__field { fill: var(--powder); stroke: var(--sea); stroke-width: 2; }
.map__bdn { fill: var(--poppy); }
.map__halo { fill: rgba(229, 51, 42, .12); stroke: var(--poppy); stroke-opacity: .55; stroke-width: 1.5; }
.map__lbls { position: absolute; inset: 0; pointer-events: none; }
.map__lbl { position: absolute; transform: translate(-50%, -50%); font-size: .82rem; line-height: 1.2; color: var(--soft); white-space: nowrap; text-shadow: 0 0 4px var(--sea), 0 0 2px var(--sea); }
.map__lbl strong { display: block; color: var(--text); font-weight: 600; }
.map__lbl--r { transform: translate(.6rem, -50%); }
.map__lbl--l { transform: translate(calc(-100% - .6rem), -50%); text-align: right; }
.map__lbl--a { transform: translate(-50%, calc(-100% - 1.2rem)); text-align: center; }
.map__lbl--b { transform: translate(-50%, .75rem); text-align: center; }
.map__lbl--ring { font-size: .72rem; color: var(--powder); opacity: .75; }
.map__lbl--bdn strong { color: var(--poppy-text); }
.map__lbl--bdn span { font-size: .78rem; }
.map__lbl--cluster { display: none; }
@media (max-width: 40rem) {
  .map__fig { border-radius: 12px; }
  .map__lbl { font-size: .72rem; }
  .map__lbl--field, .map__lbl--ring { display: none; }
  .map__lbl--cluster { display: block; }
  .map__route { stroke-width: 4.5; }
}
@media (prefers-reduced-motion: no-preference) {
  .map__route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route 1.7s cubic-bezier(.35, .55, .2, 1) .35s forwards; }
  .map__halo { transform-box: fill-box; transform-origin: center; animation: halo .8s ease-out 1.9s both; }
  .map__lbl--bdn { animation: fade .5s ease-out 1.9s both; }
}
@keyframes route { to { stroke-dashoffset: 0; } }
@keyframes halo { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.map__cap { margin-top: .9rem; }
.map__key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--muted); font-size: .85rem; }
.map__key li { display: inline-flex; align-items: center; gap: .5rem; }
.key { display: inline-block; flex: none; }
.key--field { width: .6rem; height: .6rem; border-radius: 50%; background: var(--powder); }
.key--bdn { width: .7rem; height: .7rem; border-radius: 50%; background: var(--poppy); }
.key--ring { width: 1.2rem; border-top: 1.5px dashed rgba(196, 224, 240, .65); }
.key--depth { width: 1.2rem; border-top: 1px solid rgba(196, 224, 240, .6); }
.map__src { margin: .6rem 0 0; color: var(--muted); font-size: .82rem; }
.map__src a { color: var(--muted); }

/* Search */
.search { display: flex; gap: .6rem; max-width: 40rem; flex-wrap: wrap; }
.search input { flex: 1 1 16rem; min-width: 0; }
.search--small { max-width: 30rem; margin-top: 1.5rem; }

/* Inputs */
input[type="email"], input[type="search"], input[type="text"], select {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: 8px;
  background: var(--raven-2); color: var(--text); border: 1px solid var(--line-2);
  font: 400 1rem/1.3 var(--font);
}
input::placeholder { color: #7D858E; }
input:focus, select:focus { outline: 2px solid var(--powder); outline-offset: 1px; border-color: transparent; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C4E0F0' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field { display: grid; gap: .35rem; }
.field label, .seg legend { font-weight: 600; font-size: .95rem; }

/* Sections */
.sec { padding: clamp(3rem, 7vw, 5rem) 0; }
.sec--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { display: grid; gap: .25rem 3rem; margin-bottom: 2rem; }
.sec__head h2 { margin: 0; }
.sec__head p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 56rem) { .sec__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.sec__more { margin: 2rem 0 0; }
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* Page head */
.phead { border-bottom: 1px solid var(--line); padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.phead .lead { margin: 0; }
.phead__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.phead__actions .btn, .job__actions .btn { white-space: normal; text-align: center; }
.phead__grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 60rem) { .phead__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }

/* Pay by type of work, in the jobs page head */
.ladder { margin: 0; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--raven-2); min-width: 0; }
.ladder figcaption { font-weight: 600; margin-bottom: 1rem; }
.ladder__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ladder__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: .35rem 1rem; }
.ladder__name { grid-area: name; font-size: .93rem; }
.ladder__name span { color: var(--muted); font-size: .82rem; margin-left: .25rem; }
.ladder__val { grid-area: val; font-size: .88rem; color: var(--powder); font-variant-numeric: tabular-nums; }
.ladder__track { grid-area: track; position: relative; height: .5rem; border-radius: 999px; background: var(--raven-3); }
.ladder__bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--powder); }
.ladder__axis { display: flex; justify-content: space-between; margin: .7rem 0 0; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }

/* Jobs */
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; }
.field--search { flex: 1 1 20rem; max-width: 28rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 600 .95rem/1 var(--font); padding: .7rem .95rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--soft); border: 1px solid var(--line-2);
}
.chip:hover { border-color: var(--powder); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--powder); color: var(--raven); border-color: var(--powder); }
.chip__n { font-weight: 500; opacity: .7; margin-left: .15rem; font-variant-numeric: tabular-nums; }
.count { color: var(--muted); font-size: .95rem; margin: 1.5rem 0 .5rem; }
.count a { margin-left: .5rem; }

.jobs-head { display: none; }
.jobs, .tks, .news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job, .tk { border-bottom: 1px solid var(--line); }
.job[hidden], .tk[hidden] { display: none; }
.job summary, .tk summary {
  display: grid; gap: .35rem 1.5rem; align-items: center; cursor: pointer; list-style: none;
  padding: 1.15rem .5rem; margin: 0 -.5rem; border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  grid-template-areas: "main toggle" "pay pay" "date date";
}
.job summary::-webkit-details-marker, .tk summary::-webkit-details-marker { display: none; }
.job summary:hover, .tk summary:hover { background: var(--raven-2); }
.job__main { grid-area: main; display: grid; gap: .25rem; min-width: 0; }
.job__title { font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.job__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; color: var(--muted); font-size: .93rem; }
.job__meta > span + span:not(.pill)::before { content: ""; display: inline-block; width: 1px; height: .8em; margin-right: .75rem; background: var(--line-2); vertical-align: -.05em; }
.pill { font-size: .75rem; font-weight: 600; line-height: 1; padding: .3rem .5rem; border-radius: 999px; color: var(--powder); background: rgba(196, 224, 240, .1); }
.job__pay { grid-area: pay; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.job__pay strong { color: var(--powder); font-weight: 600; font-size: 1.02rem; }
.job__date { grid-area: date; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.job__toggle { grid-area: toggle; position: relative; width: 1.5rem; height: 1.5rem; align-self: start; margin-top: .2rem; }
.job__toggle::before, .job__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px; background: var(--soft); transform: translate(-50%, -50%); transition: transform .2s; }
.job__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .job__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.job details[open], .tk details[open] { padding-bottom: .25rem; }
.job__body, .tk__body { padding: .5rem 0 1.75rem; display: grid; gap: 1.25rem; max-width: 62rem; }
.facts { display: grid; gap: .9rem 2rem; margin: 0; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; color: var(--text); }
.job__tickets p { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; }
.job__tickets div { display: flex; flex-wrap: wrap; gap: .5rem; }
.ticket { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(196, 224, 240, .4); color: var(--powder); font-size: .92rem; font-weight: 500; text-decoration: none; }
.ticket:hover { background: var(--powder); color: var(--raven); }
.job__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: .25rem 0 0; }
@media (min-width: 52rem) {
  .jobs-head { display: grid; grid-template-columns: minmax(0, 1fr) 15rem 4.5rem 1.5rem; gap: 1.5rem; padding: .5rem 0; color: var(--muted); font-size: .85rem; }
  .jobs-head span:nth-child(2), .jobs-head span:nth-child(3) { text-align: right; }
  .job summary { grid-template-columns: minmax(0, 1fr) 15rem 4.5rem 1.5rem; grid-template-areas: "main pay date toggle"; }
  .job__pay { text-align: right; display: grid; }
  .job__date { text-align: right; }
  .job__date-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .job__toggle { align-self: center; margin-top: 0; }
}

/* Operators' career sites */
.also { margin-top: 3rem; display: grid; gap: 1.25rem 3rem; }
@media (min-width: 56rem) { .also { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.also__head h2 { font-size: 1.35rem; }
.also__head p { color: var(--soft); margin: 0; max-width: 46ch; }
.also__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.also__list a { display: grid; gap: .15rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--text); }
.also__list a:hover { border-color: var(--powder); }
.also__list strong { font-weight: 600; }
.also__list span { color: var(--muted); font-size: .9rem; }

/* Forms */
.alerts { display: grid; gap: .9rem; }
.alerts__row { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .alerts__row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .97rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--poppy); }
.alerts .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--poppy-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Powder band: the estimator */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band--powder { background: var(--powder); color: var(--raven); }
.band--powder .sec__head p { color: rgba(11, 11, 12, .72); }
.band--powder :focus-visible { outline-color: var(--raven); }
.band--powder input, .band--powder select { background-color: #fff; color: var(--raven); border-color: rgba(11, 11, 12, .28); }
.band--powder select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B0B0C' stroke-width='1.8'/%3E%3C/svg%3E");
}
.band--powder input:focus, .band--powder select:focus { outline-color: var(--raven); }
.band--powder input::placeholder { color: #6B7178; }
.band--powder .est__out :focus-visible { outline-color: var(--powder); }

/* Estimator */
.est { display: grid; gap: 2rem 3rem; }
@media (min-width: 58rem) { .est { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.est__form { display: grid; gap: 1.5rem; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg[hidden] { display: none; }
.seg legend { padding: 0; margin-bottom: .55rem; }
.seg__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid rgba(11, 11, 12, .28); background: rgba(255, 255, 255, .4); font-weight: 500; font-size: .97rem; }
.seg label:hover span { border-color: var(--raven); }
.seg input:checked + span { background: var(--raven); color: var(--powder); border-color: var(--raven); }
.seg input:focus-visible + span { outline: 2px solid var(--raven); outline-offset: 2px; }
.own { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .9rem; }
.own[hidden] { display: none; }
.own__hint { grid-column: 1 / -1; margin: -.15rem 0 0; font-size: .9rem; color: rgba(11, 11, 12, .72); }
.own__hint.is-error { color: #A3160F; font-weight: 600; }

.est__out { background: var(--raven); color: var(--text); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); min-width: 0; }
.est__label { color: var(--muted); font-size: .95rem; margin: 0 0 .25rem; }
.est__big { font-size: clamp(2.8rem, 1.9rem + 3.6vw, 4.8rem); font-weight: 650; line-height: 1; letter-spacing: -.04em; margin: 0 0 .75rem; font-variant-numeric: tabular-nums; }
.est__math { color: var(--soft); margin: 0 0 1.5rem; font-variant-numeric: tabular-nums; }
.est__days, .est__posts { margin: 0 0 .75rem; color: var(--soft); }
.est__src { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.est__src--tax { margin-top: .5rem; padding-top: 0; border-top: 0; }

/* Take-home after tax */
.th { margin: 0 0 1.75rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 12px; background: var(--raven-2); border: 1px solid var(--line); }
.th__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .75rem; }
.th__head span { color: var(--soft); }
.th__head strong { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--powder); font-variant-numeric: tabular-nums; }
.th__bar { display: flex; gap: 2px; height: .7rem; border-radius: 999px; overflow: hidden; background: var(--raven-3); }
.th__seg { display: block; height: 100%; flex: none; }
.th__seg--net, .th__sw--net { background: var(--powder); }
.th__seg--tax, .th__sw--tax { background: var(--tax); }
.th__seg--cpp, .th__sw--cpp { background: var(--dues); }
.th__key { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; color: var(--soft); }
.th__key li { display: grid; grid-template-columns: .7rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.th__sw { display: block; width: .7rem; height: .7rem; border-radius: 3px; }
.th__key b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.th__per { margin: .85rem 0 0; color: var(--soft); font-size: .95rem; }

.bars { display: grid; gap: 1.1rem; margin: 0 0 1.5rem; }
.bar__label { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); margin-bottom: .45rem; font-variant-numeric: tabular-nums; }
.bar__label strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.bar__track { position: relative; height: .6rem; border-radius: 999px; background: var(--raven-3); }
.bar__seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--powder); }
.bar__seg--posts { background: transparent; border: 1.5px solid var(--text); top: -1px; bottom: -1px; }
.bar__you { position: absolute; top: 50%; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--poppy); border: 3px solid var(--raven); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--poppy); }
@media (prefers-reduced-motion: no-preference) { .bar__seg, .bar__you { transition: left .35s ease, width .35s ease; } }
.bar__legend { display: flex; align-items: center; gap: .5rem; margin: -.25rem 0 0; color: var(--muted); font-size: .85rem; }
.bar__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--poppy); }

/* Pay by role chart */
.pchart { margin: 0 0 3.5rem; }
.pchart__key { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .88rem; }
.pchart__key li { display: inline-flex; align-items: center; gap: .55rem; }
.pk { display: inline-block; flex: none; }
.pk--range { width: 1.5rem; height: .55rem; border-radius: 999px; background: var(--powder); }
.pk--med { width: 1.5rem; height: .55rem; border-radius: 999px; background: linear-gradient(to right, var(--powder) 0 45%, var(--raven) 45% 58%, var(--powder) 58%); }
.pk--posts { width: 1.5rem; height: calc(.55rem + 6px); border-radius: 999px; border: 1.5px solid var(--text); }
.pchart__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pchart__row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; grid-template-areas: "name val" "track track"; gap: .3rem 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pchart__row--axis { grid-template-areas: "track track"; padding: 0 0 .35rem; border-bottom: 0; }
.pchart__row--axis > span:first-child, .pchart__row--axis > span:last-child { display: none; }
.pchart__name { grid-area: name; min-width: 0; color: var(--text); font-weight: 500; text-decoration: none; }
.pchart__name:hover { color: var(--powder); text-decoration: underline; }
.pchart__val { grid-area: val; text-align: right; color: var(--soft); font-size: .92rem; font-variant-numeric: tabular-nums; }
.pchart__track { grid-area: track; position: relative; height: 1.1rem; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--ticks, 7)) 100%; }
.pchart__ticks { grid-area: track; position: relative; height: 1.1rem; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pchart__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.pchart__ticks span:first-child { transform: none; }
.pchart__ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 47.99rem) { .pchart__ticks span:nth-child(even) { display: none; } }
.pchart__range { position: absolute; top: 50%; height: .55rem; transform: translateY(-50%); border-radius: 999px; background: var(--powder); }
.pchart__posts { position: absolute; top: 50%; height: calc(.55rem + 6px); transform: translateY(-50%); border-radius: 999px; border: 1.5px solid var(--text); }
.pchart__med { position: absolute; top: 50%; width: 3px; height: .55rem; transform: translate(-50%, -50%); background: var(--raven); }
@media (min-width: 48rem) {
  .pchart__row { grid-template-columns: 15rem minmax(0, 1fr) 4.5rem; grid-template-areas: "name track val"; gap: 1.25rem; }
  .pchart__row--axis { grid-template-areas: "name track val"; }
  .pchart__row--axis > span:first-child, .pchart__row--axis > span:last-child { display: block; }
  .pchart__ticks span:last-child { transform: translateX(-50%); }
}
.pchart__axis-val { text-align: right; color: var(--muted); font-size: .75rem; }

/* Wage table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); margin-bottom: 3rem; }
.wtable { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 46rem; }
.wtable th, .wtable td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wtable thead th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.wtable tbody th { font-weight: 600; }
.wtable tbody th a { color: var(--text); text-decoration: none; }
.wtable tbody th a:hover { color: var(--powder); text-decoration: underline; }
.wtable tbody th span { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.wtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtable tbody tr:hover { background: var(--raven-2); }

/* Prose and notes */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--soft); }
.note { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 68ch; }
.note h2 { font-size: 1.25rem; }
.note p { color: var(--soft); }
.note .muted { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 2rem 0; margin: 0; }

/* Training: the offshore basics */
.path { display: grid; gap: 1.5rem 2.5rem; margin-bottom: 2.75rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: var(--raven-2); border: 1px solid var(--line); }
.path__head h2 { font-size: 1.35rem; }
.path__head p { margin: 0; color: var(--soft); max-width: 64ch; }
.path__label { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.path__seq, .path__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.path__seq li, .path__list li { position: relative; min-width: 0; }
.path a { display: grid; align-content: start; gap: .15rem; height: 100%; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raven); color: var(--text); text-decoration: none; }
.path a:hover { border-color: var(--powder); }
.path a strong { font-weight: 600; line-height: 1.3; }
.path a > span:last-child { color: var(--muted); font-size: .9rem; }
.path__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-bottom: .45rem; border-radius: 50%; background: var(--powder); color: var(--raven); font-weight: 700; font-size: .85rem; }
@media (min-width: 56rem) {
  .path { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .path__head { grid-column: 1 / -1; }
  .path__seq, .path__list { grid-template-columns: 1fr 1fr; }
  .path__seq { column-gap: 2rem; }
  .path__seq li:first-child::after { content: ""; position: absolute; top: 50%; right: -1.3rem; width: .65rem; height: .65rem; border-top: 2px solid var(--powder); border-right: 2px solid var(--powder); transform: translateY(-50%) rotate(45deg); }
}

/* Training list */
.tk summary { grid-template-columns: minmax(0, 1fr) 1.5rem; grid-template-areas: "main toggle" "renew renew"; }
.tk__main { grid-area: main; display: grid; gap: .2rem; }
.tk__name { font-size: 1.12rem; font-weight: 600; }
.tk__what { color: var(--muted); font-size: .95rem; }
.tk__renew { grid-area: renew; color: var(--powder); font-size: .9rem; }
.tk .job__toggle { grid-area: toggle; }
@media (min-width: 52rem) {
  .tk summary { grid-template-columns: minmax(0, 1fr) 16rem 1.5rem; grid-template-areas: "main renew toggle"; }
  .tk__renew { text-align: right; }
  .tk .job__toggle { align-self: center; margin-top: 0; }
}
.tk__h { font-size: 1rem; margin: 0; }
.prov { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.prov li { display: grid; gap: .1rem; }
.prov a { font-weight: 600; }
.prov span { color: var(--muted); font-size: .93rem; }
.tk__tip { margin: 0; padding-left: .9rem; border-left: 2px solid var(--poppy); color: var(--soft); }
.tk__src { margin: 0; color: var(--muted); font-size: .85rem; }
.tk__src a { color: var(--muted); }
.tk:target summary { background: var(--raven-2); }

.tickets-grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .tickets-grid { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.tickets-grid li { border-bottom: 1px solid var(--line); }
.tickets-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; color: var(--text); text-decoration: none; }
.tickets-grid a:hover strong { color: var(--powder); }
.tickets-grid strong { font-weight: 600; }
.tickets-grid span { color: var(--muted); font-size: .9rem; text-align: right; }

/* Bay du Nord timeline */
.tl { --rail: .45rem; list-style: none; margin: 0; padding: 0; }
.tl__item { position: relative; display: grid; gap: .15rem; padding: 0 0 2.1rem 2.1rem; }
.tl__item::before { content: ""; position: absolute; left: var(--rail); top: .9rem; bottom: -.3rem; border-left: 2px solid rgba(196, 224, 240, .45); transform: translateX(-1px); }
.tl__item:last-child::before { display: none; }
.tl__item:has(+ .tl__item--next)::before, .tl__item--next::before { border-left-style: dashed; border-left-color: rgba(229, 51, 42, .7); }
.tl__item::after { content: ""; position: absolute; left: var(--rail); top: .4rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--powder); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--raven); }
.tl__item--next::after { background: var(--raven); border: 2px solid var(--poppy); }
.tl__item--now { margin-top: 2.6rem; }
.tl__item--now .tl__when::before { content: "Today"; position: absolute; left: 0; top: -2.15rem; padding: .15rem .55rem; border-radius: 999px; background: var(--poppy); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.tl__when { margin: 0; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.tl__when span { display: block; font-weight: 500; font-size: .8rem; color: var(--poppy-text); }
.tl__body h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.tl__body p { margin: 0 0 .35rem; color: var(--soft); max-width: 62ch; }
.tl__body .tl__src { margin: 0; color: var(--muted); font-size: .85rem; }
.tl__src a { color: var(--muted); }
@media (min-width: 52rem) {
  .tl { --rail: 11.75rem; }
  .tl__item { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 3.5rem; padding-left: 0; }
  .tl__when { text-align: right; }
  .tl__item--now .tl__when::before { left: 10rem; transform: translateX(-100%); }
}

/* News */
.news__item { display: grid; gap: .35rem 2.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .news__item { grid-template-columns: 11rem minmax(0, 1fr); } }
.news__item time { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; padding-top: .15rem; }
.news__item h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.news__item p { color: var(--soft); max-width: 66ch; margin-bottom: .5rem; }
.news__item .news__src { color: var(--muted); font-size: .9rem; margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); font-size: .95rem; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .foot__grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.foot__brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 750; font-size: 1.15rem; letter-spacing: .02em; margin-bottom: .75rem; }
.foot__lede { max-width: 42ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

.foot__updated { margin: .75rem 0 0; font-size: .88rem; }

/* Breadcrumbs */
.crumbs { margin: 0 0 1.25rem; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.crumbs li + li::before { content: ""; flex: none; width: .38rem; height: .38rem; border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); transform: rotate(45deg); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--powder); text-decoration: underline; }
.crumbs [aria-current] { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead--wide { max-width: 66ch; }

/* Job, role and course pages */
.jd { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 60rem) { .jd { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.jd__main { display: grid; gap: 1.75rem; min-width: 0; }
.jd__main > .prov, .jd__main > .tk__tip, .jd__main > .sub { margin: 0; }
.jd__side { min-width: 0; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--raven-2); }
@media (min-width: 60rem) { .jd__side { position: sticky; top: 5.5rem; } }
.jd__side h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.jd__side p { margin: 0; font-size: .95rem; }
.jd__similar { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.jd__similar li { border-bottom: 1px solid var(--line); }
.jd__similar a { display: grid; gap: .1rem; padding: .75rem 0; color: var(--text); text-decoration: none; }
.jd__similar a:hover strong { color: var(--powder); text-decoration: underline; }
.jd__similar strong { font-weight: 600; line-height: 1.3; }
.jd__similar span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.jd__desc { max-width: 66ch; }
.jd__desc ul { margin: -.5em 0 1em; padding-left: 1.2rem; color: var(--soft); }
.jd__desc li { margin-bottom: .3rem; }
.jd__desc li::marker { color: var(--powder); }
.jd__desc strong { color: var(--text); font-weight: 600; }
.jd__src { margin: 0; font-size: .88rem; }
.jd__src a { color: var(--muted); }
.facts--big { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--raven-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.facts--big dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.note--first { margin-top: 0; }
.note .jd__similar { margin-top: 1rem; }
.wtable--narrow { min-width: 0; }
.table-wrap:has(> .wtable--narrow) { max-width: 48rem; }
.note + .jd__src { margin-top: 2.5rem; }
@media (max-width: 40rem) {
  .wtable--narrow { font-size: .9rem; }
  .wtable--narrow th, .wtable--narrow td { padding: .75rem .45rem; }
}

/* Questions and answers */
.faq h2 { margin-bottom: 1.5rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1.12rem; margin: 0 0 .45rem; }
.faq__item p { margin: 0; color: var(--soft); max-width: 64ch; }
@media (min-width: 56rem) {
  .faq__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .faq__item h3 { margin: 0; }
}

/* Glossary */
.gl__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.75rem; }
.gl__nav a { padding: .55rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.gl__nav a:hover { border-color: var(--powder); color: var(--text); }
.gl__cat { margin-bottom: 3.25rem; }
.gl__cat h2 { font-size: 1.5rem; }
.gl { margin: 0; border-top: 1px solid var(--line); }
.gl__term { display: grid; gap: .25rem 2.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .gl__term { grid-template-columns: 15rem minmax(0, 1fr); } }
.gl dt { font-weight: 650; color: var(--text); }
.gl dt span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.gl dd { margin: 0; color: var(--soft); max-width: 66ch; }
.gl__term:target { box-shadow: inset 3px 0 0 var(--poppy); padding-left: 1rem; }

/* Estimator: custom rotation */
.own--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }

/* Reveal on scroll (only when app.js is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal]:not([data-reveal="rows"]),
  .js-reveal [data-reveal="rows"] > .rv {
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
  }
  .js-reveal [data-reveal]:not([data-reveal="rows"]):not(.is-in) { opacity: 0; transform: translateY(16px); }
  .js-reveal [data-reveal="rows"] > .rv:not(.is-in) { opacity: 0; transform: translateY(10px); }

  /* Charts: bars grow from the left, one row after another, then the median marks appear. */
  .js-reveal [data-reveal="bars"] .pchart__range,
  .js-reveal [data-reveal="bars"] .pchart__posts { transform-origin: left center; transform: translateY(-50%) scaleX(1); transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(min(var(--i, 0), 16) * 35ms + 150ms); }
  .js-reveal [data-reveal="bars"] .ladder__bar { transform-origin: left center; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(min(var(--i, 0), 16) * 60ms + 150ms); }
  .js-reveal [data-reveal="bars"]:not(.is-in) .pchart__range,
  .js-reveal [data-reveal="bars"]:not(.is-in) .pchart__posts { transform: translateY(-50%) scaleX(0); }
  .js-reveal [data-reveal="bars"]:not(.is-in) .ladder__bar { transform: scaleX(0); }
  .js-reveal [data-reveal="bars"] .pchart__med { transition: opacity .4s ease calc(min(var(--i, 0), 16) * 35ms + 750ms); }
  .js-reveal [data-reveal="bars"]:not(.is-in) .pchart__med { opacity: 0; }

  .reveal-init [data-reveal], .reveal-init [data-reveal] *, .reveal-init .rv { transition: none !important; }

  /* The map's route to Bay du Nord draws when the map scrolls into view. */
  .js-reveal .map:not(.is-in) .map__route,
  .js-reveal .map:not(.is-in) .map__halo,
  .js-reveal .map:not(.is-in) .map__lbl--bdn { animation-play-state: paused; }
}

@media print {
  .top, .foot, .tools, .search, #alerts, .faq { display: none; }
  body { background: #fff; color: #000; }
  [data-reveal], .rv { opacity: 1 !important; transform: none !important; }
}
