/* ==========================================================================
   Inner pages: About, Debt Advisory, Lending Parameters, Contact and the default page.
   Values measured from the Elementor site (audit/measure-el/{about,debt,lending,contact}-*.txt).
   The hero, team grid, Direct Money Market block and assessment band are in shared.css.
   ========================================================================== */

@media (max-width: 1024px) {
  .site-main { --gutter: 16px; }
}

/* ---------- Section surfaces and type shared by these pages ---------- */
.section--texture { padding: 100px 0; background: var(--c-charcoal) var(--texture, none) center / cover no-repeat; }
.section--texture-tile { padding: 75px 0; background: var(--c-white) var(--texture, none) 0 0 repeat; }
.about-why, .lend-steps { padding: 100px 0; }
.site-main .inner-heading { margin: 0 0 12px; font-size: 35px; line-height: 60px; font-weight: 500; }
.section--texture .inner-heading, .section--texture-tile .inner-heading { color: var(--c-charcoal); }
.site-main .inner-heading--navy { color: var(--c-navy); }
.inner-heading--center { text-align: center; }
.inner-subheading { margin: 0 0 12px; font-family: var(--f-head); font-size: 27px; line-height: 60px; font-weight: 400; color: var(--c-navy); }
.inner-text { display: flow-root; font-size: 18px; line-height: 27px; color: var(--c-charcoal); }
.inner-text a { color: var(--c-green); }
@media (max-width: 1024px) {
  .section--texture, .section--texture-tile, .about-why, .lend-steps { padding: 50px 0; }
}

/* ---------- About ---------- */
.about-team { padding-bottom: 46px; }
.about-team__grid { margin-top: 12px; padding: 10px; }
.about-why__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 0; }
.about-why__item { font-size: 18px; line-height: 27px; color: var(--c-white); }
.about-why__title { margin: 8px 0 16px; font-size: 28px; line-height: 33.6px; font-weight: 700; color: var(--c-white); }
.about-why__item p { margin: 0 0 14px; }
.about-mission__quote { margin: 0; padding: 10px; }
.about-mission__quote p { margin: 0 0 14px; font-size: 23px; line-height: 34.5px; font-weight: 600; font-style: italic; color: var(--c-charcoal); }
@media (max-width: 1024px) {
  .about-team { padding-bottom: 0; }
}
@media (max-width: 767px) {
  .about-team__grid { padding: 10px; }
  .about-why__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-mission__quote { padding: 0; }
}

/* ---------- Debt Advisory ---------- */
.debt-core__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 12px 0 0; padding: 10px; font-size: 18px; line-height: 27px; color: var(--c-charcoal); }
.debt-core__list p { margin: 0 0 14px; }
.site-main .debt-core__table-heading { margin-top: 47px; }
@media (max-width: 767px) {
  .debt-core__list { grid-template-columns: minmax(0, 1fr); padding: 0; }
}

/* ---------- Parameters table (Debt Advisory, Lending Parameters) ---------- */
.param-table { max-width: 1000px; margin: 20px auto; overflow-x: auto; border: 1px solid #E0E0E0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, .1); background: var(--c-white); }
.param-table table { width: 100%; border-collapse: collapse; text-align: left; font-family: Arial, sans-serif; }
.param-table caption { padding: 12px 16px; background: #2A2A2A; color: var(--c-white); font-size: 16px; line-height: 24px; font-weight: 600; text-align: center; }
.param-table th, .param-table td { width: 50%; padding: 12px 16px; border: 1px solid rgba(128, 128, 128, .5); border-bottom-color: #E0E0E0; font-size: 14px; line-height: 24px; font-weight: 600; color: #333; text-align: left; vertical-align: top; }
.param-table tr:nth-child(odd) :is(th, td) { background: rgba(128, 128, 128, .07); }
.param-table tr > :first-child { border-left: 0; }
.param-table tr > :last-child { border-right: 0; }
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: 0; }
@media (max-width: 768px) {
  /* Phones: each row becomes a small card with the label above the value, both right-aligned, as before. */
  .param-table table, .param-table tbody, .param-table tr, .param-table th, .param-table td { display: block; width: 100%; }
  .param-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .param-table tr { margin-bottom: 10px; padding: 10px; border-bottom: 1px solid #E0E0E0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, .05); }
  .param-table th, .param-table td { padding-left: 50%; text-align: right; }
  .param-table tr:last-child th { border-bottom: 1px solid #E0E0E0; }
}

/* ---------- Lending Parameters ---------- */
.lend-steps__list { list-style: none; margin: 0; padding: 10px; }
.lend-steps__list li { display: flex; align-items: center; gap: 5px; padding: 9px 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c-white); }
.lend-steps__list li:first-child { padding-top: 0; }
.lend-steps__list li:last-child { padding-bottom: 0; }
.lend-steps__list i { flex: 0 0 24px; font-size: 19px; line-height: 28.5px; text-align: center; }

/* ---------- Contact ---------- */
.contact-main__intro { margin-bottom: 12px; }
.contact-main__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-main__details { display: flex; flex-direction: column; gap: 20px; }
.contact-main__details > p { margin: 0 0 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { font-family: var(--f-head); font-size: 16px; line-height: 24px; color: var(--c-charcoal); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover span { text-decoration: underline; }
.contact-list i { width: 20px; margin-right: 5px; font-size: 14px; text-align: center; }
.contact-main__form { padding: 10px; }
/* Form spacing the old child theme set for Gravity Forms. */
.contact-main__form .gform-theme--api, .contact-main__form .gform-theme--foundation { --gf-form-gap-x: 14px; --gf-form-gap-y: 15px; --gf-field-gap-x: 12px; --gf-field-gap-y: 12px; --gf-form-footer-margin-y-start: 24px; }
.contact-main__form .gform_title { margin: 8px 0 16px; font-family: var(--f-head); font-size: 32px; line-height: 38.4px; font-weight: 500; color: var(--c-charcoal); }
@media (max-width: 767px) {
  .contact-main__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Default page (Sitemap, Privacy Policy) ---------- */
.page-content { padding: 50px 0 75px; }
.page-content .prose { color: var(--c-white); font-size: 16px; line-height: 24px; font-weight: 600; }
.page-content .prose :is(h2, h3, h4) { color: var(--c-white); }
.page-content .prose h2 { font-size: 32px; line-height: 1.2; margin: 28px 0 14px; }
.page-content .prose h3 { margin: 22px 0 12px; }
.page-content .prose a { color: var(--c-white); }
