/* ==========================================================================
   ToolsProbe — site stylesheet
   --------------------------------------------------------------------------
   Everything is scoped under `.tp` (set on <body>) so the design system can
   never collide with third-party markup. Section order:
     1. Tokens & base      5. Page hero & breadcrumbs
     2. Layout helpers     6. Prose / long-form content
     3. Navigation         7. Forms
     4. Home sections      8. Tool pages
                           9. Footer & responsive
   ========================================================================== */

/* ---------------------------------------------------- 1. Tokens & base ---- */

.tp {
  --chalk: #F4F7FB;
  --ink: #0E1A33;
  --cobalt: #2340E6;
  --cobalt-dark: #1A32B8;
  --mint: #BFEBD9;
  --sun: #FFD84D;
  --peach: #FFD0C2;
  --periwinkle: #CFD8FF;
  --mute: #56627A;
  --line: #D9E0EC;
  --danger: #C02626;
  --success: #0F7A4F;

  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.55;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.tp *,
.tp *::before,
.tp *::after { box-sizing: inherit; }

.tp a { color: inherit; text-decoration: none; }

.tp h1, .tp h2, .tp h3, .tp h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.tp p { margin: 0; }
.tp img, .tp svg { max-width: 100%; height: auto; }

.tp :focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Keyboard users land here first; invisible until focused. */
.tp .skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.tp .skip:focus { left: 16px; }

.tp .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------- 2. Layout helpers ---- */

.tp .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.tp .wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.tp .btn {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font: 600 16px "Public Sans", sans-serif;
  padding: 15px 32px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.tp .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tp .btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.tp .btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.tp .btn-sm { padding: 11px 22px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }

.tp .inline-link {
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tp .inline-link:hover { color: var(--cobalt-dark); }

/* ------------------------------------------------------- 3. Navigation ---- */

.tp .nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 16px; }

.tp .logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.tp .logo i {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 5px solid var(--cobalt);
  position: relative;
  display: inline-block;
}
.tp .logo i::after {
  content: "";
  position: absolute;
  width: 5px; height: 12px;
  background: var(--cobalt);
  right: -7px; bottom: -9px;
  transform: rotate(-40deg);
  border-radius: 3px;
}

.tp .nav-links { display: flex; align-items: center; }
.tp .nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--mute);
  margin-left: 24px;
}
.tp .nav-links a:hover { color: var(--ink); }
.tp .nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--sun);
}

/* Mobile menu: a checkbox-free button toggling a class, so it works with JS
   disabled only as a no-op — acceptable because all links live in the footer. */
.tp .nav-toggle {
  display: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 0;
}
.tp .nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* --------------------------------------------------- 4. Home sections ----- */

.tp .hero { text-align: center; padding: 72px 0 80px; max-width: 740px; margin: 0 auto; }
.tp .hero h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; }
.tp .hero h1 span { background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); }
.tp .hero p.lead { font-size: 19px; color: var(--mute); margin: 20px auto 0; max-width: 560px; }

.tp .badges {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 24px; margin-top: 28px; font-size: 14px; color: var(--mute);
}
.tp .badges b { color: var(--ink); font-weight: 600; }

.tp .hero .cta {
  display: inline-block; margin-top: 32px;
  background: var(--cobalt); color: #fff;
  font: 600 16px "Public Sans", sans-serif;
  padding: 15px 32px; border-radius: 10px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.tp .hero .cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.tp .tools { padding: 64px 0 80px; background: #fff; border-top: 2px solid var(--ink); }

.tp .sec-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.tp .sec-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }

.tp .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tp .chip {
  border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font: 500 14px "Public Sans", sans-serif;
  color: var(--ink); cursor: pointer;
}
.tp .chip:hover { border-color: var(--ink); }
.tp .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.tp .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp .grid-3 { grid-template-columns: repeat(3, 1fr); }

.tp .card {
  display: flex; flex-direction: column; gap: 12px;
  border: 2px solid var(--ink); border-radius: 16px; padding: 22px;
  background: var(--chalk); min-height: 230px;
  transition: transform .15s, box-shadow .15s;
}
.tp .card:hover, .tp .card:focus-visible {
  transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); outline: none;
}
.tp .ico {
  width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--ink); display: grid; place-items: center;
  font: 800 20px "Bricolage Grotesque", sans-serif;
}
.tp .card h3 { font-size: 20px; font-weight: 700; }
.tp .card p { margin: 0; font-size: 15px; color: var(--mute); flex: 1; }
.tp .card small { font-weight: 600; font-size: 13px; }
.tp .soon { opacity: .72; }
.tp .empty { display: none; padding: 40px 0; color: var(--mute); }

