/*
 * Alfatindo — "Catatan Lapangan" Design System Stylesheet
 * Field Log Design System Stylesheet (production build).
 */

:root {
  --paper: #F3F0E8;
  --surface: #FBFAF6;
  --hairline: #D9D4C7;
  --hairline-strong: #B8B2A3;
  --ink: #151744;
  --ink-soft: #4A4E6B;
  --blue: #2E3192;
  --red: #ED1C24;
  --red-hover: #D4171E;

  --noc-bg: #0E1030;
  --noc-surface: #151842;
  --noc-hairline: #2C3169;
  --noc-ink: #EDEBF5;
  --noc-soft: #B9B7CE;
  --noc-link: #A3BCFF;

  /* TIA-598 12-fiber code (used strictly on 6px cable ticks and 11 area markers) */
  --f-blue: #1F5FBF;
  --f-orange: #F28C28;
  --f-green: #2E9E4F;
  --f-brown: #8B5A2B;
  --f-slate: #708090;
  --f-white: #FFFFFF;
  --f-red: #D7262E;
  --f-black: #1A1A1A;
  --f-yellow: #F2C200;
  --f-violet: #7B3FA0;
  --f-rose: #F4A6B8;
  --f-aqua: #3FC1C9;

  --font-display: 'Archivo', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Container & Desktop Left-Gutter Fiber Rail */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px;
  position: relative;
}

.wrap--tight {
  padding-top: 24px;
  padding-bottom: 24px;
}

.wrap--subpage {
  padding-top: 32px;
  padding-bottom: 36px;
}

@media (min-width: 1024px) {
  .wrap {
    padding: 64px 28px 64px 68px;
  }
  .wrap--tight {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .wrap--subpage {
    padding-top: 40px;
    padding-bottom: 44px;
  }
  .rail-section .wrap::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--hairline-strong);
  }
  .subpage-hero .wrap::before {
    top: 40px;
  }
  .site-footer .wrap::before {
    bottom: auto;
    height: 72px;
  }
  .footer-route-line {
    margin-left: -48.5px;
  }
  .section-noc .wrap::before {
    background: var(--noc-hairline);
  }
}

/* Single Motif: Nodes (ONLY round elements on the page) */
.node {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
  flex-shrink: 0;
}

.node--solid {
  background: var(--ink);
  border-color: var(--ink);
}

.node--red {
  background: var(--red);
  border-color: var(--red);
}

.rail-node {
  display: none;
}

@media (min-width: 1024px) {
  .section-head,
  .subpage-head-anchor {
    position: relative;
  }
  .rail-node {
    display: block;
    position: absolute;
    left: -44px;
    top: 38px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--blue);
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .rail-node--red {
    background: var(--red);
    border-color: var(--red);
  }
  .subpage-head-anchor .rail-node {
    top: 12px;
  }
  .section-noc .rail-node {
    background: var(--noc-bg);
    border-color: var(--noc-ink);
  }
}

/* Cable Tags (condensed Archivo wdth 75, square, 6px fiber colour tick) */
.cable-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px 3px 3px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 75;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  word-spacing: 0.14em;
  border-radius: 2px;
  vertical-align: middle;
}

.cable-tag--start {
  justify-self: start;
}

.cable-tag__tick {
  display: inline-block;
  width: 6px;
  height: 12px;
  flex-shrink: 0;
  background: var(--tick-color, var(--f-blue));
}

.cable-tag__tick--white {
  background: var(--f-white);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 68, 0.35);
}

.cable-tag__tick--blue { background: var(--f-blue); }
.cable-tag__tick--orange { background: var(--f-orange); }
.cable-tag__tick--green { background: var(--f-green); }
.cable-tag__tick--brown { background: var(--f-brown); }
.cable-tag__tick--slate { background: var(--f-slate); }
.cable-tag__tick--red { background: var(--red); }
.cable-tag__tick--rose { background: var(--f-rose); }
.cable-tag__tick--violet { background: var(--f-violet); }
.cable-tag__tick--aqua { background: var(--f-aqua); }

.section-noc .cable-tag {
  background: var(--noc-surface);
  border-color: var(--noc-hairline);
  color: var(--noc-ink);
}

