/* Syneria: Tabler, with a few additions of its own. */

/* type and colour: IBM Plex Sans, true greys (the neutral base), text close to black, a black top band */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/vendor/plex/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
}
:root {
  --tblr-font-sans-serif: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tblr-body-font-size: .9375rem;
  --tblr-body-color: light-dark(oklch(16% 0 0deg), oklch(94% 0 0deg));
  --tblr-secondary: light-dark(var(--tblr-gray-600), var(--tblr-gray-400));
  --tblr-secondary-text: light-dark(var(--tblr-gray-600), var(--tblr-gray-400));
  --tblr-muted-text: light-dark(var(--tblr-gray-600), var(--tblr-gray-400));
  --tblr-body-bg: light-dark(oklch(98.3% 0 0deg), oklch(17% 0 0deg));
  --syneria-band: oklch(14% 0 0deg);
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* the band at the top and the horizon at the bottom share one motif: a dot grid and a slow teal glow */
.navbar[data-bs-theme="dark"] { background-color: transparent; }
.navbar-overlap:after { display: none; }
.band-fx { position: absolute; inset: 0 0 -11rem 0; z-index: -1; overflow: hidden; background: var(--syneria-band); pointer-events: none; }
.band-fx::before, .horizon::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--syneria-dot) 1px, transparent 1.5px);
  background-size: 24px 24px;
}
.band-fx::before { --syneria-dot: rgb(255 255 255 / .08); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.band-fx::after, .horizon::after { content: ""; position: absolute; will-change: transform; animation: syneria-drift 26s ease-in-out infinite alternate; }
.band-fx::after {
  inset: -60% -20%; mask-image: linear-gradient(to bottom, #000 45%, transparent 68%);
  background:
    radial-gradient(30% 34% at 22% 46%, rgba(var(--tblr-primary-rgb), .24), transparent 70%),
    radial-gradient(26% 36% at 78% 42%, rgba(var(--tblr-primary-rgb), .14), transparent 70%);
}
.horizon { position: relative; height: 10rem; margin-top: auto; overflow: hidden; isolation: isolate; pointer-events: none; color: var(--tblr-primary); }
.page-wrapper > main { padding-bottom: 2.5rem; }
.horizon::before { --syneria-dot: light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .07)); mask-image: linear-gradient(to bottom, transparent, #000); }
.horizon::after {
  inset: 0 -20% -60%; z-index: -1; animation-duration: 32s; animation-direction: alternate-reverse;
  background: radial-gradient(35% 60% at 50% 100%, rgba(var(--tblr-primary-rgb), light-dark(.16, .22)), transparent 70%);
}
.horizon-lines { position: absolute; left: 0; bottom: 0; width: 200%; height: 75%; animation: syneria-flow 70s linear infinite; }
.horizon-lines-slow { height: 60%; animation-duration: 110s; }
.hz-line { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .55; }
.hz-line-faint { opacity: .25; }
.hz-area { fill: url(#hz-fill); opacity: .6; }
@keyframes syneria-drift { from { transform: translate3d(-6%, 0, 0) scale(1); } to { transform: translate3d(6%, -3%, 0) scale(1.08); } }
@keyframes syneria-flow { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .band-fx::after, .horizon::after, .horizon-lines { animation: none; }
}
h1, h2, h3, h4, .page-title, .card-title { letter-spacing: -.01em; }
.page-title { font-size: 1.375rem; font-weight: 600; }
.card-title { font-weight: 600; }
.table thead th { color: var(--tblr-secondary); font-weight: 600; letter-spacing: .03em; }
.table td { color: var(--tblr-body-color); }
.ti { font-size: 1.15em; vertical-align: -.125em; }
.navbar .nav-link .ti { font-size: 1.2rem; }
.avatar .ti { font-size: 1.25em; }

.num, .table td.num, .kpi-value { font-variant-numeric: tabular-nums; }
main:focus { outline: none; }
[hidden] { display: none !important; }


/* the dark band runs under the page title: .band-fx reaches 11rem below the navbar */
.page-header[data-bs-theme="dark"] { color: #fff; }
.page-header[data-bs-theme="dark"] .page-title { color: #fff; }
.page-header[data-bs-theme="dark"] .page-pretitle { color: rgba(255, 255, 255, .6); }
.page-header[data-bs-theme="dark"] .page-sub { color: rgba(255, 255, 255, .7) !important; }
.page-header .page-title .badge { font-size: .75rem; vertical-align: middle; margin-inline-start: .5rem; }
.navbar .nav-link-title { white-space: nowrap; }
.month-picker .form-select { min-width: 10.5rem; background-color: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .15); }
.month-picker .form-select option { color: var(--tblr-body-color); background: var(--tblr-bg-surface); }

/* a figure: plain text that opens its proof */
.fig {
  all: unset;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: underline dotted transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s;
}
.fig:hover, .fig:focus-visible { text-decoration-color: currentColor; }
.fig:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
.fa-mark { font-size: .7em; font-weight: 700; margin-inline-start: .2em; text-decoration: none; border: 0; cursor: help; }

/* AI text: each figure checked against the pack */
.seg { all: unset; cursor: pointer; padding: 0 .3em; border-radius: 4px; font-weight: 500; }
.seg-ok { background: rgba(var(--tblr-green-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--tblr-green-rgb), .3); }
.seg-ok:hover { background: rgba(var(--tblr-green-rgb), .22); }
.seg-bad { color: var(--tblr-red); background: rgba(var(--tblr-red-rgb), .1); text-decoration: underline wavy; text-underline-offset: 4px; }
.seg:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }

/* tiles */
.card-kpi .kpi-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; }
.card-kpi .badge .fig { color: inherit; }
.sparkline { width: 100%; height: 36px; display: block; }
.sparkline .spark-line { fill: none; stroke: var(--tblr-primary); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.sparkline .spark-area { fill: var(--tblr-primary); opacity: .08; }
.card-headline .headline { font-size: 1.15rem; line-height: 1.55; font-weight: 500; }
.trend-chart { position: relative; height: 300px; }
.steps .step-item a:hover .fw-medium { text-decoration: underline; }

/* the proof drawer */
.proof-drawer { --tblr-offcanvas-width: min(640px, 100vw); }
.proof-section + .proof-section { margin-top: 1.5rem; }
.proof-formula { border: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); border-radius: var(--tblr-border-radius); padding: .75rem; line-height: 2.2; }
.proof-chip { --tblr-btn-padding-y: .05rem; --tblr-btn-padding-x: .4rem; font-size: .8rem; }
.proof-rows { max-height: 18rem; }
.proof-rows thead th { position: sticky; top: 0; background: var(--tblr-bg-surface-tertiary); white-space: nowrap; }
.proof-rows td { white-space: nowrap; }

/* How it's calculated */
.method-toc { position: sticky; top: 1rem; }
.method-card { scroll-margin-top: 1rem; }
.method-body p:last-child, .method-body ul:last-child, .method-body ol:last-child { margin-bottom: 0; }
pre.formula {
  background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color);
  border: 1px solid var(--tblr-border-color); border-inline-start: 3px solid var(--tblr-primary);
  border-radius: var(--tblr-border-radius); padding: .75rem 1rem; font-size: .8rem; white-space: pre-wrap;
}

/* Segments */
.seg-map { position: relative; height: 380px; }
.seg-card { scroll-margin-top: 1rem; }
.seg-why summary { cursor: pointer; list-style: none; display: inline-block; }
.seg-why summary::-webkit-details-marker { display: none; }
.seg-why summary::before { content: "+ "; }
.seg-why[open] summary::before { content: "− "; }
.seg-table { max-height: 34rem; overflow-y: auto; }
.seg-table thead th { position: sticky; top: 0; background: var(--tblr-bg-surface); z-index: 1; }

.min-w-0 { min-width: 0; }

@media print {
  .navbar, .horizon, .btn-list { display: none !important; }
  .page-header[data-bs-theme="dark"] { color: #000; }
}
