:root {
  --ink: #122338;
  --ink-soft: #33465b;
  --paper: #f7fbff;
  --white: #ffffff;
  --cloud: #e7f1f7;
  --sky: #147ea3;
  --sky-dark: #0b536f;
  --coral: #ed6a5a;
  --lime: #b9d86e;
  --line: #cbdbe5;
  --shadow: 0 18px 55px rgba(17, 46, 68, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Gill Sans", Calibri, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(20, 126, 163, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 126, 163, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
}

.nav-shell,
.section-inner,
.footer-inner,
.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(9, 45, 63, 0.42);
  color: var(--lime);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--lime);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 39, 54, 0.5);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 84vh);
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #15384b url("/wp-content/uploads/2024/11/counter-bg.jpg") center 42% / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 35, 52, 0.94) 0%, rgba(8, 35, 52, 0.75) 48%, rgba(8, 35, 52, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 35, 52, 0.75) 0%, transparent 52%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 160px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  content: "";
  background: var(--coral);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  display: grid;
  max-width: 810px;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: end;
  margin-top: 30px;
}

.hero-copy p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--lime);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-link:hover {
  color: var(--ink);
  background: var(--lime);
}

.library-band {
  position: relative;
  padding: 54px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.library-head h2,
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.library-intro {
  margin: 0;
  color: var(--ink-soft);
}

.article-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--paper);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.tab-panel[hidden] {
  display: none;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.story-link {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.story-link::after {
  align-self: flex-end;
  content: "Read  \2192";
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
}

.story-link:hover {
  color: var(--white);
  background: var(--sky-dark);
}

.story-link:hover .story-meta,
.story-link:hover::after {
  color: var(--lime);
}

.story-title {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.story-meta {
  display: block;
  margin-top: 12px;
  color: #607387;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

[data-na-home-published-list]:empty {
  display: none;
}

.split-section {
  padding: 84px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.editorial-image {
  position: relative;
  min-height: 510px;
}

.editorial-image img {
  width: calc(100% - 48px);
  height: 470px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  padding: 20px;
  color: var(--white);
  background: var(--coral);
  font-size: 14px;
  font-weight: 700;
}

.split-copy p {
  color: var(--ink-soft);
  font-size: 18px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.principle {
  padding: 22px 18px 0 0;
}

.principle strong {
  display: block;
  color: var(--sky-dark);
  font-family: var(--serif);
  font-size: 34px;
}

.principle span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.workflow-band {
  padding: 76px 0;
  color: var(--white);
  background: var(--ink);
}

.workflow-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 48px;
}

.workflow-head p {
  margin: 0;
  color: #bfd1df;
  font-size: 18px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #456076;
}

.workflow-step {
  min-height: 220px;
  padding: 26px 24px;
  border-right: 1px solid #456076;
}

.workflow-step:last-child {
  border-right: 0;
}

.step-no {
  display: block;
  margin-bottom: 58px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 32px;
}

.workflow-step h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
}

.workflow-step p {
  margin: 0;
  color: #b8cad7;
  font-size: 14px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.footer-note {
  margin: 4px 0 0;
  color: #607387;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* Article pages */
.article-page {
  background: var(--white);
}

.article-page .site-header {
  position: relative;
  color: var(--ink);
  background: var(--ink);
}

.article-hero {
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.article-hero-inner,
.article-grid {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.article-category {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.article-deck {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(220px, 1fr);
  gap: 72px;
  padding: 58px 0 96px;
}

.article-body {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.article-body > p:first-child {
  margin-top: 0;
  font-size: 21px;
  line-height: 1.62;
}

.article-body h2 {
  margin: 2.1em 0 0.65em;
  font-family: var(--sans);
  font-size: 31px;
  line-height: 1.2;
}

.article-body h3 {
  margin: 1.75em 0 0.45em;
  font-family: var(--sans);
  font-size: 23px;
  line-height: 1.25;
}

.article-body img {
  width: 100%;
  height: auto;
  margin: 34px auto;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
}

.article-body table {
  display: block;
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.article-body th,
.article-body td {
  min-width: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--white);
  background: var(--sky-dark);
}

.article-body a {
  color: var(--sky-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-aside {
  align-self: start;
  padding: 22px 0;
  border-top: 4px solid var(--coral);
  border-bottom: 1px solid var(--line);
}

.article-aside strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.article-aside p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.article-aside a {
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
}

#partner-links:empty,
#partner-links ul:empty {
  display: none;
}

@media (max-width: 900px) {
  .story-grid,
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step:nth-child(2) {
    border-right: 0;
  }

  .workflow-step {
    border-bottom: 1px solid #456076;
  }

  .split-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    gap: 46px;
  }

  .article-aside {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .section-inner,
  .footer-inner,
  .article-shell,
  .hero-inner,
  .article-hero-inner,
  .article-grid {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 730px;
    background-position: 61% center;
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(8, 35, 52, 0.96) 0%, rgba(8, 35, 52, 0.74) 68%, rgba(8, 35, 52, 0.34) 100%);
  }

  .hero-inner {
    padding: 150px 0 48px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy,
  .library-head,
  .workflow-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .story-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .story-link {
    min-height: 165px;
  }

  .workflow-step,
  .workflow-step:nth-child(2) {
    min-height: auto;
    border-right: 0;
  }

  .step-no {
    margin-bottom: 28px;
  }

  .split-section,
  .workflow-band {
    padding: 62px 0;
  }

  .split-grid {
    gap: 44px;
  }

  .editorial-image {
    min-height: 410px;
  }

  .editorial-image img {
    width: calc(100% - 24px);
    height: 385px;
  }

  .image-note {
    width: 200px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-hero {
    padding: 48px 0 38px;
  }

  .article-hero h1 {
    font-size: 42px;
  }

  .article-grid {
    padding: 38px 0 72px;
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
