:root {
  --ink: #0f172a; --slate: #475569; --muted: #64748b; --cloud: #f8fafc;
  --surface: #fff; --border: #dce3ec; --blue: #2563eb; --cyan: #06b6d4;
  --amber: #f59e0b; --focus: rgba(37, 99, 235, .22); --content: 1260px;
}
.catalogue-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 28px; font-size: 14px; }
body.catalogue-page .site-main > * { max-width: none; }
.catalogue-heading { max-width: 820px !important; padding-bottom: 32px; }
.catalogue-eyebrow { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.catalogue-heading h1 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -.035em; line-height: 1.08; margin-bottom: 16px; }
.catalogue-heading > p:not(.catalogue-eyebrow) { color: var(--slate); font-size: 18px; }
.catalogue-heading .catalogue-details { font-size: 16px !important; }
.catalogue-heading .tool-search { margin-top: 24px; }
.catalogue-intro { max-width: none !important; }
.catalogue-intro--featured { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-bottom: 32px; }
.catalogue-intro--featured .catalogue-heading { padding-bottom: 0; }
.viewer-promotion { border: 1px solid #c5e8e2; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, #eafaf4, #eff6ff); box-shadow: 0 10px 32px #0f766e0a; }
.viewer-promotion__link { display: block; padding: 20px; color: #103b3b; }
.viewer-promotion__link:hover { color: #103b3b; background: #ffffff30; }
.viewer-promotion__link:focus-visible { outline-offset: -5px; }
.viewer-promotion__eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #087f72; margin-bottom: 12px; }
.viewer-promotion h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 10px; }
.viewer-promotion p { font-size: 14px; color: #4c6c70; line-height: 1.4; margin: 0 0 12px; }
.viewer-promotion__preview { border: 1px solid #c9dfdc; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px #0f766e0b; transform: rotate(-2deg); margin: 0 0 12px; }
.viewer-promotion__toolbar { display: flex; justify-content: space-between; gap: 8px; background: #fff; padding: 10px; color: #34585c; font-size: 10px; }
.viewer-promotion__edit { color: #087f72; }
.viewer-promotion__sheet { display: grid; grid-template-columns: 22px minmax(0,1.4fr) minmax(0,.6fr) minmax(0,1fr); font-size: 10px; }
.viewer-promotion__sheet > * { padding: 5px 8px; border-top: 1px solid #e0ebe9; border-right: 1px solid #e0ebe9; color: #45666a; white-space: nowrap; }
.viewer-promotion__sheet > :nth-child(-n+4), .viewer-promotion__sheet > :nth-child(4n+1) { background: #f3f8f7; text-align: center; color: #78908e; padding-inline: 2px; }
.viewer-promotion__sheet strong { color: #234d4d; background: #f9fcfb; }
.viewer-promotion__sheet .viewer-promotion__cell { outline: 2px solid #16a394; outline-offset: -2px; background: #e5faf2; position: relative; }
.viewer-promotion__sheet b { font-size: 8px; font-weight: 400; padding: 2px 5px; background: #e3f6eb; color: #258451; border-radius: 3px; }
.viewer-promotion__features { display: flex; gap: 8px; align-items: center; justify-content: center; color: #426368; font-size: 12px; margin-bottom: 14px; }
.viewer-promotion__features > span { color: #91afac; }
.viewer-promotion__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 8px; background: #2563eb; color: white; font-weight: 700; font-size: 14px; }
.viewer-promotion__link:hover .viewer-promotion__cta { background: #1d4ed8; }
.viewer-promotion__formats { display: block; text-align: center; font-size: 10px; color: #5a787c; margin-top: 10px; }
@media (min-width: 761px) {
  /* Let the category introduction determine the row height, down to its search field. */
  .catalogue-intro--featured .viewer-promotion { contain: size; min-height: 0; align-self: stretch; }
  .viewer-promotion__link { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
  .viewer-promotion__eyebrow { margin: 0; flex-shrink: 0; }
  .viewer-promotion h2 { font-size: 22px; margin: 0; flex-shrink: 0; }
  .viewer-promotion p, .viewer-promotion__features { display: none; }
  .viewer-promotion__preview { flex: 1; min-height: 0; margin: 0; transform: none; }
  .viewer-promotion__toolbar { padding: 5px 8px; font-size: 9px; }
  .viewer-promotion__sheet > * { padding-block: 3px; }
  .viewer-promotion__cta { padding: 9px 12px; font-size: 13px; flex-shrink: 0; }
  .viewer-promotion__formats { font-size: 9px; margin: 0; flex-shrink: 0; }
}
@media (max-width: 1000px) {
  .catalogue-intro--featured { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
}
@media (max-width: 760px) {
  .catalogue-intro--featured { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .viewer-promotion { max-width: 420px; }
}
.tool-search button { border: 0; }
.catalogue-categories { padding: 24px 0 32px; border-top: 1px solid var(--border); }
.catalogue-categories h2, .catalogue-results h2 { font-size: 24px; margin: 0 0 20px; }
.catalogue-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.catalogue-category-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; }
.catalogue-category-card > i { color: var(--blue); font-size: 26px; margin-bottom: 16px; }
.catalogue-category-card h3 { font-size: 21px; }
.catalogue-category-card p { color: var(--slate); flex: 1; }
.catalogue-category-card > span { color: var(--blue); font-size: 14px; font-weight: 700; }
.catalogue-category-card:hover { border-color: var(--blue); }
.catalogue-results { border-top: 1px solid var(--border); padding-top: 28px; }
.catalogue-results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; overflow-wrap: anywhere; }
.catalogue-results-heading > span { color: var(--muted); white-space: nowrap; }
.catalogue-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.catalogue-tool-card { padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; overflow-wrap: anywhere; }
.catalogue-tool-category { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.catalogue-tool-card h3 { font-size: 21px; margin-bottom: 10px; }
.catalogue-tool-card h3 a { color: var(--ink); }
.catalogue-tool-card h3 a:hover { color: var(--blue); }
.catalogue-tool-card p { color: var(--slate); flex: 1; }
.catalogue-tool-card .category-link { margin-top: 10px; }
.catalogue-empty { padding: 40px 24px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); margin: 20px 0; }
.catalogue-empty p, .catalogue-link-unavailable { color: var(--muted); }
.connected-tools { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.connected-tools > h2 { font-size: 24px; margin: 0 0 10px; }
.connected-tools__intro { color: var(--slate); margin-bottom: 22px; }
.related-transfer { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #0005; }
.related-transfer::backdrop { background: #0f172a99; }
.related-transfer__header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.related-transfer__header h2 { font-size: 23px; line-height: 1.2; margin: 0; }
.related-transfer__close { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; padding: 0 4px; }
.related-transfer > p { color: var(--slate); }
.related-transfer__field { display: block; margin-bottom: 16px; font-size: 14px; color: var(--slate); }
.related-transfer__field[hidden] { display: none; }
.related-transfer__field select { margin-top: 6px; background-color: var(--surface); color: var(--ink); border-color: var(--border); }
.related-transfer__choices { display: flex; flex-direction: column; gap: 8px; }
.related-transfer__choices button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; font-weight: 700; }
.related-transfer__choices [data-carry-result] { background: #2563eb; color: white; border-color: #2563eb; }
.related-transfer__choices button:disabled { opacity: .45; cursor: not-allowed; }
.related-transfer__choices button:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--blue); }
.related-transfer__choices p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.related-transfer__choices p:empty { display: none; }
.related-transfer__choices [data-carry-none] { background: transparent; font-weight: 400; }
.related-transfer [data-transfer-error] { color: #dc2626; margin: 14px 0 0; }
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--cloud); color: var(--ink); font-family: "Inria Sans", Arial, sans-serif; font-size: 16px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #1d4ed8; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header { background: rgba(248,250,252,.96); border-bottom: 1px solid var(--border); }
.site-nav { width: min(calc(100% - 48px), var(--content)); min-height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.brand:hover { color: var(--ink); }
.brand img { width: 56px; height: 38px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links > a, .nav-dropdown > button { color: var(--ink); font-weight: 400; }
.nav-dropdown { position: relative; }
.nav-dropdown > button, .theme-toggle, .mobile-nav-toggle { background: none; border: 0; color: var(--ink); padding: 0; }
.nav-dropdown > button i { margin-left: 5px; font-size: 12px; }
.nav-dropdown-menu { position: absolute; z-index: 10; right: 0; top: calc(100% + 14px); display: none; width: 190px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 35px rgba(15,23,42,.1); }
.nav-dropdown.open .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a { padding: 9px 11px; border-radius: 6px; color: var(--ink); }
.nav-dropdown-menu a:hover { background: var(--cloud); }
.theme-toggle { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 7px; font-size: 20px; }
.mobile-nav-toggle { display: none; font-size: 28px; }
.site-main, .site-footer { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.hero { padding: 34px 0 30px; border-bottom: 1px solid var(--border); }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0; font-size: clamp(52px,4.4vw,64px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); }
.hero-copy p { margin: 18px 0 22px; color: var(--slate); font-size: 19px; }
.tool-search { max-width: 770px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; }
.tool-search > i { z-index: 1; grid-column: 1; grid-row: 1; margin-left: 17px; font-size: 20px; }
.tool-search input { grid-column: 1 / 3; grid-row: 1; width: 100%; height: 54px; padding: 0 18px 0 48px; border: 1px solid #cbd5e1; border-radius: 7px; background: var(--surface); color: var(--ink); }
.tool-search input:focus { border-color: var(--blue); outline: 3px solid var(--focus); }
.home-tool-search { position: relative; }
.tool-suggestions { position: absolute; z-index: 15; grid-column: 1 / 3; top: 62px; left: 0; right: 0; max-height: min(360px, 50vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.tool-suggestions ul { list-style: none; margin: 0; padding: 4px; }
.tool-suggestions li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 5px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.tool-suggestions li:hover, .tool-suggestions li[aria-selected="true"] { background: var(--cloud); outline: 1px solid var(--blue); outline-offset: -1px; }
.tool-suggestions li span, .tool-suggestions-empty { color: var(--muted); font-size: 14px; }
.tool-suggestions-empty { margin: 0; padding: 14px; }
.button-primary { grid-column: 3; margin-left: 14px; padding: 16px 23px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; }
.button-primary:hover { background: #1d4ed8; color: #fff; }
.search-results { max-width: 620px; margin-top: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.search-results a { display: flex; justify-content: space-between; gap: 20px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--ink); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus { background: #eff6ff; }
.search-results span, .search-empty { color: var(--muted); font-size: 14px; }
.search-empty { padding: 14px; }
.tools-directory { padding: 20px 0 24px; border-bottom: 1px solid var(--border); }
.tools-directory > h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 23px; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 42px; }
.tool-category { --category: var(--blue); min-width: 0; padding: 11px 0 0 20px; border-left: 4px solid var(--category); display: flex; flex-direction: column; }
.category-text, .category-network { --category: var(--cyan); }
.directory-count { color: var(--muted); font-size: 14px; font-weight: 400; }
.tools-directory h2 .directory-count { margin-left: 12px; }
.tool-link-unavailable { padding: 6px 0; }
.category-images { --category: var(--amber); }
.tool-category h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.tool-category h3 i { font-size: 22px; }
.tool-category ul { flex: 1; margin: 0; padding: 0; list-style: none; }
.tool-category li { border-bottom: 1px solid var(--border); }
.tool-category li a { display: block; padding: 6px 0; color: var(--ink); }
.tool-category li a:hover strong { color: var(--blue); }
.tool-category strong, .tool-category span { display: block; }
.tool-category strong { font-size: 15px; font-weight: 700; }
.tool-category span { color: var(--muted); font-size: 13px; line-height: 1.25; }
.category-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.recent-tools { min-height: 102px; padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 28px; }
.recent-tools h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; white-space: nowrap; }
.recent-tools h2 i { color: var(--blue); font-size: 24px; }
.recent-tools ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,1fr); }
.recent-tools li { padding: 0 20px; border-left: 1px solid var(--border); }
.recent-tools li a { color: var(--ink); }
.recent-tools strong, .recent-tools span { display: block; }
.recent-tools strong { font-size: 14px; }
.recent-tools span { color: var(--muted); font-size: 12px; }
.recent-tools > a { white-space: nowrap; font-size: 14px; }
.privacy-callout { margin: 34px 0 70px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.48); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.privacy-icon { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(6,182,212,.55); border-radius: 50%; color: var(--cyan); font-size: 39px; }
.privacy-callout h2 { margin: 0 0 5px; font-size: 25px; font-weight: 700; }
.privacy-callout p { margin: 0; color: var(--slate); }
.privacy-callout > a { white-space: nowrap; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer > div { display: flex; gap: 16px; }
.footer-brand { color: var(--ink); font-weight: 700; }
body:not(.home-page) .site-main { padding-block: 40px 80px; }
body:not(.home-page) .site-main > * { max-width: 980px; }
body.dark-theme {
  --ink:#f8fafc; --slate:#cbd5e1; --muted:#b0bfd2; --cloud:#0f172a; --surface:#162136; --border:#43536b;
  --blue:#8ab8ff; --focus:#8ab8ff; --field-border:#8294ad;
  --bs-body-bg:var(--surface); --bs-body-color:var(--ink); --bs-border-color:var(--border);
  --bs-secondary-color:var(--slate); --bs-secondary-rgb:203,213,225; --bs-primary-rgb:138,184,255;
  --bs-tertiary-bg:#243249; --bs-secondary-bg:#243249;
  --bs-link-color:#8ab8ff; --bs-link-hover-color:#b5d1ff;
  --bs-code-color:#f18bba;
  --bs-info-text-emphasis:#b6effb; --bs-info-bg-subtle:#123746; --bs-info-border-subtle:#376c7b;
  --bs-danger-text-emphasis:#ffc3c8; --bs-danger-bg-subtle:#411d28; --bs-danger-border-subtle:#a85b69;
  --bs-warning-text-emphasis:#ffe09a; --bs-warning-bg-subtle:#3d321c; --bs-warning-border-subtle:#8f773c;
  --bs-success-text-emphasis:#a3e9c1; --bs-success-bg-subtle:#17392c; --bs-success-border-subtle:#477c62;
  color-scheme:dark;
}
body.dark-theme .form-control, body.dark-theme .form-select, body.dark-theme .tool-search input {
  color:var(--ink); background-color:var(--surface); border-color:var(--field-border);
}
body.dark-theme .form-control::placeholder { color:var(--muted); opacity:1; }
body.dark-theme .form-control:disabled, body.dark-theme .form-select:disabled {
  color:#b3bfd0; background-color:#243249; border-color:var(--field-border); opacity:1;
}
body.dark-theme .form-control:focus, body.dark-theme .form-select:focus, body.dark-theme .form-check-input:focus {
  border-color:#8ab8ff; box-shadow:0 0 0 3px #8ab8ff55;
}
body.dark-theme .form-select { --bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
body.dark-theme .form-select option { background:var(--surface); color:var(--ink); }
body.dark-theme .form-check-input { background-color:var(--surface); border-color:#8294ad; }
body.dark-theme .form-check-input:checked { background-color:#2563eb; border-color:#8ab8ff; }
body.dark-theme .form-control::file-selector-button { color:var(--ink); background:#243249; border-color:var(--field-border); }
body.dark-theme .form-control:hover:not(:disabled):not([readonly])::file-selector-button { background:#33445f; }
body.dark-theme .btn-outline-primary { --bs-btn-color:#8ab8ff; --bs-btn-border-color:#8ab8ff; --bs-btn-hover-color:#0f172a; --bs-btn-hover-bg:#8ab8ff; --bs-btn-hover-border-color:#8ab8ff; --bs-btn-active-color:#0f172a; --bs-btn-active-bg:#8ab8ff; --bs-btn-active-border-color:#8ab8ff; --bs-btn-disabled-color:#8ab8ff; --bs-btn-disabled-border-color:#8ab8ff; }
body.dark-theme .btn-outline-secondary { --bs-btn-color:#cbd5e1; --bs-btn-border-color:#8294ad; --bs-btn-hover-bg:#33445f; --bs-btn-hover-border-color:#b0bfd2; --bs-btn-hover-color:#fff; --bs-btn-disabled-color:#b0bfd2; --bs-btn-disabled-border-color:#8294ad; }
body.dark-theme .button-primary { background:#8ab8ff; color:#0f172a; }
body.dark-theme .button-primary:hover { background:#b5d1ff; color:#0f172a; }
body.dark-theme a:not(.button-primary):not(.btn):hover { color:var(--bs-link-hover-color); }
.skip-link { position:fixed; top:8px; left:16px; z-index:1000; padding:12px 18px; border-radius:6px; background:var(--surface); color:var(--ink); border:2px solid var(--blue); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
#main-content:focus { outline:none; }
body.dark-theme .site-header { background: rgba(15,23,42,.96); }
body.dark-theme .privacy-callout { background: rgba(22,33,54,.5); }
body.dark-theme .search-results a:hover, body.dark-theme .search-results a:focus { background:#1e293b; }
body.dark-theme .network-tool-page {
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--border);
  --bs-secondary-color: var(--muted);
  --bs-secondary-rgb: 203, 213, 225;
  --bs-code-color: #f18bba;
  --bs-danger-text-emphasis: #ea868f;
  --bs-danger-bg-subtle: #2c0b0e;
  --bs-danger-border-subtle: #842029;
  color-scheme: dark;
}
body.dark-theme .network-tool-page .alert-light {
  --bs-alert-color: var(--slate);
  --bs-alert-bg: var(--surface);
  --bs-alert-border-color: var(--border);
}
body.dark-theme .network-tool-page .btn-outline-primary {
  --bs-btn-color: #6ea8fe;
  --bs-btn-border-color: #6ea8fe;
}
@media (max-width: 980px) {
  .site-nav { min-height: 78px; }
  .mobile-nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; z-index: 20; left: 24px; right: 24px; top: 70px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 35px rgba(15,23,42,.12); align-items: stretch; gap: 4px; }
  .nav-links.open { display: grid; }
  .nav-links > a, .nav-dropdown > button { display: block; width: 100%; padding: 10px; text-align: left; }
  .nav-dropdown-menu { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
  .theme-toggle { margin: 8px 10px; }
  .category-grid { grid-template-columns: repeat(2,1fr); row-gap: 34px; }
  .recent-tools { grid-template-columns: 1fr; gap: 18px; }
  .recent-tools ul { grid-template-columns: repeat(2,1fr); row-gap: 16px; }
  .privacy-callout { grid-template-columns: auto 1fr; }
  .privacy-callout > a { grid-column: 2; }
}
@media (max-width: 640px) {
  .site-nav, .site-main, .site-footer { width: min(calc(100% - 32px),var(--content)); }
  .brand { font-size: 23px; }
  .brand img { width: 46px; height: 32px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 46px; }
  .hero-copy p { font-size: 17px; }
  .tool-search { grid-template-columns: 42px 1fr; }
  .tool-search input { grid-column: 1 / 3; }
  .button-primary { grid-column: 1 / 3; margin: 12px 0 0; text-align: center; }
  .category-grid { grid-template-columns: 1fr; gap: 30px; }
  .recent-tools ul { grid-template-columns: 1fr; }
  .recent-tools li { padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .privacy-callout { grid-template-columns: 1fr; }
  .privacy-callout > a { grid-column: 1; white-space: normal; }
  .site-footer { display: grid; gap: 12px; }
  .site-footer > div { display: grid; gap: 2px; }
}
