:root {
  --color-page: #f5f5f2;
  --color-surface: #ffffff;
  --color-surface-soft: #ecefeb;
  --color-ink: #111513;
  --color-ink-soft: #35413b;
  --color-muted: #6a756e;
  --color-line: #d9ded8;
  --color-accent: #006c67;
  --color-accent-dark: #064844;
  --color-warm: #b8642f;
  --color-code: #121716;
  --shadow-soft: 0 18px 60px rgba(17, 21, 19, 0.08);
  --radius: 8px;
  --max-page: 1180px;
  --max-article: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-ink);
  background: var(--color-page);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 0%, rgba(0, 108, 103, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(184, 100, 47, 0.07), transparent 42%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 242, 0.88);
  border-bottom: 1px solid rgba(217, 222, 216, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav {
  max-width: var(--max-page);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 236px;
  height: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.site-nav__toggle-icon,
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav__toggle-icon {
  position: relative;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav__toggle-icon::before {
  top: -6px;
}

.site-nav__toggle-icon::after {
  top: 6px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon {
  background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav__links a {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav__links a:hover {
  background: rgba(0, 108, 103, 0.08);
  color: var(--color-accent-dark);
}

.site-nav__cta {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.72);
}

main {
  min-height: calc(100vh - 210px);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.66);
}

.site-footer__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(420px, auto);
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer__navs {
  display: grid;
  gap: 13px;
  justify-items: end;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-ink);
}

.site-footer__email {
  display: inline-flex;
  margin-top: 8px;
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 650;
}

.site-footer__links,
.site-footer__legal,
.site-footer__social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer__links,
.site-footer__legal {
  justify-content: flex-end;
}

.site-footer__legal {
  gap: 12px;
  font-size: 12px;
}

.site-footer a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.site-footer__social {
  justify-content: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .social-link--placeholder {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 38, 68, 0.08);
}

.site-footer .social-link--placeholder:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 38, 68, 0.16);
}

.social-link--facebook {
  background: #1877f2;
}

.social-link--instagram {
  background:
    radial-gradient(circle at 30% 108%, #fdf497 0 11%, #fdf497 12%, #fd5949 36%, #d6249f 62%, #285aeb 100%);
}

.social-link--telegram {
  background: #26a5e4;
}

.message-stack {
  max-width: var(--max-page);
  margin: 18px auto 0;
  padding: 0 24px;
}

.message {
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 113, 227, 0.08);
  padding: 12px 14px;
  color: var(--color-ink-soft);
  font-weight: 650;
}

.page-hero,
.hero {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 72px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  gap: 48px;
  align-items: end;
}

.page-hero--compact {
  display: block;
  max-width: 920px;
  padding-bottom: 28px;
}

.template-standard .page-hero--compact,
.template-login .page-hero--compact,
.template-subscribe .page-hero--compact {
  max-width: var(--max-page);
}

.template-standard .page-hero--compact .lede,
.template-login .page-hero--compact .lede,
.template-subscribe .page-hero--compact .lede {
  max-width: 780px;
}

.template-about .page-hero--compact {
  max-width: 980px;
}

.template-legal .page-hero--compact {
  max-width: 980px;
}

.template-resources .page-hero--compact,
.template-searchresults .page-hero--compact {
  max-width: var(--max-page);
}

.template-resources .article-body {
  max-width: var(--max-page);
}

.template-resource .page-hero--compact {
  max-width: 980px;
}

.hero__text,
.page-hero__body {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
}

.eyebrow__mark {
  display: block;
  width: 45px;
  height: 34px;
  object-fit: contain;
  transform: translateY(4px);
}

.eyebrow--brand span {
  color: #1f78c8;
  display: inline-block;
  transform: translateY(4px);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--color-ink);
  font-size: 64px;
  line-height: 0.98;
  font-weight: 760;
}

.page-hero--compact h1 {
  font-size: 54px;
}

.lede,
.hero__text .lede {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--color-ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.lede p {
  margin: 0;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 720;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button--primary,
.button.primary {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.button--secondary,
.button.ghost {
  background: transparent;
  color: var(--color-ink);
}

.button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.button--primary:hover,
.button.primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.hero__card,
.signal-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 108, 103, 0.1);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 720;
}

.hero__card h3,
.signal-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.hero__card ul,
.signal-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-ink-soft);
  line-height: 1.65;
}

.content-band,
.tiles,
.quick-links,
.sections,
.posts,
.search-panel,
.access-shell {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 34px 24px;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.section-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.section-action {
  margin-top: 22px;
}

.feature-grid,
.card-grid,
.tiles,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.tile,
.link-card,
.post-card {
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-ink);
  text-decoration: none;
}

.card,
.tile,
.post-card {
  padding: 22px;
}

.card h3,
.tile h3,
.post-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.card h3 a,
.post-card h3 a {
  text-decoration: none;
}

.card__summary,
.tile p {
  color: var(--color-muted);
  line-height: 1.55;
}

.card__summary p {
  margin-top: 0;
}

.card__summary p:last-child,
.tile p:last-child {
  margin-bottom: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--color-accent-dark);
  font-weight: 740;
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
}

.link-card {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 720;
}

.meta-row,
.article-meta,
.post-meta {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip,
.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.doc-peek,
.article-list,
.tag-list {
  list-style: none;
  padding: 0;
}

.doc-peek {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.doc-peek a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.article-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.article-list .post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.template-knowledge-category .kb-article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-knowledge-category .kb-article-card {
  position: relative;
  min-height: 260px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 16px;
  border-color: rgba(10, 37, 64, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.9)),
    #fff;
  overflow: hidden;
}

.template-knowledge-category .kb-article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--color-accent);
}

.template-knowledge-category .kb-article-card--incident_lesson::before,
.template-knowledge-category .kb-article-card--incident_investigation::before {
  background: #ff8a1f;
}

.template-knowledge-category .kb-article-card--reference::before,
.template-knowledge-category .kb-article-card--reference_note::before {
  background: #6b7280;
}

.template-knowledge-category .kb-article-card--technical_guide::before {
  background: #0a2540;
}

.template-knowledge-category .kb-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.template-knowledge-category .kb-article-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-knowledge-category .kb-article-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.template-knowledge-category .kb-article-time {
  background: #eef2f7;
  white-space: nowrap;
}

.template-knowledge-category .kb-article-card h3 {
  font-size: 25px;
  line-height: 1.12;
  max-width: 18ch;
}

