/* Wagglepath site styles. One stylesheet; tokens first. Gold is structure only, never text. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #FBF5E2;
  --ground-2: #FFFDF7;
  --ground-3: #F6EDD6;
  --gold-deep: #C08A1E;
  --gold: #E9B43C;
  --gold-lit: #FBC84E;
  --steel: #3C79B4;
  --steel-deep: #2A5A8C;
  --steel-wash: #E7EFF7;
  --ink: #2B2419;
  --ink-soft: #6E6352;
  --line: #E4D6B4;
  --line-soft: #EFE4C9;
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1140px;
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font-body); color: var(--ink); background: var(--ground); overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(23px, 3vw, 31px); margin-top: 1.6em; }
h3 { font-size: 20px; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--steel-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--steel-deep); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 11px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: var(--ground-2); cursor: pointer; }
.btn:hover { border-color: var(--steel); color: var(--ink); }
.btn.primary { background: var(--steel-deep); border-color: var(--steel-deep); color: var(--white); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; margin: 0 6px 6px 0; border-radius: 100px; background: var(--steel-wash); border: 1px solid #CFE0EF; color: var(--steel-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.kind, .badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 100px; background: var(--ground-3); border: 1px solid var(--line); color: var(--ink); }
.badge { text-transform: uppercase; letter-spacing: 0.06em; border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.badge.ai { background: var(--steel-wash); border-color: #CFE0EF; color: var(--steel-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 22px/1 var(--font-head); color: var(--steel-deep); text-decoration: none; margin-right: auto; }
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--steel-wash); color: var(--steel-deep); }
.menu-button { display: none; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--ground-2); color: var(--ink); font: 600 16px var(--font-body); cursor: pointer; }
.header-cta { order: 3; }
@media (max-width: 719px) {
  .site-nav { order: 4; flex-basis: 100%; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .js .menu-button { display: inline-flex; align-items: center; order: 2; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .header-cta { padding: 10px 14px; }
}

/* Sections */
.block { padding: 56px 0; }
.block.alt { background: var(--ground-3); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.kicker, .eyebrow, .group-label { font-size: 14px; font-weight: 600; color: var(--steel-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.group-label { display: block; font-size: 13px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }
.group-heading { margin-top: 36px; font-size: 22px; }

.hero { background: linear-gradient(176deg, #DCEAF6 0%, #EDF1E6 38%, var(--ground) 72%); }
.hero-grid { display: grid; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-img { border-radius: 22px; box-shadow: 0 8px 24px rgba(120, 90, 30, 0.12); width: 100%; max-width: 480px; }
.hero-copy, .hero-art { animation: rise 0.4s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.strip { background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.strip h2 { font-size: 20px; margin: 0 0 4px; }
.strip p { margin: 0; }
.waggle-rule { display: block; width: 64px; height: 28px; border-bottom: 3px dashed var(--gold); border-radius: 0 0 40px 40px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
.card { display: block; background: var(--ground-2); border: 1px solid var(--line); border-left: 3px solid var(--steel); border-radius: var(--radius); padding: 22px; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--steel); }
.card h3 { margin: 0 0 6px; color: var(--steel-deep); }
.card p { color: var(--ink-soft); margin: 0; }
.card.lead { border-left-color: var(--gold-deep); grid-column: 1 / -1; max-width: none; font-size: 17px; }

.steps { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: step; margin-top: 20px; }
.step { position: relative; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px 70px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold-deep); color: var(--ink); font: 800 17px/30px var(--font-head); text-align: center; }
.step h3 { margin: 4px 0 6px; }
.step p, .step ul { margin-bottom: 8px; }
.step-links { font-weight: 600; }

.band { background: var(--steel-deep); color: var(--white); }
.band .wrap { padding-top: 40px; padding-bottom: 40px; }
.band h2 { margin-top: 0; color: var(--white); }
.band p { max-width: 64ch; margin: 0; font-size: 19px; }

.cta-band { background: var(--ground-3); border-top: 1px solid var(--line); padding: 44px 0; }
.cta-band h2 { margin-top: 0; }

/* Pages and prose */
.page, .service, .post, .tag-hub { padding: 40px 0 56px; }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-soft); }
.breadcrumbs a { display: inline-block; padding: 10px 0; }
.story h2 { padding-left: 16px; border-left: 3px solid var(--gold-deep); }
.audience ul, .related ul { padding-left: 1.3em; }
.builds-on { margin-top: 24px; padding: 14px 18px; background: var(--steel-wash); border-radius: 10px; }

.meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.updated { font-size: 15px; }
.updated a { display: inline-block; padding: 10px 0; }
.tags { margin: 8px 0 16px; }
.post-list { display: grid; gap: 18px; margin: 24px 0; }
.post-card { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.post-card h3 { margin: 4px 0 6px; }
.post-card h3 a { text-decoration: none; }
.post-card p:last-child { margin-bottom: 0; }

.turns { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.turn { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.turn header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding-bottom: 6px; }
.turn .speaker { font: 800 18px var(--font-head); }
.turn time { color: var(--ink-soft); font-size: 14px; }
.turn p:last-child { margin-bottom: 0; }
.sources { margin-top: 32px; font-size: 15px; border-top: 2px dashed var(--gold); padding-top: 12px; }
.sources h2 { font-size: 20px; margin-top: 8px; }
.sources a { display: inline-block; padding: 6px 0; }

.pay-offer { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.pay-offer h2 { margin-top: 0; font-size: 22px; }
.amount-note, .pay-note { color: var(--ink-soft); }
.empty-state { padding: 18px 20px; background: var(--ground-3); border: 1px solid var(--line); border-radius: var(--radius); }

/* Contact form */
.contact-form { display: grid; gap: 8px; max-width: 560px; margin-top: 32px; padding: 22px; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form h2 { margin: 0 0 4px; font-size: 22px; }
.contact-form label { font-weight: 600; font-size: 15px; margin-top: 6px; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--white); }
.contact-form button { justify-self: start; margin-top: 8px; }
.optional, .form-note { color: var(--ink-soft); font-weight: 400; }
.form-status:empty { display: none; }
.contact-direct { margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 15px; color: var(--ink-soft); background: var(--ground-2); }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font: 800 18px var(--font-head); color: var(--ink); margin-bottom: 4px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-heading { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.trademark { margin: 24px 0 0; font-size: 13px; }

@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .engagements { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .block { padding: 72px 0; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Chat launcher and panel */
/* Chat: launcher, floating panel, inline panel. Merged into site.css by the main worker. */
.chat-launcher{position:fixed;right:16px;bottom:16px;z-index:40;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:56px;height:56px;min-height:44px;padding:0;border:0;border-radius:28px;background:var(--steel-deep);color:#fff;font:inherit;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgb(43 36 25 / .28)}
.chat-launcher:hover{box-shadow:0 6px 18px rgb(43 36 25 / .38)}
.chat-launcher-text{display:none}
@media (min-width:480px){.chat-launcher{width:auto;padding:0 20px 0 16px}.chat-launcher-text{display:inline}}
html:not(.js) .chat-launcher,html:not(.js) .chat-inline{display:none}

.chat-floating{position:fixed;right:16px;bottom:88px;z-index:60;display:flex;width:380px;max-width:calc(100vw - 32px);max-height:calc(100vh - 108px);max-height:calc(100dvh - 108px)}
.chat-floating[hidden]{display:none}
@media (max-width:599.98px){
.chat-floating{inset:0;width:auto;max-width:none;height:100vh;height:100dvh;max-height:none}
.chat-floating .chat-panel{border:0;border-radius:0}
}

.chat-panel{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:100%;padding:16px;overflow-y:auto;background:var(--ground-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 30px rgb(43 36 25 / .18)}
.chat-panel [hidden]{display:none!important}
.chat-inline .chat-panel{max-width:640px;box-shadow:none}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-title{margin:0;font-size:1.25rem}
.chat-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--ground-3);color:var(--ink);cursor:pointer}
.chat-lead,.chat-hours,.chat-typing{margin:0}
.chat-hours,.chat-typing,.chat-status{font-size:.9375rem;color:var(--ink-soft)}
.chat-status{margin:0}
.chat-status:empty,.messages:empty{margin-top:-12px}

.chat-prechat{display:flex;flex-direction:column}
.chat-panel label{display:block;margin:0 0 4px;font-weight:600}
.chat-panel .optional{font-weight:400;color:var(--ink-soft)}
.chat-panel input,.chat-panel textarea{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;font:inherit;font-size:1rem;color:var(--ink);background:#fff;border:1px solid var(--ink-soft);border-radius:8px}
.chat-panel textarea{resize:vertical}
.chat-panel input[aria-invalid="true"]{border:2px solid var(--ink)}
.chat-err{margin:4px 0 8px;font-size:.9375rem;font-weight:600}
.chat-err:empty{margin:0 0 8px}
.chat-err:not(:empty){padding-left:8px;border-left:4px solid var(--gold-deep)}
.chat-prechat .btn{align-self:flex-start;margin-top:4px}

.messages{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;overflow-y:auto}
.chat-inline .messages{max-height:50vh;max-height:50dvh}
.is-floating .messages{flex:1 1 auto;min-height:0}
.msg{max-width:88%;padding:8px 12px;border-radius:12px;background:var(--ground-3);overflow-wrap:anywhere}
.msg-visitor{align-self:flex-end;background:var(--steel-wash)}
.msg-system{align-self:center;background:transparent;border:1px dashed var(--line);color:var(--ink-soft)}
.msg-who{display:block;font-size:.8125rem;font-weight:700;color:var(--steel-deep)}
.msg-text{margin:0;white-space:pre-wrap}
.msg-meta{display:block;font-size:.8125rem;color:var(--ink-soft)}
.msg-who:empty,.msg-meta:empty{display:none}

.chat-composer{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:end}
.chat-composer label{grid-column:1/-1}
.chat-panel .btn:disabled{background:var(--ground-3);color:var(--ink-soft);border:1px solid var(--line);cursor:not-allowed}
.chat-handoff{align-self:flex-start}
.chat-new{align-self:flex-start;min-height:44px;padding:0 4px;border:0;background:none;color:var(--steel-deep);font:inherit;text-decoration:underline;cursor:pointer}
.chat-panel[data-state="error"] .chat-status{font-size:1rem;font-weight:600;color:var(--ink)}

/* Benchmark map */
html:not(.js) .map-controls { display: none; }
.wrap-wide { max-width: 1240px; }
.map-controls { display: grid; gap: 12px; margin: 0 0 14px; padding: 14px 16px; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: 1fr 1fr; align-items: end; }
.map-controls > * { grid-column: 1 / -1; }
.map-controls > .map-field { grid-column: auto; }
.map-controls > .map-picker { grid-column: 1 / -1; }
.map-field label, .map-field .lbl { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.map-field select, .map-picker-box input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ink-soft); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.map-picker { position: relative; }
.map-picker-box { display: flex; align-items: center; gap: 8px; }
.map-picker-box [hidden] { display: none; }
#map-brand-list { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; max-height: 320px; overflow-y: auto; list-style: none; background: var(--white); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 20px rgb(43 36 25 / 0.2); }
#map-brand-list[hidden], #map-brand-list li[hidden] { display: none; }
#map-brand-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
#map-brand-list li.opt-maker { font-weight: 600; background: var(--ground-3); margin-top: 4px; }
#map-brand-list li.is-active { outline: 3px solid var(--steel); outline-offset: -3px; }
#map-brand-list li:hover { background: var(--steel-wash); }
.map-more { border: 1px solid var(--line); border-radius: 12px; background: var(--ground-2); }
.map-more > summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.map-more-body { display: grid; gap: 12px; padding: 4px 14px 14px; border-top: 1px solid var(--line-soft); }
.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grade-chip { min-height: 44px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.grade-chip[aria-pressed="true"] { background: var(--white); border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
.grade-chip[aria-pressed="false"] { background: var(--ground-3); color: var(--ink-soft); }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.map-zoom { display: flex; gap: 8px; }
.map-zoom .btn { min-width: 44px; padding: 8px 14px; font-size: 18px; }
.map-zoom #map-reset { font-size: 15px; }
.map-status { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
/* The map breaks out of the text column to the full viewport width; its height is fixed by CSS so nothing shifts when the canvas replaces the outline. */
.page.benchmark { overflow-x: clip; }
.dealer-map { position: relative; height: clamp(300px, 78vw, 60vh); margin: 0 calc(50% - 50vw) 14px; background: var(--steel-wash); border-block: 1px solid #CFE0EF; overflow: hidden; }
.dealer-map [hidden] { display: none; }
.dealer-map img, .dealer-map canvas { display: block; width: 100%; height: 100%; }
.dealer-map img { object-fit: contain; }
.map-empty { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgb(255 253 247 / 0.9); }
.map-empty p { margin: 0; font-weight: 600; }
.map-error { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--gold-deep); background: var(--ground-3); border-radius: 0 10px 10px 0; font-weight: 600; }
.map-error[hidden] { display: none; }
.map-tip { position: absolute; left: 0; top: 0; transform: translate(var(--x, 0), var(--y, 0)); z-index: 3; width: 280px; max-width: calc(100% - 8px); max-height: calc(100% - 8px); overflow-y: auto; padding: 10px 40px 10px 12px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 6px 16px rgb(43 36 25 / 0.18); font-size: 15px; line-height: 1.4; }
.map-tip span { display: block; }
.map-tip-place { font: 800 17px/1.25 var(--font-head); }
.map-tip-band { font-weight: 600; }
.map-tip-brands, .map-tip-platform, .map-tip-wall { color: var(--ink-soft); }
.map-tip-name { font: 800 17px/1.25 var(--font-head); }
.map-tip-site { overflow-wrap: anywhere; }
.map-tip-name + .map-tip-site + .map-tip-place { font: 600 15px/1.4 var(--font-body); }
.map-tip-rank { font-size: 14px; }
.map-tip .map-tip-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin: 4px 0; padding: 4px 0; border-block: 1px solid var(--line-soft); font-size: 14px; }
.map-tip-scores b { float: right; font-variant-numeric: tabular-nums; }
.map-tip-link { display: inline-block; margin-top: 6px; }
.map-tip-close { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.map-note { font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; }
.rankings { margin: 8px 0 24px; }
.rank-tools { display: grid; gap: 10px; align-items: end; margin: 0 0 10px; }
.rank-tools input[type=search] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ink-soft); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.rank-follow { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.rank-follow input { width: 20px; height: 20px; }
.rank-table { font-size: 14px; }
.rank-table th, .rank-table td { padding: 6px 8px; white-space: nowrap; }
.rank-table thead th { padding: 0 2px; }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-dealer, .rank-table th[data-sort="dealer"] { position: sticky; left: 0; z-index: 1; background: var(--ground); box-shadow: 1px 0 0 var(--line-soft); }
.rank-dealer { white-space: normal; min-width: 150px; max-width: 260px; font-weight: 400; }
.rank-name { display: block; font-weight: 600; color: var(--ink); }
.rank-site { font-size: 13px; overflow-wrap: anywhere; }
.rank-est { margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--ink-soft); }
.rank-brands { white-space: normal; min-width: 160px; }
.grade-badge { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; font-weight: 700; text-align: center; color: #fff; }
.grade-badge[data-band="A"] { background: #1D7A46; }
.grade-badge[data-band="B"] { background: #47792B; }
.grade-badge[data-band="C"] { background: #8A6D0F; }
.grade-badge[data-band="D"] { background: #A8521A; }
.grade-badge[data-band="F"] { background: #B3261E; }
.rank-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; font-size: 15px; }
.rank-pager .btn:disabled { opacity: 0.5; cursor: default; }
th[aria-sort="ascending"] .sort::after { content: " \2191"; text-decoration: none; }
.panel { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.panel[hidden] { display: none; }
.panel h2, .panel h3 { margin-top: 0; }
.panel h2 { font-size: 22px; }
.panel h3 { font-size: 18px; }
#legend-other-title { margin: 14px 0 4px; font-size: 15px; color: var(--ink-soft); }
.legend-list { list-style: none; margin: 0; padding: 0; }
.legend-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.legend-row[aria-pressed="true"] { background: var(--steel-wash); outline: 2px solid var(--steel-deep); outline-offset: -2px; }
.legend-swatch { flex: none; }
.legend-shape { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.legend-count { margin-left: auto; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mix-bar { display: flex; height: 22px; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.mix-bar[hidden], .mix-seg[hidden] { display: none; }
.mix-seg, .mini i { display: block; flex: 0 0 var(--w, 0%); height: 100%; }
.mix-seg[data-band="A"], .mini i[data-band="A"], .mix-sw[data-band="A"] { background: #1D7A46; }
.mix-seg[data-band="B"], .mini i[data-band="B"], .mix-sw[data-band="B"] { background: #5E9E3A; }
.mix-seg[data-band="C"], .mini i[data-band="C"], .mix-sw[data-band="C"] { background: #C9A227; }
.mix-seg[data-band="D"], .mini i[data-band="D"], .mix-sw[data-band="D"] { background: #D9762B; }
.mix-seg[data-band="F"], .mini i[data-band="F"], .mix-sw[data-band="F"] { background: #B3261E; }
.mix-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 6px; padding: 0; list-style: none; font-size: 15px; }
.mix-key li { display: flex; align-items: center; gap: 6px; }
.mix-sw { width: 14px; height: 14px; border: 1px solid var(--ink); border-radius: 3px; }
.tabs { display: flex; gap: 4px; margin: 10px 0 0; border-bottom: 1.5px solid var(--line); }
.tab { min-height: 44px; padding: 0 14px; border: 1.5px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: none; font: 600 15px var(--font-body); color: var(--ink-soft); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--steel-deep); background: var(--white); border-color: var(--line); }
.mix-table th, .mix-table td { padding: 6px 5px; vertical-align: middle; }
.mix-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sort { min-height: 44px; padding: 0 4px; border: 0; background: none; font: 600 14px var(--font-body); color: var(--steel-deep); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
th[aria-sort="descending"] .sort::after { content: " \2193"; text-decoration: none; }
.mini { display: flex; width: 72px; height: 12px; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; }
.few { display: block; min-width: 8em; font-size: 13px; line-height: 1.3; font-style: italic; color: var(--ink-soft); }
.medians { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 8px 0; }
.medians[hidden] { display: none; }
.medians li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; line-height: 1.25; }
.medians li.overall { border-left: 3px solid var(--steel); }
.medians strong { display: block; font: 800 24px/1.1 var(--font-head); color: var(--steel-deep); }
.medians small { display: block; font-size: 12px; color: var(--ink-soft); }
.medians span { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }
.medians-box { margin-top: 14px; }
.next-steps { margin-top: 14px; padding: 8px 12px; border-left: 3px solid var(--gold-deep); background: var(--ground-3); border-radius: 0 10px 10px 0; }
.next-steps h3 { font-size: 16px; margin-bottom: 4px; }
.next-steps ol { margin: 0 0 6px; padding-left: 22px; }
@media (min-width: 720px) {
  .map-controls { grid-template-columns: repeat(3, 1fr); }
  .map-controls > .map-picker { grid-column: auto; }
  .map-more > summary { display: none; }
  .map-more { border: 0; background: none; }
  .map-more-body { grid-template-columns: repeat(3, 1fr); padding: 0; border: 0; }
  .map-more-body > .map-field:last-child { grid-column: 1 / -1; }
  .dealer-map { height: clamp(420px, 62vw, 70vh); }
}
@media (min-width: 1100px) {
  .dealer-map { height: max(520px, 70vh); }
  .rank-tools { grid-template-columns: 1fr auto; }
  .map-after { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 719px) {
  .legend-shape { display: none; }
  /* On a phone the pin popup is a sheet along the bottom of the screen, so the map stays readable behind it. */
  .map-tip { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; transform: none; z-index: 41; width: auto; max-width: none; max-height: 50vh; }
  .mini { width: 58px; }
  .brand-tile-sm { width: 64px; }
  /* R17: on a phone the map comes before the intro so it sits above the fold. */
  .wrap-wide { display: flex; flex-direction: column; }
  .wrap-wide > .asof, .wrap-wide > .prose { order: 1; }
  .wrap-wide > .map-after, .wrap-wide > .map-after ~ * { order: 2; }
  .wrap-wide .bench-nav ul { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 12px; }
  .wrap-wide .bench-nav li { flex: none; }
  .wrap-wide .chip { white-space: nowrap; }
  .wrap-wide .breadcrumbs ol { margin-bottom: 8px; }
  .wrap-wide .map-controls { gap: 8px; padding: 10px 12px; }
}

/* Benchmark */
.bench-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground-2); color: var(--ink); text-decoration: none; font-size: 15px; }
.chip[aria-current="page"] { border-color: var(--steel-deep); color: var(--steel-deep); font-weight: 600; }
.asof { color: var(--ink-soft); font-size: 15px; }
.bench-counts { display: flex; flex-wrap: wrap; gap: 14px 32px; list-style: none; padding: 0; margin: 18px 0; }
.bench-counts strong { display: block; font: 800 32px/1.1 var(--font-head); color: var(--steel-deep); }
ul.grid { list-style: none; padding: 0; }
.bench-links h2 { font-size: 20px; margin: 0 0 6px; color: var(--steel-deep); }
@media (min-width: 720px) { .bench-links { grid-template-columns: 1fr 1fr; } }
.table-scroll { overflow-x: auto; }
.bench-table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.bench-table th, .bench-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.bench-table thead th { color: var(--ink-soft); font-weight: 600; border-bottom-color: var(--line); }
.bench-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.chart { margin: 36px 0; }
.chart-note { color: var(--ink-soft); font-size: 15px; max-width: 75ch; }
.pct { display: inline-block; min-width: 3.2em; }
meter { width: 64px; height: 10px; vertical-align: middle; }
.grades meter { width: 40px; }
.lookup { background: var(--ground-2); border: 1px solid var(--line); border-left: 3px solid var(--gold-deep); border-radius: var(--radius); padding: 22px; margin: 24px 0; max-width: 760px; }
.lookup h2 { margin-top: 0; }
.lookup label { display: block; font-weight: 600; margin-bottom: 6px; }
.lookup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lookup-row input { flex: 1 1 220px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); }
.lookup-row input[aria-invalid="true"] { border-color: var(--gold-deep); }
.hint { color: var(--ink-soft); font-size: 15px; }
.lookup-error { color: var(--ink); font-weight: 600; }
.js .no-js-only { display: none; }
.lookup-card { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.lookup-card .confirm { font-weight: 600; }
.lookup-card .evidence, .lookup-card .platform { color: var(--ink-soft); }
.lookup-result-box { margin: 14px 0; padding: 12px 16px; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); }
.lookup-result-box h3 { margin-top: 0; }
.lookup-result-box p { margin: 0 0 4px; }
.lookup-grade { font-weight: 700; font-size: 18px; }
.lookup-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 8px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.lookup-scores li { display: flex; justify-content: space-between; padding: 2px 0; }
.lookup-scores b { font-variant-numeric: tabular-nums; }
.lookup-card .no-grade { font-weight: 600; }
@media (min-width: 720px) { .lookup-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bands { list-style: none; padding: 0; display: grid; gap: 8px; }
.bands li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.chip-band { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; background: var(--white); }
.brand-filter { margin: 18px 0; max-width: 420px; }
.brand-filter label { display: block; font-weight: 600; margin-bottom: 6px; }
.brand-filter input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.brand-desc { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.brand-group h2 { font-size: 20px; margin-top: 28px; }
.mfr-head { display: flex; align-items: center; gap: 12px; }
.namecell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.namecell .brand-desc { font-weight: 400; }
.brand-tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 120px; height: 40px; padding: 4px 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; vertical-align: middle; }
.brand-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-tile-wide { width: 160px; }
.brand-tile-dark { background: #2B2419; border-color: #2B2419; }
.brand-tile-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 13px/1.15 var(--font-body); color: var(--ink); text-align: center; }
.brand-tile-sm { width: 84px; height: 28px; padding: 3px 6px; border-radius: 5px; }
.brand-tile-sm.brand-tile-wide { width: 112px; }
.brand-tile-sm.brand-tile-text span { display: block; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
