/* UX v6: compact drawer, 30-second daily brief, and ballot explorer */

/* Drawer should feel attached to the hamburger, not like a modal sheet. */
.menu-panel{width:310px!important;max-width:calc(100vw - 24px)!important;right:max(14px,calc((100vw - 1180px)/2 + 22px))!important;padding:10px!important;border-radius:14px!important;box-shadow:0 18px 44px rgba(8,30,47,.22)!important}
.menu-panel-head{padding:7px 8px 8px!important;font-size:10px!important;letter-spacing:.12em!important}
.menu-primary,.menu-support{gap:2px!important}
.menu-link,.menu-support-link{min-height:42px!important;padding:8px 9px!important;border-radius:9px!important;font-size:14px!important}
.menu-link:hover,.menu-support-link:hover{background:var(--soft)!important;text-decoration:none!important}
.menu-separator{margin:7px 4px!important}
.menu-panel::before{right:17px!important;top:-7px!important;width:13px!important;height:13px!important}

/* Source methodology now has its own page. */
.landing-home #method,.landing-home .method{display:none!important}

/* Homepage 30-second brief */
.daily-brief{margin:0 auto 58px;padding:0;max-width:1180px}
.daily-brief-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.daily-brief-title-wrap{display:grid;gap:4px}
.daily-brief-kicker{font-size:11px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#5c788e}
.daily-brief h2{font-size:clamp(28px,3.5vw,38px)!important;margin:0!important;font-weight:650!important}
.daily-brief-meta{font-size:12px;color:var(--muted);white-space:nowrap}
.daily-brief-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.brief-card{display:flex;flex-direction:column;min-height:206px;padding:17px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 6px 22px rgba(20,54,79,.045);text-decoration:none}
.brief-tag{display:inline-flex;align-self:flex-start;padding:4px 8px;border-radius:999px;background:#eef6fb;color:#386582;font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
.brief-card h3{margin:13px 0 7px;font-size:18px!important;line-height:1.16!important;font-weight:680!important;color:var(--navy)}
.brief-card p{margin:0;color:#50687c;font-size:13.5px;line-height:1.45}
.brief-why{margin-top:auto!important;padding-top:13px;color:#2f5069!important;font-size:12.5px!important;font-weight:600}
.daily-brief-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.daily-brief-footer p{margin:0;color:var(--muted);font-size:12px}
.daily-brief-footer a{font-size:13px;font-weight:650;color:var(--navy)}

/* Your ballot quick explorer */
.ballot-quick{margin:58px 0;padding:24px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,var(--card),var(--soft-blue-2));box-shadow:0 10px 32px rgba(20,54,79,.055)}
.ballot-quick-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.ballot-quick h2{margin:0!important;font-size:clamp(28px,3.5vw,38px)!important;font-weight:650!important}
.ballot-quick p{margin:5px 0 0;color:var(--muted);font-size:14px}
.ward-select{min-width:190px;padding:10px 38px 10px 13px;border:1px solid #bfd2df;border-radius:999px;background:var(--card);color:var(--ink)}
.ballot-grid{display:grid;grid-template-columns:1fr 1.25fr 1.25fr;gap:11px}
.ballot-block{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.ballot-block small{display:block;margin-bottom:7px;color:#648096;font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.ballot-block b{display:block;font-size:16px;color:var(--navy);margin-bottom:8px}
.ballot-names{display:flex;gap:6px;flex-wrap:wrap}
.ballot-name{padding:5px 8px;border-radius:999px;background:var(--soft);font-size:12px;color:#3f5d73}
.ballot-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.ballot-actions a{font-size:13px;font-weight:650;color:var(--navy)}

/* Dedicated updates / ballot pages */
.content-shell{max-width:980px;margin:0 auto;padding:44px 22px 64px}
.content-shell h1{font-size:clamp(38px,5vw,56px)!important;font-weight:650!important;margin-bottom:12px!important}
.content-lead{max-width:720px;margin:0 0 30px;color:var(--muted);font-size:17px;line-height:1.55}
.update-list{display:grid;gap:12px}.update-item{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.update-item-top{display:flex;justify-content:space-between;gap:14px;align-items:start}.update-item h2{font-size:20px!important;margin:4px 0 8px!important}.update-item time{font-size:12px;color:var(--muted)}
.update-item p{margin:0 0 9px;color:#50687c}.update-item .why{font-size:13px;font-weight:600;color:#31516a}.update-item a{font-size:13px;font-weight:650;color:var(--navy)}
.ballot-page-controls{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.ballot-page-controls label{font-size:12px;font-weight:700;color:#5d778c}.ballot-page-controls select{display:block;margin-top:5px;padding:10px 38px 10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
.ballot-section{margin-bottom:18px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.ballot-section h2{font-size:22px!important;margin:0 0 5px!important}.ballot-section>p{margin:0 0 14px;color:var(--muted);font-size:13px}.ballot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ballot-person{padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--soft-blue-2);font-size:14px;font-weight:600;color:var(--navy)}

html[data-theme="dark"] .brief-tag{background:#173042;color:#b9d6e8}
html[data-theme="dark"] .brief-card,html[data-theme="dark"] .ballot-block,html[data-theme="dark"] .update-item,html[data-theme="dark"] .ballot-section{background:var(--card)}
html[data-theme="dark"] .ballot-quick{background:linear-gradient(180deg,#111f2a,#0f1d27)}
html[data-theme="dark"] .ballot-person{background:#132632}

@media(max-width:760px){
  .menu-panel{width:286px!important;right:10px!important;top:68px!important;padding:8px!important}
  .menu-panel::before{right:15px!important}
  .menu-panel-head{padding-left:7px!important}
  .menu-link,.menu-support-link{min-height:40px!important;font-size:14px!important;padding:7px 8px!important}
  .daily-brief{margin-bottom:42px}.daily-brief-head{align-items:start;display:block}.daily-brief-meta{display:block;margin-top:5px}.daily-brief-grid{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x proximity;padding-bottom:5px}.brief-card{min-width:78vw;scroll-snap-align:start;min-height:215px}.daily-brief-footer{align-items:flex-start;flex-direction:column}
  .ballot-quick{margin:42px 0;padding:18px}.ballot-quick-head{display:block}.ward-select{width:100%;margin-top:13px}.ballot-grid{grid-template-columns:1fr}.ballot-list{grid-template-columns:1fr}
}