.template-knowledge-category .kb-article-card .card__summary {
  margin: 0;
  max-width: 62ch;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-knowledge-category .kb-article-tags {
  margin-top: 2px;
}

.template-knowledge-category .kb-article-tags .meta-chip {
  min-height: 28px;
  background: rgba(10, 37, 64, 0.06);
  color: var(--color-ink-soft);
}

.template-knowledge-category .kb-article-card__action {
  margin-top: auto;
  align-self: flex-start;
}

.post-card__media {
  margin: -22px -22px 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--color-line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--color-surface-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-card__media--placeholder {
  min-height: 190px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #0b1018 0%, #182434 62%, #08111c 100%);
  background-size: 32px 32px, 32px 32px, auto;
  color: #fff;
}

.post-card__media--placeholder span {
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.post-card__media--placeholder strong {
  max-width: 92%;
  color: #fff;
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.post-card__body {
  display: grid;
  gap: 10px;
}

.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.post-card--featured .post-card__media {
  height: 100%;
  min-height: 320px;
  margin: 0;
  border-right: 1px solid var(--color-line);
  border-bottom: 0;
  border-radius: 0;
}

.post-card--featured .post-card__body {
  align-content: center;
  padding: 30px;
}

.post-card--featured h3 {
  font-size: 34px;
  line-height: 1.06;
}

.post-hero {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 70px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.post-hero__media {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-soft);
}

.post-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-hero__media--placeholder {
  min-height: 360px;
  display: grid;
  place-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #111418;
  background-size: 44px 44px;
  color: #fff;
}

.post-hero__visual {
  min-height: 100%;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  align-content: end;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.post-hero__visual::before,
.post-hero__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.post-hero__visual::before {
  inset: 26px 28px auto auto;
  width: 44%;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.46), rgba(255, 255, 255, 0.04));
}

.post-hero__visual::after {
  right: 42px;
  bottom: 42px;
  width: 38%;
  height: 24%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0 2px,
      transparent 2px 12px
    );
}

.post-hero__visual-kicker {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

.post-hero__visual-title {
  max-width: 420px;
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

.post-hero__visual-line {
  width: min(280px, 72%);
  height: 3px;
  background: #00b3a4;
  position: relative;
  z-index: 1;
}

.post-hero__visual-line--short {
  width: min(170px, 45%);
  background: #f0b84a;
}

.post-hero__text h1 {
  font-size: 52px;
}

.post-author-card {
  width: min(100%, 560px);
  margin: 22px 0 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.post-author-card__avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #07192c, #0d7fe8);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.post-author-card__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-author-card__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.post-author-card__identity {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.post-author-card__identity strong {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.2;
}

.post-author-card__identity span,
.post-author-card__meta {
  color: var(--color-muted);
}

.post-author-card__identity span {
  font-size: 14px;
  line-height: 1.2;
}

.post-author-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.post-author-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-author-card__meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.tag-list {
  margin: 18px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-shell {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 64px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas:
    "header sidebar"
    "media sidebar"
    "body sidebar";
  gap: 56px;
  align-items: start;
}

.article-shell--no-media {
  grid-template-areas:
    "header sidebar"
    "body sidebar";
  row-gap: 16px;
}

.article-header {
  grid-area: header;
  max-width: var(--max-article);
}

.article-hero-media {
  grid-area: media;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-soft);
}

.article-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.article-hero-media .media-caption {
  margin: 0;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-accent-dark);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.article-back-link::before {
  content: "←";
  font-size: 18px;
  line-height: 1;
}

.article-header h1 {
  font-size: 52px;
}

.article-header .lede {
  font-size: 19px;
}

.article-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.article-sidebar__panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.article-sidebar__panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.article-body,
.post-body {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 18px 24px 72px;
  color: var(--color-ink-soft);
  font-size: 18px;
  line-height: 1.72;
}

.article-shell + .article-body {
  margin-top: -24px;
}

.article-shell .article-body {
  grid-area: body;
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-body h2,
.article-body h3,
.post-body h2,
.post-body h3,
.article-body .block-heading,
.post-body .block-heading {
  margin: 38px 0 12px;
  color: var(--color-ink);
  font-weight: 760;
  line-height: 1.18;
}

.article-body p,
.post-body p {
  margin: 0 0 18px;
}

.template-blog-post .post-body,
.template-knowledge-article .article-body {
  max-width: var(--max-page);
  font-size: 16px;
  line-height: 1.62;
}

.template-knowledge-article .article-shell .article-body {
  max-width: none;
}

.template-blog-post .post-body > *,
.template-knowledge-article .article-body > * {
  max-width: 980px;
}

.template-knowledge-article .article-shell .article-body > * {
  max-width: 100%;
}

.template-blog-post .post-body h2,
.template-knowledge-article .article-body h2,
.template-blog-post .post-body .block-heading,
.template-knowledge-article .article-body .block-heading {
  display: block;
  margin-top: 30px;
  margin-bottom: 9px;
  font-size: 26px;
  font-weight: 760;
}

.template-blog-post .post-body h3,
.template-knowledge-article .article-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 20px;
}

.template-blog-post .post-body p,
.template-knowledge-article .article-body p {
  margin-bottom: 13px;
}

.template-blog-post .post-body ul,
.template-blog-post .post-body ol,
.template-knowledge-article .article-body ul,
.template-knowledge-article .article-body ol {
  margin-top: 0;
  margin-bottom: 18px;
}

.article-body a,
.post-body a {
  color: var(--color-accent-dark);
  font-weight: 650;
}

.article-body code,
.post-body code {
  border-radius: 5px;
  background: var(--color-surface-soft);
  padding: 2px 5px;
  color: var(--color-ink);
}

.template-standard .article-body {
  max-width: 980px;
  padding-top: 4px;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 1.62;
}

.template-standard .article-body h2 {
  margin-top: 30px;
  margin-bottom: 9px;
  font-size: 26px;
}

.template-standard .article-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 20px;
}

.template-standard .article-body p {
  margin-bottom: 13px;
}

.template-standard .article-body ul,
.template-standard .article-body ol {
  margin-top: 0;
  margin-bottom: 18px;
}

.content-image,
.content-callout,
.content-checklist,
.content-code,
.content-sop,
.content-resource,
.content-table,
.content-gate {
  margin: 30px 0;
}

.content-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.content-image figcaption,
.media-caption {
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 13px;
}

.content-callout,
.content-checklist,
.content-sop,
.content-resource,
.content-table,
.content-gate {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
}

.content-callout--warning,
.content-callout--critical {
  border-color: rgba(184, 100, 47, 0.48);
  background: rgba(184, 100, 47, 0.08);
}

.content-callout--tip {
  border-color: rgba(0, 113, 227, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.10), rgba(255, 255, 255, 0.86)),
    #fff;
}

.content-callout--tip h3::before {
  content: "YachtByte Take";
  display: block;
  margin-bottom: 7px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-callout--title-yachtbyte-take h3,
.content-callout--title-captain-management-note h3,
.content-callout--title-captain-management-take h3 {
  display: none;
}

.content-callout--title-yachtbyte-take::before,
.content-callout--title-captain-management-note::before,
.content-callout--title-captain-management-take::before {
  display: block;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-callout--title-yachtbyte-take::before {
  content: "YachtByte Take";
  color: var(--color-accent-dark);
}

.content-callout--title-captain-management-take::before {
  content: "Captain / Management Take";
  color: var(--color-warm);
}

.content-callout--title-captain-management-note::before {
  content: "Captain / Management Note";
  color: var(--color-warm);
}

.content-callout--note h3::before {
  content: "Manager / Captain Note";
  display: block;
  margin-bottom: 7px;
  color: var(--color-warm);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.template-blog-post .content-resource,
.template-knowledge-article .content-resource {
  max-width: 980px;
  margin: 9px 0;
  padding: 9px 12px;
  align-items: center;
  gap: 12px;
}

.template-blog-post .content-resource h3,
.template-knowledge-article .content-resource h3 {
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.22;
}

.template-blog-post .content-resource p,
.template-knowledge-article .content-resource p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.28;
}

.template-blog-post .content-resource .button,
.template-knowledge-article .content-resource .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.content-callout h3,
.content-checklist h3,
.content-sop h3,
.content-resource h3,
.content-table h3,
.content-gate h3 {
  margin-top: 0;
}

.content-checklist ul,
.content-sop ol {
  margin-bottom: 0;
}

.content-checklist li,
.content-sop li {
  margin: 10px 0;
}

.resource-intro-copy {
  max-width: 820px;
  margin-top: 28px;
  color: var(--color-ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.resource-intro-copy p {
  margin: 0;
}

.resource-library {
  max-width: var(--max-page);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.resource-library__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  border-top: 1px solid var(--color-line);
  padding-top: 34px;
}

.resource-library__head h2 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

.resource-library__head > p {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.5;
}

.resource-library__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.resource-collections {
  position: sticky;
  top: 96px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 239, 235, 0.7)),
    radial-gradient(circle at 0% 0%, rgba(0, 117, 191, 0.1), transparent 42%);
  padding: 18px;
  box-shadow: 0 12px 36px rgba(17, 21, 19, 0.06);
}

.resource-collections h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.resource-collections ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-collections a,
.resource-collections li > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--color-ink);
  text-decoration: none;
}

.resource-collections a:hover {
  background: rgba(255, 255, 255, 0.82);
}

.resource-collections strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  font-size: 13px;
}

.resource-groups {
  display: grid;
  gap: 22px;
}

.resource-group {
  scroll-margin-top: 100px;
}

.resource-group__title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 12px;
}

