/* Conserve Henry — green dark palette for the whole tracker.
   Loaded last on every page; overrides the theme's light global styles and the
   light card/calendar tokens. Single source of colour truth is the :root block. */
html:root {
  --ch-bg: #0a120e;
  --ch-bg-2: #0e1a14;
  --ch-surface: #13221b;
  --ch-surface-2: #182c22;
  --ch-surface-3: #1e3629;
  --ch-border: #24402f;
  --ch-border-2: #2f5340;
  --ch-text: #dcebe1;
  --ch-text-2: #b9cfc1;
  --ch-muted: #8ea79a;
  --ch-green: #3ddc8b;
  --ch-green-deep: #0f7a4a;
  --ch-green-soft: #16351f;
  --ch-amber: #e8b45a;
  --ch-link: #5fe3a1;
  /* WordPress / TT5 presets so core blocks inherit the dark scheme */
  --wp--preset--color--base: #0a120e;
  --wp--preset--color--base-2: #0e1a14;
  --wp--preset--color--contrast: #dcebe1;
  --wp--preset--color--contrast-2: #b9cfc1;
  --wp--preset--color--contrast-3: #8ea79a;
  --wp--preset--color--accent: #3ddc8b;
  --wp--preset--color--accent-2: #0f7a4a;
  --wp--preset--color--accent-3: #16351f;
  --wp--preset--color--accent-4: #1e3629;
  --wp--preset--color--accent-5: #2f5340;
  --wp--preset--color--accent-6: #24402f;
  color-scheme: dark;
}
html, body, .wp-site-blocks, .wp-block-group, .is-layout-constrained > * {
  background-color: var(--ch-bg) !important;
  color: var(--ch-text) !important;
}
body { background-color: var(--ch-bg) !important; }
.wp-block-site-title, .wp-block-site-title a, h1, h2, h3, h4, h5, h6 { color: var(--ch-text) !important; }
a, a:visited { color: var(--ch-link); }
a:hover { color: #8ff5c0; }

/* header / footer chrome */
header.wp-block-template-part, footer.wp-block-template-part,
.wp-block-navigation, .wp-block-group.alignwide { background-color: var(--ch-bg) !important; }
header.wp-block-template-part { border-bottom: 1px solid var(--ch-border); }

/* footer line */
.ch-madein-wrap { border-top: 1px solid var(--ch-border); background: var(--ch-bg) !important; }
.ch-madein { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ch-muted) !important; }
.ch-tiger { background: none; border: 0; padding: 0 .1rem; margin: 0; font: inherit; line-height: 1; cursor: pointer; filter: grayscale(.25); transition: transform .12s ease, filter .12s ease; }
.ch-tiger:hover, .ch-tiger:focus-visible { transform: scale(1.25) rotate(-6deg); filter: none; outline: none; }
.ch-tiger-embed { max-width: 720px; margin: .9rem auto 0 !important; }
.ch-tiger-embed[hidden] { display: none; }
.ch-tiger-frame { display: block; width: 100%; box-sizing: border-box; aspect-ratio: 16 / 9; border: 1px solid var(--ch-border); border-radius: 6px; background: #000; }
.ch-tiger-alt { margin: .55rem 0 0; text-align: center; font-size: .7rem; }
.ch-tiger-alt a { color: var(--ch-link) !important; text-decoration: none; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* ---- cards ---- */
.ch-item { background: var(--ch-surface) !important; border: 1px solid var(--ch-border) !important; }
.ch-toggle, .ch-toggle:hover { background: transparent !important; color: var(--ch-text) !important; }
.ch-toggle .ch-title { color: var(--ch-text) !important; }
.ch-meta { color: var(--ch-muted) !important; }
.ch-ex { color: var(--ch-text-2) !important; }
.ch-src { color: var(--ch-green) !important; }
.ch-none { color: var(--ch-muted) !important; }
.ch-body { color: var(--ch-text-2); }
.ch-sum { color: var(--ch-text-2) !important; }
.ch-tag { background: var(--ch-surface-3) !important; color: var(--ch-text-2) !important; border-color: var(--ch-border-2) !important; }
.ch-tag.ch-pdf { background: #2a1c1c !important; color: #f0a5a5 !important; }
.ch-tag.ch-min-tag { background: #1c2a33 !important; color: #9fd3f0 !important; }
.ch-tag.ch-text { background: var(--ch-green-soft) !important; color: var(--ch-green) !important; }
.ch-tag.ch-video { background: #2a2233 !important; color: #c9a7f0 !important; }
.ch-tag.ch-past { background: var(--ch-surface-2) !important; color: var(--ch-muted) !important; }
.ch-tag.ch-upcoming, .ch-tag.ch-up-far { background: #26301a !important; color: #d7e88a !important; }
.ch-tag.ch-up-mid { background: #33290f !important; color: var(--ch-amber) !important; }
.ch-tag.ch-up-near { background: #3a1f14 !important; color: #ffa06a !important; }

/* agenda + packet + transcript panels */
.ch-agendablock, .ch-transview { background: var(--ch-surface-2) !important; border: 1px solid var(--ch-border) !important; }
.ch-agendahead, .ch-transhead { color: var(--ch-green) !important; background: var(--ch-surface-2) !important; }
.ch-agendasection { color: var(--ch-green) !important; }
.ch-adsec, .ch-adesc, .ch-agendatext, .ch-agendaitems li, .ch-agendasubs li { color: var(--ch-text-2) !important; }
.ch-agendatext { background: var(--ch-surface) !important; border-color: var(--ch-border) !important; color: var(--ch-text-2) !important; }
.ch-agendaitems strong, .ch-agendasubs strong { color: var(--ch-text) !important; }
.ch-plainbox { background: #060d09 !important; color: #cfe3d6 !important; border: 1px solid var(--ch-border) !important; }
.ch-trow { border-bottom: 1px solid var(--ch-border) !important; }
.ch-ttime { color: var(--ch-green) !important; }
.ch-ttext { color: var(--ch-text-2) !important; }

/* buttons */
.ch-pdf-btn, .ch-plain-btn, .ch-video-btn, .ch-trans-btn, .ch-more {
  background: var(--ch-green-deep) !important; color: #eafff3 !important;
  border: 1px solid var(--ch-border-2) !important;
}
.ch-pdf-btn:hover, .ch-plain-btn:hover, .ch-video-btn:hover, .ch-trans-btn:hover, .ch-more:hover {
  background: #14a05f !important; color: #ffffff !important;
}
.ch-juris-btn { background: var(--ch-surface-2) !important; color: var(--ch-text-2) !important; border-color: var(--ch-border-2) !important; }
.ch-juris-btn.active { background: var(--ch-green-deep) !important; color: #ffffff !important; }
.ch-search input, .ch-commentform input, .ch-commentform textarea {
  background: var(--ch-surface-2) !important; color: var(--ch-text) !important;
  border: 1px solid var(--ch-border-2) !important;
}
.ch-search input::placeholder, .ch-commentform input::placeholder, .ch-commentform textarea::placeholder { color: var(--ch-muted) !important; }

/* comments */
.ch-commentbar { background: var(--ch-surface-2) !important; color: var(--ch-text-2) !important; border-color: var(--ch-border) !important; }
.ch-comments, .ch-comment { color: var(--ch-text-2) !important; }
.ch-comment { border-color: var(--ch-border) !important; }
.ch-cmeta { color: var(--ch-muted) !important; }

/* ---- calendar ---- */
.ch-cal, .ch-cal-head { background: transparent !important; color: var(--ch-text) !important; }
.ch-cal table, .ch-cal thead, .ch-cal tbody, .ch-cal tr { background: transparent !important; }
.ch-cal td, .ch-cal th { border-color: var(--ch-border) !important; }
.ch-cal td { background: rgba(150, 240, 195, 0.20) !important; color: var(--ch-text) !important; }
.ch-cal th { background: var(--ch-green-deep) !important; color: #ffffff !important; }
.ch-cal td.ch-out, .ch-cal td.ch-out .ch-d { background: rgba(150, 240, 195, 0.08) !important; color: #6d8a7a !important; }
.ch-cal td.ch-today { outline: 2px solid #e5484d !important; outline-offset: -2px; box-shadow: inset 0 0 0 1px #e5484d !important; }
.ch-cal .ch-d { color: #cfe9d9 !important; }
.ch-month { color: var(--ch-text) !important; }
.ch-cal-head .ch-clock { color: var(--ch-text) !important; }
.ch-d { background: transparent !important; border-color: transparent !important; color: #cfe9d9 !important; }
.ch-d.ch-today { border-color: #e5484d !important; }
.ch-chip { font-weight: 700 !important; text-shadow: 0 1px 1px rgba(0,0,0,.28); }
.ch-dot { border: 1px solid var(--ch-bg) !important; }
.ch-detail, .ch-legend, .ch-key, .ch-note { color: var(--ch-text-2) !important; background: transparent !important; }
.ch-note { color: var(--ch-muted) !important; }

/* images / pdf viewer frame */
.ch-pdfbox iframe, .ch-pdfbox { background: var(--ch-surface) !important; }
img { color-scheme: dark; }

/* cookie consent banner (third-party) */
[class*="cookieadmin"], #cookieadmin_consent_container, .cookieadmin_consent_inside {
  background: var(--ch-surface) !important; color: var(--ch-text) !important;
  border-color: var(--ch-border) !important;
}
[class*="cookieadmin"] p, [class*="cookieadmin"] h3, [class*="cookieadmin"] span { color: var(--ch-text-2) !important; }
.cookieadmin_btn, .cookieadmin_btn.cookieadmin_customize_btn, .cookieadmin_btn.cookieadmin_reject_btn {
  background: var(--ch-surface-2) !important; color: var(--ch-text) !important;
  border: 1px solid var(--ch-border-2) !important;
}
.cookieadmin_btn.cookieadmin_accept_btn { background: var(--ch-green-deep) !important; color: #ffffff !important; }

/* scrollbars */
* { scrollbar-color: var(--ch-border-2) var(--ch-bg-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ch-bg-2); }
::-webkit-scrollbar-thumb { background: var(--ch-border-2); border-radius: 5px; }
