/* Applied Ops-Coded theme for the public pages.
   Load after main.css on pages whose body carries site-plain and ops-coded.
   Labs pages do not load this file. Color values copy the Applied design
   system tokens. The system's --f spacing names mean different sizes from
   main.css, so spacing here stays on main.css's scale. Selectors start with
   body.ops-coded where a page's own style block would otherwise win. */

body.ops-coded {
  --color-nav:            #0c0c0c;  /* Oil Black */
  --color-hero:           #141614;
  --color-footer:         #0c0c0c;
  --color-footer-border:  #252925;
  --color-primary:        #dde8d9;  /* Links, used directly by page styles */
  --color-primary-dark:   #d7d3cd;
  --color-accent:         #89817a;  /* Hurricane */
  --color-surface:        #0c0c0c;
  --color-surface-alt:    #141614;
  --color-text-primary:   #dde8d9;
  --color-text-secondary: #7a8a76;
  --color-text-muted:     #a8a59f;
  --color-text-muted-on-light: #a8a59f;
  --color-accent-text:    #a8a59f;
  --color-text-nav:       #d7d3cd;  /* Gatekeeper White */
  --color-border-accent:  #89817a;
  --color-border-subtle:  #252925;
  --font-sans: 'B612', system-ui, sans-serif;
  --font-mono: 'B612', system-ui, sans-serif;  /* Site labels are not data values */
  --font-values: 'B612 Mono', ui-monospace, 'Courier New', monospace;
  --heading: #d7d3cd;
  color-scheme: dark;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
}

.ops-coded h1,
.ops-coded h2,
.ops-coded h3,
.ops-coded [class$="-doc-type"],
.ops-coded .benefits-title { color: var(--heading); font-weight: 700; }
body.ops-coded [class$="-doc-type"],
.ops-coded h1.page-title { font-size: 34px; font-weight: 700; }

.ops-coded a:hover { color: var(--heading); }
.ops-coded em { color: inherit; }

/* Navigation */
.ops-coded .nav-links-wrap { justify-content: flex-end; }
.ops-coded .nav-links a,
.ops-coded .nav-menu a { font-size: 13px; font-weight: 400; }
.ops-coded .nav-company { font-size: 14px; font-weight: 700; }
.ops-coded .nav-menu summary {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--color-text-nav);
  border-color: var(--color-footer-border);
}
.ops-coded .nav-menu[open] summary { background: var(--color-surface-alt); }
.ops-coded .nav-menu-list a { text-transform: none; letter-spacing: normal; }
.ops-coded .subnav-banner { display: none; }

/* Home page hero. The scrim is a solid layer because gradients are prohibited. */
.ops-coded section.hero {
  position: relative;
  height: auto;
  min-height: 233px;
  align-items: flex-end;
  padding: var(--f4) max(var(--f3), calc((100% - 860px) / 2));
  background: #0c0c0c url('../img/hero-earth.jpg') center / cover no-repeat;
}
.ops-coded section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0c0c0c;
  opacity: 0.55;
}
.ops-coded .hero-inner { position: relative; max-width: none; padding: 0; }
.ops-coded .hero h1 { font-size: 34px; margin-bottom: var(--f1); }
.ops-coded .hero-accent { font-size: 21px; max-width: none; color: var(--heading); font-style: normal; margin-bottom: var(--f1); }
.ops-coded .hero-trust { font-size: 13px; color: var(--color-text-muted); }

/* Interior page title band */
.ops-coded [class$="-band"] { background: var(--color-hero); }
.ops-coded .page-band { padding: var(--f3) max(var(--f3), calc((100% - 860px) / 2)) var(--f2); }
.ops-coded:not(.page-home) .page-content { padding-top: var(--f3); }