.resource-group__title h3 {
  margin: 0;
  font-size: 24px;
}

.resource-group__title span {
  color: var(--color-muted);
  font-size: 14px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
  box-shadow: 0 14px 42px rgba(17, 21, 19, 0.055);
}

.resource-row__marker {
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--color-line);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 760;
}

.resource-row__body {
  min-width: 0;
}

.resource-row__meta {
  margin: 0 0 5px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resource-row h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.resource-row h4 a {
  color: var(--color-ink);
  text-decoration: none;
}

.resource-row__body > p:not(.resource-row__meta) {
  margin: 9px 0 0;
  color: var(--color-ink-soft);
  line-height: 1.45;
}

.resource-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.resource-row__chips span {
  border-radius: 999px;
  background: var(--color-surface-soft);
  padding: 6px 10px;
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.resource-row__action {
  min-width: 92px;
}

.resource-empty {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
}

.resource-empty h3 {
  margin: 0 0 8px;
}

.resource-empty p {
  margin: 0;
  color: var(--color-muted);
}

.content-code {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-code);
  color: #edf3ef;
}

.content-code__label {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 14px;
  color: #aab6b0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.content-code pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.content-code code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.content-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.content-table dl {
  margin: 0;
}

.content-table dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
}

.content-table dt {
  color: var(--color-muted);
  font-weight: 700;
}

.content-table dd {
  margin: 0;
}

.content-gate {
  background: var(--color-ink);
  color: #fff;
}

.content-gate .eyebrow,
.content-gate p {
  color: rgba(255, 255, 255, 0.74);
}

.content-gate .button {
  background: #fff;
  color: var(--color-ink);
}

.search-form {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.search-form__query {
  display: flex;
  gap: 10px;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.search-filters label {
  display: grid;
  gap: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 650;
}

.search-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  padding: 0 11px;
  color: var(--color-ink);
  font: inherit;
}

.search-results {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.empty-state {
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--color-muted);
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.access-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.access-panel--primary {
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.94)),
    #fff;
}

.access-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.access-panel p {
  color: var(--color-muted);
  line-height: 1.55;
}

.access-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.access-form label {
  display: grid;
  gap: 7px;
  color: var(--color-ink-soft);
  font-weight: 700;
}

.access-form input[type="text"],
.access-form input[type="email"],
.access-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}

.access-form input[type="text"],
.access-form input[type="email"] {
  min-height: 48px;
  padding: 0 14px;
}

.access-form textarea {
  min-height: 156px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.5;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 620 !important;
}

.checkbox-field input {
  margin-top: 4px;
}

.form-errors,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 14px;
}

.auth-options {
  display: grid;
  gap: 10px;
}

