/* Global shell: skip link, sticky header/navigation, main frame, and footer. */
.ne-skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border: 2px solid var(--ne-color-ink);
  border-radius: var(--ne-radius-sm);
  background: var(--ne-color-canvas);
  color: var(--ne-color-text);
  font-weight: var(--ne-weight-strong);
}

/* A skip link must appear the instant it receives focus. Themes that apply a
   blanket link transition (Astra ships `transition: .2s linear`) animate this
   transform, so the link slides in over 200ms and is still off-screen at the
   moment focus lands — unusable for a keyboard user who tabs and looks. Pin
   the transition off and force the transform: both !important declarations are
   scoped to the focused state and deliberate, because an accessibility
   affordance has to win over whatever theme is active. */
.ne-skip {
  transition: none !important;
}

.ne-skip:focus,
.ne-skip:focus-visible {
  transform: translateY(0) !important;
}

.ne-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 7, 11, .97);
  color: var(--ne-color-on-dark);
  backdrop-filter: blur(12px);
}

.admin-bar .ne-header { top: 32px; }

.ne-header__inner {
  position: relative;
  display: flex;
  min-height: 4.875rem;
  align-items: center;
  gap: 1.5rem;
}

.ne-brand {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  color: inherit;
  font: var(--ne-weight-strong) 1.4rem/1 var(--ne-font-display);
  letter-spacing: -.045em;
  text-decoration: none;
}

.ne-brand__asset {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 1.95rem;
  overflow: hidden;
}

.netlinke-design-system .ne-brand__asset img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  filter: contrast(1.15);
  mix-blend-mode: screen;
}

.netlinke-design-system .ne-header .ne-brand,
.netlinke-design-system .ne-footer .ne-brand { color: var(--ne-color-canvas); }

.netlinke-design-system .ne-footer .ne-brand { opacity: 1; }

.ne-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.45vw, 1.35rem);
  margin-left: auto;
  white-space: nowrap;
}

.ne-nav a,
.ne-footer a {
  color: inherit;
  font-size: .9rem;
  text-decoration: none;
  opacity: .72;
  transition: opacity var(--ne-motion-fast) var(--ne-ease-standard),
              color var(--ne-motion-fast) var(--ne-ease-standard);
}

.ne-nav a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
}

.ne-nav a:hover,
.ne-nav a:focus-visible,
.ne-footer a:hover,
.ne-footer a:focus-visible {
  color: var(--ne-color-canvas);
  opacity: 1;
}

.ne-header__cta {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  font-size: .84rem;
}

/* Present only inside the collapsed navigation panel. Needs to outrank the
   `.ne-nav a` layout rule, hence the element in the selector. */
.ne-nav a.ne-nav__cta { display: none; }

.ne-menu {
  display: none;
  min-width: 3.5rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--ne-radius-sm);
  background: transparent;
  color: var(--ne-color-canvas);
  font: var(--ne-weight-strong) .9375rem/1 var(--ne-font-body);
  cursor: pointer;
  transition: background-color var(--ne-motion-fast) var(--ne-ease-standard),
              border-color var(--ne-motion-fast) var(--ne-ease-standard);
}

/* Hello Elementor's reset paints `button:hover, button:focus` with its pink
   default at greater specificity than `.ne-menu`. */
.netlinke-design-system button:hover,
.netlinke-design-system button:focus { background-color: transparent; }

.netlinke-design-system .ne-menu:hover,
.netlinke-design-system .ne-menu:focus,
.netlinke-design-system .ne-menu:focus-visible,
.netlinke-design-system .ne-menu[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, .48);
  background-color: rgba(255, 255, 255, .08);
  color: var(--ne-color-canvas);
}

.ne-main {
  overflow: clip;
  background: var(--ne-color-canvas);
}

.ne-main section[id] { scroll-margin-top: 5.5rem; }

.ne-footer { padding-block: 4rem 2rem; }

.ne-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
}

.ne-footer__grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}

.ne-footer__grid a:not(.ne-brand) {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
}

.ne-footer__grid strong { font-size: .875rem; }
.ne-footer__brand p {
  max-width: 31ch;
  margin: .4rem 0 0;
  color: var(--ne-color-subtle-on-dark);
}

.ne-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--ne-color-subtle-on-dark);
  font-size: .8rem;
}

/* Reusable section composition. */
.ne-section-intro {
  max-width: 51rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.75rem);
}

.ne-section-intro .ne-lead { margin-top: 1.25rem; }

.ne-split-7-5 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 6.75rem);
  align-items: start;
}

