/* A report section must never remain hidden after the reveal controller marks it
   visible. Several legacy animation bundles define competing fade-in states. */
html[data-page="domain"] body main.container .fade-in.visible {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Evidence Summary must use the same severity language as the verdict.  The
   legacy green rail looked like a safety signal beside a CRITICAL label. */
html[data-page="domain"] body main.container .intel-brief.intel-brief--high {
  border-left-color: rgba(239, 68, 68, .62) !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--high .intel-label i {
  color: #f87171 !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--high .intel-header {
  background: rgba(239, 68, 68, .045) !important;
  border-bottom-color: rgba(239, 68, 68, .18) !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--high .intel-label {
  color: #f87171 !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--medium {
  border-left-color: rgba(234, 179, 8, .58) !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--medium .intel-label i {
  color: #facc15 !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--medium .intel-header {
  background: rgba(234, 179, 8, .035) !important;
  border-bottom-color: rgba(234, 179, 8, .16) !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--medium .intel-label {
  color: #facc15 !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--pending {
  border-left-color: rgba(59, 130, 246, .52) !important;
}

html[data-page="domain"] body main.container .intel-brief.intel-brief--pending .intel-label i {
  color: #60a5fa !important;
}

/* Reveal effects are decorative. Reduced-motion users, print renderers and a
   failed observer must never receive an invisible report. */
@media (prefers-reduced-motion: reduce), print {
  html[data-page="domain"] body main.container .fade-in,
  html[data-page="domain"] body main.container .stagger {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

html[data-page="domain"] body main.container .pd-victim-section {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-page="domain"] body main.container .pd-victim-section :where(.pd-victim-panel, .victim-box) {
  background: var(--card) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

html[data-page="domain"] body main section.pd-report-hero .pd-report-hero__statusline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state {
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 11px;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state__label {
  color: var(--muted);
  font: 700 .62rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font: 700 .8rem/1.25 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state--threat {
  background: rgba(239, 68, 68, .15);
  border-color: rgba(239, 68, 68, .34);
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state--threat strong {
  color: #f87171;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state--active strong {
  color: #60a5fa;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state--unknown strong {
  color: #facc15;
}

html[data-page="domain"] body main section.pd-report-hero .pd-hero-state--unavailable strong {
  color: var(--muted);
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-panel {
  grid-area: risk;
  display: flex;
  width: 250px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-panel > figure.pd-risk-meter {
  grid-area: auto !important;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-meter__explain {
  width: 100%;
  padding: 12px 13px;
  background: rgba(17, 22, 32, .82);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-meter__explain-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 750 .62rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-meter__explain ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-meter__explain li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text2);
  font: 550 .68rem/1.35 "JetBrains Mono", ui-monospace, monospace;
}

html[data-page="domain"] body main section.pd-report-hero .pd-risk-meter__explain li i {
  margin-top: .38em;
  color: #ef4444;
  font-size: .34rem;
}

html[data-page="domain"] body main.container .ev-badge.neutral {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, .12) !important;
  border-color: rgba(59, 130, 246, .28) !important;
}

html[data-page="domain"] body main.container .pd-related-infrastructure {
  padding: 22px !important;
}

html[data-page="domain"] body main.container .pd-related-intro {
  max-width: 78ch;
  margin: -8px 0 18px;
  color: var(--muted);
  font: 500 .78rem/1.55 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container .pd-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

html[data-page="domain"] body main.container .pd-related-group {
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

html[data-page="domain"] body main.container .pd-related-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

html[data-page="domain"] body main.container .pd-related-group > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text);
  font: 700 .82rem/1.3 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container .pd-related-group > h3 > span {
  margin-left: auto;
  padding: 3px 7px;
  color: #93c5fd;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .26);
  border-radius: 999px;
  font: 700 .65rem/1 "JetBrains Mono", ui-monospace, monospace;
}

@media (max-width: 760px) {
  html[data-page="domain"] body main.container .pd-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  html[data-page="domain"] body main section.pd-report-hero .pd-risk-panel {
    width: min(100%, 360px);
    justify-self: center;
  }

  html[data-page="domain"] body main section.pd-report-hero .pd-hero-state {
    min-width: min(100%, 210px);
    flex: 1 1 190px;
  }
}

/* Mobile evidence rows: put the value on its own line instead of squeezing it
   into a 120px third column. Status badges can then remain fully readable. */
@media (max-width: 480px) {
  html[data-page="domain"] body main.container .evidence-right .trow:not(.trow-expandable) {
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 10px !important;
    row-gap: 5px !important;
  }

  html[data-page="domain"] body main.container .evidence-right .trow:not(.trow-expandable) > .trow-label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html[data-page="domain"] body main.container .evidence-right .trow:not(.trow-expandable) > .trow-value {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-page="domain"] body main.container .evidence-right .trow-value > .badge {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  html[data-page="domain"] body main.container :where(.share-btn, .trow-expand-btn) {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-page="domain"] body main.container .forensic-actions :where(a, button) {
    min-height: 44px !important;
  }

  /* These sections are consistently much taller than the generic 420px
     placeholder. Closer intrinsic sizes prevent the footer moving by several
     screens as a reader scrolls. */
  html[data-page="domain"] body main.container .pd-external-reports {
    contain-intrinsic-size: auto 1500px !important;
  }

  html[data-page="domain"] body main.container .pd-victim-section {
    contain-intrinsic-size: auto 2300px !important;
  }

  html[data-page="domain"] body main.container .pd-related-infrastructure {
    contain-intrinsic-size: auto 1450px !important;
  }
}

html[data-page="domain"] body main.container .cta-btn[href$="/live/"] {
  color: #fff !important;
  background: #047857 !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-page="domain"] :where(.pd-live-dot, .live-dot, .intel-status.high) {
    animation: none !important;
  }
}

/* External-report chips keep the compact legacy visual language, but every row
   now consumes the full available width. Flex growth also handles conditional
   cards without brittle nth-child rules. */
html[data-page="domain"] body main.container .ev-grid-compact {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html[data-page="domain"] body main.container .ev-grid-compact > .ev-chip {
  flex: 1 1 calc((100% - 16px) / 3) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Law-enforcement actions and listing appeals are intentionally separate trust
   contexts. The first is a balanced authority row; the latter is a site review. */
html[data-page="domain"] body main.container .pd-victim-section .victim-actions {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}

html[data-page="domain"] body main.container .pd-agency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 60px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
  min-height: 144px;
  height: 100%;
  padding: 16px !important;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card > .pd-agency-logo-box {
  grid-column: 1;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card > .va-info {
  grid-column: 2;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card > .pd-agency-open {
  grid-column: 3;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-agency-logo-box,
html[data-page="domain"] body main.container .pd-agency-grid .va-icon {
  display: flex !important;
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  padding: 6px !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.9) !important;
}

html[data-page="domain"] body main.container .pd-agency-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

html[data-page="domain"] body main.container .pd-agency-logo--center-crop {
  object-fit: cover !important;
  object-position: center !important;
}

html[data-page="domain"] body main.container .pd-agency-name {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--text) !important;
  font: 750 .9rem/1.25 Inter, system-ui, sans-serif;
  text-decoration: none;
}

html[data-page="domain"] body main.container .pd-agency-name:hover {
  color: #93c5fd !important;
}

html[data-page="domain"] body main.container .pd-agency-grid .va-desc {
  min-height: 2.8em;
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.4;
}

html[data-page="domain"] body main.container :where(.pd-agency-contact, .pd-agency-route) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  color: #60a5fa !important;
  font: 650 .68rem/1.3 Inter, system-ui, sans-serif;
  text-decoration: none;
}

html[data-page="domain"] body main.container .pd-agency-contact {
  flex-wrap: wrap;
}

html[data-page="domain"] body main.container .pd-agency-contact strong {
  color: #93c5fd !important;
  font: 750 .82rem/1.25 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -.02em;
}

html[data-page="domain"] body main.container .pd-agency-contact:hover strong {
  color: #dbeafe !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-page="domain"] body main.container .pd-agency-route {
  color: var(--muted) !important;
}

html[data-page="domain"] body main.container .pd-agency-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #60a5fa;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.24);
  border-radius: 9px;
  text-decoration: none;
}

html[data-page="domain"] body main.container .pd-agency-open:hover {
  color: #fff;
  background: rgba(59,130,246,.2);
  border-color: rgba(96,165,250,.5);
  transform: translateY(-1px);
}

html[data-page="domain"] body main.container .pd-specialist-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-page="domain"] body main.container .pd-specialist-logo {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
}

html[data-page="domain"] body main.container .pd-domain-appeal-block {
  width: 100%;
  padding: 14px;
  background: rgba(59,130,246,.035);
  border: 1px solid rgba(59,130,246,.16);
  border-radius: 13px;
}

html[data-page="domain"] body main.container .pd-domain-appeal-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 9px;
  color: #93c5fd;
  font: 750 .68rem/1.3 Inter, system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html[data-page="domain"] body main.container .pd-domain-appeal-label span {
  margin-left: auto;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-domain-appeal-block > .pd-domain-appeal {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  width: 100% !important;
  min-height: 78px;
  border-inline-start: 3px solid #3b82f6 !important;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-domain-appeal > .va-icon {
  grid-column: 1;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-domain-appeal > .va-info {
  grid-column: 2;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-domain-appeal > .pd-domain-appeal-arrow {
  grid-column: 3;
  grid-row: 1;
}

html[data-page="domain"] body main.container .pd-domain-appeal .va-icon {
  width: 48px !important;
  height: 48px !important;
  color: #93c5fd !important;
  background: rgba(59,130,246,.12) !important;
}

html[data-page="domain"] body main.container .pd-domain-appeal-arrow {
  color: #60a5fa;
  font-size: .78rem;
  transition: transform 160ms ease;
}

html[data-page="domain"] body main.container .pd-domain-appeal:hover .pd-domain-appeal-arrow {
  transform: translateX(3px);
}

/* Country authority cards: verified artwork can replace the deterministic flag
   and initials fallback. Unverified scraped logos are never shown as official. */
html[data-page="domain"] body main.container #countryInfoContainer .ci-card {
  position: relative;
  align-items: flex-start !important;
  gap: 18px !important;
  min-width: 0;
  padding: 18px 20px 18px 21px !important;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 96%, #3b82f6 4%) !important;
  border: 1px solid rgba(148,163,184,.13) !important;
  border-inline-start: 3px solid rgba(96,165,250,.64) !important;
  border-radius: 13px !important;
  box-shadow: 0 12px 28px -24px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.025) !important;
  transform: none !important;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  display: block !important;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(96,165,250,.42), rgba(96,165,250,.06) 42%, transparent 76%);
  opacity: 1;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card::after {
  display: none !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card:is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--card) 93%, #3b82f6 7%) !important;
  border-color: rgba(96,165,250,.32) !important;
  border-inline-start-color: #60a5fa !important;
  box-shadow: 0 16px 34px -25px rgba(0,0,0,.96), inset 0 1px 0 rgba(255,255,255,.04) !important;
  transform: none !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card.ci-card--primary-route {
  border-inline-start-color: #3b82f6 !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #161d29 !important;
  border: 1px dashed rgba(148,163,184,.34) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

html[data-page="domain"] body main.container .ci-authority-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px 7px 17px;
  color: #cbd5e1;
  background: linear-gradient(145deg, rgba(148,163,184,.07), transparent 58%);
  font: 750 .92rem/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -.04em;
}

html[data-page="domain"] body main.container .ci-authority-fallback > span {
  font: 750 .92rem/1 "JetBrains Mono", ui-monospace, monospace !important;
  letter-spacing: -.04em;
}

html[data-page="domain"] body main.container .ci-authority-fallback::after {
  content: "DIRECTORY";
  position: absolute;
  inset: auto 5px 6px;
  color: #64748b;
  font: 700 .43rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  text-align: center;
}

html[data-page="domain"] body main.container .ci-authority-legacy {
  display: none !important;
}

html[data-page="domain"] body main.container .ci-authority-fallback .ci-authority-fallback-flag {
  position: absolute;
  inset: 7px 7px auto auto;
  font: 400 1rem/1 "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
  letter-spacing: 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo {
  overflow: visible !important;
  border: 1px solid rgba(226,232,240,.9) !important;
  box-shadow: 0 10px 24px -17px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.9) !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo.ci-card-logo--light-plate {
  background: #f7f8fa !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo.ci-card-logo--dark-plate {
  background: #111827 !important;
  border-color: rgba(71,85,105,.82) !important;
  box-shadow: 0 10px 24px -17px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.055) !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.ci-card-logo--wide {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo::after {
  content: "\2713";
  position: absolute;
  z-index: 3;
  inset: auto -5px -5px auto;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #fff;
  background: #2563eb;
  border: 2px solid var(--card);
  border-radius: 50%;
  font: 800 .62rem/1 Inter, system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo .ci-authority-fallback {
  display: none;
}

html[data-page="domain"] body main.container .ci-authority-logo--verified {
  position: absolute;
  inset: 8px;
  display: block;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity 160ms ease;
}

html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo .ci-authority-logo--verified {
  opacity: 1;
}

html[data-page="domain"] body main.container .ci-card-name {
  display: block !important;
  width: auto !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--text) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font: 760 1rem/1.35 Inter, system-ui, sans-serif;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

html[data-page="domain"] body main.container :where(.ci-card-body, .ci-card-detail) {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-wrap: anywhere;
}

html[data-page="domain"] body main.container .ci-card-body {
  flex: 1 1 auto !important;
  width: auto !important;
}

html[data-page="domain"] body main.container .ci-card-detail {
  max-width: 82ch;
  color: var(--text2) !important;
  font: 450 .8rem/1.55 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container :where(.ci-card-body, .ci-card-name, .ci-card-detail)::before,
html[data-page="domain"] body main.container :where(.ci-card-body, .ci-card-name, .ci-card-detail)::after {
  display: none !important;
}

html[data-page="domain"] body main.container .ci-authority-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 12px;
}

html[data-page="domain"] body main.container .ci-authority-official-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: 100%;
  padding: 6px 10px;
  color: #93c5fd !important;
  -webkit-text-fill-color: currentColor !important;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 8px;
  font: 700 .72rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
}

html[data-page="domain"] body main.container .ci-authority-official-link:is(:hover, :focus-visible) {
  color: var(--text) !important;
  background: rgba(59,130,246,.17);
  border-color: rgba(96,165,250,.48);
}

html[data-page="domain"] body main.container .ci-card--primary-route .ci-authority-official-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 8px 20px -14px rgba(37,99,235,.95);
}

html[data-page="domain"] body main.container .ci-card--primary-route .ci-authority-official-link:is(:hover, :focus-visible) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #1d4ed8;
  border-color: #60a5fa;
}

html[data-page="domain"] body main.container .ci-authority-official-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-page="domain"] body main.container .ci-authority-official-link .fa-arrow-up-right-from-square {
  font-size: .62rem;
  opacity: .78;
}

html[data-page="domain"] body main.container .ci-authority-source-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
  font: 650 .66rem/1.3 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container .ci-authority-source-verified time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

html[data-page="domain"] body main.container .ci-logo-representation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 7px;
  color: #cbd5e1;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 6px;
  font: 650 .64rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .015em;
}

html[data-page="domain"] body main.container .ci-logo-representation--parent-agency {
  color: #bfdbfe;
  background: rgba(59,130,246,.1);
  border-color: rgba(96,165,250,.23);
}

html[data-page="domain"] body main.container .ci-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

html[data-page="domain"] body main.container .ci-contact {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  column-gap: 8px;
  min-height: 48px;
  padding: 7px 10px;
  color: #93c5fd !important;
  background: rgba(15,23,42,.42);
  border: 1px solid rgba(96,165,250,.19);
  border-radius: 9px;
  text-decoration: none;
}

html[data-page="domain"] body main.container .ci-contact > i,
html[data-page="domain"] body main.container .ci-contact > svg {
  grid-area: icon;
  color: var(--blue);
  font-size: .9rem;
}

html[data-page="domain"] body main.container .ci-contact span {
  grid-area: label;
  color: var(--muted);
  font: 650 .64rem/1.2 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container .ci-contact strong {
  grid-area: value;
  overflow-wrap: break-word;
  word-break: normal;
  color: #93c5fd !important;
  font: 750 .88rem/1.35 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -.025em;
}

html[data-page="domain"] body main.container .ci-contact:is(:hover, :focus-visible) {
  color: var(--text) !important;
  background: rgba(59,130,246,.17);
  border-color: rgba(96,165,250,.5);
}

html[data-page="domain"] body main.container .ci-contact:is(:hover, :focus-visible) strong {
  color: var(--text) !important;
}

html[data-page="domain"] body main.container .ci-contact-verified {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #34d399;
  font: 650 .68rem/1.3 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container .ci-contact-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 3px;
  min-height: 28px;
  padding: 5px 7px;
  color: var(--blue) !important;
  background: rgba(59,130,246,.09);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 6px;
  font: 650 .59rem/1 Inter, system-ui, sans-serif;
  text-decoration: none;
}

html[data-page="domain"] body main.container .ci-contact-source-link:is(:hover, :focus-visible) {
  color: var(--text) !important;
  border-color: rgba(96,165,250,.46);
}

html[data-page="domain"] body main.container .ci-contact-source-link .fa-arrow-up-right-from-square {
  font-size: .52rem;
}

html[data-page="domain"] body main.container .ci-contact--directory {
  background: rgba(59,130,246,.065);
  border-style: dashed;
  border-color: rgba(96,165,250,.28);
}

html[data-page="domain"] body main.container .ci-contact-directory-note {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: 5px;
  color: #facc15;
  font: 650 .62rem/1.35 Inter, system-ui, sans-serif;
}

html[data-page="domain"] body main.container :where(.ci-authority-official-link, .ci-contact, .ci-contact-source-link):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

html[data-page="domain"][data-theme="light"] body main.container :where(.ci-authority-source-verified, .ci-contact-verified) {
  color: #047857;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-card {
  background: color-mix(in srgb, var(--card) 97%, #3b82f6 3%) !important;
  border-color: rgba(51,65,85,.14) !important;
  border-inline-start-color: rgba(37,99,235,.62) !important;
  box-shadow: 0 14px 30px -26px rgba(15,23,42,.46), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-card:is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--card) 94%, #3b82f6 6%) !important;
  border-color: rgba(37,99,235,.28) !important;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-card-logo.has-directory-fallback {
  background: #eef2f7 !important;
  border-color: rgba(71,85,105,.32) !important;
}

html[data-page="domain"][data-theme="light"] body main.container .ci-authority-fallback {
  color: #334155;
  background: linear-gradient(145deg, rgba(100,116,139,.08), transparent 58%);
}

html[data-page="domain"][data-theme="light"] body main.container .ci-authority-fallback::after {
  color: #64748b;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-card-logo.has-verified-logo::after {
  border-color: #fff;
}

html[data-page="domain"][data-theme="light"] body main.container .ci-card-name {
  color: #0f172a !important;
}

html[data-page="domain"][data-theme="light"] body main.container .ci-card-detail {
  color: #475569 !important;
}

html[data-page="domain"][data-theme="light"] body main.container .ci-logo-representation {
  color: #334155;
  background: rgba(226,232,240,.7);
  border-color: rgba(100,116,139,.24);
}

html[data-page="domain"][data-theme="light"] body main.container .ci-logo-representation--parent-agency {
  color: #1d4ed8;
  background: rgba(59,130,246,.08);
  border-color: rgba(37,99,235,.2);
}

html[data-page="domain"][data-theme="light"] body main.container .ci-contact {
  background: rgba(239,246,255,.72);
  border-color: rgba(37,99,235,.18);
}

html[data-page="domain"][data-theme="light"] body main.container .ci-contact span {
  color: #475569;
}

html[data-page="domain"][data-theme="light"] body main.container .ci-contact strong,
html[data-page="domain"][data-theme="light"] body main.container .ci-contact > i,
html[data-page="domain"][data-theme="light"] body main.container .ci-contact > svg {
  color: #1d4ed8 !important;
}

/* The legacy theme bundle keeps dark-mode code colors after a live theme
   switch. Scope the correction to the unsubmitted country complaint draft. */
html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-draft-note {
  color: #475569 !important;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-template {
  background: #f8fafc !important;
  border-color: rgba(71,85,105,.2) !important;
  box-shadow: none !important;
}

html[data-page="domain"][data-theme="light"] body main.container #countryInfoContainer .ci-template :where(pre, code) {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

@media (max-width: 940px) {
  html[data-page="domain"] body main.container .ev-grid-compact > .ev-chip {
    flex-basis: calc((100% - 8px) / 2) !important;
  }
}

@media (max-width: 820px) {
  html[data-page="domain"] body main.container .pd-agency-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card {
    min-height: 116px;
  }
}

@media (max-width: 640px) {
  html[data-page="domain"] body main.container .ev-grid-compact > .ev-chip {
    flex-basis: 100% !important;
    min-height: 44px !important;
  }

  html[data-page="domain"] body main.container .pd-specialist-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-page="domain"] body main.container .pd-victim-section .victim-actions .pd-agency-grid > .pd-agency-card {
    grid-template-columns: 60px minmax(0, 1fr) 32px !important;
  }

  html[data-page="domain"] body main.container .pd-domain-appeal-label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html[data-page="domain"] body main.container .pd-domain-appeal-label span {
    width: 100%;
    margin-left: 0;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card {
    align-items: flex-start !important;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.ci-card-logo--wide {
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
  }

  html[data-page="domain"] body main.container .ci-contacts,
  html[data-page="domain"] body main.container .ci-contact {
    width: 100%;
  }
}

/* The legacy polish layer squeezed seven blocklist cards into one desktop row,
   leaving only a few pixels for names and statuses. Keep a compact 5-column
   maximum while reserving a real text column inside every card. */
@media (min-width: 769px) {
  html[data-page="domain"] body main.container .bl-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  }

  html[data-page="domain"] body main.container .bl-item {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 14px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html[data-page="domain"] body main.container .bl-info {
    min-width: 0 !important;
  }

  html[data-page="domain"] body main.container .bl-arrow {
    grid-column: 3 !important;
  }
}

@media (max-width: 480px) {
  html[data-page="domain"] body main.container section.pd-victim-section {
    padding-inline: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  html[data-page="domain"] body main.container .pd-victim-section :where(.pd-victim-panel, .victim-box) {
    padding-inline: 10px !important;
  }

  html[data-page="domain"] body main.container .country-form {
    padding-inline: 0 !important;
  }

  html[data-page="domain"] body main.container .country-select-wrap {
    width: 100%;
    min-width: 0 !important;
    max-width: none;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card {
    flex-direction: column;
    padding: 14px !important;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }

  html[data-page="domain"] body main.container #countryInfoContainer .ci-card-logo.ci-card-logo--wide {
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
  }

  html[data-page="domain"] body main.container .ci-card-body,
  html[data-page="domain"] body main.container .ci-authority-official-link {
    width: 100%;
  }
}

/* Final mobile interaction sizing: this block intentionally comes last so
   older hero rules cannot shrink icon-only share controls back to 44x32. */
@media (max-width: 480px) {
  html[data-page="domain"] body main.container section.pd-report-hero .share-bar :where(a.share-btn, button.share-btn) {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }
}

/* 2026-08-02 report surface: one restrained ambient layer replaces the
   competing legacy particle/orb backgrounds. Only transform is animated, so
   the effect remains compositor-friendly and completely static on mobile. */
html[data-page="domain"] body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

html[data-page="domain"] body::before,
html[data-page="domain"] body::after {
  content: "";
  display: block !important;
  position: fixed;
  z-index: 0 !important;
  pointer-events: none;
}

html[data-page="domain"] body::before {
  inset: -18vmax;
  background:
    radial-gradient(circle at 21% 18%, rgba(59, 130, 246, .115), transparent 25%),
    radial-gradient(circle at 77% 28%, rgba(239, 68, 68, .09), transparent 24%),
    radial-gradient(circle at 55% 76%, rgba(16, 185, 129, .065), transparent 30%) !important;
  opacity: .9 !important;
  mix-blend-mode: normal !important;
  will-change: transform;
  animation: pd-report-ambient-drift 30s ease-in-out infinite alternate !important;
}

html[data-page="domain"] body::after {
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .022) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 72%);
  opacity: .6 !important;
  mix-blend-mode: normal !important;
  animation: none !important;
}

html[data-page="domain"]::before,
html[data-page="domain"]::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

html[data-page="domain"] body > :where(main, footer, .analytics-link) {
  position: relative;
  z-index: 1;
}

html[data-page="domain"] body > .pd-grid-bg,
html[data-page="domain"] body > .pd-grain,
html[data-page="domain"] body > .pd-orb,
html[data-page="domain"] body > .pd-shape {
  display: none !important;
}

@keyframes pd-report-ambient-drift {
  from { transform: translate3d(-1.5%, -1%, 0) rotate(-1deg) scale(1); }
  to { transform: translate3d(1.5%, 1.25%, 0) rotate(1deg) scale(1.035); }
}

html[data-page="domain"][data-theme="light"] body::before {
  background:
    radial-gradient(circle at 21% 18%, rgba(37, 99, 235, .075), transparent 25%),
    radial-gradient(circle at 77% 28%, rgba(220, 38, 38, .05), transparent 24%),
    radial-gradient(circle at 55% 76%, rgba(5, 150, 105, .045), transparent 30%) !important;
}

html[data-page="domain"][data-theme="light"] body::after {
  background:
    linear-gradient(rgba(51, 65, 85, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, .035) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
  opacity: .45 !important;
}

/* Explicit hierarchy relation for reports about a host beneath a base domain. */
html[data-page="domain"] body main.container .pd-related-parent {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(59,130,246,.075), var(--card) 46%);
}

html[data-page="domain"] body main.container .pd-parent-report-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(9, 9, 11, .38);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
}

html[data-page="domain"] body main.container .pd-parent-report-card:hover {
  border-color: rgba(96,165,250,.38);
  background: rgba(59,130,246,.085);
}

html[data-page="domain"] body main.container .pd-parent-report-card > img {
  width: 38px;
  height: 38px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

html[data-page="domain"] body main.container .pd-parent-report-card > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

html[data-page="domain"] body main.container .pd-parent-report-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}

html[data-page="domain"] body main.container .pd-parent-report-card small {
  color: var(--muted);
  font-size: .7rem;
}

html[data-page="domain"] body main.container .pd-parent-report-card > b {
  padding: 4px 8px;
  color: #f87171;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.22);
  border-radius: 999px;
  font: 700 .66rem/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
}

html[data-page="domain"] body main.container .pd-parent-report-card > b.is-unavailable {
  color: #34d399;
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.22);
}

html[data-page="domain"] body main.container .action-card h3 {
  margin: 0 0 4px;
  color: var(--text) !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
}

/* Keep motion intentional: ambient drift + the risk meter communicate state.
   Legacy bundles also pulse every stat, icon, CTA and signal indefinitely. */
html[data-page="domain"] body main.container :where(
  .grid3 > .stat,
  .stat-icon,
  .stat-value,
  .action-icon,
  .btn-primary,
  .report-btn,
  .signal-card
) {
  animation: none !important;
}

html[data-page="domain"] body main.container :where(.pd-embed-card, .icann-roast) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-page="domain"] body main.container .pd-embed-card :where(pre, code, .pd-embed-code) {
  max-width: 100%;
  overflow-x: auto;
}

html[data-page="domain"] body main.container .pd-embed-card :where(.pd-embed-actions, .pd-embed-card__actions),
html[data-page="domain"] body main.container .icann-roast :where(.editorial-disclosure-content, .icann-roast-foot) {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

html[data-page="domain"] body main.container .icann-roast :where(.icann-roast-investigation, .icann-roast-source) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  html[data-page="domain"] body::before {
    inset: -10vmax;
    opacity: .72 !important;
    animation: none !important;
    transform: none;
    will-change: auto;
  }

  html[data-page="domain"] body::after {
    display: block !important;
    background-size: 40px 40px !important;
    opacity: .42 !important;
  }

  html[data-page="domain"][data-theme="light"] body::after {
    background-size: 40px 40px !important;
  }

  html[data-page="domain"] body main.container .threat-banner {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 10px !important;
    margin-top: 12px !important;
    padding: 11px 12px !important;
  }

  html[data-page="domain"] body main.container .threat-banner .tb-icon {
    align-self: start;
    font-size: 22px;
    line-height: 1.2;
  }

  html[data-page="domain"] body main.container .threat-banner .tb-title {
    font-size: .86rem;
    line-height: 1.3;
  }

  html[data-page="domain"] body main.container .threat-banner .tb-sub {
    margin-top: 3px;
    font-size: .74rem;
    line-height: 1.42;
  }

  html[data-page="domain"] body main.container .threat-banner .tb-cta {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  html[data-page="domain"] body main.container section.pd-report-hero {
    padding: 18px 0 10px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__layout {
    gap: 11px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__favicon {
    width: 44px !important;
    height: 44px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__domain {
    font-size: clamp(1.18rem, 6vw, 1.55rem) !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__summary {
    font-size: .8rem !important;
    line-height: 1.4 !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__context {
    overflow: hidden;
    margin-top: 4px !important;
    font-size: .74rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 11px 0 !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__status-grid > [role="listitem"] {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 7px !important;
    min-height: 92px;
    padding: 8px 8px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__status-grid > [role="listitem"] > span:first-child {
    width: 28px !important;
    height: 28px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__status-grid strong {
    font-size: .78rem !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons {
    margin-bottom: 8px !important;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags,
  html[data-page="domain"] body main.container .grid3,
  html[data-page="domain"] body main.container .pd-coverage,
  html[data-page="domain"] body main.container .pd-capture-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags,
  html[data-page="domain"] body main.container .grid3,
  html[data-page="domain"] body main.container .pd-coverage {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(96,165,250,.38) transparent;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child::-webkit-scrollbar,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags::-webkit-scrollbar,
  html[data-page="domain"] body main.container .grid3::-webkit-scrollbar,
  html[data-page="domain"] body main.container .pd-coverage::-webkit-scrollbar,
  html[data-page="domain"] body main.container .pd-capture-nav::-webkit-scrollbar {
    display: none;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child::-webkit-scrollbar,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags::-webkit-scrollbar,
  html[data-page="domain"] body main.container .grid3::-webkit-scrollbar,
  html[data-page="domain"] body main.container .pd-coverage::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child::-webkit-scrollbar-thumb,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags::-webkit-scrollbar-thumb,
  html[data-page="domain"] body main.container .grid3::-webkit-scrollbar-thumb,
  html[data-page="domain"] body main.container .pd-coverage::-webkit-scrollbar-thumb {
    background: rgba(96,165,250,.38);
    border-radius: 99px;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child > span,
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags > :where(span, a),
  html[data-page="domain"] body main.container .grid3 > .stat,
  html[data-page="domain"] body main.container .pd-coverage > .pd-cov,
  html[data-page="domain"] body main.container .pd-capture-nav > * {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__risk-reasons > div:last-child {
    padding-bottom: 3px;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__tags {
    justify-content: flex-start !important;
    margin-top: 7px !important;
    padding-bottom: 4px;
  }

  html[data-page="domain"] body main.container section.pd-report-hero .share-bar {
    margin-top: 5px !important;
  }

  html[data-page="domain"] body main.container .grid3 {
    gap: 8px !important;
    margin: 13px 0 !important;
    padding-bottom: 3px;
  }

  html[data-page="domain"] body main.container .grid3 > .stat {
    width: min(72vw, 220px);
    min-height: 58px;
    animation: none !important;
  }

  html[data-page="domain"] body main.container .pd-coverage {
    align-items: center;
    gap: 7px !important;
    padding-block: 8px !important;
  }

  html[data-page="domain"] body main.container .pd-coverage > :where(.pd-coverage-label, .pd-cov) {
    flex: 0 0 auto !important;
  }

  html[data-page="domain"] body main.container .pd-capture-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  }

  html[data-page="domain"] body main.container .pipe-details {
    padding-left: 14px !important;
  }

  html[data-page="domain"] body main.container .pipe-details [style*="white-space:nowrap"] {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html[data-page="domain"] body main.container .pd-parent-report-card {
    grid-template-columns: 36px minmax(0, 1fr) 14px;
  }

  html[data-page="domain"] body main.container .pd-parent-report-card > b {
    grid-column: 2;
    width: fit-content;
  }

  html[data-page="domain"] body main.container .pd-parent-report-card > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 350px) {
  html[data-page="domain"] body main.container section.pd-report-hero .pd-report-hero__status-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-page="domain"] body::before,
  html[data-page="domain"] body::after {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

@media (forced-colors: active) {
  html[data-page="domain"] body::before,
  html[data-page="domain"] body::after {
    display: none !important;
  }
}

/* Keyboard and control semantics for the report's dense technical UI. */
.pd-skip-link {
  position: fixed;
  z-index: 100000;
  inset: 10px auto auto 10px;
  padding: 10px 14px;
  color: #fff;
  background: #1d4ed8;
  border-radius: 8px;
  font: 700 .82rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .16s ease;
}
.pd-skip-link:focus { transform: translateY(0); }

html[data-page="domain"] body main.container .pd-report-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 18px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 11px;
  background: rgba(17, 24, 39, .58);
  scrollbar-width: thin;
}
html[data-page="domain"] body main.container .pd-report-jump > span,
html[data-page="domain"] body main.container .pd-report-jump > a {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 7px;
  font: 700 .68rem/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
}
html[data-page="domain"] body main.container .pd-report-jump > span { color: #94a3b8; }
html[data-page="domain"] body main.container .pd-report-jump > a {
  border: 1px solid rgba(148, 163, 184, .12);
  color: #cbd5e1;
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
}
html[data-page="domain"] body main.container .pd-report-jump > a:hover {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, .32);
  background: rgba(59, 130, 246, .09);
}
html[data-page="domain"] body main.container .pd-report-jump > a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}
html[data-page="domain"] body main.container :where(#report-pipeline, #report-captures, #report-intelligence, #report-tools, #report-help, #report-related) {
  scroll-margin-top: 92px;
}

html[data-page="domain"] body main.container :where(.pipe-toggle, .bl-summary, .badges-more, .pd-copy-value, button.cs-selected, button.cs-option) {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
html[data-page="domain"] body main.container .pipe-toggle:hover { background: rgba(59, 130, 246, .07) !important; }
html[data-page="domain"] body main.container :where(.pipe-toggle, [data-pd-vendor-toggle], .bl-summary, .badges-more, .pd-copy-value):focus-visible,
html[data-page="domain"] body main.container :where(.pd-report-hero__risk-reasons, .pd-report-hero__tags, .pd-coverage):focus-visible {
  outline: 2px solid #60a5fa !important;
  outline-offset: 2px !important;
}
html[data-page="domain"] body main.container .badges-more {
  border: 1px solid rgba(59, 130, 246, .25);
  color: #60a5fa;
  background: rgba(59, 130, 246, .09);
  cursor: pointer;
}
html[data-page="domain"] body main.container .pd-copy-value {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: right;
  cursor: pointer;
}
html[data-page="domain"] body main.container button.cs-option {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
}

/* Light theme: dark hero surfaces retain light text; light assistance cards
   use ink colors with WCAG-safe contrast. */
html[data-page="domain"][data-theme="light"] body main.container section.pd-report-hero .pd-report-hero__domain {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}
html[data-page="domain"][data-theme="light"] :where(.pd-lang-cur, .stat-label, .ev-badge.neutral) { color: #334155 !important; }
html[data-page="domain"][data-theme="light"] body main.container .victim-msg-text { color: #334155 !important; }
html[data-page="domain"][data-theme="light"] body main.container .victim-msg-text :where(strong, b) { color: #0f172a !important; }
html[data-page="domain"][data-theme="light"] body main.container .victim-msg-icon { color: #1d4ed8 !important; }
html[data-page="domain"][data-theme="light"] body main.container button.cs-selected { color: #334155 !important; }
html[data-page="domain"][data-theme="light"] body main.container :where(.report-btn, .threat-banner:not(.clean):not(.tb-warn) .tb-cta) {
  color: #fff !important;
  background: #dc2626 !important;
}
html[data-page="domain"][data-theme="light"] body main.container .cta-btn:not([href$="/live/"]) {
  color: #fff !important;
  background: #1d4ed8 !important;
}

/* Late-loaded legacy theme bundles use highly specific selectors. Keep these
   final overrides equally explicit so text never inherits a low-contrast tint. */
html:root[data-page="domain"][data-theme="light"] body main#main-content.container section.pd-report-hero h1.pd-report-hero__domain {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}
html:root[data-page="domain"][data-theme="light"] body main#main-content.container .grid3 > .stat .stat-label {
  color: #334155 !important;
}
html:root[data-page="domain"][data-theme="light"] body main#main-content.container .ev-chip .ev-badge.neutral {
  color: #1e3a8a !important;
}
html:root[data-page="domain"][data-theme="light"] body header.pd-site-header .pd-lang-cur {
  color: #334155 !important;
}
html:root[data-page="domain"][data-theme="light"] body main#main-content.container .pd-report-jump {
  border-color: #cbd5e1;
  background: rgba(248, 250, 252, .92);
}
html:root[data-page="domain"][data-theme="light"] body main#main-content.container .pd-report-jump > span { color: #475569; }
html:root[data-page="domain"][data-theme="light"] body main#main-content.container .pd-report-jump > a {
  color: #1e3a8a;
  border-color: #cbd5e1;
  background: #fff;
}
html:root[data-page="domain"][data-theme="light"] body main#main-content.container a.cta-btn[href$="/live/"],
html:root[data-page="domain"][data-theme="light"] body main#main-content.container a.cta-btn.cta-btn-appeal {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .pd-skip-link { transition: none; }
}
