/* =========================================================
   HIVEPRESS LISTINGS
   Black cards on listing/archive pages
   Cream background on individual listing pages
   ========================================================= */


/* Hide Listing Images/Thumbnails */
.hp-listing__image {
    display: none !important;
}


/* Hide Listing Dates */
.hp-listing__date,
.hp-listing__created-date {
    display: none !important;
}


/* =========================================================
   MAIN LISTINGS / DIRECTORY PAGE
   ========================================================= */

/* Make the listings area full-width */
.hp-page__content,
.hp-listings,
.container,
.site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}


/* Make each listing card full-width with black background */
.hp-listing--view-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;

    background-color: #333333 !important;

    margin-bottom: 15px !important;
    padding: 30px !important;

    border: none !important;
    border-radius: 6px !important;
}


/* Listing Name - White */
.hp-listing--view-block .hp-listing__title,
.hp-listing--view-block .hp-listing__title a {
    color: #ffffff !important;
}


/* Listing Name Hover */
.hp-listing--view-block .hp-listing__title a:hover {
    color: #f3eee4 !important;
}


/* Text inside listing cards - White */
.hp-listing--view-block .hp-listing__content,
.hp-listing--view-block .hp-listing__content p,
.hp-listing--view-block .hp-listing__attributes,
.hp-listing--view-block .hp-listing__attribute,
.hp-listing--view-block .hp-listing__details,
.hp-listing--view-block .hp-listing__footer,
.hp-listing--view-block span,
.hp-listing--view-block strong {
    color: #ffffff !important;
}


/* Links inside black listing cards */
.hp-listing--view-block .hp-listing__content a,
.hp-listing--view-block .hp-listing__attributes a,
.hp-listing--view-block .hp-listing__details a,
.hp-listing--view-block .hp-listing__footer a {
    color: #ffffff !important;
}


/* =========================================================
   INDIVIDUAL LISTING PAGE
   ========================================================= */

/* Cream background for individual listing */
.single-hp_listing .hp-listing--view-page {
    background-color: #f7f5f0 !important;

    padding: 35px !important;

    border: 1px solid #d8d4ca !important;
    border-radius: 6px !important;
}


/* Individual Listing Title - Black */
.single-hp_listing .hp-listing--view-page .hp-listing__title,
.single-hp_listing .hp-listing--view-page .hp-listing__title a {
    color: #000000 !important;
}


/* Individual Listing Body Text - Black */
.single-hp_listing .hp-listing--view-page .hp-listing__content,
.single-hp_listing .hp-listing--view-page .hp-listing__content p,
.single-hp_listing .hp-listing--view-page .hp-listing__attributes,
.single-hp_listing .hp-listing--view-page .hp-listing__attribute,
.single-hp_listing .hp-listing--view-page .hp-listing__details,
.single-hp_listing .hp-listing--view-page .hp-listing__footer,
.single-hp_listing .hp-listing--view-page span,
.single-hp_listing .hp-listing--view-page strong {
    color: #222222 !important;
}


/* Links on Individual Listing */
.single-hp_listing .hp-listing--view-page a {
    color: #253528 !important;
}


/* Individual Listing Link Hover */
.single-hp_listing .hp-listing--view-page a:hover {
    color: #000000 !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

/* Buttons on Individual Listing */
.single-hp_listing .button,
.single-hp_listing .hp-button,
.single-hp_listing button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}


/* Button Hover */
.single-hp_listing .button:hover,
.single-hp_listing .hp-button:hover,
.single-hp_listing button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hp-page__content,
    .hp-listings,
    .container,
    .site-main {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hp-listing--view-block {
        padding: 20px !important;
    }

    .single-hp_listing .hp-listing--view-page {
        padding: 20px !important;
    }
}

.wp-block-button__link,
.button,
button,
input[type="submit"] {
  text-transform: none;
  letter-spacing: normal;
}

/* ===== LGCA: "Latest from LGCA" built-block section =====
   Works with a Group block that has the CSS class  lgca-latest  */
