/* Kirby Gate theme for Daily Rounds (/rounds/ and /rounds/demo/).
   Loaded after mock-survey.css. Uses the website's palette (main.css): forest
   greens on a soft green-white, light only like the website. */
:root{
  --bg:#f6f9f5; --surface:#ffffff; --surface-2:#e9f3e6; --fill:#e3ece3; --ink:#2d3a2f; --muted:#56665a; --faint:#6b7a6d;
  --line:#e3ece3; --line-strong:#cddbcd;
  --band:#ffffff; --band-solid:#ffffff; --band-ink:#1f4d2b; --band-muted:#56665a;
  --accent:#35703a; --accent-hover:#27592d; --accent-ink:#ffffff; --accent-soft:#e9f3e6; --focus:#4e9a51;
  --ok:#35703a; --ok-soft:#e4f1e1; --bad:#c2410c; --bad-soft:#fdeee8; --warn:#9a6200; --warn-soft:#fdf3df;
  --na:#6b7a6d; --na-soft:#eef2ee; --urgent:#c8102e; --urgent-soft:#fff0f0; --urgent-strong:#c8102e; --on-sem:#ffffff; --empty:#e3ece3;
  --kg-navy:#1f4d2b; --kg-deep:#27592d; --kg-green:#4e9a51; --kg-light:#8ebf5e;
  color-scheme:light;
}
/* The website has no dark mode; keep the Kirby palette even when the phone is in dark mode */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#f6f9f5; --surface:#ffffff; --surface-2:#e9f3e6; --fill:#e3ece3; --ink:#2d3a2f; --muted:#56665a; --faint:#6b7a6d;
  --line:#e3ece3; --line-strong:#cddbcd;
  --band:#ffffff; --band-solid:#ffffff; --band-ink:#1f4d2b; --band-muted:#56665a;
  --accent:#35703a; --accent-hover:#27592d; --accent-ink:#ffffff; --accent-soft:#e9f3e6; --focus:#4e9a51;
  --ok:#35703a; --ok-soft:#e4f1e1; --bad:#c2410c; --bad-soft:#fdeee8; --warn:#9a6200; --warn-soft:#fdf3df;
  --na:#6b7a6d; --na-soft:#eef2ee; --urgent:#c8102e; --urgent-soft:#fff0f0; --urgent-strong:#c8102e; --on-sem:#ffffff; --empty:#e3ece3;
  --shadow:0 1px 2px rgba(31,77,43,.05),0 2px 12px rgba(31,77,43,.05); color-scheme:light}}
:root[data-theme="dark"]{
  --bg:#f6f9f5; --surface:#ffffff; --surface-2:#e9f3e6; --fill:#e3ece3; --ink:#2d3a2f; --muted:#56665a; --faint:#6b7a6d;
  --line:#e3ece3; --line-strong:#cddbcd;
  --band:#ffffff; --band-solid:#ffffff; --band-ink:#1f4d2b; --band-muted:#56665a;
  --accent:#35703a; --accent-hover:#27592d; --accent-ink:#ffffff; --accent-soft:#e9f3e6; --focus:#4e9a51;
  --ok:#35703a; --ok-soft:#e4f1e1; --bad:#c2410c; --bad-soft:#fdeee8; --warn:#9a6200; --warn-soft:#fdf3df;
  --na:#6b7a6d; --na-soft:#eef2ee; --urgent:#c8102e; --urgent-soft:#fff0f0; --urgent-strong:#c8102e; --on-sem:#ffffff; --empty:#e3ece3;
  --shadow:0 1px 2px rgba(31,77,43,.05),0 2px 12px rgba(31,77,43,.05); color-scheme:light}

h1,h2,h3{color:var(--kg-navy)}

/* Header: white bar with the Kirby logo and a green rule, like the website */
.band{border-bottom:3px solid var(--kg-green)}
.brand{flex-direction:row;align-items:center;gap:12px}
.brand-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.kg-logo{height:46px;width:auto;flex:none;display:block}
.brand .fac{color:var(--kg-deep);font-weight:600}
.brand h1{color:var(--kg-navy)}

/* Desktop tabs: Kirby green for the selected tab */
.tabs{background:var(--fill)}
.tabs a{color:var(--kg-navy)}
.tabs a[aria-current="page"]{background:var(--kg-navy);color:#ffffff;box-shadow:none}
.tabs a .count{background:var(--kg-light);color:var(--kg-navy)}
.tabs a .count.hot{background:var(--urgent-strong);color:#ffffff}

/* Phone: solid Kirby-green menu bar along the bottom */
@media (max-width:600px){
  .kg-logo{height:38px}
  .tabs{background:var(--kg-navy);-webkit-backdrop-filter:none;backdrop-filter:none;border-top:0;box-shadow:0 -4px 16px rgba(31,77,43,.18)}
  .tabs a{color:rgba(255,255,255,.78)}
  .tabs a[aria-current="page"]{color:#ffffff;background:rgba(255,255,255,.16);font-weight:700}
  .tabs a .count{background:var(--kg-light);color:var(--kg-navy)}
  .tabs a .count.hot{background:#e5484d;color:#ffffff}
}
