.jf-page {
  --jf-blue: #123f7a;
  --jf-blue-deep: #0b2f5d;
  --jf-cyan: #0099d8;
  --jf-ink: #172b3d;
  --jf-muted: #587086;
  --jf-line: #d9e6ef;
  --jf-soft: #f3f8fc;
  color: var(--jf-ink);
  background: #fff;
}

.jf-hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  padding: 44px 0 68px;
  background:
    radial-gradient(circle at 82% 44%, rgba(86, 111, 146, .18), transparent 34%),
    linear-gradient(116deg, #101b2a 0%, #172538 58%, #29374c 100%);
  color: #fff;
}

.jf-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0;
  box-sizing: border-box;
}

.jf-hero--source-locked {
  background: #08111e;
}

.jf-hero--source-locked .jf-hero-media {
  background: #08111e url("../images/ftir/jackfish-electrochemistry/jackfish-cell-blue-hero-source-locked.webp") right center / auto calc(100% + 2px) no-repeat;
}

.jf-hero--source-locked::before {
  background:
    linear-gradient(90deg, rgba(4, 11, 21, .28) 0%, rgba(4, 11, 21, .18) 46%, rgba(4, 11, 21, .04) 68%, transparent 82%),
    linear-gradient(180deg, rgba(4, 11, 21, .04) 0%, transparent 54%, rgba(4, 11, 21, .16) 100%);
}

.jf-hero--source-locked::after {
  background: none;
}

.jf-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 27, 42, .99) 0%, rgba(18, 31, 48, .96) 38%, rgba(23, 37, 56, .54) 57%, rgba(41, 55, 76, .04) 78%, transparent 100%),
    linear-gradient(180deg, rgba(16, 27, 42, .10) 0%, transparent 48%, rgba(16, 27, 42, .38) 100%);
}

.jf-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 76% 42%, rgba(95, 201, 244, .18), transparent 32%);
  mix-blend-mode: screen;
}

.jf-hero > .container {
  position: relative;
  z-index: 2;
}

.jf-hero-grid {
  display: block;
}

.jf-hero-copy {
  max-width: 720px;
}

.jf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.jf-breadcrumb a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
}

.jf-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.jf-hero-lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.85;
}

.jf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.jf-chip {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
}

.jf-hero-credit {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.6;
}

.jf-shell {
  padding: 58px 0 78px;
  background: linear-gradient(180deg, #f7fbfe 0, #fff 260px);
}

.jf-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(230px, 290px);
  gap: 58px;
  justify-content: center;
  align-items: start;
}

.jf-article {
  min-width: 0;
}

.jf-intro {
  margin-bottom: 44px;
  padding: 30px 32px;
  border-left: 4px solid var(--jf-cyan);
  border-radius: 0 18px 18px 0;
  background: #fff;
  box-shadow: 0 18px 52px rgba(18,63,122,.08);
}

.jf-article h2 {
  margin: 58px 0 20px;
  color: var(--jf-blue-deep);
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.34;
  letter-spacing: -.02em;
}

.jf-article h3 {
  margin: 34px 0 14px;
  color: var(--jf-blue);
  font-size: 22px;
  line-height: 1.45;
}

.jf-article p,
.jf-article li {
  color: #304b62;
  font-size: 17px;
  line-height: 1.92;
}

.jf-article a {
  color: #0877b8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jf-figure {
  margin: 34px 0 42px;
  overflow: hidden;
  border: 1px solid var(--jf-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18,63,122,.08);
}

.jf-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.jf-figure--diagram img,
.jf-figure--spectrum img {
  padding: 26px;
  box-sizing: border-box;
}

.jf-figure--narrow {
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
}

.jf-figure--system {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.jf-figure--system img {
  max-height: 820px;
  object-fit: contain;
  background: #fff;
}

.jf-case {
  margin-top: 42px;
}

.jf-case + .jf-case {
  margin-top: 60px;
  padding-top: 46px;
  border-top: 1px solid var(--jf-line);
}

.jf-case h3 {
  margin-top: 0;
  color: var(--jf-blue-deep);
  font-size: clamp(23px, 2.5vw, 29px);
}

.jf-figure--structure {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.jf-figure--structure img {
  background: #f5f5f4;
}

.jf-evidence-note {
  padding: 15px 18px;
  border-left: 3px solid var(--jf-cyan);
  background: #eef7fb;
  color: #3c5c74;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.jf-figure figcaption {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--jf-line);
  background: #f8fbfd;
  color: var(--jf-muted);
  font-size: 13px;
  line-height: 1.75;
}

.jf-figure figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: var(--jf-blue);
  font-size: 14px;
}

.jf-table-wrap {
  margin: 28px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--jf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18,63,122,.07);
}

.jf-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.jf-table th,
.jf-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #e6eef4;
  text-align: left;
  vertical-align: top;
  color: #365269;
  font-size: 14px;
  line-height: 1.72;
}