.lgca-latest{width:100vw!important;max-width:100vw!important;position:relative;left:50%;right:50%;margin:0 -50vw!important;
  padding:80px max(32px, calc((100vw - 1200px) / 2))!important;background:#ffffff;box-sizing:border-box}
.lgca-latest *{box-sizing:border-box}
.lgca-latest,.lgca-latest p,.lgca-latest li,.lgca-latest a,.lgca-latest div,.lgca-latest time{font-family:Inter,system-ui,-apple-system,sans-serif!important;letter-spacing:normal!important}
/* Heading */
.lgca-latest h2,.lgca-latest .wp-block-heading{font-family:Merriweather,Georgia,serif!important;font-size:32px!important;font-weight:900!important;line-height:1.2!important;color:#0f2a4a!important;margin:0!important;letter-spacing:normal!important}
/* Header row: heading left, button right */
.lgca-latest > .wp-block-group,.lgca-latest > .wp-block-columns{max-width:none!important;width:100%!important;margin:0 0 28px!important;align-items:flex-end}
/* Button (fill or outline) */
.lgca-latest .wp-block-button__link{background:#1d4ed8!important;color:#ffffff!important;border:2px solid #1d4ed8!important;border-radius:8px!important;
  font-family:Inter,system-ui,sans-serif!important;font-size:16px!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;padding:12px 20px!important;text-decoration:none!important}
.lgca-latest .wp-block-button__link:hover{background:#1e3a8a!important;border-color:#1e3a8a!important}
/* Post grid */
.lgca-latest .wp-block-query{max-width:none!important;width:100%!important;margin:0!important}
.lgca-latest .wp-block-post-template{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:0!important;padding:0!important;list-style:none!important;max-width:none!important;width:100%!important}
.lgca-latest .wp-block-post-template > li,.lgca-latest .wp-block-post{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:24px!important;margin:0!important;
  display:flex;flex-direction:column;gap:10px;width:auto!important;max-width:none!important}
.lgca-latest .wp-block-post-template > li > *{margin:0!important}
/* Featured image (if used) */
.lgca-latest .wp-block-post-featured-image{margin:0!important}
.lgca-latest .wp-block-post-featured-image img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
/* Category label */
.lgca-latest .wp-block-post-terms{font-size:13px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:#1d4ed8!important;margin:0!important}
.lgca-latest .wp-block-post-terms a{color:#1d4ed8!important;text-decoration:none!important}
/* Post title */
.lgca-latest .wp-block-post-title{font-family:Merriweather,Georgia,serif!important;font-size:19px!important;font-weight:700!important;line-height:1.35!important;color:#0f2a4a!important;margin:0!important}
.lgca-latest .wp-block-post-title a{font-family:Merriweather,Georgia,serif!important;color:#0f2a4a!important;text-decoration:none!important}
.lgca-latest .wp-block-post-title a:hover{text-decoration:underline!important}
/* Excerpt (if used) */
.lgca-latest .wp-block-post-excerpt,.lgca-latest .wp-block-post-excerpt p{font-size:15px!important;line-height:1.55!important;color:#475569!important;margin:0!important}
/* Author + date line */
.lgca-latest .wp-block-post-author,.lgca-latest .wp-block-post-author-name,.lgca-latest .wp-block-post-date{font-size:14px!important;color:#475569!important;margin:0!important}
.lgca-latest .wp-block-post-author a,.lgca-latest .wp-block-post-author-name a,.lgca-latest .wp-block-post-date a{color:#475569!important;text-decoration:none!important}
.lgca-latest .wp-block-post-author__avatar img,.lgca-latest .avatar{width:28px!important;height:28px!important;border-radius:50%!important}
.lgca-latest .wp-block-post-template > li > .wp-block-group:last-child{margin-top:auto!important}
.lgca-latest .wp-block-post-author{display:flex!important;align-items:center;gap:8px}
.lgca-latest .wp-block-post-author__avatar{margin:0!important;line-height:0}
.lgca-latest .wp-block-post-author__content,.lgca-latest .wp-block-post-author__name,.lgca-latest .wp-block-post-author__byline{margin:0!important;font-size:14px!important}
/* Tablet and phone */
@media (max-width:900px){.lgca-latest .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){.lgca-latest{padding:56px 20px!important}.lgca-latest .wp-block-post-template{grid-template-columns:1fr!important}.lgca-latest h2,.lgca-latest .wp-block-heading{font-size:26px!important}}

/* =====================================================================
   LGCA SITE-WIDE SPACING FIX (Twenty Twenty)
   Paste into Appearance > Customize > Additional CSS, then Publish.
   It only affects pages that contain LGCA sections (anything built with
   the .lgca, .lgca-hero, .lgca-hdr or .lgca-latest code). Blog posts
   and older pages keep their normal spacing.
   Before pasting: delete any older LGCA spacing snippets (the ones with
   "page-template-templatestemplate" or "page-id-") so they don't conflict.
   ===================================================================== */

/* 1. Sections sit flush against each other: no theme gaps between blocks */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 2. Remove empty paragraphs and line breaks WordPress sometimes adds between pasted code */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > p:empty,
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > br,
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > p:has(> br:only-child) {
  display: none !important;
}

/* 3. Remove the big empty space under the site header */
.post-inner:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 4. Hide the theme's large page title (each LGCA page has its own hero headline) */
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > .entry-header,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > .featured-media {
  display: none !important;
}

/* 5. Hide comments, page navigation and post meta on these pages */
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .comments-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .post-meta-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .pagination-single,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .section-inner.comments-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) ~ .comments-wrapper {
  display: none !important;
}

/* 6. Remove the gap between the last section and the site footer */
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) .footer-nav-widgets-wrapper,
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) #site-footer {
  margin-top: 0 !important;
}
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) #site-content {
  padding-bottom: 0 !important;
}

/* 7. Let every LGCA section use the full width even on the default template */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) {
  max-width: none !important;
  width: 100% !important;
  overflow-x: clip;
}

/* =====================================================================
   LGCA SITE-WIDE SPACING FIX (Twenty Twenty)
   Paste into Appearance > Customize > Additional CSS, then Publish.
   It only affects pages that contain LGCA sections (anything built with
   the .lgca, .lgca-hero, .lgca-hdr or .lgca-latest code). Blog posts
   and older pages keep their normal spacing.
   Before pasting: delete any older LGCA spacing snippets (the ones with
   "page-template-templatestemplate" or "page-id-") so they don't conflict.
   ===================================================================== */

/* 0. THE MAIN CAUSE: Twenty Twenty adds 80px of padding above and below every <section>.
      LGCA sections set their own spacing, so remove the theme's. (Sections with their
      own inline padding, like the homepage, keep it.) Also reset the theme's large
      21px base text size inside LGCA sections. */
.lgca section,
.lgca-latest section {
  padding-top: 0;
  padding-bottom: 0;
}
.lgca {
  font-size: 16px;
}

/* 1. Sections sit flush against each other: no theme gaps between blocks */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 2. Remove empty paragraphs and line breaks WordPress sometimes adds between pasted code */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > p:empty,
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > br,
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > p:has(> br:only-child) {
  display: none !important;
}

/* 3. Remove the big empty space under the site header */
.post-inner:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 4. Hide the theme's large page title (each LGCA page has its own hero headline) */
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > .entry-header,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) > .featured-media {
  display: none !important;
}

/* 5. Hide comments, page navigation and post meta on these pages */
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .comments-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .post-meta-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .pagination-single,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) .section-inner.comments-wrapper,
article:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) ~ .comments-wrapper {
  display: none !important;
}

