body.family-template-page {
  overflow-x: hidden;
}

body.family-template-page #wrapper,
body.family-template-page #main {
  width: auto !important;
  max-width: 100vw !important;
}

body.family-template-page #main {
  box-sizing: border-box;
  overflow-x: clip;
}

body.family-template-page *,
body.family-template-page *::before,
body.family-template-page *::after {
  box-sizing: border-box;
}

body.family-template-page article.post.featured,
.family-template-hero,
.family-template-hero-visual,
.family-download-grid,
.family-use-grid,
.family-table-scroll,
.family-column-grid,
.family-review-section,
.family-compare-section {
  min-width: 0;
  max-width: 100%;
}

body.family-template-page #main article.post.featured header.major > h1 {
  font-size: 3.25rem;
  line-height: 1.05;
  margin: 0;
}

.family-template-hero {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.58fr);
}

.family-template-hero > *,
.family-template-hero .lt-toolsHeroCopy {
  min-width: 0;
  max-width: 100%;
}

body.family-template-page .lt-toolsHero .lt-heroBody,
body.family-template-page .lt-toolsHero .lt-heroSupport {
  max-width: 100%;
}

.family-template-hero-visual {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 34rem);
  line-height: 0;
}

.family-template-hero-visual img,
.family-review-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.family-mini-sheet {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.42rem;
  width: min(88%, 20rem);
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  color: #18212b;
  line-height: 1.35;
}

.family-mini-sheet-title {
  display: block;
  margin-bottom: 0.08rem;
  color: rgba(24, 33, 43, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.family-mini-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.86rem;
}

.family-mini-row span {
  overflow: hidden;
  color: rgba(24, 33, 43, 0.68);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-mini-row b {
  color: #355428;
}

.family-template-trust,
.family-template-note,
.family-table-note,
.family-template-tip {
  max-width: 66ch;
  margin: 1rem 0 0;
  color: rgba(24, 33, 43, 0.68) !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

.family-template-tip {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(107, 161, 69, 0.18);
  border-radius: 16px;
  background: rgba(175, 230, 126, 0.16);
  color: rgba(24, 33, 43, 0.78) !important;
}

.family-download-grid,
.family-use-grid,
.family-column-grid,
.family-compare-section {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.family-download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-use-grid,
.family-column-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-download-card,
.family-use-card,
.family-column-grid article,
.family-compare-card,
.family-review-checklist,
.family-step-list {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.family-download-card,
.family-use-card,
.family-column-grid article,
.family-compare-card,
.family-review-checklist {
  padding: 1.2rem;
}

.family-download-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
}

.family-download-card--recommended {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(175, 230, 126, 0.18));
}

.family-download-card p,
.family-use-card p,
.family-column-grid p,
.family-compare-card p,
.family-review-checklist p {
  margin: 0;
}

.family-download-card .lt-cardCta {
  margin-top: auto;
}

.family-file-meta {
  margin-top: -0.42rem !important;
  color: rgba(24, 33, 43, 0.58) !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

.family-table-scroll {
  margin-top: 1.35rem;
  padding: 0.35rem;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  -webkit-overflow-scrolling: touch;
}

.family-table-scroll:focus-visible {
  outline: 3px solid rgba(53, 84, 40, 0.28);
  outline-offset: 3px;
}

.family-example-table {
  width: 100%;
  min-width: 1060px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #18212b;
}

.family-example-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.family-example-table th,
.family-example-table td {
  padding: 0.82rem 0.78rem;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: rgba(24, 33, 43, 0.88);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.family-example-table th {
  background: #afe67e;
  color: #18212b;
  font-weight: 800;
}

.family-example-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.82);
}

.family-example-table tbody td:nth-child(8),
.family-example-table tbody td:nth-child(9) {
  color: #355428;
  font-weight: 800;
  white-space: nowrap;
}

.family-step-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.25rem 0 0;
  padding: 1.2rem 1.2rem 1.2rem 3rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(228, 228, 184, 0.22));
}

.family-step-list li {
  padding-left: 0.25rem;
}

.family-column-grid article {
  min-height: 100%;
}

.family-column-grid h3 {
  margin-bottom: 0.45rem !important;
}

.family-review-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(17rem, 0.85fr);
  gap: 1.2rem;
  align-items: center;
}

