/*
Theme Name: GeneratePress
Theme URI: https://generatepress.com
Author: Tom Usborne
Description: Lightweight GeneratePress theme with News Listly editorial styling.
Version: 3.6.1
License: GNU General Public License v2 or later
Text Domain: generatepress
*/

/* News Listly — editorial newsroom design */
:root {
  --nl-ink: #172536;
  --nl-muted: #687789;
  --nl-navy: #10263f;
  --nl-blue: #1d5f91;
  --nl-accent: #d94d35;
  --nl-paper: #f4f6f8;
  --nl-line: #e2e7ec;
}
html { scroll-behavior: smooth; }
body {
  background: var(--nl-paper);
  color: var(--nl-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.72;
}
a { color: var(--nl-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nl-accent); }
.grid-container { max-width: 1200px; }
.site-header {
  background: #fff;
  border-top: 4px solid var(--nl-accent);
  box-shadow: 0 5px 22px rgba(16,38,63,.07);
  position: relative;
  z-index: 20;
}
.inside-header {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { max-width: 250px; height: auto; display: block; }
.main-navigation { background: transparent; }
.main-navigation .inside-navigation { padding: 0; }
.main-navigation .main-nav ul li a {
  color: var(--nl-ink);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  padding: 16px 12px;
  transition: color .2s ease, background .2s ease;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--nl-accent);
  background: #fff5f2;
}
.menu-toggle { color: var(--nl-navy); }
.site-content { padding-top: 34px; padding-bottom: 54px; }
.content-area { min-width: 0; }
.home .site-content { padding-top: 30px; }
.home .site-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.home .site-main:before {
  content: "Independent local news. Clear, useful information.";
  display: block;
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(112deg, #10263f 0%, #17476d 68%, #1d5f91 100%);
  border-left: 6px solid var(--nl-accent);
  border-radius: 5px;
  padding: 30px 34px 12px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.home .site-main:after {
  content: "County updates, public services, community stories and practical guides from across the United States.";
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  color: #dce8f1;
  background: #17476d;
  margin-top: -26px;
  padding: 0 34px 28px 40px;
  font: 15px/1.6 Arial, sans-serif;
  border-radius: 0 0 5px 5px;
}
.home .site-main article {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(16,38,63,.045);
  margin: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.home .site-main article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16,38,63,.10);
}
.home .site-main article .inside-article { padding: 0 0 20px; }
.home .site-main article .entry-header { padding: 20px 22px 0; }
.home .site-main article .post-image { margin: 0; }
.home .site-main article .post-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.home .site-main article .entry-title {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.28;
  font-weight: 700;
}
.home .site-main article .entry-title a { color: var(--nl-ink); text-decoration: none; }
.home .site-main article .entry-title a:hover { color: var(--nl-blue); }
.home .site-main article .entry-meta {
  color: var(--nl-muted);
  font: 12px/1.5 Arial, sans-serif;
}
.home .site-main article .entry-summary {
  padding: 12px 22px 0;
  color: #536273;
  font: 15px/1.7 Arial, sans-serif;
}
.home .site-main article .entry-summary p { margin-bottom: 12px; }
.home .site-main article .read-more.button {
  display: inline-block;
  background: var(--nl-navy);
  color: #fff;
  border-radius: 3px;
  padding: 9px 15px;
  font: 700 12px Arial, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}
.home .site-main article .read-more.button:hover { background: var(--nl-accent); }
.home .site-main article footer.entry-meta {
  border-top: 1px solid var(--nl-line);
  margin: 14px 22px 0;
  padding-top: 12px;
}
.home .site-main article:first-of-type {
  grid-column: 1 / -1;
}
.home .site-main article:first-of-type .inside-article {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  padding: 0;
}
.home .site-main article:first-of-type .post-image { grid-column: 1; grid-row: 1 / span 3; }
.home .site-main article:first-of-type .post-image img { height: 100%; min-height: 300px; aspect-ratio: auto; }
.home .site-main article:first-of-type .entry-header { grid-column: 2; padding: 26px 28px 0; }
.home .site-main article:first-of-type .entry-summary { grid-column: 2; padding: 8px 28px 0; }
.home .site-main article:first-of-type footer.entry-meta { grid-column: 2; margin: 12px 28px 22px; }
.home .site-main article:nth-of-type(2) { grid-column: 1; }
.home .site-main article:nth-of-type(n+3) { grid-column: auto; }
.home .site-main .paging-navigation { grid-column: 1 / -1; }
.paging-navigation { background: #fff; border: 1px solid var(--nl-line); border-radius: 6px; padding: 18px; }
.paging-navigation a { font-family: Arial, sans-serif; font-weight: 700; }
.site-footer {
  background: var(--nl-navy);
  color: #d7e1eb;
  border-top: 5px solid var(--nl-accent);
}
.site-footer .inside-site-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  color: #d7e1eb;
  font: 13px/1.8 Arial, sans-serif;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb09f; text-decoration: underline; }
.footer-widgets { background: #0b1c2e; color: #d7e1eb; padding: 34px 0; }
.footer-widgets .widget-title { color: #fff; font: 700 15px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.footer-widgets a { color: #d7e1eb; }
.site-info { border-top: 1px solid rgba(255,255,255,.12); }
.entry-content, .comments-area, .page-header { background: #fff; }
@media (max-width: 768px) {
  .inside-header { min-height: 76px; padding: 12px 18px; }
  .site-logo img { max-width: 205px; }
  .main-navigation .main-nav ul li a { padding: 12px 18px; }
  .home .site-main { grid-template-columns: 1fr; gap: 18px; }
  .home .site-main:before { padding: 24px 22px 10px; font-size: 27px; }
  .home .site-main:after { padding: 0 22px 22px; }
  .home .site-main article:first-of-type { grid-column: 1; }
  .home .site-main article:first-of-type .inside-article { display: block; }
  .home .site-main article:first-of-type .post-image img { min-height: 0; aspect-ratio: 16 / 9; }
  .home .site-main article:first-of-type .entry-header { padding: 18px 18px 0; }
  .home .site-main article:first-of-type .entry-summary { padding: 8px 18px 0; }
  .home .site-main article:first-of-type footer.entry-meta { margin: 12px 18px 18px; }
  .home .site-main article .entry-header { padding: 18px 18px 0; }
  .home .site-main article .entry-summary { padding: 8px 18px 0; }
  .home .site-main article footer.entry-meta { margin-left: 18px; margin-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
