/* Bark OS frame (2026-10-16). Loaded by every page AFTER its own <style>, so it wins.
   It changes the colours, the fonts and the shell (side menu + title band) of all pages at once.
   The pages' own layouts are redesigned one by one afterwards. Target design: docs/mockups/platform (branch website-redesign).
   Palette: houndcap.com charcoal #2A2829 and stone #E0E0DB, brass for accents. bark.js builds the menu. */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');

:root {
  --font: 'Inter Tight', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Libre Caslon Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --purple-dark: #2A2829;        /* masthead and menu: houndcap.com charcoal */
  --text-body: #3B3738;
  --text-muted: #5F5B57;
  --teal-deep: #2F6B4F;          /* "good" and links: accept green */
  --teal-bright: #D8B960;        /* accent on dark: brass */
  --violet: #3E5C7A;
  --amber: #A07F2E;
  --amber-text: #6E5413;
  --red: #A33A32;
  --red-text: #8F2F28;
  --red-on-dark: #E49A92;
  --bg-page: #E0E0DB;
  --bg-tint: #EDECE6;
  --border: #CFCFC7;
  --white: #F7F6F2;              /* cards and text on dark: paper */
  --track-new: #3E5C7A;
  --track-changed: #A07F2E;
  --bk-rail: 232px;
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scrollbar-color: #4C4849 #E0E0DB; }
body { font-family: var(--font); font-feature-settings: 'tnum' 1, 'cv11' 1; -webkit-font-smoothing: antialiased; caret-color: #A07F2E; }
::selection { background: #EFE4C2; color: #1F1D1E; }
:focus-visible { outline: 2px solid #A07F2E; outline-offset: 2px; }

/* ---------- shell: side menu + main ---------- */
.bk-app { display: grid; grid-template-columns: var(--bk-rail) minmax(0, 1fr); min-height: 100vh; }
.bk-main { min-width: 0; }
.bk-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #2A2829; color: #F2F1EC;
  display: flex; flex-direction: column; padding: 20px 12px 16px; z-index: 30;
}
.bk-rail .bk-brand { display: block; padding: 2px 8px 0; text-decoration: none; color: inherit; }
.bk-rail .bk-brand img { display: block; height: 34px; width: auto; }
.bk-rail .bk-os { display: inline-flex; align-items: center; gap: 0.28em; margin-top: 16px; padding-top: 16px; border-top: 1px solid #4C4849; width: 100%; font: 400 28px/1 var(--serif); color: #F7F6F2; letter-spacing: 0.005em; }
.bk-rail .bk-os svg { height: 1.05em; width: 1.05em; flex: none; color: #D8B960; }
.bk-rail .bk-os .tag { font: 700 0.32em/1 var(--font); letter-spacing: 0.1em; background: #D8B960; color: #2A2829; border-radius: 0.45em; padding: 0.5em 0.62em 0.5em 0.72em; margin-left: 0.2em; transform: translateY(0.18em); }
.bk-nav { margin-top: 22px; display: grid; gap: 18px; }
.bk-nav .bk-label { font: 600 11px/1 var(--font); letter-spacing: 0.09em; text-transform: uppercase; color: #B9B5AF; padding: 0 10px 8px; }
.bk-nav .bk-group { display: grid; gap: 1px; }
.bk-nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #E6E4DE; text-decoration: none;
  font: 500 14px/1.4 var(--font); border: 0; transition: background 120ms var(--bk-ease);
}
.bk-nav a:hover { background: #373435; color: #F7F6F2; }
.bk-nav a.active, .bk-nav a[aria-current="page"] { background: #F7F6F2; color: #2A2829; }
.bk-nav a svg { flex: none; opacity: 0.9; }
.bk-nav .nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #7A5F1C; color: #F2F1EC; font-size: 11px; font-weight: 600; text-align: center; }
.bk-nav .nav-badge.verify { background: #7A5F1C; }
.bk-nav a.active .nav-badge { background: #2A2829; }
.bk-rail .bk-foot { margin-top: auto; padding: 18px 10px 0; color: #B9B5AF; font-size: 12px; line-height: 1.5; }

/* ---------- the title band (the pages' old purple masthead) ---------- */
.masthead { position: relative; overflow: hidden; background: #2A2829; padding: 22px 32px 26px; }
.masthead .eyebrow { display: none; }
.masthead h1 { position: relative; font: 400 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); color: #F7F6F2; margin: 0; letter-spacing: 0; text-wrap: balance; }
.masthead .sub { position: relative; color: #B9B5AF; max-width: 70ch; font-size: 14px; margin-top: 8px; }
.masthead svg.bk-contours { position: absolute; right: -40px; top: -80px; width: 760px; height: 340px; pointer-events: none; }
.nav-bar { display: none; }

/* ---------- small screens: the menu sits on top (the real mobile design comes later) ---------- */
@media (max-width: 899px) {
  .bk-app { display: block; }
  .bk-rail { position: static; height: auto; flex-direction: column; padding-bottom: 8px; }
  .bk-nav { grid-auto-flow: column; overflow-x: auto; margin-top: 12px; gap: 14px; }
  .bk-nav .bk-group { grid-auto-flow: column; }
  .bk-nav .bk-label { display: none; }
  .bk-nav a { white-space: nowrap; }
  .masthead { padding: 18px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }
@media print { .bk-rail { display: none; } .bk-app { display: block; } }