.auth-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.fine-print {
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-nav {
    position: relative;
    min-height: 66px;
    padding: 10px 18px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav__links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid rgba(217, 222, 216, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(15, 38, 68, 0.12);
    overflow: visible;
  }

  .site-nav__links[hidden] {
    display: none;
  }

  .brand {
    justify-content: flex-start;
    width: auto;
    min-width: 0;
  }

  .brand img {
    width: 205px;
  }

  .site-footer__navs {
    justify-items: start;
    margin-top: 18px;
  }

  .site-footer__social {
    margin-top: 18px;
  }

  .site-footer__links,
  .site-footer__legal,
  .site-footer__social {
    justify-content: flex-start;
  }

  .page-hero,
  .hero,
  .post-hero,
  .article-shell,
  .access-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .article-shell {
    grid-template-areas:
      "header"
      "media"
      "sidebar"
      "body";
  }

  .article-shell--no-media {
    grid-template-areas:
      "header"
      "sidebar"
      "body";
  }

  .article-sidebar {
    position: static;
    grid-row: auto;
  }

  h1,
  .page-hero--compact h1,
  .post-hero__text h1,
  .article-header h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .lede,
  .hero__text .lede {
    font-size: 18px;
  }

  .feature-grid,
  .card-grid,
  .tiles,
  .link-grid,
  .template-knowledge-category .kb-article-list {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer__inner,
  .content-resource,
  .article-list .post-card {
    display: block;
  }

  .template-knowledge-category .kb-article-card {
    min-height: 0;
    display: flex;
  }

  .content-table dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .search-form {
    display: grid;
  }

  .search-form__query,
  .search-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resource-library__head,
  .resource-library__layout,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .resource-collections {
    position: static;
  }

  .resource-row__marker {
    display: none;
  }

  .resource-row__action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .page-hero,
  .hero,
  .post-hero,
  .article-shell,
  .article-body,
  .post-body,
  .content-band,
  .tiles,
  .quick-links,
  .sections,
  .posts,
  .search-panel,
  .access-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1,
  .page-hero--compact h1,
  .post-hero__text h1,
  .article-header h1 {
    font-size: 36px;
  }

  .post-author-card {
    align-items: flex-start;
    border-radius: 16px;
  }

  .post-author-card__avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
    font-size: 20px;
  }

  .post-author-card__identity {
    display: grid;
    gap: 3px;
  }

  .resource-library {
    padding-left: 16px;
    padding-right: 16px;
  }

  .resource-library__head h2 {
    font-size: 32px;
  }

  .resource-row {
    padding: 16px;
  }

  .resource-row h4 {
    font-size: 21px;
  }
}

/* Phase 3B visual direction */
:root {
  --color-page: #fbfbfd;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f4f7;
  --color-ink: #050505;
  --color-ink-soft: #1d1d1f;
  --color-muted: #6e6e73;
  --color-line: #d2d2d7;
  --color-accent: #0071e3;
  --color-accent-dark: #005bb8;
  --color-warm: #b95b2d;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.10);
  --shadow-crisp: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 20px 70px rgba(0, 0, 0, 0.14);
}

html,
body {
  background: var(--color-page);
  overflow-x: hidden;
}

body::before {
  display: none;
}

.site-header {
  background: rgba(251, 251, 253, 0.82);
  border-bottom: 1px solid rgba(210, 210, 215, 0.65);
}

.site-nav {
  min-height: 58px;
}

.brand img {
  width: 220px;
}

.site-nav__links a {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 560;
}

.site-nav__links a:hover {
  background: #f2f4f7;
  color: #000;
}

.site-nav__cta {
  background: #000;
  border-color: #000;
  color: #fff !important;
}

.site-nav__cta:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent);
  color: #fff !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 40px;
  text-align: center;
}

.home-hero__copy {
  max-width: 1180px;
  margin: 0 auto;
}

.home-banner {
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(19, 62, 98, 0.18);
  border-radius: 24px;
  background: #061222;
  box-shadow: 0 26px 70px rgba(15, 38, 68, 0.18);
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 780;
}

.home-hero .lede {
  max-width: 760px;
  margin: 22px auto 0;
  color: #424245;
  font-size: 22px;
}

.home-hero .hero__actions {
  justify-content: center;
  margin-top: 26px;
}

.role-guidance {
  position: relative;
  overflow: hidden;
  width: calc(100% - 48px);
  max-width: var(--max-page);
  margin: 8px auto 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(109, 194, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(55, 174, 245, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #07111f 0%, #10243a 58%, #07111f 100%);
  background-size: auto, 38px 38px, 38px 38px, auto;
  color: #fff;
  box-shadow: 0 26px 70px rgba(15, 38, 68, 0.18);
}

.role-guidance::after {
  content: "";
  position: absolute;
  right: -76px;
  top: -92px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(104, 201, 255, 0.22);
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle, rgba(87, 184, 246, 0.2) 0 1px, transparent 2px 38px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(87, 184, 246, 0.22) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(87, 184, 246, 0.22) 50%, transparent calc(50% + 1px));
  opacity: 0.62;
}

.role-guidance__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.role-guidance h2 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: 0;
}

.role-guidance p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.role-guidance .eyebrow {
  color: #72c7ff;
}

.role-guidance .button {
  margin-top: 24px;
  border-color: #39a9f5;
  background: #0a84ff;
  color: #fff;
}

.role-guidance .button:hover {
  border-color: #72c7ff;
  background: #1597ff;
  color: #fff;
}

.role-guidance__matrix {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.role-guidance__matrix div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 212, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.role-guidance__matrix strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.role-guidance__matrix span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.contact-direct {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact-direct > div {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 255, 0.94)),
    #fff;
  box-shadow: 0 18px 54px rgba(15, 38, 68, 0.08);
}

.contact-direct h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.contact-direct p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: #424245;
  font-size: 16px;
  line-height: 1.52;
}

.button {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 650;
}

.button--primary,
.button.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.button--primary:hover,
.button.primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.button--secondary,
.button.ghost {
  border-color: transparent;
  color: var(--color-accent);
}

.systems-preview {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 54px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, #0a0f19 0%, #121c2d 46%, #07121f 100%);
  box-shadow: var(--shadow-crisp);
  color: #fff;
  text-align: left;
}

.systems-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.16));
}

