/* Merchant Refinance Partners: season-band theme. Leaf green + loam ink + wheat, Alegreya over Manrope. */
:root {
  --mrp-leaf: #227725;
  --mrp-loam: #1E2A1F;
  --mrp-muted: #4B5A4C;
  --mrp-wheat: #E3C766;
  --mrp-paper: #FFFFFF;
  --mrp-winter: #EEF1F5;
  --mrp-spring: #EEF3EC;
  --mrp-summer: #FBF5DF;
  --mrp-autumn: #F8EEE3;
  --mrp-rule: #D6E0D4;
  --mrp-col: 42rem;
  --mrp-wide: 72.5rem;
  --mrp-serif: Alegreya, Georgia, serif;
  --mrp-sans: Manrope, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mrp-paper);
  color: var(--mrp-loam);
  font-family: var(--mrp-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "tnum" 0;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--mrp-leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mrp-leaf); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--mrp-serif); color: var(--mrp-loam); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.3rem); color: var(--mrp-leaf); }
h3 { font-size: 1.35rem; margin-top: 1.6em; }
p, ul, ol, dl, figure, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--mrp-leaf); font-weight: 700; }
strong { font-weight: 700; }

/* skip link */
.mrp-skip {
  position: absolute; left: 12px; top: -100px; z-index: 50;
  background: var(--mrp-loam); color: #fff; padding: 12px 18px; min-height: 44px;
  font-weight: 700; text-decoration: none; border-radius: 0 0 6px 6px;
}
.mrp-skip:focus { top: 0; outline-color: var(--mrp-wheat); }

/* header */
.mrp-top { background: var(--mrp-paper); position: relative; }
.mrp-top__row {
  max-width: var(--mrp-wide); margin: 0 auto; padding: 14px 16px 12px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.mrp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mrp-loam); min-height: 44px; flex: 1 1 0; min-width: 0; }
.mrp-brand__mark { flex: 0 0 auto; width: 40px; height: 40px; }
.mrp-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mrp-brand__name { font-family: var(--mrp-serif); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; }
.mrp-brand__by { font-size: 0.78rem; color: var(--mrp-muted); font-weight: 500; margin-top: 2px; }
.mrp-menu {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  font: 700 0.95rem var(--mrp-sans); color: var(--mrp-loam); background: var(--mrp-paper);
  border: 2px solid var(--mrp-loam); border-radius: 22px; cursor: pointer;
}
.mrp-menu__bars, .mrp-menu__bars::before, .mrp-menu__bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.mrp-menu__bars::before, .mrp-menu__bars::after { content: ""; position: absolute; left: 0; }
.mrp-menu__bars::before { top: -5px; }
.mrp-menu__bars::after { top: 5px; }
.mrp-menu[aria-expanded="true"] .mrp-menu__bars { background: transparent; }
.mrp-menu[aria-expanded="true"] .mrp-menu__bars::before { top: 0; transform: rotate(45deg); }
.mrp-menu[aria-expanded="true"] .mrp-menu__bars::after { top: 0; transform: rotate(-45deg); }
.mrp-nav { flex-basis: 100%; }
.mrp-top[data-menu="shut"] .mrp-nav { display: none; }
.mrp-top:not([data-menu]) .mrp-menu { display: none; }
.mrp-nav ul { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--mrp-rule); }
.mrp-nav li { margin: 0; border-bottom: 1px solid var(--mrp-rule); }
.mrp-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none;
  color: var(--mrp-loam); font-weight: 700; font-size: 1rem;
}
.mrp-nav a[aria-current="page"] { color: var(--mrp-leaf); box-shadow: inset 4px 0 0 var(--mrp-wheat); padding-left: 14px; }

