/* Tools content only: the shared dark header, footer and site palette stay intact. */
main:has(> .tools-heading) {
  --page: #f4f6f7;
  --panel: #edf4f4;
  --text: #25323a;
  --muted: #526168;
  --accent: #08777c;
  --accent-2: #08777c;
  --line: #e1e7e9;
  background: var(--page);
  color: var(--text);
}
.tools-heading { padding: 1rem 0 0; }
.tools-heading h1 { max-width: none; margin: 0 0 .65rem; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; }
.tool-disclosure { font-size: .875rem; line-height: 1.45; }
.tool-disclosure p { margin: .2rem 0 0; color: var(--muted); }
.tool-jump { margin: .35rem 0; }
.tool-jump summary { width: fit-content; min-height: 44px; align-content: center; cursor: pointer; color: var(--accent-2); }
.tool-jump ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.tool-jump a, .tool-information { display: inline-flex; align-items: center; min-height: 44px; }
.tools-catalog { padding: 0 0 1rem; }
.tool-category { margin: 0 0 1rem; scroll-margin-top: 8rem; }
.tool-category h2 { margin: 0 0 .25rem; font-size: 1.1rem; line-height: 1.3; color: var(--accent-2); }
.tool-subsection { margin: .5rem 0 .15rem; font-size: .9375rem; line-height: 1.3; color: var(--muted); }
.tool-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); background: #fff; }
.tool-row { min-width: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 8rem; }
.tool-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 48px; padding: .375rem .5rem; box-sizing: border-box; color: var(--text); text-decoration: none; }
.tool-name { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.tool-amazon { flex-shrink: 0; color: var(--accent-2); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.tool-link:hover { background: var(--panel); text-decoration: none; }
.tool-link:hover .tool-amazon { text-decoration: underline; }
:is(.tool-link, .tool-jump a, .tool-jump summary, .tool-information):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-category-note { max-width: 100ch; margin: .35rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.tool-information { font-size: .875rem; }
@media (max-width: 860px) {
  .tool-category, .tool-row { scroll-margin-top: 12rem; }
}
@media (max-width: 620px) {
  .tool-category, .tool-row { scroll-margin-top: 20rem; }
}
@media (max-width: 360px) {
  .tool-category, .tool-row { scroll-margin-top: 24rem; }
}

.tool-regional { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .75rem; min-height: 48px; padding: 0 .5rem; }
.tool-regional > .tool-name { flex: 1 1 10rem; padding: .375rem 0; }
.tool-countries { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.tool-country { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 44px; padding: 0 .25rem; color: var(--accent-2); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.tool-country:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
