:root {
  --dc-bg1: #0d2352;
  --dc-bg2: #090640;
  --dc-ink: #f5f8ff;
  --dc-muted: rgba(229, 236, 255, 0.7);
  --dc-faint: rgba(229, 236, 255, 0.5);
  --dc-accent: #1868dd;
  --dc-accent-dark: #0f4bb0;
  --dc-card: rgba(12, 24, 68, 0.72);
  --dc-card-solid: #0f1d4d;
  --dc-card-border: rgba(255, 255, 255, 0.11);
  --dc-line: rgba(255, 255, 255, 0.08);
  --dc-shadow: 0 24px 60px rgba(3, 12, 45, 0.5);
  --dc-glow: 0 0 40px rgba(24, 104, 221, 0.35);
  --dc-pass: #22c55e;
  --dc-warn: #f59e0b;
  --dc-fail: #f43f5e;
  --dc-na: #94a3b8;
  --dc-info: #60a5fa;
  --dc-radius: 20px;
  --dc-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

body {
  font-family: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--dc-ink);
  background: radial-gradient(circle at 15% 15%, rgba(24, 104, 221, 0.32), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(70, 130, 255, 0.24), transparent 50%),
    linear-gradient(135deg, var(--dc-bg2), var(--dc-bg1) 70%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='140' height='120' viewBox='0 0 140 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'%3E%3Cpath d='M35 0 L105 0 L140 60 L105 120 L35 120 L0 60 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 120px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

#domain-check-app {
  position: relative;
  z-index: 1;
}

/* status colour helpers ------------------------------------------------------ */
.s-pass { --c: var(--dc-pass); }
.s-warn { --c: var(--dc-warn); }
.s-fail { --c: var(--dc-fail); }
.s-na { --c: var(--dc-na); }
.s-info { --c: var(--dc-info); }

/* hero -------------------------------------------------------------------------- */
.dc-hero {
  padding: 40px 0 36px;
}

.dc-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dc-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.dc-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dc-muted);
}

.dc-lang-switch a {
  color: var(--dc-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dc-lang-switch a.is-active {
  background: rgba(24, 104, 221, 0.25);
  border-color: rgba(24, 104, 221, 0.7);
}

.dc-lang-switch span {
  opacity: 0.6;
}

.dc-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.dc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: rgba(199, 220, 255, 0.9);
  font-weight: 700;
  margin-bottom: 8px;
}

.dc-lead-text {
  font-size: 1.05rem;
  color: var(--dc-muted);
  margin: 0 0 22px;
  max-width: 640px;
}

.dc-form .form-label,
.dc-form .form-text {
  color: var(--dc-muted);
}

.dc-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--dc-ink);
}

.dc-form .form-control::placeholder {
  color: rgba(229, 236, 255, 0.5);
}

.dc-form .form-control:focus,
.dc-inline-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--dc-accent);
  box-shadow: 0 0 0 0.2rem rgba(24, 104, 221, 0.25);
  color: var(--dc-ink);
}

.btn-primary {
  background: var(--dc-accent);
  border-color: var(--dc-accent);
  box-shadow: 0 12px 24px rgba(24, 104, 221, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--dc-accent-dark);
  border-color: var(--dc-accent-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--dc-ink);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.dc-advanced {
  margin-top: 10px;
  color: var(--dc-muted);
  font-size: 0.875rem;
}

.dc-advanced summary {
  cursor: pointer;
  width: fit-content;
}

.dc-advanced summary:hover {
  color: var(--dc-ink);
}

.dc-advanced[open] .form-control {
  margin-top: 8px;
  max-width: 280px;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.dc-scope {
  background: var(--dc-card);
  border: 1px solid var(--dc-card-border);
  border-radius: var(--dc-radius);
  padding: 22px 24px;
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(14px);
}

.dc-scope-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dc-faint);
  font-weight: 700;
  margin-bottom: 14px;
}

.dc-scope-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--dc-line);
}

.dc-scope-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.dc-scope-name {
  font-weight: 600;
}