.systems-preview__bar {
  position: relative;
  z-index: 1;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

.systems-preview__bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.systems-preview__grid {
  position: relative;
  z-index: 1;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
}

.systems-preview__panel {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.systems-preview__panel--wide {
  grid-row: span 2;
}

.systems-preview .eyebrow {
  color: rgba(255, 255, 255, 0.64);
}

.systems-preview strong {
  display: block;
  max-width: 170px;
  font-size: 30px;
  line-height: 1.02;
}

.signal-line {
  height: 13px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.signal-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #44d7b6, #3aa5ff);
}

.systems-preview__panel--chart {
  min-height: 190px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.systems-preview__panel--chart span {
  display: block;
  width: 100%;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #f5f7ff, #42a5ff);
}

.systems-preview__panel--chart span:nth-child(1) {
  height: 46%;
}

.systems-preview__panel--chart span:nth-child(2) {
  height: 72%;
}

.systems-preview__panel--chart span:nth-child(3) {
  height: 58%;
}

.systems-preview__panel--chart span:nth-child(4) {
  height: 88%;
}

.yacht-blueprint {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 54px auto 0;
  border: 1px solid #d8e3ee;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 255, 0.94)),
    linear-gradient(135deg, #f8fbff 0%, #e9f2fb 100%);
  box-shadow: 0 26px 70px rgba(15, 38, 68, 0.14);
  color: #0f1724;
  text-align: left;
}

.yacht-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(45, 111, 164, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 111, 164, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2));
}

.yacht-blueprint__header {
  position: relative;
  z-index: 2;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(33, 87, 132, 0.14);
  color: #31516c;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.yacht-blueprint__canvas {
  position: relative;
  z-index: 1;
  min-height: 460px;
  padding: 12px;
}

.yacht-blueprint__drawing {
  position: absolute;
  inset: 42px 34px 34px;
  width: calc(100% - 68px);
  height: calc(100% - 76px);
}

.blueprint-waterline,
.blueprint-cable {
  fill: none;
  stroke: #3b8fcf;
  stroke-linecap: round;
}

.blueprint-waterline {
  stroke-width: 2;
  stroke-dasharray: 10 12;
  opacity: 0.46;
}

.blueprint-hull {
  fill: url("#hullGradient");
  stroke: #6b879d;
  stroke-width: 3;
}

.blueprint-deck,
.blueprint-bridge,
.blueprint-satcom {
  fill: url("#deckGradient");
  stroke: #6b879d;
  stroke-width: 2.5;
}

.blueprint-mast,
.blueprint-window,
.blueprint-zone {
  fill: none;
  stroke: #5b788f;
  stroke-linecap: round;
  stroke-width: 4;
}

.blueprint-window {
  stroke-width: 8;
}

.blueprint-zone {
  opacity: 0.4;
  stroke-width: 2;
  stroke-dasharray: 7 8;
}

.blueprint-cable {
  stroke-width: 2.5;
  stroke-dasharray: 7 9;
  opacity: 0.74;
}

.blueprint-callout {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  width: 228px;
  padding: 12px 13px;
  border: 1px solid rgba(48, 113, 165, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(25, 57, 88, 0.1);
  backdrop-filter: blur(16px);
}

.blueprint-callout span {
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #1e88d6;
  box-shadow: 0 0 0 4px rgba(30, 136, 214, 0.16);
}

.blueprint-callout strong {
  display: block;
  color: #102233;
  font-size: 14px;
  line-height: 1.15;
}

.blueprint-callout small {
  display: block;
  grid-column: 2;
  margin-top: 3px;
  color: #5f7283;
  font-size: 12px;
  line-height: 1.25;
}

.blueprint-callout--satcom {
  top: 26px;
  left: 45%;
}

.blueprint-callout--bridge {
  top: 96px;
  right: 46px;
}

.blueprint-callout--network {
  top: 130px;
  left: 40px;
}

.blueprint-callout--avit {
  top: 236px;
  left: 72px;
}

.blueprint-callout--power {
  right: 58px;
  bottom: 50px;
}

.blueprint-callout--ops {
  left: 38%;
  bottom: 22px;
}

.home-strip {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px 36px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #424245;
  font-size: 14px;
  font-weight: 620;
}

.page-hero,
.hero {
  padding-top: 78px;
  padding-bottom: 54px;
}

.page-hero h1,
.hero h1 {
  font-size: 68px;
  letter-spacing: 0;
}

.hero__card,
.signal-panel,
.card,
.tile,
.link-card,
.post-card,
.article-sidebar__panel,
.content-callout,
.content-checklist,
.content-sop,
.content-resource,
.content-table {
  border-color: #e5e5ea;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.tile,
.card,
.post-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tile:hover,
.card:hover,
.post-card:hover,
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.tiles,
.sections,
.posts,
.quick-links,
.content-band {
  padding-top: 46px;
  padding-bottom: 46px;
}

.section-head h2 {
  font-size: 42px;
  letter-spacing: 0;
}

.card h3,
.tile h3,
.post-card h3 {
  font-size: 25px;
  letter-spacing: 0;
}

.post-hero {
  padding-top: 82px;
}

.post-hero__text h1,
.article-header h1 {
  font-size: 64px;
}

.post-hero__media {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.article-body,
.post-body {
  font-size: 19px;
}

.content-gate {
  border: 0;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.82), rgba(0, 0, 0, 0.94)),
    #000;
  box-shadow: var(--shadow-soft);
}

.template-knowledge-index .hero,
.template-blog-index .hero {
  position: relative;
  overflow: hidden;
  width: calc(100% - 48px);
  max-width: 1160px;
  margin-top: 52px;
  border-radius: 34px;
  border: 1px solid rgba(104, 201, 255, 0.18);
  background:
    linear-gradient(120deg, rgba(8, 19, 34, 0.98) 0%, rgba(11, 31, 52, 0.98) 52%, rgba(5, 12, 22, 0.98) 100%),
    #07111f;
  color: #fff;
  box-shadow: 0 30px 86px rgba(8, 24, 43, 0.22);
}

.template-knowledge-index .hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.8fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 38px;
}

.template-knowledge-index .hero::before,
.template-blog-index .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(104, 201, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 201, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  opacity: 0.8;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.52));
}

.template-knowledge-index .hero::after,
.template-blog-index .hero::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 72px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 195, 255, 0.18);
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle, rgba(96, 189, 255, 0.2) 0 1px, transparent 2px 42px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(96, 189, 255, 0.18) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(96, 189, 255, 0.18) 50%, transparent calc(50% + 1px));
  opacity: 0.55;
}

.template-knowledge-index .hero__text,
.template-blog-index .hero__text,
.template-knowledge-index .hero__card,
.template-blog-index .hero__card {
  position: relative;
  z-index: 1;
}

.template-knowledge-index .hero h1,
.template-blog-index .hero h1 {
  color: #fff;
  font-size: 72px;
}

