/* The free tools at /tools (pages built by tools/build.mjs). Loaded after site.css. */
.t-hero { background: var(--obsidian); color: #E7EAF0; padding: 44px 0 96px; }
.t-hero .crumbs { margin: 0 0 14px; font-size: 13.5px; color: #8A92A3; }
.t-hero .crumbs a { color: inherit; }
.t-hero h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; max-width: 760px; }
.t-hero p.lede { margin: 0; font-size: 18px; color: #A9B1BF; max-width: 640px; }
.t-hero .t-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #8A92A3; }
.t-hero .t-trust li { display: flex; align-items: center; gap: 6px; }
.t-hero .t-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* The tool itself: a card that sits over the edge of the dark band. */
.t-card { position: relative; margin: -64px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -28px rgba(11, 16, 23, 0.35), 0 2px 6px rgba(11, 16, 23, 0.04); padding: 28px; }
.t-form { display: flex; gap: 10px; }
.t-input, .t-area, .t-select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #C9D0D8; border-radius: 10px; padding: 13px 14px; }
.t-input.big { font-size: 18px; padding: 15px 16px; }
.t-area { font: 13.5px/1.55 "IBM Plex Mono", ui-monospace, monospace; min-height: 180px; resize: vertical; }
.t-input:focus, .t-area:focus, .t-select:focus { outline: 2px solid var(--teal-deep); outline-offset: 1px; border-color: transparent; }
.t-input::placeholder, .t-area::placeholder { color: #9AA3AF; }
.t-btn { flex: none; font: inherit; font-size: 16px; font-weight: 600; color: #06231E; background: var(--teal); border: 0; border-radius: 10px; padding: 0 22px; min-height: 50px; cursor: pointer; white-space: nowrap; }
.t-btn:hover { background: #2BE3CA; }
.t-btn:disabled { opacity: 0.6; cursor: default; }
.t-btn.ghost { background: #fff; color: var(--ink); border: 1px solid #C9D0D8; font-weight: 500; min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.t-btn.ghost:hover { background: var(--steel); }
.t-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.t-chip { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--steel); border: 1px solid transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.t-chip:hover { border-color: #C9D0D8; }
.t-label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
.t-label:first-child { margin-top: 0; }
.t-label small { font-weight: 400; color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.t-hint { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.t-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #9B1C1C; font-size: 14.5px; }

/* Choices: chips that toggle, and option cards. */
.t-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.t-checks label { position: relative; cursor: pointer; }
.t-checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.t-checks span { display: block; font-size: 14px; border: 1px solid #C9D0D8; border-radius: 999px; padding: 6px 13px; background: #fff; }
.t-checks input:checked + span { background: var(--teal-soft); border-color: var(--teal-deep); color: var(--teal-deeper); font-weight: 600; }
.t-checks input:focus-visible + span { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.t-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.t-options label { position: relative; display: block; border: 1px solid #C9D0D8; border-radius: 12px; padding: 12px 14px 12px 40px; cursor: pointer; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.t-options input { position: absolute; left: 14px; top: 15px; accent-color: var(--teal-deep); }
.t-options b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.t-options label:has(input:checked) { border-color: var(--teal-deep); background: #F2FCFA; }
.t-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Results. */
.t-results { margin-top: 22px; }
.t-results:empty { display: none; }
.t-summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--steel); margin-bottom: 14px; }
.t-summary .score { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--teal-deep); }
.t-summary.warn .score { background: #C27803; } .t-summary.fail .score { background: #C0392B; }
.t-summary b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.t-summary span { color: var(--muted); font-size: 14.5px; }
.t-summary .t-copy { margin-left: auto; }
.t-check { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.t-check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-check-head h3 { margin: 0; font-size: 16.5px; font-weight: 600; }
.t-check-head .what { color: var(--muted); font-size: 13.5px; }
.t-check-head .t-badge { margin-left: auto; }
.t-check .verdict { margin: 10px 0 2px; font-weight: 600; font-size: 15.5px; }
.t-check p { margin: 4px 0 0; color: #2E3A48; font-size: 14.5px; }
.t-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px 3px 8px; background: var(--steel); color: var(--muted); white-space: nowrap; }
.t-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.t-badge.pass { background: #DDF7EE; color: #0B7A5C; } .t-badge.warn { background: #FDF1D7; color: #8A5800; } .t-badge.fail { background: #FDE4E1; color: #A32618; }
.t-badge.wait svg { animation: t-spin 1s linear infinite; }
@keyframes t-spin { to { transform: rotate(360deg); } }
.t-record { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.t-record-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 12px; background: var(--steel); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.t-record pre { margin: 0; padding: 12px; color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; background: #fff; }
.t-copy { font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid #C9D0D8; border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.t-copy:hover { background: var(--steel); } .t-copy.done { color: #0B7A5C; border-color: #0B7A5C; }
.t-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.t-list li { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.t-list li:first-child { border-top: 0; }
.t-list code { flex: none; max-width: 55%; overflow-wrap: anywhere; }
.t-list span { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.t-stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.t-stat b { display: block; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.t-stat span { color: var(--muted); font-size: 13.5px; }
.t-stat.bad b { color: #A32618; } .t-stat.good b { color: #0B7A5C; }
.t-note { display: flex; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--steel); font-size: 14.5px; margin-top: 8px; }
.t-note.warn { background: #FDF1D7; color: #6B4500; }
.t-note svg { flex: none; width: 17px; height: 17px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14.5px; }
.t-kv dt { color: var(--muted); } .t-kv dd { margin: 0; overflow-wrap: anywhere; }
/* The route a message took. */
.t-route { list-style: none; margin: 14px 0 0; padding: 0; }
.t-route li { position: relative; padding: 0 0 18px 30px; }
.t-route li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-deep); }
.t-route li::after { content: ""; position: absolute; left: 11px; top: 21px; bottom: 0; width: 2px; background: var(--line); }
.t-route li:last-child { padding-bottom: 0; } .t-route li:last-child::after { display: none; }
.t-route li.slow::before { border-color: #C27803; background: #FDF1D7; }
.t-route .host { font-weight: 600; overflow-wrap: anywhere; }
.t-route .meta { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.t-route .wait { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--steel); color: var(--muted); }
.t-route li.slow .wait { background: #FDF1D7; color: #8A5800; }

/* Under the tool: what it means, questions, more tools. */
.t-body { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 56px; padding: 44px 0 24px; }
.t-body .prose { padding: 0; }
.t-side { align-self: start; position: sticky; top: 24px; }
.t-cta { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, #F2FCFA, #fff); }
.t-cta b { display: block; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.t-cta p { margin: 0 0 14px; color: #2E3A48; font-size: 14.5px; }
.t-cta a.btn { display: inline-block; }
.t-cta a.more { display: block; margin-top: 12px; font-size: 14.5px; }
.t-more { padding: 8px 0 64px; }
.t-more h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.t-tile { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.t-tile:hover { border-color: var(--teal-deep); transform: translateY(-1px); }
.t-tile .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deeper); }
.t-tile .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-tile b { display: block; font-weight: 600; margin-bottom: 2px; color: var(--ink); }
.t-tile span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.t-index { padding: 0 0 72px; }
.t-index .t-grid { margin: -40px 0 0; position: relative; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.t-index .t-tile { padding: 22px; box-shadow: 0 16px 40px -28px rgba(11, 16, 23, 0.35); }
.t-index h2 { font-size: 20px; margin: 40px 0 6px; font-weight: 600; letter-spacing: -0.02em; }
.t-index p.why { color: var(--muted); max-width: 640px; margin: 0; }

@media (max-width: 900px) {
  .t-hero { padding: 30px 0 84px; } .t-hero h1 { font-size: 30px; } .t-hero p.lede { font-size: 16.5px; }
  .t-card { padding: 18px; border-radius: 14px; }
  .t-form { flex-direction: column; } .t-btn { width: 100%; }
  .t-two { grid-template-columns: 1fr; }
  .t-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; } .t-side { position: static; }
  .t-summary { flex-wrap: wrap; } .t-summary .t-copy { margin-left: 0; }
  .t-kv { grid-template-columns: 1fr; gap: 0; } .t-kv dd { margin-bottom: 8px; }
  .t-list li { flex-direction: column; gap: 2px; } .t-list code { max-width: 100%; }
}
