/* Community bank loans page only (loaded on this page, not on the rest of the site) */
.ln-head h1 { max-width: none; font-size: clamp(2rem, 1.2rem + 2.3vw, 3.05rem); line-height: 1.1; }
.ln-head .page-head__text { padding-bottom: clamp(40px, 5vw, 72px); }

.ln-band { padding-block: clamp(52px, 6vw, 92px); }
.ln-band .container > * + * { margin-top: 1.15rem; }
.ln p { font-size: 1.0625rem; line-height: 1.7; }
.ln-h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.ln-band .container > .ln-h2 + p { margin-top: 1rem; }

.ln-intro { padding-bottom: clamp(32px, 4vw, 52px); margin-bottom: clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--line); }
.ln-intro p { font-size: clamp(1.15rem, 1.02rem + .45vw, 1.36rem); line-height: 1.6; }
.ln-band .container > .ln-intro + .ln-h2 { margin-top: 0; }

/* loan product cards */
.ln-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: 1.75rem !important; }
.ln-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.5rem 1.6rem; background: var(--stone); border-top: 3px solid var(--tan); border-radius: var(--radius); }
.ln-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--green); }
.ln-card__icon .ic { width: 25px; height: 25px; }
.ln-card p { font-size: 1rem; line-height: 1.6; }
.ln-card strong, .ln-rate strong { font-weight: 600; color: var(--green-deep); }

.ln-note { padding: 1.3rem 1.6rem; background: #f6f0e4; border-left: 4px solid var(--tan); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.75rem !important; }

/* comparison table */
.ln-table { margin-block: 1.75rem !important; }
.ln-table .data-table tbody tr { background: #fff; }
.ln-table .data-table tbody tr:nth-child(even) { background: #f7f8f4; }
.ln-table .data-table th, .ln-table .data-table td { padding: 1rem 1.25rem; }
.ln-table .data-table tbody th { width: 20%; }

/* steps + photo */
.ln-apply { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 48px); align-items: stretch; margin-block: 1.75rem !important; }
.ln-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; align-content: start; }
.ln-steps li {
  counter-increment: step; position: relative; min-height: 4.4rem;
  display: flex; align-items: center;
  padding: 1rem 1.25rem 1rem 4.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.0625rem; line-height: 1.55;
}
.ln-steps li::before {
  content: counter(step); position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--green); color: #fff;
  font: 600 1rem/2.25rem var(--sans); text-align: center;
}
.ln-apply__photo { position: relative; margin: 14px 14px 0 0; min-height: 300px; }
.ln-apply__photo::before {
  content: ""; position: absolute; inset: -14px -14px 0 14px;
  border: 1.5px solid var(--tan); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.ln-apply__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; border-radius: 999px 999px 6px 6px; }

/* benchmark rate cards (same board as the rate pages) */
.ln-rates { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 2rem 8px 2.25rem !important; }
.ln-rate {
  padding: clamp(22px, 2.4vw, 32px); border-radius: 10px;
  background-color: var(--green-deep);
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 7px);
  color: #e3ece7; font-size: 1.0625rem; line-height: 1.65;
  box-shadow: 0 0 0 3px var(--tan), 0 0 0 8px var(--green-night), 0 24px 44px -26px rgba(8, 39, 31, .6);
}
.ln-rate strong { display: inline; color: var(--tan-light); font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

/* FAQ */
.ln-faq { border-top: 2px solid var(--green-deep); margin-top: 1.5rem !important; }
.ln-faq__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 48px); padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ln-faq__row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.3; color: var(--green-deep); }
.ln-faq__row p { margin: 0; }

@media (max-width: 1100px) {
  .ln-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ln-apply { grid-template-columns: minmax(0, 1fr); }
  .ln-apply__photo { min-height: 0; aspect-ratio: 4 / 3; max-width: 520px; width: calc(100% - 14px); }
  .ln-rates { grid-template-columns: minmax(0, 1fr); }
  .ln-faq__row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}
@media (max-width: 600px) {
  .ln-cards { grid-template-columns: minmax(0, 1fr); }
  .ln-steps li { padding-left: 3.9rem; }
  .ln-steps li::before { left: .9rem; }
  .ln-table .data-table tbody th { width: 100%; }
}