.dc-scope-items {
  color: var(--dc-muted);
  font-size: 0.85rem;
}

/* category icons (pure CSS masks, no external assets) */
.dc-cat-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(24, 104, 221, 0.22);
  position: relative;
}

.dc-cat-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #9cc2ff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.dc-cat-icon[data-cat="mail"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.dc-cat-icon[data-cat="transport"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.dc-cat-icon[data-cat="web"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.dc-cat-icon[data-cat="dns"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }

/* progress ---------------------------------------------------------------------- */
.dc-main {
  padding-bottom: 80px;
}

.dc-progress {
  background: var(--dc-card);
  border: 1px solid var(--dc-card-border);
  border-radius: var(--dc-radius);
  padding: 24px 28px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--dc-shadow);
}

.dc-progress-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.dc-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--dc-accent);
  animation: dc-spin 0.8s linear infinite;
}

@keyframes dc-spin {
  to { transform: rotate(360deg); }
}

.dc-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dc-progress-steps li {
  color: var(--dc-faint);
  padding-left: 28px;
  position: relative;
  transition: color 0.3s ease;
}

.dc-progress-steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dc-progress-steps li.is-active {
  color: var(--dc-ink);
}

.dc-progress-steps li.is-active::before {
  border-color: var(--dc-accent);
  background: var(--dc-accent);
  box-shadow: 0 0 0 4px rgba(24, 104, 221, 0.25);
}

.dc-progress-steps li.is-done {
  color: var(--dc-muted);
}

.dc-progress-steps li.is-done::before {
  border-color: var(--dc-pass);
  background: var(--dc-pass);
}

/* summary ----------------------------------------------------------------------- */
.dc-results {
  display: grid;
  gap: 24px;
}

.dc-summary {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  background: linear-gradient(150deg, rgba(20, 46, 110, 0.82), rgba(12, 24, 68, 0.88));
  border: 1px solid var(--dc-card-border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--dc-shadow), var(--dc-glow);
  backdrop-filter: blur(16px);
}

.dc-summary-score {
  display: flex;
  gap: 22px;
  align-items: center;
}

.score-ring {
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
}

.score-ring svg {
  width: 150px;
  height: 150px;
}

.score-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 12;
}

.score-ring .progress {
  fill: none;
  stroke: var(--c, var(--dc-accent));
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s ease, stroke 0.4s ease;
}

.score-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.score-value small {
  font-size: 0.9rem;
  color: var(--dc-faint);
  font-weight: 500;
  margin-left: 2px;
}

.score-grade {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--c, var(--dc-ink));
  background: color-mix(in srgb, var(--c, #fff) 16%, transparent);
}

.dc-summary-meta {
  min-width: 0;
}

.dc-domain {
  font-size: 1.5rem;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.2;
}

.dc-meta-line {
  color: var(--dc-faint);
  font-size: 0.85rem;
  margin: 4px 0 12px;
}

.dc-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--dc-muted);
}

.dc-count b {
  color: var(--c);
  font-size: 1.05rem;
}

.dc-count::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 6px;
  vertical-align: 1px;
}

.dc-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dc-chip {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--dc-muted);
}

