/* RAMTEK BRAND THEME (2026-11-15). Flips every colour system the site and app use to the light
   Accessible Teal palette, so each page follows without its own edits:
     - site-pages.css / premium.css names: --black --ink --surface --border --border2 --mid --text --white --gold --gold2
     - shared.css / app names: --bg --surface --card --accent --accent2 --red --text --muted --mid --white
   --white has always meant "heading colour" and --black "page background", so they flip meaning-for-meaning.
   Loaded on every page except the homepage (which scopes its own light and dark sections in rich.css),
   before /brand.css. !important on the tokens beats each page's own :root, wherever it sits. */
:root {
  --black: #eef1f0 !important;  --ink: #ffffff !important;  --surface: #ffffff !important;  --raise: #f1f5f4 !important;
  --border: #d7e5e2 !important; --border2: #c3d6d2 !important;
  --white: #041a17 !important;  --text: #2a3f3b !important; --mid: #455b57 !important;     --muted: #4a605c !important;
  --gold: #15796f !important;   --gold2: #0f6159 !important; --gold3: rgba(21,121,111,.08) !important; --glow: transparent !important;
  --bg: #eef1f0 !important;     --card: #ffffff !important;
  --accent: #15796f !important; --accent2: #0f6159 !important; --accent3: rgba(21,121,111,.08) !important;
  --red: #cc2827 !important;    --danger: #cc2827 !important;
  --hair: rgba(4,26,23,.08) !important; --glass-bg: rgba(255,255,255,.9) !important; --glass-blur: none !important;
  color-scheme: light;
}
html, body { background: #eef1f0 !important; color: #2a3f3b; }
body::after { display: none !important; }          /* film grain from the old dark theme */
::selection { background: rgba(21,121,111,.18) !important; color: #041a17 !important; }

/* headings were gradient-filled light text in the old theme */
h1, h2, h3, .pg-title, .pg-h2, .sec-title, .hero-h1, .cta-band h2 {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important; color: #041a17 !important;
}
h1 em, h2 em, h3 em, .pg-title em, .pg-h2 em, .sec-title em, .cta-band h2 em {
  background: none !important; -webkit-text-fill-color: currentColor !important; color: #15796f !important;
}
a { color: inherit; }
p a:not([class]), li a:not([class]), .pg-prose a, .legal a, article a:not([class]) { color: #0f6159; }

/* old dark-theme decoration that does not belong on light pages */
.pg-hero::before, .pg-hero::after, .pg-cta::before, .pg-cta::after, .hero-bg, .hero-grid, .hero-rays, .orb, .bg-orbs { display: none !important; }

/* small teal labels on pale teal tints: the darker teal ink keeps them above 4.5:1 */
.tpl-tag, .premium-badge, .avatar.ai, .step, button.on, .tab.on, table th { color: #0f6159 !important; }
.disclaimer, small { color: #455b57 !important; }
.av { color: #041a17 !important; }

/* ── APP GLASS, DARKER (owner, 2026-11-15: "the glass needs to be a little bit darker, it's not viewable") ──
   Every frosted surface in the logged-in app gets a visible grey-green tint over the grey page, a clear edge
   and a soft shadow, so panels separate from the background. */
:root { --rt-glass: rgba(4,26,23,.075); --rt-glass-strong: rgba(4,26,23,.11); --rt-glass-edge: rgba(4,26,23,.16); }
.glass,
body.has-shell .card, body.has-shell .panel, body.has-shell .output-area, body.has-shell .ghost-doc,
body.has-shell .type-grid > *, body.has-shell .sig {
  background: var(--rt-glass) !important;
  border: 1px solid var(--rt-glass-edge) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 32px -14px rgba(4,26,23,.28) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important; backdrop-filter: blur(18px) saturate(1.3) !important;
}
.shell-badge, .shell-pill, .shell-rail, .shell-account {
  background: var(--rt-glass-strong) !important;
  border: 1px solid var(--rt-glass-edge) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 26px -12px rgba(4,26,23,.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important; backdrop-filter: blur(18px) saturate(1.3) !important;
}
/* the selected tool in the top bar and other "on" states read as mint */
.shell-pill a.on, .shell-pill a[aria-current="page"], .shell-pill .on { background: #c2fcf3 !important; color: #0b4a43 !important; }
body.has-shell input:not([type=checkbox]):not([type=radio]), body.has-shell select, body.has-shell textarea {
  background: rgba(255,255,255,.85) !important; border-color: var(--rt-glass-edge) !important;
}
/* documents stay paper-white, and choice buttons stay white with a mint selected state */
body.has-shell .output-area, body.has-shell .ghost-doc { background: #ffffff !important; box-shadow: 0 1px 2px rgba(4,26,23,.06), 0 14px 34px -18px rgba(4,26,23,.3) !important; }
body.has-shell .type-grid > * { background: rgba(255,255,255,.9) !important; box-shadow: 0 1px 2px rgba(4,26,23,.05) !important; }
body.has-shell .type-grid > .active, body.has-shell .type-grid > .on, body.has-shell .type-grid > [aria-pressed="true"], body.has-shell .type-grid > .selected { background: #c2fcf3 !important; border-color: #8fe6d8 !important; color: #0b4a43 !important; }
.shell-avatar { color: #0b4a43 !important; }
.roi-label, .tone-btn.active { color: #0f6159 !important; }
