/* Online SEO Test – design system
   Palette: ink / paper / petrol primary / highlighter marker.
   Type: IBM Plex Sans (body), IBM Plex Sans Condensed (display), IBM Plex Mono (URLs & code). */

/* Fonts: subsets load only when a page uses their characters (unicode-range). */
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-cyrillic-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-400-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-devanagari-devanagari-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0f1d2b;
  --ink-2: #46535f;
  --ink-3: #5c6976;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --line: #dde3e9;
  --line-2: #c9d2da;
  --primary: #0e6470;
  --primary-ink: #ffffff;
  --primary-hover: #0a4f59;
  --primary-tint: #e3f0f1;
  --marker: #ffd84d;
  --marker-ink: #3a2e00;
  --pass: #187a43;
  --pass-tint: #e4f4ea;
  --warn: #946000;
  --warn-tint: #fdf1d9;
  --fail: #b83232;
  --fail-tint: #fbe6e6;
  --info: #5b6b7b;
  --info-tint: #eceff2;
  --shadow: 0 1px 2px rgba(15, 29, 43, .06), 0 4px 16px rgba(15, 29, 43, .05);
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --sans: 'Plex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Yu Gothic', Arial, sans-serif;
  --display: 'Plex Condensed', 'Plex', 'Arial Narrow', 'PingFang SC', 'Hiragino Sans', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Yu Gothic', sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6edf3; --ink-2: #a8b6c3; --ink-3: #8b9aa8; --paper: #0c151f; --surface: #121f2d; --surface-2: #162536;
    --line: #22374b; --line-2: #2d465d; --primary: #4fb6c3; --primary-ink: #04161a; --primary-hover: #77cbd6; --primary-tint: #12333b;
    --pass: #4cc483; --pass-tint: #10301f; --warn: #f0b13f; --warn-tint: #33270c; --fail: #f07070; --fail-tint: #3a1717; --info: #9fb0bf; --info-tint: #1b2a39;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e6edf3; --ink-2: #a8b6c3; --ink-3: #8b9aa8; --paper: #0c151f; --surface: #121f2d; --surface-2: #162536;
  --line: #22374b; --line-2: #2d465d; --primary: #4fb6c3; --primary-ink: #04161a; --primary-hover: #77cbd6; --primary-tint: #12333b;
  --pass: #4cc483; --pass-tint: #10301f; --warn: #f0b13f; --warn-tint: #33270c; --fail: #f07070; --fail-tint: #3a1717; --info: #9fb0bf; --info-tint: #1b2a39;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marker); color: var(--marker-ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-s { width: 16px; height: 16px; }