/* Section Head */
.section-head {
  margin-bottom: 28px;
}

.section-head .cable-tag {
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--ink);
}

.section-lead {
  margin-top: 10px;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 16px;
}

.headline-node {
  display: inline-block;
  width: 0.21em;
  height: 0.21em;
  border-radius: 50%;
  background: var(--red);
  margin-left: 0.08em;
  vertical-align: baseline;
}

/* Buttons & Inputs (max 2px radius) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn--outline {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--surface);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 75;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  word-spacing: 0.14em;
  color: var(--ink);
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.field-input:focus {
  border-color: var(--blue);
}

/* Field Photos (warm grade + inline SVG grain + bottom-left stamp) */
.field-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1A1A1A;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
}

.field-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) sepia(0.06);
}

.field-photo--kantor {
  background: var(--surface);
}

.field-photo--kantor img {
  object-fit: contain;
}

.photo-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

.photo-stamp {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 100%;
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .nav-bar {
    padding: 14px 28px 14px 68px;
  }
}

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

.brand-link img {
  height: 24px;
  width: auto;
}

@media (min-width: 420px) {
  .brand-link img {
    height: 30px;
  }
}

@media (min-width: 768px) {
  .brand-link img {
    height: 34px;
  }
}

.nav-desktop {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta {
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 75;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 420px) {
  .nav-actions {
    gap: 8px;
  }
  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
  .nav-toggle {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.nav-mobile-drawer {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: 12px 16px;
}

.nav-mobile-drawer.is-open {
  display: grid;
  gap: 4px;
}

.nav-mobile-drawer a {
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-mobile-drawer a:last-child {
  border-bottom: 0;
}

.nav-mobile-drawer a[aria-current] {
  color: var(--blue);
}

@media (min-width: 820px) {
  .nav-toggle,
  .nav-mobile-drawer {
    display: none !important;
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .nav-desktop a {
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  .nav-desktop a:hover,
  .nav-desktop a[aria-current] {
    color: var(--blue);
    border-bottom-color: var(--blue);
  }
  .nav-cta {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* FOOTER */
.site-footer {
  background: var(--paper);
}

.footer-route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-route-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline-strong);
}

.footer-route-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.footer-brand {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.footer-meta-label {
  color: var(--ink-soft);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* SUBPAGE BREADCRUMB & HEADER */
.subpage-hero {
  border-bottom: 1px solid var(--hairline);
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb--card {
  max-width: 440px;
  margin: 0 auto 18px;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--hairline-strong);
}

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

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.subpage-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.subpage-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.subpage-meta-note {
  font-size: 12px;
  color: var(--ink-soft);
}

.subpage-h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
  color: var(--ink);
  max-width: 24ch;
}

.subpage-lead {
  margin-top: 14px;
  max-width: 66ch;
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--ink-soft);
}

/* SUBPAGE: FIELD-LOG INDEX */
.log-section {
  border-bottom: 1px solid var(--hairline);
}

.log-sheet {
  background: var(--surface);
  border: 1px solid var(--ink);
}

.log-sheet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  transition: background-color 140ms ease;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row:hover {
  background: #F7F4EC;
}

.log-row--event {
  box-shadow: inset 3px 0 0 var(--red);
}

.log-num-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.log-row--event .log-num {
  color: var(--red);
}

.log-body {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.log-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118;
  font-weight: 780;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.18;
  color: var(--ink);
}

.log-title a {
  color: inherit;
  text-decoration: none;
}

.log-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.log-row:hover .log-title a {
  color: var(--blue);
}

.log-summary {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.log-action {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.log-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.log-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-thumb--kantor img {
  object-fit: contain;
}

.log-thumb--portrait img {
  object-position: center 38%;
}

@media (min-width: 680px) {
  .log-row {
    grid-template-columns: 44px minmax(0, 1fr) 180px;
    gap: 18px 20px;
    padding: 20px 22px;
    align-items: center;
  }
  .log-num-col {
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    padding-top: 2px;
  }
  .log-thumb {
    aspect-ratio: 4 / 3;
  }
}

.log-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* SUBPAGE: ARTICLE & EVENT */
.article-section {
  border-bottom: 1px solid var(--hairline);
}

.article-col {
  width: 100%;
  max-width: 68ch;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--ink);
  background: var(--surface);
  margin-top: 24px;
  max-width: 68ch;
}

.event-meta-cell {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 3px;
}

.event-meta-cell:last-child {
  border-bottom: 0;
}

.event-meta-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.event-meta-v {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 680px) {
  .event-meta-grid {
    grid-template-columns: 0.36fr 0.64fr;
  }
  .event-meta-cell {
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }
  .event-meta-cell:last-child {
    border-right: 0;
  }
}

.article-lead-media {
  margin: 0 0 28px;
  max-width: 68ch;
}

.article-lead-media .field-photo {
  aspect-ratio: 4 / 3;
}

.article-lead-media--square {
  max-width: 400px; /* blog5.jpg is 400x400: never upscale */
}

.article-lead-media--square .field-photo {
  aspect-ratio: 1 / 1;
}

.article-lead-media--kantor .field-photo {
  aspect-ratio: 1200 / 397;
}

.article-lead-media--portrait {
  max-width: 380px; /* apresiasi-pelanggan.webp is 900x1594: keep full frame below native width */
}

.article-lead-media--portrait .field-photo {
  aspect-ratio: 900 / 1594;
}

.article-prose {
  display: grid;
  gap: 18px;
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
}

.article-prose h2 {
  font-size: clamp(21px, 2.5vw, 27px);
  margin-top: 10px;
}

.article-callout {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--blue);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.article-callout h3 {
  font-size: 17px;
}

.article-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.article-list strong {
  color: var(--ink);
}

.article-prose .field-photo--kantor {
  aspect-ratio: 1200 / 397;
  margin: 8px 0 16px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
}

.pillar-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 6px;
  align-content: start;
}

.pillar-item:last-child {
  border-bottom: 0;
}

.pillar-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118;
  font-weight: 780;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.pillar-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 600px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillar-item {
    border-right: 1px solid var(--hairline);
  }
  .pillar-item:nth-child(2n) {
    border-right: 0;
  }
  .pillar-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

.article-cta {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 68ch;
}

@media (min-width: 640px) {
  .article-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.article-cta h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.article-cta p {
  font-size: 14px;
  color: var(--ink-soft);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.related-section {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  max-width: 68ch;
}

.related-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.related-row:last-child {
  border-bottom: 0;
}

.related-row:hover {
  background: var(--surface);
}

.related-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.related-body {
  display: grid;
  gap: 5px;
}

.related-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118;
  font-weight: 780;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.related-title a {
  color: inherit;
  text-decoration: none;
}

.related-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.related-row:hover .related-title a {
  color: var(--blue);
}

/* Prev / Next Article Pager */
.article-pager {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  max-width: 68ch;
}

.pager-card {
  position: relative;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 6px;
  align-content: start;
  transition: background-color 140ms ease;
}

.pager-card:last-child {
  border-bottom: 0;
}

.pager-card--link:hover {
  background: var(--surface);
}

.pager-card--link:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.pager-card--empty {
  color: var(--ink-soft);
}

.pager-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pager-card--link .pager-kicker {
  color: var(--blue);
}

.pager-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118;
  font-weight: 780;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.pager-title a {
  color: inherit;
  text-decoration: none;
}

.pager-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.pager-card--link:hover .pager-title a {
  color: var(--blue);
}

.pager-muted {
  font-size: 14px;
  color: var(--ink-soft);
}

.related-back {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .article-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pager-card {
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }
  .pager-card:last-child {
    border-right: 0;
  }
  .pager-card--next {
    text-align: right;
  }
}

/* SUBPAGE: SECURITY ACKNOWLEDGEMENTS */
.sec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

.sec-table,
.sec-table tbody,
.sec-table tr,
.sec-table td {
  display: block;
  width: 100%;
}

.sec-table tr {
  border-bottom: 1px solid var(--hairline);
}

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

.sec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: break-word;
}

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

.sec-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 75;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sec-cell-no {
  font-weight: 700;
  color: var(--ink-soft);
}

.sec-cell-reporter {
  display: grid;
  gap: 2px;
}

.sec-contact-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
}

.sec-contact-row {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 4px;
}

.sec-contact-row:last-child {
  border-bottom: 0;
}

.sec-contact-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.sec-contact-row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

@media (min-width: 760px) {
  .sec-table {
    display: table;
    table-layout: fixed;
  }
  .sec-table thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: table-header-group;
  }
  .sec-table tbody {
    display: table-row-group;
  }
  .sec-table tr {
    display: table-row;
    border-bottom: 0;
  }
  .sec-table th,
  .sec-table td {
    display: table-cell;
    padding: 14px 14px;
    border-bottom: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    vertical-align: top;
    text-align: left;
  }
  .sec-table th:last-child,
  .sec-table td:last-child {
    border-right: 0;
  }
  .sec-table tbody tr:last-child td {
    border-bottom: 0;
  }
  .sec-table thead th {
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 75;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .sec-table td::before {
    content: none;
    display: none;
  }
  .sec-table .cable-tag {
    white-space: nowrap;
  }
  .sec-col-no { width: 48px; }
  .sec-col-reporter { width: 18%; }
  .sec-col-finding { width: auto; }
  .sec-col-status { width: 23%; }
}

@media (min-width: 680px) {
  .sec-contact-dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sec-contact-row {
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }
  .sec-contact-row:last-child {
    border-right: 0;
  }
}

/* SUBPAGE: TEAM DIRECTORY */
.tim-section {
  border-bottom: 1px solid var(--hairline);
}

.office-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  align-items: center;
}

@media (min-width: 820px) {
  .office-strip {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
  }
}

.office-strip .field-photo {
  aspect-ratio: 1200 / 397;
}

.office-facts {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.office-facts-label {
  font-size: 12px;
  color: var(--ink-soft);
}

.dir-filter-bar {
  display: grid;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 28px;
}

.dir-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.dir-empty {
  display: none;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  font-size: 14px;
  color: var(--ink);
}

.dir-empty.is-visible {
  display: block;
}

.team-groups {
  display: grid;
  gap: 32px;
}

.team-group.is-hidden {
  display: none;
}

.team-group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.team-group-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.crew-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  transition: border-color 140ms ease;
}

.crew-tile.is-hidden {
  display: none;
}

.crew-tile--linked:hover {
  border-color: var(--blue);
}

.crew-portrait {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.crew-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.crew-info {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.crew-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}

.crew-role {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.crew-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
}

.crew-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crew-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.crew-tile--linked:hover .crew-link {
  text-decoration: underline;
}

.crew-nolink {
  color: var(--ink-soft);
}

/* SUBPAGE: DIGITAL BUSINESS CARD */
.card-section {
  border-bottom: 1px solid var(--hairline);
}

.card-stage {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.id-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.id-card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.id-card-body {
  padding: 18px 16px;
  display: grid;
  gap: 18px;
}

@media (min-width: 480px) {
  .id-card-body {
    padding: 22px 20px;
  }
}

.id-card-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.id-card-photo {
  width: 96px;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}

.id-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.id-card-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.id-card-name {
  font-size: clamp(22px, 5vw, 27px);
  line-height: 1.08;
  color: var(--ink);
}

.id-card-role {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.id-card-org {
  font-size: 13px;
  color: var(--ink-soft);
}

.id-actions {
  display: grid;
  gap: 10px;
}

.id-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.id-actions .btn {
  width: 100%;
  padding: 12px 12px;
  font-size: 14px;
}

.id-status-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  min-height: 1.3em;
}

.id-dl {
  margin: 0;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.id-dl-row {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}

.id-dl-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.id-dl-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.id-dl-row dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.id-qr-panel {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
}

@media (max-width: 379px) {
  .id-qr-panel {
    grid-template-columns: 1fr;
  }
}

.id-qr-box {
  width: 144px;
  height: 144px;
  padding: 0; /* quiet zone comes from the QR's own 4-module padding */
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.id-qr-caption {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.id-qr-caption strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.id-back-links {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .log-row,
  .crew-tile,
  .pager-card {
    transition: none;
  }
}
