/* ==========================================================================
   loancalculated.com — complete stylesheet
   --------------------------------------------------------------------------
   Class contract: CONTRACTS.md §4 (renderer <-> stylesheet).
   Brand palette sampled from the generated loancalculated logo:
     navy (calculator body, "loan")   #042f54   #03274a (deep)
     green (bars/arrow, "calculated") #147e48   #146c37 (deep)
     light green accent               #93daa3
     paper (background)               #f4f5f6
   No imports, no external fonts, no JavaScript. System font stack only.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Brand — sampled from the loancalculated.com logo */
  --navy: #042f54;         /* calculator body + "loan" wordmark */
  --navy-900: #03274a;     /* deep navy: bar shadows, headings */
  --green: #147e48;        /* rising bars + arrow + "calculated" */
  --green-700: #146c37;    /* deep green: button hover, borders */
  --paper: #f4f5f6;        /* page background (logo backdrop) */
  --ink: #0d1b2a;          /* primary text: near-black navy */
  --money: #147e48;        /* result/savings green */

  /* Derived — contrast-checked on --paper and #fff (AA >= 4.5:1) */
  --green-800: #0f5730;    /* text links: 7.1:1 on paper */
  --green-900: #0b4526;    /* focus ring: 9.0:1 on paper */
  --green-050: #eaf6ee;    /* green 6% tint (callout-green, tool-result) */
  --green-300: #93daa3;    /* light green accent (bars) */
  --navy-050: #eef3f8;     /* navy 6% tint (callout-warn, neutral panels) */
  --ink-soft: #3d4b5c;     /* secondary text: 9.4:1 on paper */
  --muted: #5c6b7a;        /* meta/disclosure: 5.4:1 on paper */
  --card: #ffffff;
  --line: #e2e6ea;         /* hairlines */
  --line-strong: #cdd4db;  /* input borders */

  /* Type & space */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(4, 47, 84, 0.05),
    0 14px 30px -20px rgba(4, 47, 84, 0.22);
  --shadow-lift: 0 2px 4px rgba(4, 47, 84, 0.06),
    0 18px 34px -18px rgba(4, 47, 84, 0.26);
}


/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------ body / base */
body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main#main {
  flex: 1 0 auto;
  padding-block: 1.25rem 3rem;
  scroll-margin-top: 5rem;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green-900);
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.8125rem;
  color: var(--muted);
}

::selection {
  background: #d9f0bd;
  color: var(--ink);
}

/* Focus: dark green ring passes 3:1 against cream and lime */
:focus-visible {
  outline: 3px solid var(--green-900);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- skip link */
.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  transform: translateY(-250%);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.skip:focus {
  transform: none;
  color: var(--paper);
}

/* ------------------------------------------------------------------- wrap */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(8px) saturate(1.2);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.15rem;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  transition: transform 0.18s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-3deg) translateY(-1px);
}

/* Header lockup: the square icon plus a live-text wordmark so it stays crisp at
   any size and matches the logo's navy/green split. */
.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}

.brand-name-accent {
  color: var(--green);
}

.nav {
  flex: 1 1 100%;
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 0.1rem;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  flex: 0 0 auto;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(122, 201, 67, 0.14);
}

.nav-link.is-active {
  color: var(--navy-900);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}

/* ------------------------------------------------------------ breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}

/* ------------------------------------------------- hero band (page opening) */
/* Every page opens with this band: kicker, H1, direct answer and the primary
   actions. It is the above-the-fold call to action. */
.hero {
  position: relative;
  margin: 0.5rem 0 1.75rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 85% 0%, #0b3f6b 0%, var(--navy) 45%, var(--navy-900) 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 55%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, rgba(147, 218, 163, 0.22), transparent 62%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
}

.hero .page-title {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-lede {
  margin: 0 0 1.15rem;
  max-width: 68ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.hero .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--navy-900);
}

.hero .btn-primary:hover {
  background: var(--green-050);
  border-color: var(--green-050);
  color: var(--navy-900);
}

.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.hero .cta-note {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero .disclosure {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.66);
}

.hero .disclosure a {
  color: #fff;
}

/* Fallbacks for any h1/lede rendered outside the hero band. */
.page-title {
  margin: 0.15rem 0 0.6rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 1.25rem;
}