.jf-table th {
  background: #edf6fb;
  color: var(--jf-blue);
  font-weight: 800;
}

.jf-table td:first-child {
  color: var(--jf-blue-deep);
  font-weight: 800;
  white-space: nowrap;
}

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

.jf-video {
  margin: 34px 0 46px;
  overflow: hidden;
  border: 1px solid var(--jf-line);
  border-radius: 22px;
  background: #071f3b;
  box-shadow: 0 22px 52px rgba(7,31,59,.18);
}

.jf-video-frame {
  position: relative;
  padding-top: 56.25%;
}

.jf-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.jf-video figcaption {
  padding: 15px 18px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.65;
}

.jf-source-box {
  margin-top: 62px;
  padding: 28px 30px;
  border: 1px solid var(--jf-line);
  border-radius: 20px;
  background: var(--jf-soft);
}

.jf-source-box h2 {
  margin-top: 0;
  font-size: 28px;
}

.jf-source-box ol {
  margin: 0;
  padding-left: 22px;
}

.jf-source-box li {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.75;
}

.jf-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.jf-side-panel {
  padding: 22px;
  border: 1px solid var(--jf-line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 38px rgba(18,63,122,.07);
}

.jf-side-panel h2 {
  margin: 0 0 14px;
  color: var(--jf-blue);
  font-size: 16px;
}

.jf-side-panel a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #e7eef4;
  color: #3c5c74;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.jf-side-panel a:last-child {
  border-bottom: 0;
}

.jf-product-links {
  display: grid;
  gap: 10px;
}

.jf-side-panel .jf-product-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: #f8fbfd;
  color: var(--jf-ink);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.jf-side-panel .jf-product-link:hover {
  border-color: #9ecde5;
  background: #f1f9fd;
  transform: translateY(-1px);
}

.jf-product-link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #e6f4fb;
  color: var(--jf-cyan);
  font-size: 14px;
}

.jf-product-link-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.jf-product-link-copy strong {
  color: var(--jf-blue);
  font-size: 13px;
  line-height: 1.45;
}

.jf-product-link-copy small {
  color: #60798c;
  font-size: 11px;
  line-height: 1.4;
}

.jf-product-link-arrow {
  color: var(--jf-cyan);
  font-size: 14px;
}

.jf-side-panel .jf-product-link--contact {
  border-color: #c7e5f3;
  background: #eef8fc;
}

.jf-product-link--contact .jf-product-link-icon {
  background: var(--jf-blue);
  color: #fff;
}

.jf-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jf-side-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf6fb;
  color: var(--jf-blue);
  font-size: 11px;
  font-weight: 700;
}

.jf-page .pc-footer {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .jf-layout {
    grid-template-columns: minmax(0, 760px);
  }
  .jf-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .jf-hero {
    min-height: 560px;
    padding: 28px 0 38px;
  }
  .jf-hero-media {
    inset: 172px -10% -14px -10%;
    align-items: flex-end;
    padding-right: 0;
    opacity: .58;
  }
  .jf-hero--source-locked .jf-hero-media {
    inset: 0;
    opacity: .72;
    background-position: 86% center;
    background-size: auto 100%;
  }
  .jf-hero--source-locked::before {
    background:
      linear-gradient(180deg, rgba(4, 11, 21, .54) 0%, rgba(4, 11, 21, .48) 48%, rgba(4, 11, 21, .88) 100%),
      linear-gradient(90deg, rgba(4, 11, 21, .58) 0%, rgba(4, 11, 21, .16) 100%);
  }
  .jf-hero::before {
    background:
      linear-gradient(180deg, rgba(4, 22, 41, .76) 0%, rgba(4, 25, 47, .70) 42%, rgba(3, 20, 38, .96) 100%),
      linear-gradient(90deg, rgba(4, 24, 45, .88) 0%, rgba(4, 31, 56, .42) 100%);
  }
  .jf-hero h1 {
    font-size: 38px;
  }
  .jf-hero-credit {
    margin-top: 24px;
    color: rgba(255,255,255,.68);
  }
  .jf-shell {
    padding: 38px 0 54px;
  }
  .jf-intro {
    padding: 24px 22px;
  }
  .jf-article h2 {
    margin-top: 46px;
    font-size: 28px;
  }
  .jf-article p,
  .jf-article li {
    font-size: 16px;
    line-height: 1.86;
  }
  .jf-case {
    margin-top: 34px;
  }
  .jf-case + .jf-case {
    margin-top: 44px;
    padding-top: 36px;
  }
  .jf-figure--diagram img,
  .jf-figure--spectrum img {
    padding: 14px;
  }
  .jf-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .jf-hero h1 {
    font-size: 33px;
  }
  .jf-hero-lead {
    font-size: 16px;
  }
  .jf-chip-row {
    gap: 7px;
  }
  .jf-chip {
    padding: 7px 9px;
  }
  .jf-intro {
    padding: 20px 18px;
  }
  .jf-source-box {
    padding: 22px 19px;
  }
}
