/* Dead Monkey SEO Grader. Uses the theme's tokens when it is there, with fallbacks for any theme. */
.dmsg {
  --g-prime: var(--prime, #FFC400);
  --g-ink: var(--ink, #0B0B0B);
  --g-teal: var(--teal, #00D1C2);
  --g-red: #ff6b57;
  --g-line: var(--line, rgba(244, 233, 214, 0.16));
  --g-line-strong: var(--line-strong, rgba(244, 233, 214, 0.34));
  --g-mute: var(--mute, rgba(244, 233, 214, 0.66));
}
.dmsg-page, .page-head { --g-prime: var(--prime, #FFC400); --g-ink: var(--ink, #0B0B0B); --g-teal: var(--teal, #00D1C2); --g-red: #ff6b57; --g-line: var(--line, rgba(244, 233, 214, 0.16)); --g-line-strong: var(--line-strong, rgba(244, 233, 214, 0.34)); --g-mute: var(--mute, rgba(244, 233, 214, 0.66)); }

/* ---------- The address box ---------- */
.dmsg-form { margin-top: 1rem; max-width: 52rem; display: grid; gap: 0.75rem; }
.dmsg-field span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-mute); }
.dmsg-row { display: grid; gap: 1rem; align-items: end; }
@media (min-width: 40em) { .dmsg-row { grid-template-columns: 1fr auto; gap: 1.5rem; } }
.dmsg-row input {
  width: 100%; min-width: 0; background: transparent; color: inherit; font: inherit;
  font-size: clamp(1.4rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em;
  border: 0; border-bottom: 2px solid var(--g-line-strong); border-radius: 0; padding: 0.4rem 0 0.6rem; min-height: 3.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dmsg-row input::placeholder { color: inherit; opacity: 0.32; }
.dmsg-row input:focus { outline: none; border-color: var(--g-teal); box-shadow: 0 2px 0 var(--g-teal), 0 12px 26px -12px rgba(0, 209, 194, 0.6); }
.dmsg-go { justify-content: center; white-space: nowrap; }
.dmsg-go[disabled] { opacity: 0.6; cursor: progress; }
.dmsg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dmsg-error { color: var(--g-red); font-weight: 600; min-height: 1.6em; }
.dmsg-error:empty { min-height: 0; }

/* ---------- Progress ---------- */
.dmsg-results { scroll-margin-top: 6rem; outline: none; }
.dmsg-results:not(:empty) { padding-bottom: clamp(3rem, 7vw, 6rem); }
.dmsg-progress { border: 1px solid var(--g-line); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 40rem; }
.dmsg-progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.dmsg-progress li { display: flex; align-items: center; gap: 0.9rem; color: var(--g-mute); opacity: 0.5; transition: opacity 0.4s, color 0.4s; }
.dmsg-progress li::before { content: ''; flex: none; width: 0.9rem; height: 0.9rem; border: 2px solid currentColor; border-radius: 999px; }
.dmsg-progress li.is-on { opacity: 1; color: inherit; font-weight: 600; }
.dmsg-progress li.is-on::before { border-color: var(--g-prime) transparent var(--g-prime) var(--g-prime); animation: dmsg-spin 0.8s linear infinite; }
.dmsg-progress li.is-done { opacity: 1; }
.dmsg-progress li.is-done::before { background: var(--g-teal); border-color: var(--g-teal); }
@keyframes dmsg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dmsg-progress li.is-on::before, .dmsg-spin { animation-duration: 3s; } }

/* ---------- Report ---------- */
.dmsg-report { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.dmsg-top { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 40em) { .dmsg-top { grid-template-columns: auto 1fr; gap: clamp(2rem, 4vw, 3.5rem); } }

.dmsg-tile {
  background: var(--g-prime); color: var(--g-ink); position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: end; column-gap: 1.25rem;
  padding: 1.25rem 1.5rem; box-shadow: 0 0 40px rgba(255, 196, 0, 0.28);
}
.dmsg-tile::after { /* the brand slashes, faint in the corner */
  content: ''; position: absolute; right: -0.5rem; bottom: -0.75rem; width: 7rem; height: 5rem; opacity: 0.14; background: var(--g-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'%3E%3Cpath d='M0 100h26L60 0H34Zm40 0h26L100 0H74Zm40 0h26L140 0h-26Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'%3E%3Cpath d='M0 100h26L60 0H34Zm40 0h26L100 0H74Zm40 0h26L140 0h-26Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dmsg-tile-k { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.dmsg-letter { font-size: clamp(5.5rem, 14vw, 10rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; margin-top: 0.5rem; }
.dmsg-score { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.02em; padding-bottom: 0.35rem; }
@media (min-width: 40em) {
  .dmsg-tile { grid-template-columns: 1fr; width: clamp(12rem, 22vw, 16rem); aspect-ratio: 1; align-content: space-between; padding: 1.5rem; }
  .dmsg-letter { margin-top: 0; }
}

.dmsg-verdict { display: grid; gap: 1rem; align-content: start; }
.dmsg-host { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-mute); overflow-wrap: anywhere; }
.dmsg-h { font-size: clamp(1.8rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; max-width: 18ch; }
.dmsg-sum { font-size: clamp(1.05rem, 1.2vw, 1.25rem); font-weight: 500; max-width: 46ch; }
.dmsg-counts { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dmsg-counts li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem 0.4rem 0.6rem; border: 1px solid var(--g-line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.dmsg-capped { color: var(--g-red); font-weight: 600; }

.dmsg-ico { width: 1.15rem; height: 1.15rem; flex: none; }
.is-fail > .dmsg-ico, .is-fail .dmsg-mark { color: var(--g-red); }
.is-warn > .dmsg-ico, .is-warn .dmsg-mark { color: var(--g-prime); }
.is-pass > .dmsg-ico, .is-pass .dmsg-mark { color: var(--g-teal); }

/* Category bars */
.dmsg-cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-line); }
.dmsg-cat { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--g-line); }
.dmsg-cat-t { font-weight: 700; font-size: 1.05rem; }
.dmsg-cat-g { grid-column: 2; grid-row: 1; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; border-radius: 999px; border: 2px solid currentColor; }
.dmsg-bar { grid-column: 1 / -1; height: 6px; background: var(--g-line); position: relative; overflow: hidden; }
.dmsg-bar span { position: absolute; inset: 0 auto 0 0; background: currentColor; }
.dmsg-cat:has(.dmsg-g--a), .dmsg-cat:has(.dmsg-g--b) { color: var(--g-teal); }
.dmsg-cat:has(.dmsg-g--c), .dmsg-cat:has(.dmsg-g--d) { color: var(--g-prime); }
.dmsg-cat:has(.dmsg-g--f) { color: var(--g-red); }
.dmsg-cat .dmsg-cat-t { color: var(--bone, #F4E9D6); }
@media (min-width: 52em) {
  .dmsg-cat { grid-template-columns: minmax(12rem, 18rem) 1fr auto; gap: 1.5rem; }
  .dmsg-cat-g { grid-column: 3; }
  .dmsg-bar { grid-column: 2; grid-row: 1; }
}

.dmsg-pending { display: flex; align-items: center; gap: 0.75rem; color: var(--g-mute); font-weight: 600; }
.dmsg-spin { width: 1rem; height: 1rem; border: 2px solid var(--g-prime); border-right-color: transparent; border-radius: 999px; animation: dmsg-spin 0.8s linear infinite; }

/* Problems and passes */
.dmsg-group { display: grid; gap: 0.5rem; }
.dmsg-group-t { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-mute); padding-bottom: 0.5rem; }
.dmsg-group.is-fail .dmsg-group-t { color: var(--g-red); }
.dmsg-group.is-warn .dmsg-group-t { color: var(--g-prime); }
details.dmsg-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.6rem; padding: 1rem 0; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); color: var(--g-teal); }
details.dmsg-group > summary::-webkit-details-marker { display: none; }
details.dmsg-group > summary::after { content: ''; width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s; margin-left: 0.25rem; }
details.dmsg-group[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.dmsg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-line); }
details .dmsg-list { border-top: 0; }
.dmsg-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--g-line); }
.dmsg-mark { padding-top: 0.15rem; }
.dmsg-item-body { display: grid; gap: 0.35rem; max-width: 52rem; }
.dmsg-item-t { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.dmsg-found { font-weight: 600; overflow-wrap: anywhere; }
.dmsg-why { color: var(--g-mute); }
.dmsg-fix { color: var(--g-mute); }
.dmsg-fix strong { color: var(--g-prime); font-weight: 700; }
@media (min-width: 64em) {
  .dmsg-item { grid-template-columns: auto minmax(12rem, 16rem) 1fr; column-gap: 1.5rem; }
  .dmsg-item-body { display: contents; }
  .dmsg-item-t { grid-column: 2; grid-row: 1 / span 3; }
  .dmsg-found, .dmsg-why, .dmsg-fix { grid-column: 3; }
}

/* Call to action */
.dmsg-cta { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(255, 196, 0, 0.5); box-shadow: 0 0 40px rgba(255, 196, 0, 0.08), inset 0 0 0 1px rgba(255, 196, 0, 0.08); }
.dmsg-cta > div { display: grid; gap: 0.6rem; }
.dmsg-cta-t { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.dmsg-cta p { color: var(--g-mute); max-width: 52ch; }
.dmsg-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 52em) { .dmsg-cta { grid-template-columns: 1fr auto; } }

.dmsg-note { max-width: 60rem; overflow-wrap: anywhere; }

/* Bone section text on the "What we check" cells keeps theme styles; nothing to add. */