/* Header CTA - the persistent above-the-fold action on every page. */
.header-cta {
  flex: 0 0 auto;
  order: 3;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.meta-line {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0.25rem 0 1.5rem;
}

.meta-line strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ grids */
.grid {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, background-color 0.16s ease;
}

.tile:hover {
  background: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.tile-title {
  font-weight: 700;
  color: var(--navy-900);
  text-transform: capitalize;
  letter-spacing: -0.005em;
}

.tile:hover .tile-title {
  color: var(--green-800);
}

.tile-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ----------------------------------------------------------------- tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0.75rem 0 0.25rem;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: #f4efe3;
  color: var(--navy-900);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table a {
  color: var(--green-800);
}

.data-table small {
  display: inline-block;
  margin-top: 0.15rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------- callouts */
.callout {
  max-width: 78ch;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-green {
  background: var(--green-050);
  border-color: #dcecc9;
  border-left-color: var(--green-700);
}

.callout-warn {
  background: var(--navy-050);
  border-color: #eeddc9;
  border-left-color: var(--navy);
}

.callout-warn strong {
  color: var(--navy-900);
}

/* ------------------------------------------------------- CTA + disclosure */
/* Above-the-fold CTA. Visually distinct so the primary action reads as the next
   step rather than as one more paragraph. */
.cta-hero {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--green-050) 100%);
  box-shadow: var(--shadow);
}

.cta-hero-kicker {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.cta-hero-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cta-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-hero .cta-note {
  margin: 0;
}

.cta-hero .disclosure {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-strong);
}
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease,
    border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

/* Lime + ink: 8.24:1 — echoes the wordmark's lime letters on dark outline */
.btn-primary {
  background: var(--green);
  color: var(--ink);
  border-color: #6cb838;
  box-shadow: 0 1px 2px rgba(34, 28, 22, 0.12);
}

.btn-primary:hover {
  background: #6cb838;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(61, 111, 30, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--green-700);
  color: var(--green-800);
  transform: translateY(-1px);
}

/* Rate-qualification disclaimer shown directly under every CTA. */
.cta-note {
  max-width: 74ch;
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy-900);
}

.disclosure {
  max-width: 74ch;
  margin: 0.9rem 0 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.disclosure a {
  color: var(--green-800);
}

/* -------------------------------------------------------------------- FAQ */
.faq {
  padding-bottom: 0.6rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-of-type {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--navy-900);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green-800);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary {
  color: var(--green-900);
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-answer {
  max-width: 72ch;
  padding: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-answer > :first-child {
  margin-top: 0;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ prose */
.prose > h2,
.prose > h3 {
  margin-top: 1.75em;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li,
.prose h2,
.prose h3,
.prose blockquote {
  max-width: 68ch;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--green-800);
  text-decoration: underline;
  text-decoration-color: rgba(61, 111, 30, 0.4);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.prose thead th {
  background: #f4efe3;
  color: var(--navy-900);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- tool */
.tool {
  padding: 1.35rem;
}

.tool-form {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  color: var(--navy-900);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field input:hover,
.field select:hover {
  border-color: #c9bda6;
}

.field input:focus,
.field select:focus {
  border-color: var(--green-700);
}

.field input::placeholder {
  color: var(--muted);
}

.tool-form .btn {
  justify-self: start;
}

.tool-result {
  margin-top: 1.35rem;
  padding: 1.15rem 1.25rem;
  background: var(--green-050);
  border: 1px solid #dcecc9;
  border-radius: var(--radius);
}

.tool-primary {
  margin: 0 0 0.35rem;
  color: var(--green-900);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.tool-result .data-table {
  margin-top: 0.6rem;
}

.tool-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tool-result .tool-note + .tool-primary {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------- link list */
.link-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.link-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.link-list a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------- city list */
.city-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  columns: 1;
  column-gap: 2rem;
}

.city-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  break-inside: avoid;
}

.city-list a {
  color: var(--green-800);
  text-decoration: none;
}

.city-list a:hover {
  text-decoration: underline;
}

.city-pop {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--green-700);
  color: var(--green-800);
  background: #fff;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  margin-top: 3.5rem;
  background: var(--navy-900);
  color: var(--paper);
}

.site-footer .wrap {
  padding-block: 2.5rem 1.5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  color: var(--paper);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-note {
  max-width: 38ch;
  margin: 0;
  color: #cfc7b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-head {
  margin: 0 0 0.65rem;
  color: #b3e668;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--paper);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #b3e668;
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 247, 240, 0.18);
  color: #cfc7b8;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-legal p {
  max-width: 92ch;
  margin: 0 0 0.6rem;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------- small screens */
@media (max-width: 639px) {
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .data-table th,
  .data-table td {
    white-space: nowrap;
  }

  /* Key/value results must wrap, not scroll */
  .tool-result .data-table {
    display: table;
    overflow: visible;
    white-space: normal;
  }

  .tool-result .data-table th,
  .tool-result .data-table td {
    white-space: normal;
  }

  .tool-result .data-table th {
    width: 55%;
    font-weight: 600;
  }
}

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }

  main#main {
    padding-block: 1.75rem 4rem;
  }

  .card {
    padding: 1.75rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-list {
    columns: 2;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-form .btn {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .brand-logo {
    height: 50px;
  }

  .nav {
    flex: 0 1 auto;
    order: 1;
    overflow: visible;
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-list {
    columns: 3;
  }

  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .tool-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tile:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .brand:hover .brand-logo {
    transform: none;
  }
}
