/* NDC marketing site shell — WordPress-era look (Average / Open Sans / #a70c16).
   NOT the NDC product design system (navy / Merriweather / Inter). */

:root {
  --ndc-red: #a70c16;
  --ndc-red-dark: #8d1829;
  --ndc-red-tint: #f2b8c0;
  --ndc-ink: #2b343b;
  --ndc-text: #3b4953;
  --ndc-secondary: #5e6a72;
  --ndc-muted: #9aa3a9;
  --ndc-rule: #ececec;
  --ndc-border: #e6e9eb;
  --ndc-soft: #fbfbfc;
  --ndc-header-h: 78px;
  --ndc-container: 1180px;
  --ndc-article: 1080px;
}

body {
  margin: 0;
  background: #fff;
}

.ndc-shell {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--ndc-text);
  letter-spacing: -0.015em;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.ndc-shell a {
  color: var(--ndc-red);
}

.ndc-shell a:hover {
  color: #7e0910;
}

.ndc-container {
  box-sizing: border-box;
  max-width: var(--ndc-container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.ndc-container--article {
  max-width: var(--ndc-article);
}

.ndc-nav-link,
.ndc-footer-link {
  transition: color 0.15s ease;
}

.ndc-nav-link:hover,
.ndc-footer-link:hover {
  color: var(--ndc-red) !important;
}

.ndc-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  background: var(--ndc-red);
  text-decoration: none !important;
  padding: 9px 18px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}

.ndc-btn:hover {
  background: var(--ndc-red-dark) !important;
  color: #fff !important;
}

.ndc-btn-outline {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ndc-red) !important;
  background: transparent;
  text-decoration: none !important;
  padding: 10px 24px;
  border-radius: 4px;
  border: 2px solid var(--ndc-red);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}

.ndc-btn-outline:hover {
  background: var(--ndc-red) !important;
  color: #fff !important;
}

/* Header dropdown menus (About Us / Our Solutions) */
.ndc-nav-drop {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
}

.ndc-nav-drop > .ndc-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  z-index: 60;
}

.ndc-nav-drop:hover > .ndc-nav-menu,
.ndc-nav-drop:focus-within > .ndc-nav-menu {
  display: block;
}

.ndc-nav-menu-inner {
  background: #fff;
  border: 1px solid var(--ndc-border);
  border-top: 3px solid var(--ndc-red);
  box-shadow: 0 12px 30px rgba(40, 57, 69, 0.14);
  min-width: 250px;
  padding: 6px 0;
}

.ndc-nav-menu-inner a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ndc-text) !important;
  text-decoration: none !important;
}

.ndc-nav-menu-inner a:hover {
  background: #f7f8f9;
  color: var(--ndc-red) !important;
}

.ndc-nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b4953 !important;
  text-decoration: none !important;
  padding: 4px;
  transition: color 0.15s ease;
}

.ndc-nav-search:hover {
  color: var(--ndc-red) !important;
}

/* Contact-info copy pattern — see GROK-HANDOFF.md */
.ndc-shell .copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ndc-shell .copy-row a {
  color: #5e6a72 !important;
  text-decoration: none !important;
}

.ndc-shell .copy-row a:hover {
  color: var(--ndc-red) !important;
}

.ndc-shell .copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  color: #9aa3a9;
  cursor: pointer;
  opacity: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ndc-shell .copy-row:hover .copy-btn,
.ndc-shell .copy-row:focus-within .copy-btn {
  opacity: 1;
}

.ndc-shell .copy-btn:hover {
  color: var(--ndc-red);
}

.ndc-shell .copy-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--ndc-red);
  outline-offset: 2px;
}

.ndc-shell .copied-tag {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #1d7a3e;
  line-height: 1;
  cursor: default;
}

@media (hover: none) {
  .ndc-shell .copy-btn {
    opacity: 1;
    padding: 10px;
    margin: -10px;
  }
}

.ndc-mobile-nav__search {
  display: block;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #3b4953 !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  padding: 10px;
}

.ndc-mobile-nav__search:hover {
  color: var(--ndc-red) !important;
}

/* Mobile hamburger — hidden on desktop */
.ndc-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.ndc-menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #2b343b;
  border-radius: 1px;
}

/* Full-screen mobile nav panel */
.ndc-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  flex-direction: column;
  overflow: hidden;
}

.ndc-mobile-nav.is-open {
  display: flex;
}

.ndc-mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ndc-rule);
  flex-shrink: 0;
}

