/* California58 UX corrections, November 1 2026.
   Keep search types editorial, not WordPress internals; protect contrast in
   search results, full county directory and reader popularity cards. */
html body .c58-search-page .c58-search-results{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;align-items:stretch;
}
html body .c58-search-page .c58-search-result{
 min-width:0;padding:20px 22px;border:1px solid #cbdde7;
 border-radius:14px;background:#fff!important;color:#172f40!important;
 box-shadow:0 2px 12px rgba(8,35,50,.045);overflow-wrap:anywhere;
}
html body .c58-search-page .c58-search-result .c58-search-kind{
 display:block;margin:0 0 10px!important;color:#0d526e!important;
 font:800 12px/1.4 system-ui,-apple-system,sans-serif!important;
 text-transform:uppercase;letter-spacing:.065em;
}
html body .c58-search-page .c58-search-result .c58-search-pubdate{
 color:#485e6c!important;font-weight:600;text-transform:none;letter-spacing:0;
}
html body .c58-search-page .c58-search-result h2{
 margin:0 0 13px!important;
 font:750 clamp(19px,1.8vw,24px)/1.28 Georgia,serif!important;
 color:#102c3e!important;
}
html body .c58-search-page .c58-search-result h2 a{
 color:#102c3e!important;text-decoration:none;
}
html body .c58-search-page .c58-search-result h2 a:hover,
html body .c58-search-page .c58-search-result h2 a:focus-visible{
 color:#075d80!important;text-decoration:underline;
}
html body .c58-search-page .c58-search-result .c58-search-summary{
 color:#405969!important;font:500 15px/1.63 system-ui,-apple-system,sans-serif!important;
 margin:0!important;
}
html body .c58-search-page .c58-search-count{
 color:#36586c!important;font-size:15px!important;line-height:1.55!important;
}
html body .c58-search-page .c58-search-result :focus-visible{
 outline:3px solid #e39820;outline-offset:3px;
}
/* Five tiny cards on a laptop made the popular titles very hard to read. */
html body .c58-ed-most .c58-ed-popular-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
}
html body .c58-ed-most .c58-ed-popular-item .c58-ed-card{height:100%;}
html body .c58-ed-most .c58-ed-card h3{
 font-size:clamp(19px,2vw,24px)!important;line-height:1.32!important;
}
html body .c58-ed-most .c58-ed-meta{
 color:#3f5869!important;font-size:13px!important;line-height:1.5!important;
}
html body .c58-ed-most .c58-ed-source,
html body .c58-ed-most .c58-ed-source a{
 color:#155d78!important;font-size:12px!important;
}
html body .c58-ed-section .section-head-row h2{
 overflow-wrap:normal;word-break:normal;line-height:1.15!important;
}
html body .c58-ed-local .section-intro,
html body .c58-ed-most .section-intro{
 color:#425a69!important;line-height:1.55!important;font-size:15px!important;
}
/* The plain-text line below the rural shortcut inherited a dark background
   and muted text, unlike the light informational cards above it. */
html body .c58l-directory .c58-rural-directory-shortcut + p{
 color:#203b4b!important;background:#f2f7fb!important;
 border:1px solid #cfdee6;border-left:4px solid #26728d;
 border-radius:8px;padding:15px 17px;line-height:1.62;
}
html body .c58l-directory .c58-rural-directory-shortcut + p strong{color:#132f42!important;}
html body .c58l-directory .c58-rural-directory-shortcut + p a{
 color:#075d80!important;text-decoration:underline!important;font-weight:800;
}
html body .c58l-directory .c58l-entry a.c58l-card-link{
 color:#153548!important;text-decoration:none;line-height:1.35;
}
html body .c58l-directory .c58l-entry a.c58l-card-link:hover{
 color:#095e80!important;text-decoration:underline;
}
html body .c58l-directory .c58l-entry small{
 color:#334f61!important;font-size:12px!important;line-height:1.5;
}
@media(max-width:980px){
 html body .c58-search-page .c58-search-results{grid-template-columns:repeat(2,minmax(0,1fr));}
 html body .c58-ed-most .c58-ed-popular-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
 html body .c58-search-page .c58-search-results{grid-template-columns:minmax(0,1fr)!important;gap:13px;}
 html body .c58-search-page .c58-search-result{padding:16px 17px;}
 html body .c58-search-page .c58-search-result h2{font-size:21px!important;}
 html body .c58-ed-most .c58-ed-popular-grid{grid-template-columns:minmax(0,1fr)!important;gap:15px;}
 html body .c58-ed-most .c58-ed-popular-item .c58-ed-card{display:flex;flex-direction:row;align-items:stretch;}
 html body .c58-ed-most .c58-ed-popular-item .c58-ed-photo{
  width:35%!important;max-width:35%!important;flex:0 0 35%!important;
  aspect-ratio:auto!important;min-height:145px!important;
 }
 html body .c58-ed-most .c58-ed-popular-item .c58-ed-copy{flex:1;min-width:0;padding:13px;}
 html body .c58-ed-most .c58-ed-card h3{font-size:18px!important;line-height:1.26!important;}
 html body .c58-ed-most .c58-ed-meta{font-size:12px!important;}
 html body .c58l-directory .c58-rural-directory-shortcut + p{padding:13px 14px;font-size:14px;}
}
/* Local reader poll discovery on the existing rankings page. */
html body .c58-ranking-local-promo{
 background:#eaf4f7!important;color:#173b4c!important;
 border-top:1px solid #c9dfe7;border-bottom:1px solid #c9dfe7;
}
html body .c58-ranking-local-promo .eyebrow{color:#0d5d78!important;}
html body .c58-ranking-local-promo h2{
 color:#15364a!important;font:750 clamp(26px,3.6vw,43px)/1.2 Georgia,serif!important;
 max-width:800px;margin:8px 0 16px;
}
html body .c58-ranking-local-promo p:not(.eyebrow){
 color:#3c5969!important;max-width:830px;line-height:1.65;font-size:16px;
}
html body .c58-ranking-local-promo a.dark-button-inline{
 display:inline-block;margin-top:10px;color:#fff!important;background:#0e5875!important;
 border-radius:10px;padding:12px 18px;text-decoration:none;font-weight:800;
}