.ne-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

/* Reusable authority registers and index rows. */
.ne-index { border-top: var(--ne-rule-marker) solid var(--ne-color-ink); }

.ne-index > div {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(10rem, 3fr) minmax(9rem, 2fr);
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ne-color-line);
}

.ne-index strong {
  max-width: 35ch;
  font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem);
  line-height: 1.35;
}

.ne-index span {
  color: var(--ne-color-text);
  font: .78rem/1.4 var(--ne-font-utility);
}

.ne-index p {
  margin: 0;
  color: var(--ne-color-muted);
  font-size: .8rem;
}

.ne-index-link { margin-top: 2rem; }

.ne-proof-register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-left: 2rem;
  border-left: var(--ne-rule-emphasis) solid var(--ne-color-accent);
}

.ne-proof-register > div { min-height: 7rem; }

.ne-proof-register span,
.ne-proof-register strong { display: block; }

.ne-proof-register span {
  margin-bottom: .75rem;
  color: var(--ne-color-muted);
  font: .68rem/1.2 var(--ne-font-utility);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ne-proof-register strong { font-size: .96rem; line-height: 1.48; }

/* Reusable editorial lead-story and supporting-story composition. */
.ne-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.ne-feature-story {
  position: relative;
  min-height: 25rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-top: var(--ne-rule-marker) solid var(--ne-color-accent);
  background: var(--ne-color-ink);
  color: var(--ne-color-on-dark);
}

.ne-feature-story .ne-meta { color: var(--ne-color-subtle-on-dark); }

.ne-feature-story h3 {
  max-width: 14ch;
  margin: clamp(2.5rem, 5.5vw, 4.5rem) 0 0;
  color: var(--ne-color-on-dark);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: var(--ne-weight-strong);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ne-feature-story > p:last-child {
  max-width: 52ch;
  margin: 1.75rem 0 0;
  color: var(--ne-color-muted-on-dark);
  font-size: var(--ne-text-body);
  line-height: var(--ne-leading-body);
}

.ne-story-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: 1px solid var(--ne-color-line);
}

.ne-story-list > div {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ne-color-line);
}

.ne-story-list span,
.ne-story-list strong { display: block; }

.ne-story-list span {
  margin-bottom: .65rem;
  color: var(--ne-color-muted);
  font: .68rem/1.2 var(--ne-font-utility);
  text-transform: uppercase;
}

.ne-story-list strong { font-size: 1.02rem; line-height: 1.45; }

.ne-story-list__link { margin-top: 1.75rem; }

@media (max-width: 1100px) {
  .ne-header__cta { display: none; }
  .ne-menu { display: inline-flex; margin-left: auto; }

  .ne-nav a.ne-nav__cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: .75rem;
    padding: .8rem 1rem;
    border-bottom: 0;
    color: var(--ne-color-canvas);
    font-size: .9rem;
    opacity: 1;
  }

  .ne-nav a.ne-nav__cta:hover,
  .ne-nav a.ne-nav__cta:focus-visible {
    color: var(--ne-color-canvas);
    opacity: 1;
  }

  .ne-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 0;
    background: var(--ne-color-ink);
  }

  .ne-nav.is-open { display: flex; }

  .ne-nav a {
    justify-content: flex-start;
    min-height: 2.75rem;
    padding: .8rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .ne-nav a:last-child { border-bottom: 0; }
  .ne-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ne-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .admin-bar .ne-header { top: 46px; }

  .ne-split-7-5,
  .ne-editorial-grid { grid-template-columns: minmax(0, 1fr); }

  .ne-split-7-5 > *,
  .ne-editorial-grid > * { min-width: 0; }

  .ne-proof-register { margin-top: 1rem; }
  .ne-feature-story { min-height: 27rem; }

  .ne-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .ne-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .ne-header__inner { min-height: 4.25rem; }

  .ne-actions { align-items: flex-start; }
  .ne-actions .ne-button { width: 100%; }

  .ne-index > div {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding-block: 1.5rem;
  }

  .ne-proof-register {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 1.25rem;
  }

  .ne-proof-register > div { min-height: auto; }

  .ne-feature-story { min-height: 30rem; padding: 1.75rem; }
  .ne-feature-story h3 { margin-top: 5rem; font-size: 2.25rem; }

  .ne-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .ne-footer__brand { grid-column: 1 / -1; }
  .ne-footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .ne-header { backdrop-filter: none; }
  .ne-nav a,
  .ne-footer a { transition: none; }
}