.dc-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dc-cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon label score"
    "bar bar bar"
    "counts counts counts";
  gap: 8px 12px;
  align-items: center;
  text-align: left;
  background: rgba(7, 16, 52, 0.55);
  border: 1px solid var(--dc-card-border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--dc-ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dc-cat:hover,
.dc-cat:focus-visible {
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  transform: translateY(-2px);
}

.dc-cat .dc-cat-icon { grid-area: icon; width: 30px; height: 30px; }
.dc-cat .dc-cat-icon::after { inset: 7px; }

.dc-cat-label {
  grid-area: label;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.dc-cat-score {
  grid-area: score;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c);
}

.dc-cat .dc-bar { grid-area: bar; }

.dc-cat-counts {
  grid-area: counts;
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.dc-cat-counts span {
  color: var(--c);
}

.dc-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dc-bar i {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--c, var(--dc-accent));
  border-radius: inherit;
  transition: width 0.8s ease;
}

/* generic card ------------------------------------------------------------------ */
.dc-card {
  background: var(--dc-card);
  border: 1px solid var(--dc-card-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(16px);
}

.dc-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dc-card-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.dc-card-hint {
  color: var(--dc-faint);
  font-size: 0.82rem;
}

/* status icon ------------------------------------------------------------------- */
.dc-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}

.dc-status-icon.sm {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
}

/* actions ----------------------------------------------------------------------- */
.dc-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dc-action.is-empty {
  color: var(--dc-muted);
}

.dc-action-btn {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: rgba(7, 16, 52, 0.5);
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--dc-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dc-action-btn:hover,
.dc-action-btn:focus-visible {
  border-color: rgba(24, 104, 221, 0.6);
  background: rgba(24, 104, 221, 0.12);
}

.dc-action-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--dc-muted);
}

.dc-action-body strong {
  color: var(--dc-ink);
  font-size: 0.95rem;
}

.dc-gain {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dc-pass);
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* overview table ---------------------------------------------------------------- */
.dc-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dc-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--dc-muted);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.dc-filter:hover {
  color: var(--dc-ink);
}

.dc-filter.is-active {
  background: color-mix(in srgb, var(--c, var(--dc-accent)) 22%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--dc-accent)) 70%, transparent);
  color: var(--dc-ink);
}

.dc-filter-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 7px;
}

.dc-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #9cc2ff;
  font-size: 0.85rem;
  font-weight: 600;
}

.dc-link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.dc-table {
  --cols: 32px minmax(0, 1fr) 128px 120px 128px 28px;
}

.dc-row-head,
.dc-row-main {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 14px;
  align-items: center;
}

.dc-row-head {
  padding: 0 14px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc-faint);
  font-weight: 700;
  border-bottom: 1px solid var(--dc-line);
}

.dc-group {
  margin-top: 6px;
}

.dc-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 8px;
  scroll-margin-top: 20px;
}

.dc-group-head .dc-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.dc-group-head .dc-cat-icon::after {
  inset: 6px;
}

.dc-group-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.dc-group-score {
  margin-left: auto;
  font-weight: 700;
  color: var(--c);
  font-size: 0.9rem;
}

.dc-row {
  border: 1px solid var(--dc-line);
  border-left: 3px solid var(--c);
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(7, 16, 52, 0.42);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dc-row:hover {
  background: rgba(7, 16, 52, 0.7);
}

.dc-row.is-open {
  background: rgba(7, 16, 52, 0.82);
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: var(--c);
}

.dc-row-main {
  padding: 12px 14px;
  cursor: pointer;
}

.dc-row-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dc-row-title strong {
  font-size: 1rem;
}

.dc-row-summary {
  color: var(--dc-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.dc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 5px;
}

.dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  line-height: 1;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: color-mix(in srgb, var(--c) 35%, #fff);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-pill b {
  color: var(--c);
  font-size: 0.7rem;
}

.dc-row-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-pct {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c);
  line-height: 1;
}

.dc-weight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dc-dots {
  display: flex;
  gap: 3px;
}

.dc-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.dc-dots i.on {
  background: #9cc2ff;
}

.dc-weight small,
.dc-rel-text {
  color: var(--dc-faint);
  font-size: 0.72rem;
  line-height: 1.25;
}

.dc-row-spam {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.dc-rel {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.dc-rel.rel-high { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.dc-rel.rel-medium { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.dc-rel.rel-low { background: rgba(96, 165, 250, 0.14); color: #bfdbfe; }
.dc-rel.rel-none { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }

.dc-row-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--dc-line);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.dc-row-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--dc-muted);
  border-bottom: 2px solid var(--dc-muted);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.dc-row.is-open .dc-row-toggle::after {
  transform: translate(-50%, -15%) rotate(-135deg);
}

/* detail panel ------------------------------------------------------------------ */
.dc-row-detail {
  border-top: 1px solid var(--dc-line);
  padding: 16px 18px 18px 60px;
}

.dc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
}

.dc-detail-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc-faint);
  font-weight: 700;
  margin: 0 0 8px;
}

.dc-detail-col > * + h4,
.dc-detail-col > form + h4 {
  margin-top: 18px;
}

.dc-about {
  color: var(--dc-muted);
  font-size: 0.9rem;
}

.dc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.dc-checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  font-size: 0.88rem;
}

