/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* === Network Defaults: Homepage Spacing === */
.home .entry-content > * { margin-bottom: 2rem; }

.home h1 { margin-bottom: 1rem; }

.home h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.home p {
  line-height: 1.7;
  max-width: 800px;
}

.home ul { margin-left: 1.2rem; }

.home .wp-block-latest-posts li { margin-bottom: 1.25rem; }

/* === CAR: Homepage + Global rhythm polish (GeneratePress) === */
/* Goal: more breathing room, clearer hierarchy, less “dense” feel. */

:root{
  --car-gap-1: 12px;
  --car-gap-2: 20px;
  --car-gap-3: 32px;
  --car-gap-4: 48px;
}

/* Global content rhythm */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header {
  padding: 44px;
}

@media (max-width: 768px){
  .separate-containers .inside-article,
  .separate-containers .comments-area,
  .separate-containers .page-header {
    padding: 28px;
  }
}

/* Headings: slightly more structure */
.entry-content h2{
  margin-top: var(--car-gap-4);
  margin-bottom: var(--car-gap-2);
  line-height: 1.2;
}

.entry-content h3{
  margin-top: var(--car-gap-3);
  margin-bottom: var(--car-gap-1);
  line-height: 1.25;
}

/* Paragraph/list spacing: reduce “wall of text” */
.entry-content p{
  margin-bottom: 1.05em;
}

.entry-content ul,
.entry-content ol{
  margin: 0 0 1.2em 1.2em;
}

.entry-content li{
  margin-bottom: 0.45em;
}

/* Latest Posts block on homepage: give each item separation */
.wp-block-latest-posts__list li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.wp-block-latest-posts__list li:last-child{
  border-bottom: none;
}

/* Sidebar widgets: more breathing room and clearer boxes */
.widget-area .widget{
  padding: 26px;
}

.widget-area .widget + .widget{
  margin-top: 22px;
}

/* Search widget: keep it tidy */
.wp-block-search__inside-wrapper{
  gap: 10px;
}

/* Links: slightly calmer underline behavior (keeps “official” feel) */
a{
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Mobile: avoid cramped headlines */
@media (max-width: 768px){
  .entry-title,
  h1{
    line-height: 1.15;
  }
}
/* Improve vertical rhythm for homepage sections */

.home h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.home h2:first-of-type {
  margin-top: 1.75em;
}

/* Add breathing room between alert excerpts */
.home .entry-content > p,
.home .entry-content > ul,
.home .entry-content > ol {
  margin-bottom: 1.25em;
}

/* Slight separation between alert listings */
.home .wp-block-latest-posts li,
.home .entry-content a + p {
  margin-bottom: 1.5em;
}

/* Category list clarity */
.home ul li {
  margin-bottom: 0.4em;
}
/* ================================
   Consumer Alert Report - Homepage polish
   Targets: section spacing, lists, sidebar, WPP placeholder
   ================================ */

/* 1) Improve general vertical rhythm for headings */
.entry-content h2,
.entry-content h3 {
  margin-top: 34px;
  margin-bottom: 14px;
  line-height: 1.25;
}

/* Tighten the first section heading under the intro a bit */
.entry-content h2:first-of-type {
  margin-top: 26px;
}

/* 2) Make homepage post list items easier to scan */
.home .wp-block-latest-posts,
.home .wp-block-latest-posts__list {
  padding-left: 0;
  margin-left: 0;
}

.home .wp-block-latest-posts__list li {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0 0 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.home .wp-block-latest-posts__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.home .wp-block-latest-posts__post-title {
  font-weight: 600;
  text-decoration: none;
}

.home .wp-block-latest-posts__post-title:hover {
  text-decoration: underline;
}

/* 3) Clean up the "Browse Alerts by Category" list */
.home .entry-content ul {
  margin-top: 12px;
  margin-bottom: 12px;
}

.home .entry-content ul li {
  margin: 6px 0;
}

/* Optional: remove bullets for a cleaner look (uncomment if you want)
.home .entry-content ul {
  list-style: none;
  padding-left: 0;
}
.home .entry-content ul li::before {
  content: "•";
  margin-right: 10px;
}
*/

/* 4) Sidebar widget spacing and headings */
.widget {
  padding: 22px;
}

.widget-title,
.widget_block h2 {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.2;
}

/* Give a bit more breathing room between widgets */
.sidebar .widget {
  margin-bottom: 22px;
}

/* 5) If WP Popular Posts shows "Sorry. No data so far." hide that line */
.home .wpp-no-data,
.home .wpp-list + p {
  display: none;
}

/* 6) Slightly soften link underlines across homepage content */
.home .entry-content a {
  text-underline-offset: 2px;
}