/* dentontax.com 2.0 DRAFT — the only stylesheet. Branding from content-pack §3 (live 1.1 tokens). */
:root{
  --bg:#f2f2f7; --surface:#fff; --fg:#1c1c1e; --muted:#6c6c70;
  --accent:#0a5bd3; --accent-fg:#f5f8ff; --border:#00000014; --rust:#b5522b;
  --shadow:0 8px 30px #00000014; --radius:20px;
  --font-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --font-display:"Newsreader",Georgia,serif;
  --col:480px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#050505; --surface:#1c1c1e; --fg:#f4f4f5; --muted:#98989d;
  --accent:#4d8dff; --accent-fg:#061428; --border:#ffffff1a; --rust:#d9774f;
  --shadow:0 8px 30px #00000066; color-scheme:dark;
}
@media (min-width:900px){:root{--col:640px}}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.55 var(--font-body);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--surface);padding:.75rem 1rem;z-index:100}
.skip:focus{left:.5rem;top:.5rem}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .inner{max-width:var(--col);margin:0 auto;padding:.5rem 1rem;display:flex;align-items:center;gap:.75rem;min-height:56px}
.brand{display:flex;flex-direction:column;justify-content:center;min-height:44px;color:var(--fg);text-decoration:none;font-weight:700;font-size:12px;letter-spacing:.06em;line-height:1.1;text-transform:uppercase;flex:none}
.brand span{color:var(--muted);font-weight:600}
.candidate{flex:1;text-align:center;font-family:var(--font-display);font-weight:700;font-size:13px;line-height:1.2;margin:0}
.candidate .for{font-size:.8em}
.theme-toggle{flex:none;width:44px;height:44px;border-radius:999px;border:0;background:var(--surface);color:var(--fg);box-shadow:0 2px 8px #00000014;cursor:pointer;font-size:18px}

/* Column + cards ("bubbles") */
main{max-width:var(--col);margin:0 auto;padding:1rem}
.card{position:relative;margin:0 0 1.25rem;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);overflow:hidden;padding:1.25rem}
.card > :last-child{margin-bottom:0}
.card p{margin:0 0 .75rem}
.card h1,.card h2{font-family:var(--font-display);line-height:1.15;margin:0 0 .6rem}
.card h1{font-size:28px;font-weight:700}
.card h2{font-size:23px;font-weight:700}
.card h3{font-size:16px;font-weight:700;margin:1rem 0 .35rem}
.small{font-size:14px;color:var(--muted)}
.source{font-size:13px;color:var(--muted)}
.eyebrow{display:inline-block;margin:0 0 .5rem;padding:.25rem .6rem;border-radius:999px;background:var(--rust);color:#fff;font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.eyebrow.plain{background:none;color:var(--muted);padding:0}
.for{font-size:.8em}                 /* Elec. Code 255.006: "for" >= 1/2 office-name size */

/* Campaign page: the live alternate tilt/offset */
.tilt .card:nth-child(odd){transform:rotate(-1deg)}
.tilt .card:nth-child(even){transform:rotate(1deg) translateX(6px)}
@media (max-width:420px){.tilt .card:nth-child(even){transform:rotate(1deg)}}

/* Full-bleed media inside a card */
.bleed{display:block;width:calc(100% + 2.5rem);max-width:none;margin:-1.25rem -1.25rem 1rem}
.credit{font-size:12px;color:var(--muted);margin-top:-.6rem!important}

/* Image-background bubbles */
.bg-card{color:#fff;background-size:cover;background-position:center;min-height:240px;display:flex;flex-direction:column;justify-content:flex-end}
.bg-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 20%,#000000b3 100%)}
.bg-card > *{position:relative}
.bg-card a{color:#cfe0ff}
.hero-happy{background-image:url(/assets/img/happy24.jpg);min-height:320px}
.hero-homestead{background-image:url(/assets/img/homestead-bg.jpg)}
.hero-homestead::before{background:#000000a6}  /* dimmed per 1.2 */
.quote-card{background-image:url(/assets/img/finger.jpg);min-height:280px}
.quote-card::before{background:#000000b3}
blockquote{margin:0 0 .75rem;font-family:var(--font-display);font-size:20px;line-height:1.35}

/* Buttons */
.actions{display:flex;flex-direction:column;gap:.6rem;margin:1rem 0}
.btn{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.7rem 1rem;border-radius:14px;background:var(--bg);color:var(--fg);font:600 16px var(--font-body);text-align:center;text-decoration:none;border:0;cursor:pointer}
.btn-primary{background:var(--accent);color:var(--accent-fg)}
.bg-card .btn{background:#ffffffe6;color:#1c1c1e}
.btn[disabled]{cursor:not-allowed;opacity:.7}
.audio-btn{justify-content:flex-start;width:100%;text-align:left}
.audio-btn .dot{width:36px;height:36px;border-radius:999px;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;flex:none}
.audio-btn span span{display:block;font-size:13px;font-weight:400;color:var(--muted)}

/* Vote card */
.vote{border:2px solid var(--rust)}
.hours{list-style:none;margin:0 0 .5rem;padding:0;font-size:15px}
.hours li{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-bottom:1px solid var(--border)}
.hours li span:last-child{font-weight:600;white-space:nowrap}

/* Lists, callouts, details */
.list,.goals{margin:0 0 .9rem;padding-left:1.25rem}
.list li,.goals li{margin-bottom:.4rem}
.callout{padding:.8rem;border-radius:12px;background:var(--bg);font-size:15px}
.board-quote{font-size:17px;line-height:1.4;border-left:4px solid var(--rust)} /* working-r2: Form 2-68 quote */
details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--accent)}
details ol{padding-left:1.4rem;font-size:14px}


/* Nav pills + footer */
.site-nav{max-width:var(--col);margin:0 auto;padding:0 1rem}
.site-nav ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.site-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:14px;background:var(--surface);color:var(--fg);font-weight:700;text-decoration:none;box-shadow:0 2px 8px #00000014}
.site-nav a[aria-current="page"]{background:var(--accent);color:var(--accent-fg)}
.site-footer{max-width:var(--col);margin:1.5rem auto 2.5rem;padding:0 1rem;text-align:center;font-size:13px;line-height:1.6;color:var(--muted)}
.site-footer p{margin:.4rem 0}
.disclosure{font-weight:700;color:var(--fg)}
.footlinks a{color:inherit;display:inline-block;padding:.5rem .25rem;min-height:44px}
.donate{display:inline-flex;align-items:center;min-height:44px;padding:.5rem 1.1rem;border-radius:999px;background:var(--surface);color:var(--fg);font-weight:600;text-decoration:none;box-shadow:0 2px 8px #00000014}
.card h2.sub{font-family:var(--font-body);font-size:16px;margin:1rem 0 .35rem}
.bg-card .eyebrow.plain{color:#f0e6dd}
.bg-card .small{color:#e6e6e6}

/* Intro video bubble (main page M1). Poster <picture> is the base layer; the <video> fades in only once it is actually playing,
   so a missing/broken mp4 never shows a broken player. */
.intro-video{position:relative;margin:-1.25rem -1.25rem .6rem;aspect-ratio:16/9;background:#1c1c1e;overflow:hidden}
.intro-video__poster,.intro-video__poster img,.intro-video__media{position:absolute;inset:0;width:100%;height:100%;display:block}
.intro-video__poster img,.intro-video__media{object-fit:cover;object-position:50% 35%}
.intro-video__media{opacity:0;background:#000}
.intro-video[data-state="playing"] .intro-video__media,.intro-video[data-state="paused"] .intro-video__media,
.intro-video[data-state="sound"] .intro-video__media,.intro-video[data-state="ended"] .intro-video__media{opacity:1}
.intro-video[data-state="sound"] .intro-video__media{object-fit:contain}
.intro-video[data-state="unavailable"] .intro-video__media{display:none}
.intro-video__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:88px;height:88px;border-radius:999px;border:3px solid #fff;
  background:#000000a6;color:#fff;font-size:34px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0 0 0 6px;box-shadow:0 6px 24px #0006}
.intro-video__play:hover{background:#0a5bd3e6}
.intro-video__play:focus-visible,.intro-video__unmute:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (max-width:420px){.intro-video__play{width:72px;height:72px;font-size:28px}}
.intro-video[data-state="sound"] .intro-video__play{display:none}
.intro-video__unmute{position:absolute;right:.75rem;bottom:.75rem;min-height:44px;padding:.5rem .9rem;border-radius:999px;border:0;background:#000000b3;color:#fff;font:600 15px var(--font-body);cursor:pointer}
.intro-video__unmute[hidden]{display:none}
.intro-video__note{position:absolute;left:50%;bottom:.9rem;transform:translateX(-50%);margin:0;padding:.4rem .9rem;border-radius:999px;background:#000000c2;color:#fff;font:700 15px var(--font-body);white-space:nowrap}
.intro-video__note[hidden]{display:none}
/* r3: the intro bubble is the video only (no caption, no disclosure line): the card hugs the video, no gap */
#intro.card{padding:0}
#intro .intro-video{margin:0}

/* Second video bubble (main page M1b). */
/* 2.0c: always visible; with no video the panel shows the branded gradient (spec section 4 "plain branded panel") + play button */
.explainer-video{position:relative;margin:-1.25rem -1.25rem .6rem;aspect-ratio:16/9;background:linear-gradient(135deg,#1c1c1e,#3b2418);overflow:hidden}
.explainer-video[data-state="unavailable"] .explainer-video__media{display:none}
.explainer-video__media{display:block;width:100%;height:100%;object-fit:cover;background:#1c1c1e}
.explainer-video__play[hidden]{display:none}

/* 2.0b: homestead chart inside the image-background bubble */
.chart{margin:.4rem 0 .9rem;padding:.5rem;border-radius:12px;background:#fff}
.chart img{display:block;width:100%;height:auto;border-radius:8px}
.chart figcaption{margin-top:.5rem;font-size:14px;line-height:1.45;color:#1c1c1e}
#explainer h2.sub{margin-top:.2rem}

/* 2.0c #16: tap targets >= 44 px.
   Standalone text links (.tap) and 404 buttons get a real 44 px box; links inside running text get invisible vertical padding
   that enlarges the touch area to ~44 px without changing the line layout (inline padding doesn't move lines). */
.tap{display:inline-flex;align-items:center;min-height:44px;padding:.25rem 0}
main p a:not(.btn):not(.tap),main li a:not(.btn),main figcaption a,.source a{padding-block:max(0px,calc((44px - 1.25em) / 2))}
.chart > a{display:block}

/* 2.0d: First Time video bubble (main 3), restored from 1.1: title above, 16:9 poster/video bleeding to the card's bottom edge */
.ft-title{font-size:20px!important;line-height:1.3!important}
.ft-video{position:relative;margin:.75rem -1.25rem -1.25rem;aspect-ratio:16/9;background:#000;overflow:hidden}
.ft-video__poster,.ft-video__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ft-video__media{opacity:0;object-fit:contain;background:#000}
.ft-video[data-state="playing"] .ft-video__media,.ft-video[data-state="ended"] .ft-video__media{opacity:1}
.ft-video[data-state="unavailable"] .ft-video__media{display:none}
.ft-video__play[hidden]{display:none}
.ft-video--top{margin:-1.25rem -1.25rem 1rem} /* 2.0e1: Flower Mound bubbles (video above the heading) */
/* 2.0d: 1.1 hearings link was a block-level accent link */
.hearings-link{font-weight:500;line-height:1.35}
#hearings .audio-btn{margin-top:.5rem}
.quote-card h2{color:#fff}

/* 2.0d: chat.mp4 bubbles (main = navigate to /campaign/, campaign = player). Poster <picture> is the base layer; the video shows once playing. */
.chat-video{position:relative;margin:-1.25rem -1.25rem .6rem;aspect-ratio:16/9;background:#1c1c1e;overflow:hidden}
.chat-video__poster,.chat-video__poster img,.chat-video__media{position:absolute;inset:0;width:100%;height:100%;display:block}
.chat-video__poster img,.chat-video__media{object-fit:cover}
.chat-video__media{opacity:0;background:#000}
.chat-video[data-state="playing"] .chat-video__media,.chat-video[data-state="paused"] .chat-video__media,
.chat-video[data-state="sound"] .chat-video__media,.chat-video[data-state="ended"] .chat-video__media{opacity:1}
.chat-video[data-state="sound"] .chat-video__media{object-fit:contain}
.chat-video[data-state="unavailable"] .chat-video__media{display:none}
.chat-video__play[hidden],.chat-video__unmute[hidden]{display:none}
.chat-video__unmute{z-index:2}
.chat-card{scroll-margin-top:5.5rem} /* arrival scroll lands below the sticky header */
