/* Dash header standard: ONE set of header type sizes for every Dash (Civic Delaware, Michigan Dash, Congress Dash, and every state we add).
   The values are Civic Delaware's header, measured at each width. Change them here and in docs/dash-style-guide.md together,
   and run `node scripts/check-dash-headers.js` to confirm all Dashes still match.
   --dh-title: "Michigan Dash" style product name, --dh-eyebrow: the small line above it, --dh-sub: the line under it. */
:root { --dh-title: 28px; --dh-eyebrow: 9px; --dh-sub: 11px; }
@media (min-width: 768px)  { :root { --dh-title: 38px; --dh-eyebrow: 11px;   --dh-sub: 13px; } }   /* iPad upright, small */
@media (min-width: 820px)  { :root { --dh-title: 42px; --dh-eyebrow: 12.5px; --dh-sub: 14px; } }   /* iPad upright */
@media (min-width: 1000px) { :root { --dh-title: 34px; --dh-eyebrow: 14px;   --dh-sub: 12.5px; } } /* iPad sideways, small laptops */
@media (min-width: 1101px) { :root { --dh-title: 52px; --dh-eyebrow: 14px;   --dh-sub: 14px; } }   /* laptops and desktops */

/* ===== Footer standard (Civic Delaware's measured footer) =====
   Same type, padding and spacing on every Dash. Colors/themes stay with each page. */
:root{--df-pad:14px 16px 12px;--df-mar:0 14px 14px;--df-brand-mb:6px;--df-note:13px;--df-bottom:11px;--df-bottom-pt:12px}
@media(min-width:768px){:root{--df-pad:20px 36px 18px;--df-brand-mb:10px;--df-bottom:14px}}
@media(min-width:1000px){:root{--df-pad:20px 28px 18px;--df-brand-mb:12px;--df-bottom:12px}}
html body .app-footer{font-family:'Inter',sans-serif!important;padding:var(--df-pad)!important;margin:var(--df-mar)!important;text-align:center!important}
html body .app-footer .app-footer-brandline{font-size:13px!important;margin:0 0 var(--df-brand-mb)!important}
html body .app-footer .app-footer-top{margin-top:0!important;margin-bottom:12px!important}
html body .app-footer .app-footer-disclaimer{font-family:'Times New Roman',Times,serif!important;font-size:var(--df-note)!important}
html body .app-footer .app-footer-bottom{font-family:'Inter',sans-serif!important;font-size:var(--df-bottom)!important;padding:var(--df-bottom-pt) 0 0!important;margin-top:0!important;margin-bottom:0!important}
html body .app-footer .app-footer-copy,html body .app-footer .app-footer-links{font-family:'Inter',sans-serif!important;font-size:13px!important}
html body .app-footer .app-footer-bottom .app-footer-copy,html body .app-footer .app-footer-bottom .app-footer-links,html body .app-footer .app-footer-bottom .app-footer-links a{font-family:'Inter',sans-serif!important;font-size:13px!important}
/* Check mark stays beside the first words, text stays centered (also when the line wraps on phones) */
html body .app-footer .app-footer-brandline{display:block!important;text-align:center!important}
html body .app-footer .app-footer-brandline svg{display:inline-block!important;vertical-align:-2px;margin-right:6px}
html body .app-footer .app-footer-brandline span{display:inline!important;white-space:normal!important}
/* Bottom lines: links, "Independent and nonpartisan", copyright stack one under another, centered, at every width */
html body .app-footer .app-footer-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;text-align:center!important}

/* Anything in parentheses is Times italic, on every Dash (notes, "(includes seniors)", "(third reading)", "(15 in this list)") */
html body .profile-note,html body .st-official,html body .smb-n{font-family:'Times New Roman',Times,serif!important;font-style:italic!important}

/* ===== Headings and contents (owner-chosen) =====
   Section headings: Arial, bold, upright, left-aligned with the first box under them.
   Contents (profile names, Get Involved buttons): Times. Browse labels are smaller (16px). */
html body #pick-main,html body .beinformed-title{font-family:Arial,Helvetica,sans-serif!important;font-size:20px!important;font-weight:700!important;font-style:normal!important;text-transform:none!important;letter-spacing:normal!important;text-align:left!important}
html body .cat-label{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;font-weight:700!important;font-style:normal!important;text-transform:none!important;letter-spacing:normal!important;text-align:left!important}
html body .bi-lede{text-align:left!important}
html body .profile-card{font-family:'Times New Roman',Times,serif!important}
html body .beinformed-toggle{width:100%!important;max-width:none!important;box-sizing:border-box}
html body .beinformed-links .bi-item,html body .beinformed-links .cat-browse{max-width:none!important;margin-left:0!important;margin-right:0!important}
html body #app #profile-grid .profile-card .profile-label,html body .profile-card .profile-label{font-family:'Times New Roman',Times,serif!important}