.tp .sec { padding: 64px 0; border-top: 2px solid var(--ink); }
.tp .sec.alt { background: #fff; }
.tp .sec h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin-bottom: 16px; }
.tp .sec .sub { font-size: 17px; color: var(--mute); max-width: 620px; margin-bottom: 36px; }

.tp .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.tp .step {
  position: relative; border: 2px solid var(--ink); border-radius: 16px;
  padding: 28px 22px 22px; background: var(--chalk);
}
.tp .step::before {
  counter-increment: step; content: counter(step);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 32px; color: var(--cobalt); display: block; margin-bottom: 10px;
}
.tp .step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tp .step p { font-size: 15px; color: var(--mute); }

.tp .feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp .feat { border: 2px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; }
.tp .feat .ft-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.tp .feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.tp .feat p { font-size: 14px; color: var(--mute); }

.tp .audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp .aud {
  text-align: center; border: 2px solid var(--ink); border-radius: 16px;
  padding: 28px 18px; background: var(--chalk);
}
.tp .aud .a-icon { font-size: 36px; margin-bottom: 12px; }
.tp .aud h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.tp .aud p { font-size: 14px; color: var(--mute); }

/* FAQ accordion — <details> so it works without JavaScript and is indexable. */
.tp .faq-list { max-width: 820px; }
.tp .faq-item {
  border: 2px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; background: #fff;
}
.tp .faq-item[open] { border-color: var(--ink); }
.tp .faq-q {
  display: block; width: 100%; text-align: left;
  font: 600 16px "Public Sans", sans-serif; color: var(--ink);
  padding: 18px 48px 18px 20px; cursor: pointer; position: relative;
  list-style: none;
}
.tp .faq-q::-webkit-details-marker { display: none; }
.tp .faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 700;
  color: var(--cobalt); transition: transform .2s;
}
.tp .faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.tp .faq-a p { padding: 0 20px 18px; font-size: 15px; color: var(--mute); line-height: 1.6; }

.tp .banner {
  text-align: center; padding: 72px 24px;
  background: var(--ink); color: #fff; border-top: 2px solid var(--ink);
}
.tp .banner h2 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); }
.tp .banner p { color: rgba(255, 255, 255, .7); font-size: 17px; margin: 14px auto 0; max-width: 520px; }
.tp .banner .cta {
  display: inline-block; margin-top: 28px;
  background: var(--sun); color: var(--ink);
  font: 700 16px "Public Sans", sans-serif;
  padding: 15px 32px; border-radius: 10px;
  border: 2px solid #fff; box-shadow: 4px 4px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, box-shadow .12s;
}
.tp .banner .cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(255, 255, 255, .3); }

/* ------------------------------------------ 5. Page hero & breadcrumbs ---- */

.tp .crumbs { padding: 10px 0 0; font-size: 13px; color: var(--mute); }
.tp .crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.tp .crumbs li { display: flex; align-items: center; gap: 6px; }
.tp .crumbs li + li::before { content: "/"; color: var(--line); font-weight: 700; }
.tp .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tp .crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.tp .phero { padding: 36px 0 52px; max-width: 760px; }
.tp .phero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt);
  margin-bottom: 14px;
}
.tp .phero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.tp .phero h1 span { background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); }
.tp .phero .lead { font-size: 18px; color: var(--mute); margin-top: 18px; }
.tp .phero .meta { margin-top: 18px; font-size: 13px; color: var(--mute); }

.tp .stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tp .stat {
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 14px 20px; background: #fff; min-width: 140px;
}
.tp .stat b {
  display: block; font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.1;
}
.tp .stat span { font-size: 13px; color: var(--mute); }

/* ---------------------------------------------------------- 6. Prose ------ */