.family-review-copy {
  min-width: 0;
}

.family-review-copy > p {
  margin: 0;
}

.family-check-list {
  display: grid;
  gap: 0.42rem;
  margin-top: 1.15rem !important;
}

.family-review-image {
  margin: 0;
  min-width: 0;
}

.family-review-checklist {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(228, 228, 184, 0.28));
}

.family-review-checklist ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem !important;
  padding-left: 0 !important;
  list-style: none;
}

.family-review-checklist li {
  min-height: 100%;
  margin: 0 !important;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
}

.family-compare-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.family-compare-card {
  min-height: 100%;
}

.family-compare-card--highlight {
  background:
    radial-gradient(circle at top right, rgba(175, 230, 126, 0.3), transparent 38%),
    rgba(255, 255, 255, 0.96);
}

.family-compare-card ul {
  margin-top: 0.9rem !important;
}

.family-faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.family-faq-list details {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.family-faq-list summary {
  padding: 1rem 1.1rem;
  color: #18212b;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.family-faq-list summary:focus-visible {
  outline: 3px solid rgba(53, 84, 40, 0.28);
  outline-offset: 3px;
}

.family-faq-list details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

.family-final-cta p + p {
  margin-top: 0.75rem;
}

@media (max-width: 1080px) {
  .family-download-grid,
  .family-use-grid,
  .family-column-grid,
  .family-review-checklist ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.family-template-page #main article.post.featured header.major > h1 {
    font-size: 2.65rem;
  }

  .family-template-hero {
    grid-template-columns: 1fr;
  }

  .family-template-hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .family-review-section,
  .family-compare-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 736px) {
  body.family-template-page #main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.family-template-page article.post.featured {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto;
    margin-right: auto;
  }

  body.family-template-page .lt-toolsHero,
  body.family-template-page .lt-toolsSection,
  body.family-template-page .lt-finalCta,
  body.family-template-page .lt-bridgePanel,
  body.family-template-page .family-download-card,
  body.family-template-page .family-use-card,
  body.family-template-page .family-column-grid article,
  body.family-template-page .family-compare-card,
  body.family-template-page .family-review-checklist {
    width: 100%;
    max-width: 100%;
  }

  body.family-template-page .lt-toolsHeroCopy,
  body.family-template-page .family-review-copy,
  body.family-template-page .family-download-card > *,
  body.family-template-page .family-use-card > *,
  body.family-template-page .family-column-grid article > *,
  body.family-template-page .family-compare-card > * {
    min-width: 0;
    max-width: 100%;
  }

  body.family-template-page #main article.post.featured header.major > h1 {
    font-size: 2.05rem;
    overflow-wrap: anywhere;
  }

  body.family-template-page article.post.featured h1,
  body.family-template-page article.post.featured h2,
  body.family-template-page article.post.featured h3,
  body.family-template-page article.post.featured p,
  body.family-template-page article.post.featured li,
  body.family-template-page article.post.featured a,
  .family-download-card,
  .family-use-card,
  .family-column-grid article {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.family-template-page .lt-toolsSection > .lt-sectionEyebrow,
  body.family-template-page .lt-toolsSection > h2,
  body.family-template-page .lt-toolsSection > p {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .family-template-hero-visual img,
  .family-review-image img {
    border-radius: 18px;
  }

  .family-mini-sheet {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem;
  }

  .family-mini-row {
    grid-template-columns: 2.8rem minmax(0, 1fr) auto;
    font-size: 0.82rem;
  }

  .family-download-grid,
  .family-use-grid,
  .family-column-grid,
  .family-review-checklist ul {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .family-download-card,
  .family-use-card,
  .family-column-grid article,
  .family-compare-card,
  .family-review-checklist,
  .family-step-list {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .family-step-list {
    padding-left: 2.35rem;
  }

  .family-table-scroll {
    padding: 0.3rem;
    border-radius: 16px;
  }

  .family-example-table th,
  .family-example-table td {
    padding: 0.72rem 0.68rem;
    font-size: 0.86rem;
  }
}