.template-knowledge-index .hero .lede,
.template-blog-index .hero .lede {
  color: rgba(231, 244, 255, 0.78);
}

.template-knowledge-index .hero .button--secondary,
.template-blog-index .hero .button--secondary {
  color: #86d0ff;
}

.template-knowledge-index .hero .button--primary,
.template-blog-index .hero .button--primary {
  border-color: #1d9bf0;
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.28);
}

.template-knowledge-index .hero .button--primary:hover,
.template-blog-index .hero .button--primary:hover {
  border-color: #55c1ff;
  background: #1597ff;
}

.template-knowledge-index .hero .eyebrow--brand span,
.template-blog-index .hero .eyebrow--brand span {
  color: #86d0ff;
}

.template-knowledge-index .hero__card,
.template-blog-index .hero__card {
  overflow: hidden;
  border-color: rgba(143, 212, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(21, 39, 60, 0.72);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.template-knowledge-index .hero__card {
  padding: 18px 20px 18px;
}

.template-knowledge-index .hero__card::before,
.template-blog-index .hero__card::before {
  content: "";
  display: block;
  height: 4px;
  margin: -22px -22px 20px;
  background: linear-gradient(90deg, #50c8ff, rgba(80, 200, 255, 0));
}

.template-knowledge-index .hero__card::before {
  margin: -18px -20px 16px;
}

.template-knowledge-index .hero__card h3 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.05;
}

.template-knowledge-index .hero__card ul {
  margin-bottom: 0;
}

.template-knowledge-index .hero__card li {
  font-size: 16px;
  line-height: 1.45;
}

.template-knowledge-index .hero__card li + li {
  margin-top: 5px;
}

.template-knowledge-index .hero__card .status-pill,
.template-blog-index .hero__card .status-pill {
  width: fit-content;
  background: rgba(97, 189, 255, 0.16);
  border: 1px solid rgba(123, 203, 255, 0.22);
  color: #cceaff;
}

.template-knowledge-index .hero__card ul,
.template-blog-index .hero__card ul {
  padding-left: 0;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.template-knowledge-index .hero__card li,
.template-blog-index .hero__card li {
  position: relative;
  padding-left: 18px;
}

.template-knowledge-index .hero__card li + li,
.template-blog-index .hero__card li + li {
  margin-top: 7px;
}

.template-knowledge-index .hero__card li::before,
.template-blog-index .hero__card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4fc3ff;
  box-shadow: 0 0 0 5px rgba(79, 195, 255, 0.1);
}

.template-knowledge-index .kb-library-hero {
  overflow: visible;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  align-items: center;
  margin-top: 44px;
  padding: 34px 24px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  box-shadow: none;
}

.template-knowledge-index .kb-library-hero::before,
.template-knowledge-index .kb-library-hero::after {
  content: none;
}

.template-knowledge-index .kb-library-hero h1 {
  max-width: 760px;
  color: var(--color-ink);
  font-size: 58px;
  line-height: 1;
}

.template-knowledge-index .kb-library-hero .lede {
  max-width: 760px;
  color: var(--color-ink-soft);
  font-size: 19px;
}

.template-knowledge-index .kb-library-hero .eyebrow--brand span {
  color: var(--color-accent-dark);
}

.template-knowledge-index .kb-library-hero .button--secondary {
  color: var(--color-ink);
}

.template-knowledge-index .kb-library-scope {
  padding: 20px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 253, 0.88)),
    #fff;
  color: var(--color-ink);
  box-shadow: 0 18px 50px rgba(10, 37, 64, 0.08);
  backdrop-filter: none;
}

.template-knowledge-index .kb-library-scope::before {
  content: none;
}

.template-knowledge-index .kb-library-scope .status-pill {
  margin-bottom: 14px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-accent-dark);
}

.kb-library-scope__grid {
  display: grid;
  gap: 10px;
}

.kb-library-scope__grid div {
  padding: 13px 14px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.kb-library-scope__grid strong,
.kb-library-scope__grid span {
  display: block;
}

.kb-library-scope__grid strong {
  margin-bottom: 4px;
  color: var(--color-ink);
  font-size: 15px;
}

.kb-library-scope__grid span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.4;
}

.news-feed-shell {
  max-width: var(--max-page);
  margin: 54px auto 0;
  padding: 0 24px 58px;
}

.news-feed-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.48fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(210, 210, 215, 0.72);
}

.news-feed-header h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
}

.news-feed-header .lede {
  max-width: 520px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.55;
}

.news-feed-header .lede p {
  margin: 0;
}

.topic-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 18px 0 24px;
}

.topic-filter a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 14px;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.topic-filter a:hover {
  border-color: rgba(0, 113, 227, 0.32);
  color: var(--color-accent);
}

.topic-filter a.is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

.template-knowledge-index .sections,
.template-blog-index .posts {
  padding-top: 58px;
}

.template-knowledge-index .card-grid,
.template-blog-index .posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-knowledge-index .card,
.template-blog-index .post-card {
  min-height: 178px;
}

.template-knowledge-index .kb-card:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.13), rgba(255, 255, 255, 0.92)),
    #fff;
}

.template-blog-index .post-card:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.13), rgba(255, 255, 255, 0.92)),
    #fff;
}

.template-knowledge-index .kb-card--incident-investigations,
.template-knowledge-index .kb-card--safety-compliance-procedures {
  border-color: rgba(184, 100, 47, 0.26);
  background:
    linear-gradient(135deg, rgba(184, 100, 47, 0.16), rgba(255, 255, 255, 0.94)),
    #fff;
}

.template-knowledge-index .kb-card--incident-investigations:hover,
.template-knowledge-index .kb-card--safety-compliance-procedures:hover {
  border-color: rgba(184, 100, 47, 0.38);
}

.template-knowledge-section,
.template-knowledge-category,
.template-knowledge-article {
  --kb-section-accent: var(--color-accent);
}

.section-connectivity {
  --kb-section-accent: #0a84ff;
}

.section-cyber-security-it-ot {
  --kb-section-accent: #19b88f;
}

.section-it-networks {
  --kb-section-accent: #255fb8;
}

.section-av {
  --kb-section-accent: #7c5cff;
}

.section-electrical-power-systems {
  --kb-section-accent: #ffb545;
}

.section-nav-bridge {
  --kb-section-accent: #0e9fb4;
}

.section-ot {
  --kb-section-accent: #d05a2a;
}

