/* lendersdata.com -- institutional rate reporting */
:root {
  --navy:        #0f2742;
  --navy-mid:    #1b3c62;
  --navy-soft:   #2d5584;
  --brass:       #8f6f28;
  --brass-light: #b8923d;
  --ink:         #121619;
  --ink-soft:    #3b4450;
  --muted:       #5b6572;
  --muted-light: #8a929c;
  --rule:        #dfe3e9;
  --rule-soft:   #eceff3;
  --panel:       #f7f8fa;
  --panel-warm:  #faf8f3;
  --white:       #ffffff;
  --up:          #a3261f;
  --down:        #15704a;
  --flat:        #5b6572;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- masthead ---------- */
.topbar {
  background: var(--navy);
  color: #c9d4e2;
  font-size: 12px;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 24px; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }

header.mast { background: var(--navy); color: #fff; }
header.mast .wrap { padding: 22px 24px 0; }
.brandrow { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: -.015em; color: #fff; line-height: 1.1; }
.logo:hover { color: #fff; text-decoration: none; }
.logo .dot { color: var(--brass-light); }
.tagline { font-size: 13px; color: #9fb0c4; max-width: 420px; }

nav.main { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a {
  display: block; padding: 12px 14px; font-size: 13.5px; font-weight: 500;
  color: #c9d4e2; letter-spacing: .01em; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
nav.main a.on { color: #fff; border-bottom-color: var(--brass-light); }

/* ---------- ticker ---------- */
.ticker { background: var(--panel); border-bottom: 1px solid var(--rule); overflow-x: auto; }
.ticker .wrap { display: flex; gap: 0; padding: 0 24px; min-width: max-content; }
.tick { padding: 11px 20px 11px 0; margin-right: 20px; border-right: 1px solid var(--rule); white-space: nowrap; }
.tick:last-child { border-right: 0; }
.tick .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tick .v { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-right: 6px; }
.tick .c { font-size: 11.5px; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 34px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
h1 { font-family: var(--serif); font-size: 40px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.hero p.lede { font-size: 17px; color: var(--ink-soft); margin: 0 0 20px; max-width: 54ch; }
.asof { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.asof b { color: var(--ink-soft); font-weight: 600; }

.headline-rate {
  background: var(--panel-warm); border: 1px solid var(--rule);
  border-top: 3px solid var(--brass); padding: 22px 24px;
}
.headline-rate .k { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 6px; }
.headline-rate .big { font-family: var(--serif); font-size: 58px; line-height: 1; font-weight: 600; letter-spacing: -.025em; }
.headline-rate .big small { font-size: 26px; font-weight: 500; }
.headline-rate .sub { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.headline-rate .meta { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }

/* ---------- change badges ---------- */
.chg { font-weight: 600; white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--flat); }

/* ---------- sections ---------- */
section { padding: 38px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
h2 { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
h2 .cnt { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-left: 10px; }
h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.sec-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.more { font-size: 13px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }

/* ---------- rate cards ---------- */
.cards { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-right: 0; border-bottom: 0; }
.card { flex: 1 1 214px; min-width: 0; background: var(--white); padding: 18px 18px 16px;
        border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card .k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); min-height: 28px; }
.card .v { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 2px; }
.card .v small { font-size: 17px; }
.card .row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card .spark { margin-top: 10px; display: block; width: 100%; height: 34px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table.rates { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
table.rates thead th {
  background: var(--navy); color: #dbe4ef; text-align: right;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 10px 14px; white-space: nowrap;
}
table.rates thead th:first-child { text-align: left; }
table.rates tbody td { padding: 13px 14px; border-bottom: 1px solid var(--rule-soft); text-align: right; white-space: nowrap; }
table.rates tbody td:first-child { text-align: left; white-space: normal; }
table.rates tbody tr:last-child td { border-bottom: 0; }
table.rates tbody tr:hover { background: var(--panel); }
table.rates .prog { font-weight: 600; color: var(--ink); }
table.rates .prog small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 46ch; }
table.rates .rate { font-family: var(--serif); font-size: 20px; font-weight: 600; }
table.rates .src { font-size: 12px; color: var(--muted); }

/* range bar */
.range { width: 108px; margin-left: auto; }
.range .bar { height: 5px; background: var(--rule); position: relative; border-radius: 3px; }
.range .bar i { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--navy); border-radius: 1px; }
.range .lbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-light); margin-top: 4px; }

/* ---------- spread panel ---------- */
.spread { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; }
.spread .fig { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; letter-spacing: -.025em; }
.spread .fig small { font-size: 22px; }
.spread dl { margin: 18px 0 0; font-size: 13.5px; }
.spread dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.spread dt { color: var(--muted); } .spread dd { margin: 0; font-weight: 600; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 330px 1fr; gap: 34px; align-items: start; }
.calc-form { background: var(--panel); border: 1px solid var(--rule); padding: 22px; }
.fld { margin-bottom: 15px; }
.fld:last-child { margin-bottom: 0; }
.fld label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.fld input, .fld select {
  width: 100%; padding: 9px 11px; font-size: 15px; font-family: var(--sans);
  font-variant-numeric: tabular-nums; border: 1px solid var(--rule); background: #fff; color: var(--ink);
}
.fld input:focus, .fld select:focus { outline: 2px solid var(--navy-soft); outline-offset: -1px; border-color: var(--navy-soft); }
.fld .hint { font-size: 11.5px; color: var(--muted-light); margin-top: 4px; }
.calc-out { border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.calc-out .pay { padding: 24px; border-bottom: 1px solid var(--rule); }
.calc-out .pay .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-out .pay .v { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.05; letter-spacing: -.025em; margin-top: 4px; }
.calc-out .pay .note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.breakdown { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.breakdown > div { flex: 1 1 150px; min-width: 0; background: #fff; padding: 15px 18px;
        border-right: 1px solid var(--rule); }
.breakdown > div:last-child { border-right: 0; }
.breakdown .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.breakdown .v { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-top: 3px; }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose p { font-size: 16px; color: var(--ink-soft); margin: 0 0 15px; }
.prose ul, .prose ol { font-size: 16px; color: var(--ink-soft); padding-left: 22px; margin: 0 0 15px; }
.prose li { margin-bottom: 7px; }
.prose h3 { margin-top: 26px; }
.cols2 { columns: 2; column-gap: 46px; }
.cols2 p { break-inside: avoid; }

/* ---------- misc blocks ---------- */
.note-box { background: var(--panel-warm); border-left: 3px solid var(--brass); padding: 16px 20px; font-size: 14px; color: var(--ink-soft); }
.note-box b { color: var(--ink); }
.disclosure { background: var(--panel); border: 1px solid var(--rule); padding: 16px 20px; font-size: 13px; color: var(--muted); }
.aff-slot {
  border: 1px dashed var(--rule); background: var(--panel); padding: 20px;
  text-align: center; font-size: 13px; color: var(--muted-light);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; align-items: start; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 3px 7px; background: var(--navy); color: #fff; }
.tag.brass { background: var(--brass); }
.tag.ghost { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.chart-wrap { border: 1px solid var(--rule); padding: 18px; background: #fff; }
.chart-wrap .cap { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #a9b9ca; margin-top: 10px; }
footer .wrap { padding: 38px 24px 30px; }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin: 0 0 12px; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
footer li { margin-bottom: 7px; }
footer a { color: #a9b9ca; }
footer a:hover { color: #fff; }
footer .flogo { font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 600; }
footer .fblurb { font-size: 13px; margin: 9px 0 0; max-width: 40ch; }
.fbot { border-top: 1px solid rgba(255,255,255,.13); margin-top: 30px; padding-top: 18px; font-size: 12px; color: #8899ab; }
.fbot p { margin: 0 0 8px; max-width: 95ch; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .spread, .calc, .grid2 { grid-template-columns: 1fr; gap: 26px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .cols2 { columns: 1; }
  h1 { font-size: 32px; }
}
@media (max-width: 620px) {
  h2 .cnt { display: none; }
  .wrap, .topbar .wrap, header.mast .wrap, footer .wrap { padding-left: 16px; padding-right: 16px; }
  .ticker .wrap { padding-left: 16px; }
  h1 { font-size: 27px; }
  .logo { font-size: 26px; }
  .headline-rate .big { font-size: 46px; }
  .fgrid { grid-template-columns: 1fr; }
  section { padding: 28px 0; }
}
@media print {
  .topbar, nav.main, .aff-slot, footer ul { display: none; }
  body { font-size: 11pt; }
}

/* ---------- affiliate placements ----------
   Deliberately distinct from the rate tables: a warm panel, an explicit
   disclosure tag, and no visual resemblance to a ranked result. Partner
   order here must never influence the order of a rate table. */
.aff {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  background: var(--panel-warm);
  padding: 20px 22px 18px;
}
.aff-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--brass); border: 1px solid var(--brass);
  padding: 2px 7px; margin-bottom: 13px;
}
.aff-head h3 { margin: 0 0 4px; font-size: 18px; }
.aff-head p { margin: 0 0 15px; font-size: 13.5px; color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partner {
  flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule);
  padding: 15px 17px 13px; color: var(--ink); text-decoration: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.partner:hover {
  text-decoration: none; border-color: var(--brass);
  box-shadow: 0 1px 4px rgba(15,39,66,.09);
}
.partner .pname { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.partner .pblurb { font-size: 13px; color: var(--muted); margin: 4px 0 11px; flex: 1; }
.partner .pcta { font-size: 13px; font-weight: 600; color: var(--navy-mid); }
.partner:hover .pcta { color: var(--brass); }
.aff-note { font-size: 11.5px; color: var(--muted-light); margin: 14px 0 0; line-height: 1.5; }
