/* Safesigns 2.0.13 — one homepage rhythm, scoped away from all plugin UI.
 * Section heights are content-driven; only the hero is given a sensible
 * desktop *minimum* so the carousel slides stay visually consistent.
 */
.ss-v213-home {
  --section-y:80px;
  --head-gap:32px;
  --grid-gap:24px;
}

/* Exactly one vertical gap between white sections, never 80 + 80. */
.ss-v213-home > .section {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0;
  min-width:0;
}
.ss-v213-home > .section + .section:not(.section--tinted) {
  margin-top:var(--section-y)!important;
}
/* A tinted band must never touch the previous section's content: it keeps
   the same external gap as white sections, plus its own internal padding. */
.ss-v213-home > .section + .section.section--tinted {
  margin-top:var(--section-y)!important;
}
/* A full-bleed colored section creates the pause via its own internal space,
   so it does not also receive external margin. */
.ss-v213-home > .section.section--tinted {
  padding-block:var(--section-y)!important;
  background:#f3f5f8;
  border:0!important;
}
.ss-v213-home > .section:last-child {margin-bottom:var(--section-y)!important;}
.ss-v213-home > .section > .wrap {min-width:0;}

/* Hero sits close to the site navigation, not one full section gap away. */
.ss-v213-home > .section--hero {margin-top:28px!important;}
.ss-v213-home .section--hero .hero {
  display:block!important;width:100%!important;
  padding:0!important;margin:0!important;
}
.ss-v213-home .section--hero .hero-main {width:100%;max-width:100%;}
/* Slide holder seg innenfor viewporten (to:ppbar+header+nav ≈ 270px). */
.ss-v213-home .section--hero .ss-hero-track > .ss-hero-slide {
  box-sizing:border-box;
  min-height:300px!important;
  height:min(560px,calc(100vh - 270px))!important;
  padding-bottom:0;
}
.ss-v213-home .ss-hero-track > .ss-hero-slide .hero-txt {padding-bottom:44px;}
.ss-v213-home .ss-hero-track > .ss-hero-slide .hero-txt {align-self:center;}
.ss-v213-home .section--hero .ss-hero-sign-stage {min-height:0;}
.ss-v213-home .section--hero .ss-hero-sign {max-height:270px;}

/* A uniform, semantic heading pattern shared by every section. */
.ss-v213-home .section__head {
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  flex-wrap:wrap;
  gap:16px 24px!important;
  margin:0 0 var(--head-gap)!important;
  padding:0!important;
}
.ss-v213-home .section__head > div {min-width:0;max-width:740px;}
.ss-v213-home .section__head .kicker {
  display:block;
  margin:0 0 8px!important;
  color:var(--amber-text);
  font-size:.74rem;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.085em;
  text-transform:uppercase;
}
.ss-v213-home .section__head h2 {
  font-size:32px!important;
  line-height:1.18!important;
  margin:0!important;
  letter-spacing:-.025em;
  max-width:730px;
}
.ss-v213-home .section__head p:not(.kicker) {
  margin:12px 0 0!important;
  max-width:720px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}
.ss-v213-home .section__head .more {
  flex:0 0 auto;
  align-self:flex-end!important;
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--navy);
  font-weight:750;
  text-decoration:none;
  text-underline-offset:4px;
}
.ss-v213-home .section__head .more:hover {text-decoration:underline;}

/* The same card-to-card gap in all grids. */
.ss-v213-home .section .cats,
.ss-v213-home .section .steps,
.ss-v213-home .section .mats,
.ss-v213-home .section .ss-v209-topic-grid,
.ss-v213-home .section .ss-v2-guides {gap:var(--grid-gap)!important;}
.ss-v213-home .section .cats {
  padding:0!important;
  margin:0!important;
  align-items:stretch;
}
.ss-v213-home .section .cats a {height:100%;}
.ss-v213-home .ss-v213-search-hints {
  display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;
  margin-top:22px;color:var(--muted);font-size:.88rem;
}
.ss-v213-home .ss-v213-search-hints .ss-v2-chips {display:flex;flex-wrap:wrap;gap:8px;}