.mrp-months { display: grid; grid-template-columns: repeat(12, 1fr); list-style: none; margin: 0; padding: 0; }
.mrp-months li {
  margin: 0; text-align: center; font: 700 0.66rem/1 var(--mrp-sans); padding: 5px 0 4px; color: var(--mrp-loam);
}
.mrp-months .w { background: #D9E0EA; }
.mrp-months .s { background: #D6E6D3; }
.mrp-months .u { background: #F3E2A6; }
.mrp-months .a { background: #EDD5BF; }

@media (min-width: 900px) {
  .mrp-top__row { flex-wrap: nowrap; padding: 18px 24px 16px; }
  .mrp-brand__name { font-size: 1.45rem; }
  .mrp-brand__mark { width: 46px; height: 46px; }
  .mrp-menu { display: none; }
  .mrp-nav, .mrp-top[data-menu="shut"] .mrp-nav { display: block; flex: 0 0 auto; flex-basis: auto; }
  .mrp-nav ul { display: flex; gap: 4px; margin: 0; border: 0; }
  .mrp-nav li { border: 0; }
  .mrp-nav a { padding: 0 12px; font-size: 0.95rem; border-radius: 22px; }
  .mrp-nav a:hover { background: var(--mrp-summer); }
  .mrp-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mrp-wheat); padding-left: 12px; border-radius: 0; }
  .mrp-months li { font-size: 0.7rem; padding: 6px 0 5px; }
}

/* main + bands */
.mrp-main { display: block; }
.mrp-flow > * { margin-top: 0; }
.mrp-masthead { background: var(--mrp-winter); padding: 44px 16px 8px; }
.mrp-masthead__title { max-width: var(--mrp-col); margin: 0 auto; }
.mrp-masthead + .mrp-flow > .mrp-band:first-child { padding-top: 12px; }

.mrp-band { padding: 40px 16px 32px; }
.mrp-band > * { max-width: var(--mrp-col); margin-left: auto; margin-right: auto; }
.mrp-band--winter { background: var(--mrp-winter); }
.mrp-band--spring { background: var(--mrp-spring); }
.mrp-band--summer { background: var(--mrp-summer); }
.mrp-band--autumn { background: var(--mrp-autumn); }
.mrp-band--plain { background: var(--mrp-paper); }
.mrp-band > h2:first-child, .mrp-band > .ds-last-updated-wrap:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .mrp-band { padding: 64px 24px 52px; }
  .mrp-masthead { padding: 64px 24px 8px; }
}

.ds-last-updated-wrap { font-size: 0.86rem; color: var(--mrp-muted); font-weight: 600; margin-bottom: 1.2em; }
.ds-last-updated { border-bottom: 2px solid var(--mrp-wheat); padding-bottom: 2px; }

.mrp-lede { font-size: 1.2rem; line-height: 1.6; }
.mrp-note { font-size: 0.92rem; color: var(--mrp-muted); }

/* hero (home) */
.mrp-hero { background: var(--mrp-winter); padding-top: 36px; }
.mrp-hero > * { max-width: var(--mrp-wide); }
.mrp-hero__grid { display: grid; gap: 28px; }
.mrp-hero__text h1 { margin-bottom: 0.4em; }
.mrp-hero__chart { margin: 0; background: var(--mrp-paper); border-radius: 14px; padding: 16px 14px 12px; border: 1px solid #D5DBE5; }
.mrp-hero__chart svg { display: block; width: 100%; height: auto; }
.mrp-hero__chart figcaption { font-size: 0.86rem; line-height: 1.5; color: var(--mrp-muted); margin-top: 8px; }
.mrp-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.mrp-key--hard { background: var(--mrp-leaf); }
.mrp-key--ok { background: var(--mrp-wheat); }
@media (min-width: 960px) {
  .mrp-hero { padding-top: 64px; padding-bottom: 64px; }
  .mrp-hero__grid { grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
  .mrp-hero__chart { padding: 22px 22px 16px; }
}

/* buttons */
.mrp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.6em; }
.mrp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 24px; font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.2; text-align: center;
}
.mrp-btn--solid { background: var(--mrp-leaf); color: #fff; border: 2px solid var(--mrp-leaf); }
.mrp-btn--solid:hover { background: var(--mrp-loam); border-color: var(--mrp-loam); }
.mrp-btn--line { background: transparent; color: var(--mrp-leaf); border: 2px solid var(--mrp-leaf); }
.mrp-btn--line:hover { background: var(--mrp-paper); }

/* tables */
.wp-block-table { overflow-x: auto; margin: 1.4em auto 1.6em; -webkit-overflow-scrolling: touch; }
.mrp-band > .wp-block-table { max-width: 52rem; }
.wp-block-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.94rem; line-height: 1.5; background: var(--mrp-paper); }
.mrp-band .wp-block-table th { background: var(--mrp-loam); color: #fff; text-align: left; font-weight: 700; padding: 10px 12px; vertical-align: bottom; }
.mrp-band .wp-block-table th, .mrp-band .wp-block-table td { border: 0; }
.mrp-band .wp-block-table td { padding: 10px 12px; border-bottom: 1px solid var(--mrp-rule); vertical-align: top; }
.wp-block-table table { border: 0; }
.mrp-band .wp-block-table tbody tr:last-child td { border-bottom: 2px solid var(--mrp-loam); }
.wp-block-table td:first-child { font-weight: 700; }
.wp-block-table figcaption, .wp-block-table caption { font-size: 0.85rem; color: var(--mrp-muted); text-align: left; padding-top: 8px; caption-side: bottom; }
.mrp-num td:not(:first-child), .mrp-num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* worked example + callouts */
.mrp-worked { border-left: 5px solid var(--mrp-wheat); background: var(--mrp-paper); padding: 16px 18px 4px; border-radius: 0 12px 12px 0; margin-bottom: 16px; }
.mrp-worked + p { margin-top: 24px; }
.mrp-worked p { margin-bottom: 0.7em; }
.mrp-worked p:first-child { font-weight: 700; }

/* glossary */
.mrp-terms { margin: 1.2em auto 0; }
.mrp-terms dt { font-family: var(--mrp-serif); font-weight: 800; font-size: 1.2rem; color: var(--mrp-leaf); margin-top: 1em; }
.mrp-terms dd { margin: 0.2em 0 0; padding-bottom: 0.9em; border-bottom: 1px solid var(--mrp-rule); }

/* FAQ */
.mrp-faq > h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem); color: var(--mrp-loam); }
.mrp-faq > h2 + p { padding-left: 14px; border-left: 3px solid var(--mrp-leaf); }
.mrp-faq > p + h2 { margin-top: 1.8em; }