.icon-l { width: 28px; height: 28px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-s { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--radius-s); }
.btn-danger { color: var(--fail); }
.btn[disabled], .btn.loading { opacity: .65; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.mono, input.mono { font-family: var(--mono); font-size: 13.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c6976' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 34px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.counter { float: inline-end; font-weight: 400; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--fail); }
.alert { padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid; margin-bottom: 16px; font-size: .95rem; }
.alert-error { background: var(--fail-tint); border-color: color-mix(in srgb, var(--fail) 35%, transparent); color: var(--ink); }
.alert-ok { background: var(--pass-tint); border-color: color-mix(in srgb, var(--pass) 35%, transparent); }
.alert-info { background: var(--info-tint); border-color: var(--line); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2.4; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav > a, .nav > .dd > button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font: 500 15px/1 var(--sans); background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav > .dd > button:hover, .nav > a.active { color: var(--ink); background: var(--surface); }
.nav > a.active { box-shadow: inset 0 -2px 0 var(--primary); border-radius: var(--radius-s) var(--radius-s) 0 0; background: transparent; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-s); border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 10px); inset-inline-start: -20px; width: min(860px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 22px; display: none; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.dd.open .dd-panel { display: grid; }
.dd-panel h4 { font: 600 .82rem/1.2 var(--sans); color: var(--ink-3); margin: 0 0 8px; }
.dd-panel a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .94rem; }
.dd-panel a:hover { color: var(--primary); }
.dd-panel .dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 500; color: var(--primary); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
.lang-select { font-size: 14px; min-height: 36px; padding: 4px 30px 4px 10px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4, .footer-grid h2 { font: 600 .9rem/1.3 var(--sans); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.socials { display: flex; gap: 6px; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.02em; max-width: 13ch; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.urlbar { display: flex; align-items: stretch; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px; box-shadow: 6px 6px 0 var(--ink); max-width: 620px; }
.urlbar:focus-within { box-shadow: 6px 6px 0 var(--primary); border-color: var(--primary); }
.urlbar .scheme { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; color: var(--ink-3); font: 400 15px var(--mono); }
.urlbar input { flex: 1; min-width: 0; border: 0; box-shadow: none !important; background: transparent; font: 400 17px var(--mono); padding: 10px 8px; min-height: 52px; }
.urlbar .btn { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--ink-3); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { color: var(--pass); width: 17px; height: 17px; }
.form-error { color: var(--fail); font-size: .92rem; margin-top: 12px; min-height: 1.2em; }

/* Live readout – the signature element */
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.readout-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.readout-top .dots { display: flex; gap: 6px; }
.readout-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.readout-top .addr { flex: 1; font: 13px var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout-body { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 20px; }
.readout-rows { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.readout-rows li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateY(4px); animation: tick .35s ease forwards; }
.readout-rows li:last-child { border-bottom: 0; }
.readout-rows li span:last-child { font: 12.5px var(--mono); color: var(--ink-3); }
.readout-rows mark { background: var(--marker); color: var(--marker-ink); padding: 0 3px; border-radius: 2px; }
@keyframes tick { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .readout-rows li { animation: none; opacity: 1; transform: none; } .dial-anim { animation: none !important; } }

/* Score dial */
.dial { --v: 0; --c: var(--primary); position: relative; width: 132px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); display: grid; place-items: center; }
.dial::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.dial b { position: relative; font: 700 2.6rem/1 var(--display); letter-spacing: -.02em; }
.dial small { position: absolute; bottom: 26%; font-size: .72rem; color: var(--ink-3); }
.dial.pass { --c: var(--pass); } .dial.warn { --c: var(--warn); } .dial.fail { --c: var(--fail); }
.dial-l { width: 168px; }
.dial-l b { font-size: 3.3rem; }
.dial-s { width: 64px; } .dial-s::before { inset: 6px; } .dial-s b { font-size: 1.25rem; } .dial-s small { display: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.panel-s { padding: 18px; border-radius: var(--radius); }

/* What we check – audit categories */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--line); gap: 1px; }
.check-grid > div { background: var(--surface); padding: 22px; }
.check-grid h3 { font-size: 1.1rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.check-grid p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Tool index – dense list instead of identical cards */
.tool-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 40px; }
.tool-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.tool-cat h3 a { color: inherit; text-decoration: none; }
.tool-cat h3 .count { margin-inline-start: auto; font: 500 .8rem var(--sans); color: var(--ink-3); }
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list li a { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 6px; }
.tool-list li a:hover { background: var(--surface); }
.tool-list li a:hover strong { color: var(--primary); }
.tool-list .icon { grid-row: span 2; color: var(--primary); margin-top: 2px; }
.tool-list strong { font-weight: 500; }
.tool-list span { grid-column: 2; font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.badge-ai { font: 600 10.5px/1 var(--sans); padding: 3px 6px; border-radius: 4px; background: var(--marker); color: var(--marker-ink); margin-inline-start: 6px; vertical-align: 2px; }

.featured-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ftool { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 150px; }
.ftool:hover { border-color: var(--primary); color: var(--ink); }
.ftool .icon { color: var(--primary); width: 26px; height: 26px; }
.ftool strong { font: 600 1.05rem/1.25 var(--display); }
.ftool span { font-size: .87rem; color: var(--ink-3); line-height: 1.45; }
.ftool:first-child { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 26px; justify-content: flex-end; }
.ftool:first-child strong { font-size: 1.7rem; }
.ftool:first-child span { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: .98rem; max-width: 36ch; }
.ftool:first-child .icon { color: var(--marker); width: 34px; height: 34px; margin-bottom: auto; }
:root[data-theme="dark"] .ftool:first-child, :root:not([data-theme="light"]) .ftool:first-child { }

/* Recent reports list */
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.recent-list li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.recent-list li a:hover .host { color: var(--primary); }
.recent-list .host { font: 500 15px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .when { font-size: .8rem; color: var(--ink-3); }
.score-chip { display: inline-grid; place-items: center; width: 44px; height: 30px; border-radius: 6px; font: 700 1rem/1 var(--display); color: #fff; }
.score-chip.pass { background: var(--pass); } .score-chip.warn { background: var(--warn); } .score-chip.fail { background: var(--fail); }
:root[data-theme="dark"] .score-chip, :root:not([data-theme="light"]) .score-chip { color: var(--primary-ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .score-chip { color: #fff; } }
:root[data-theme="light"] .score-chip { color: #fff; }

/* Stats strip */
.stat-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat-strip > div { flex: 1 1 120px; padding: 14px 18px; border-inline-end: 1px solid var(--line); min-width: 0; }
.stat-strip > div:last-child { border-inline-end: 0; }
.stat-strip b { display: block; font: 600 1.35rem/1.2 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-strip span { font-size: .8rem; color: var(--ink-3); }
.stat-strip .pass b { color: var(--pass); } .stat-strip .warn b { color: var(--warn); } .stat-strip .fail b { color: var(--fail); }

/* Article cards: typographic covers */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.acard:hover h3, .acard:hover h2 { color: var(--primary); }
.acover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--primary); color: var(--primary-ink); display: flex; align-items: flex-end; padding: 16px; }
.acover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acover .t { position: relative; font: 700 1.35rem/1.1 var(--display); letter-spacing: -.01em; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acover .cat { position: absolute; top: 14px; inset-inline-start: 16px; font-size: .78rem; font-weight: 500; opacity: .85; }
.acover::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 140px; height: 140px; border: 22px solid currentColor; border-radius: 50%; opacity: .12; }
.acover.c1 { background: #0e6470; color: #fff; } .acover.c2 { background: #1f2f44; color: #fff; } .acover.c3 { background: #ffd84d; color: #2a2100; }
.acover.c4 { background: #d9e8e2; color: #0f1d2b; } .acover.c5 { background: #3c2a63; color: #fff; } .acover.c6 { background: #e9e0d2; color: #2a1f10; } .acover.c7 { background: #12424a; color: #e7f6f3; }
.acard h3, .acard h2 { font-size: 1.2rem; margin-bottom: 6px; }
.acard p { color: var(--ink-2); font-size: .93rem; margin-bottom: 8px; }
.acard .meta { font-size: .8rem; color: var(--ink-3); margin-top: auto; }

/* ---------- Breadcrumbs, page head ---------- */
.crumbs { font-size: .85rem; color: var(--ink-3); margin: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { padding: 8px 0 28px; }
.page-head p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; }

/* ---------- Tool page ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.tool-head .ticon { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.tool-head .ticon .icon { width: 28px; height: 28px; }
.tool-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 6px; }
.tool-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.tool-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.tool-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tool-form .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .85rem; margin: 4px 0 14px; }
.or-divider::before, .or-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.results { margin-top: 24px; }
.results:empty { display: none; }
.rsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 16px; overflow: hidden; }
.rsec > h3 { font-size: 1.05rem; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.rsec > h3 .tools-r { margin-inline-start: auto; display: flex; gap: 6px; }
.rsec-body { padding: 18px; }
.rsec-flush { padding: 0; }
.notice { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; }
.notice .icon { margin-top: 2px; }
.notice.pass { border-color: color-mix(in srgb, var(--pass) 40%, transparent); background: var(--pass-tint); } .notice.pass .icon { color: var(--pass); }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-tint); } .notice.warn .icon { color: var(--warn); }
.notice.fail { border-color: color-mix(in srgb, var(--fail) 40%, transparent); background: var(--fail-tint); } .notice.fail .icon { color: var(--fail); }
.notice.info .icon { color: var(--info); }
.score-sec { display: flex; align-items: center; gap: 24px; padding: 22px; }
.score-sec h3 { font-size: 1.5rem; margin: 0 0 4px; border: 0; padding: 0; }
.score-sec p { margin: 0; color: var(--ink-3); font: 13.5px var(--mono); word-break: break-all; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist strong { font-weight: 500; }
.checklist .msg { grid-column: 2; color: var(--ink-2); font-size: .92rem; word-break: break-word; }
.st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.st svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st.pass { background: var(--pass); } .st.warn { background: var(--warn); } .st.fail { background: var(--fail); } .st.info { background: var(--info); }
:root[data-theme="dark"] .st, :root:not([data-theme="light"]) .st { color: var(--paper); }
:root[data-theme="light"] .st { color: #fff; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: start; font-weight: 600; font-size: .8rem; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
table.data tr:last-child td { border-bottom: 0; }
table.data td a { word-break: break-all; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--info-tint); color: var(--ink-2); white-space: nowrap; }
.badge.pass { background: var(--pass-tint); color: var(--pass); } .badge.warn { background: var(--warn-tint); color: var(--warn); } .badge.fail { background: var(--fail-tint); color: var(--fail); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; background: var(--surface-2); cursor: default; }
.chip.copyable { cursor: pointer; } .chip.copyable:hover { border-color: var(--primary); }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.kv > div { padding: 10px 18px; border-bottom: 1px solid var(--line); word-break: break-word; font-size: .93rem; }
.kv > div:nth-child(odd) { color: var(--ink-3); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.plain-list { margin: 0; padding: 14px 18px 14px 36px; }
.plain-list li { margin: 4px 0; }
pre.code { margin: 0; padding: 16px 18px; background: var(--surface-2); overflow: auto; max-height: 520px; font-size: 13px; line-height: 1.55; white-space: pre; }
.outline { list-style: none; margin: 0; padding: 10px 18px; font-size: .93rem; }
.outline li { padding: 5px 0; display: flex; gap: 10px; align-items: baseline; }
.outline li .lv { font: 600 11px var(--mono); color: var(--primary); background: var(--primary-tint); padding: 2px 6px; border-radius: 4px; flex: none; }
.serp { padding: 18px; font-family: Arial, sans-serif; max-width: 640px; }
.serp .s-site { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.serp .s-fav { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.serp .s-fav img { width: 18px; height: 18px; }
.serp .s-url { font-size: 12px; color: var(--ink-3); }
.serp .s-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 6px 0 3px; }
:root[data-theme="dark"] .serp .s-title { color: #99c3ff; }
.serp .s-desc { font-size: 14px; line-height: 1.58; color: var(--ink-2); }
.social-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 18px; }
.sp-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.sp-card .sp-img { aspect-ratio: 1.91 / 1; background: var(--line) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; }
.sp-card .sp-body { padding: 10px 12px; }
.sp-card .sp-site { font-size: 12px; color: var(--ink-3); text-transform: lowercase; }
.sp-card .sp-title { font-weight: 600; font-size: 15px; line-height: 1.3; margin: 2px 0; }
.sp-card .sp-desc { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-label { font-size: .8rem; color: var(--ink-3); margin-bottom: 6px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .4s; }
.loading-box { padding: 26px; text-align: center; }
.loading-steps { list-style: none; padding: 0; margin: 18px auto 0; max-width: 360px; text-align: start; font-size: .93rem; color: var(--ink-3); }
.loading-steps li { padding: 4px 0; display: flex; gap: 10px; align-items: center; }
.loading-steps li.done { color: var(--ink); }
.loading-steps li.done::before { content: '✓'; color: var(--pass); font-weight: 700; width: 14px; }
.loading-steps li:not(.done)::before { content: ''; width: 10px; height: 10px; margin: 0 2px; border-radius: 50%; border: 2px solid var(--line-2); }
.loading-steps li.active::before { border-color: var(--primary); border-right-color: transparent; animation: spin .8s linear infinite; }

.prose { font-size: 1.06rem; line-height: 1.75; max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin: .35em 0; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin: 1.4em 0; padding-block: 4px; padding-inline: 20px 0; border-inline-start: 3px solid var(--marker); color: var(--ink-2); }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); overflow: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose .table-wrap { margin: 0 0 1.2em; }
.prose mark { background: var(--marker); color: var(--marker-ink); padding: 0 3px; }
.prose a { word-break: break-word; }
.tool-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--primary); background: var(--primary-tint); border-radius: var(--radius); margin: 1.6em 0; }
.tool-cta p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-2); }
.tool-cta .btn { flex: none; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); padding-bottom: 14px; margin: 0; }

.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; margin-bottom: 18px; }
.side-box h3 { font-size: 1rem; margin-bottom: 10px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li a { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: .93rem; }
.side-links li a:hover { color: var(--primary); }
.side-links .icon { color: var(--primary); width: 18px; height: 18px; }
.sticky { position: sticky; top: 84px; }
.ad-slot { margin: 24px 0; text-align: center; overflow: hidden; }

/* ---------- Report ---------- */
.report-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px; }
.report-head .site { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.report-head .site img { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); }
.report-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; overflow-wrap: anywhere; }
.report-head h1 .muted { overflow-wrap: normal; }
.report-head .url { font: 13.5px var(--mono); color: var(--ink-3); word-break: break-all; }
.report-head .page-title { color: var(--ink-2); margin: 8px 0 0; }
.report-actions { display: flex; flex-direction: column; gap: 8px; }
.grade { font: 700 1rem var(--display); padding: 3px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); margin-inline-start: 6px; }
.cat-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.cat-bars a { background: var(--surface); padding: 14px 18px; text-decoration: none; color: var(--ink); display: block; }
.cat-bars a:hover { background: var(--surface-2); }
.cat-bars .n { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; gap: 8px; }
.cat-bars .n b { font: 700 1.35rem/1 var(--display); color: var(--ink); }
.bar { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--pass); }
.bar i.warn { background: var(--warn); } .bar i.fail { background: var(--fail); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 14px; }
.filters button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button .n { font-variant-numeric: tabular-nums; }
.check-group { margin-bottom: 18px; }
.check-group > h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; }
.check-group > h2 .sc { font: 600 .9rem var(--sans); color: var(--ink-3); margin-inline-start: auto; }
.crow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.crow > summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.crow > summary::-webkit-details-marker { display: none; }
.crow > summary .t { font-weight: 500; }
.crow > summary .v { font: 13px var(--mono); color: var(--ink-3); text-align: end; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow > summary .chev { transition: transform .15s; color: var(--ink-3); }
.crow[open] > summary .chev { transform: rotate(90deg); }
.crow .cbody { padding-block: 0 16px; padding-inline: 54px 18px; color: var(--ink-2); font-size: .95rem; }
.crow .fix { margin-top: 10px; padding: 10px 14px; border-inline-start: 3px solid var(--marker); background: var(--surface-2); border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 6px; border-end-end-radius: 6px; color: var(--ink); }
.crow .fix b { font-weight: 600; }
.crow .cdata { margin-top: 10px; font-size: .88rem; }
.crow .cdata ul { margin: 0; padding-inline-start: 18px; max-height: 260px; overflow: auto; }
.crow .cdata li { word-break: break-all; margin: 3px 0; }
.crow .cdata table { margin-top: 4px; }
.crow.is-hidden { display: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.history { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding-top: 6px; }
.history a { flex: 1; max-width: 26px; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 4px; opacity: .8; }
.history a:hover { opacity: 1; }
.cmp-table th:not(:first-child), .cmp-table td:not(:first-child) { text-align: center; }
.cmp-table td.best { background: var(--pass-tint); font-weight: 600; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.blog-layout > *, .tool-layout > *, .hero-grid > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
.prose .btn { white-space: normal; max-width: 100%; text-align: center; }
@media (max-width: 760px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.article-head { max-width: 820px; padding: 8px 0 24px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.015em; }
.article-head .excerpt { font-size: 1.2rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-3); align-items: center; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font: 700 .95rem var(--display); }
.toc { font-size: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; padding-block: 5px; padding-inline: 12px 0; border-inline-start: 2px solid var(--line); color: var(--ink-2); text-decoration: none; }
.toc li.d3 a { padding-inline-start: 24px; font-size: .86rem; }
.toc li a:hover, .toc li a.active { color: var(--primary); border-inline-start-color: var(--primary); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-tabs a { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .9rem; background: var(--surface); }
.cat-tabs a.active, .cat-tabs a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); background: var(--surface); }
.pager .cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Auth / small forms ---------- */
.narrow { max-width: 440px; margin: 48px auto; }
.center { text-align: center; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .tool-layout, .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .readout { max-width: 560px; }
  .featured-tools { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sticky { position: static; }
  .report-head { grid-template-columns: auto 1fr; }
  .report-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav, .header-actions .hide-m { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav.open { display: block; position: fixed; inset: 64px 0 0; background: var(--paper); z-index: 49; overflow-y: auto; padding: 16px 20px 40px; }
  .mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.05rem; }
  .mobile-nav h4 { margin: 20px 0 4px; font: 600 .8rem var(--sans); color: var(--ink-3); }
  .recent-list, .two-col, .social-preview { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .urlbar { flex-wrap: wrap; box-shadow: 4px 4px 0 var(--ink); }
  .urlbar .scheme { display: none; }
  .urlbar input { flex-basis: 100%; }
  .urlbar .btn { width: 100%; }
  .readout-body { grid-template-columns: 1fr; }
  .readout .dial { margin: 0 auto; }
  .featured-tools, .cards { grid-template-columns: 1fr; }
  .ftool:first-child { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-form .grid2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; font-size: .82rem; }
  .crow > summary { grid-template-columns: 22px minmax(0, 1fr) 18px; }
  .crow > summary .v { display: none; }
  .crow .cbody { padding-inline-start: 18px; }
  .report-head { grid-template-columns: 1fr; text-align: start; padding: 20px; }
  .tool-cta { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tool-cats { grid-template-columns: 1fr; }
}

/* ---------- Print (PDF reports) ---------- */
@media print {
  .site-header, .site-footer, .report-actions, .filters, .ad-slot, .no-print, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .crow { break-inside: avoid; }
  .crow:not([open]) .cbody { display: block; }
  .panel, .rsec, .crow { border-color: #ccc; }
  a { color: #000; }
}

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] select { background-position: left 12px center; }
[dir="rtl"] .crow > summary .chev, [dir="rtl"] .icon-flip { transform: scaleX(-1); }
[dir="rtl"] .crow[open] > summary .chev { transform: rotate(90deg); }
[dir="rtl"] .urlbar, [dir="rtl"] input[inputmode="url"], [dir="rtl"] .mono, [dir="rtl"] pre, [dir="rtl"] code, [dir="rtl"] .url, [dir="rtl"] .host { direction: ltr; }
[dir="rtl"] .urlbar { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .urlbar:focus-within { box-shadow: -6px 6px 0 var(--primary); }
[dir="rtl"] .serp { direction: ltr; text-align: left; }
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .prose { line-height: 1.9; }
/* CJK and Devanagari: no negative tracking, a little more line height */
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2, :lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) .prose, :lang(ja) .prose, :lang(hi) .prose { line-height: 1.9; }
/* Language menu */
.lang-dd .dd-panel { width: 260px; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px; inset-inline-start: auto; inset-inline-end: 0; }
.lang-dd .dd-panel a { padding: 7px 8px; border-radius: 6px; font-size: .9rem; }
.lang-dd .dd-panel a[aria-current] { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.lang-dd > button { gap: 6px !important; }
.lang-banner { background: var(--ink); color: var(--paper); font-size: .92rem; }
.lang-banner .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; padding-block: 9px; flex-wrap: wrap; }
.lang-banner a { color: var(--marker); font-weight: 600; }
.lang-banner button { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 1.1rem; }

/* ---------- Account & monitoring ---------- */
.rsec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rsec-h h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.rsec-b { padding: 18px; }
.rsec .empty { padding: 28px 18px; text-align: center; }
.acct-verify { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mon-list { display: grid; gap: 10px; margin-bottom: 16px; }
.mon { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); }
.mon-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-form, .mon-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mon-form select { width: auto; padding-block: 6px; font-size: .88rem; }
.mon-add input { flex: 1 1 260px; }
.mon-add select { width: auto; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.acct-grid .rsec { margin: 0; }

/* ---------- Report insights ---------- */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.ins-grid > .rsec { margin: 0; }
@media (max-width: 860px) { .ins-grid { grid-template-columns: 1fr; } }
.ins-lead { font-size: 1.04rem; line-height: 1.7; margin: 0; color: var(--ink); }
.pct-scale { margin-top: 18px; }
.pct-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(to right, var(--fail), var(--warn) 50%, var(--pass)); }
:root[dir="rtl"] .pct-track, [dir="rtl"] .pct-track { background: linear-gradient(to left, var(--fail), var(--warn) 50%, var(--pass)); }
.pct-track i { position: absolute; top: 50%; width: 18px; height: 18px; margin-inline-start: -9px; transform: translateY(-50%); border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.pct-track .avg { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); opacity: .55; }
.pct-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.kfacts { display: grid; gap: 0; padding-block: 8px; }
.kf { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.kf:last-child { border-bottom: 0; }
.kf span { color: var(--ink-2); }
.kf b { text-align: end; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kf b.pass { color: var(--pass); } .kf b.warn { color: var(--warn); } .kf b.fail { color: var(--fail); }
.prio { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 12px; }
.prio li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; }
.prio li::before { content: counter(p); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--display); color: #fff; background: var(--warn); }
.prio li.fail::before { background: var(--fail); }
.prio a { color: var(--ink); text-decoration: none; } .prio a:hover { text-decoration: underline; }
.prio span { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.strengths { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strengths li { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; }
.strengths .icon { color: var(--pass); flex: none; margin-top: 3px; }
.bench { display: grid; gap: 10px; }
.bench-row { display: grid; grid-template-columns: minmax(110px, 200px) 1fr 70px; gap: 12px; align-items: center; font-size: .93rem; }
.bench-row > b { text-align: end; }
.bench-total { font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bench-bars { display: grid; gap: 3px; }
.bench-bars .bar { height: 8px; }
.bench-bars .bar.avg i { background: var(--ink-3, #8a96a3); opacity: .6; }
.bench-legend { margin: 6px 0 0; }
.bench-legend .sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--primary); vertical-align: middle; }
.bench-legend .sw.avg { background: var(--ink-3, #8a96a3); opacity: .6; }
@media (max-width: 560px) { .bench-row { grid-template-columns: 1fr 64px; } .bench-row > span { grid-column: 1 / -1; } }
.hist-chart { width: 100%; height: auto; display: block; }
.hist-chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.hist-chart text { font: 11px var(--sans); fill: var(--ink-2); }
.hist-chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.hist-chart .dot { stroke: var(--surface); stroke-width: 2; fill: var(--primary); }
.hist-chart .dot.pass { fill: var(--pass); } .hist-chart .dot.warn { fill: var(--warn); } .hist-chart .dot.fail { fill: var(--fail); }
.up { color: var(--pass); font-weight: 600; } .down { color: var(--fail); font-weight: 600; }
.monitor-cta { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface)); }
.monitor-cta .rsec-b { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1rem; margin: 0; font-weight: 600; }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-list p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); line-height: 1.65; }
.similar { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.similar a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.similar a:hover { border-color: var(--primary); }
.similar a > span:last-child { display: grid; min-width: 0; }
.similar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media print { .ins-grid { grid-template-columns: 1fr 1fr; } }

/* Numbers, units, dates and hosts keep their own direction inside RTL text */
[dir="rtl"] .stat-strip b, [dir="rtl"] .dial small, [dir="rtl"] .kf b, [dir="rtl"] time, [dir="rtl"] .num, [dir="rtl"] .bench-row b, [dir="rtl"] .crow .v, [dir="rtl"] .cat-bars b, [dir="rtl"] .rsec-h .small { unicode-bidi: plaintext; }
/* Spam honeypot field: invisible in both LTR and RTL without creating scroll overflow */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.tool-list .badge-ai, .ftool .badge-ai { color: var(--marker-ink); font-size: 10.5px; line-height: 1; }