/* ===== Buttons (Option 1): one font, corner, weight and height on every Dash. Only the main action is filled. ===== */
html body .profile-continue-btn,html body .vp-more,html body .show-more-btn,html body .beinformed-toggle{border-radius:10px!important;font-family:Inter,sans-serif!important;font-weight:500!important;min-height:44px!important;box-sizing:border-box}
html body .beinformed-toggle *{font-family:Inter,sans-serif!important;font-weight:500!important}
html body .profile-card{border-radius:10px!important}
@media(max-width:767px){html body .profile-card{min-height:68px!important}}
html body .pick-title{text-align:left!important}
html body .beinformed-toggle,html body .beinformed-toggle *{font-size:15px!important}

/* iPad upright (768-999px): Michigan's weather line wraps instead of running off the header.
   Congress Dash has the longest name plus the BETA badge, so its title is 34px here (the same size the shared scale uses on iPad sideways). */
@media (min-width:768px) and (max-width:999px){
  html #app #screen-profiles .header .now-row,html #app #screen-profiles .header .now-pill,html #app #screen-profiles .header .now-text{min-width:0;max-width:100%;box-sizing:border-box}
  html #app #screen-profiles .header .now-text,html #app #screen-profiles .header .now-text *{white-space:normal!important;overflow-wrap:break-word}
  html #app header.topbar.home-top .home-title{font-size:34px!important}
}

/* ===== Results page: headline and note left-aligned with the cards; headline in Arial like the other headings ===== */
html body .page-intro{text-align:left!important}
html body .pi-title{font-family:Arial,Helvetica,sans-serif!important;font-weight:700!important;text-align:left!important;text-wrap:wrap}
html body .pi-note{text-align:left!important;text-wrap:wrap}

/* ===== One screen on iPad sideways (touch screens, landscape, 1000px+ wide, up to 900px tall) =====
   The whole home page should fit without scrolling: smaller profile tiles, a tighter header and footer.
   dash-fit.js then scales the page by the last few percent if it is still taller than the screen.
   A Dash can opt out by putting class "no-ipad-compact" on its <html> tag (Congress Dash does, so its iPad home looks like Civic Delaware's big-card view). */
@media (min-width:1000px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
  html:not(.no-ipad-compact) body .profile-card{flex-direction:row!important;align-items:center!important;text-align:left!important;min-height:0!important;height:64px!important;padding:8px 14px!important;gap:12px!important;box-sizing:border-box}
  html:not(.no-ipad-compact) body .profile-card .profile-text{text-align:left!important;flex:1}
  html:not(.no-ipad-compact) body .profile-emoji{font-size:28px!important;line-height:1!important;margin:0!important;width:36px!important;height:auto!important}
  html:not(.no-ipad-compact) body .profile-emoji img{width:34px!important;height:34px!important}
  html:not(.no-ipad-compact) body .profile-card .profile-label{font-size:15px!important}
  html:not(.no-ipad-compact) body #profile-grid{gap:10px!important}
  html body{padding-bottom:0!important}
  html:not(.no-ipad-compact) body .app-footer{padding:10px 28px!important;margin-bottom:6px!important}
  html:not(.no-ipad-compact) body .app-footer .app-footer-brandline{margin:0 0 4px!important}
  html:not(.no-ipad-compact) body .app-footer .app-footer-top{margin:0 0 6px!important;max-width:none!important}
  html:not(.no-ipad-compact) body .app-footer .app-footer-bottom{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;gap:4px 18px!important;padding-top:6px!important;margin:0 auto!important;max-width:none!important;width:auto!important}
  html:not(.no-ipad-compact) body #screen-profiles .header{padding-top:16px!important;padding-bottom:12px!important}
  html:not(.no-ipad-compact) #app header.topbar.home-top{padding-top:10px!important;padding-bottom:8px!important}
  html:not(.no-ipad-compact) #app header.topbar.home-top .wrap{padding-top:6px!important;padding-bottom:6px!important}
  /* Signed-up visitors have five look buttons: on this compact header the sessions block is nudged down only 8px (24px cut it off at the bottom). */
  html:not(.no-ipad-compact) body #app .home-top .sessions{transform:translateY(8px)!important}
}