.section-safety-compliance-procedures {
  --kb-section-accent: #3b7d2f;
}

.section-incident-investigations {
  --kb-section-accent: #10202d;
}

.section-training-professional-development {
  --kb-section-accent: #b34d8a;
}

.template-knowledge-section .hero,
.template-knowledge-category .hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 13%, transparent), rgba(255, 255, 255, 0.88)),
    #fff;
}

.template-knowledge-section .hero__card,
.template-knowledge-category .hero__card {
  border-color: color-mix(in srgb, var(--kb-section-accent) 24%, rgba(0, 113, 227, 0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 12%, transparent), rgba(255, 255, 255, 0.92)),
    #fff;
}

.section-incident-investigations .hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 13%, transparent), rgba(255, 255, 255, 0.86)),
    #fff;
}

.section-safety-compliance-procedures .hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 13%, transparent), rgba(255, 255, 255, 0.86)),
    #fff;
}

.section-incident-investigations .hero__card {
  border-color: color-mix(in srgb, var(--kb-section-accent) 24%, rgba(255, 186, 103, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 12%, transparent), rgba(255, 255, 255, 0.92)),
    #fff;
}

.section-safety-compliance-procedures .hero__card {
  border-color: color-mix(in srgb, var(--kb-section-accent) 24%, rgba(255, 186, 103, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 12%, transparent), rgba(255, 255, 255, 0.92)),
    #fff;
}

.section-incident-investigations .eyebrow,
.section-safety-compliance-procedures .eyebrow {
  color: color-mix(in srgb, var(--kb-section-accent) 74%, #10202d);
}

.template-knowledge-section .eyebrow,
.template-knowledge-category .eyebrow,
.template-knowledge-article .eyebrow,
.template-knowledge-section .link-arrow,
.template-knowledge-category .link-arrow,
.template-knowledge-article .article-back-link {
  color: color-mix(in srgb, var(--kb-section-accent) 74%, #10202d);
}

.template-knowledge-section .button--primary,
.template-knowledge-category .button--primary {
  border-color: var(--kb-section-accent);
  background: var(--kb-section-accent);
  color: #fff;
}

.template-knowledge-section .button--primary:hover,
.template-knowledge-category .button--primary:hover {
  border-color: color-mix(in srgb, var(--kb-section-accent) 82%, #10202d);
  background: color-mix(in srgb, var(--kb-section-accent) 82%, #10202d);
}

.template-knowledge-section .category-card,
.template-knowledge-section .article-list .post-card,
.template-knowledge-category .category-card,
.template-knowledge-category .kb-article-card,
.template-knowledge-article .article-sidebar__panel {
  border-color: color-mix(in srgb, var(--kb-section-accent) 22%, rgba(19, 62, 98, 0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kb-section-accent) 8%, transparent), rgba(255, 255, 255, 0.94) 42%),
    #fff;
}

.template-knowledge-section .category-card,
.template-knowledge-section .article-list .post-card,
.template-knowledge-category .category-card,
.template-knowledge-category .kb-article-card {
  position: relative;
  overflow: hidden;
}

.template-knowledge-section .category-card::before,
.template-knowledge-section .article-list .post-card::before,
.template-knowledge-category .category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--kb-section-accent);
}

.template-knowledge-section .category-card > *,
.template-knowledge-section .article-list .post-card > *,
.template-knowledge-category .category-card > * {
  position: relative;
  z-index: 1;
}

.template-knowledge-category .kb-article-card::before {
  background: var(--kb-section-accent);
}

.template-knowledge-category .kb-article-type,
.template-knowledge-category .meta-chip,
.template-knowledge-article .meta-chip {
  background: color-mix(in srgb, var(--kb-section-accent) 10%, #fff);
  color: color-mix(in srgb, var(--kb-section-accent) 72%, #10202d);
}

.template-incident-article {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--kb-section-accent) 8%, transparent), rgba(255, 255, 255, 0) 420px),
    var(--color-bg);
}

.incident-shell {
  gap: 44px;
}

.incident-header .eyebrow {
  color: #a65a22;
}

.incident-header h1 {
  max-width: 780px;
}

.incident-panel {
  border-color: rgba(184, 100, 47, 0.3);
  background:
    linear-gradient(135deg, rgba(184, 100, 47, 0.12), rgba(255, 255, 255, 0.9)),
    #fff;
}

.incident-framework ol {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.incident-framework li + li {
  margin-top: 6px;
}

.incident-body h2 {
  padding-top: 10px;
  border-top: 1px solid rgba(184, 100, 47, 0.18);
}

.template-knowledge-index .card h3,
.template-blog-index .post-card h3 {
  font-size: 28px;
}

.template-blog-index .post-card--featured h3 {
  font-size: 38px;
}

.template-blog-index .post-card--featured .post-card__media--placeholder strong {
  font-size: 34px;
}

.template-knowledge-index .content-band {
  padding-top: 22px;
}

.template-knowledge-index .signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff, #f5f9ff);
}

