/* Buyer tools inherit the established site tokens; no global theme overrides. */
.buyer-tool { min-width: 0; }
.buyer-tool p, .buyer-tool li { max-width: 80ch; }
.buyer-tool h3 { margin-top: 2rem; }
.buyer-tool label { display: block; font-weight: 600; color: var(--ink); }
.buyer-tool input, .buyer-tool select { width: 100%; min-width: 0; min-height: 46px; padding: .65rem .75rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius:3px; }
.buyer-tool input:focus-visible, .buyer-tool select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.buyer-tool__form { padding: clamp(16px, 3vw, 32px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.buyer-tool__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 16px; }
.buyer-tool .field__hint { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.buyer-tool .table-wrap { overflow: auto; margin: 24px 0; }
.buyer-tool table { width: 100%; border-collapse: collapse; text-align: left; }
.buyer-tool caption { text-align: left; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.buyer-tool th, .buyer-tool td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.buyer-tool th { font-size: .8rem; }
.buyer-tool td:first-child { min-width: 160px; }
.buyer-tool td input[type=number] { min-width: 88px; }
.buyer-tool .btn { min-height: 44px; }
.buyer-tool__error { color: var(--error); font-weight: 600; margin-top: 16px; }
.buyer-tool__error:empty { display: none; }
.buyer-tool__result { background: var(--brand-tint); border: 1px solid var(--brand-tint-2); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); margin: 28px 0; }
.buyer-tool__result h3 { margin-top: 0; }
.buyer-tool__result dl { display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; }
.buyer-tool__result dt { padding-top: 12px; border-top: 1px solid var(--brand-tint-2); }
.buyer-tool__result dd { margin: 0; padding-top: 12px; border-top: 1px solid var(--brand-tint-2); color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.buyer-map__controls { padding: clamp(20px,3vw,32px); border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); margin-bottom: 28px; }
.buyer-map__controls input { margin: 10px 0; }
.buyer-map__controls #map-count { color: var(--muted); font-size: .9rem; }
.buyer-map__entries { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.buyer-map__entry { display: flex; flex-direction: column; padding: clamp(20px,3vw,30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-margin-top: 100px; min-width: 0; }
.buyer-map__entry h3 { margin-top: 0; }
.buyer-map__aliases { font-size: .9rem; color: var(--muted); }
.buyer-map__entry dt { margin-top: 12px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.buyer-map__entry dd { margin: 4px 0 16px; }
.buyer-map__coverage { font-size: .85rem; color: var(--muted); }
.buyer-map__link { margin-top: auto; font-weight: 600; }
.buyer-map__source { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 20px; margin-bottom: 0; font-size: .78rem; color: var(--muted); }
.buyer-tool [hidden] { display: none !important; }
@media(max-width: 760px) {
 .buyer-tool__fields, .buyer-map__entries { grid-template-columns: 1fr; }
 .buyer-tool--planner table, .buyer-tool--planner tbody, .buyer-tool--planner tr, .buyer-tool--planner td { display: block; min-width: 0; width: 100%; }
 .buyer-tool--planner thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .buyer-tool--planner tr { padding: 12px; margin: 12px 0; background: var(--paper); border: 1px solid var(--line-2); border-radius:3px; }
 .buyer-tool--planner td { border: 0; padding: 6px 0; }
 .buyer-tool--planner td[data-label]::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
 .buyer-tool__result dl { grid-template-columns: 1fr; gap: 4px; }
 .buyer-tool__result dd { border: 0; padding: 0 0 16px; }
 .buyer-tool .btn-row > .btn { white-space: normal; }
}
@media print {
 .buyer-map__controls, .buyer-tool .btn-row, .buyer-tool button { display: none; }
 .buyer-map__entries { display: block; }
 .buyer-map__entry { break-inside: avoid; margin-bottom: 20px; }
}

/* The planning workspace shares the editorial identity. */
.buyer-tool__form { background: #fff; box-shadow: var(--shadow-sm); }
.buyer-tool__form h3 { font-family: var(--display); font-weight: 600; font-size: 2rem; }
.buyer-tool__result { background: #edf3ff; border-radius:3px; }
.buyer-tool__result dd { font-family: var(--display); font-size: 1.8rem; font-weight: 600; }
.buyer-map__entry { background: #fff; border-radius:3px; }
.buyer-map__entry h3 { font-family: var(--display); font-size: 2rem; font-weight: 600; }
.buyer-map__controls { border-radius:3px; }