.tp .prose { max-width: 760px; font-size: 16.5px; color: var(--ink); }
.tp .prose > * + * { margin-top: 20px; }
.tp .prose h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  margin-top: 48px; padding-top: 4px; scroll-margin-top: 24px;
}
.tp .prose h3 { font-size: 20px; font-weight: 700; margin-top: 32px; scroll-margin-top: 24px; }
.tp .prose p { color: var(--mute); line-height: 1.72; }
.tp .prose strong { color: var(--ink); font-weight: 600; }
.tp .prose a {
  color: var(--cobalt); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.tp .prose ul, .tp .prose ol { margin: 20px 0 0; padding-left: 22px; color: var(--mute); line-height: 1.72; }
.tp .prose li + li { margin-top: 8px; }
.tp .prose li::marker { color: var(--cobalt); font-weight: 700; }
.tp .prose blockquote {
  border-left: 4px solid var(--sun); margin: 24px 0 0;
  padding: 4px 0 4px 20px; color: var(--ink); font-size: 17px;
}
.tp .prose code {
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tp .prose hr { border: 0; border-top: 2px solid var(--line); margin: 44px 0; }

.tp .table-scroll { overflow-x: auto; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.tp .prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.tp .prose th, .tp .prose td { border: 2px solid var(--line); padding: 12px 14px; text-align: left; }
.tp .prose th { background: #fff; font-weight: 700; }
.tp .prose td { color: var(--mute); }

/* Callout box for notes, warnings and summaries. */
.tp .note {
  border: 2px solid var(--ink); border-radius: 14px;
  padding: 20px 22px; background: #fff; margin-top: 28px;
}
.tp .note h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tp .note p { font-size: 15px; color: var(--mute); }
.tp .note.good { background: #F2FBF7; border-color: var(--success); }
.tp .note.warn { background: #FFFBEE; }

/* Jump list for the long legal pages. */
.tp .toc {
  border: 2px solid var(--line); border-radius: 14px;
  padding: 22px; background: #fff; margin-bottom: 8px;
}
.tp .toc h2 {
  font-size: 14px !important; font-weight: 700; margin: 0 0 12px !important;
  text-transform: uppercase; letter-spacing: .08em; color: var(--mute);
}
.tp .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.tp .toc li { margin: 0 0 8px; font-size: 14.5px; break-inside: avoid; }
.tp .toc a { color: var(--ink); font-weight: 500; text-decoration: none; }
.tp .toc a:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------------------------------------------------------- 7. Forms ------ */

.tp .form { max-width: 620px; }
.tp .field { margin-bottom: 20px; }
.tp .field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.tp .field .hint { display: block; font-size: 13px; color: var(--mute); font-weight: 400; margin-top: 2px; }

.tp .field input,
.tp .field select,
.tp .field textarea {
  width: 100%;
  font: 400 16px "Public Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 13px 15px;
  transition: box-shadow .12s;
}
.tp .field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.tp .field input:focus,
.tp .field select:focus,
.tp .field textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--cobalt);
}
.tp .field input[aria-invalid="true"],
.tp .field textarea[aria-invalid="true"],
.tp .field select[aria-invalid="true"] { border-color: var(--danger); }
.tp .field .err { display: block; margin-top: 7px; font-size: 14px; font-weight: 600; color: var(--danger); }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.tp .trap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.tp .alert {
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 28px; font-size: 15px; font-weight: 500;
}
.tp .alert-success { background: #EAF8F1; border-color: var(--success); color: #0B5637; }
.tp .alert-error { background: #FDF0F0; border-color: var(--danger); color: #8A1B1B; }

/* Search box on the tools directory. */
.tp .searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tp .searchbar input {
  flex: 1 1 260px;
  font: 400 16px "Public Sans", sans-serif;
  border: 2px solid var(--ink); border-radius: 10px; padding: 13px 15px; background: #fff;
}
.tp .searchbar input:focus { outline: none; box-shadow: 4px 4px 0 var(--cobalt); }

/* ------------------------------------------------------ 8. Tool pages ----- */

.tp .tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }

.tp .tool-panel {
  border: 2px solid var(--ink); border-radius: 18px;
  background: #fff; padding: 28px; box-shadow: 6px 6px 0 var(--ink);
}
.tp .tool-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }

.tp .tool-pending { text-align: center; padding: 48px 24px; }
.tp .tool-pending .big { font-size: 42px; margin-bottom: 14px; }
.tp .tool-pending h2 { font-size: 24px; margin-bottom: 10px; }
.tp .tool-pending p { color: var(--mute); max-width: 420px; margin: 0 auto 24px; font-size: 15.5px; }

.tp .aside-box {
  border: 2px solid var(--line); border-radius: 14px;
  background: #fff; padding: 22px; margin-bottom: 20px;
}
.tp .aside-box h2, .tp .aside-box h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--mute); margin-bottom: 14px;
}
.tp .aside-list { list-style: none; margin: 0; padding: 0; }
.tp .aside-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tp .aside-list a { font-weight: 600; font-size: 15px; display: block; }
.tp .aside-list a:hover { color: var(--cobalt); }
.tp .aside-list span { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }

.tp .checks { list-style: none; margin: 0; padding: 0; }
.tp .checks li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  font-size: 15.5px; color: var(--mute); line-height: 1.6;
}
.tp .checks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt);
  transform: rotate(-45deg);
}