.dc-check-value {
  grid-column: 2;
  color: var(--dc-muted);
  font-family: var(--dc-mono);
  font-size: 0.78rem;
  word-break: break-all;
  background: none;
  padding: 0;
}

.dc-recs {
  margin: 0;
  padding-left: 18px;
  color: var(--dc-ink);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.dc-snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.dc-snippet-head h4 {
  margin: 0;
}

.dc-copy {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dc-ink);
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 3px 10px;
}

.dc-copy:hover {
  border-color: var(--dc-accent);
}

.dc-snippet {
  margin: 8px 0 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--dc-mono);
  font-size: 0.78rem;
  color: #c7dcff;
  white-space: pre-wrap;
  word-break: break-all;
}

.dc-inline-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.dc-inline-form .form-control {
  max-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--dc-ink);
}

.dc-records {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(80px, max-content) minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 0.8rem;
}

.dc-records dt {
  color: var(--dc-faint);
  font-weight: 600;
  word-break: break-all;
}

.dc-records dd {
  margin: 0;
}

.dc-records code {
  font-family: var(--dc-mono);
  color: #c7dcff;
  word-break: break-all;
  white-space: pre-wrap;
}

.dc-empty {
  color: var(--dc-muted);
  padding: 20px 14px;
}

/* lead -------------------------------------------------------------------------- */
.dc-lead {
  background: linear-gradient(135deg, rgba(24, 104, 221, 0.22), rgba(12, 24, 68, 0.85));
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--dc-card-border);
  box-shadow: var(--dc-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  scroll-margin-top: 20px;
}

.dc-lead p {
  color: var(--dc-muted);
  margin: 0;
  max-width: 560px;
}

.dc-lead-body h3 {
  margin: 0 0 8px;
}

.dc-lead-actions {
  min-width: 280px;
}

.dc-lead-actions .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--dc-ink);
}

.dc-lead-actions .form-control::placeholder {
  color: rgba(229, 236, 255, 0.5);
}

.dc-footer {
  margin-top: 80px;
  background: #081633;
  color: rgba(255, 255, 255, 0.85);
}

.dc-footer-main {
  padding: 48px 0;
}

.dc-footer-widget h2 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.dc-footer-widget p {
  margin-bottom: 12px;
  color: rgba(229, 236, 255, 0.7);
}

.dc-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.dc-footer-list a,
.dc-link-button {
  color: rgba(229, 236, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.dc-footer-list a:hover,
.dc-link-button:hover {
  color: #ffffff;
}

.dc-link-button {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.dc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: rgba(229, 236, 255, 0.6);
  font-size: 0.85rem;
}

.dc-consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1050;
  padding: 16px 0 20px;
  display: none;
}

.dc-consent-banner.is-visible {
  display: block;
}

.dc-consent-card {
  background: rgba(10, 22, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(16px);
}

.dc-consent-text p {
  margin: 6px 0 8px;
  color: rgba(229, 236, 255, 0.75);
}

.dc-consent-text a {
  color: #ffffff;
  text-decoration: underline;
}

.dc-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dc-consent-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.dc-consent-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}


.dc-footer-bottom p {
  margin: 0;
}

.dc-footer-bottom a {
  color: rgba(229, 236, 255, 0.85);
}

.dc-footer-bottom a:hover {
  color: #ffffff;
}

/* info: how it works, criteria, score, FAQ -------------------------------------- */
.dc-info {
  margin-top: 24px;
}

.dc-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.dc-info p {
  color: var(--dc-muted);
  line-height: 1.6;
}

.dc-how {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--dc-muted);
  display: grid;
  gap: 8px;
}

