/* Anominal Foundry · application shell.
   Everything outside the views: the page base, the product bar under the Ember site nav, the view switch,
   the data notice and the rules that show one view at a time. Each view's own styles live beside its code
   (production/production.css, supply-chain/supply-chain.css) and are scoped to its
   <section data-foundry-view="...">, so views cannot restyle each other or the shell. */
:root {
  --navy-900: #0A0E1A; --navy-800: #0F1626;
  --coral: #F0997B; --coral-light: #F5C4B3;
  --white: #FFFFFF; --white-70: rgba(255,255,255,0.72); --white-50: rgba(255,255,255,0.55);
  --border-faint: rgba(255,255,255,0.12);
  color-scheme: dark;
}
body {
  margin: 0; background: var(--navy-900); color: var(--white);
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app *, .app *::before, .app *::after { box-sizing: border-box; }

/* One view at a time. A view fills the space below the bar. */
.fd-view { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fd-view[hidden], [data-view-only][hidden] { display: none !important; }

/* The product bar */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 32px; background: var(--navy-900); border-bottom: 1px solid var(--border-faint); }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--white); text-decoration: none; }
.brand-mark img { width: 24px; height: 24px; object-fit: contain; display: block; }
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.95); }

/* The view switch */
.bf-exploring { font-size: 11px; letter-spacing: 0.04em; color: var(--white-50); white-space: nowrap; }
.bf-switch { display: inline-flex; padding: 3px; gap: 3px; background: var(--navy-800); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; }
.bf-switch a { display: grid; gap: 1px; padding: 7px 16px; border-radius: 7px; text-decoration: none; color: rgba(255,255,255,0.72); line-height: 1.25; transition: background 150ms, color 150ms; }
.bf-switch a strong { font-size: 13.5px; font-weight: 500; color: inherit; }
.bf-switch a span { font-size: 11px; color: rgba(255,255,255,0.5); }
.bf-switch a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.bf-switch a[aria-current] { background: var(--coral); color: #2A1208; }
.bf-switch a[aria-current] span { color: rgba(42,18,8,0.75); }
.bf-switch a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Production's audience toggle sits in the bar while Production is shown */
.view-toggle { display: inline-flex; background: var(--navy-800); border: 1px solid var(--border-faint); border-radius: 6px; padding: 3px; }
.view-btn { background: transparent; border: none; color: var(--white-70); font-family: inherit; font-size: 12px; font-weight: 500; padding: 8px 16px; border-radius: 4px; cursor: pointer; letter-spacing: 0.02em; transition: all 200ms; }
.view-btn:hover { color: var(--white); }
.view-btn.active { background: var(--coral); color: #4A1B0C; }

/* The way back to the Foundry product page */
.bf-back { font-size: 13px; color: rgba(255,255,255,0.85); text-decoration: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; white-space: nowrap; }
.bf-back:hover { border-color: var(--coral); color: #fff; }

/* What the data is, for the view on screen */
.notice { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 9px 32px; background: rgba(240,153,123,0.06); border-bottom: 1px solid var(--border-faint); font-size: 12px; color: var(--white-70); }
.notice strong { color: var(--coral-light); font-weight: 500; }
.notice a { color: var(--coral); font-size: 12px; }
.tag-synthetic { display: inline-block; font-family: 'Ubuntu Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid rgba(240,153,123,0.5); color: var(--coral-light); white-space: nowrap; }

@media (max-width: 860px) { .bf-exploring { display: none; } }
@media (max-width: 760px) {
  .topbar, .notice { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar-left { width: 100%; flex-wrap: wrap; gap: 10px; }
  .topbar-right { flex-wrap: wrap; gap: 10px 14px; }
  .bf-switch { width: 100%; }
  .bf-switch a { flex: 1; text-align: center; padding: 8px 10px; }
}

/* Headlines without orphans (owner, 2026-11-15): see styles.css. Balancing only moves line breaks. */
.group-label, h1, h2, h3, h4, h5, h6 { text-wrap-style: balance; }
