/*
Theme Name: TEBEA Advocacy Theme
Theme URI: https://example.com
Author: Brad Underwood / ChatGPT
Description: Custom advocacy theme for the Texas Educator Benefits Expansion Act.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: tebea
*/

:root{
  --navy:#12365d;
  --texas-red:#b92032;
  --gold:#c89b3c;
  --cream:#fff8ea;
  --sky:#eaf4ff;
  --ink:#1f2933;
  --muted:#667085;
  --line:#d9e2ec;
  --white:#fff;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.55;background:#fff}
a{color:var(--navy)}
.tebea-container{max-width:1180px;margin:0 auto;padding:0 22px}
.tebea-topbar{background:#fff;border-bottom:3px solid var(--navy);padding:10px 0}
.tebea-topbar .tebea-container{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.tebea-brand{display:flex;align-items:center}
.tebea-brand img{height:62px;width:auto;display:block}
.tebea-nav a{color:var(--navy);text-decoration:none;margin-left:20px;font-weight:700;font-size:15.5px}
.tebea-nav a:hover{text-decoration:underline}
.tebea-hero{position:relative;color:white;background:
linear-gradient(90deg,rgba(18,54,93,.94),rgba(18,54,93,.62)),
url('assets/hero-classroom.jpg');background-size:cover;background-position:center 30%;padding:92px 0}
.tebea-hero h1{font-size:clamp(38px,5vw,66px);line-height:1.05;margin:0 0 18px;font-weight:900}
.tebea-hero p{font-size:clamp(18px,2vw,24px);max-width:880px;margin:0 0 28px}
.tebea-btn{display:inline-block;border:0;border-radius:9px;background:var(--gold);color:white!important;padding:14px 24px;font-weight:800;text-decoration:none;margin:6px 10px 6px 0;cursor:pointer}
.tebea-btn.secondary{background:white;color:var(--navy)!important}
.tebea-section{padding:64px 0}
.tebea-section.alt{background:var(--cream)}
.tebea-section.sky{background:var(--sky)}
.tebea-section h2{font-size:clamp(30px,3.2vw,44px);line-height:1.15;color:var(--navy);margin:0 0 18px}
.tebea-lead{font-size:20px;max-width:920px;color:#344054}
.tebea-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:28px}
.tebea-card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 8px 22px rgba(16,24,40,.06)}
.tebea-card h3{margin-top:0;color:var(--navy)}
.tebea-icon{font-size:34px;margin-bottom:10px}
.tebea-checklist{columns:2;column-gap:40px;margin-top:18px}
.tebea-checklist li{break-inside:avoid;margin:0 0 10px}
.tebea-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:26px}
.tebea-photo{min-height:220px;border-radius:16px;background-size:cover;background-position:center;display:flex;align-items:end;overflow:hidden;border:1px solid var(--line)}
.tebea-photo span{display:block;width:100%;background:rgba(18,54,93,.82);color:white;padding:12px 14px;font-weight:800}
.tebea-form-wrap{background:white;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 8px 22px rgba(16,24,40,.06)}
.tebea-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tebea-field.full{grid-column:1/-1}
.tebea-field label{font-weight:800;display:block;margin-bottom:6px}
.tebea-field input,.tebea-field textarea,.tebea-field select{width:100%;padding:13px;border:1px solid #b8c0cc;border-radius:8px;font-size:16px}
.tebea-field textarea{min-height:100px}
.tebea-small{font-size:14px;color:var(--muted)}
.tebea-notice{background:#f9fafb;border-left:5px solid var(--gold);padding:14px 18px;margin:18px 0;border-radius:8px}
.tebea-footer{background:var(--navy);color:#fff;padding:38px 0;margin-top:40px}
.tebea-footer a{color:#fff}
.tebea-doc-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:24px}
.tebea-doc{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}
.tebea-doc h3{margin-top:0}
.tebea-endorsement{border-left:5px solid var(--gold);background:#fff;border-radius:10px;padding:18px;margin-bottom:16px;box-shadow:0 6px 18px rgba(16,24,40,.05)}
.tebea-endorsement strong{color:var(--navy)}
.tebea-mapband{background:
linear-gradient(90deg,rgba(185,32,50,.90),rgba(18,54,93,.88)),
url('assets/band-bluebonnets.jpg');background-size:cover;background-position:center;color:white;border-radius:18px;padding:34px;margin-top:30px}
/* ---------- single-page additions ---------- */

html{scroll-behavior:smooth}
/* offset anchor targets so the sticky-ish header never covers a heading */
section[id]{scroll-margin-top:20px}

.tebea-skip{position:absolute;left:-9999px;background:var(--gold);color:#fff;padding:12px 18px;z-index:100;font-weight:800}
.tebea-skip:focus{left:12px;top:12px}

.tebea-brand{color:#fff!important;text-decoration:none}
.tebea-nav-cta{background:var(--gold);border-radius:7px;padding:8px 16px}
.tebea-nav-cta:hover{text-decoration:none;filter:brightness(1.08)}

.tebea-eyebrow{font-size:15px!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)!important;margin:0 0 14px!important}

/* appears only once a bill number is entered in the Customizer */
.tebea-billbadge{display:inline-block;background:var(--texas-red);color:#fff;border-radius:8px;padding:9px 18px;font-size:17px!important;font-weight:700;margin:0 0 22px!important}

/* content pulled from a WordPress Page — arbitrary editor markup */
.tebea-userchunk{max-width:900px;font-size:17px}
.tebea-userchunk h2{font-size:28px;margin-top:32px}
.tebea-userchunk h3{color:var(--navy);font-size:21px;margin-top:26px}
.tebea-userchunk ul,.tebea-userchunk ol{padding-left:24px}
.tebea-userchunk li{margin-bottom:8px}
.tebea-userchunk img{max-width:100%;height:auto;border-radius:12px}
.tebea-userchunk blockquote{border-left:5px solid var(--gold);margin:22px 0;padding:4px 0 4px 20px;color:#344054}
.tebea-userchunk table{width:100%;border-collapse:collapse}
.tebea-userchunk td,.tebea-userchunk th{border:1px solid var(--line);padding:10px 12px}

/* stat band under the hero */
.tebea-statband{background:var(--navy);color:#fff;padding:36px 0}
.tebea-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:26px}
.tebea-stat{border-left:4px solid var(--gold);padding-left:16px}
.tebea-stat-num{display:block;font-size:clamp(30px,3.6vw,42px);font-weight:900;line-height:1.05;color:#fff}
.tebea-stat-label{display:block;font-size:15px;margin-top:8px;color:#cfdcea}

/* highlighted evidence block */
.tebea-callout{background:#fff;border:1px solid var(--line);border-left:6px solid var(--texas-red);border-radius:16px;padding:26px 28px;margin:30px 0;box-shadow:0 8px 22px rgba(16,24,40,.06)}
.tebea-callout h3{margin-top:0;color:var(--navy)}

/* data tables */
.tebea-table-wrap{overflow-x:auto;margin:18px 0}
.tebea-table{width:100%;border-collapse:collapse;font-size:16px;min-width:520px}
.tebea-table th{background:var(--navy);color:#fff;text-align:left;padding:12px 14px;font-size:15px;vertical-align:bottom}
.tebea-table td{padding:12px 14px;border-bottom:1px solid var(--line)}
.tebea-table tbody tr:nth-child(even){background:#fafbfc}
.tebea-row-muted td{color:var(--muted)}
.tebea-row-flag td{background:#fff4f5!important;color:var(--texas-red)}
.tebea-source{font-size:13.5px;color:var(--muted);line-height:1.5;margin-top:10px}

/* "what it does not do" list */
.tebea-donot{list-style:none;padding:0;margin:26px 0 0;display:grid;gap:14px}
.tebea-donot li{background:#fff;border:1px solid var(--line);border-left:5px solid #2e7d5b;border-radius:12px;padding:16px 20px}
.tebea-donot strong{color:var(--navy)}

/* layered audience blocks */
.tebea-audience{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px 28px;margin-top:22px;box-shadow:0 8px 22px rgba(16,24,40,.05)}
.tebea-audience h3{margin-top:0;color:var(--texas-red);font-size:22px}
.tebea-audience p:last-child{margin-bottom:0}

/* timeline */
.tebea-timeline{margin-top:28px;border-left:3px solid var(--line);padding-left:0}
.tebea-tl-item{display:grid;grid-template-columns:96px 1fr;gap:18px;padding:16px 0 16px 22px;border-bottom:1px solid var(--line);align-items:start}
.tebea-tl-item:last-child{border-bottom:0}
.tebea-tl-year{font-weight:900;color:var(--navy);font-size:20px}
.tebea-tl-now{background:var(--sky);border-radius:0 12px 12px 0}
.tebea-tl-now .tebea-tl-year{color:var(--texas-red)}

/* FAQ */
.tebea-faq{margin-top:26px;display:grid;gap:12px}
.tebea-faq details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 20px}
.tebea-faq summary{cursor:pointer;font-weight:800;color:var(--navy);padding:18px 0;font-size:17.5px;list-style-position:outside}
.tebea-faq summary:hover{color:var(--texas-red)}
.tebea-faq details[open] summary{border-bottom:1px solid var(--line)}
.tebea-faq details p{margin:16px 0 20px}

/* The plugin nests its consent checkboxes inside .tebea-field labels. The
   generic `.tebea-field input{width:100%}` rule above was stretching them the
   full width of the row, so the box floated above its own label text. */
.tebea-field input[type="checkbox"]{width:auto;margin:1px 10px 0 0;transform:scale(1.3);transform-origin:left center;flex:0 0 auto}
.tebea-field label:has(> input[type="checkbox"]){display:flex;align-items:flex-start;font-weight:600;line-height:1.5;cursor:pointer;gap:6px}

.tebea-final-cta{text-align:center}
.tebea-final-cta .tebea-lead{margin-left:auto;margin-right:auto}
.tebea-band .tebea-final-cta h2,.tebea-band .tebea-final-cta p{margin-left:auto;margin-right:auto}

/* full-bleed photo bands between sections */
.tebea-band{position:relative;min-height:340px;display:flex;align-items:center;background-size:cover;background-position:center;color:#fff}
.tebea-band::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,54,93,.93),rgba(18,54,93,.55))}
/* width:100% — as a flex item the container would otherwise shrink-wrap to its
   content and drift right, breaking the left edge every other section shares */
.tebea-band .tebea-container{position:relative;z-index:1;width:100%;padding-top:44px;padding-bottom:44px}
.tebea-band h2{color:#fff!important;margin-top:0;max-width:820px}
.tebea-band p{max-width:760px;font-size:19px;margin-bottom:0}
.tebea-band--capitol{background-image:url('assets/band-capitol.jpg');background-position:center 32%}
.tebea-band--classroom{background-image:url('assets/band-empty-classroom.jpg')}
.tebea-band--bluebonnets{background-image:url('assets/band-bluebonnets.jpg')}
.tebea-band--bluebonnets::before{background:linear-gradient(90deg,rgba(18,54,93,.90),rgba(185,32,50,.72))}

/* the endorsement CTA sits on the bluebonnet band */
.tebea-band .tebea-btn.secondary{background:#fff;color:var(--navy)!important}

/* photo credit line */
.tebea-credits{font-size:12.5px;color:#93a5b8;line-height:1.6;margin-top:18px}
.tebea-credits a{color:#c3d2e2}

.tebea-footer .tebea-small{color:#b9c8d8}

@media(max-width:720px){
  .tebea-form-grid{grid-template-columns:1fr}
  .tebea-checklist{columns:1}
  .tebea-nav a{display:inline-block;margin:8px 10px 0 0}
  .tebea-section{padding:44px 0}
  .tebea-callout,.tebea-audience{padding:20px}
  .tebea-tl-item{grid-template-columns:1fr;gap:6px;padding-left:16px}
}
