:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --na: #9ca3af;
  --accent: #2563eb;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: #f3f4f6; padding: .1em .3em; border-radius: 3px; }
pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 6px; overflow: auto; max-height: 480px; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; }

.site-header { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); color: white; padding: 2.25rem 0 2rem; }
.header-row { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.header-text { flex: 1; min-width: 0; }
.site-header h1 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
.site-header .tagline { margin: .25rem 0 0; color: #cbd5e1; }
.site-header a { color: #93c5fd; }
.lang-switch { display: inline-flex; gap: .25rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: .2rem; flex-shrink: 0; }
.lang-btn { background: transparent; color: #cbd5e1; border: 0; padding: .35rem .8rem; border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.lang-btn:hover { color: white; }
.lang-btn-active { background: rgba(255,255,255,0.18); color: white; }

.audit-form-section { margin: 2rem 0 1.5rem; }
.audit-form { display: flex; gap: .75rem; align-items: center; background: var(--surface); padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--border); flex-wrap: wrap; }
.audit-form input[type="url"] { flex: 1 1 320px; min-width: 0; padding: .65rem .85rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 6px; }
.exec-toggle { display: flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .92rem; user-select: none; cursor: pointer; }
button { font: inherit; }
#audit-btn { background: var(--accent); color: white; border: 0; padding: .7rem 1.25rem; border-radius: 6px; font-weight: 600; cursor: pointer; }
#audit-btn:disabled { opacity: .6; cursor: progress; }
.examples { margin-top: .75rem; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.examples-label { margin-right: .25rem; }
.example-btn { background: white; border: 1px solid var(--border); padding: .35rem .65rem; border-radius: 999px; cursor: pointer; font-size: .85rem; color: var(--text); }
.example-btn:hover { border-color: var(--accent); color: var(--accent); }

.status { margin: 1rem 0; padding: .75rem 1rem; border-radius: 6px; }
.status-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hidden { display: none !important; }

.report { margin: 1rem 0 4rem; display: flex; flex-direction: column; gap: 1.25rem; }

.hero { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; box-shadow: var(--shadow); }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } }
.hero-left { text-align: center; }
.hero-label { color: var(--muted); margin-top: .5rem; }
.meta-row { display: grid; grid-template-columns: 120px 1fr; gap: .5rem; padding: .25rem 0; font-size: .92rem; }
.meta-label { color: var(--muted); }
.meta-value { word-break: break-all; }

.verdict { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: 10px; padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; box-shadow: var(--shadow); }
.verdict-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.verdict-body { min-width: 0; }
.verdict-headline { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; }
.verdict-text { margin: 0; color: #374151; font-size: .95rem; line-height: 1.55; }
.verdict-both, .verdict-imperative-only, .verdict-declarative-only { border-left-color: var(--green); }
.verdict-both .verdict-icon, .verdict-imperative-only .verdict-icon, .verdict-declarative-only .verdict-icon { background: var(--green); }
.verdict-no-tools { border-left-color: var(--accent); }
.verdict-no-tools .verdict-icon { background: var(--accent); }
.verdict-no-api { border-left-color: var(--red); }
.verdict-no-api .verdict-icon { background: var(--red); }
.verdict-degraded { border-left-color: var(--amber); }
.verdict-degraded .verdict-icon { background: var(--amber); }

.category-description { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.category-hint { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1rem; }
.category-hint-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.category-hint-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: white; font-size: .85rem; font-weight: 700; }
.category-hint-label { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.category-hint-body { margin: 0; color: #1e3a8a; font-size: .92rem; line-height: 1.55; }

.about-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .25rem 1.5rem; box-shadow: var(--shadow); }
.about-panel summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--accent); }
.about-panel summary:hover { color: #1d4ed8; }
.about-body { padding: 0 0 1rem; }
.about-body p { margin: 0 0 .85rem; color: #374151; line-height: 1.6; }

.finding-howfix { margin-top: .5rem; background: white; border-left: 3px solid var(--accent); border-radius: 4px; padding: 0 .75rem; }
.finding-howfix-summary { cursor: pointer; padding: .5rem 0; font-weight: 600; color: var(--accent); font-size: .88rem; }
.finding-howfix-summary:hover { color: #1d4ed8; }
.finding-howfix-body { margin: 0 0 .65rem; color: #374151; font-size: .9rem; line-height: 1.55; }
.finding-warn .finding-howfix { border-left-color: var(--amber); background: #fffef9; }
.finding-warn .finding-howfix-summary { color: #92400e; }
.finding-fail .finding-howfix { border-left-color: var(--red); background: #fffafa; }
.finding-fail .finding-howfix-summary { color: #991b1b; }

.category-donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.donut-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; box-shadow: var(--shadow); }
.donut-label { margin-top: .5rem; font-weight: 500; }
.donut-counts { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }

.donut { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 6px solid var(--na); color: var(--text); font-weight: 700; }
.donut-big { width: 96px; height: 96px; font-size: 1.6rem; border-width: 8px; }
.donut-small { width: 56px; height: 56px; font-size: 1rem; border-width: 5px; }
.donut-green { border-color: var(--green); color: var(--green); }
.donut-amber { border-color: var(--amber); color: var(--amber); }
.donut-red { border-color: var(--red); color: var(--red); }
.donut-na { border-color: var(--na); color: var(--muted); }

.banner { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; padding: .75rem 1rem; border-radius: 6px; }
.banner-warn { background: #fffbeb; border-color: #fde68a; }

.category-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.category-title { margin: 0 0 .75rem; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.score-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.score-dot-green { background: var(--green); }
.score-dot-amber { background: var(--amber); }
.score-dot-red { background: var(--red); }
.score-dot-na { background: var(--na); }

.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.finding { border: 1px solid var(--border); border-left-width: 4px; border-radius: 6px; padding: .65rem .85rem; background: #fafafa; }
.finding-pass { border-left-color: var(--green); }
.finding-warn { border-left-color: var(--amber); background: #fffbeb; }
.finding-fail { border-left-color: var(--red); background: #fef2f2; }
.finding-na   { border-left-color: var(--na); opacity: .8; }
.finding-info { border-left-color: var(--accent); }

.finding-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.finding-title { font-weight: 600; }
.finding-tool { color: var(--muted); font-size: .85rem; background: #f3f4f6; padding: .1rem .4rem; border-radius: 999px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.finding-message { margin-top: .25rem; color: #374151; }
.finding-details { margin-top: .5rem; }
.finding-details summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.finding-details pre { margin-top: .5rem; }
.finding-doclink { display: inline-block; margin-top: .4rem; font-size: .85rem; }

.chip { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: white; flex-shrink: 0; }
.chip-pass { background: var(--green); }
.chip-warn { background: var(--amber); }
.chip-fail { background: var(--red); }
.chip-na   { background: var(--na); }
.chip-info { background: var(--accent); }

.badge { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; font-weight: 600; }
.badge-pass { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-fail { background: #fee2e2; color: #991b1b; }
.badge-na   { background: #f3f4f6; color: #4b5563; }

.raw-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.raw-section summary { cursor: pointer; font-weight: 600; }
.raw-actions { margin: .75rem 0; }
.btn-download { background: white; border: 1px solid var(--border); padding: .4rem .8rem; border-radius: 6px; cursor: pointer; }
.btn-download:hover { border-color: var(--accent); color: var(--accent); }

/* Trust strip — sits between header and form */
.trust-strip { background: white; border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.trust-card { display: flex; gap: .75rem; align-items: flex-start; padding: .35rem 0; }
.trust-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--accent); border-radius: 8px; }
.trust-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.trust-body strong { font-weight: 600; font-size: .95rem; color: var(--text); }
.trust-body span { color: var(--muted); font-size: .85rem; }
.trust-body a { color: var(--accent); text-decoration: none; }
.trust-body a:hover { text-decoration: underline; }

/* Info panels — methodology, sources, privacy. Always visible. */
.info-panels { display: flex; flex-direction: column; gap: .75rem; margin: 2.5rem 0 1rem; }
.info-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.info-panel summary { cursor: pointer; padding: 1rem 1.5rem; font-weight: 600; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.info-panel summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); font-weight: 300; }
.info-panel details[open] summary::after { content: '−'; }
.info-panel summary:hover { color: var(--accent); }
.info-summary-label { flex: 1; }
.info-body { padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.info-body p { margin: 0 0 .85rem; color: #374151; line-height: 1.6; }
.info-intro { color: #374151; line-height: 1.6; margin-bottom: 1.25rem; }

.method-category { margin-top: 1.5rem; }
.method-category:first-of-type { margin-top: 0; }
.method-category-title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; color: var(--text); }
.method-category-desc { margin: 0 0 .75rem; color: var(--muted); font-size: .88rem; }
.method-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.method-table th { text-align: left; padding: .5rem .75rem; background: #f9fafb; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .03em; font-size: .72rem; }
.method-table td { padding: .5rem .75rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.method-table tr:last-child td { border-bottom: 0; }
.th-narrow, .method-sev, .method-weight { width: 90px; text-align: center; }
.method-check-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--muted); }
.method-check-title { font-weight: 500; color: var(--text); margin-top: .15rem; }
.method-sev { text-align: center; font-weight: 600; font-size: .8rem; }
.sev-fail { color: var(--red); }
.sev-warn { color: var(--amber); }
.method-weight { text-align: center; color: var(--text); font-weight: 600; }

.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.source-item { border-left: 3px solid var(--accent); padding-left: 1rem; }
.source-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.source-meta { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.source-note { color: #374151; font-size: .88rem; margin-top: .35rem; line-height: 1.5; }

/* Redesigned footer with EEAT signals */
.site-footer { color: var(--muted); padding: 1.75rem 0 2.5rem; font-size: .88rem; border-top: 1px solid var(--border); margin-top: 3rem; background: var(--surface); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: .35rem; }
.footer-brand { font-weight: 700; color: var(--text); font-size: 1rem; }
.footer-heading { font-weight: 600; color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.footer-meta { color: var(--muted); font-size: .85rem; }
.footer-meta code { background: #f3f4f6; color: var(--text); padding: .1rem .35rem; font-size: .82rem; }
.footer-disclaimer { margin-top: .35rem; font-style: italic; }