/* Sections: 3px heavy rule, heading left and content right on the 21:34 split */
.ops-coded .split-section,
.ops-coded .benefits-inner,
.ops-coded .products-section {
  display: grid;
  grid-template-columns: 21fr 34fr;
  column-gap: var(--f3);
  row-gap: var(--f2);
  align-items: start;
  border-top: 3px solid var(--color-accent);
  padding-top: var(--f2);
  margin: 0 0 var(--f4);
}
.ops-coded .split-section > *,
.ops-coded .benefits-inner > *,
.ops-coded .products-section > * { grid-column: 2; margin: 0; }
.ops-coded .split-section > h2,
.ops-coded .benefits-inner > h2,
.ops-coded .products-section > h2 {
  grid-column: 1;
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.ops-coded .benefits-inner { margin-inline: auto; }
.ops-coded .benefits-section { border-top: 0; padding-top: var(--f5); padding-bottom: 0; }
.ops-coded .legal-content > .split-section:first-of-type { margin-top: var(--f4); }
.ops-coded .project-buttons { align-items: baseline; }
.ops-coded .project-buttons a,
.ops-coded main p > a:only-child { display: inline-block; padding-block: 3px; }

@media (max-width: 700px) {
  .ops-coded .split-section,
  .ops-coded .benefits-inner,
  .ops-coded .products-section { grid-template-columns: 1fr; }
  .ops-coded .split-section > *,
  .ops-coded .benefits-inner > *,
  .ops-coded .products-section > * { grid-column: 1; }
}

/* Body text, held to a short measure because B612 is wide */
.ops-coded p,
.ops-coded [class$="-card"] p,
.ops-coded [class$="-lede"],
.ops-coded .jann-subscribe-block p { color: var(--color-text-primary); }
.ops-coded main p { max-width: 610px; }
.ops-coded .legal-content > p { margin-bottom: var(--f2); }
body.ops-coded .abt-lead {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  border-bottom: 0;
  padding: 0;
  margin: 0 0 var(--f4);
}
body.ops-coded .jann-lede { border-bottom: 0; padding: 0; margin: 0 0 var(--f4); }
body.ops-coded .jann-lede p { font-size: 14px; font-weight: 400; color: var(--color-text-primary); }
body.ops-coded .faq-answer p { color: var(--color-text-primary); }

/* Capability lists share one color on every page */
.ops-coded .capability-list li,
body.ops-coded .abt-card li { color: var(--color-text-secondary); }
.ops-coded .capability-list li { max-width: 610px; }
.ops-coded .capability-list strong,
body.ops-coded .abt-card li strong { color: var(--color-text-primary); }
.ops-coded [class$="-card"] h3,
.ops-coded .faq-question { font-size: 14px; color: var(--heading); }

/* Key facts and other data values */
body.ops-coded .abt-facts-row { grid-template-columns: 144px 1fr; gap: var(--f2); padding: 5px 0; }
body.ops-coded .abt-facts dt { font-size: 13px; font-weight: 700; }
body.ops-coded .abt-facts dd,
body.ops-coded .abt-facts dd a,
.ops-coded .page-updated,
.ops-coded .footer-plain-inner > p:nth-of-type(2) { font-family: var(--font-values); }
.ops-coded .abt-facts dd { font-size: 13px; }
.ops-coded .page-updated { font-size: 13px; color: var(--color-text-muted); }

/* FAQ rows at data density */
body.ops-coded .faq-item,
body.ops-coded .faq-item[open] {
  background: transparent;
  box-shadow: none;
  margin: 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
body.ops-coded .faq-question { padding-top: var(--f2); padding-bottom: var(--f2); }
body.ops-coded .faq-answer { padding-top: 0; padding-bottom: var(--f2); }

/* Small type on the 13px scale step, in the system's two weights */
.ops-coded .crumb,
.ops-coded .crumb a { font-size: 13px; font-weight: 400; }
.ops-coded .site-notice p { font-size: 13px; }
.ops-coded .site-notice { border: 1px solid var(--color-border-subtle); background: var(--color-surface-alt); }
body.ops-coded .jann-embed-note { font-size: 13px; letter-spacing: normal; text-transform: none; }
.ops-coded .embed-container { border-top: 1px solid var(--color-border-subtle); }
.ops-coded .embed-loading { text-transform: none; letter-spacing: normal; }

/* Footer */
.ops-coded footer.footer-plain { font-family: var(--font-sans); padding-inline: max(var(--f3), calc((100% - 860px) / 2)); }
.ops-coded .footer-plain-inner { max-width: none; }
.ops-coded .footer-plain p,
.ops-coded .footer-plain-links,
.ops-coded .footer-plain-notice p { font-size: 13px; color: var(--color-text-muted); }
.ops-coded footer a { color: var(--color-text-nav); }
.ops-coded .footer-plain a { display: inline-block; padding-block: 3px; }
.ops-coded .footer-plain-notice summary { font-size: 13px; color: var(--color-text-nav); cursor: pointer; padding-block: 3px; }
.ops-coded .footer-plain-notice[open] summary { margin-bottom: var(--f1); }

/* Cookie banner */
.ops-coded .cookie-banner { font-family: var(--font-sans); background: #0c0c0c; border-top: 1px solid #252925; }
.ops-coded .cookie-banner a { color: var(--color-text-nav); }
.ops-coded .cookie-banner-text,
.ops-coded .cookie-banner-text a,
.ops-coded .cookie-banner-btn { font-size: 13px; font-family: var(--font-sans); }
.ops-coded .cookie-banner-btn { border-radius: 4px; }
/* Keeps the footer's last control clear of the fixed banner. */
body.ops-coded:has(.cookie-banner:not([hidden])) { padding-bottom: var(--f6); }
@media (max-width: 700px) {
  body.ops-coded:has(.cookie-banner:not([hidden])) { padding-bottom: var(--f7); }
}
