/* Custom CSS -- Butler County Health Department
   Project-specific styles. Do NOT edit template CSS directly. */

/* Extracted at compose (plan row 32) from the 35 DesignCode comps' <style> blocks (E-73).
   Load order: mainstyle.css -> brand.css -> custom.css. Selectors keyed on data-rsp are the comps' own
   responsive hooks and stay on the lifted markup. NOTE for plan row 33 (brand-css): the comps ship a
   global a:hover (below, verbatim); brand-css owns the scoped-hover rule. */

/* ==================== Shared -- in all 35 comps ==================== */
html,body{margin:0;padding:0;background:#FFFFFF;}
body{font-family:'Public Sans',system-ui,sans-serif;color:#1F2933;}
a{color:#0B5E8F;}
a:hover{color:#13316E;}
::selection{background:#0B5E8F;color:#fff;}
summary::-webkit-details-marker{display:none;}
@media (max-width:1120px){
  nav[aria-label="Main"]{display:none !important;}
  [data-rsp="burger"]{display:block !important;}
}
@media (max-width:1000px){
  [data-rsp="content"]{grid-template-columns:minmax(0,1fr) !important;}
  [data-rsp="footgrid"]{grid-template-columns:1fr 1fr !important;gap:36px !important;}
}
@media (max-width:840px){
  [data-rsp="headrow"]{flex-wrap:wrap !important;gap:10px !important;padding:12px 16px !important;}
  [data-rsp="headrow"] img{height:44px !important;}
  nav[aria-label="Main"]{display:none !important;}
  [data-rsp="burger"]{display:block !important;}
  [data-rsp="cols"]{grid-template-columns:1fr !important;}
  [data-rsp="hero"]{padding:48px 20px 54px !important;}
}
@media (max-width:640px){
  [data-rsp="row"]{grid-template-columns:1fr !important;gap:10px !important;}
  [data-rsp="footgrid"]{grid-template-columns:1fr !important;gap:32px !important;}
}

/* ==================== Page-scoped -- index.html ==================== */
@keyframes drift{0%{transform:translate(0,0) scale(1);}50%{transform:translate(30px,-24px) scale(1.08);}100%{transform:translate(0,0) scale(1);}}
@keyframes drift2{0%{transform:translate(0,0);}50%{transform:translate(-26px,20px);}100%{transform:translate(0,0);}}
@keyframes marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@keyframes pulseRing{0%{transform:scale(.9);opacity:.5;}70%{transform:scale(1.5);opacity:0;}100%{transform:scale(1.5);opacity:0;}}
@media (max-width:840px){
  [data-rsp="megapanel"]{max-height:calc(100vh - 130px);overflow:auto;}
  [data-rsp="mega"]{grid-template-columns:1fr 1fr !important;gap:20px !important;}
  [data-rsp="cols3"], [data-rsp="cols4"]{grid-template-columns:repeat(2,1fr) !important;}
}
@media (max-width:640px){
  [data-rsp="cols3"]{grid-template-columns:1fr !important;}
  [data-rsp="cols4"]{gap:16px !important;}
}

/* ==================== Page-scoped -- 34 inner comps (identical <style> in each) ==================== */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:translateY(0);}}
/* ==================== Hover states -- port of support.js style-hover ====================
   support.js turned each style-hover="..." into a generated class with a :hover rule, every
   declaration !important (it has to beat the inline style). Same mechanism, static: one class per
   unique hover style across the lifted markup. */
.hv-1:hover{color:#0B5E8F !important;text-decoration:underline !important;}
.hv-2:hover{transform:translateY(-2px) !important;}
.hv-3:hover{background:rgba(255,255,255,.1) !important;}
.hv-4:hover{border-color:#0B5E8F !important;box-shadow:0 8px 24px rgba(19,49,110,.1) !important;color:#0B5E8F !important;}
.hv-5:hover{background:#E7F0F7 !important;color:#0B5E8F !important;}
.hv-6:hover{background:#0B5E8F !important;}
.hv-7:hover{border-color:#0B5E8F !important;color:#0B5E8F !important;}
.hv-8:hover{border-color:#8A2B0F !important;}
.hv-9:hover{background:#F4F6FA !important;}
.hv-10:hover{background:#E7F0F7 !important;}
.hv-11:hover{background:rgba(255,255,255,.15) !important;}
.hv-12:hover{transform:translateY(-2px) !important;box-shadow:0 10px 30px rgba(0,0,0,.34) !important;}
.hv-13:hover{background:rgba(255,255,255,.1) !important;border-color:#fff !important;}
.hv-14:hover{transform:translateY(-5px) !important;box-shadow:0 18px 40px rgba(19,49,110,.13) !important;border-color:#0B5E8F !important;}
.hv-15:hover{transform:translateY(-5px) !important;box-shadow:0 18px 40px rgba(19,49,110,.13) !important;}
.hv-16:hover{transform:translateY(-2px) !important;box-shadow:0 10px 30px rgba(0,0,0,.3) !important;}
.hv-17:hover{text-decoration:underline !important;text-underline-offset:5px !important;text-decoration-thickness:2px !important;text-decoration-color:#0B5E8F !important;color:#13316E !important;}
.hv-18:hover{color:#FFFFFF !important;}

/* Header menus (plan row 06): drop-down and mega panels, mobile sections, skip link.
   Hover values are the comp's own (index.html header A mega panel). */
.hv-19:hover{color:#0B5E8F !important;}
.hv-20:hover{text-decoration:underline !important;text-underline-offset:4px !important;text-decoration-thickness:2px !important;text-decoration-color:#0B5E8F !important;color:#0B5E8F !important;}
[data-menu-panel][hidden]{display:none !important;}
[data-rsp="burger"] summary{list-style:none;}
[data-rsp="burger"] details[open] > summary [data-chev]{display:inline-block;transform:rotate(180deg);}
a[data-skip]:focus{top:12px !important;}

/* ==================== No orphans (Clay's standing rule) ====================
   brand.css takes this over at plan row 33; kept here so compose output already carries it. */
h1, h2, h3, h4, h5 { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }

/* ==================== News post article (plan row 19) ====================
   The Article field is WYSIWYG, so its tags carry no styles of their own. These copy the comp's
   (news-detail.html): paragraph and H2 sizes, the 52px gap between sections, and the check-mark list. */
.news-article > :first-child{margin-top:0;}
.news-article p{margin:0 0 16px;font-size:17px;line-height:1.68;color:#1F2933;max-width:68ch;}
.news-article h2{margin:52px 0 18px;font-size:clamp(24px,2.4vw,32px);font-weight:800;color:#13316E;letter-spacing:-.01em;}
.news-article h3{margin:32px 0 12px;font-size:21px;font-weight:800;color:#13316E;}
.news-article ul{list-style:none;margin:6px 0 16px;padding:0;display:grid;gap:10px;}
.news-article ul li{position:relative;margin:0;padding-left:36px;font-size:16.5px;line-height:1.55;}
.news-article ul li::before{content:"\2713";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;background:#E7F0F7;color:#0B5E8F;display:grid;place-items:center;font-size:13px;font-weight:800;}
.news-article li p{margin:0;font-size:inherit;line-height:inherit;max-width:none;}
.news-article ol{margin:6px 0 16px;padding-left:24px;display:grid;gap:8px;font-size:16.5px;line-height:1.55;}
.news-article a{color:#0B5E8F;text-decoration:underline;text-underline-offset:3px;}
.news-article strong{font-weight:700;color:#13316E;}

/* Header site search (plan row 29, 2026-10-07). From 1121 to 1239px the header row has no room for the word "Search"
   (measured at 1121 / 1140 / 1180 / 1239 / 1240 / 1440): the button shows its icon only (the word stays for screen
   readers) and the nav text links go from 14px to 11px side padding. From 1240px up the row is as designed plus the button. */
@media (max-width:1239px){
  [data-search-label]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
  nav[aria-label="Main"] > div > [data-menu-btn], nav[aria-label="Main"] > a.hv-17, [data-search-btn]{padding-left:11px !important;padding-right:11px !important;}
}

/* reCAPTCHA v3 badge hidden (row 23 -eod G5, 2026-10-13): Google's required notice sits under each form's Send button instead. */
.grecaptcha-badge { visibility: hidden; }

/* Home hero on stacked layouts (2026-11-04, Clay): the photo covers only the text area,
   sliced from the building, then fades into navy behind the hero cards. Desktop unchanged. */
@media (max-width:840px){
  .hero-bg, .hero-scrim{height:560px !important;bottom:auto !important;}
  .hero-bg{object-position:58% 70% !important;}
  .hero-scrim{background:linear-gradient(180deg,rgba(14,36,80,.55) 0%,rgba(14,36,80,.45) 70%,#0E2450 100%) !important;}
}
@media (max-width:640px){
  .hero-bg, .hero-scrim{height:700px !important;}
}

/* Home hero cards on phones (2026-11-04, Clay): the cards are content-box, so width:100% plus padding
   overflowed the right-aligned column off the left edge. Fit them to the column instead. */
@media (max-width:640px){
  .hero-cards{justify-items:stretch !important;}
  .hero-cards > div{box-sizing:border-box;width:100% !important;margin-right:0 !important;}
}

/* Inside-page hero background (2026-11-04, Clay): light text over the optional photo gets a shadow. */
.has-hero-bg h1, .has-hero-bg p{text-shadow:0 2px 18px rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.4);}

/* Row 24 (2026-12-01): 320px fixes. An email address may break inside itself rather than push the page sideways. */
a[href^="mailto:"], #contact-form > p:first-child{overflow-wrap:anywhere;}
/* Inside-page hero H1 at phone widths (Clay, 2026-12-01: "Smaller H1 under 360px"). The hero hides overflow, so a too-wide
   title is clipped, not scrolled. 34px fits every current title from 372px wide (measured), so 28px runs to 374px. */
@media (max-width:374px){
  h1[style*="clamp(34px,4vw,54px)"]{font-size:28px !important;}
}
/* Row 24 (2026-12-01): home hours card. Four 151-197px columns broke the 20px time lines at 841-1120, and the
   2-column phone layout left 90px cells ("Office / hours"). Two columns to 1120px, one column on phones. */
@media (max-width:1120px){
  #hours [data-rsp="cols4"]{grid-template-columns:repeat(2,1fr) !important;}
}
@media (max-width:640px){
  #hours [data-rsp="cols4"]{grid-template-columns:1fr !important;padding:32px 24px !important;gap:24px !important;}
}
