body.repayment-reminder-page article.post.featured {
  max-width: none;
}

body.repayment-reminder-page {
  overflow-x: hidden;
}

body.repayment-reminder-page article.post.featured,
.repayment-hero,
.repayment-tool-card,
.repayment-customizer,
.repayment-filter-wrap,
.repayment-template-grid,
.template-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.repayment-reminder-page article.post.featured h1 {
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

body.repayment-reminder-page #main article.post.featured header.major > h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.05;
  margin: 0;
}

.repayment-hero {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.5fr);
}

.repayment-hero-visual {
  margin: 0;
  justify-self: end;
  width: min(100%, 29rem);
  line-height: 0;
}

.repayment-hero-visual img,
.repayment-history-visual 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);
}

.privacy-note,
.repayment-entity-note,
.repayment-trust-note {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: rgba(24, 33, 43, 0.68);
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}

.repayment-tool {
  scroll-margin-top: 1rem;
}

.repayment-tool-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  padding: clamp(1.1rem, 2.5vw, 1.85rem);
}

.repayment-tool-heading p,
.repayment-soft-cta p,
.repayment-history-panel p {
  margin: 0;
}

.repayment-tool-heading h2 {
  margin-bottom: 0.6rem !important;
}

.repayment-customizer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 1.3rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.82);
}

.repayment-field label {
  display: block;
  margin: 0 0 0.32rem;
  color: rgba(24, 33, 43, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.repayment-field input {
  width: 100%;
  height: 2.8rem;
  padding: 0 0.85rem !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #18212b !important;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: none !important;
}

.repayment-field input:focus,
.repayment-filter-button:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid rgba(53, 84, 40, 0.28) !important;
  outline-offset: 2px;
}

.repayment-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.repayment-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.repayment-filter-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #18212b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.repayment-filter-button {
  padding: 0.54rem 0.82rem;
}

.copy-button {
  width: fit-content;
  margin-top: auto;
  padding: 0.58rem 0.92rem;
  background: rgba(175, 230, 126, 0.24);
  border-color: rgba(107, 161, 69, 0.22);
}

.repayment-filter-button:hover,
.copy-button:hover {
  background: rgba(175, 230, 126, 0.2);
}

.repayment-filter-button[aria-pressed="true"] {
  background: #afe67e;
  border-color: rgba(107, 161, 69, 0.28);
}

.repayment-filter-count,
.repayment-copy-status {
  margin: 0 !important;
  color: rgba(24, 33, 43, 0.62) !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
}

.repayment-copy-status:empty {
  min-height: 0;
}

.repayment-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.template-card.is-hidden {
  display: none;
}

.template-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.template-card__meta span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(175, 230, 126, 0.18);
  color: rgba(24, 33, 43, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.template-card h3 {
  margin-bottom: 0.45rem !important;
}

.template-card__use,
.template-card__best {
  color: rgba(24, 33, 43, 0.68) !important;
  font-size: 0.95rem !important;
  line-height: 1.58 !important;
}

.template-card__use,
.template-card__best,
.template-card__message {
  margin: 0;
}

.template-card__message {
  position: relative;
  margin: 0.9rem 0 0.85rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 4px solid #afe67e;
  border-radius: 16px;
  background: rgba(175, 230, 126, 0.11);
  color: #18212b;
  font-size: 1.02rem;
  font-style: normal;
  line-height: 1.62;
}

.template-card__best {
  margin-bottom: 1rem;
}

.repayment-soft-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(175, 230, 126, 0.16) 100%);
}

.repayment-content-section > p {
  max-width: 74ch;
}

.repayment-formula-list,
.repayment-check-list {
  max-width: 74ch;
  margin: 1rem 0 1.1rem !important;
}

.repayment-formula-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding-left: 0 !important;
  list-style: none;
  counter-reset: formula;
}

.repayment-formula-list li {
  position: relative;
  margin: 0 !important;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  counter-increment: formula;
}

.repayment-formula-list li::before {
  content: counter(formula);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(175, 230, 126, 0.3);
  color: #274218;
  font-size: 0.82rem;
  font-weight: 800;
}

.repayment-tone-grid,
.repayment-feature-grid {
  display: grid;
  gap: 1rem;
}

.repayment-tone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.repayment-tone-card,
.repayment-avoid-panel,
.repayment-feature-grid > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.repayment-tone-card,
.repayment-avoid-panel {
  padding: 1.25rem;
}

.repayment-tone-card p,
.repayment-avoid-panel p {
  margin: 0;
}

.repayment-tone-card p + p {
  margin-top: 0.9rem;
}

.repayment-example-line {
  color: rgba(24, 33, 43, 0.76) !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
}

.repayment-avoid-panel {
  max-width: 72ch;
  margin: 1.1rem 0 1.1rem;
  background: rgba(255, 255, 255, 0.78);
}

.repayment-avoid-panel p {
  color: #18212b !important;
  font-weight: 800;
}

.repayment-history-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.5fr);
  gap: 1.5rem;
  align-items: center;
}

.repayment-history-copy p + p {
  margin-top: 1rem;
}

.repayment-history-visual {
  margin: 0;
  line-height: 0;
}

.repayment-feature-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 0.25rem;
}

.repayment-feature-grid > div {
  padding: 1rem;
  color: rgba(24, 33, 43, 0.84);
  font-weight: 700;
  line-height: 1.45;
}

.repayment-cta-line {
  grid-column: 1 / -1;
  color: rgba(24, 33, 43, 0.76) !important;
  font-weight: 700;
}

.repayment-history-panel .lt-ctaRow {
  grid-column: 1 / -1;
}

.faq-section .faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.faq-section details {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.1rem;
}

.faq-section summary {
  color: #18212b;
  font-weight: 800;
  cursor: pointer;
}

.faq-section details p {
  margin: 0.85rem 0 0 !important;
}

@media (max-width: 980px) {
  .repayment-hero,
  .repayment-history-panel {
    grid-template-columns: 1fr;
  }

  .repayment-hero-visual {
    justify-self: start;
    width: min(100%, 34rem);
  }

  .repayment-customizer,
  .repayment-formula-list,
  .repayment-tone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 736px) {
  body.repayment-reminder-page .lt-breadcrumb,
  body.repayment-reminder-page .lt-toolsHero,
  body.repayment-reminder-page .lt-toolsSection,
  body.repayment-reminder-page .lt-finalCta {
    width: calc(100vw - 1.24rem);
    max-width: calc(100vw - 1.24rem);
    margin-left: 0;
    margin-right: 0;
  }

  body.repayment-reminder-page article.post.featured h1 {
    font-size: clamp(1.72rem, 7.2vw, 2.08rem);
  }

  body.repayment-reminder-page #main article.post.featured header.major > h1 {
    font-size: clamp(1.72rem, 7.2vw, 2.08rem);
    line-height: 1.08;
  }

  .repayment-hero-visual {
    display: none;
  }

  .repayment-tool-card,
  .template-card,
  .repayment-tone-card,
  .repayment-avoid-panel {
    border-radius: 18px;
  }

  .repayment-customizer,
  .repayment-template-grid,
  .repayment-formula-list,
  .repayment-tone-grid {
    grid-template-columns: 1fr;
  }

  .repayment-customizer {
    padding: 0.85rem;
  }

  .repayment-filter-wrap {
    align-items: stretch;
  }

  .repayment-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repayment-filter-count {
    width: 100%;
  }

  .repayment-filter-button {
    width: 100%;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.82rem;
  }

  .copy-button {
    width: 100%;
  }

  .template-card__message {
    font-size: 1rem;
  }
}