.template-knowledge-index .signal-panel h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.template-knowledge-index .signal-panel p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .template-knowledge-index .hero,
  .template-blog-index .hero {
    grid-template-columns: 1fr;
    margin-top: 24px;
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(8, 19, 34, 0.98), rgba(11, 31, 52, 0.98)),
      #07111f;
  }

  .template-knowledge-index .kb-library-hero {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-top: 26px;
    padding-bottom: 18px;
    border-radius: 0;
    background: transparent;
  }

  .template-knowledge-index .kb-library-hero h1 {
    font-size: 44px;
  }

  .template-knowledge-index .hero::after,
  .template-blog-index .hero::after {
    right: -72px;
    top: 30px;
    width: 210px;
    opacity: 0.36;
  }

  .template-knowledge-index .hero h1,
  .template-blog-index .hero h1 {
    font-size: 48px;
    max-width: none;
  }

  .template-knowledge-index .hero__card,
  .template-blog-index .hero__card {
    background:
      linear-gradient(135deg, rgba(13, 32, 52, 0.94), rgba(9, 22, 37, 0.98)),
      #091625;
  }

  .template-knowledge-index .kb-library-scope {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 253, 0.88)),
      #fff;
  }

  .template-knowledge-index .card-grid,
  .template-blog-index .posts-grid,
  .template-knowledge-index .signal-panel {
    grid-template-columns: 1fr;
  }

  .news-feed-shell {
    margin-top: 34px;
  }

  .news-feed-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
  }

  .news-feed-header h1 {
    font-size: 48px;
  }

  .news-feed-header .lede {
    max-width: none;
    font-size: 16px;
  }

  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .post-card--featured .post-card__media {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .template-blog-index .post-card--featured h3 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .brand img {
    width: 205px;
  }

  .home-hero h1,
  .page-hero h1,
  .hero h1,
  .post-hero__text h1,
  .article-header h1 {
    font-size: 48px;
  }

  .role-guidance {
    grid-template-columns: 1fr;
    gap: 24px;
    border-radius: 24px;
  }

  .contact-direct {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-direct .button {
    justify-self: start;
  }

  .systems-preview__grid {
    grid-template-columns: 1fr;
  }

  .systems-preview__panel--wide {
    grid-row: auto;
  }

  .yacht-blueprint__canvas {
    min-height: 640px;
  }

  .yacht-blueprint__drawing {
    inset: 160px 20px 188px;
    width: calc(100% - 40px);
    height: calc(100% - 348px);
  }

  .blueprint-callout {
    width: calc(50% - 34px);
  }

  .blueprint-callout--satcom {
    top: 24px;
    left: 22px;
  }

  .blueprint-callout--bridge {
    top: 24px;
    right: 22px;
  }

  .blueprint-callout--network {
    top: 108px;
    left: 22px;
  }

  .blueprint-callout--avit {
    top: 108px;
    right: 22px;
    left: auto;
  }

  .blueprint-callout--power {
    right: 22px;
    bottom: 24px;
  }

  .blueprint-callout--ops {
    left: 22px;
    bottom: 24px;
  }
}

@media (max-width: 520px) {
  .site-nav {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .brand img {
    width: 166px;
  }

  .site-nav__links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-nav__links a {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    text-align: center;
    white-space: normal;
  }

  .template-standard .article-body {
    font-size: 15px;
    line-height: 1.58;
  }

  .template-standard .article-body h2 {
    font-size: 23px;
  }

  .site-nav__cta {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding-top: 48px;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
  }

  .home-hero h1,
  .page-hero h1,
  .hero h1,
  .post-hero__text h1,
  .article-header h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .home-hero .lede,
  .lede,
  .hero__text .lede {
    font-size: 17px;
  }

  .home-hero__copy,
  .home-hero .hero__actions {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .home-banner {
    border-radius: 18px;
  }

  .home-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .template-knowledge-index .hero,
  .template-blog-index .hero {
    width: min(358px, calc(100vw - 32px));
    max-width: min(358px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
    padding: 28px 18px 22px;
    gap: 20px;
    border-radius: 20px;
  }

  .template-knowledge-index .hero::before,
  .template-blog-index .hero::before {
    opacity: 0.52;
    mask-image: none;
  }

  .template-knowledge-index .hero::after,
  .template-blog-index .hero::after {
    right: -96px;
    top: -42px;
    width: 188px;
    opacity: 0.28;
  }

  .template-knowledge-index .hero h1,
  .template-blog-index .hero h1 {
    font-size: 36px;
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
  }

  .template-knowledge-index .hero .lede,
  .template-blog-index .hero .lede {
    margin-top: 16px;
    font-size: 16px;
  }

  .template-knowledge-index .hero__actions,
  .template-blog-index .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .template-knowledge-index .hero__actions .button,
  .template-blog-index .hero__actions .button {
    width: 100%;
  }

  .template-knowledge-index .hero__card,
  .template-blog-index .hero__card {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .template-knowledge-index .hero__card::before,
  .template-blog-index .hero__card::before {
    margin: -16px -16px 14px;
  }

  .template-knowledge-index .hero__card h3,
  .template-blog-index .hero__card h3 {
    font-size: 22px;
    line-height: 1.12;
  }

  .template-knowledge-index .hero__card li,
  .template-blog-index .hero__card li {
    font-size: 14px;
    line-height: 1.45;
  }

  .home-hero h1 {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .home-hero .lede {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .home-hero .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .home-hero .button {
    width: 100%;
  }

  .role-guidance {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    padding: 22px;
    border-radius: 18px;
  }

  .role-guidance::after {
    right: -120px;
    top: -70px;
    width: 220px;
  }

  .role-guidance h2 {
    font-size: 28px;
  }

  .role-guidance p:not(.eyebrow) {
    font-size: 15px;
  }

  .role-guidance .button {
    width: 100%;
  }

  .role-guidance__matrix div {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: auto;
    padding: 13px;
  }

  .contact-direct {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    padding: 18px 0;
  }

  .contact-direct > div {
    padding: 20px;
    border-radius: 16px;
  }

  .contact-direct h2 {
    font-size: 24px;
  }

  .contact-direct p:not(.eyebrow) {
    font-size: 15px;
  }

  .contact-direct .button {
    width: 100%;
  }

  .systems-preview {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    min-width: 0;
    border-radius: 18px;
    transform: translateX(-12vw);
  }

  .systems-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .systems-preview__panel {
    min-width: 0;
  }

  .signal-line {
    max-width: 100%;
  }

  .yacht-blueprint {
    width: min(342px, calc(100vw - 32px));
    max-width: min(342px, calc(100vw - 32px));
    min-width: 0;
    border-radius: 18px;
  }

  .yacht-blueprint__header {
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 10px 16px;
    font-size: 10px;
  }

  .yacht-blueprint__canvas {
    min-height: 720px;
    padding: 10px;
  }

  .yacht-blueprint__drawing {
    inset: 258px 12px 300px;
    width: calc(100% - 24px);
    height: calc(100% - 558px);
  }

  .blueprint-callout {
    width: calc(100% - 36px);
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .blueprint-callout strong {
    font-size: 13px;
  }

  .blueprint-callout small {
    font-size: 11px;
  }

  .blueprint-callout--satcom,
  .blueprint-callout--bridge,
  .blueprint-callout--network,
  .blueprint-callout--avit,
  .blueprint-callout--power,
  .blueprint-callout--ops {
    left: 18px;
    right: auto;
    bottom: auto;
  }

  .blueprint-callout--satcom {
    top: 18px;
  }

  .blueprint-callout--bridge {
    top: 94px;
  }

  .blueprint-callout--network {
    top: 170px;
  }

  .blueprint-callout--avit {
    top: 468px;
  }

  .blueprint-callout--power {
    top: 544px;
  }

  .blueprint-callout--ops {
    top: 620px;
  }
}