/* Only one WooCommerce/WCST carousel. Existing card previews and purchase
   buttons remain native; the 24px gap is inherited by every rail item. */
.ss-v213-home .ss-v213-favorites-card {
  display:block!important;
  height:auto!important;min-height:0!important;
  margin:0!important;
  padding:48px!important;
  background:linear-gradient(125deg,#eef2f8 0%,#f7f6f2 100%);
  border-radius:20px;
  box-shadow:none;
}
.ss-v213-home .ss-v213-favorites-card .section__head {margin-bottom:var(--head-gap)!important;}
.ss-v213-home .ss-v213-favorites-card .carwrap {width:100%;min-width:0;}
.ss-v213-home .ss-v213-favorites-card .ss-v2-products-scroll {--ss-rail-gap:var(--grid-gap);}
.ss-v213-home .ss-v213-favorites-card .arr {top:46%;}

/* The tinted logo banner is full-width, with equal internal top/bottom. */
.ss-v213-home .section--tinted .band-in {gap:var(--grid-gap);align-items:center;}
.ss-v213-home .section--tinted .band-txt h2 {font-size:32px!important;line-height:1.18;margin:0 0 12px;}
.ss-v213-home .section--tinted .band-txt .kicker {margin:0 0 8px!important;}
.ss-v213-home .section--tinted .band-txt p:not(.kicker) {margin:0;color:var(--muted);line-height:1.6;}
.ss-v213-home .section--tinted .acts {display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.ss-v213-home .section--tinted .upmock {max-width:270px;}

/* Steps, topics and material choices size to content, not fixed heights. */
.ss-v213-home .section .step {min-height:0!important;height:auto!important;padding:24px;}
.ss-v213-home .section .step p {margin-bottom:0;}
.ss-v213-home .ss-v213-service-note {
  display:flex;align-items:center;flex-wrap:wrap;gap:12px;
  margin-top:24px;padding:18px 22px;border:1px solid #e4ebf3;
  background:#f7f9fc;border-radius:12px;color:var(--navy);
}
.ss-v213-home .ss-v213-service-note > svg {color:var(--amber-text);flex:none;}
.ss-v213-home .ss-v213-service-note > span {flex:1 1 220px;color:var(--muted);font-size:.93rem;}
.ss-v213-home .ss-v213-service-note a,
.ss-v213-home .ss-v213-designer-link {display:inline-flex;align-items:center;gap:7px;color:var(--navy);font-weight:750;white-space:normal;}
.ss-v213-home .ss-v213-usecases {grid-template-columns:repeat(4,minmax(0,1fr));}
.ss-v213-home .ss-v213-usecases .ss-v209-topic {min-height:0!important;height:auto!important;padding:24px;}
.ss-v213-home .ss-v213-topic-icon {display:grid;place-items:center;width:46px;height:46px;margin:0 0 18px;border-radius:12px;background:#eef2f8;color:var(--navy);}
.ss-v213-home .ss-v213-usecases .ss-v209-topic p {line-height:1.55;}
.ss-v213-home .section .mats {padding:0;margin:0;grid-template-columns:repeat(3,minmax(0,1fr));}
.ss-v213-home .section .mats li {min-height:0!important;height:auto!important;padding:18px;}

/* Existing quality photo from the Customizer stays available as part of the
   materials section, not as another redundant section. */
.ss-v213-home .ss-v213-materials-photo {margin:var(--grid-gap) 0 0;width:100%;max-width:620px;}
.ss-v213-home .ss-v213-materials-photo img {display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;border-radius:16px;}

/* FAQ has no extra vertical section of duplicate help content. */
.ss-v213-home .ss-v209-faq-layout {gap:var(--grid-gap)!important;}
.ss-v213-home .ss-v209-faq .faq details {margin:0 0 10px;}
.ss-v213-home .ss-v209-faq-aside {min-height:0;height:auto;}
.ss-v213-home .ss-v213-designer-link {margin-top:4px;font-size:.9rem;}

/* The closing card is an inset component, not a new padded background band. */
.ss-v213-home .ss-v213-final-cta {
  display:flex!important;align-items:center;flex-wrap:wrap;
  height:auto!important;min-height:0!important;
  margin:0!important;padding:48px!important;
  background-size:cover;background-position:center;
  border-radius:20px;
}
.ss-v213-home .ss-v213-final-cta > div:not(.acts) {flex:1 1 250px;min-width:0;}
.ss-v213-home .ss-v213-final-cta .acts {margin-left:auto;}

/* Tablet exact rhythm. */
@media (min-width:768px) and (max-width:1023px) {
  .ss-v213-home {--section-y:64px;--head-gap:28px;--grid-gap:24px;}
  .ss-v213-home .section--hero .ss-hero-track > .ss-hero-slide {min-height:425px!important;}
  .ss-v213-home .ss-v213-usecases {grid-template-columns:repeat(2,minmax(0,1fr));}
  .ss-v213-home .ss-v213-final-cta,.ss-v213-home .ss-v213-favorites-card {padding:38px!important;}
  .ss-v213-home .section--tinted .band-in {grid-template-columns:190px minmax(0,1fr);}
  .ss-v213-home .section--tinted .acts {grid-column:2;}
}
/* Mobile exact rhythm and non-fixed section heights. */
@media (max-width:767px) {
  .ss-v213-home {--section-y:48px;--head-gap:24px;--grid-gap:16px;}
  .ss-v213-home > .section--hero {margin-top:24px!important;}
  .ss-v213-home .section--hero .ss-hero-track > .ss-hero-slide {min-height:0!important;height:auto!important;padding-bottom:48px;}
  .ss-v213-home .section--hero .ss-hero-sign-stage {min-height:0!important;}
  .ss-v213-home .section--hero .ss-hero-sign {max-height:190px;}
  .ss-v213-home .section__head {align-items:flex-start!important;flex-direction:column;gap:10px!important;}
  .ss-v213-home .section__head h2 {font-size:24px!important;}
  .ss-v213-home .section__head p:not(.kicker) {font-size:.93rem;}
  .ss-v213-home .section__head .more {align-self:flex-start!important;}
  .ss-v213-home .section .cats {gap:var(--grid-gap)!important;}
  .ss-v213-home .ss-v213-favorites-card {padding:24px!important;border-radius:16px;}
  .ss-v213-home .ss-v213-favorites-card .arr {top:37%;}
  .ss-v213-home .section--tinted .band-in {grid-template-columns:1fr;}
  .ss-v213-home .section--tinted .band-txt h2 {font-size:24px!important;}
  .ss-v213-home .section--tinted .upmock {max-width:290px;}
  .ss-v213-home .section .steps {grid-template-columns:1fr;}
  .ss-v213-home .ss-v213-usecases {grid-template-columns:1fr;}
  .ss-v213-home .section .mats {grid-template-columns:repeat(2,minmax(0,1fr));}
  .ss-v213-home .section .mats li {min-height:0!important;}
  .ss-v213-home .ss-v209-faq-layout {grid-template-columns:1fr;}
  .ss-v213-home .ss-v213-final-cta {padding:24px!important;align-items:flex-start;}
  .ss-v213-home .ss-v213-final-cta .acts {margin-left:0;}
}
@media (max-width:390px) {
  .ss-v213-home .section .mats {grid-template-columns:1fr;}
  .ss-v213-home .section .mats li {display:grid;grid-template-columns:38px minmax(0,1fr);}
  .ss-v213-home .section .mats .mic {grid-row:1/3;}
}
