/* theme v2: caw */
/* shared mechanics only; every visual decision lives in the per-site file */
html body.tv2-caw .skip-link, html body.tv2-caw .skip { position:absolute !important; left:-9999px !important; top:auto; }
html body.tv2-caw .skip-link:focus, html body.tv2-caw .skip:focus { left:1rem !important; top:1rem !important; z-index:1000; background:#fff; color:#000; padding:.6rem 1rem; }
html body.tv2-caw *, html body.tv2-caw *::before, html body.tv2-caw *::after { box-sizing:border-box; }
html body.tv2-caw img, html body.tv2-caw svg { max-width:100%; }
html body.tv2-caw .tv2-wrap { width:min(100% - 2.5rem, var(--wrap, 72rem)); margin-inline:auto; }
html body.tv2-caw .tv2-post { display:block; padding:0; margin:0; }
html body.tv2-caw .tv2-post h1 { margin:0; text-wrap:balance; overflow-wrap:break-word; }
html body.tv2-caw .tv2-post h2 { text-wrap:balance; }
html body.tv2-caw .tv2-crumbs { display:flex; gap:.5rem; flex-wrap:wrap; font-size:.85rem; margin-bottom:1.25rem; }
html body.tv2-caw .tv2-crumbs a { text-decoration:none; }
html body.tv2-caw .tv2-lead-label { display:block; }
html body.tv2-caw .tv2-meta { display:flex; flex-wrap:wrap; gap:0; margin:1.5rem 0 0; padding:0; }
html body.tv2-caw .tv2-meta div { margin:0; }
html body.tv2-caw .tv2-meta dt, html body.tv2-caw .tv2-meta dd { margin:0; }
html body.tv2-caw .tv2-article { min-width:0; }
html body.tv2-caw .tv2-sec-body > *:first-child { margin-top:0; }
html body.tv2-caw .tv2-article ul, html body.tv2-caw .tv2-article ol { padding-left:1.25rem; }
html body.tv2-caw .tv2-article a { overflow-wrap:anywhere; }
html body.tv2-caw .tv2-sources .source-list li { margin:.4rem 0; }
html body.tv2-caw .tv2-more { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; }
html body.tv2-caw .tv2-h { display:inline; }
html body.tv2-caw .tv2-all { margin:1.75rem 0 0; }
html body.tv2-caw .latest-docket .docket-card:nth-child(n+9) { display:none !important; }
@media (max-width: 760px) {
  html body.tv2-caw .site-header .primary-nav, html body.tv2-caw .site-header .site-nav, html body.tv2-caw .masthead .topnav { display:flex !important; overflow-x:auto; flex-wrap:nowrap !important; white-space:nowrap; -webkit-overflow-scrolling:touch; scrollbar-width:none; max-width:100%; }
  html body.tv2-caw .site-header .primary-nav a, html body.tv2-caw .site-header .site-nav a, html body.tv2-caw .masthead .topnav a { flex:0 0 auto; }
}
/* neutralise the older shared homepage-polish hero decorations */
html body.tv2-caw .hero .container { display:block; grid-template-columns:none; }
html body.tv2-caw .hero .container::after, html body.tv2-caw .hero .container::before, html body.tv2-caw .hero .container:after { content:none !important; display:none !important; }
html body.tv2-caw .hero::before { content:none; }
html body.tv2-caw .hero .eyebrow { width:auto; height:auto; min-height:0; }
html body.tv2-caw .hero h1, html body.tv2-caw .hero .display { opacity:1; -webkit-text-fill-color:currentColor; }
html body.tv2-caw .hero::after, html body.tv2-caw .site-hero::after, html body.tv2-caw .hero-inner::after, html body.tv2-caw .hero-inner::before { content:none; }
html body.tv2-caw .hero .hero-grid { position:relative; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) { list-style:none; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) h3 { margin:.1rem 0 .3rem; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) p { margin:0; }
@media (max-width:760px){
  html body.tv2-caw .site-header .header-inner { flex-wrap:wrap; row-gap:.6rem; }
  html body.tv2-caw .site-header .header-inner > .primary-nav, html body.tv2-caw .site-header .header-inner > .site-nav { order:3; width:100%; gap:1.1rem; padding-bottom:.2rem; }
  html body.tv2-caw .site-header .brand-name { max-width:14rem; }
  html body.tv2-caw .pub-list li { grid-template-columns:1fr !important; gap:.4rem !important; }
}
html body.tv2-caw .tv2-kicker:empty{display:none}

/* CAW: watch desk. dark terminal UI, orange alerts, mono log rows */
html body.tv2-caw { --bg:#0c1220; --panel:#141c2e; --ink:#e8ecf4; --muted:#a3adc2; --orange:#f08a3c; --blue:#5b8cff; --line:#26314a; --wrap:76rem; background:var(--bg); color:var(--ink); font-family:'Archivo',system-ui,sans-serif; font-size:16px; }
html body.tv2-caw h1, html body.tv2-caw h2, html body.tv2-caw h3, html body.tv2-caw .display { font-family:'Archivo Black','Archivo',sans-serif; font-weight:400; letter-spacing:-.01em; color:#fff; }
html body.tv2-caw a { color:var(--orange); }
html body.tv2-caw p, html body.tv2-caw li { color:var(--ink); }
html body.tv2-caw .site-header { background:#060a14; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
html body.tv2-caw .site-header::before { content:'\25CF  LIVE WATCH  /  BILL 208  /  ALBERTA'; display:block; background:var(--orange); color:#0c1220; font-family:'JetBrains Mono',monospace; font-size:.68rem; font-weight:600; letter-spacing:.12em; padding:.3rem 1.25rem; }
html body.tv2-caw .site-header .brand-name { color:#fff; font-family:'Archivo Black',sans-serif; font-style:normal; font-size:.95rem; text-transform:uppercase; }
html body.tv2-caw .site-header .primary-nav a { font-family:'JetBrains Mono',monospace; color:var(--muted); font-size:.8rem; }
html body.tv2-caw .site-header .primary-nav a::before { content:'['; color:var(--line); } html body.tv2-caw .site-header .primary-nav a::after { content:']'; color:var(--line); }
html body.tv2-caw .site-header .primary-nav a:hover { color:#fff; }
html body.tv2-caw .site-header .header-cta { background:transparent; border:1px solid var(--orange); color:var(--orange); border-radius:0; font-family:'JetBrains Mono',monospace; font-size:.78rem; }
html body.tv2-caw .hero { background:radial-gradient(ellipse at 80% 0%,rgba(91,140,255,.22),transparent 55%),var(--bg) !important; padding:4.5rem 0; border-bottom:1px solid var(--line); }
html body.tv2-caw .hero::after { display:none !important; }
html body.tv2-caw .hero .eyebrow { font-family:'JetBrains Mono',monospace; color:var(--orange); font-style:normal; font-size:.8rem; text-transform:uppercase; }
html body.tv2-caw .hero .eyebrow::before { content:'> '; }
html body.tv2-caw .hero h1.display { color:#fff; font-size:clamp(2.4rem,5.6vw,4.6rem); line-height:1; max-width:18ch; }
html body.tv2-caw .hero .lede { color:var(--muted); }
html body.tv2-caw .btn { background:var(--orange); color:#0c1220; border:0; border-radius:0; font-weight:700; }
html body.tv2-caw .btn-secondary { background:transparent; color:#fff; border:1px solid var(--muted); }
html body.tv2-caw .section { border-bottom:1px solid var(--line); background:transparent; }
html body.tv2-caw .section .lede, html body.tv2-caw .section p { color:var(--muted); }
html body.tv2-caw .section-num { font-family:'JetBrains Mono',monospace; color:var(--orange); font-size:.85rem; font-style:normal; }
html body.tv2-caw .section-num::before { content:'0x'; color:var(--muted); }
html body.tv2-caw .docket-grid { display:block; border:1px solid var(--line); background:var(--panel); }
html body.tv2-caw .docket-card { display:grid !important; grid-template-columns:12rem minmax(0,1fr) auto; gap:1.5rem; align-items:center; background:transparent !important; border:0 !important; border-bottom:1px solid var(--line) !important; border-radius:0 !important; box-shadow:none !important; padding:1rem 1.25rem !important; }
html body.tv2-caw .docket-card:hover { background:#1a2440 !important; }
html body.tv2-caw .docket-kicker { margin:0 !important; font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--orange) !important; text-transform:uppercase; }
html body.tv2-caw .docket-card h3 { margin:0; font-family:'Archivo',sans-serif; font-weight:600; font-size:1.05rem; color:#fff; }
html body.tv2-caw .docket-card > p:not(.docket-kicker) { display:none; }
html body.tv2-caw .docket-link { font-family:'JetBrains Mono',monospace; font-size:.75rem; white-space:nowrap; }
html body.tv2-caw .docket-link::before { content:'open \2192 '; } 
html body.tv2-caw .tv2-all a { font-family:'JetBrains Mono',monospace; font-size:.85rem; }
html body.tv2-caw .tv2-all a::before { content:'$ cat '; color:var(--muted); }
html body.tv2-caw .site-footer { background:#060a14; border-top:1px solid var(--line); color:var(--muted); }
html body.tv2-caw input, html body.tv2-caw textarea, html body.tv2-caw select { background:#0c1220; color:#fff; border:1px solid var(--line); }
@media (max-width:760px){ html body.tv2-caw .docket-card{grid-template-columns:1fr;gap:.35rem} html body.tv2-caw .docket-link::before{content:''} }
/* post: alert bulletin */
html body.tv2-caw .tv2-post .tv2-hero { padding:3rem 0 2.5rem; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 90% 0%,rgba(240,138,60,.18),transparent 55%); }
html body.tv2-caw .tv2-post .tv2-crumbs, html body.tv2-caw .tv2-post .tv2-crumbs a { font-family:'JetBrains Mono',monospace; font-size:.75rem; color:var(--muted); }
html body.tv2-caw .tv2-post .tv2-kicker { display:inline-block; font-family:'JetBrains Mono',monospace; font-size:.75rem; background:var(--orange); color:#0c1220; padding:.25rem .6rem; margin:0 0 1rem; text-transform:uppercase; font-weight:600; }
html body.tv2-caw .tv2-post h1 { font-size:clamp(2rem,4.8vw,3.6rem); line-height:1.02; max-width:24ch; }
html body.tv2-caw .tv2-post .tv2-lead { color:var(--muted); font-size:1.15rem; max-width:46rem; margin:1.2rem 0 0; }
html body.tv2-caw .tv2-post .tv2-meta { margin-top:1.5rem; border:1px solid var(--line); background:var(--panel); font-family:'JetBrains Mono',monospace; font-size:.78rem; width:max-content; max-width:100%; }
html body.tv2-caw .tv2-post .tv2-meta div { padding:.5rem 1rem; border-right:1px solid var(--line); }
html body.tv2-caw .tv2-post .tv2-meta dt { color:var(--muted); font-size:.65rem; text-transform:uppercase; }
html body.tv2-caw .tv2-post .tv2-meta dd { color:#fff; }
html body.tv2-caw .tv2-post .tv2-grid { padding:2.5rem 0; max-width:54rem; margin-left:max(1.25rem, calc((100% - 76rem)/2)); }
html body.tv2-caw .tv2-article { line-height:1.7; }
html body.tv2-caw .tv2-sec { border-left:2px solid var(--line); padding:0 0 1.5rem 1.5rem; position:relative; }
html body.tv2-caw .tv2-sec::before { content:''; position:absolute; left:-7px; top:.4rem; width:12px; height:12px; background:var(--orange); }
html body.tv2-caw .tv2-sec h2 { font-size:1.4rem; margin:0 0 .6rem; }
html body.tv2-caw .tv2-n { font-family:'JetBrains Mono',monospace; font-size:.8rem; color:var(--orange); margin-right:.6rem; }
html body.tv2-caw .tv2-sources { border:1px solid var(--line); background:var(--panel); padding:1.25rem 1.5rem; margin-top:1rem; font-family:'JetBrains Mono',monospace; font-size:.8rem; }
html body.tv2-caw .tv2-sources h2 { font-size:.85rem; font-family:'JetBrains Mono',monospace; text-transform:uppercase; color:var(--orange); margin:0 0 .5rem; }
html body.tv2-caw .tv2-sources ul { list-style:none; padding:0; } html body.tv2-caw .tv2-sources li::before { content:'> '; color:var(--muted); }
html body.tv2-caw .tv2-more { padding:0 0 3.5rem; font-family:'JetBrains Mono',monospace; font-size:.85rem; }
@media (max-width:760px){ html body.tv2-caw .tv2-post .tv2-meta{width:auto} html body.tv2-caw .tv2-post .tv2-meta div{border-right:0} }
/* index */
html body.tv2-caw.tv2-index main h1 { font-size:clamp(2.2rem,5vw,3.8rem); }
html body.tv2-caw main .doc-banner { background:var(--panel) !important; border:1px solid var(--line) !important; border-left:4px solid var(--orange) !important; color:var(--ink) !important; border-radius:0; }
html body.tv2-caw main .doc-banner * { color:var(--ink) !important; }
html body.tv2-caw main :is(ul,ol):has(> li > .res-kind) { border:1px solid var(--line); background:var(--panel); padding:0; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) { display:grid; grid-template-columns:13rem 1fr; gap:1.5rem; padding:1rem 1.25rem; border-bottom:1px solid var(--line); background:transparent !important; border-radius:0 !important; box-shadow:none !important; }
html body.tv2-caw main :is(.res-kind, .idx-kind) { font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--orange) !important; text-transform:uppercase; background:none !important; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) h3 { font-family:'Archivo',sans-serif; font-weight:600; font-size:1.05rem; } html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) h3 a { color:#fff; }
html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) p { color:var(--muted); }
@media (max-width:760px){ html body.tv2-caw main :is(li:has(> .res-kind), .idx-item) { grid-template-columns:1fr; gap:.4rem; } }
