/* AI2SEE: off-white, forest green and real project imagery.
   Shared overrides load after the recovered page styles. */
:root {
  color-scheme: light;
  --paper: #f4f6f2;
  --paper-2: #e9eee6;
  --bg: #f4f6f2;
  --white: #fbfcf9;
  --ink: #172c25;
  --ink-soft: #42564a;
  --midnight: #172c25;
  --navy: #172c25;
  --panel-dark: #172c25;
  --surface-inverse: #172c25;
  --muted: #4a5b51;
  --muted-2: #64736a;
  --gray-600: #4a5b51;
  --surface: #fbfcf9;
  --surface-2: #e9eee6;
  --pale: #e5ede4;
  --line: #d5ddd2;
  --line-soft: #e3e9df;
  --rule: #d5ddd2;
  --rule-soft: #e3e9df;
  --gray-200: #d5ddd2;
  --brand-accent: #176044;
  --brand-accent-hover: #104b35;
  --brand-accent-text: #176044;
  --brand-accent-soft: #e5ede4;
  --accent: #176044;
  --accent-text: #176044;
  --accent-hover: #104b35;
  --accent-soft: #e5ede4;
  --signal: #176044;
  --signal-dark: #104b35;
  --c-warm: #e9eee6;
  --c-lime: #176044;
  --c-lime-hi: #104b35;
  --c-plum: #172c25;
  --c-sun: #176044;
  --c-teal: #176044;
  --mist: #e9eee6;
  --f-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --r-xl: 18px;
  --r-md: 12px;
  --gut: clamp(20px, 5.6vw, 80px);
  --pad: clamp(24px, 3.4vw, 48px);
}
html { background: var(--paper); scroll-padding-top: 100px; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-sans); }
body :is(input, textarea, select, button) { font-family: var(--f-sans); }
::selection { background: #c5dac8; color: var(--ink); }
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[data-tone], [data-industries], .sector-filters [data-industry] {
  --bg: var(--c-warm);
  --tone: var(--accent);
  --deep: var(--ink);
}

/* A quiet, continuous navigation bar keeps the work in the foreground. */
html nav[aria-label="Primary"],
html nav[aria-label="Primary"].is-solid,
html nav[aria-label="Primary"].story-nav,
html nav[aria-label="Primary"].mega-open {
  inset-inline: 0;
  border-radius: 0;
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
nav[aria-label="Primary"] .nav-inner {
  max-width: 1600px;
  min-height: 76px;
  height: 76px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
  gap: clamp(16px, 1.8vw, 28px);
  justify-content: flex-start;
}
nav[aria-label="Primary"] .logo { color: var(--ink); font-size: 22px; font-weight: 700; flex-shrink: 0; }
nav[aria-label="Primary"] .logo .num-2 { color: inherit; }
nav[aria-label="Primary"] .logo-mark { width: 25px; height: 25px; }
nav[aria-label="Primary"] .nav-links { gap: 4px; flex: 1; min-width: 0; justify-content: flex-start; }
nav[aria-label="Primary"] .nav-links > li { flex-shrink: 0; }
nav[aria-label="Primary"] .nav-links > li:has(> .nav-cta) { margin-left: auto; }
nav[aria-label="Primary"] .nav-links a,
nav[aria-label="Primary"] .nav-mega-trigger {
  padding-inline: 9px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  white-space: nowrap;
}
nav[aria-label="Primary"] .nav-links a:not(.nav-cta):hover,
nav[aria-label="Primary"] .nav-mega-trigger:hover,
nav[aria-label="Primary"] .nav-links a[aria-current="page"] {
  color: var(--accent);
}
nav[aria-label="Primary"] .nav-links a.nav-cta {
  min-height: 44px;
  margin-left: 0;
  padding-inline: 18px;
  background: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fbfcf9 !important;
  font-weight: 600;
}
nav[aria-label="Primary"] .nav-links a.nav-cta:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover); }
nav[aria-label="Primary"] .industry-dropdown .nav-mega-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf9;
  box-shadow: 0 18px 36px -26px #172c2540;
}
nav[aria-label="Primary"] .industry-dropdown-links a { border-radius: 5px; }
nav[aria-label="Primary"] .industry-dropdown-links a:is(:hover, :focus-visible, [aria-current]) {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-nav-toggle { border-radius: 6px; border-color: var(--line); color: var(--ink); }

/* Shared controls retain their existing behavior and form semantics. */
.btn { border-radius: 8px; font-family: var(--f-sans); font-weight: 600; }
.btn-primary, .btn-lime, .sector-detail .sector-hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbfcf9;
}
.btn-primary:hover, .btn-lime:hover, .sector-detail .sector-hero .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fbfcf9;
}
.btn-ghost, .btn-outline, .btn-ghost-light {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover, .btn-outline:hover, .btn-ghost-light:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.text-link { color: var(--accent); }
.sector-filters button { font-family: var(--f-sans); font-weight: 500; }
.sector-filters button[aria-pressed="true"],
.da-filter-buttons button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbfcf9;
}
.da-filter-buttons button, .da-subject-label select, .da-close { background: #fbfcf9; }
.da-format, .da-start { border-radius: 12px; }
.da-format figcaption { background: var(--surface); }
.da-dialog { background: var(--paper); }
.contact-form :is(input, textarea),
.careers-form :is(input, textarea, select) {
  background: #fbfcf9;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 6px;
}

/* Existing industry, project, demo and editorial pages use the same family. */
.sector-detail .sector-hero { border-radius: 14px; }
.sector-detail .sector-hero .section-eyebrow { box-shadow: none; border-radius: 5px; }
.sector-detail .application-group { background: var(--c-warm); }
.sector-detail details { border-radius: 8px; background: var(--surface); }
.sector-directory .sector-link { border-radius: 10px; background: var(--surface); box-shadow: none; }
.sector-directory .sector-link:hover { box-shadow: none; transform: translateY(-2px); }
.sector-related a:hover { background: var(--accent-soft); }
.demo-card { background: var(--surface); border-radius: 12px; }
.demo-card .demo-card-meta { color: var(--accent); }
.anpr-demo-workspace, .demo-detail-page .anpr-demo-panel { background: var(--surface); }
.anpr-demo-stage, .demo-detail-page .anpr-demo-stage { background: var(--c-warm); }
.anpr-demo-drop, .demo-detail-page .anpr-demo-drop { background: var(--paper); border-color: #9aaa9b; }
.anpr-demo-drop.is-dragging, .demo-detail-page .anpr-demo-drop.is-dragging { background: var(--accent-soft); border-color: var(--accent); }
.anpr-demo-privacy { color: var(--muted); }
.page-label, .section-eyebrow, .demos-kicker { color: var(--accent); }

/* A useful colophon, with every original destination kept accessible. */
footer {
  --end: 0px;
  margin: clamp(72px, 8vw, 120px) var(--gut) 0;
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
/* The website footer retains its dark forest surface and pale type. */
footer:has(.footer-grid) {
  --footer-foreground: #d5dfd3;
  --footer-muted: #c5d0c2;
  color: var(--footer-muted);
}
footer::before, footer::after { content: none; }
footer .container { padding-inline: 0; }
footer .footer-brand .logo,
footer .footer-brand .logo > span { color: var(--footer-foreground, var(--ink)); }
footer .footer-brand .logo > span > span { color: inherit; }
footer .footer-brand p { color: var(--footer-muted, var(--muted)); }
footer .footer-grid { gap: 32px; }
footer h3, footer h4 { color: var(--footer-foreground, var(--ink)); font-family: var(--f-sans); }
footer a { color: var(--footer-muted, var(--ink-soft)); }
footer a:hover { color: var(--footer-foreground, var(--accent)); }
footer .footer-wordmark { color: #d5dfd3; font-family: var(--f-display); }
/* Keep the nested numeral in the wordmark's foreground, not the dark footer ink. */
footer .footer-wordmark span { color: inherit; }
footer .footer-bottom { color: var(--footer-muted, var(--muted)); border-top-color: var(--line); }
footer .social-btn { background: var(--surface); color: var(--accent); border-radius: 6px; }

@media (min-width: 901px) and (max-width: 1199px) {
  nav[aria-label="Primary"] .nav-inner { padding-inline: 20px; gap: 14px; }
  nav[aria-label="Primary"] .logo { font-size: 20px; gap: 8px; }
  nav[aria-label="Primary"] .logo-mark { width: 22px; height: 22px; }
  nav[aria-label="Primary"] .nav-links { gap: 0; }
  nav[aria-label="Primary"] .nav-links a,
  nav[aria-label="Primary"] .nav-mega-trigger { font-size: 13px; padding-inline: 5px; }
  nav[aria-label="Primary"] .nav-links a.nav-cta { padding-inline: 13px; }
  nav[aria-label="Primary"] .nav-links > li:has(> .nav-cta) { margin-left: auto; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  nav[aria-label="Primary"] .nav-inner { height: 68px; min-height: 68px; padding-inline: 20px; justify-content: space-between; }
  nav[aria-label="Primary"] .nav-links {
    padding: 96px 24px 32px;
    background: var(--paper);
    justify-content: flex-start;
    gap: 0;
  }
  nav[aria-label="Primary"] .nav-links a,
  nav[aria-label="Primary"] .nav-mega-trigger {
    padding: 12px 0;
    min-height: 58px;
    font-size: 26px;
    white-space: normal;
  }
  nav[aria-label="Primary"] .nav-links > li:has(> .nav-cta) { margin-left: 0; }
  nav[aria-label="Primary"] .nav-links a.nav-cta { margin-top: 14px; padding: 14px 18px; border-radius: 8px; background: var(--accent) !important; color: #fbfcf9 !important; }
  nav[aria-label="Primary"] .nav-links a.nav-cta::before { color: #fbfcf9; }
  nav[aria-label="Primary"] .industry-dropdown .nav-mega-panel { background: transparent; border: 0; box-shadow: none; }
  nav[aria-label="Primary"] .nav-links .industry-dropdown-links a { padding: 11px 12px; min-height: 44px; font-size: 17px !important; }
  footer { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .sector-directory .sector-link:hover { transform: none; }
}

/* The two right-hand actions share one group, separate from the section links. */
nav[aria-label="Primary"] .nav-links a.nav-live-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}
nav[aria-label="Primary"] .nav-links a.nav-live-demo:hover {
  background: var(--accent-soft);
}
nav[aria-label="Primary"] .nav-menu-caption {
  display: block;
  padding: 14px 10px 5px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font: 600 12px/1.4 var(--f-sans);
}
@media (min-width: 901px) {
  nav[aria-label="Primary"] .nav-links > li.nav-live-item { margin-left: auto; margin-right: 8px; }
  nav[aria-label="Primary"] .nav-links > li:has(> .nav-cta) { margin-left: 0; }
}
@media (max-width: 900px) {
  nav[aria-label="Primary"] .nav-links > li.nav-live-item { margin-left: 0; }
  nav[aria-label="Primary"] .nav-links a.nav-live-demo {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 12px 18px;
  }
}

/* The footer surface spans the viewport; its content keeps a safe page gutter. */
footer:has(.footer-grid) {
  margin: clamp(72px, 8vw, 112px) 0 0;
  padding: clamp(44px, 5vw, 64px) max(24px, var(--gut)) 28px;
  border-top: 0;
  background: #172c25;
  color: #c5d0c2;
}
footer:has(.footer-grid) > :is(.container, .footer-inner) {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  margin-inline: auto;
  padding-inline: 0;
}
footer:has(.footer-grid) .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
footer:has(.footer-grid) :is(.footer-brand, .footer-col) { min-width: 0; }
footer:has(.footer-grid) .footer-brand p { max-width: 38ch; }
footer:has(.footer-grid) .footer-col a { overflow-wrap: anywhere; }
footer:has(.footer-grid) .footer-wordmark {
  max-width: 100%;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
footer:has(.footer-grid) .footer-bottom { gap: 20px; }
footer:has(.footer-grid) .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
footer:has(.footer-grid) a:focus-visible { outline: 2px solid #d5dfd3; outline-offset: 4px; }
@media (max-width: 900px) {
  footer:has(.footer-grid) .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer:has(.footer-grid) .footer-brand { grid-column: 1 / -1; }
  footer:has(.footer-grid) .social-btn { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  footer:has(.footer-grid) .footer-col:last-child { grid-column: 1 / -1; }
  footer:has(.footer-grid) .footer-wordmark { margin-block: 36px 24px; }
  footer:has(.footer-grid) .footer-bottom { flex-direction: column; align-items: flex-start; }
}