.ndc-mobile-nav__logo img {
  height: 42px;
  width: auto;
  display: block;
}

.ndc-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b343b;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.ndc-mobile-nav__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.ndc-mobile-nav__section {
  border-bottom: 1px solid var(--ndc-rule);
  padding: 14px 20px 16px;
}

.ndc-mobile-nav__parent {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #2b343b !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}

.ndc-mobile-nav__parent--active {
  color: var(--ndc-red) !important;
}

.ndc-mobile-nav__child {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: #5e6a72 !important;
  text-decoration: none !important;
}

.ndc-mobile-nav__child:hover,
.ndc-mobile-nav__parent:hover {
  color: var(--ndc-red) !important;
}

.ndc-mobile-nav__footer {
  flex-shrink: 0;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--ndc-rule);
}

.ndc-mobile-nav__login {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  font-size: 15px;
}

body.ndc-mobile-nav-open {
  overflow: hidden;
}

.ndc-fld {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d3d8dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ndc-ink);
  background: #fff;
}

.ndc-fld:focus {
  outline: none;
  border-color: var(--ndc-red);
  box-shadow: 0 0 0 3px rgba(167, 12, 22, 0.12);
}

/* Header motion helpers used by inline markup */
.ndc-ab-card,
.ndc-cr-row,
.ndc-nr-card,
.ndc-card-surface {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ndc-ab-card:hover,
.ndc-cr-row:hover,
.ndc-nr-card:hover,
.ndc-card-surface:hover {
  box-shadow: 0 10px 30px rgba(40, 57, 69, 0.09);
  border-color: #d3d8dc;
}

.ndc-cr-row:hover {
  transform: translateY(-1px);
}

.ndc-cr-row:hover .ndc-cr-arrow {
  transform: translateX(4px);
  color: var(--ndc-red);
}

.ndc-cr-title-link {
  transition: color 0.15s ease;
}

.ndc-cr-title-link:hover {
  color: var(--ndc-red) !important;
}

.ndc-jp-back:hover {
  color: var(--ndc-red-tint) !important;
}

.ndc-jp-back:hover .ndc-jp-back-arrow {
  transform: translateX(-3px);
}

.ndc-jp-apply:hover {
  background: var(--ndc-red-dark) !important;
}

.ndc-nr-back:hover .ndc-nr-back-arrow {
  transform: scaleX(-1) translateX(3px);
}

@keyframes ndcCrFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ndc-cr-list > * {
  animation: ndcCrFade 0.35s ease both;
}

/* Page hero */
.ndc-page-hero {
  border-bottom: 3px solid var(--ndc-red);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ndc-page-hero__inner {
  padding: 54px 0 46px;
}

.ndc-page-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ndc-red-tint);
}

.ndc-page-hero__title {
  margin: 0 0 16px;
  font-family: "Average", Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ndc-page-hero__standfirst {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* Inline links on dark hero photo — never brand red (#a70c16); reserved for light bg */
.ndc-shell .ndc-page-hero__standfirst a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.ndc-shell .ndc-page-hero__standfirst a:hover {
  color: var(--ndc-red-tint);
  text-decoration-color: var(--ndc-red-tint);
}

.ndc-page-hero__title--detail {
  font-size: 40px;
}

.ndc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ndc-back-link__arrow {
  display: inline-block;
  transform: scaleX(-1);
  transition: transform 0.15s ease;
}

.ndc-back-link:hover .ndc-back-link__arrow {
  transform: scaleX(-1) translateX(3px);
}

.ndc-legacy-main {
  padding: 48px 0 72px;
}

.ndc-legacy-main .container,
.ndc-legacy-main .container_wrap {
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ndc-materials-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  padding: 40px 0 72px;
}

.ndc-materials-card {
  background: #fff;
  border: 1px solid var(--ndc-border);
  border-radius: 8px;
  padding: 24px;
}

.ndc-materials-card h2 {
  margin: 0 0 12px;
  font-family: "Average", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ndc-ink);
}

.ndc-materials-card h2 a {
  color: var(--ndc-ink);
  text-decoration: none;
}

.ndc-materials-card h2 a:hover {
  color: var(--ndc-red);
}

.ndc-materials-card p {
  margin: 0 0 14px;
  color: var(--ndc-secondary);
  font-size: 15px;
  line-height: 1.62;
}

.ndc-form-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--ndc-border);
  border-radius: 8px;
  background: var(--ndc-soft);
}

