/* Basketwise · Cape Town — local, dependency-free presentation */
:root {
  --navy: #152c42;
  --blue: #245df1;
  --blue-hover: #174bd6;
  --pale: #eef5fc;
  --lemon: #f4e484;
  --paper: #fcfdfb;
  --white: #ffffff;
  --ink: #152c42;
  --muted: #5a6c7c;
  --line: #dce5ec;
  --soft-line: #eaf0f4;
  --radius: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { min-height: 44px; }
button { color: inherit; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(44px, 5.1vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(31px, 3.2vw, 43px); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 48px, 1240px); margin-inline: auto; }
.section { padding-block: 64px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg, .brand img { width: 34px; height: 34px; flex: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 23px;
  letter-spacing: 0;
}
.site-header nav { display: flex; align-items: center; justify-content: center; gap: 26px; margin-left: auto; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--blue); }
.saved-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.saved-button:hover { background: var(--pale); }
.saved-button svg { width: 16px; height: 16px; }
.saved-count, .count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--navy);
  font-size: 11px;
}
.hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 48px;
}
.hero-copy { max-width: 650px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-lede { max-width: 510px; margin-bottom: 26px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.hero-meta strong { color: var(--navy); font-weight: 650; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-copy .button { margin-bottom: 22px; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-art img { width: 100%; max-height: 460px; object-fit: contain; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding-inline: 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.trust-item:first-child { padding-left: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { color: var(--navy); font-size: 13px; font-weight: 700; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-top .eyebrow { margin-bottom: 10px; }
.section-top h2 { margin-bottom: 12px; }
.section-top p { max-width: 640px; color: var(--muted); font-size: 14px; }
.section-top > button { flex: none; }
.workspace { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filters h3 { margin-bottom: 20px; font-size: 16px; }
.filters form, #basket-form { display: flex; flex-direction: column; gap: 19px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field > .label {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.field input, .field select, .field textarea,
.sort-control select, .modal-body select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c7d5e1;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  transition: border-color .15s ease;
}
.field input:hover, .field select:hover { border-color: #98afc5; }
.field input::placeholder { color: #738494; opacity: 1; }
.field input[type="number"] { font-variant-numeric: tabular-nums; }
.field small, .field-help { color: var(--muted); font-size: 11px; line-height: 1.5; }
.segmented { display: flex; padding: 3px; gap: 3px; border: 1px solid #c7d5e1; border-radius: 9px; background: #e5edf5; }
.segmented button {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #53697d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
.segmented button[aria-pressed="true"], .segmented button.active, .segmented button.selected {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px #152c4212;
}
.segmented button:hover { color: var(--blue); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button {
  flex: 1;
  padding: 7px 9px;
  border: 1px solid #bfcfdd;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
}
.presets button:hover, .presets button[aria-pressed="true"], .presets button.active {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}
.filter-note { margin: 0; color: #52687a; font-size: 11px; line-height: 1.6; }
.filter-note strong { color: var(--navy); }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button svg { width: 17px; height: 17px; flex: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: var(--white); }
.button.primary:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.button.secondary { border-color: var(--navy); background: var(--white); color: var(--navy); }
.button.secondary:hover { background: var(--pale); }
.button.ghost { border-color: var(--line); background: transparent; color: var(--navy); }
.button.ghost:hover { border-color: #9fb3c5; background: var(--pale); }
.button.small { min-height: 44px; padding-inline: 12px; font-size: 12px; }
button:disabled, .button[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
button.saved-active, .button.saved-active, .saved-active {
  border-color: #d6c35e;
  background: var(--lemon);
  color: var(--navy);
}
button.saved-active:hover, .button.saved-active:hover { border-color: #bbaa51; background: #ecdc7c; }
.results { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 12px; }
#result-count { margin: 0; font-size: 13px; font-weight: 650; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort-control label { font-size: 12px; }
.sort-control select { width: auto; max-width: 230px; padding-right: 28px; font-size: 12px; }
.active-query { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.active-query:empty { display: none; }
.active-query .badge { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.provider-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.provider-card:hover { border-color: #a9bdce; box-shadow: 0 8px 24px #152c4208; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.provider-number { color: #5f7487; font-size: 11px; font-weight: 650; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.status, .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #d8e5f2;
  border-radius: 5px;
  background: var(--pale);
  color: #385b7b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}
.status { text-align: right; }
.badge.warning, .status.warning { border-color: #e0d284; background: #fff8d8; color: #5d521c; }
.card-heading { min-height: 65px; margin-bottom: 19px; }
.card-heading h3 { margin-bottom: 7px; overflow-wrap: anywhere; }
.card-heading small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-bottom: 5px; }
.price {
  color: var(--navy);
  font-size: clamp(31px, 3vw, 41px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.price-caption { color: var(--muted); font-size: 11px; line-height: 1.4; }
.rate-line { min-height: 36px; margin: 6px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.fact { min-width: 0; }
.fact label, .fact > span { display: block; margin-bottom: 3px; color: #627789; font-size: 10px; font-weight: 500; line-height: 1.4; }
.fact strong { display: block; color: var(--navy); font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.conditions { margin: 14px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.conditions:empty { display: none; }
.conditions ul { margin: 0; padding-left: 17px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-actions .button:first-child { flex: 1; }
.card-actions .button { min-width: 44px; padding-inline: 13px; font-size: 12px; }
.card-actions .save-button { flex: none; }
.basket-guide { padding-top: 28px; border-top: 1px solid var(--line); }
.basket-guide > h2 { max-width: 650px; margin-bottom: 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.guide-card { padding: 22px 0 0; border-top: 2px solid var(--navy); }
.guide-card h3 { margin-bottom: 10px; font-size: 17px; }
.guide-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.guide-card .eyebrow { color: var(--blue); }
.how-section { margin-block: 10px 56px; padding: 48px 0; background: var(--navy); color: var(--white); }
.how-section.shell { padding: 40px; border-radius: 18px; }
.how-section h2 { max-width: 600px; margin-bottom: 28px; }
.how-section .eyebrow { color: var(--lemon); }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-item { min-width: 0; padding-right: 16px; }
.how-item h3 { margin-bottom: 9px; font-size: 16px; font-weight: 650; }
.how-item p { color: #cad8e5; font-size: 12px; line-height: 1.75; }
.how-item > span, .how-number { display: block; margin-bottom: 14px; color: var(--lemon); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.footer { padding-block: 30px 40px; border-top: 1px solid var(--line); }
.footer .shell { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 32px; }
.footer .brand { font-size: 22px; }
.footer p, .footer small { max-width: 620px; margin-bottom: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer a:not(.brand) { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; }
dialog {
  width: min(1000px, calc(100% - 48px));
  max-width: 1000px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 24px 100px #10283b35;
}
dialog::backdrop { background: #152c428c; }
.modal-shell { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.modal-head h2 { margin: 0; font-size: 29px; line-height: 1.18; overflow-wrap: anywhere; }
.modal-head .eyebrow { margin-bottom: 7px; }
button.close {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}
button.close:hover { background: var(--pale); }
.modal-body { padding: 24px; }
.modal-body h3 { margin: 0 0 16px; font-size: 17px; }
.modal-body h4 { margin-bottom: 8px; font-size: 13px; }
.modal-body p, .modal-body li { font-size: 13px; line-height: 1.7; }
.modal-body > p { color: var(--muted); }
.modal-body .notice { margin-block: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
.detail-panel { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 12px; }
.detail-panel > p, .detail-panel > ul { color: var(--muted); }
.detail-panel > ul { padding-left: 18px; }
.detail-panel ul:last-child { margin-bottom: 0; }
.line-items { margin-block: 10px; }
.line-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--soft-line); font-size: 12px; }
.line-item:last-child { border-bottom: 0; }
.line-item > :first-child { min-width: 0; }
.line-item > :last-child { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.line-item.total { margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--navy); color: var(--navy); font-weight: 750; }
.source-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.source-list li { margin-bottom: 12px; padding-left: 3px; font-size: 12px; overflow-wrap: anywhere; }
.source-list a { color: var(--blue); }
.source-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.compare-table { width: 100%; margin-block: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare-table table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { min-width: 140px; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; line-height: 1.6; }
.compare-table th { background: var(--pale); color: var(--navy); font-size: 11px; font-weight: 700; }
.compare-table th:first-child, .compare-table td:first-child { min-width: 165px; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td strong { display: block; font-size: 14px; }
.compare-table caption { padding: 14px 16px; color: var(--muted); font-size: 11px; text-align: left; }
.empty-state { grid-column: 1 / -1; padding: 48px 28px; border: 1px dashed #a9bdce; border-radius: var(--radius); background: var(--pale); text-align: center; }
.empty-state h3 { margin-bottom: 12px; font-size: 20px; }
.empty-state p { max-width: 440px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; }
.notice { padding: 14px 16px; border-left: 3px solid #d6c35e; border-radius: 0 7px 7px 0; background: #fff9df; color: #665925; font-size: 12px; line-height: 1.65; }
.notice strong { color: var(--navy); }
.link-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; width: max-content; max-width: calc(100% - 48px); padding: 13px 20px; transform: translateX(-50%); border: 1px solid #36516b; border-radius: 10px; background: var(--navy); color: var(--white); box-shadow: 0 8px 30px #152c4226; font-size: 13px; text-align: center; }
.toast:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Markup-specific details shared by the static page and rendered listings. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 200;
  padding: 12px 18px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.brand > span {
  align-self: center;
  margin-left: 2px;
  padding: 4px 0 4px 10px;
  border-left: 1px solid #bfcfdd;
  color: var(--blue);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.3;
}
#saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--navy);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.status-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--pale);
}
.filter-heading { display: flex; align-items: center; gap: 9px; grid-column: 1 / -1; margin-block: -7px -3px; }
.filter-heading > span { color: var(--blue); font-size: 23px; line-height: 1; }
.filter-heading h3 { flex: 1; margin: 0; font-size: 16px; }
.filter-heading .link-button { flex: none; margin-left: auto; font-size: 11px; }
.filters fieldset.field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.filters .field legend { margin-bottom: 7px; padding: 0; color: var(--navy); font-size: 12px; font-weight: 700; }
.field label > span { float: right; color: var(--muted); font-size: 11px; font-weight: 500; }
.sidebar-note { margin-top: 23px; padding-top: 19px; border-top: 1px solid #cbd9e6; }
.sidebar-note .eyebrow { display: block; margin-bottom: 8px; font-size: 9px; letter-spacing: .12em; }
.sidebar-note p { margin-bottom: 0; color: #52687a; font-size: 11px; line-height: 1.75; }
.search-field { margin-bottom: 14px; }
.results > .notice { margin-bottom: 20px; }
.status-known { border-color: #cadbf7; background: #eef3ff; color: #31578c; }
.card-facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}
.save-button:hover { border-color: #a9bdce; background: var(--pale); }
.save-button.saved-active { border-color: #d6c35e; background: var(--lemon); color: var(--navy); }
.save-button.saved-active:hover { background: #ecdc7c; }
.checked { display: block; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--soft-line); color: #627789; font-size: 10px; line-height: 1.5; }
.guide-card > span { display: block; margin-bottom: 13px; color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .1em; line-height: 1.6; }
.data-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.data-links a, .data-links .link-button { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: #e3edf7; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.data-links a:hover, .data-links .link-button:hover { color: var(--lemon); }
.data-links a:focus-visible, .data-links button:focus-visible { outline-color: var(--lemon); }
.modal-body > .detail-panel { margin-top: 20px; }
.modal-body > .detail-panel:first-child, .modal-body > .detail-grid + .detail-panel { margin-top: 0; }
.detail-panel h3:not(:first-child) { margin-top: 24px; }
.rate-detail { padding-block: 16px; border-bottom: 1px solid var(--soft-line); }
.rate-detail h4 { margin-bottom: 7px; font-size: 13px; line-height: 1.6; }
.rate-detail p, .rate-detail ul { margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.rate-detail ul, .conditions-list { padding-left: 18px; }
.conditions-list { color: var(--muted); }
.conditions-list li { margin-bottom: 7px; font-size: 12px; }
.modal-body textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 235px;
  margin-block: 16px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #c7d5e1;
  border-radius: 9px;
  background: var(--pale);
  color: var(--navy);
  font-size: 12px;
  line-height: 1.75;
}
.enquiry-status { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; background: var(--pale); color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1.6; }
.enquiry-status:empty { display: none; }
.compare-table td small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (min-width: 1400px) {
  .hero { gap: 64px; padding-block: 64px 56px; }
}
@media (max-width: 1080px) {
  .hero { gap: 24px; padding-block: 40px; }
  .hero h1 { font-size: 52px; }
  .workspace { grid-template-columns: 248px minmax(0, 1fr); gap: 20px; }
  .filters { padding: 20px; }
  .provider-card { padding: 20px; }
  .cards { gap: 14px; }
  .card-actions { gap: 6px; }
  .card-actions .button { padding-inline: 10px; }
  .price { font-size: 34px; }
  .price-caption { flex-basis: 100%; }
  .site-header nav { gap: 18px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 16px; min-height: 72px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 12px; }
  .brand { font-size: 22px; }
  .hero { grid-template-columns: 1.12fr .88fr; gap: 10px; }
  .hero h1 { font-size: 46px; }
  .hero-lede { font-size: 15px; }
  .trust-item { padding-inline: 12px; font-size: 11px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .trust-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n+3) { padding-top: 16px; border-top: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; gap: 26px; }
  .filters { position: static; max-height: none; overflow: visible; }
  .filters form, #basket-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; align-items: start; }
  .filters .filter-note, .filters form > .notice { grid-column: 1 / -1; }
  .filters .button.primary { align-self: end; }
  .filters #basket-form > .button.primary { grid-column: 1 / -1; }
  .cards { gap: 18px; }
  .card-heading { min-height: 60px; }
  .price-caption { flex-basis: auto; }
  .guide-grid, .how-grid { gap: 24px; }
  .section { padding-block: 48px; }
  .how-section.shell { padding: 32px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 86px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { gap: 12px; min-height: 68px; }
  .brand { gap: 7px; font-size: 23px; }
  .brand svg, .brand img, .brand-mark { width: 29px; height: 29px; }
  .site-header nav { display: none; }
  .saved-button { gap: 5px; margin-left: auto; padding: 8px 11px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding-block: 36px 26px; }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 530px; margin-bottom: 20px; font-size: clamp(41px, 10.8vw, 58px); }
  .hero-lede { max-width: 500px; margin-bottom: 20px; font-size: 15px; }
  .hero-art { max-width: 390px; width: 100%; margin-inline: auto; }
  .hero-art img { max-height: 285px; }
  .hero-meta { gap: 7px 12px; font-size: 11px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding-block: 18px; }
  .trust-item { justify-content: flex-start; padding-inline: 12px; font-size: 11px; }
  .trust-item + .trust-item { border-left: 1px solid var(--line); }
  .trust-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-item strong { font-size: 12px; }
  .section { padding-block: 38px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .section-top h2 { margin-bottom: 10px; font-size: 35px; }
  .section-top p { font-size: 13px; }
  .section-top > button { align-self: flex-start; }
  .filters { padding: 21px; }
  .filters form, #basket-form { grid-template-columns: 1fr; gap: 18px; }
  .filters .filter-note, .filters form > .notice { grid-column: auto; }
  .filters .button.primary { width: 100%; }
  .results-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 15px; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; max-width: 245px; }
  .active-query { margin-bottom: 17px; font-size: 11px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .provider-card { padding: 23px; }
  .card-top { margin-bottom: 16px; }
  .card-heading { min-height: 0; margin-bottom: 20px; }
  .card-heading h3 { font-size: 21px; }
  .card-heading small { font-size: 12px; }
  .price { font-size: 41px; }
  .rate-line { min-height: 0; }
  .conditions { margin-bottom: 19px; font-size: 12px; }
  .card-actions .button { padding-inline: 15px; }
  .card-actions .save-button { padding-inline: 12px; }
  .data-links { gap: 4px 18px; }
  .guide-grid, .how-grid { grid-template-columns: 1fr; gap: 25px; }
  .guide-card { padding-top: 18px; }
  .guide-card p { max-width: 490px; }
  .basket-guide { padding-top: 28px; }
  .how-section { margin-bottom: 32px; padding-block: 35px; }
  .how-section.shell { padding: 28px 24px; }
  .how-section h2 { font-size: 33px; }
  .how-item { padding-right: 0; }
  .how-item + .how-item { padding-top: 22px; border-top: 1px solid #ffffff26; }
  .how-item > span, .how-number { margin-bottom: 8px; }
  .footer { padding-block: 25px 32px; }
  .footer .shell { flex-direction: column; gap: 17px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .modal-shell { max-height: calc(100dvh - 24px); }
  .modal-head { align-items: flex-start; gap: 12px; padding: 20px; }
  .modal-head h2 { font-size: 26px; }
  .modal-body { padding: 20px; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; margin-block: 20px; }
  .detail-panel { padding: 18px; }
  .compare-table th, .compare-table td { padding: 12px; }
  .empty-state { padding: 38px 22px; }
  .toast { bottom: 16px; max-width: calc(100% - 32px); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .provider-card, .filters { padding: 19px; }
  .brand { font-size: 21px; }
  .brand > span { margin-left: 0; padding-left: 7px; font-size: 7px; letter-spacing: .08em; }
  .saved-button { padding-inline: 9px; }
  .card-facts { gap: 9px; }
  .card-actions { flex-wrap: wrap; }
  .card-actions .button:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .filters, .card-actions, .hero-art, .toast { display: none !important; }
  body { background: white; color: black; }
  .shell { width: 100%; }
  .hero, .workspace { display: block; }
  .hero { padding-block: 0 20px; }
  .hero h1 { font-size: 36px; }
  .section { padding-block: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-card { break-inside: avoid; box-shadow: none; }
  .how-section { background: white; color: black; }
  .how-item p { color: black; }
}