.dc-info-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 10px;
}

.dc-info-cat .dc-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.dc-info-cat .dc-cat-icon::after {
  inset: 6px;
}

.dc-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dc-info-table th,
.dc-info-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--dc-line);
  vertical-align: top;
  text-align: left;
}

.dc-info-table thead th {
  border-top: 0;
  color: var(--dc-faint);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dc-info-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  width: 210px;
}

.dc-info-table td {
  color: var(--dc-muted);
}

.dc-info-table .dc-info-weight {
  white-space: nowrap;
  width: 80px;
  color: var(--dc-ink);
  font-variant-numeric: tabular-nums;
}

.dc-faq details {
  border-top: 1px solid var(--dc-line);
  padding: 12px 0;
}

.dc-faq details:first-child {
  border-top: 0;
}

.dc-faq summary {
  cursor: pointer;
  list-style-position: outside;
  margin-left: 1rem;
}

.dc-faq summary h3 {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
}

.dc-faq details p {
  margin: 10px 0 0 1rem;
}

@media (max-width: 767px) {
  .dc-info-table thead {
    display: none;
  }

  .dc-info-table,
  .dc-info-table tbody,
  .dc-info-table tr,
  .dc-info-table th,
  .dc-info-table td {
    display: block;
    width: auto;
  }

  .dc-info-table tr {
    border-top: 1px solid var(--dc-line);
    padding: 10px 0;
  }

  .dc-info-table th,
  .dc-info-table td {
    border-top: 0;
    padding: 2px 0;
    white-space: normal;
  }

  .dc-info-table .dc-info-weight {
    width: auto;
    font-size: 0.8rem;
    color: var(--dc-faint);
  }
}

/* top navigation ------------------------------------------------------------------ */
.dc-topnav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.dc-topnav-link {
  color: var(--dc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.dc-topnav-link:hover,
.dc-topnav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dc-brand a {
  display: inline-block;
}

/* glossary links in running text ---------------------------------------------------- */
.dc-scope-items a,
.dc-info-table th a,
.dc-glossary-more a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.dc-scope-items a:hover,
.dc-info-table th a:hover,
.dc-glossary-more a:hover {
  color: var(--dc-ink);
  text-decoration-style: solid;
}

.dc-glossary-more {
  font-size: 0.85rem;
  margin-top: -4px;
}

.dc-glossary-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-glossary-chips a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dc-card-border);
  background: rgba(24, 104, 221, 0.18);
  color: var(--dc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.dc-glossary-chips a:hover {
  background: rgba(24, 104, 221, 0.4);
}

/* glossary pages ---------------------------------------------------------------------- */
.dc-hero-compact {
  padding-bottom: 8px;
}

.dc-hero-compact .dc-hero-top {
  margin-bottom: 16px;
}

.dc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dc-faint);
}

.dc-breadcrumb a {
  color: var(--dc-muted);
  text-decoration: none;
}

.dc-breadcrumb a:hover {
  color: var(--dc-ink);
  text-decoration: underline;
}

.dc-glossary {
  max-width: 860px;
  padding-top: 24px;
}

.dc-glossary h1 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.dc-glossary-cat {
  margin-top: 24px;
}

.dc-glossary-cat .dc-info-cat {
  margin-top: 0;
}

.dc-glossary-list {
  margin: 0;
}

.dc-glossary-list > div {
  border-top: 1px solid var(--dc-line);
  padding: 12px 0;
}

.dc-glossary-list > div:first-child {
  border-top: 0;
}

.dc-glossary-list dt a {
  color: var(--dc-ink);
  font-size: 1.05rem;
}

.dc-glossary-name {
  color: var(--dc-faint);
  font-weight: 400;
  font-size: 0.85rem;
}

.dc-glossary-list dd {
  color: var(--dc-muted);
  margin: 4px 0 0;
  line-height: 1.55;
}

.dc-glossary-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.dc-glossary-article p,
.dc-glossary-article li {
  color: var(--dc-muted);
  line-height: 1.65;
}

