/* ==========================================================================
   instalmentloans.co.uk — complete stylesheet
   --------------------------------------------------------------------------
   Class contract: CONTRACTS.md §4 (renderer <-> stylesheet). Class names and
   layout rules are frozen; only the colour values changed for the UK brand.
   Palette: brand blue #0E4BBB, deep blue #083B95, accent orange #FB9F08,
   light-blue tint #D2E4EF. Text pairs meet WCAG AA (>= 4.5:1).
   No imports, no external fonts, no JavaScript. System font stack only.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Brand — LOCKED palette from installed logo (blue + orange) */
  --green: #0E4BBB;        /* brand blue: primary CTAs, active accents */
  --green-700: #083B95;    /* deep blue: borders, focused input outlines */
  --brown: #FB9F08;        /* accent orange: callout accents, highlights */
  --brown-900: #083B95;    /* deep blue: headings, footer */
  --cream: #F6F9FD;        /* page bg: cool off-white */
  --ink: #0A1B38;          /* body text: near-black navy */
  --money: #B26A00;        /* money/figures accent (dark orange, AA on cream) */

  /* Derived — contrast-checked on --cream and #fff (AA >= 4.5:1) */
  --green-800: #0E4BBB;    /* text links: 7.3:1 on cream */
  --green-900: #083B95;    /* focus ring: 9.6:1 on cream */
  --green-050: #EAF1FB;    /* blue 6% tint (callout-green, tool-result) */
  --brown-050: #FEF3E0;    /* orange 8% tint (callout-warn) */
  --ink-soft: #33475c;     /* secondary text: 8.78:1 on cream */
  --muted: #5b6a79;        /* meta/disclosure: 5.10:1 on cream */
  --card: #ffffff;
  --line: #E3EAF4;         /* hairlines */
  --line-strong: #C9D4E4;  /* 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(8, 59, 149, 0.06),
    0 14px 30px -20px rgba(8, 59, 149, 0.24);
  --shadow-lift: 0 2px 4px rgba(8, 59, 149, 0.07),
    0 18px 34px -18px rgba(8, 59, 149, 0.28);
}

/* ------------------------------------------------------------------- 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(--cream);
  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(--brown-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: #CFE0FA;
  color: var(--ink);
}

/* Focus: deep blue ring passes 3:1 against cream and white */
: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(--cream);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

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

/* ------------------------------------------------------------------- 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(--cream);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 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: 51px;
  width: auto;
  transition: transform 0.18s ease;
}

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

/* The logo lockup already contains the "InstalmentLoans.co.uk" wordmark, so the
   text node is kept for assistive tech only and not duplicated visually. */
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.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(14, 75, 187, 0.10);
}

.nav-link.is-active {
  color: var(--brown-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;
}

/* -------------------------------------------------------- titles and lede */
.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;
}

.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(--cream);
  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(--brown-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: #EAF1FB;
  color: var(--brown-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(--brown);
  border-radius: 12px;
}

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

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

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

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

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

/* ------------------------------------------------------- CTA + disclosure */
.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;
}

/* Brand blue + white: solid primary CTA */
.btn-primary {
  background: var(--green);
  color: #ffffff;
  border-color: #083B95;
  box-shadow: 0 1px 2px rgba(8, 59, 149, 0.16);
}

.btn-primary:hover {
  background: #083B95;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(8, 59, 149, 0.35);
}

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

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

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

.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(--brown-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(14, 75, 187, 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: #EAF1FB;
  color: var(--brown-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(--brown-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: #B7C4D8;
}

.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 #C9DDF6;
  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(--brown-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(--brown-900);
  color: var(--cream);
}

.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(--cream);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.footer-head {
  margin: 0 0 0.65rem;
  color: #FB9F08;
  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(--cream);
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #C6D2E2;
  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(--cream);
  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;
  }
}

/* ---------------------------------------------------------- fact strip
   Compact "at a glance" band of sourced figures directly under the hero. */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
}
.fact { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.fact-value {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brown-900);
  font-variant-numeric: tabular-nums;
}
.fact-note { font-size: 0.78rem; color: var(--muted); }
@media (min-width: 760px) {
  .fact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- quick estimate
   Inline payment estimator used on city pages: recomputes as you type. */
.quick-estimate { padding: 1.25rem; }
.quick-estimate h2 { margin-top: 0; }
.qe-note { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 1rem; }
.qe-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 620px) {
  .qe-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.qe-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-050);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
}
.qe-figure {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.qe-figure small { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 0.15rem; }
.qe-sub { font-size: 0.86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qe-disclaimer { margin: 0.7rem 0 0; font-size: 0.76rem; color: var(--muted); }