/* links list */
.mrp-paths { list-style: none; padding: 0; }
.mrp-paths li { margin: 0; border-top: 1px solid var(--mrp-rule); }
.mrp-paths li:last-child { border-bottom: 1px solid var(--mrp-rule); }
.mrp-paths a { display: flex; align-items: center; min-height: 52px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.mrp-paths a:hover { text-decoration: underline; }

/* contact form */
.ds-contact { background: var(--mrp-paper); border: 1px solid var(--mrp-rule); border-radius: 14px; padding: 20px 16px 8px; margin-top: 1.4em; }
.ds-contact__field { margin: 0 0 16px; }
.ds-contact__field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.ds-contact__optional { font-weight: 500; color: var(--mrp-muted); }
.ds-contact input[type="text"], .ds-contact input[type="email"], .ds-contact input[type="tel"], .ds-contact select, .ds-contact textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 1rem/1.4 var(--mrp-sans); color: var(--mrp-loam);
  background: #fff; border: 1.5px solid #7A8A7B; border-radius: 8px;
}
.ds-contact textarea { min-height: 140px; resize: vertical; }
.ds-contact input:focus-visible, .ds-contact select:focus-visible, .ds-contact textarea:focus-visible { outline: 3px solid var(--mrp-leaf); outline-offset: 1px; border-color: var(--mrp-leaf); }
.ds-contact__field--consent { display: flex; align-items: flex-start; gap: 10px; }
.ds-contact__field--consent input { width: 22px; height: 22px; margin: 11px 0 0; accent-color: var(--mrp-leaf); flex: 0 0 auto; }
.ds-contact__field--consent label { display: flex; align-items: center; min-height: 44px; margin: 0; font-weight: 600; }
.ds-contact__submit {
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 25px; background: var(--mrp-leaf); color: #fff;
  font: 700 1rem var(--mrp-sans); cursor: pointer;
}
.ds-contact__submit:hover { background: var(--mrp-loam); }
.ds-contact__notice { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.ds-contact__notice--ok { background: var(--mrp-spring); border: 1px solid #8DB38A; }
.ds-contact__notice--error { background: var(--mrp-autumn); border: 1px solid #A0522D; }
@media (min-width: 700px) {
  .ds-contact { padding: 28px 28px 12px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .ds-contact > .ds-contact__notice, .ds-contact__field--message, .ds-contact__field--consent, .ds-contact__actions { grid-column: 1 / -1; }
}

/* footer */
.mrp-foot { background: var(--mrp-loam); color: #E8F0E6; padding: 40px 16px 24px; font-size: 0.95rem; }
.mrp-foot a { color: var(--mrp-wheat); }
.mrp-foot :focus-visible { outline-color: var(--mrp-wheat); }
.mrp-foot__in { max-width: var(--mrp-wide); margin: 0 auto; display: grid; gap: 24px; }
.mrp-foot__name { font-family: var(--mrp-serif); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 0.3em; }
.mrp-foot__cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.mrp-foot__links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mrp-foot__links li { margin: 0; }
.mrp-foot__links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.mrp-foot__links a:hover, .mrp-foot__links a[aria-current="page"] { text-decoration: underline; }
.mrp-foot__legal { max-width: var(--mrp-wide); margin: 24px auto 0; padding-top: 16px; border-top: 1px solid #3A4B3C; color: #BCCBBB; font-size: 0.86rem; }
.mrp-foot__legal.mrp-foot__mark { margin-top: 6px; padding-top: 0; border-top: 0; }
@media (min-width: 900px) {
  .mrp-foot { padding: 56px 24px 28px; }
  .mrp-foot__in { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* 404 */
.mrp-lost { padding-top: 72px; padding-bottom: 72px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