.ndc-form-panel label {
  display: block;
  margin: 0 0 14px;
  font-weight: 700;
}

.ndc-form-panel input,
.ndc-form-panel select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ccc;
  font: inherit;
}

@media (max-width: 900px) {
  .ndc-about-story,
  .ndc-careers-why,
  .ndc-job-grid,
  .ndc-footer-grid,
  .ndc-about-markets,
  .ndc-materials-grid {
    grid-template-columns: 1fr !important;
  }

  .ndc-about-assoc {
    grid-template-columns: 1fr 1fr !important;
  }

  .ndc-header-inner {
    padding: 0 20px !important;
  }

  .ndc-nav {
    gap: 18px !important;
  }
}

@media (max-width: 720px) {
  .ndc-nav {
    display: none !important;
  }

  .ndc-menu-toggle {
    display: flex;
  }

  .ndc-header-inner {
    padding: 0 16px !important;
  }
}

@media (max-width: 640px) {
  .ndc-about-assoc,
  .ndc-about-stats {
    grid-template-columns: 1fr !important;
  }
}

/* Sticky filter bars sit flush under the sticky site header */
.ndc-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--ndc-rule);
  position: sticky;
  top: var(--ndc-header-h);
  z-index: 40;
}

@media (max-width: 640px) {
  /* Match newsroom: filter pills scroll with the page on small screens */
  .ndc-filter-bar {
    position: static;
  }
}

/* —— Gated brochure download modal (product pages) —— */
body.ndc-brochure-modal-open {
  overflow: hidden;
}

.ndc-brochure-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.ndc-brochure-modal[hidden] {
  display: none !important;
}

.ndc-brochure-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 35, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.ndc-brochure-modal.is-open .ndc-brochure-modal__backdrop {
  opacity: 1;
}

.ndc-brochure-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #a70c16;
  box-shadow: 0 24px 60px rgba(20, 28, 35, 0.35);
  padding: 32px 36px 34px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ndc-brochure-modal.is-open .ndc-brochure-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ndc-brochure-modal__backdrop,
  .ndc-brochure-modal__dialog {
    transition: none;
  }
}

.ndc-brochure-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9aa3a9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.ndc-brochure-modal__close:focus-visible,
.ndc-brochure-modal__close-link:focus-visible,
.ndc-brochure-modal__form :focus-visible,
.ndc-brochure-modal__download:focus-visible,
[data-brochure-open]:focus-visible {
  outline: 2px solid #a70c16;
  outline-offset: 2px;
}

.ndc-brochure-modal__title {
  font-family: "Average", Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.3;
  color: #2b343b;
  margin: 0 36px 8px 0;
}

.ndc-brochure-modal__subhead {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5e6a72;
}

.ndc-brochure-modal__form label {
  display: block;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #2b343b;
}

.ndc-brochure-modal__req {
  color: #a70c16;
  margin-left: 2px;
}

.ndc-brochure-modal__form input,
.ndc-brochure-modal__form select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d3d8dc;
  border-radius: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #2b343b;
  background: #fff;
}

.ndc-brochure-modal__form input:focus,
.ndc-brochure-modal__form select:focus {
  outline: none;
  border-color: #a70c16;
  box-shadow: 0 0 0 3px rgba(167, 12, 22, 0.12);
}

.ndc-brochure-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ndc-brochure-modal__submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #a70c16;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ndc-brochure-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ndc-brochure-modal__consent {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9aa3a9;
}

.ndc-brochure-modal__status {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #5e6a72;
  min-height: 1.2em;
}

.ndc-brochure-modal__status.is-error {
  color: #a70c16;
}

.ndc-brochure-modal__field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  color: #a70c16;
}

.ndc-brochure-modal__thanks-view {
  text-align: center;
  padding: 12px 0 4px;
}

.ndc-brochure-modal__success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eaf5ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ndc-brochure-modal__thanks-title {
  font-family: "Average", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  color: #2b343b;
  margin: 0 0 10px;
}

.ndc-brochure-modal__thanks-copy {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #5e6a72;
}

.ndc-brochure-modal__download {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #a70c16;
  border-radius: 4px;
  text-decoration: none;
}

.ndc-brochure-modal__close-link {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #5e6a72;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 560px) {
  .ndc-brochure-modal__dialog {
    padding: 28px 20px 26px;
  }

  .ndc-brochure-modal__row {
    grid-template-columns: 1fr;
  }
}
