/* ==========================================================
   ASQ BLOG — CUSTOM CSS
   ----------------------------------------------------------
   Maintained in: Appearance → Customize → Additional CSS
   Companion code lives in the Gwen Child theme's functions.php:
     - the "#" stripper for tag labels
     - the end-of-post subscribe box (the_content filter)

   Sections:
     00  Brand colors (edit here to re-theme everything below)
     01  Sticky site header
     02  Post intro block (.asq-header-block)
     03  Interview question styling
     04  Pull quotes
     05  Body text rhythm & separators
     06  Footer subscribe band (slate CTA strip above footer)
     07  Tag chips on posts
     08  Accent color on buttons & category links
     09  Footer sizing (smaller type & logo)
     10  Archive card excerpts (left-aligned)
     11  OPTIONAL: slate duotone on card images (listings only)
     12  Hide comment counts (theme hardcodes them)
     13  End-of-post subscribe box
   ========================================================== */

/* == 00. Brand colors ===================================== */
:root {
  --asq-accent: #6C92A2;        /* slate blue-grey, the site accent */
  --asq-accent-dark: #587e8e;   /* accent hover state */
  --asq-ink: #2b3542;           /* dark charcoal (buttons on accent) */
  --asq-ink-dark: #1c242e;      /* charcoal hover state */
  --asq-tint: #eef3f5;          /* pale accent tint (chips, panels) */
  --asq-line: #d9e1e5;          /* hairline borders */
}

/* == 01. Sticky site header =============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* == 02. Post intro block ==================================
   Wrap intro text in <div class="asq-header-block"> in the
   post editor to get a tinted panel with an accent rule.   */
.asq-header-block {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--asq-accent);
  margin-bottom: 1.5em;
}
.asq-header-block p { margin: 0 0 0.5em 0; }
.asq-header-block p:last-child { margin-bottom: 0; }

/* == 03. Interview question styling ========================
   Paragraphs written as bold+italic in the editor render as
   accent-colored questions with a left rule.               */
.entry-content p > strong > em,
.entry-content p > em > strong {
  display: block;
  color: var(--asq-accent);
  border-left: 3px solid var(--asq-accent);
  padding-left: 15px;
  margin: 1.5em 0 1em 0;
}

/* == 04. Pull quotes ======================================= */
.wp-block-quote {
  text-align: center !important;
  border-left: none !important;
  border-top: 2px solid var(--asq-accent) !important;
  border-bottom: 2px solid var(--asq-accent) !important;
  padding: 20px 30px !important;
  margin: 2em auto !important;
  max-width: 75% !important;
  background: transparent !important;
}
.wp-block-quote::before { display: none !important; content: none !important; }
.wp-block-quote p {
  font-size: 1em !important;
  font-style: italic !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* == 05. Body text rhythm & separators ===================== */
.entry-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}
.wp-block-separator {
  border: none !important;
  border-top: 1px solid #ddd !important;
  margin: 2em auto !important;
  width: 60% !important;
}

/* == 06. Footer subscribe band ==============================
   The slate strip at the top of the footer. Markup comes from
   atbs-footer.php in the child theme (Jetpack shortcode).
   The negative top margin must equal .site-footer's padding
   (see section 09) so the band sits flush.                  */
.site-footer .footer-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 26px 20px;
  margin: -32px 0 32px;
  background: var(--asq-accent);
  font-size: 0.95rem;
}
.site-footer .footer-subscribe-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.site-footer .footer-subscribe form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer .footer-subscribe form p { margin: 0 !important; }
.site-footer .footer-subscribe input[type="email"] {
  width: 280px;
  max-width: 60vw;
  height: 42px;
  padding: 0 14px !important;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
}
.site-footer .footer-subscribe button.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px !important;
  font-size: 0.95rem !important;
  border-radius: 4px !important;
  background: var(--asq-ink) !important;
  color: #fff !important;
  border: none;
}
.site-footer .footer-subscribe button.wp-block-button__link:hover {
  background: var(--asq-ink-dark) !important;
}
/* Success / error states: hide the title, show one centered line */
.site-footer .footer-subscribe .success,
.site-footer .footer-subscribe .error,
.site-footer .footer-subscribe #subscribe-email-error {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  color: #fff;
}
.site-footer .footer-subscribe:has(.success) .footer-subscribe-title,
.site-footer .footer-subscribe:has(.error) .footer-subscribe-title {
  display: none;
}
.site-footer .footer-subscribe .success {
  width: 100%;
  max-width: 620px;
}

/* == 07. Tag chips on posts =================================
   The "#" prefix is removed by a snippet in functions.php.  */
.post__tags a {
  display: inline-block;
  background: var(--asq-tint);
  border: 1px solid var(--asq-line);
  border-radius: 3px;
  padding: 2px 10px;
  margin: 3px 4px 3px 0;
  line-height: 1.5;
}

/* == 08. Accent color on buttons & category links ========== */
a.button__readmore {
  background: var(--asq-accent) !important;
  border-color: var(--asq-accent) !important;
  color: #fff !important;
}
a.button__readmore:hover {
  background: var(--asq-accent-dark) !important;
  border-color: var(--asq-accent-dark) !important;
}
a.post__cat { color: var(--asq-accent) !important; }

/* == 09. Footer sizing ======================================
   Theme default is 30px type and a huge logo circle.
   If you change the padding here, update section 06's
   negative margin to match.                                 */
.site-footer {
  font-size: 16px;
  padding: 32px 0;
}
.site-footer .footer-logo {
  width: 150px;
  height: 150px;
  padding: 18px;
}
.site-footer .col-logo img {
  max-width: 110px;
  height: auto;
}

/* == 10. Archive card excerpts ============================== */
.post__excerpt {
  text-align: left;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* == 11. OPTIONAL: slate duotone on card images =============
   Applies on listing pages (home, categories, tags, search)
   only — the featured image inside an opened post stays in
   full color. Full color also returns on hover in listings.
   Delete this section to restore original colors everywhere. */
body:not(.single) .post__thumb img,
body:not(.single) .post__thumb div[style*="background-image"] {
  filter: grayscale(1) sepia(.32) hue-rotate(155deg) saturate(.55) brightness(1.02);
  transition: filter .35s ease;
}
body:not(.single) .post__thumb:hover img,
body:not(.single) .post__thumb:hover div[style*="background-image"] {
  filter: none;
}

/* == 12. Hide comment counts ================================
   Comments are disabled site-wide but the card templates
   hardcode a "0 Comments" link; single-post meta is handled
   in Theme Options (Author + Date).                         */
.post__meta span:has(> a[title*="Comments"]),
.entry-meta a[title*="Comments"],
.entry-meta .meta-comment {
  display: none !important;
}

/* == 13. End-of-post subscribe box ==========================
   Markup is appended by a the_content filter in the child
   theme's functions.php.                                    */
.post-subscribe {
  margin: 2.5em 0 1em;
  padding: 22px 24px;
  background: var(--asq-tint);
  border-top: 3px solid var(--asq-accent);
}
.post-subscribe-title {
  font-weight: 600;
  margin: 0 0 10px;
}
.post-subscribe form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.post-subscribe form p { margin: 0 !important; }
.post-subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px !important;
  border: 1px solid #ccd6db;
  border-radius: 4px;
}
.post-subscribe button.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px !important;
  font-size: 0.95rem !important;
  border-radius: 4px !important;
  background: var(--asq-accent) !important;
  color: #fff !important;
}