/* Toolwhere — plugin stylesheet.
   Every rule is scoped to .toolwhere so nothing leaks into your theme.
   Generated by build_wp.py from the source stylesheet. */
.toolwhere {
  --pine-900: #0b3d35;
  --pine-700: #12594d;
  --pine-600: #146b5c;
  --pine-100: #e2f0ec;
  --amber-500: #f0a92b;
  --amber-100: #fdefd4;

  --ink: #14202b;
  --ink-soft: #46596b;
  --ink-faint: #6d8091;
  --line: #d9e2e8;
  --line-soft: #e9eef2;
  --surface: #f3f6f8;
  --paper: #ffffff;

  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ok: #1a7f4b;
  --ok-bg: #e6f5ec;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(20, 32, 43, .06);
  --shadow-2: 0 10px 30px -12px rgba(20, 32, 43, .28);
  --focus: 0 0 0 3px rgba(20, 107, 92, .28);
}
.toolwhere *, .toolwhere *::before, .toolwhere *::after { box-sizing: border-box; }
.toolwhere { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {.toolwhere { scroll-behavior: auto; }
.toolwhere *, .toolwhere *::before, .toolwhere *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.toolwhere {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
.toolwhere img, .toolwhere svg, .toolwhere canvas { max-width: 100%; height: auto; display: block; }
.toolwhere h1, .toolwhere h2, .toolwhere h3, .toolwhere h4 {
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 600;
}
.toolwhere h1 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 2.9rem); }
.toolwhere h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem); margin-top: 2em; }
.toolwhere h3 { font-size: 1.14rem; margin-top: 1.7em; }
.toolwhere p { margin: 0 0 1em; }
.toolwhere ul, .toolwhere ol { margin: 0 0 1em; padding-left: 1.25em; }
.toolwhere li { margin-bottom: .4em; }
.toolwhere a { color: var(--pine-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.toolwhere a:hover { color: var(--pine-900); }
.toolwhere :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.toolwhere .wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.toolwhere .wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.toolwhere .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.toolwhere .crumbs { font-size: .87rem; color: var(--ink-faint); padding: 1.1rem 0 0; }
.toolwhere .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.toolwhere .crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.toolwhere .crumbs li:last-child::after { content: ""; }
.toolwhere .crumbs a { color: var(--ink-faint); }
.toolwhere .hero { padding: 2.6rem 0 1.4rem; }
.toolwhere .hero__lead { max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; }
.toolwhere .hero h1 { max-width: 20ch; }
.toolwhere .searchbar { position: relative; margin: 1.6rem 0 .6rem; max-width: 560px; }
.toolwhere .searchbar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-faint); pointer-events: none; }
.toolwhere .searchbar input {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: .85rem 1rem .85rem 2.75rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.toolwhere .searchbar input::placeholder { color: var(--ink-faint); }
.toolwhere .searchbar input:focus-visible { border-color: var(--pine-600); box-shadow: var(--focus); }
.toolwhere .search-status { font-size: .9rem; color: var(--ink-faint); min-height: 1.4em; }
.toolwhere .tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); padding: 0; margin: 1.2rem 0 0; list-style: none; }
.toolwhere .tool-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.15rem 1.15rem 1.25rem; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.toolwhere .tool-card:hover { border-color: var(--pine-600); box-shadow: var(--shadow-2); }
.toolwhere .tool-card h3 { margin: 0; font-size: 1.05rem; }
.toolwhere .tool-card h3 a { color: var(--ink); text-decoration: none; }
.toolwhere .tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.toolwhere .tool-card { position: relative; }
.toolwhere .tool-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.toolwhere .tool-card__icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--pine-100); color: var(--pine-700);
  display: grid; place-items: center; margin-bottom: .35rem;
}
.toolwhere .tool-card__icon svg { width: 20px; height: 20px; }
.toolwhere .tool-card__tag { font-size: .78rem; color: var(--ink-faint); margin-top: auto; padding-top: .7rem; }
.toolwhere .filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.toolwhere .filters button {
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem;
}
.toolwhere .filters button[aria-pressed="true"] { background: var(--pine-600); border-color: var(--pine-600); color: #fff; }
.toolwhere .section { padding: 2.2rem 0; }
.toolwhere .section--tight { padding: 1.2rem 0; }
.toolwhere .section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.toolwhere .section__head h2 { margin-top: 0; }
.toolwhere .panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.1rem, .7rem + 1.6vw, 1.9rem); box-shadow: var(--shadow-1);
}
.toolwhere .prose { max-width: 72ch; }
.toolwhere .prose h2 + p, .toolwhere .prose h3 + p { margin-top: 0; }
.toolwhere .notice {
  border-left: 3px solid var(--pine-600); background: var(--pine-100);
  padding: .85rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; color: var(--ink);
}
.toolwhere .notice p:last-child { margin-bottom: 0; }
.toolwhere .notice.is-answer { font-weight: 500; }
.toolwhere .field { margin-bottom: 1rem; }
.toolwhere .field > label, .toolwhere .field-label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink); }
.toolwhere .hint { font-size: .85rem; color: var(--ink-faint); margin: .3rem 0 0; }
.toolwhere input[type="text"], .toolwhere input[type="number"], .toolwhere input[type="date"], .toolwhere input[type="email"], .toolwhere input[type="url"], .toolwhere select, .toolwhere textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .7rem;
}
.toolwhere input:focus-visible, .toolwhere select:focus-visible, .toolwhere textarea:focus-visible { border-color: var(--pine-600); box-shadow: var(--focus); }
.toolwhere textarea { min-height: 110px; resize: vertical; }
.toolwhere input[type="range"] { width: 100%; accent-color: var(--pine-600); }
.toolwhere input[type="checkbox"], .toolwhere input[type="radio"] { accent-color: var(--pine-600); width: 18px; height: 18px; }
.toolwhere input[type="color"] {
  width: 100%; height: 42px; padding: 3px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.toolwhere .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.toolwhere .row--tight { gap: .75rem; }
.toolwhere .check-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.toolwhere .check-row label { margin: 0; font-weight: 400; }
.toolwhere .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
  background: var(--pine-600); color: #fff; border: 1px solid var(--pine-600);
  padding: .68rem 1.15rem; border-radius: var(--r-sm); transition: background .15s ease;
}
.toolwhere .btn:hover { background: var(--pine-700); border-color: var(--pine-700); color: #fff; }
.toolwhere .btn:disabled { opacity: .5; cursor: not-allowed; }
.toolwhere .btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.toolwhere .btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-faint); }
.toolwhere .btn--sm { padding: .45rem .8rem; font-size: .9rem; }
.toolwhere .btn--block { width: 100%; }
.toolwhere .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.toolwhere .dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 1.8rem 1.2rem; text-align: center; color: var(--ink-soft); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.toolwhere .dropzone:hover, .toolwhere .dropzone.is-drag { border-color: var(--pine-600); background: var(--pine-100); }
.toolwhere .dropzone strong { color: var(--ink); display: block; font-family: var(--display); }
.toolwhere .dropzone small { display: block; margin-top: .3rem; }
.toolwhere .result { margin-top: 1.3rem; }
.toolwhere .result[hidden] { display: none; }
.toolwhere .stat-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0 0 1rem; padding: 0; }
.toolwhere .stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: .7rem .85rem; }
.toolwhere .stat dt { font-size: .8rem; color: var(--ink-faint); margin: 0; }
.toolwhere .stat dd { margin: .15rem 0 0; font-family: var(--display); font-size: 1.28rem; font-weight: 600; }
.toolwhere .stat--good dd { color: var(--pine-600); }
.toolwhere .msg { padding: .7rem .9rem; border-radius: var(--r-sm); font-size: .93rem; margin: .9rem 0 0; }
.toolwhere .msg--error { background: var(--danger-bg); color: var(--danger); }
.toolwhere .msg--ok { background: var(--ok-bg); color: var(--ok); }
.toolwhere .msg[hidden] { display: none; }
.toolwhere .empty-state { text-align: center; color: var(--ink-faint); padding: 1.6rem 1rem; font-size: .95rem; }
.toolwhere .spinner {
  width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toolwhere .file-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.toolwhere .file-list li {
  display: flex; align-items: center; gap: .7rem; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: .55rem .7rem; margin: 0;
}
.toolwhere .file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.toolwhere .file-list .meta { font-size: .82rem; color: var(--ink-faint); flex: none; }
.toolwhere .icon-btn {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-soft); font: inherit; flex: none;
}
.toolwhere .icon-btn:hover:not(:disabled) { border-color: var(--pine-600); color: var(--pine-700); }
.toolwhere .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.toolwhere .password-out {
  font-family: var(--mono); font-size: 1.1rem; word-break: break-all; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; min-height: 3.4rem;
  display: flex; align-items: center;
}
.toolwhere .meter { height: 7px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin: .7rem 0 .35rem; }
.toolwhere .meter__bar { height: 100%; width: 0; background: var(--pine-600); transition: width .25s ease, background .25s ease; }
.toolwhere .qr-stage { display: grid; place-items: center; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); min-height: 240px; }
.toolwhere .qr-stage canvas, .toolwhere .qr-stage svg { image-rendering: pixelated; }
.toolwhere .faq { margin-top: 1rem; }
.toolwhere .faq details {
  border-bottom: 1px solid var(--line); padding: .3rem 0;
}
.toolwhere .faq summary {
  cursor: pointer; padding: .85rem 0; font-weight: 500; font-family: var(--display);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.toolwhere .faq summary::-webkit-details-marker { display: none; }
.toolwhere .faq summary::after { content: "+"; color: var(--pine-600); font-size: 1.3rem; line-height: 1; flex: none; }
.toolwhere .faq details[open] summary::after { content: "\2013"; }
.toolwhere .faq details > div { padding-bottom: .9rem; color: var(--ink-soft); max-width: 70ch; }
.toolwhere .faq details > div p:last-child { margin-bottom: 0; }
.toolwhere .table-scroll { overflow-x: auto; }
.toolwhere table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.toolwhere th, .toolwhere td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.toolwhere th { font-family: var(--display); font-weight: 600; font-size: .9rem; }
.toolwhere .post-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.toolwhere .post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem; margin: 0; position: relative; }
.toolwhere .post-card h3 { margin: .2rem 0 .4rem; font-size: 1.05rem; }
.toolwhere .post-card h3 a { color: var(--ink); text-decoration: none; }
.toolwhere .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.toolwhere .post-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.toolwhere .post-meta { font-size: .83rem; color: var(--ink-faint); }
.toolwhere .article-body { max-width: 70ch; }
.toolwhere .article-body h2 { margin-top: 1.9em; }
.toolwhere .ad-slot { display: block; margin: 1.6rem auto; text-align: center; }
.toolwhere .ad-slot:empty { display: none; }
.toolwhere .ad-slot:not(:empty) { min-height: 90px; }
.toolwhere .related { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.toolwhere .related a {
  display: inline-block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; text-decoration: none; color: var(--ink-soft);
}
.toolwhere .related a:hover { border-color: var(--pine-600); color: var(--pine-700); }
.toolwhere .share-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--ink-faint); }
.toolwhere .error-page { text-align: center; padding: 4rem 0 3rem; }
.toolwhere .error-page .code { font-family: var(--display); font-size: clamp(3.5rem, 2rem + 8vw, 6rem); color: var(--pine-600); line-height: 1; margin: 0; }

/* Sit inside whatever background the theme already uses. */
.toolwhere { background: transparent; }

/* Optional dark palette. It is opt-in rather than automatic so the tools
   never go dark inside a light theme. Add the body class with:
   add_filter( 'body_class', fn( $c ) => array_merge( $c, [ 'toolwhere-dark' ] ) ); */
body.toolwhere-dark .toolwhere {
--pine-100: #143a34;
    --amber-100: #3a2c11;
    --ink: #e8eef2;
    --ink-soft: #b3c2cd;
    --ink-faint: #8b9dab;
    --line: #2b3a46;
    --line-soft: #223039;
    --surface: #121c23;
    --paper: #18242c;
    --pine-600: #4cbfa5;
    --pine-700: #64cfb6;
    --pine-900: #b9e7dc;
    --danger: #ff9d94;
    --danger-bg: #3a1f1d;
    --ok: #7fd8a5;
    --ok-bg: #16352a;
    --focus: 0 0 0 3px rgba(76, 191, 165, .35);
}
