/* Mortgage Payoff Calculator — plain, trustworthy finance chrome.
   One file, no frameworks, no external requests. */
:root {
  --navy: #1b3a5c;
  --navy-dark: #132c46;
  --green: #14532d;
  --ink: #1f2937;
  --muted: #5b6b7c;
  --line: #d9e1e8;
  --bg: #ffffff;
  --soft: #f3f6f9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1.1rem; }

.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--green);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .4rem 1.2rem;
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem;
  letter-spacing: .01em;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.site-header nav a { color: #cfdeee; text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }

main { padding: 1.6rem 0 2.6rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: .2rem 0 .8rem; color: var(--navy-dark); }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.7rem 0 .6rem; color: var(--navy-dark); }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .5rem; color: var(--navy-dark); }
p { margin: .7rem 0; }
a { color: #14508c; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
th { background: var(--soft); }
ul, ol { padding-left: 1.4rem; }
li { margin: .3rem 0; }

.intro { font-size: 1.1rem; color: #33475c; }
.index-heading { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.date { color: var(--muted); font-size: .9rem; margin: .2rem 0 .8rem; }

.post-card {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.2rem; margin: 1rem 0; background: #fff;
}
.post-card h2 { margin: .1rem 0 .3rem; font-size: 1.2rem; }
.post-card h2 a { text-decoration: none; color: var(--navy); }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: .3rem 0; }

.labels { margin: .4rem 0 .8rem; }
.chip {
  display: inline-block; background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; color: var(--navy);
  margin-right: .35rem;
}

/* calculator widgets inside post content are mostly inline-styled;
   keep their form controls comfortable under the chrome */
article input[type="number"], article input[type="text"], article select {
  font: inherit; padding: .35rem .5rem; max-width: 100%;
}
article button { font: inherit; cursor: pointer; }
article canvas { max-width: 100%; }

.site-footer {
  background: var(--navy-dark); color: #cfdeee;
  padding: 1.4rem 0 1.6rem; margin-top: 1rem;
}
.site-footer p { margin: .25rem 0; font-size: .95rem; }
.foot-brand { color: #fff; font-weight: 700; font-size: 1.05rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
