/* ==========================================================================
   YourTechTool — shared tool-page styles (every tool page; loaded after site.css, before the tool's own CSS).
   Rules the three migrated tools had in common. Site chrome (header, footer, search, theme tokens)
   now comes from site.css only; the duplicated chrome blocks and the ad-slot rules are gone.
   Tool pages are dark-only (as in the original), so there is no light-theme block.
   Marked "changed" where contrast or markup needed a fix.
   ========================================================================== */
.grad {
  background: linear-gradient(90deg, #fff 20%, #8eead5 50%, #55bfff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat {
  background: rgba(13, 18, 26, 0.9);
  border: 1px solid #202b38;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.stat small {
  display: block;
  color: #748093;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.monitor b {
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  main .container {
    width: min(100% - 20px, 1240px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .subtitle {
    font-size: 14px;
  }
}
.badges {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  border: 1px solid #202b38;
  background: rgba(13, 18, 26, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #a7b2c1;
  font-weight: 650;
}
.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 40px;
}
.info-section h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.info-section .card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
table.uses {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.uses th,
table.uses td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #1b2530;
}
table.uses th {
  color: #7f8b9b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
table.uses td {
  color: #c6ceda;
}
table.uses tr:last-child td {
  border-bottom: none;
}
.faq details {
  border-bottom: 1px solid #1b2530;
  padding: 12px 0;
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: #8a97a8;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

/* ---------- Added for the shared layout ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript-note {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid #6b4e12;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
  color: #f1d9a6;
  font-size: 13.5px;
}

/* longer explanatory cards (steps, troubleshooting, method, sources) */
.info-section ol,
.info-section ul {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 14px;
  padding-left: 20px;
}
.info-section li {
  margin-bottom: 4px;
}
.info-section h3 {
  font-size: 14px;
  letter-spacing: -0.005em;
  margin: 18px 0 6px;
}
.info-section .card p {
  color: #818d9d;
}
.info-section code {
  background: #141c26;
  border: 1px solid #26313e;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  color: #c6ceda;
}
.info-section a {
  color: var(--link);
  text-underline-offset: 2px;
}
.info-section a:hover {
  color: var(--text);
}
.sources {
  font-size: 12.5px;
}

/* ---------- Related tools (server-rendered links to other tools) ---------- */
.related-tools {
  margin: 8px 0 36px;
}
.related-tools-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.related-tools-head h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.related-tools-head a {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--link);
  text-decoration: none;
}
.related-tools-head a:hover {
  color: var(--text);
}
.related-tools .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.related-tools .tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 22px var(--shadow);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.related-tools .tool-card:hover,
.related-tools .tool-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-tools .tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.related-tools .tool-icon svg {
  width: 17px;
  height: 17px;
}
.related-tools .tool-card h3 {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.related-tools .tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.related-tools .tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.related-tools .tool-cat {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted2);
}
.related-tools .tool-open {
  font-size: 11px;
  font-weight: 800;
  color: var(--link);
}
