/* Free tools: /tools/ and /tools/<slug>/ (scripts/render-tools-pages.mjs, site/tools/*). Dark public theme. */
.tool-main { padding-top: 28px; padding-bottom: 72px; }
/* styles.css turns every nav into the phone menu panel; the breadcrumb stays inline. */
.tool-breadcrumb { position: static; z-index: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; color: #85858d; font-size: 13px; font-weight: 400; }
.tool-breadcrumb a { color: #a9a8a2; }
.tool-breadcrumb a:hover { color: var(--ink); }
.tool-hero { max-width: 780px; margin-top: 36px; }
.tool-eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tool-hero h1 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.tool-hero > p:not(.tool-eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.tool-main code { padding: 1px 5px; border-radius: 5px; background: #1f1f22; color: #d6d5cf; font-family: var(--mono); font-size: .88em; }

.tool-panel { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #151517; }
.tool-label { display: block; margin: 0; color: #a9a8a2; font-size: 13px; font-weight: 500; }
.tool-hint { margin: 10px 0 0; color: #85858d; font-size: 13px; line-height: 1.5; }
.tool-url-row { display: flex; gap: 10px; margin-top: 8px; }
.tool-url-row input, .tool-name input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #3a3a40; border-radius: 10px; background: #0f0f10; color: var(--ink); font: inherit; font-size: 16px; }
.tool-url-row input:focus, .tool-name input:focus, .tool-panel textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: #ececf0; color: #19191d !important; font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s; }
.tool-button:hover { background: #fff; }
.tool-button:disabled { opacity: .6; cursor: progress; }
.tool-link { display: inline-flex; gap: 6px; color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; }
.tool-chip { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid #3a3a40; border-radius: 999px; background: transparent; color: #d6d5cf; font: inherit; font-size: 13px; cursor: pointer; }
.tool-chip:hover { border-color: #5c5c64; color: #fff; }
.tool-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.tool-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-field-head, .tool-output-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tool-panel textarea { display: block; width: 100%; min-height: 240px; margin-top: 10px; padding: 14px; border: 1px solid #3a3a40; border-radius: 10px; background: #0f0f10; color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.55; resize: vertical; }
.tool-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; padding: 0; border: 0; color: #d6d5cf; font-size: 14px; }
.tool-options legend { float: left; margin-right: 4px; color: #85858d; font-size: 13px; }
.tool-options label, .tool-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.tool-options input, .tool-check input { accent-color: var(--accent); }
.tool-options-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 14px; color: #d6d5cf; font-size: 14px; }
.tool-name { display: inline-flex; align-items: center; gap: 10px; }
.tool-name span { color: #85858d; font-size: 13px; }
.tool-name input { width: 180px; min-height: 38px; font-family: var(--mono); font-size: 14px; }
.tool-status:empty { display: none; }
.tool-status { margin-top: 16px; color: #d6d5cf; font-size: 14px; }
.tool-status.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border: 2px solid #5c5c64; border-top-color: var(--accent); border-radius: 50%; vertical-align: -1px; animation: tool-spin .8s linear infinite; }
.tool-status.is-error { color: #f2a7a0; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-status.is-busy::before { animation: none; } }

.tool-output { margin-top: 22px; padding-top: 20px; border-top: 1px solid #2a2a2f; }
.tool-output-summary { margin: 0; color: #a9a8a2; font-size: 14px; }
.tool-output-head + .tool-output-summary { margin-top: 12px; }
.tool-table-wrap { max-height: 460px; margin-top: 14px; overflow: auto; border: 1px solid #2a2a2f; border-radius: 10px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-table th, .tool-table td { max-width: 320px; padding: 8px 12px; border-bottom: 1px solid #242428; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.tool-table th { position: sticky; top: 0; background: #1b1b1e; color: #d6d5cf; font-family: var(--mono); font-weight: 500; }
.tool-table td { color: #b9b8b2; }
.tool-code { max-height: 560px; margin: 14px 0 0; padding: 16px; overflow: auto; border: 1px solid #2a2a2f; border-radius: 10px; background: #0f0f10; color: #d6d5cf; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.tool-main .tool-code code { padding: 0; background: none; font-size: inherit; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #2a2a2f; border-radius: 10px; }
.tool-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #a9a8a2; font: inherit; font-size: 13px; cursor: pointer; }
.tool-tabs button[aria-selected="true"] { background: #2a2a2f; color: #fff; }
.tool-tabs button:hover { color: #fff; }

/* Website data checker report */
.site-report { margin-top: 24px; padding-top: 22px; border-top: 1px solid #2a2a2f; }
.site-report-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.site-report-head h2 { margin: 6px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.site-report-head h2:focus { outline: none; }
.site-report-url { margin: 6px 0 0; color: #85858d; font-size: 13px; overflow-wrap: anywhere; }
.site-report a:not(.tool-button) { color: #d6d5cf; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-findings { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.site-finding { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: #1b1b1e; color: #d6d5cf; font-size: 14.5px; line-height: 1.5; }
.site-finding-mark { flex: 0 0 52px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-finding-good .site-finding-mark { color: #9fd8a8; }
.site-finding-info .site-finding-mark { color: #85858d; }
.site-finding-warn .site-finding-mark { color: #f0c27a; }
.site-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.site-card { padding: 18px; border: 1px solid #2a2a2f; border-radius: 12px; }
.site-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; }
.site-badge { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.site-badge-good { background: #1f3326; color: #9fd8a8; }
.site-badge-warn { background: #3a2d17; color: #f0c27a; }
.site-badge-none { background: #242428; color: #a9a8a2; }
.site-card dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 14px; margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; }
.site-card dt { color: #85858d; }
.site-card dd { margin: 0; color: #d6d5cf; overflow-wrap: anywhere; }

/* Explainers, FAQ, related tools and the closing call to action */
.tool-explainer, .tool-faq, .tool-more { margin-top: 64px; }
.tool-explainer h2, .tool-faq h2, .tool-more h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.tool-explainer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 22px; }
.tool-explainer h3 { margin: 0; font-size: 16px; font-weight: 500; }
.tool-explainer p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tool-faq { max-width: 820px; }
.tool-faq details { border-bottom: 1px solid var(--line); }
.tool-faq details:first-of-type { margin-top: 14px; border-top: 1px solid var(--line); }
.tool-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: "+"; color: #85858d; font-size: 20px; }
.tool-faq details[open] summary::after { content: "−"; }
.tool-faq summary h3 { margin: 0; font-size: 16px; font-weight: 500; }
.tool-faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.tool-more .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-more > .tool-link { margin-top: 18px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #151517; color: var(--ink); transition: border-color .15s, background .15s; }
.tool-card:hover, .tool-card:focus-within { border-color: #5c5c64; background: #18181b; }
.tool-card a { color: inherit; }
.tool-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tool-card a:focus-visible { outline: none; }
.tool-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card h2, .tool-card h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.tool-card p { flex: 1; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tool-card-open { color: #d6d5cf; font-size: 13.5px; }
.tools-hub .tool-grid-hub { margin-top: 36px; }
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #17201b, #151517 60%); }
.tool-cta h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.tool-cta p { max-width: 600px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tool-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-cards, .tool-explainer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tool-grid, .tool-more .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-panel { padding: 16px; }
  .tool-url-row { flex-direction: column; }
  .tool-hero > p:not(.tool-eyebrow) { font-size: 16px; }
  .site-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .site-card dd { margin-bottom: 8px; }
  .site-finding { flex-direction: column; gap: 2px; }
  .site-finding-mark { flex: none; }
  .tool-cta { padding: 20px; }
}

/* Second set of tools: robots.txt tester, sitemap checker, llms.txt generator, Shopify to CSV */
.tool-io-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.tool-text-input { display: block; width: 100%; min-height: 42px; margin-top: 8px; padding: 0 12px; border: 1px solid #3a3a40; border-radius: 10px; background: #0f0f10; color: var(--ink); font-family: var(--mono); font-size: 14px; }
.tool-text-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tool-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-chip-row .tool-chip { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.tool-label-gap { margin-top: 18px; }
.tool-panel textarea.tool-textarea-short { min-height: 132px; }
.tool-panel textarea.tool-textarea-tall { min-height: 380px; }
.tool-table-wrap-text td, .tool-table-wrap-text th { white-space: normal; overflow-wrap: anywhere; }
.tool-table .site-badge { display: inline-block; }
.tool-notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #2b2416; color: #f0d8a8; font-size: 14px; }
.tool-notice a { color: inherit; text-decoration: underline; }
.site-subhead { margin: 26px 0 0; font-size: 16px; font-weight: 500; }
.site-card h3 a { min-width: 0; overflow-wrap: anywhere; }
.site-card .site-findings { margin-top: 12px; }
.site-card .site-finding { font-size: 13.5px; }
.site-sample { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.tool-panel .tool-options-row .tool-options { margin: 0; }
@media (max-width: 900px) {
  .tool-io-split { grid-template-columns: minmax(0, 1fr); }
}
