/* ===== CampaignHub Website.dc.html ===== */
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Black.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Super.otf') format('opentype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
html, body { margin: 0; padding: 0; background: #F9F3E3; }
* { box-sizing: border-box; }
a { color: #0160A6; text-decoration: none; }
a:hover { color: #015897; }
@media (max-width: 1300px) and (min-width: 681px) {
  [data-partner-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; justify-items: center !important; }
  [data-partner-grid] img { height: auto !important; max-width: 100% !important; max-height: 74px !important; }
}
@media (max-width: 680px) {
  [data-partner-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px 16px !important; justify-items: center !important; }
  [data-partner-grid] img { height: auto !important; max-width: 100% !important; max-height: 56px !important; }
}
@media (max-width: 940px) {
  [data-approach-row] { flex-direction: column !important; }
  [data-approach-card] { flex: 0 1 auto !important; }
  [data-approach-connector] { flex-direction: row !important; flex-basis: auto !important; padding: 6px 0 !important; }
  [data-approach-connector] .material-icons-round { transform: rotate(90deg); }
}
@media (max-width: 780px) {
  [data-hero-mock] { display: none !important; }
  [data-hero-copy] { flex: 1 1 100% !important; }
  section:has([data-hero-copy]) { padding-top: 16px !important; }
  [data-desktop-nav] { display: none !important; }
  [data-hdr-sub] { display: none !important; }
  [data-mobile-nav] { display: flex !important; }
  [data-mobile-sheet] { display: block !important; }
  [data-hdr-cta] { display: none !important; }
  [data-platform-grid] { grid-template-columns: 1fr !important; }
  [data-precinct-stats] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-precinct-panes] { grid-template-columns: 1fr !important; }
  [data-footer-cols] { flex-wrap: wrap !important; gap: 32px !important; }
  [data-replaces-divider] { display: none !important; }
  [data-replaces-group] { gap: 12px !important; }
  [data-replaces-group] img { height: 28px !important; }
  [data-replaces-group] span { font-size: 12px !important; }
  [data-solution-head] { min-width: 100% !important; gap: 6px !important; }
  [data-solution-head] > div:nth-child(1) { flex: 0 0 auto !important; margin-right: -12px !important; }
  [data-solution-head] > div:nth-child(2) { flex: 0 0 16px !important; }
  [data-solution-head] > div:nth-child(3) { flex: 0 0 auto !important; }
  [data-page-shot] { aspect-ratio: unset !important; height: auto !important; }
  [data-page-shot] > div { width: 100% !important; height: auto !important; transform: none !important; }
  [data-hide-mobile] { display: none !important; }
}

/* ===== CitizenHub Section.dc.html ===== */
@media (max-width: 640px) {
  [data-ch-features] { grid-template-columns: 1fr !important; }
  [data-ch-feature] { padding: 12px 0 !important; border-bottom: 1px solid rgba(255,255,255,0.18) !important; }
}

/* ===== Tab Screen Full.dc.html ===== */
@media (max-width: 780px) {
  [data-tsf-voter-root] { grid-template-columns: 1fr !important; height: auto !important; width: 100% !important; }
  [data-tsf-voter-profile] { display: none !important; }
  [data-tsf-voter-bio] { height: auto !important; }
  [data-tsf-comms-root] { grid-template-columns: 1fr !important; height: auto !important; width: 100% !important; }
  [data-tsf-comms-spine] { display: none !important; }
  [data-tsf-comms-mobile-arrow] { display: flex !important; }
  [data-tsf-finance-root] { grid-template-columns: 1fr !important; height: auto !important; width: 100% !important; }
  [data-tsf-voter-root] [style*="min-height: 0"],
  [data-tsf-comms-root] [style*="min-height: 0"],
  [data-tsf-finance-root] [style*="min-height: 0"] { min-height: auto !important; }
  [data-tsf-comms-root] [style*="height: 600px"],
  [data-tsf-comms-root] [style*="height: 490px"] { height: auto !important; }
}

/* ===== Field Screen.dc.html ===== */
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Black.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
html, body { margin: 0; padding: 0; background: #F9F3E3; }
* { box-sizing: border-box; }
@media (max-width: 780px) {
  [data-field-root] { flex-direction: column !important; height: auto !important; width: 100% !important; }
  [data-field-sidebar] { flex: 1 1 auto !important; width: 100% !important; }
  [data-field-root] [style*="min-height: 0"] { min-height: auto !important; }
  [data-field-phone-frame] { height: 383px !important; flex: none !important; }
}

/* ===== Canvass Phone.dc.html ===== */
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PolymathDisp'; src: url('fonts/PolymathDispDemo-Black.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PolymathText'; src: url('fonts/PolymathTextDemo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
html, body { margin: 0; padding: 0; background: #F9F3E3; }
* { box-sizing: border-box; }



/* ===== injected: dropdown + mobile sheet ===== */
.whofor { position: relative; }
.whofor-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid #E5DFCF; border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16); padding: 7px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease; z-index: 60; }
.whofor:hover .whofor-menu, .whofor:focus-within .whofor-menu, .whofor.open .whofor-menu {
  opacity: 1; visibility: visible; transform: translateY(0); }
.whofor-menu a { display: block; padding: 10px 13px; border-radius: 9px; color: #1B1714;
  text-decoration: none; font: 600 14px/1.25 'PolymathText', system-ui, sans-serif; white-space: nowrap; }
.whofor-menu a:hover { background: #F1EBDA; color: #0160A6; }

#sheet-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,16,12,.38); z-index: 190; }
#sheet-backdrop.open { display: block; }
#mobile-sheet { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 88vw);
  background: #F9F3E3; box-shadow: -14px 0 40px rgba(0,0,0,.20); z-index: 200;
  padding: 20px 22px; flex-direction: column; gap: 2px; }
#mobile-sheet.open { display: flex; }
#mobile-sheet a { padding: 13px 6px; color: #1B1714; text-decoration: none;
  font: 700 17px/1.2 'PolymathText', system-ui, sans-serif; border-bottom: 1px solid rgba(204,198,181,.55); }
#mobile-sheet a:hover { color: #0160A6; }
#mobile-sheet a.cta { margin-top: 12px; border: none; background: #0160A6; color: #fff;
  border-radius: 100px; text-align: center; padding: 13px; }
#sheet-close { align-self: flex-end; cursor: pointer; background: none; border: none;
  color: #484542; font-size: 26px; margin-bottom: 6px; }

/* scroll-to-top */
#to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; background: #0160A6; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.22); z-index: 150;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .15s ease; }
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: #015897; transform: translateY(-2px); }
#to-top .material-icons-round { font-size: 22px; }

/* contact form validation */
.field-error { border-color: #C0392B !important; box-shadow: 0 0 0 1px #C0392B; }
.err-msg { color: #C0392B; font: 500 12.5px/1.35 'PolymathText', system-ui, sans-serif; margin-top: 3px; }
.err-msg:empty { display: none; }
.form-status { margin-top: 14px; font: 600 14px/1.45 'PolymathText', system-ui, sans-serif; color: #0160A6; }
.form-status.good { color: #1B7A3D; }
.form-status.bad { color: #C0392B; }
.contact-success { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px; background: #EAF3FF; border: 1px solid #CFE1F4; border-radius: 16px; }
.contact-success .material-icons-round { color: #0160A6; font-size: 30px; flex-shrink: 0; }
.contact-success .cs-title { font: 700 18px/1.3 'PolymathDisp', serif; color: #0B3D66; }
.contact-success .cs-sub { margin-top: 5px; font: 500 14.5px/1.45 'PolymathText', system-ui, sans-serif; color: #484542; }
.contact-error { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #FDECEA; border: 1px solid #F5C6C0; border-radius: 12px;
  color: #8A2A1E; font: 600 14px/1.45 'PolymathText', system-ui, sans-serif; }
.contact-error .material-icons-round { color: #C0392B; font-size: 22px; flex-shrink: 0; }
.contact-error a { color: #0160A6; font-weight: 700; text-decoration: underline; }