/* 6. Remove the gap between the last section and the site footer */
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) .footer-nav-widgets-wrapper,
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) #site-footer {
  margin-top: 0 !important;
}
body:has(.entry-content .lgca, .entry-content .lgca-hero, .entry-content .lgca-latest) #site-content {
  padding-bottom: 0 !important;
}

/* 7. Let every LGCA section use the full width even on the default template */
.entry-content:has(.lgca, .lgca-hero, .lgca-hdr, .lgca-latest) {
  max-width: none !important;
  width: 100% !important;
  overflow-x: clip;
}

/* ===== UNDER CONSTRUCTION BANNER — START ===== */
/* Paste into Appearance > Editor > Styles > Additional CSS (or Appearance > Customize > Additional CSS). */
/* To remove the banner later, delete everything between the START and END lines. */

body::before {
  content: "Our website is under construction. We apologize for its appearance and for any links that do not work correctly. Thank you for your patience as we make improvements.";
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 0;
  background: #f59e0b;
  color: #0f2a4a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
  animation: lgca-banner-scroll 40s linear infinite;
}

@keyframes lgca-banner-scroll {
  from { text-indent: 100%; }
  to   { text-indent: -100em; }
}

/* Visitors who prefer reduced motion see a still, centered message instead of a scroll */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    text-indent: 0;
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
  }
}
/* ===== UNDER CONSTRUCTION BANNER — END ===== */