/*
 * AUSTERAN — quiet dark architectural theme.
 * Load after the existing page styles. Layout and disclosure behaviour stay in
 * the original components; these overrides replace the cream/red/lime palette.
 */
:root {
  color-scheme: dark;
  --theme-bg: #080d12;
  --theme-panel: #101a23;
  --theme-raised: #16232e;
  --theme-border: #35434e;
  --theme-text: #f4f0e7;
  --theme-muted: #bac5cb;
  --theme-soft: #96a6b0;
  --theme-gold: #d2b274;
  --theme-gold-hover: #e5c992;
  --theme-on-gold: #10161c;
  --ink: var(--theme-text);
  --deep: var(--theme-panel);
  --deep-2: var(--theme-raised);
  --paper: var(--theme-bg);
  --line: var(--theme-border);
  --muted: var(--theme-muted);
  --gold: var(--theme-gold);
  --gold-light: var(--theme-gold-hover);
  --signal: var(--theme-gold);
  --signal-light: var(--theme-gold-hover);
  --action: var(--theme-gold);
  --x-ink: var(--theme-text);
  --x-paper: var(--theme-bg);
  --x-lime: var(--theme-panel);
}

html, body,
body.home-page,
body.inner-page,
body .experience,
body .expertise-experience {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body.inner-page {
  --ip-ink: var(--theme-text);
  --ip-paper: var(--theme-bg);
  --ip-lime: var(--theme-panel);
}

body .expertise-experience {
  --ex-paper: var(--theme-bg);
  --ex-ink: var(--theme-text);
  --ex-signal: var(--theme-gold);
  --ex-accent: var(--theme-gold);
  --ex-lime: var(--theme-panel);
}

::selection { background: #d2b274; color: #080d12; }
body em { color: var(--theme-gold); }
body .skip-link { background: var(--theme-gold); color: var(--theme-on-gold); }
body :focus-visible,
body .experience :focus-visible,
body.inner-page :focus-visible,
body .expertise-experience :focus-visible {
  outline-color: #a5d5e6;
}

/* Header fallback; the new dropdown component owns its more specific styling. */
body .site-header,
body.home-page .site-header {
  background: #080d12f5;
  color: var(--theme-text);
  border-color: var(--theme-border);
  box-shadow: 0 6px 28px #0002;
}
body .wordmark,
body .wordmark-name { color: var(--theme-text); }
body .wordmark-symbol,
body .wordmark-name small { color: var(--theme-gold); border-color: var(--theme-gold); }
body .language-switch { border-color: var(--theme-border); }
body .language-switch a { color: var(--theme-muted); }
body .language-switch a:hover,
body .language-switch a[aria-current=true] { color: var(--theme-gold); }
body .menu-button { color: var(--theme-text); border-color: #65717a; }
body .nav { background: var(--theme-bg); border-color: var(--theme-border); }
body .nav a { color: var(--theme-text); border-color: var(--theme-border); }
body .nav a:hover,
body .nav a[aria-current=page] { color: var(--theme-gold); }
body .nav a:last-child { color: var(--theme-on-gold); background: var(--theme-gold); border-color: var(--theme-gold); }
body .nav a:last-child:hover { color: var(--theme-on-gold); background: var(--theme-gold-hover); }

/* Common reading hierarchy and restrained calls to action. */
body .eyebrow,
body .experience .eyebrow,
body.inner-page .eyebrow,
body .expertise-experience .eyebrow { color: var(--theme-gold); }
body .lead,
body .landing-hero .lead,
body .x-hero-intro .lead,
body .ex-hero-bottom .lead { color: var(--theme-muted); }
body .button-gold,
body.inner-page .button-gold,
body .x-button-orange,
body .experience .x-button-orange {
  background: var(--theme-gold);
  border-color: var(--theme-gold);
  color: var(--theme-on-gold);
}
body .button-gold:hover,
body.inner-page .button-gold:hover,
body .x-button-orange:hover,
body .experience .x-button-orange:hover {
  background: var(--theme-gold-hover);
  border-color: var(--theme-gold-hover);
  color: var(--theme-on-gold);
}
body .text-link,
body .experience .text-link,
body.inner-page .text-link,
body .expertise-experience .text-link { color: var(--theme-gold); }
body .text-link:hover { color: var(--theme-gold-hover); }
body .page-hero,
body .vision-detail,
body .service-detail,
body .pricing-intro,
body .evolution-layout,
body .entity-note { border-color: var(--theme-border); }
body .page-hero:after { background: var(--theme-gold); }

/* Homepage supporting content: keep native disclosures distinct and readable. */
body .experience .x-hero { background: var(--theme-bg); color: var(--theme-text); }
body .experience h1 em { color: var(--theme-gold); }
body .x-hero-bullets,
body .x-scene-bottom p,
body .x-section-intro > p:last-child,
body .x-audience-intro > p:not(.eyebrow),
body .x-panel-copy > p,
body .x-method p { color: var(--theme-muted); }
body .x-ticker { background: var(--theme-bg); border-color: var(--theme-border); }
body .x-ticker b,
body .x-big-asterisk,
body .x-method-arrow,
body .x-method li > span { color: var(--theme-gold); }
body .x-service-choice,
body .x-method li,
body .x-panel-copy li,
body .x-audiences details,
body .x-audiences details:last-child { border-color: var(--theme-border); }
body .x-service-choice .x-index,
body .x-service-choice small,
body .x-audiences summary small { color: var(--theme-soft); }
body .x-service-choice.is-selected strong,
body .x-service-choice.is-selected b,
body .x-audiences details[open] summary h3,
body .x-audiences details[open] summary > span { color: var(--theme-gold); }
body .experience .x-service-panel,
body .experience .x-service-panel:hover { background: var(--theme-panel); }
body .x-service-diagram { background: #13212b; }
body .x-service-diagram svg { color: #74909d; }
body .x-service-diagram span { color: var(--theme-soft); }
body .x-service-diagram .x-emphasis { stroke: var(--theme-gold); }
body .experience .x-audience { background: var(--theme-panel); color: var(--theme-text); }
body .x-audiences details > div p,
body .x-audiences details > div ul { color: var(--theme-muted); }
body .x-motion { background: transparent; color: var(--theme-muted); border-color: #64737e; }
body .x-motion:hover { background: var(--theme-raised); }
body .x-hotspot { background: #101a23ef; color: var(--theme-text); box-shadow: 0 4px 25px #0005; }
body .x-hotspot > span { background: var(--theme-gold); color: var(--theme-on-gold); }
body .x-hotspot[aria-pressed=true] { background: var(--theme-gold); color: var(--theme-on-gold); }
body .x-hotspot[aria-pressed=true] > span { background: #10161c; color: var(--theme-gold); }
body .x-scene-caption > div { background: #101a23ef; }
body .x-scene-caption small { color: var(--theme-muted); }
body .x-scene-caption a:not(.x-circle-link) { color: var(--theme-gold); border-color: var(--theme-gold); }
body .x-circle-link { background: var(--theme-gold); color: var(--theme-on-gold); }

/* Supporting homepage graph keeps discipline/status colours in the main demo. */
body .x-impact { background: #0c151d; color: var(--theme-text); }
body .x-impact-heading > p,
body .x-impact-intro,
body .x-impact-inspector p,
body .x-impact-inspector small,
body .x-impact-bottom span,
body #x-chain-status { color: var(--theme-muted); }
body .x-impact-workspace { border-color: var(--theme-border); }
body .x-impact-inspector { background: var(--theme-panel); }
body .x-map-node { background: #14232e; border-color: #5a7381; color: var(--theme-text); }
body .x-map-node small,
body .x-impact .eyebrow,
body .x-impact-bottom a { color: var(--theme-gold); border-color: var(--theme-gold); }
body .x-map-node[aria-pressed=true] { outline-color: var(--theme-gold); }
body .has-chain .x-map-node:not(.x-map-node-0) { background: #413724; border-color: var(--theme-gold); }
body .x-map-node:before { color: var(--theme-muted); }
body .x-mini-map > svg g { stroke: var(--theme-gold); }
body .x-mini-map marker path { fill: var(--theme-gold); }
body .x-reset { color: var(--theme-muted); border-color: #697984; }

/* Expertise: three service choices and native details retain their structure. */
body .ex-hero,
body .ex-jump,
body .ex-service,
body .ex-service:last-of-type,
body .ex-service-choice,
body .ex-extra,
body .ex-service-copy li,
body .ex-audience-controls button,
body .ex-audience-controls button:last-child,
body .ex-audience-panel,
body .ex-point-heading,
body .ex-method li { border-color: var(--theme-border); }
body .ex-jump,
body .ex-service-fallback a,
body .ex-service-choice[aria-pressed=true] strong,
body .ex-service-choice[aria-pressed=true] > b,
body .ex-service[open] summary > b,
body .ex-audience-controls button[aria-pressed=true],
body .ex-method-title > span,
body .ex-method small { color: var(--theme-gold); }
body .ex-service-fallback a { border-color: var(--theme-gold); }
body .ex-section-heading > p,
body .ex-audience .ex-section-heading > p,
body .ex-question,
body .ex-service-choice > small,
body .ex-service summary > span,
body .ex-service-copy > p,
body .ex-visual-note,
body .ex-audience-controls small,
body .ex-point-heading,
body .ex-method p { color: var(--theme-muted); }
body .ex-service summary,
body .ex-service-body { background: var(--theme-panel); }
body .ex-service summary h3,
body .ex-service[open] summary h3 { color: var(--theme-text); }
body .ex-service-visual { background: #13212b; }
body .ex-service-visual svg { color: #74909d; }
body .ex-visual-signal { stroke: var(--theme-gold); }
body .ex-service-visual > span { color: var(--theme-soft); }
body .ex-service-copy li:before { color: var(--theme-gold); }
body .ex-service-copy .ex-relevant-point { background: #d2b2740b; border-left-color: var(--theme-gold); }
body .ex-audience { background: #101a23; }
body .ex-audience-panel { background: #14212b; }
body .ex-audience-panel .eyebrow { color: var(--theme-gold); }

/* FlowGrid concept sequence, source disclosures and overview menus. */
body .ip-status,
body .ip-contact-topics small,
body .ip-story-intro > p:last-child,
body .ip-story-panel > div > p:not(.eyebrow) { color: var(--theme-muted); }
body .ip-contents { background: var(--theme-panel); border-color: var(--theme-border); }
body .ip-contents a { color: var(--theme-muted); }
body .ip-contents a:hover,
body .ip-contents a[aria-current=location] { color: var(--theme-gold); border-color: var(--theme-gold); }
body .ip-contact-topics a { background: var(--theme-panel); border-color: var(--theme-border); }
body .ip-contact-topics a:hover { background: var(--theme-raised); }
body .ip-contact-topics a b { color: var(--theme-gold); }
body .ip-orbit { background: #13212b; color: #829da9; }
body .ip-orbit > span { color: var(--theme-muted); }
body .ip-orbit circle { fill: var(--theme-gold); }
body .ip-story-controls,
body .ip-story-controls button { border-color: var(--theme-border); }
body .ip-story-controls button { background: transparent; color: var(--theme-text); }
body .ip-story-controls span { color: var(--theme-muted); }
body .ip-story-controls button[aria-pressed=true] { background: var(--theme-gold); color: var(--theme-on-gold); }
body .ip-story-controls button[aria-pressed=true] span { color: var(--theme-on-gold); }
body .ip-story-controls button:hover:not([aria-pressed=true]) { background: var(--theme-raised); }
body .ip-story-panel { background: var(--theme-panel); }
body .ip-step-visual > span { color: var(--theme-gold); }
body .ip-trace-line { color: var(--theme-muted); }
body .ip-trace-line b.is-active,
body .ip-trace-line i { color: var(--theme-gold); border-color: var(--theme-gold); }
body .ip-motion { color: var(--theme-muted); border-color: #697984; }
body .ip-background { border-color: var(--theme-border); }
body .ip-background > summary b { color: var(--theme-gold); }
body .ip-review-progress span,
body .ip-model-band .ip-review-progress span { color: var(--theme-muted); }
body .ip-review-progress progress::-webkit-progress-bar { background: #35434e; }
body .ip-review-progress progress::-webkit-progress-value { background: var(--theme-gold); }

/* General detail pages: replace the earlier light panels and low-contrast text. */
body .section-heading > p,
body .service-card p,
body .service-detail p,
body .method-grid p,
body .sequence p,
body .status-inner p:not(.eyebrow),
body .compare-grid p,
body .about-layout p:not(.eyebrow),
body .principles-grid p,
body .contact-primary > p:not(.eyebrow),
body .contact-location p:not(.eyebrow),
body .source-note,
body .vision-detail > p:not(.eyebrow),
body.inner-page .vision-detail > p:not(.eyebrow),
body .evolution-layout p:not(.eyebrow),
body .cms-timeline-list article > div:first-child,
body .pricing-intro > p:not(.eyebrow),
body .price-card p:not(.eyebrow,.price),
body .price-card .price small,
body .privacy-intro p,
body .privacy-grid p,
body .privacy-foot,
body .illustration-note { color: var(--theme-muted); }
body .service-card,
body .sequence > div,
body .compare-grid article,
body.inner-page .compare-grid article,
body .contact-primary,
body.ip-contact .contact-primary,
body .price-card,
body .privacy-grid article,
body .vision-tags span { background: var(--theme-panel); border-color: var(--theme-border); }
body .service-card:hover { background: var(--theme-raised); border-color: #7f7357; }
body .service-card > span,
body .service-card b,
body .detail-index,
body .method-grid span,
body .principles-grid span,
body .entity-note strong,
body .legal-layout dt,
body .price-card .price,
body .privacy-grid span,
body .sequence span,
body .compare-grid span { color: var(--theme-gold); }
body .check-list li,
body .method-grid p,
body .principles-grid article,
body .contact-aside,
body.ip-contact .contact-aside,
body .contact-aside li,
body .contact-location > div,
body .contact-primary .small-note,
body .legal-layout dl,
body .legal-layout dl > div { border-color: var(--theme-border); }
body .check-list li:before,
body.inner-page .check-list li:before,
body .contact-aside li::marker,
body .source-note a,
body .privacy-content a,
body .contact-primary h2 a:hover { color: var(--theme-gold); }
body .method-band,
body .principles-band,
body.inner-page .method-band,
body.inner-page .principles-band { background: #101a23; }
body.inner-page .method-grid p,
body.inner-page .principles-grid p { color: var(--theme-muted); }
body .platform-band { background: var(--theme-panel); border-color: var(--theme-border); }
body .platform-band p:not(.eyebrow) { color: var(--theme-muted); }
body .thread-card { background: #0c151d; box-shadow: 12px 12px 0 #16232e; }
body .statement,
body .status-band,
body.inner-page .status-band,
body .forecast-band,
body.ip-evolution .forecast-band { background: #101a23; color: var(--theme-text); }
body .forecast-date,
body .forecast-metrics strong,
body.ip-evolution .forecast-date,
body.ip-evolution .forecast-metrics strong { color: var(--theme-gold); }
body .forecast-metrics p { border-color: #5d6d77; }
body .forecast-metrics small { color: var(--theme-muted); }

/* Calculators remain legible; graph node identity/status colours stay scoped. */
body .sim-notice { background: #1c231f; color: var(--theme-text); border-color: var(--theme-gold); }
body .sim-panel,
body .brain-model .sim-panel { background: var(--theme-panel); border-color: var(--theme-border); color: var(--theme-text); }
body .sim-panel select { background: #0c151d; color: var(--theme-text); border-color: #64737e; }
body .sim-panel input[type=range] { accent-color: var(--theme-gold); }
body .sim-metrics p { border-color: var(--theme-gold); }
body .sim-metrics strong { color: var(--theme-gold); }
body .sim-reset { color: var(--theme-gold); }
body #sim-recorded { background: #16332a; color: #d5eadf; border-color: #89bd9e; }
body .dep-relations button[aria-pressed=true] { background: #263b4b; }
body .dep-relations strong { color: var(--theme-gold); }
body .dep-controls button:disabled,
body.inner-page .dep-controls button:disabled { background: #22303c; color: #aebec8; border-color: #51616e; }

/* Dark closing panels use a warm gold action, not a full red or yellow wall. */
body .x-close,
body .ex-close,
body .cta-band,
body.inner-page .cta-band,
body.ip-platform .cta-band:last-child {
  background: linear-gradient(135deg,#14222d,#0d161e);
  color: var(--theme-text);
  border-top: 1px solid #6c614b;
}
body .x-close .eyebrow,
body .ex-close .eyebrow,
body.inner-page .cta-band .eyebrow,
body.ip-platform .cta-band:last-child .eyebrow { color: var(--theme-gold); }
body .x-close-bottom > p,
body .ex-close-bottom > p,
body .cta-band p:not(.eyebrow),
body.inner-page .cta-band p:not(.eyebrow),
body.ip-platform .cta-band:last-child p { color: var(--theme-muted); }
body .x-close .x-email,
body .ex-close .ex-flow-link,
body .ex-close .ex-email,
body .ex-flow-link,
body .ex-email { color: var(--theme-gold); border-color: #8c7854; }
body .x-close .x-button-dark,
body .ex-close .ex-contact-button,
body.ip-platform .cta-band:last-child .button { background: var(--theme-gold); color: var(--theme-on-gold); border-color: var(--theme-gold); }
body .x-close .x-button-dark:hover,
body .ex-close .ex-contact-button:hover,
body.ip-platform .cta-band:last-child .button:hover { background: var(--theme-gold-hover); color: var(--theme-on-gold); border-color: var(--theme-gold-hover); }

body .site-footer,
body.home-page .site-footer { background: #060b10; color: var(--theme-text); border-top: 1px solid var(--theme-border); }
body .site-footer .wordmark,
body .site-footer .wordmark-name { color: var(--theme-text); }
body .site-footer .wordmark-symbol,
body .site-footer .wordmark-name small,
body .footer-nav p { color: var(--theme-gold); border-color: var(--theme-gold); }
body .footer-inner > div > p,
body .footer-nav a { color: var(--theme-muted); }
body .footer-nav a:hover { color: var(--theme-gold-hover); }
body .footer-bottom { color: var(--theme-soft); border-color: var(--theme-border); }