.tp .tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px;
}
.tp .tag-live { background: var(--mint); }
.tp .tag-soon { background: var(--sun); }

/* Sitemap page columns. */
.tp .sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tp .sitemap-col h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.tp .sitemap-col ul { list-style: none; margin: 0; padding: 0; }
.tp .sitemap-col li { margin-bottom: 10px; font-size: 15px; }
.tp .sitemap-col a { color: var(--mute); }
.tp .sitemap-col a:hover { color: var(--cobalt); text-decoration: underline; }

/* 404 */
.tp .notfound { text-align: center; padding: 90px 0 100px; max-width: 620px; margin: 0 auto; }
.tp .notfound .code {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--cobalt);
}
.tp .notfound h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 10px 0 14px; }
.tp .notfound p { color: var(--mute); font-size: 17px; }

/* ------------------------------------------- 9. Footer & responsive ------- */

.tp .foot-top { background: var(--ink); color: #fff; padding: 56px 0 44px; border-top: 2px solid var(--ink); }
.tp .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.tp .foot-brand .logo { color: #fff; margin-bottom: 14px; }
.tp .foot-brand .logo i { border-color: var(--sun); }
.tp .foot-brand .logo i::after { background: var(--sun); }
.tp .foot-brand p { color: rgba(255, 255, 255, .62); font-size: 14.5px; max-width: 300px; }
.tp .foot-col h2 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin-bottom: 14px;
}
.tp .foot-col ul { list-style: none; margin: 0; padding: 0; }
.tp .foot-col li { margin-bottom: 10px; }
.tp .foot-col a { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.tp .foot-col a:hover { color: var(--sun); }
.tp .foot-social { display: flex; gap: 14px; margin-top: 18px; }
.tp .foot-social a { color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 600; }
.tp .foot-social a:hover { color: var(--sun); }

.tp .foot { padding: 28px 0; font-size: 14px; color: var(--mute); border-top: 2px solid var(--ink); background: var(--chalk); }
.tp .foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.tp .foot-links a { color: var(--mute); margin-left: 20px; font-size: 13px; }
.tp .foot-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .tp .grid, .tp .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tp .steps { grid-template-columns: 1fr; }
  .tp .feats { grid-template-columns: 1fr; }
  .tp .audience { grid-template-columns: repeat(2, 1fr); }
  .tp .tool-layout { grid-template-columns: 1fr; gap: 32px; }
  .tp .sitemap-cols { grid-template-columns: repeat(2, 1fr); }
  .tp .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .tp .nav-toggle { display: block; }
  .tp .nav { flex-wrap: wrap; }
  .tp .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    border-top: 2px solid var(--line); margin-top: 16px; padding-top: 8px;
  }
  .tp .nav-links.open { display: flex; }
  .tp .nav-links a { margin: 0; padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .tp .nav-links a:last-child { border-bottom: 0; }
  .tp .toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .tp .grid, .tp .grid-3 { grid-template-columns: 1fr; }
  .tp .audience { grid-template-columns: 1fr; }
  .tp .sitemap-cols { grid-template-columns: 1fr; }
  .tp .foot-grid { grid-template-columns: 1fr; }
  .tp .foot-inner { flex-direction: column; text-align: center; }
  .tp .foot-links a { margin: 0 10px; }
  .tp .hero { padding: 48px 0 56px; }
  .tp .tool-panel { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .tp .card, .tp .hero .cta, .tp .banner .cta, .tp .btn, .tp .faq-q::after { transition: none; }
}

@media print {
  .tp .nav, .tp .nav-toggle, .tp .banner, .tp .foot-top, .tp .crumbs { display: none; }
  .tp { background: #fff; }
  .tp .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* Spec list in the tool-page sidebar. */
.tp .spec-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.tp .spec-list dt { font-weight: 600; color: var(--ink); }
.tp .spec-list dd { margin: 0; color: var(--mute); text-align: right; }

/* Long unbreakable strings — email addresses, URLs — must never widen the
   page on a narrow screen. */
.tp .prose a,
.tp .aside-list a,
.tp .foot-col a,
.tp .sitemap-col a { overflow-wrap: anywhere; }
