/*
Theme Name: MBFFL Theme
Theme URI: http://mybigfatfunnylife.com
Description: Child Theme For Divi
Author: Nick Athanassiadis
Author URI: http://mybigfatfunnylife.com
Version: 1.2.1
Template: Divi
*/

/* ==========================================================
   MBFFL / Siga Siga — SANITIZED CSS v4
   Replaces the current Divi Custom CSS
   ========================================================== */


/* ==========================================================
   1) COMMENTS — FINAL POLISH
   ========================================================== */

/* Comments count heading: "0 Comments", "2 Comments" */
h1#comments,
h2#comments,
h3#comments,
h4#comments,
#comments-title {
  font-family: 'Raleway', sans-serif !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #111638 !important;
  letter-spacing: 0 !important;
  margin-bottom: 20px !important;
}

/* "Submit a Comment" heading */
.et_pb_comments_module .comment-reply-title,
.et_pb_comments_module h3.comment-reply-title,
.et_pb_comments_module #reply-title {
  font-family: 'Raleway', sans-serif !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #111638 !important;
  letter-spacing: 0 !important;
  margin-bottom: 12px !important;
}

/* Explanatory text under comment heading */
.et_pb_comments_module .comment-notes,
.et_pb_comments_module .logged-in-as {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #666666 !important;
  margin-bottom: 18px !important;
}

/* Form labels */
.et_pb_comments_module label {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #555555 !important;
}

/* Comment form fields */
.et_pb_comments_module textarea,
.et_pb_comments_module input[type="text"],
.et_pb_comments_module input[type="email"],
.et_pb_comments_module input[type="url"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  color: #222222 !important;
  background: #f3f3f3 !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
}

/* Placeholder text */
.et_pb_comments_module textarea::placeholder,
.et_pb_comments_module input[type="text"]::placeholder,
.et_pb_comments_module input[type="email"]::placeholder,
.et_pb_comments_module input[type="url"]::placeholder {
  color: #999999 !important;
  opacity: 1 !important;
}

/* Field focus */
.et_pb_comments_module textarea:focus,
.et_pb_comments_module input[type="text"]:focus,
.et_pb_comments_module input[type="email"]:focus,
.et_pb_comments_module input[type="url"]:focus {
  border-color: #111638 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(17, 22, 56, 0.08) !important;
}

/* Submit button */
.et_pb_comments_module .form-submit .submit,
.et_pb_comments_module input.submit {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: #111638 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

/* Submit hover */
.et_pb_comments_module .form-submit .submit:hover,
.et_pb_comments_module input.submit:hover {
  opacity: 0.9 !important;
}

/* Mobile */
@media (max-width: 767px) {
  h1#comments,
  h2#comments,
  h3#comments,
  h4#comments,
  #comments-title {
    font-size: 20px !important;
  }

  .et_pb_comments_module .comment-reply-title,
  .et_pb_comments_module h3.comment-reply-title,
  .et_pb_comments_module #reply-title {
    font-size: 20px !important;
  }

  .et_pb_comments_module .comment-notes,
  .et_pb_comments_module .logged-in-as {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .et_pb_comments_module textarea,
  .et_pb_comments_module input[type="text"],
  .et_pb_comments_module input[type="email"],
  .et_pb_comments_module input[type="url"] {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  .et_pb_comments_module .form-submit .submit,
  .et_pb_comments_module input.submit {
    font-size: 15px !important;
    padding: 13px 20px !important;
  }
}


/* ==========================================================
   2) BLOG / IMAGE BASICS
   ========================================================== */

.et_pb_post {
  border: none;
  box-shadow: none;
  padding: 0;
}

.et_pb_post .entry-featured-image-url img {
  border-radius: 6px;
}

.et_pb_post h2 {
  margin-top: 10px;
}

.et_pb_post .post-meta {
  font-size: 13px;
  opacity: 0.7;
}

figure figcaption {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-top: 6px;
  pointer-events: none;
}


/* ==========================================================
   3) POST CONTENT / IMAGE SPACING
   ========================================================== */

.entry-content > *:first-child,
.entry-content figure:first-child {
  margin-top: 0 !important;
}

.entry-content figure,
.entry-content .captioned-image-container,
.entry-content .image2-inset {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* ==========================================================
   4) TITLE / SUBTITLE / META STACK
   Scoped to essay template body only
   ========================================================== */

.et_pb_post_title {
  margin-bottom: 6px !important;
}

.et_pb_text_0_tb_body,
.et_pb_text_0_tb_body .et_pb_text_inner,
.et_pb_text_0_tb_body .et_pb_text_inner p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2em !important;
}

