/* =============================================================
   livewellwith.us — Design Overrides
   Overrides Squarespace layout CSS with real site tokens.
   Font: Nunito Sans  |  Background: #FDF8E8  |  Text: #181F2E
   ============================================================= */

/* ---- Font family overrides ---- */
body, .sqs-block-content, .sqs-html-content,
.site-header, .site-footer,
h1, h2, h3, h4, h5, h6,
.heading-font, .header-nav-item,
.sqs-block-button-element {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ---- Page background ---- */
body {
  background: #FDF8E8;
}

/* ---- Header ---- */
.site-header {
  background: #FDF8E8 !important;
  border-bottom: 1px solid rgba(24, 31, 46, 0.08);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 700;
  color: #181F2E;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #181F2E;
}

.site-nav a:hover { color: #536B7A; }

.header-cta {
  background: #536B7A;
  color: #FDF8E8;
  padding: 0.6em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #181F2E;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #FDF8E8;
  border-top: 1px solid rgba(24, 31, 46, 0.08);
}

/* ---- Footer ---- */
.site-footer {
  background: #181F2E;
  color: #FDF8E8;
  padding: 3rem 1.5rem 2rem;
}

.site-footer__inner { max-width: 1200px; margin: 0 auto; }

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer__brand-text {
  max-width: 280px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 1rem 0;
}

.site-footer__address {
  font-style: normal;
  opacity: 0.7;
  line-height: 1.6;
}

.site-footer__phone a {
  color: #FDF8E8;
  font-weight: 600;
}

.site-footer__col-heading {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  color: #FDF8E8;
  opacity: 0.8;
  font-size: 0.9375rem;
}

.site-footer__nav a:hover { opacity: 1; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 248, 232, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

.site-footer__bottom a { color: #FDF8E8; margin-left: 1rem; }

/* ---- Button overrides ---- */
.sqs-block-button-element,
.btn--primary {
  background: #536B7A !important;
  color: #FDF8E8 !important;
}

/* ---- Text color helpers ---- */
.sqsrte-text-color--white { color: #ffffff; }
.sqsrte-text-color--darkAccent { color: #3D5260; }
.sqsrte-text-highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(83, 107, 122, 0.25) 60%);
}

/* ---- Responsive ---- */
/* Phone (under 768px): full hamburger drawer. */
@media (max-width: 767px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}
/* Tablet + small laptop (768-1279px): keep the desktop nav visible, but
   compact it so the 6 dropdown labels + actions fit. Hide the social icons
   and the Portal button at this width, shrink padding and font, reduce gaps. */
@media (min-width: 768px) and (max-width: 1279px) {
  .site-header__inner { gap: .75rem; }
  .site-nav .nav-menu { gap: .85rem; }
  .site-nav .nav-menu a { font-size: .85rem; padding: .35rem 0; }
  .header-socials { display: none !important; }
  .header-portal { padding: .35rem .75rem; font-size: .82rem; }
  .site-nav .nav-menu > li > a[href*="/appointments"] {
    padding: .4rem .9rem;
    font-size: .85rem;
  }
  .brand-mark__logo { height: 40px; width: 40px; }
}
@media (max-width: 768px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ---- Gutenberg core blocks (theme didn't ship these defaults) ---- */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: normal;
  box-sizing: border-box;
  margin: 0 0 1.75em;
  gap: 2em;
}
.wp-block-column {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-direction: column;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}
.wp-block-group.alignfull { max-width: none; }

/* WALL-OF-TEXT FIX. The condition / men's-health pages are built as a stack
   of `wp:group {align:full}` blocks so each section gets a full-bleed
   background band. But the prose was dropped straight inside those groups
   with no inner wrapper, so paragraphs inherited the full 1400px width
   (~180 chars/line). Pull the READING COLUMN back to the theme's own
   contentSize (720px) and center it, while the group keeps its full-width
   background. Cards (.lw-statgrid, pullquotes, cover heroes) carry their own
   widths and are deliberately excluded so they can stay wide. */
.wp-block-group.alignfull > :where(p, h2, h3, h4, h5, h6, ul, ol, dl,
  blockquote:not(.wp-block-pullquote blockquote), .wp-block-heading) {
  max-width: 720px;
  margin-inline: auto;
}
/* Comfortable rhythm for that column. */
.wp-block-group.alignfull > :where(p, ul, ol) {
  line-height: 1.7;
  margin-block: 0 1.15em;
}
.wp-block-group.alignfull > :where(h2, h3, .wp-block-heading) {
  margin-block: 1.6em 0.5em;
}
/* Prose inside a NESTED plain group within a full-bleed band (e.g. an intro
   whose constrained-layout class got stripped on import) also needs the
   reading-column cap, or it runs edge to edge. Columns (.wp-block-columns)
   and bento (in wp:html) are not .wp-block-group children, so they're safe. */
.wp-block-group.alignfull > .wp-block-group > :where(p, h2, h3, h4, ul, ol, blockquote, .wp-block-heading) {
  max-width: 720px;
  margin-inline: auto;
}

/* ---- Two-column section rhythm (Hims / Maximus style) ----
   A full-bleed group keeps its background band; inside it a .lw-tcol
   columns row goes wider (1080px) so text on one side sits beside a
   card or image on the other. Alternate sides section to section for
   the back-and-forth cadence. Columns stack on mobile (Gutenberg). */
.wp-block-columns.lw-tcol {
  max-width: 1080px;
  margin-inline: auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
/* A side card sitting next to a taller prose column shouldn't float in a sea
   of empty space: pin it near the top and let it breathe, so the row reads as
   intentional even when the two sides differ in height. */
.lw-tcol .lw-sidecard { position: sticky; top: 1.5rem; }
/* The parent theme leaves .wp-block-column as flex-direction:row, which
   lays a column's own children (heading + paragraphs) out side by side and
   crushes the heading to a vertical sliver. Force each column to stack. */
.lw-tcol .wp-block-column {
  display: flex;
  flex-direction: column;
}
.lw-tcol .wp-block-column > :where(p, ul, ol) { line-height: 1.7; }
.lw-tcol .wp-block-column > :where(h2, .wp-block-heading) { margin-top: 0; }

/* Side card that lives in column two (or one, when flipped). */
.lw-sidecard {
  background: #fff;
  border: 1px solid #E4DCC8;
  border-radius: 16px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 16px 40px rgba(24, 31, 46, .10);
}
.lw-sidecard__label {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 700; color: #D9A648;
  margin: 0 0 1rem;
}
.lw-sidecard ul { list-style: none; margin: 0; padding: 0; }
.lw-sidecard li { padding: .8rem 0; border-top: 1px solid #EFE7D3; }
.lw-sidecard li:first-child { border-top: 0; padding-top: 0; }
.lw-sidecard li strong {
  display: block; font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem; color: #2B3A2E; margin-bottom: .2rem; font-weight: 600;
}
.lw-sidecard li span { font-size: .96rem; color: #3D5260; line-height: 1.5; }
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 430px;
}
.wp-block-cover .wp-block-cover__video-background,
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover > img.wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.wp-block-cover__background {
  position: absolute;
  inset: 0;
  background-color: #000;
  z-index: 1;
  opacity: .5;
}
.wp-block-cover__background.has-black-background-color { background-color: #000; }
/* WP dim-N modifiers control the overlay opacity */
.wp-block-cover .has-background-dim-10 { opacity: .1; }
.wp-block-cover .has-background-dim-20 { opacity: .2; }
.wp-block-cover .has-background-dim-30 { opacity: .3; }
.wp-block-cover .has-background-dim-40 { opacity: .4; }
.wp-block-cover .has-background-dim-50 { opacity: .5; }
.wp-block-cover .has-background-dim-60 { opacity: .6; }
.wp-block-cover .has-background-dim-70 { opacity: .7; }
.wp-block-cover .has-background-dim-80 { opacity: .8; }
.wp-block-cover .has-background-dim-90 { opacity: .9; }
.wp-block-cover .has-background-dim-100 { opacity: 1; }
.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
/* Hero display headings ride a tight 1.05 line-height, which sat the capital
   letters right against the top edge and read as clipped. A sliver of top
   padding gives them breathing room on every cover-based hero, site-wide. */
.wp-block-cover__inner-container h1 { padding-top: .14em; }

/* Text orphans: never strand a single word on the last line of body copy, and
   balance heading line lengths so you do not get one long line plus a lone word.
   Modern browsers honor these; older ones fall back to normal wrapping cleanly. */
p, li, dd, blockquote, figcaption,
.lw-sidecard span, .lw-feature__p, .lw-bento__p, .lw-tool__intro {
  text-wrap: pretty;
}
h1, h2, h3, h4,
.lw-sectionhead__title, .lw-bento__title, .lw-feature__t {
  text-wrap: balance;
}
/* Dark cover -> white text by default */
.wp-block-cover.is-dark,
.wp-block-cover.is-dark p,
.wp-block-cover.is-dark h1,
.wp-block-cover.is-dark h2,
.wp-block-cover.is-dark h3,
.wp-block-cover.is-dark h4,
.wp-block-cover.is-dark li {
  color: #fff;
}
.wp-block-quote {
  border-left: 3px solid #181F2E;
  padding-left: 1.25rem;
  font-style: italic;
  margin: 0;
}
.wp-block-quote cite {
  display: block;
  margin-top: .75rem;
  font-style: normal;
  font-weight: 600;
  font-size: .9rem;
  opacity: .75;
}
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.wp-block-button__link {
  display: inline-block;
  padding: 14px 30px;
  background: #181F2E;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wp-block-button__link:hover {
  background: #2C3654;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24,31,46,.22);
}

/* ---- Video Backgrounds ---- */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.video-background__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure section content stays above video */
.page-section {
  position: relative;
  overflow: hidden;
}

.section-background {
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ---- Footer Socials ---- */
.site-footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  color: #FDF8E8;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 1;
}

.social-link svg {
  display: block;
}

/* ---- Instagram Carousel Fix ---- */
.sqs-block-instagram .sqs-gallery-container {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  height: auto !important;
  position: relative !important;
  opacity: 1 !important;
}

.sqs-block-instagram .slide {
  flex: 0 0 80%;
  max-width: 400px;
  scroll-snap-align: start;
  position: relative !important;
  opacity: 1 !important;
  height: auto !important;
  aspect-ratio: 4/5;
  visibility: visible !important;
}

@media (min-width: 768px) {
  .sqs-block-instagram .slide {
    flex: 0 0 25%;
  }
}

.sqs-block-instagram .slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.sqs-block-instagram .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  visibility: visible !important;
}

/* ---- Mobile Nav Open State ---- */
.mobile-nav.is-open {
  display: flex;
}

/* First-occurrence inline glossary link to psychiatry.help long-form.
   Subtle moss-green dotted underline, solid on hover. */
a.lw-glossary {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #2B3A2E;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-bottom-color 0.15s ease, border-bottom-style 0.15s ease;
}
a.lw-glossary:hover {
  color: #2B3A2E;
  border-bottom-color: #2B3A2E;
  border-bottom-style: solid;
}

/* "Dig deeper" cross-reference block on condition + wellness pages.
   Routes to psychiatry.help long-form articles. Sits just before the closing CTA. */
.lw-dig-deeper {
  max-width: 880px;
  margin: 64px auto 32px;
  padding: 36px 32px 32px;
  background: #fbf8f1;
  border: 1px solid rgba(24, 31, 46, 0.08);
  border-left: 5px solid #2B3A2E;
  border-radius: 4px;
}
.lw-dig-deeper__inner { max-width: 720px; }
.lw-dig-deeper__eyebrow {
  font: 600 12px/1 "Nunito Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2B3A2E;
  margin: 0 0 12px;
}
.lw-dig-deeper__lead {
  font: 500 19px/1.45 "Nunito Sans", sans-serif;
  color: #181F2E;
  margin: 0 0 20px;
}
.lw-dig-deeper__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lw-dig-deeper__list li {
  margin: 0;
  padding: 0;
}
.lw-dig-deeper__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #181F2E;
  font: 500 16px/1.45 "Nunito Sans", sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 31, 46, 0.18);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lw-dig-deeper__list a:hover {
  color: #2B3A2E;
  border-bottom-color: #2B3A2E;
}
.lw-dig-deeper__arrow {
  font-size: 14px;
  color: #2B3A2E;
}
.lw-dig-deeper__source {
  font: 400 13px/1 "Nunito Sans", sans-serif;
  color: rgba(24, 31, 46, 0.55);
  margin: 12px 0 0;
}
.lw-dig-deeper__source a {
  color: #2B3A2E;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 58, 46, 0.4);
}
.lw-dig-deeper__source a:hover { border-bottom-color: #2B3A2E; }
@media (max-width: 600px) {
  .lw-dig-deeper { padding: 28px 22px; margin: 48px 16px 24px; }
  .lw-dig-deeper__lead { font-size: 17px; }
  .lw-dig-deeper__list a { font-size: 15px; }
}

/* ============================================================
   Editorial rhythm: pull-quote cards + stat cards for the
   condition / men's-health pages (breaks the walls of text).
   Mirrors the psychiatry.help treatment; moss + cream palette.
   ============================================================ */
.wp-block-pullquote {
  border: 0 !important;
  border-left: 5px solid #D9A648 !important;
  background: #F6F1E1;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 28px rgba(24,31,46,.08);
  padding: 1.6rem 1.9rem;
  margin: 2.4rem auto;
  max-width: 760px;
  text-align: left;
  color: #181F2E;
}
.wp-block-pullquote blockquote { border: 0 !important; margin: 0; padding: 0; }
.wp-block-pullquote p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: #181F2E;
  margin: 0;
}
/* When a pullquote carries its own explicit Gutenberg background (e.g. a
   full-width moss band), honor its own text color instead of forcing dark
   ink, which would render dark-on-dark and become illegible. */
.wp-block-pullquote.has-background.has-text-color p { color: inherit; }
.wp-block-pullquote cite {
  display: block; margin-top: .7rem;
  font-style: normal; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #2B3A2E;
}

/* Stat card row, used to turn a dry "The Numbers" paragraph into
   scannable figures. */
.lw-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: #E4DCC8;
  border: 1px solid #E4DCC8;
  border-radius: 14px;
  overflow: hidden;
  max-width: 760px;
  margin: 2.2rem auto;
}
.lw-stat { background: #fff; padding: 1.5rem 1.25rem; text-align: center; }
.lw-stat__figure {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; line-height: 1; color: #2B3A2E;
  margin-bottom: .4rem;
}
.lw-stat__label {
  font-size: .9rem; line-height: 1.4; color: #3D5260;
}

/* Legal / compliance pages (consent, etc.). Self-sufficient dark-on-cream
   block so it never inherits a hero-overlay white-text rule. */
.lw-legal {
  max-width: 720px;
  margin: 3rem auto 4rem;
  padding: 0 1.25rem;
  color: #1A1715;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}
.lw-legal * { color: #1A1715; }
.lw-legal__eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: #2B3A2E;
  margin-bottom: .4rem;
}
.lw-legal__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 600;
  line-height: 1.1; margin: 0 0 1rem;
}
.lw-legal__lede { font-size: 1.15rem; color: #3D3A35; margin-bottom: 2.2rem; }
.lw-legal h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem; font-weight: 600; color: #2B3A2E;
  margin: 2rem 0 .5rem; padding-top: 1.2rem;
  border-top: 1px solid #E4DCC8;
}
.lw-legal p, .lw-legal li { font-size: 1.02rem; }
.lw-legal ul { margin: .4rem 0 1rem 1.2rem; }
.lw-legal li { margin-bottom: .3rem; }
.lw-legal a { color: #2B3A2E; text-decoration: underline; }
.lw-legal strong { font-weight: 700; }
.lw-legal__note {
  margin-top: 2.4rem; padding: 1rem 1.2rem;
  background: #EFE7D3; border-left: 3px solid #D9A648;
  border-radius: 8px; font-size: .95rem; color: #3D3A35;
}

/* ================================================================
   BENTO / HYBRID-MASONRY CARD SYSTEM  (Hims / Maximus direction)
   A 12-col dense grid of mixed-size tiles: big image tiles beside
   small stat tiles beside bold color blocks beside quote cards.
   This is the "less blocky, more cards" visual language.
   ================================================================ */
.lw-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(148px, auto);
  grid-auto-flow: dense;
  gap: 1rem;
  max-width: 1180px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.lw-bento__tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #E4DCC8;
  box-shadow: 0 10px 30px rgba(24, 31, 46, .06);
}
.lw-bento__tile.x3 { grid-column: span 3; }
.lw-bento__tile.x4 { grid-column: span 4; }
.lw-bento__tile.x5 { grid-column: span 5; }
.lw-bento__tile.x6 { grid-column: span 6; }
.lw-bento__tile.x7 { grid-column: span 7; }
.lw-bento__tile.x8 { grid-column: span 8; }
.lw-bento__tile.y2 { grid-row: span 2; }
.lw-bento__tile.y3 { grid-row: span 3; }
/* Clickable tiles (used as nav cards on the category hub pages). The whole
   tile is a link: lift on hover, and zoom the photo inside image tiles. */
a.lw-bento__tile { text-decoration: none; color: inherit; cursor: pointer; }
a.lw-bento__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(24, 31, 46, .20);
}
a.lw-bento__tile.img > img.bg { transition: transform .45s ease; }
a.lw-bento__tile.img:hover > img.bg { transform: scale(1.05); }
.lw-bento__arrow { font-style: normal; opacity: .85; }
/* Image tiles: full-bleed photo with a legibility gradient. */
.lw-bento__tile.img { color: #F5EFE4; justify-content: flex-end; }
.lw-bento__tile.img > img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(1.06) contrast(1.04);
}
/* Stronger, fuller scrim so high-key (bright) photos still read rich and the
   white eyebrow/title stay legible regardless of the source image's tone. */
.lw-bento__tile.img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,16,14,.34) 0%, rgba(20,16,14,.18) 38%, rgba(20,16,14,.90) 100%),
    linear-gradient(0deg, rgba(20,16,14,.12), rgba(20,16,14,.12));
}
.lw-bento__tile.img > :not(img) { position: relative; z-index: 2; }
/* Color-block tiles. */
.lw-bento__tile.moss  { background: #2B3A2E; color: #F5EFE4; border-color: #2B3A2E; }
.lw-bento__tile.ochre { background: #D9A648; color: #1A1715; border-color: #D9A648; }
.lw-bento__tile.cream { background: #F6F1E1; }
.lw-bento__tile.ink   { background: #181F2E; color: #F5EFE4; border-color: #181F2E; }
/* Tile content type. */
.lw-bento__eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700; opacity: .82; margin: 0 0 .45rem;
}
.lw-bento__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.08; margin: 0;
}
.lw-bento__stat {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; margin: 0;
}
.lw-bento__quote {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.22; margin: 0;
}
.lw-bento__p { font-size: .96rem; line-height: 1.5; opacity: .9; margin: .45rem 0 0; }
.lw-bento__pill {
  align-self: flex-start; margin-top: .9rem;
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  background: #1A1715; color: #F5EFE4; font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.lw-bento__tile.ochre .lw-bento__pill { background: #1A1715; }
@media (max-width: 900px) {
  .lw-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .lw-bento__tile[class*="x"] { grid-column: span 2; }
  .lw-bento__tile.y2, .lw-bento__tile.y3 { grid-row: span 1; }
  .lw-bento__tile.img.lead { grid-row: span 2; }
}
/* Keep faces in frame when a photo is cropped into a tile. */
.lw-bento__tile.img.crop-top > img.bg { object-position: 50% 22%; }
.lw-bento__tile.img.crop-face > img.bg { object-position: 50% 30%; }

/* ================================================================
   HIMS / MAXIMUS SECTION KIT
   Shared building blocks for the condition / men's-health pages:
   a centered section header, a numbered process band, a row of
   icon benefit cards, and an FAQ accordion. All brand-palette.
   ================================================================ */
.lw-sectionhead {
  max-width: 760px; margin: 0 auto 2.4rem; text-align: center;
}
.lw-sectionhead__eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 700; color: #D9A648; margin: 0 0 .6rem;
}
.lw-sectionhead__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; color: #1A1715; margin: 0;
}
.lw-sectionhead__sub {
  font-size: 1.12rem; line-height: 1.6; color: #3D5260; margin: .9rem auto 0; max-width: 60ch;
}

/* Numbered process band. */
.lw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem; max-width: 1080px; margin: 0 auto;
}
.lw-step {
  background: #fff; border: 1px solid #E4DCC8; border-radius: 18px;
  padding: 2rem 1.6rem; box-shadow: 0 12px 32px rgba(24, 31, 46, .07);
}
.lw-step__n {
  font-family: 'Fraunces', Georgia, serif; font-size: 2.6rem; font-weight: 600;
  color: #D9A648; line-height: 1;
}
.lw-step__t {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; font-weight: 600;
  color: #2B3A2E; margin: .6rem 0 .4rem;
}
.lw-step__p { font-size: 1rem; line-height: 1.6; color: #3D5260; margin: 0; }
@media (max-width: 780px) { .lw-steps { grid-template-columns: 1fr; } }

/* Icon benefit cards. */
.lw-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 1080px; margin: 0 auto;
}
.lw-feature { background: #F6F1E1; border-radius: 16px; padding: 1.6rem 1.3rem; }
.lw-feature svg { width: 28px; height: 28px; color: #2B3A2E; margin-bottom: .8rem; display: block; }
.lw-feature__t {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.12rem; font-weight: 600;
  color: #1A1715; margin: 0 0 .3rem;
}
.lw-feature__p { font-size: .95rem; line-height: 1.55; color: #3D5260; margin: 0; }
@media (max-width: 900px) { .lw-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lw-features { grid-template-columns: 1fr; } }

/* FAQ accordion (native <details>, no JS). */
.lw-faq { max-width: 760px; margin: 0 auto; }
.lw-faq details { border-bottom: 1px solid #E4DCC8; padding: 1.15rem 0; }
.lw-faq summary {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.18rem; font-weight: 600;
  color: #2B3A2E; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.lw-faq summary::-webkit-details-marker { display: none; }
.lw-faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: #D9A648; line-height: 1; transition: transform .2s ease; }
.lw-faq details[open] summary::after { transform: rotate(45deg); }
.lw-faq details p { margin: .85rem 0 0; font-size: 1.02rem; line-height: 1.65; color: #3D3A35; }

/* Unify the in-section headings (2-column + prose sections) with the bold
   ink treatment used by the section kit, so the page reads as one system
   instead of two. Override the older washed moss heading color + weight. */
.wp-block-group.alignfull .wp-block-heading,
.lw-tcol .wp-block-column .wp-block-heading {
  color: #1A1715 !important;
  font-weight: 600 !important;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem) !important;
  letter-spacing: -0.01em;
}

/* Honor white-intended text. On this Squarespace port the "white" preset
   variable resolves empty, so .has-white-color silently does nothing and the
   element falls back to the dark theme heading color (e.g. the homepage hero
   headline went near-invisible slate over the photo). Force it white and add
   a soft shadow so it stays legible over any image. The hero kit (.lw-bento,
   .wp-block-cover headings) sets its own colors and isn't affected. */
.has-white-color { color: #fff !important; }
.home .page-section:first-of-type h1,
.home .page-section:first-of-type h2,
.home .wp-block-cover h1,
h1.has-white-color, h2.has-white-color {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4);
}

/* ---- Comparison matrix (compare page) ----
   A real side-by-side table so a reader can scan one attribute across every
   provider. The LiveWell column is highlighted moss top to bottom. Scrolls
   horizontally on narrow screens rather than cramming. */
.lw-compare-wrap {
  max-width: 1120px; margin: 2.5rem auto; padding: 0 1.25rem; overflow-x: auto;
}
.lw-compare {
  border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px;
  font-family: 'Inter', system-ui, sans-serif; font-size: .94rem; color: #1A1715;
}
.lw-compare th, .lw-compare td {
  padding: .95rem 1.05rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid #E4DCC8; line-height: 1.45;
}
.lw-compare thead th {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.05rem;
  color: #3D5260; border-bottom: 2px solid #E4DCC8;
}
.lw-compare tbody th {
  font-weight: 600; color: #2B3A2E; width: 168px;
  font-family: 'Inter', sans-serif; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.lw-compare col.lw-compare__uscol { width: 220px; }
/* LiveWell column highlight, full height */
.lw-compare .us { background: #2B3A2E; color: #F5EFE4; }
.lw-compare thead th.us {
  color: #fff; font-size: 1.2rem; border-bottom: 2px solid #D9A648;
  border-radius: 14px 14px 0 0;
}
.lw-compare tbody tr:last-child td.us { border-radius: 0 0 14px 14px; }
.lw-compare td.us { font-weight: 500; }
@media (max-width: 600px) { .lw-compare { font-size: .88rem; min-width: 720px; } }

/* Home hero video: the 50% black dim was killing the crisp sky. The headline
   carries its own text-shadow, so the overlay can come way down. */
.home .wp-block-cover:first-of-type > .wp-block-cover__background.has-background-dim {
  opacity: .22 !important;
}

/* Connect hub: social / directory link cards on the contact page. */
.lw-connect{display:flex;flex-wrap:wrap;gap:1rem;max-width:880px;margin:0 auto;justify-content:center;}
.lw-connect__card{display:flex;flex-direction:column;gap:.2rem;min-width:170px;flex:1 1 170px;max-width:220px;
	background:#fff;border:1px solid #E4DCC8;border-radius:14px;padding:1.1rem 1.3rem;text-decoration:none;
	box-shadow:0 8px 22px rgba(24,31,46,.06);transition:transform .18s ease,box-shadow .18s ease;}
.lw-connect__card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(24,31,46,.14);}
.lw-connect__name{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:1.1rem;color:#2B3A2E;}
.lw-connect__handle{font-size:.9rem;color:#3D5260;}
.contact-page__cta{margin-top:1.4rem;}

/* Contact page header background video (ported from the original Squarespace site). */
.contact-page__head--video{position:relative;overflow:hidden;width:100%;min-height:54vh;display:flex;align-items:center;padding:clamp(2.5rem,7vw,5.5rem) clamp(1.5rem,6vw,5rem);margin:0 0 2.5rem;border-radius:0;}
.contact-page__bgvideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.contact-page__head-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,16,14,.42),rgba(20,16,14,.66));z-index:1;}
.contact-page__head-inner{position:relative;z-index:2;max-width:1080px;margin-inline:auto;width:100%;}
.contact-page__head--video .contact-page__eyebrow{color:#D9A648;}
.contact-page__head--video .contact-page__title{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.5);}
.contact-page__head--video .contact-page__lede{color:#F5EFE4;}

/* Full-bleed background-video band (ported Squarespace section videos). Breaks
   out of any constrained container to full viewport width, never contained. */
.lw-videoband{position:relative;width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;min-height:50vh;overflow:hidden;}
.lw-videoband__vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.lw-videoband::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,16,14,.10),rgba(20,16,14,.22));pointer-events:none;}

/* Sticky header: pages are long, so keep the nav reachable from anywhere. */
.site-header { position: sticky; top: 0; z-index: 1000; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(24, 31, 46, .10); }

/* Sourced-stat footnote block (citation gate, blog-8og) */
.lw-sources{max-width:720px;margin:2.5rem auto 0;padding:1rem 1.25rem 0;border-top:1px solid rgba(24,31,46,.12);font-size:.82rem;line-height:1.55;color:#5a6b62}
.lw-sources__label{font-weight:700;letter-spacing:.05em;text-transform:uppercase;font-size:.68rem;margin:0 0 .45rem;color:#7a8a80}
.lw-sources ul{margin:0;padding-left:1.1rem}
.lw-sources li{margin:.2rem 0}
.lw-sources a{color:#536B7A;text-decoration:underline}