.dc-glossary-article strong {
  color: var(--dc-ink);
}

.dc-glossary-short {
  font-size: 1.1rem;
  color: var(--dc-ink) !important;
}

.dc-glossary-standard {
  font-size: 0.9rem;
}

.dc-code {
  background: rgba(3, 10, 40, 0.65);
  border: 1px solid var(--dc-card-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  font-family: var(--dc-mono);
  font-size: 0.82rem;
  color: #dbe6ff;
  white-space: pre;
  overflow-x: auto;
}

.dc-glossary-cta {
  margin-top: 24px;
}

.dc-glossary-cta h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.dc-glossary-cta p {
  color: var(--dc-muted);
}

/* glossary overlay ---------------------------------------------------------------------- */
.dc-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--dc-card-border);
  border-radius: 20px;
  background: var(--dc-card-solid);
  color: var(--dc-ink);
  box-shadow: var(--dc-shadow);
  overflow: hidden;
}

.dc-dialog[open] {
  display: flex;
  flex-direction: column;
}

.dc-dialog::backdrop {
  background: rgba(3, 8, 30, 0.7);
  backdrop-filter: blur(4px);
}

.dc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 24px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-dialog-full {
  color: var(--dc-muted);
  font-size: 0.85rem;
}

.dc-dialog-close {
  background: none;
  border: 1px solid var(--dc-card-border);
  border-radius: 999px;
  color: var(--dc-ink);
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  line-height: 1;
}

.dc-dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dc-dialog-body {
  overflow-y: auto;
  padding: 0 24px 24px;
}

.dc-dialog-body .dc-glossary-article {
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 20px 0 0;
}

.dc-dialog-body h1 {
  font-size: 1.5rem;
  font-weight: 700;
  outline: none;
}

/* responsive -------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .dc-summary {
    grid-template-columns: 1fr;
  }

  .dc-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .dc-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dc-action-list {
    grid-template-columns: 1fr;
  }

  .dc-table {
    --cols: 32px minmax(0, 1fr) 96px 28px;
  }

  .dc-row-head span:nth-child(4),
  .dc-row-head span:nth-child(5),
  .dc-row-main > .dc-row-weight,
  .dc-row-main > .dc-row-spam {
    display: none;
  }

  .dc-detail-grid {
    grid-template-columns: 1fr;
  }

  .dc-row-detail {
    padding-left: 18px;
  }
}

@media (max-width: 575px) {
  .dc-hero {
    padding-top: 24px;
  }

  .dc-summary,
  .dc-card {
    padding: 18px;
    border-radius: 18px;
  }

  .dc-summary-score {
    flex-direction: column;
    text-align: center;
  }

  .dc-counts,
  .dc-summary-actions {
    justify-content: center;
  }

  .dc-categories {
    grid-template-columns: 1fr;
  }

  .dc-table {
    --cols: 28px minmax(0, 1fr) 64px;
  }

  .dc-row-head {
    display: none;
  }

  .dc-row-main {
    gap: 10px;
    padding: 12px;
  }

  .dc-row-main > .dc-row-toggle {
    display: none;
  }

  .dc-row-result .dc-bar {
    display: none;
  }

  .dc-row-result {
    align-items: flex-end;
  }

  .dc-status-icon {
    width: 24px;
    height: 24px;
  }

  .dc-inline-form {
    flex-direction: column;
  }

  .dc-logo {
    max-width: 160px;
  }

  .dc-consent-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dc-consent-actions {
    width: 100%;
  }

  .dc-consent-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .dc-hero,
  .dc-lead,
  .dc-footer,
  .dc-consent-banner,
  .dc-toolbar,
  .dc-row-toggle,
  .dc-summary-actions {
    display: none !important;
  }

  .dc-summary,
  .dc-card,
  .dc-row {
    box-shadow: none;
    background: #fff;
    border-color: #ccc;
    color: #111;
    backdrop-filter: none;
  }

  .dc-row-detail[hidden] {
    display: block !important;
  }
}
