/* ── WCAG Scanner Widget ─────────────────────────────── */
.wcag-widget {
  font-family: 'Clofie', Helvetica, Arial, sans-serif;
  color: #0d0c11;
  max-width: 560px;
}
.wcag-hidden { display: none !important; }

/* ── Eyebrow / Hero ────────────────────────────────────── */
.wcag-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.42);
  margin-bottom: 14px;
}
.wcag-hero {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: #0d0c11;
}
.wcag-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ── Checklist ─────────────────────────────────────────── */
.wcag-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wcag-checklist li {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wcag-checklist li::before {
  content: '\2713';
  color: #0d0c11;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Input row ─────────────────────────────────────────── */
.wcag-input-row {
  display: flex;
  gap: 0;
  width: 100%;
  margin-bottom: 6px;
}
.wcag-url-input {
  flex: 1;
  border: 1px solid #0d0c11;
  border-right: none;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: #0d0c11;
  outline: none;
  border-radius: 0;
  background: #fff;
  transition: border-color .15s;
}
.wcag-url-input::placeholder { color: #aaa; }
.wcag-url-input:focus { border-color: #007396; }
.wcag-url-err-active { border-color: #e53935 !important; }

.wcag-btn {
  display: inline-block;
  background: #0d0c11;
  color: #fff;
  border: 2px solid #0d0c11;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.wcag-btn:hover { background: #007396; border-color: #007396; }
.wcag-btn-full  { width: 100%; text-align: center; margin-top: 16px; }

.wcag-url-err {
  font-size: 12px;
  color: #e53935;
  min-height: 18px;
  padding-top: 4px;
}

/* ── Loading ───────────────────────────────────────────── */
.wcag-load-pct {
  font-size: 96px;
  font-weight: 700;
  color: #0d0c11;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.wcag-load-msg {
  font-size: 14px;
  color: #555;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  min-height: 20px;
  transition: opacity .35s;
}
.wcag-bar-track {
  width: 100%;
  max-width: 380px;
  height: 3px;
  background: rgba(0,0,0,.08);
}
.wcag-bar-fill {
  height: 100%;
  background: #0d0c11;
  width: 0%;
}

/* ── Results ───────────────────────────────────────────── */
.wcag-score-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}
.wcag-circ-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.wcag-circ-svg { display: block; }
.wcag-circ-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}
.wcag-score-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #0d0c11;
}
.wcag-score-den {
  font-size: 11px;
  color: rgba(0,0,0,.4);
}
.wcag-score-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wcag-score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(0,0,0,.38);
  text-transform: uppercase;
}
.wcag-badge {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
}
.wcag-scanned-url {
  font-size: 12px;
  color: rgba(0,0,0,.38);
  font-family: 'Courier New', monospace;
}

/* ── Issues ────────────────────────────────────────────── */
.wcag-issues {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}
.wcag-issue-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.wcag-chip {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  margin-top: 2px;
}
.wcag-chip-c { background: #c62828; }
.wcag-chip-s { background: #e65100; }
.wcag-chip-m { background: #c17f00; }
.wcag-chip-n { background: #555; }

.wcag-issue-body {}
.wcag-issue-title {
  font-size: 13px;
  font-weight: 700;
  color: #0d0c11;
  margin: 0 0 3px;
}
.wcag-issue-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.wcag-more-hint {
  font-size: 12px;
  color: rgba(0,0,0,.38);
  margin: 10px 0 0;
  font-style: italic;
}
.wcag-cta-hint {
  font-size: 13px;
  color: #555;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Error ─────────────────────────────────────────────── */
.wcag-err-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d0c11;
  margin-bottom: 10px;
}
.wcag-err-body {
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.6;
}
