/*
 * Digital Line 2026 — technical systems editorial layer.
 * Functional selectors remain owned by the legacy bundle; this file controls
 * the visual language and can be rolled back by removing one link in baseof.
 */
:root {
  --navy: #f4f4f4;
  --navy-deep: #161616;
  --navy-light: #e8e8e8;
  --teal: #0f62fe;
  --teal-dark: #0043ce;
  --cyan: #4589ff;
  --dark-teal: #262626;
  --dark-teal-2: #393939;
  --yellow: #f1c21b;
  --text: #161616;
  --muted: #525252;
  --card-border: #c6c6c6;
  --card-hover: #e0e0e0;
  --card-bg: #fff;
  --text-dim: #525252;
  --dl-grid: minmax(20px, 1fr) minmax(0, 1312px) minmax(20px, 1fr);
}

html { background: #f4f4f4; }
body.page {
  background: #f4f4f4;
  color: #161616;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .32;
  background-image: linear-gradient(to right, rgba(22,22,22,.055) 1px, transparent 1px);
  background-size: max(80px, calc(100vw / 16)) 100%;
}

.container { max-width: 1312px; padding-inline: 32px; }
section { padding-block: clamp(64px, 8vw, 120px); }
p { color: #525252; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, h4 { color: #161616; letter-spacing: -.035em; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  background: #161616;
  border: 0;
  box-shadow: none;
}
.header-inner { max-width: none; min-height: 64px; padding: 0 16px 0 24px; }
.header-logo {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: 32px;
  border-right: 1px solid #393939;
}
.header-logo img { max-width: 180px; filter: brightness(0) invert(1); }
.header-nav { margin-left: 0; align-self: stretch; }
.header-nav a {
  display: flex;
  align-items: center;
  padding-inline: 20px;
  color: #f4f4f4;
  border-right: 1px solid #393939;
  font-size: 14px;
  font-weight: 400;
}
.header-nav a:hover, .header-nav a:focus-visible { background: #353535; color: #fff; }
.header-cta, .mobile-contact-btn {
  min-height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: 0;
  background: #0f62fe;
  color: #fff;
}
.lang-switcher { border-color: #525252; border-radius: 0; }
.lang-sw { color: #c6c6c6; }
.lang-sw.active { background: #393939; color: #fff; }

.dl-hero {
  min-height: min(760px, calc(100vh - 64px));
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, transparent 0 74%, #0f62fe 74% 100%),
    #f4f4f4;
}
.dl-hero .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  align-items: end;
}
.dl-hero p {
  grid-column: 1 / 5;
  align-self: start;
  padding-top: 8px;
  border-top: 4px solid #0f62fe;
  color: #161616;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dl-hero h1 {
  grid-column: 1 / 13;
  margin: clamp(64px, 9vw, 140px) 0 40px;
  font-size: clamp(48px, 6.35vw, 102px);
  font-weight: 300;
  line-height: .94;
  white-space: nowrap;
}
.dl-rule { display: none; }
.dl-hero h2 {
  grid-column: 7 / 11;
  margin: 0;
  padding: 32px;
  background: #262626;
  color: #f4f4f4;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  letter-spacing: -.015em;
}
.dl-hero a {
  grid-column: 11 / 13;
  align-self: stretch;
  display: flex;
  align-items: end;
  min-height: 168px;
  padding: 24px;
  background: #0f62fe;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.dl-hero a:hover { background: #0043ce; }

.dl-areas { padding: 0; background: #fff; }
.dl-areas .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  padding: 0;
}
.dl-areas article {
  min-height: 320px;
  padding: 32px;
  border-right: 1px solid #c6c6c6;
  border-bottom: 1px solid #c6c6c6;
  background: #fff;
  transition: background .18s ease;
}
.dl-areas article:hover { background: #e8e8e8; }
.dl-areas b {
  display: block;
  margin-bottom: 96px;
  color: #0f62fe;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
}
.dl-areas h2 { max-width: 12ch; font-size: clamp(27px, 3vw, 42px); font-weight: 400; }

.news-section { background: #f4f4f4; }
.section-header--editorial {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid #8d8d8d;
}
div.tag, .article-toc__eyebrow, .article-faq__eyebrow, .author-context__eyebrow {
  color: #0f62fe;
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.section-header--editorial h2 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300;
  white-space: nowrap;
}
.news-grid { gap: 1px !important; background: #c6c6c6; }
.news-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.news-card:hover { transform: none !important; background: #e8e8e8 !important; }
.news-card-thumb { border-radius: 0 !important; filter: saturate(.35) contrast(1.08); }
.news-card-body { padding: 24px !important; }
.news-card-title { font-size: 24px; font-weight: 400; }
.news-card-title a { color: #161616 !important; }
.news-card-meta {
  padding-top: 20px;
  border-top: 1px solid #c6c6c6;
  color: #525252 !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}
.news-card-more, a { color: #0f62fe; }
.btn-ghost {
  display: inline-flex;
  padding: 16px 64px 16px 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0f62fe;
  color: #fff !important;
}

.single-hero, .news-hero, .hero-author {
  background: #262626 !important;
  color: #fff;
}
.single-hero h1, .news-hero h1, .hero-author h1,
.single-hero p, .news-hero p { color: #fff !important; }
.single-layout { gap: 1px; background: #c6c6c6; }
.single-content, .single-sidebar { background: #fff; padding: clamp(24px, 4vw, 56px); }
.single-body, .igng-article-body { color: #262626; }
.single-body p, .igng-article-body p { color: #393939; font-size: 18px; }
.article-toc, .article-faq, .igng-authorbox,
.igng-expert-comment__card, .igng-service-cta__inner,
.expert-card, .sidebar-widget {
  border: 1px solid #c6c6c6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #161616 !important;
  box-shadow: none !important;
}
.article-toc__title, .article-faq h2, .expert-card__name,
.igng-expert-comment__cite-name { color: #161616 !important; }
.article-toc__item a, .article-faq__answer,
.expert-card__bio { color: #525252 !important; }
.article-faq__item { border-color: #c6c6c6 !important; }
.article-faq__item summary { color: #161616 !important; }
.expert-card:hover { transform: none; border-color: #0f62fe !important; }
.experts-grid { gap: 1px; background: #c6c6c6; }

.footer { background: #161616 !important; border: 0 !important; }
.footer, .footer p, .footer a { color: #c6c6c6; }

:focus-visible { outline: 3px solid #0f62fe; outline-offset: 3px; }

@media (max-width: 900px) {
  .header-nav, .hide-mobile, .lang-switcher { display: none; }
  .burger { display: flex; }
  .dl-hero { background: #f4f4f4; min-height: auto; }
  .dl-hero .container { grid-template-columns: 1fr; padding: 72px 20px 0; }
  .dl-hero p, .dl-hero h1, .dl-hero h2, .dl-hero a { grid-column: 1; }
  .dl-hero h1 { margin-block: 64px 32px; font-size: clamp(52px, 15vw, 86px); }
  .dl-hero h1,
  .section-header--editorial h2 {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
  .dl-hero h1 { font-size: clamp(44px, 12vw, 64px); line-height: .95; }
  .dl-hero h2 { padding: 24px; }
  .dl-hero a { min-height: 96px; }
  .dl-areas .container { grid-template-columns: 1fr; }
  .dl-areas article { min-height: 240px; }
  .dl-areas b { margin-bottom: 56px; }
  .section-header--editorial { grid-template-columns: 1fr; }
  body.page::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* v3 — shared content rail and explicit surface contrast */
:root {
  --dl-rail: 1440px;
  --dl-gutter: clamp(20px, 3vw, 40px);
}

body.page {
  min-width: 320px;
}

main,
section,
.header,
.footer {
  max-width: 100%;
  overflow-x: clip;
}

.container,
.header-inner,
.footer-inner,
.footer .container,
.single-container,
.news-container {
  width: min(100%, var(--dl-rail));
  max-width: var(--dl-rail) !important;
  margin-inline: auto !important;
  padding-inline: var(--dl-gutter) !important;
}

.header-inner {
  border-radius: 0 !important;
}

.dl-hero {
  background: #f4f4f4;
}

.dl-hero .container {
  position: relative;
  isolation: isolate;
}

.dl-hero .container::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 var(--dl-gutter) 0 auto;
  width: 25%;
  background: #0f62fe;
}

.dl-areas {
  background: #f4f4f4;
}

.dl-areas .container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--dl-rail));
  max-width: var(--dl-rail) !important;
  padding-inline: var(--dl-gutter) !important;
  background: #c6c6c6;
  gap: 1px;
}

.dl-areas article {
  min-width: 0;
  border: 0;
}

/* Light surfaces always use dark foregrounds. */
.dl-areas article,
.news-card,
.single-content,
.single-sidebar,
.article-toc,
.article-faq,
.igng-authorbox,
.igng-expert-comment__card,
.igng-service-cta__inner,
.expert-card,
.sidebar-widget {
  color: #161616 !important;
}

.dl-areas h2,
.dl-areas h3,
.dl-areas p,
.news-card h2,
.news-card h3,
.news-card p,
.news-card a,
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content p,
.single-content li,
.single-sidebar h2,
.single-sidebar h3,
.single-sidebar p,
.article-toc h2,
.article-toc h3,
.article-faq h2,
.article-faq h3,
.article-faq p,
.article-faq summary,
.igng-authorbox h2,
.igng-authorbox h3,
.igng-authorbox p,
.igng-authorbox__label,
.igng-authorbox__position,
.igng-expert-comment__card h2,
.igng-expert-comment__card h3,
.igng-expert-comment__card p,
.igng-expert-comment__card blockquote,
.igng-expert-comment__label,
.igng-expert-comment__position,
.igng-service-cta__inner h2,
.igng-service-cta__inner h3,
.igng-service-cta__inner p,
.expert-card h2,
.expert-card h3,
.expert-card p,
.sidebar-widget h2,
.sidebar-widget h3,
.sidebar-widget p {
  color: #262626 !important;
}

.igng-authorbox__name,
.igng-authorbox__link,
.igng-expert-comment__name,
.igng-expert-comment__name a,
.igng-expert-comment__profile {
  color: #0f62fe !important;
}

.igng-authorbox__position,
.igng-expert-comment__position {
  color: #6f6f6f !important;
}

.news-card .news-excerpt,
.dl-areas article p,
.single-content .article-meta,
.single-content figcaption,
.expert-card .expert-card__bio {
  color: #525252 !important;
}

/* Dark surfaces always use light foregrounds. */
.header,
.mobile-menu,
.single-hero,
.news-hero,
.hero-author,
.footer {
  color: #f4f4f4 !important;
}

.header a,
.header button,
.mobile-menu a,
.mobile-menu button,
.single-hero h1,
.single-hero h2,
.single-hero h3,
.single-hero p,
.news-hero h1,
.news-hero h2,
.news-hero h3,
.news-hero p,
.hero-author h1,
.hero-author h2,
.hero-author h3,
.hero-author p,
.footer h2,
.footer h3,
.footer h4,
.footer a {
  color: #f4f4f4 !important;
}

.footer p,
.footer li,
.footer small {
  color: #c6c6c6 !important;
}

img,
svg,
video,
iframe,
table,
pre {
  max-width: 100%;
}

.news-card-title,
.news-excerpt,
.single-content,
.single-sidebar,
.article-toc__item,
.expert-card {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .dl-hero .container::after {
    display: none;
  }

  .dl-areas .container {
    grid-template-columns: 1fr;
  }

  .container,
  .header-inner,
  .footer-inner,
  .footer .container,
  .single-container,
  .news-container,
  .dl-areas .container {
    padding-inline: 20px !important;
  }
}

/* v5 — sidebar widgets as a coherent component family */
.news-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.news-layout > .single-sidebar,
.single-layout > .single-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
}

.single-sidebar .sidebar-widget,
.single-sidebar .pillar-mention {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid #c6c6c6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #161616 !important;
  box-shadow: none !important;
}

.single-sidebar .widget-title {
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border-bottom: 2px solid #161616 !important;
  color: #161616 !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px !important;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.widget-about {
  text-align: left;
}

.widget-about .widget-logo {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 0 0 18px;
  padding: 16px;
  background: #f4f4f4;
}

.widget-about .widget-logo img {
  width: auto;
  max-width: 168px;
  height: 28px;
  filter: brightness(0);
}

.widget-about .widget-desc,
.single-sidebar .pillar-mention-desc {
  margin: 0;
  color: #525252 !important;
  font-size: 14px !important;
  line-height: 1.6;
}

.single-sidebar .sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 20px !important;
  padding: 12px 16px !important;
  border: 1px solid #0f62fe !important;
  border-radius: 0 !important;
  background: #0f62fe !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
}

.sidebar-recent {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.sidebar-recent-item {
  border-bottom: 1px solid #e0e0e0 !important;
}

.sidebar-recent-item:last-child {
  border-bottom: 0 !important;
}

.sidebar-recent-link {
  position: relative;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0 !important;
  background: transparent !important;
  text-decoration: none;
}

.sidebar-recent-rail {
  position: static !important;
  width: 3px !important;
  min-height: 100%;
  opacity: 1 !important;
}

.sidebar-recent-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sidebar-recent-cat {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px !important;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-recent-title {
  display: block !important;
  color: #262626 !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.sidebar-recent-date {
  color: #6f6f6f !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px !important;
}

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

.sidebar-tags .tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #8d8d8d;
  border-radius: 0;
  background: #f4f4f4;
  color: #393939 !important;
  font-size: 12px;
  line-height: 1.25;
}

.sidebar-tags .tag-pill span {
  margin-left: 5px;
  color: #6f6f6f !important;
}

.sidebar-categories {
  margin: 0;
  padding: 0;
}

.sidebar-categories li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #e0e0e0 !important;
}

.sidebar-categories a {
  color: #262626 !important;
  font-size: 14px !important;
}

.sidebar-categories .cat-count {
  color: #0f62fe !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.single-sidebar .pillar-mention-label {
  color: #0f62fe !important;
}

.single-sidebar .pillar-mention-title {
  color: #161616 !important;
}

.single-sidebar .pillar-mention-arrow {
  color: #0f62fe !important;
}

@media (max-width: 1100px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-layout > .single-sidebar,
  .single-layout > .single-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 680px) {
  .news-layout > .single-sidebar,
  .single-layout > .single-sidebar {
    grid-template-columns: 1fr;
  }
}

/* v4 — calibrated desktop scale and vertical rhythm */
.dl-hero {
  min-height: clamp(540px, 66vh, 680px);
  padding-block: clamp(64px, 7vh, 88px);
  align-items: center;
}

.dl-hero .container {
  align-items: center;
}

.dl-hero p {
  align-self: start;
}

.dl-hero h1 {
  margin-block: clamp(64px, 8vh, 96px) 32px;
  font-size: clamp(52px, 4.35vw, 88px);
}

.dl-hero h2 {
  grid-column: 7 / 10;
  padding: clamp(24px, 2vw, 32px);
  font-size: clamp(17px, 1.2vw, 21px);
}

.dl-hero a {
  grid-column: 10 / 13;
  min-height: 100%;
}

.hero-inner {
  min-height: 0 !important;
  padding-block: clamp(72px, 7vw, 112px) clamp(52px, 5vw, 72px) !important;
}

.hero-inner .hero-content {
  max-width: 960px;
}

.hero-inner h1 {
  margin-block: 14px 10px;
  font-size: clamp(46px, 4vw, 68px);
  line-height: 1.02;
}

.hero-inner .hero-description {
  max-width: 760px;
  font-size: clamp(16px, 1.2vw, 19px);
}

.archive-pad {
  padding-top: clamp(32px, 4vw, 52px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
}

.news-filter-bar {
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-color: #6f777a;
}

.filter-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding-inline: 16px;
  color: #a8b3b8;
  border-color: #6f777a;
  font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
  color: #78a9ff;
  border-color: #0f62fe;
  background: rgba(15, 98, 254, .1);
}

.news-layout {
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: clamp(32px, 3vw, 48px);
}

.news-layout .news-grid {
  gap: 1px !important;
}

.news-layout .sidebar-widget,
.news-layout .sidebar-cta {
  width: 100%;
}

@media (max-width: 1100px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-layout .single-sidebar,
  .news-layout aside {
    max-width: 720px;
  }
}

@media (max-width: 900px) {
  .dl-hero {
    min-height: 0;
    padding-block: 64px 0;
  }

  .dl-hero h1 {
    margin-block: 52px 28px;
  }

  .hero-inner {
    padding-block: 64px 48px !important;
  }

  .hero-inner h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .archive-pad {
    padding-top: 28px !important;
  }
}
