/* WindSpeedSEO free tools — interface styles. Built only from the site's design tokens
   (--ws-*) so the tools match the cards, inputs and buttons on every other page. */

.wst-root { font-family: var(--ws-font-sans, Inter), system-ui, sans-serif; color: var(--ws-text-primary, #263447); font-size: var(--ws-type-body-size, 16px); line-height: var(--ws-type-body-lh, 24px); text-align: left; }
.wst-root *, .wst-root *::before, .wst-root *::after { box-sizing: border-box; }
.wst-root code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--ws-surface-secondary, #F1F4F6); border-radius: var(--ws-radius-xs, 2px); padding: 1px 5px; }
.wst-root a { color: var(--ws-text-link, #286788); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.wst-root a:hover { color: var(--ws-color-brand-slate-900, #202A38); }

/* form card */
.wst-form { background: var(--ws-surface-primary, #fff); border: 1px solid var(--ws-border-default, #D9DFE5); border-radius: var(--ws-radius-xl, 16px); box-shadow: var(--ws-shadow-md); padding: 28px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.wst-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #4C9CC8, #83B422); }
.wst-label { display: block; font-size: var(--ws-type-body-small-size, 14px); font-weight: 600; color: var(--ws-text-primary); margin: 0 0 6px; padding: 0; }
.wst-hint { margin: 0; font-size: var(--ws-type-body-small-size, 14px); line-height: var(--ws-type-body-small-lh, 20px); color: var(--ws-text-muted, #626D7A); }
.wst-muted { color: var(--ws-text-muted, #626D7A); font-size: var(--ws-type-body-small-size, 14px); }
.wst-row { display: flex; gap: 10px; align-items: stretch; }
.wst-row--end { justify-content: flex-end; }
.wst-row--wrap { flex-wrap: wrap; }
.wst-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wst-input { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ws-text-primary); background: var(--ws-surface-primary, #fff); border: 1px solid var(--ws-border-strong, #BCC5CF); border-radius: var(--ws-radius-md, 8px); transition: border-color .15s, box-shadow .15s; }
.wst-input::placeholder { color: var(--ws-text-disabled, #98A3AF); }
.wst-input:focus { outline: none; border-color: var(--ws-border-focus, #4C9CC8); box-shadow: 0 0 0 3px rgba(76,156,200,.22); }
.wst-row .wst-input { flex: 1 1 auto; min-width: 0; }
.wst-textarea { min-height: 180px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 20px; }
.wst-textarea--sm { min-height: 76px; }
.wst-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #626D7A 50%), linear-gradient(135deg, #626D7A 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

/* buttons (mirror .ws-btn) */
.wst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--ws-radius-md, 8px); border: 1px solid transparent; font: inherit; font-size: var(--ws-type-button-size, 14px); font-weight: 600; line-height: 20px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s; }
.wst-btn:focus-visible { outline: 2px solid var(--ws-border-focus, #4C9CC8); outline-offset: 2px; }
.wst-btn--accent { background: var(--ws-action-accent-bg, #83B422); color: var(--ws-action-accent-text, #141B26) !important; }
.wst-btn--accent:hover { background: var(--ws-action-accent-hover, #A1CB45); }
.wst-btn--secondary { background: var(--ws-action-secondary-bg, #fff); color: var(--ws-action-secondary-text, #364357) !important; border-color: var(--ws-action-secondary-border, #BCC5CF); }
.wst-btn--secondary:hover { background: var(--ws-action-secondary-hover, #F1F4F6); }
.wst-btn:disabled { opacity: .6; cursor: progress; }
.wst-is-busy .wst-btn--accent::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wst-spin .8s linear infinite; }
@keyframes wst-spin { to { transform: rotate(360deg); } }

/* tabs */
.wst-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--ws-surface-secondary, #F1F4F6); border-radius: var(--ws-radius-pill, 9999px); justify-self: start; }
.wst-tab { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ws-text-secondary, #4C5663); padding: 8px 16px; border-radius: var(--ws-radius-pill, 9999px); cursor: pointer; }
.wst-tab[aria-selected="true"] { background: var(--ws-color-brand-slate-950, #141B26); color: #fff; }
.wst-tab:focus-visible { outline: 2px solid var(--ws-border-focus); outline-offset: 2px; }
.wst-tabpanel { display: grid; gap: 8px; }
.wst-tabpanel[hidden] { display: none; }

/* expanders */
.wst-more { border-top: 1px solid var(--ws-border-default, #D9DFE5); padding-top: 12px; }
.wst-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ws-text-link, #286788); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.wst-more > summary::-webkit-details-marker { display: none; }
.wst-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 13px; line-height: 1; }
.wst-more[open] > summary::before { content: "−"; }
.wst-more[open] > summary { margin-bottom: 12px; }
.wst-status { margin: 0; min-height: 0; font-size: 14px; color: var(--ws-text-secondary, #4C5663); }
.wst-status:empty { display: none; }

/* results */
.wst-results { display: grid; gap: 16px; margin-top: 24px; }
.wst-results[hidden] { display: none; }
.wst-panel { background: var(--ws-surface-primary, #fff); border: 1px solid var(--ws-border-default, #D9DFE5); border-radius: var(--ws-radius-lg, 12px); padding: 22px 24px; box-shadow: var(--ws-shadow-xs); animation: wst-in .35s ease both; }
.wst-panel--ok { border-left: 4px solid var(--ws-success-icon, #537418); }
.wst-panel--bad { border-left: 4px solid var(--ws-error-icon, #BE4943); }
.wst-panel p { margin: 8px 0 0; }
.wst-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.wst-h { margin: 0; font-size: var(--ws-type-h5-size, 18px); line-height: var(--ws-type-h5-lh, 26px); font-weight: 700; color: var(--ws-text-primary); letter-spacing: 0; }
.wst-h:focus { outline: none; }
.wst-src { margin-top: 4px !important; }
@keyframes wst-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wst-panel, .wst-tile { animation: none; } .wst-is-busy .wst-btn--accent::after { animation: none; } }

.wst-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 16px 0 0; }
.wst-facts > div { background: var(--ws-surface-page, #F7F9FA); border: 1px solid var(--ws-border-default); border-radius: var(--ws-radius-md, 8px); padding: 10px 12px; }
.wst-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-muted); }
.wst-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.wst-callout { margin: 16px 0 0 !important; padding: 12px 14px; border-radius: var(--ws-radius-md, 8px); font-size: 15px; border: 1px solid; }
.wst-callout--ok { background: var(--ws-success-bg); border-color: var(--ws-success-border); color: var(--ws-success-fg); }
.wst-callout--info { background: var(--ws-info-bg); border-color: var(--ws-info-border); color: var(--ws-info-fg); }
.wst-callout--bad { background: var(--ws-error-bg); border-color: var(--ws-error-border); color: var(--ws-error-fg); }

.wst-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wst-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--ws-radius-pill, 9999px); font-size: 12px; font-weight: 700; line-height: 20px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.wst-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wst-badge--ok { background: var(--ws-success-bg, #F3F8E8); border-color: var(--ws-success-border, #BDD68C); color: var(--ws-success-fg, #456512); }
.wst-badge--warn { background: #FFF7E6; border-color: #EBC57A; color: var(--ws-chart-semantic-warning, #8E6214); }
.wst-badge--bad { background: var(--ws-error-bg, #FFF0EF); border-color: var(--ws-error-border, #E7A6A2); color: var(--ws-error-fg, #973A34); }
.wst-badge--info { background: var(--ws-info-bg, #EEF7FB); border-color: var(--ws-info-border, #A9D3E8); color: var(--ws-info-fg, #255F7E); }

.wst-issues { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.wst-issue { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--ws-radius-md); background: var(--ws-surface-page, #F7F9FA); font-size: 15px; }
.wst-issue-line { font-size: 13px; font-weight: 600; color: var(--ws-text-muted); white-space: nowrap; }

.wst-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wst-tile { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--ws-radius-lg); border: 1px solid var(--ws-border-default); background: var(--ws-surface-primary); border-top: 3px solid var(--ws-border-strong); animation: wst-in .35s ease both; }
.wst-tile--ok { border-top-color: #83B422; } .wst-tile--warn { border-top-color: #D9A441; } .wst-tile--bad { border-top-color: #BE4943; } .wst-tile--info { border-top-color: #4C9CC8; }
.wst-tile-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-muted); }
.wst-tile-value { font-size: 20px; font-weight: 700; line-height: 26px; }
.wst-tile-note { font-size: 13px; line-height: 18px; color: var(--ws-text-muted); }

.wst-table-wrap { margin-top: 12px; overflow-x: auto; }
.wst-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.wst-table th, .wst-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--ws-border-default); }
.wst-table thead th { border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-muted); background: var(--ws-surface-page); }
.wst-table tbody th { font-weight: 400; min-width: 150px; }
.wst-bot { display: block; font-weight: 700; color: var(--ws-text-primary); }
.wst-note { color: var(--ws-text-secondary, #4C5663); min-width: 220px; }

.wst-list { margin: 10px 0 0; padding-left: 20px; }
.wst-file > summary { cursor: pointer; }
.wst-code { margin: 12px 0 0; padding: 12px 0; max-height: 460px; overflow: auto; background: var(--ws-color-brand-slate-950, #141B26); color: #E4EAF1; border-radius: var(--ws-radius-md); font: 13px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; display: block; width: 100%; }
.wst-code:focus-visible { outline: 2px solid var(--ws-border-focus); outline-offset: 2px; }
.wst-code-line { display: flex; padding: 0 14px 0 0; }
.wst-code-n { flex: 0 0 48px; text-align: right; padding-right: 14px; color: #6F7E92; user-select: none; }
.wst-code-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.wst-code-line--match { background: rgba(131,180,34,.22); }
.wst-code-line--bad { background: rgba(190,73,67,.25); }
.wst-code-line--warn { background: rgba(217,164,65,.20); }
.wst-code--edit { padding: 14px 16px; min-height: 260px; border: 0; resize: vertical; white-space: pre; }

.wst-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 24px; border-radius: var(--ws-radius-lg); color: #fff; background: radial-gradient(circle at 12% 10%, rgba(76,156,200,.26), transparent 42%), radial-gradient(circle at 92% 92%, rgba(131,180,34,.20), transparent 45%), #141B26; animation: wst-in .35s ease both; }
.wst-cta p { margin: 0; flex: 1 1 360px; color: #E4EAF1; }

/* generator */
.wst-presets { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.wst-presets > legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; }
.wst-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ws-border-default); border-radius: var(--ws-radius-md); cursor: pointer; background: var(--ws-surface-primary); transition: border-color .15s, background-color .15s; }
.wst-choice:hover { border-color: var(--ws-border-strong); }
.wst-choice:has(input:checked) { border-color: #83B422; background: var(--ws-color-brand-green-50, #F7FBEF); box-shadow: inset 0 0 0 1px #83B422; }
.wst-choice input { margin-top: 4px; accent-color: #537418; }
.wst-choice-body { display: grid; gap: 2px; }
.wst-choice-title { font-weight: 700; font-size: 15px; }
.wst-choice-note { font-size: 13px; line-height: 18px; color: var(--ws-text-muted); }
.wst-botsets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.wst-botset { margin: 0; padding: 10px 12px; border: 1px solid var(--ws-border-default); border-radius: var(--ws-radius-md); }
.wst-botset legend { padding: 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-muted); }
.wst-check { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; cursor: pointer; }
.wst-check input { accent-color: #537418; }
.wst-output { display: grid; gap: 12px; margin-top: 16px; }

@media (max-width: 767px) {
  .wst-form { padding: 20px 16px; }
  .wst-row { flex-direction: column; }
  .wst-row--end { align-items: stretch; }
  .wst-btn { width: 100%; }
  .wst-grid2 { grid-template-columns: 1fr; }
  .wst-tiles { grid-template-columns: 1fr 1fr; }
  .wst-tabs { justify-self: stretch; }
  .wst-tab { flex: 1 1 0; padding: 8px 10px; }
  .wst-panel { padding: 18px 16px; }
  .wst-issue { grid-template-columns: auto 1fr; }
  .wst-issue-msg { grid-column: 1 / -1; }
  .wst-table thead { display: none; }
  .wst-table, .wst-table tbody, .wst-table tr, .wst-table th, .wst-table td { display: block; width: 100%; }
  .wst-table tr { padding: 10px 0; border-top: 1px solid var(--ws-border-default); }
  .wst-table th, .wst-table td { border: 0; padding: 3px 0; min-width: 0; }
  .wst-cta .wst-btn { width: auto; }
}

/* ---- meta tag checker: one row per check ---- */
.wst-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.wst-check-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--ws-radius-md, 8px); background: var(--ws-surface-page, #F7F9FA); }
.wst-check-row .wst-badge { justify-content: center; margin-top: 1px; }
.wst-check-label { font-weight: 600; font-size: 15px; }
.wst-check-value { font-size: 14px; color: var(--ws-text-secondary, #4C5663); overflow-wrap: anywhere; margin-top: 2px; }
.wst-check-msg { font-size: 14px; line-height: 20px; color: var(--ws-text-muted, #626D7A); margin-top: 4px; }
.wst-outline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.wst-outline li { display: flex; gap: 10px; align-items: baseline; }
.wst-outline-h2 { padding-left: 18px; }
.wst-outline-h3 { padding-left: 36px; color: var(--ws-text-secondary, #4C5663); }
.wst-outline-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--ws-text-muted, #626D7A); min-width: 22px; }

/* ---- SERP snippet preview: an approximation of a Google result ---- */
.wst-serp-stage { margin-top: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--ws-border-default, #D9DFE5); border-radius: var(--ws-radius-md, 8px); overflow: hidden; }
.wst-serp { font-family: Arial, Helvetica, sans-serif; color: #4d5156; max-width: 600px; }
.wst-serp--mobile { max-width: 360px; margin: 0 auto; }
.wst-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wst-serp-fav { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; border: 1px solid #DADCE0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #5f6368; }
.wst-serp-who { display: grid; min-width: 0; }
.wst-serp-name { font-size: 14px; line-height: 20px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wst-serp-url { font-size: 12px; line-height: 18px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wst-serp-title { font-size: 20px; line-height: 26px; color: #1a0dab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.wst-serp-desc { font-size: 14px; line-height: 22px; color: #4d5156; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.wst-serp-desc b { color: #202124; }
.wst-serp--mobile .wst-serp-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 18px; line-height: 24px; }
.wst-serp--mobile .wst-serp-desc { -webkit-line-clamp: 3; }
.wst-tabs--sm .wst-tab { padding: 6px 14px; font-size: 13px; }
.wst-serp-form .wst-textarea { font-family: inherit; font-size: 16px; line-height: 24px; }
.wst-serp-form > .wst-label { margin-bottom: -8px; }
.wst-count { font-weight: 400; color: var(--ws-text-muted, #626D7A); }
.wst-meter { margin: -6px 0 2px; display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ws-text-muted, #626D7A); }
.wst-meter-bar { display: block; height: 6px; border-radius: 9999px; background: var(--ws-surface-secondary, #F1F4F6); overflow: hidden; }
.wst-meter-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ws-border-strong, #BCC5CF); transition: width .15s; }
.wst-meter--ok .wst-meter-bar > span { background: var(--ws-success-icon, #537418); }
.wst-meter--info .wst-meter-bar > span { background: var(--ws-info-border, #A9D3E8); }
.wst-meter--warn .wst-meter-bar > span { background: #D9A13B; }
.wst-meter--warn .wst-meter-text { color: var(--ws-chart-semantic-warning, #8E6214); }
.wst-meter--bad .wst-meter-bar > span { background: var(--ws-error-icon, #BE4943); }
@media (max-width: 767px) {
  .wst-check-row { grid-template-columns: 1fr; gap: 6px; }
  .wst-check-row .wst-badge { justify-self: start; }
  .wst-serp-stage { padding: 16px; }
  .wst-serp--desktop .wst-serp-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* ---- redirect checker: a chain of hops ---- */
.wst-hops { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: hop; }
.wst-hop { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: var(--ws-radius-md, 8px); background: var(--ws-surface-page, #F7F9FA); font-size: 14px; }
.wst-hop-url { overflow-wrap: anywhere; color: var(--ws-text-secondary, #4C5663); }
.wst-chain { margin-top: 14px; }
.wst-chain + .wst-chain { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ws-border-default, #D9DFE5); }
.wst-chain-start { margin: 0 !important; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.wst-break { overflow-wrap: anywhere; word-break: break-word; }

/* ---- schema generator ---- */
.wst-tabs--wrap { flex-wrap: wrap; border-radius: var(--ws-radius-lg, 12px); }
.wst-field--wide { grid-column: 1 / -1; }
.wst-plain { font-family: inherit; font-size: 16px; line-height: 24px; }
.wst-reps { display: grid; gap: 12px; }
.wst-rep-row { padding: 14px; border: 1px solid var(--ws-border-default, #D9DFE5); border-radius: var(--ws-radius-md, 8px); background: var(--ws-surface-page, #F7F9FA); display: grid; gap: 8px; }
.wst-rep-row .wst-textarea { min-height: 76px; }
.wst-link-btn { justify-self: end; appearance: none; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ws-text-link, #286788); cursor: pointer; text-decoration: underline; }
.wst-schema .wst-btn--secondary { justify-self: start; }
.wst-schema-issues { color: var(--ws-chart-semantic-warning, #8E6214); font-size: 14px; }
.wst-schema-issues[hidden] { display: none; }
@media (max-width: 767px) {
  .wst-hop { grid-template-columns: 1fr; gap: 4px; }
  .wst-tabs--wrap .wst-tab { flex: 1 1 auto; }
}