.et_pb_row_1_tb_body {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.et_pb_row_2_tb_body {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.et_pb_image_0_tb_body {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

.et_pb_divider_0_tb_body {
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.et_pb_divider_0_tb_body .et_pb_divider_internal {
  margin: 0 !important;
}


/* ==========================================================
   5) META ROW — SINGLE SOURCE OF TRUTH
   ========================================================== */

.mbffl-meta-share::before,
.mbffl-meta-share::after {
  content: none !important;
  display: none !important;
}

.et_pb_text_1_tb_body,
.et_pb_text_1_tb_body .et_pb_text_inner,
.et_pb_text_1_tb_body .et_pb_text_inner p {
  margin: 0 !important;
  padding: 0 !important;
}

.mbffl-meta-share {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mbffl-author {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}

.mbffl-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  transform: none !important;
}

.mbffl-read-meta {
  color: #666;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.mbffl-share-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.mbffl-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8a8a;
  display: inline-block;
  flex: 0 0 7px;
}

.mbffl-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.mbffl-share-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #666;
  margin: 0 !important;
  padding: 0 !important;
}

.mbffl-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #333;
  text-decoration: none;
}

.mbffl-share svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.mbffl-share a.share-facebook svg {
  width: 17px;
  height: 17px;
  transform: translateY(1px);
}

.mbffl-share a:hover {
  opacity: 0.65;
}

@media (max-width: 767px) {
  .mbffl-meta-share {
    gap: 10px !important;
  }

  .mbffl-read-meta {
    font-size: 15px;
  }

  .mbffl-share {
    gap: 10px;
  }

  .mbffl-share-label {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .mbffl-share svg {
    width: 18px;
    height: 18px;
  }
}


/* ==========================================================
   6) ESSAY TEMPLATE SPACING CLEANUP
   ========================================================== */

.et_pb_post_title_0_tb_body .entry-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.05 !important;
}

.et_pb_text_0_tb_body .et_pb_text_inner,
.et_pb_text_1_tb_body .et_pb_text_inner {
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_text_0_tb_body .et_pb_text_inner p,
.et_pb_text_1_tb_body .et_pb_text_inner p {
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_row_0_tb_body,
.et_pb_row_1_tb_body,
.et_pb_row_2_tb_body {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mobile single essay: simple padding only */
@media only screen and (max-width: 980px) {
  .single-substack_item #left-area {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .single-substack_item h1.entry-title,
  .single-substack_item .entry-title,
  .single-substack_item .et_pb_title_container h1 {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .single-substack_item .mbffl-meta-share,
  .single-substack_item .post-meta,
  .single-substack_item .et_post_meta_wrapper {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .single-substack_item #comments,
  .single-substack_item .comments-area,
  .single-substack_item .comment-respond {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .et-l--footer .footer-bottom {
    text-align: left !important;
  }
}


/* ==========================================================
   7) HIDE SUBSTACK RESTACK BUTTON
   ========================================================== */

.et_pb_post button.pencraft.pc-reset.pencraft.icon-container.restack-image {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ==========================================================
   8) HOMEPAGE SHOWCASE
   ========================================================== */

body .mbffl-showcase-card {
  width: 100%;
  margin: 0 !important;
}

body .mbffl-showcase-kicker-mobile {
  display: none;
}

body .mbffl-showcase-kicker-desktop {
  display: block;
}

body .mbffl-showcase-grid {
  display: grid !important;
  grid-template-columns: 0.9fr 1fr !important;
  gap: 26px !important;
  align-items: center !important;
}

body .mbffl-showcase-media {
  margin: 0 !important;
}

body .mbffl-showcase-media a,
body .mbffl-showcase-media img {
  display: block !important;
  width: 100% !important;
}

body .mbffl-showcase-media img {
  height: auto !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

body .mbffl-showcase-content {
  padding: 10px 18px 10px 0 !important;
}

body .mbffl-showcase-kicker {
  margin: 0 0 10px 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
}

body .mbffl-showcase-title,
body .mbffl-showcase-card h2.mbffl-showcase-title {
  margin: 0 0 16px 0 !important;
  font-size: 34px !important;
  line-height: 1.06 !important;
}

body .mbffl-showcase-title a,
body .mbffl-showcase-card h2.mbffl-showcase-title a {
  font-size: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
}

body .mbffl-showcase-teaser {
  margin: 0 0 22px 0 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  max-width: 34ch !important;
}

body .mbffl-showcase-teaser p {
  margin: 0 !important;
}

body .mbffl-showcase-cta,
body .mbffl-showcase-card p.mbffl-showcase-cta {
  margin: 0 !important;
}

body .mbffl-showcase-button {
  display: inline-block !important;
  padding: 12px 20px !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

/* Mobile showcase */
@media only screen and (max-width: 980px) {
  body .mbffl-showcase-kicker-mobile {
    display: block !important;
    text-align: left !important;
    margin: 0 0 12px !important;
  }

  body .mbffl-showcase-kicker-desktop {
    display: none !important;
  }

  body .mbffl-showcase-grid {
    display: block !important;
    grid-template-columns: none !important;
  }

  body .mbffl-showcase-media {
    width: 100% !important;
    margin: 0 0 16px !important;
  }

  body .mbffl-showcase-content {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }

  body .mbffl-showcase-title,
  body .mbffl-showcase-title a,
  body .mbffl-showcase-teaser,
  body .mbffl-showcase-cta {
    text-align: left !important;
  }

  body .mbffl-showcase-title {
    margin: 0 0 12px !important;
  }

  body .mbffl-showcase-teaser {
    margin: 0 0 16px !important;
    max-width: none !important;
  }

  body .mbffl-showcase-cta {
    margin: 0 !important;
  }

  body .mbffl-showcase-button {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    padding: 12px 20px !important;
  }
}


/* ==========================================================
   9) HOMEPAGE TRENDING GRID
   ========================================================== */

body .mbffl-trending-grid,
body .mbffl-trending-list {
  gap: 24px !important;
}

body .mbffl-trending-card,
body .mbffl-trending-item {
  border: 1px solid rgba(17, 22, 56, 0.12) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body .mbffl-trending-card img,
body .mbffl-trending-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
}

body .mbffl-trending-card .mbffl-trending-title,
body .mbffl-trending-item .mbffl-trending-title {
  margin-top: 14px !important;
}

body .mbffl-trending-card .mbffl-trending-teaser,
body .mbffl-trending-item .mbffl-trending-teaser {
  margin-top: 10px !important;
}

body .mbffl-trending-card .mbffl-trending-meta,
body .mbffl-trending-item .mbffl-trending-meta {
  margin-top: 12px !important;
}


/* ==========================================================
   10) FOOTER SOCIAL SIZE
   ========================================================== */

.et_pb_social_media_follow.footer-social-small li a.icon:before {
  font-size: 18px !important;
}

.et_pb_social_media_follow.footer-social-small li a {
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
}

.et_pb_social_media_follow.footer-social-small li {
  margin-right: 10px !important;
}


/* ==========================================================
   11) ESSAYS ARCHIVE SPACING
   ========================================================== */

.mbffl-archive-section {
  padding-top: 18px !important;
  padding-bottom: 8px !important;
}

.mbffl-archive-top-row.et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.mbffl-archive-top-row .et_pb_module {
  margin-bottom: 0 !important;
}

.mbffl-archive-top-row .et_pb_text p {
  margin-bottom: 0 !important;
}

.mbffl-archive-top-row .et_pb_text:first-of-type {
  margin-bottom: 14px !important;
}

.mbffl-archive-top-row .et_pb_text:nth-of-type(2) {
  margin-bottom: 10px !important;
}

.mbffl-archive-top-row .mbffl-essay-count {
  margin-bottom: 14px !important;
}

.mbffl-archive-top-row .et_pb_button_module_wrapper {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.mbffl-archive-divider-row.et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.mbffl-archive-divider-row .et_pb_divider {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mbffl-archive-grid-row.et_pb_row {
  padding-top: 4px !important;
  margin-top: 0 !important;
}


/* ==========================================================
   12) DIVI BLOG / ARCHIVE TITLE CLAMP
   Keep only for native Divi/blog cards
   ========================================================== */

.et_pb_blog_grid .et_pb_post .entry-title,
.et_pb_blog_grid .et_pb_post h2.entry-title,
.archive .et_pb_post .entry-title,
.archive .et_pb_post h2.entry-title,
.blog .et_pb_post .entry-title,
.blog .et_pb_post h2.entry-title {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: "Raleway", sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-variation-settings: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.14 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  text-overflow: ellipsis !important;
  min-height: 2.28em !important;
  max-height: 2.28em !important;
}

.et_pb_blog_grid .et_pb_post .entry-title > a,
.et_pb_blog_grid .et_pb_post h2.entry-title > a,
.archive .et_pb_post .entry-title > a,
.archive .et_pb_post h2.entry-title > a,
.blog .et_pb_post .entry-title > a,
.blog .et_pb_post h2.entry-title > a {
  display: inline !important;
  font: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: none !important;
}

.et_pb_blog_grid .et_pb_post .entry-title *,
.et_pb_blog_grid .et_pb_post h2.entry-title *,
.archive .et_pb_post .entry-title *,
.archive .et_pb_post h2.entry-title *,
.blog .et_pb_post .entry-title *,
.blog .et_pb_post h2.entry-title * {
  font-family: "Raleway", serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-variation-settings: normal !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

.et_pb_blog_grid .et_pb_post .entry-title em,
.et_pb_blog_grid .et_pb_post .entry-title i,
.et_pb_blog_grid .et_pb_post .entry-title strong,
.et_pb_blog_grid .et_pb_post .entry-title b,
.et_pb_blog_grid .et_pb_post .entry-title span,
.et_pb_blog_grid .et_pb_post h2.entry-title em,
.et_pb_blog_grid .et_pb_post h2.entry-title i,
.et_pb_blog_grid .et_pb_post h2.entry-title strong,
.et_pb_blog_grid .et_pb_post h2.entry-title b,
.et_pb_blog_grid .et_pb_post h2.entry-title span,
.archive .et_pb_post .entry-title em,
.archive .et_pb_post .entry-title i,
.archive .et_pb_post .entry-title strong,
.archive .et_pb_post .entry-title b,
.archive .et_pb_post .entry-title span,
.archive .et_pb_post h2.entry-title em,
.archive .et_pb_post h2.entry-title i,
.archive .et_pb_post h2.entry-title strong,
.archive .et_pb_post h2.entry-title b,
.archive .et_pb_post h2.entry-title span,
.blog .et_pb_post .entry-title em,
.blog .et_pb_post .entry-title i,
.blog .et_pb_post .entry-title strong,
.blog .et_pb_post .entry-title b,
.blog .et_pb_post .entry-title span,
.blog .et_pb_post h2.entry-title em,
.blog .et_pb_post h2.entry-title i,
.blog .et_pb_post h2.entry-title strong,
.blog .et_pb_post h2.entry-title b,
.blog .et_pb_post h2.entry-title span {
  font-family: "Raleway", serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

.et_pb_blog_grid .et_pb_post .post-content p,
.archive .et_pb_post .post-content p,
.blog .et_pb_post .post-content p {
  clear: both !important;
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_post .entry-title,
  .et_pb_blog_grid .et_pb_post h2.entry-title,
  .archive .et_pb_post .entry-title,
  .archive .et_pb_post h2.entry-title,
  .blog .et_pb_post .entry-title,
  .blog .et_pb_post h2.entry-title {
    font-size: 30px !important;
  }
}

@media (min-width: 768px) {
  .et_pb_blog_grid .et_pb_post .entry-title,
  .et_pb_blog_grid .et_pb_post h2.entry-title,
  .archive .et_pb_post .entry-title,
  .archive .et_pb_post h2.entry-title,
  .blog .et_pb_post .entry-title,
  .blog .et_pb_post h2.entry-title {
    font-size: 40px !important;
  }
}


/* ==========================================================
   13) CONTACT FORM / WPFORMS
   Form ID: 246783
   ========================================================== */

#wpforms-246783 {
  max-width: 920px;
  margin-top: 8px;
}

#wpforms-246783 .wpforms-field {
  padding-bottom: 18px !important;
}

#wpforms-246783 .wpforms-field-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #666 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}

#wpforms-246783 .wpforms-required-label {
  color: #c76a6a !important;
}

#wpforms-246783 input[type="text"],
#wpforms-246783 input[type="email"],
#wpforms-246783 textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(17, 22, 56, 0.18) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #333 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  padding: 14px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#wpforms-246783 input[type="text"]:focus,
#wpforms-246783 input[type="email"]:focus,
#wpforms-246783 textarea:focus {
  border-color: #111638 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(17, 22, 56, 0.08) !important;
}

#wpforms-246783 input::placeholder,
#wpforms-246783 textarea::placeholder {
  color: #9a9a9a !important;
}

#wpforms-246783 textarea {
  min-height: 180px !important;
  resize: vertical !important;
}

#wpforms-246783 .wpforms-field-sublabel {
  color: #8a8a8a !important;
  font-size: 14px !important;
  margin-top: 6px !important;
}

#wpforms-246783 .wpforms-submit-container {
  margin-top: 8px !important;
  padding-top: 0 !important;
}

#wpforms-246783 button[type="submit"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #111638 !important;
  color: #ffffff !important;
  border: 1px solid #111638 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding: 14px 24px !important;
  transition: all 0.25s ease !important;
}

#wpforms-246783 button[type="submit"]:hover {
  background: transparent !important;
  color: #111638 !important;
}

#wpforms-246783 label.wpforms-error {
  font-size: 14px !important;
  margin-top: 6px !important;
}

#wpforms-246783 input.wpforms-error,
#wpforms-246783 textarea.wpforms-error {
  border-color: #c94b4b !important;
}

.wpforms-confirmation-container-full,
.wpforms-confirmation-container {
  background: #f7f7f7 !important;
  border: 1px solid #d9dde8 !important;
  border-left: 4px solid #111638 !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin-top: 16px !important;
  color: #444 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container textarea,
.wpforms-container select {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.wpforms-container .wpforms-field-label {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #666 !important;
}

div.wpforms-container .wpforms-form input::placeholder,
div.wpforms-container .wpforms-form textarea::placeholder {
  font-size: 14px !important;
  color: #8a8a8a !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  #wpforms-246783 .wpforms-field-label {
    font-size: 17px !important;
  }

  #wpforms-246783 input[type="text"],
  #wpforms-246783 input[type="email"],
  #wpforms-246783 textarea {
    font-size: 17px !important;
    padding: 13px 14px !important;
  }

  #wpforms-246783 button[type="submit"] {
    width: auto !important;
  }

  .wpforms-container input[type="text"],
  .wpforms-container input[type="email"],
  .wpforms-container input[type="tel"],
  .wpforms-container input[type="url"],
  .wpforms-container textarea,
  .wpforms-container select,
  .wpforms-container .wpforms-field input,
  .wpforms-container .wpforms-field textarea,
  .wpforms-container .wpforms-field select,
  .wpforms-container-full input[type="text"],
  .wpforms-container-full input[type="email"],
  .wpforms-container-full input[type="tel"],
  .wpforms-container-full input[type="url"],
  .wpforms-container-full input[type="number"],
  .wpforms-container-full textarea,
  .wpforms-container-full select,
  div.wpforms-container .wpforms-form input[type="text"],
  div.wpforms-container .wpforms-form input[type="email"],
  div.wpforms-container .wpforms-form input[type="tel"],
  div.wpforms-container .wpforms-form input[type="url"],
  div.wpforms-container .wpforms-form input[type="number"],
  div.wpforms-container .wpforms-form textarea,
  div.wpforms-container .wpforms-form select {
    font-size: 16px !important;
  }
}


/* ==========================================================
   14) MOBILE HEADER
   ========================================================== */

@media (max-width: 980px) {
  .et-l--header .et_pb_row,
  .et-l--header .et_pb_menu__wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .et-l--header .et_pb_section,
  .et-l--header .et_pb_row,
  .et-l--header .et_pb_column,
  .et-l--header .et_pb_module {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .et-l--header .et_pb_section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .et-l--header .et_pb_row {
    flex-wrap: nowrap !important;
  }

  .et-l--header .et_pb_row > .et_pb_column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .et-l--header .et_pb_row > .et_pb_column:first-child {
    justify-content: flex-start !important;
  }

  .et-l--header .et_pb_row > .et_pb_column:last-child {
    justify-content: flex-end !important;
  }

  .et-l--header .et_pb_image {
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(8px) !important;
  }

  .et-l--header .et_pb_image img,
  .et-l--header .et_pb_image .et_pb_image_wrap img {
    width: 74px !important;
    max-width: 74px !important;
    height: auto !important;
    display: block !important;
  }

  .et-l--header .et_pb_menu {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-8px) !important;
  }

  .et-l--header .mobile_menu_bar,
  .et-l--header .et_pb_menu .mobile_menu_bar {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .et-l--header .et_pb_menu .et_mobile_menu {
    left: auto !important;
    right: 0 !important;
    width: 220px !important;
    min-width: 220px !important;
    padding: 8px 0 !important;
    border-top: 3px solid #3fa9f5 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  }

  .et-l--header .et_pb_menu .et_mobile_menu li {
    background: transparent !important;
  }

  .et-l--header .et_pb_menu .et_mobile_menu li a,
  .et_mobile_menu li a {
    white-space: nowrap !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    padding: 12px 18px !important;
  }

  .et-l--header .et_pb_menu .et_mobile_menu li a:hover {
    background: rgba(0,0,0,0.03) !important;
  }
}


/* ==========================================================
   15) MOBILE PATCHES — COMMENTS / META AVATAR
   ========================================================== */

@media (max-width: 767px) {
  .commentlist,
  .comment-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .commentlist li.comment,
  .comment-list li.comment {
    position: relative !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .commentlist li.comment ul.children,
  .comment-list li.comment ul.children {
    margin-left: 18px !important;
    padding-left: 18px !important;
    border-left: 3px solid #111638 !important;
  }

  .commentlist li.comment ul.children li.comment,
  .comment-list li.comment ul.children li.comment {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .commentlist li.comment::before,
  .commentlist li.comment::after,
  .comment-list li.comment::before,
  .comment-list li.comment::after,
  .commentlist li.comment ul.children::before,
  .commentlist li.comment ul.children::after,
  .comment-list li.comment ul.children::before,
  .comment-list li.comment ul.children::after {
    display: none !important;
    content: none !important;
  }

  .commentlist img.avatar,
  .comment-list img.avatar,
  .et_pb_comments_module img.avatar {
    border-radius: 999px !important;
    object-fit: cover !important;
  }

  .commentlist > li.comment > .comment-body img.avatar,
  .comment-list > li.comment > .comment-body img.avatar {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
  }

  .commentlist li.comment ul.children li.comment > .comment-body img.avatar,
  .comment-list li.comment ul.children li.comment > .comment-body img.avatar {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
  }

  .comment-body {
    min-height: 56px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .mbffl-meta-share img,
  .mbffl-meta-share .avatar,
  .mbffl-meta-share img.avatar,
  .mbffl-meta-share .mbffl-avatar img,
  .mbffl-meta-share .author-avatar img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    display: block !important;
    aspect-ratio: 1 / 1 !important;
  }

  .mbffl-meta-share .mbffl-avatar,
  .mbffl-meta-share .author-avatar,
  .mbffl-meta-share .mbffl-avatar-wrap,
  .mbffl-meta-share .author-avatar-wrap,
  .mbffl-meta-share .meta-avatar,
  .mbffl-meta-share .post-meta-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  .mbffl-meta-share,
  .mbffl-meta-share-row,
  .mbffl-meta {
    align-items: center !important;
    column-gap: 12px !important;
  }

  #comments,
  .comments-area,
  .et_pb_comments_module,
  .commentlist,
  .comment-list,
  #respond,
  .comment-respond {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================
   16) MOBILE SHARE CLEANUP
   ========================================================== */

@media (max-width: 680px) {
  .mbffl-share-facebook {
    display: none !important;
  }
}
/* ==========================================================
   MOBILE ARCHIVE SUBSCRIBE BUTTON FIX
   ========================================================== */

@media (max-width: 767px) {
  .mbffl-archive-top-row .et_pb_button,
  .mbffl-archive-top-row .et_pb_button_module_wrapper .et_pb_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    padding: 9px 16px !important;
    border-radius: 13px !important;
    background: #111638 !important;
    color: #ffffff !important;
    border: 1px solid #111638 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .mbffl-archive-top-row .et_pb_button:after,
  .mbffl-archive-top-row .et_pb_button:before {
    display: none !important;
    content: none !important;
  }
}
/* Stronger mobile Subscribe button override */
@media (max-width: 767px) {
  .mbffl-archive-top-row a.et_pb_button,
  .mbffl-archive-top-row .et_pb_button_module_wrapper a.et_pb_button {
    display: inline-block !important;
    padding: 10px 18px 11px 18px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .mbffl-archive-top-row a.et_pb_button,
  .mbffl-archive-top-row a.et_pb_button:hover {
    color: #ffffff !important;
    background-color: #111638 !important;
  }
}
/* Strong mobile Subscribe button fix — archive page */
@media (max-width: 767px) {
  body.post-type-archive-substack_item a.et_pb_button,
  body.post-type-archive-substack_item .et_pb_button_module_wrapper a.et_pb_button {
    display: inline-block !important;
    padding: 12px 30px 13px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-substack_item a.et_pb_button:before,
  body.post-type-archive-substack_item a.et_pb_button:after {
    display: none !important;
    content: none !important;
  }
} 
      
/* ==========================================================
   FOOTER — BOTTOM ROW MOBILE
   ========================================================== */

@media (max-width: 767px) {

  .et-l--footer .mbffl-footer-bottom {
    display: block !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
  }

  .et-l--footer .mbffl-footer-bottom .et_pb_column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: center !important;
  }

  .et-l--footer .mbffl-footer-bottom .et_pb_module,
  .et-l--footer .mbffl-footer-bottom .et_pb_text,
  .et-l--footer .mbffl-footer-bottom p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .et-l--footer .mbffl-footer-bottom .et_pb_column + .et_pb_column {
    margin-top: 8px !important;
  }

  .et-l--footer .mbffl-footer-bottom p,
  .et-l--footer .mbffl-footer-bottom a {
    font-size: 15px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}
/* ==========================================================
   FOOTER — DESKTOP SPACING TIGHTEN
   Zero first, add only needed space
   ========================================================== */

@media (min-width: 768px) {

  .et-l--footer .mbffl-footer-main,
  .et-l--footer .mbffl-footer-main .et_pb_row,
  .et-l--footer .mbffl-footer-main .et_pb_column,
  .et-l--footer .mbffl-footer-main .et_pb_module {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Space between title and tagline */
  .et-l--footer .mbffl-footer-main .et_pb_text:first-child {
    margin-bottom: 18px !important;
  }

  /* Divider should not create mystery space */
  .et-l--footer .mbffl-footer-main .et_pb_divider,
  .et-l--footer .mbffl-footer-main .et_pb_divider_internal {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Controlled space below divider before Share / Follow / Subscribe row */
  .et-l--footer .mbffl-footer-main .et_pb_divider {
    margin-bottom: 12px !important;
  }

  /* Tighten label-to-link/icon/button distance inside the 3 columns */
  .et-l--footer .mbffl-footer-main .et_pb_column .et_pb_module:first-child {
    margin-bottom: 8px !important;
  }

  /* Reduce space below the action row before copyright/privacy */
  .et-l--footer .mbffl-footer-main {
    padding-bottom: 20px !important;
  }
}
/* ==========================================================
   FOOTER — DESKTOP ACTION ROW FORCE TIGHTEN
   ========================================================== */

@media (min-width: 768px) {

  .et-l--footer .mbffl-footer-action-row {
    padding-top: 0px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  .et-l--footer .mbffl-footer-action-row .et_pb_column {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  .et-l--footer .mbffl-footer-action-row .et_pb_module {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .et-l--footer .mbffl-footer-action-row .et_pb_module:first-child {
    margin-bottom: 8px !important;
  }
}
/* ==========================================================
   FOOTER — DESKTOP ACTION MODULE GAP
   ========================================================== */

@media (min-width: 768px) {

  /* Kill default spacing between the label module and action module */
  .et-l--footer .mbffl-footer-action-row .et_pb_column > .et_pb_module:first-child {
    margin-bottom: 0px !important;
    padding-bottom: 0 !important;
  }

  /* Keep the second module clean */
  .et-l--footer .mbffl-footer-action-row .et_pb_column > .et_pb_module:nth-child(2) {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Social follow module often carries its own spacing */
  .et-l--footer .mbffl-footer-action-row .et_pb_social_media_follow {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .et-l--footer .mbffl-footer-action-row .et_pb_social_media_follow li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Button wrapper also carries spacing sometimes */
  .et-l--footer .mbffl-footer-action-row .et_pb_button_module_wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 768px) {
  .et-l--footer .mbffl-footer-action-row {
    transform: translateY(-18px);
  }
}
/* Accessibility: improve trending meta contrast */
.mbffl-trending-meta {
  color: #4b5563 !important;
} 