/*
 * Shared record-detail layouts for domain extensions, registrars, videos and
 * the branded not-found page. This file builds on content-pages.css and
 * resource-hubs.css; it intentionally contains no page-header compensation,
 * negative section offsets or fixed content heights.
 */

.dhg-resource-detail {
  overflow-wrap: break-word;
  background: #fff;
}

.dhg-resource-detail main {
  min-width: 0;
}

/* Detail hero */
.dhg-detail-hero {
  padding-bottom: 92px;
}

.dhg-detail-hero .dhg-breadcrumbs {
  margin-bottom: 42px;
}

.dhg-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.dhg-detail-hero__content,
.dhg-detail-hero__visual {
  min-width: 0;
}

.dhg-detail-hero__content {
  position: relative;
  z-index: 1;
}

.dhg-detail-hero__content h1 {
  overflow-wrap: anywhere;
}

.dhg-detail-hero__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px) clamp(24px, 4vw, 52px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(22, 143, 243, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: 0 32px 90px rgba(8, 7, 31, 0.38);
  isolation: isolate;
}

.dhg-detail-hero__visual::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: radial-gradient(circle at center, #000 18%, transparent 78%);
  pointer-events: none;
}

.dhg-detail-hero__mark {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(4rem, 9vw, 8.4rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 18px 42px rgba(8, 7, 31, 0.34);
}

.dhg-detail-hero__mark small {
  display: block;
  margin-top: 14px;
  color: #c8eb49;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.dhg-detail-hero__mark.dhg-detail-hero__mark--long,
.dhg-detail-hero__visual[data-mark-length="long"] .dhg-detail-hero__mark {
  font-size: clamp(3.15rem, 6.6vw, 6.2rem);
  letter-spacing: -0.065em;
}

.dhg-detail-hero__mark.dhg-detail-hero__mark--compact,
.dhg-detail-hero__visual[data-mark-length="compact"] .dhg-detail-hero__mark {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.dhg-detail-hero__logo-wrap {
  display: grid;
  width: min(100%, 390px);
  padding: clamp(28px, 5vw, 48px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 65px rgba(9, 7, 31, 0.27);
}

.dhg-detail-hero__logo {
  display: block;
  max-width: 100%;
  max-block-size: 120px;
  object-fit: contain;
}

.dhg-detail-hero__monogram {
  display: grid;
  width: clamp(105px, 13vw, 150px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(135deg, var(--dhg-blue), #6557d8);
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  box-shadow: 0 19px 45px rgba(35, 64, 135, 0.25);
}

.dhg-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.dhg-detail-hero__meta li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.dhg-detail-hero__meta strong {
  color: #fff;
  font-weight: 850;
}

.dhg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dhg-hero-actions .btn {
  min-width: 175px;
  margin: 0;
}

.dhg-detail-hero--tld .dhg-detail-hero__visual {
  background:
    radial-gradient(circle at 82% 16%, rgba(184, 220, 49, 0.2), transparent 31%),
    linear-gradient(145deg, rgba(22, 143, 243, 0.18), rgba(255, 255, 255, 0.045));
}

.dhg-detail-hero--registrar .dhg-detail-hero__visual {
  background:
    radial-gradient(circle at 80% 12%, rgba(22, 143, 243, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(111, 69, 209, 0.08));
}

.dhg-detail-hero--video .dhg-detail-hero__visual {
  display: block;
  padding: 8px;
  background: rgba(11, 9, 34, 0.72);
}

/* Main record layout */
.dhg-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 360px);
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.dhg-detail-layout__main,
.dhg-detail-layout__sidebar {
  min-width: 0;
}

.dhg-detail-layout__main > :first-child,
.dhg-detail-layout__sidebar > :first-child {
  margin-top: 0;
}

.dhg-detail-layout__main > :last-child,
.dhg-detail-layout__sidebar > :last-child {
  margin-bottom: 0;
}

.dhg-detail-layout__sidebar {
  position: sticky;
  top: 104px;
}

.dhg-detail-layout__sidebar > * + * {
  margin-top: 18px;
}

/* Reusable cards and factual data */
.dhg-detail-card {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid var(--dhg-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(24, 30, 56, 0.065);
}

.dhg-detail-card + .dhg-detail-card {
  margin-top: 20px;
}

.dhg-detail-card--accent {
  border-color: rgba(22, 143, 243, 0.2);
  background:
    radial-gradient(circle at 95% 5%, rgba(22, 143, 243, 0.1), transparent 30%),
    #fff;
}

.dhg-detail-card--dark {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 90% 8%, rgba(22, 143, 243, 0.23), transparent 31%),
    linear-gradient(145deg, #21194c, #35256f);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 55px rgba(20, 15, 54, 0.2);
}

.dhg-detail-card--notice {
  border-color: rgba(184, 220, 49, 0.42);
  background: #f8faef;
  box-shadow: none;
}

.dhg-detail-card__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #177dce;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dhg-detail-card--dark .dhg-detail-card__eyebrow {
  color: #c8eb49;
}

.dhg-detail-card__title,
.dhg-detail-card h2,
.dhg-detail-card h3 {
  color: var(--dhg-ink);
  overflow-wrap: anywhere;
}

.dhg-detail-card--dark .dhg-detail-card__title,
.dhg-detail-card--dark h2,
.dhg-detail-card--dark h3 {
  color: #fff;
}

.dhg-detail-card__title {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.dhg-detail-card > p:last-child {
  margin-bottom: 0;
}

.dhg-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dhg-detail-card__actions .btn {
  min-width: 0;
  margin: 0;
}

.dhg-fact-list {
  margin: 0;
}

.dhg-fact-list__item {
  display: grid;
  grid-template-columns: minmax(105px, 0.42fr) minmax(0, 0.58fr);
  gap: 10px 18px;
  padding: 16px 0;
  border-top: 1px solid #e7eaf1;
}

.dhg-fact-list__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.dhg-fact-list__item:last-child {
  padding-bottom: 0;
}

.dhg-fact-list__label,
.dhg-fact-list dt {
  color: #71778a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.dhg-fact-list__value,
.dhg-fact-list dd {
  min-width: 0;
  margin: 0;
  color: var(--dhg-ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dhg-fact-list__value a,
.dhg-fact-list dd a {
  color: #1477c8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dhg-fact-list dd small {
  display: block;
  margin-top: 4px;
  color: #7b8193;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.5;
}

.dhg-fact-list__note {
  display: block;
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #7b8193;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.5;
}

.dhg-fact-list__item[data-state="unknown"] .dhg-fact-list__value,
.dhg-fact-list__item[data-state="unknown"] dd {
  color: #777e91;
  font-style: italic;
  font-weight: 600;
}

.dhg-detail-card--dark .dhg-fact-list__item {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.dhg-detail-card--dark .dhg-fact-list__label,
.dhg-detail-card--dark .dhg-fact-list dt,
.dhg-detail-card--dark .dhg-fact-list__note {
  color: rgba(255, 255, 255, 0.61);
}

.dhg-detail-card--dark .dhg-fact-list__value,
.dhg-detail-card--dark .dhg-fact-list dd {
  color: #fff;
}

.dhg-detail-card--dark .dhg-fact-list__value a,
.dhg-detail-card--dark .dhg-fact-list dd a {
  color: #c8eb49;
}

/* Verification, freshness and disclosure notices */
.dhg-data-note {
  position: relative;
  margin: 0;
  padding: 15px 17px 15px 20px;
  border: 1px solid rgba(22, 143, 243, 0.18);
  border-left: 4px solid var(--dhg-blue);
  border-radius: 12px;
  background: #eef7ff;
  color: #596276;
  font-size: 0.76rem;
  line-height: 1.58;
}

.dhg-data-note strong {
  color: var(--dhg-ink);
}

.dhg-data-note a {
  color: #126fbf;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhg-data-note--verified {
  border-color: rgba(113, 146, 20, 0.24);
  border-left-color: #7f9f20;
  background: #f5f9e7;
}

.dhg-data-note--review {
  border-color: rgba(194, 127, 27, 0.22);
  border-left-color: #c27f1b;
  background: #fff8eb;
}

.dhg-data-note--unknown {
  border-color: #d9dde7;
  border-left-color: #8b91a2;
  background: #f7f8fb;
}

.dhg-data-note--neutral {
  border-color: #d9dde7;
  border-left-color: #8b91a2;
  background: #f7f8fb;
}

.dhg-data-note--affiliate {
  border-color: rgba(87, 67, 159, 0.2);
  border-left-color: var(--dhg-royal);
  background: #f5f2ff;
}

/* Long-form editorial copy */
.dhg-detail-copy {
  max-width: 74ch;
}

.dhg-detail-copy > :first-child {
  margin-top: 0;
}

.dhg-detail-copy > :last-child {
  margin-bottom: 0;
}

.dhg-detail-copy h2,
.dhg-detail-copy h3 {
  margin-top: 1.65em;
  color: var(--dhg-ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dhg-detail-copy h2:first-child,
.dhg-detail-copy h3:first-child {
  margin-top: 0;
}

.dhg-detail-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.dhg-detail-copy h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.dhg-detail-copy p,
.dhg-detail-copy li {
  font-size: 1rem;
  line-height: 1.78;
}

.dhg-detail-copy p {
  margin-bottom: 19px;
}

.dhg-detail-copy ul,
.dhg-detail-copy ol {
  margin: 0 0 24px;
  padding-left: 1.35rem;
}

.dhg-detail-copy li + li {
  margin-top: 8px;
}

.dhg-detail-copy a {
  color: #1477c8;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Decision and practice checklists */
.dhg-detail-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.dhg-detail-checklist li {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px 50px;
  border: 1px solid var(--dhg-line);
  border-radius: 14px;
  background: #fff;
  color: #686f82;
  font-size: 0.8rem;
  line-height: 1.58;
}

.dhg-detail-checklist li::before {
  position: absolute;
  top: 18px;
  left: 17px;
  display: grid;
  width: 23px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 220, 49, 0.25);
  color: #607817;
  content: "\2713";
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.dhg-detail-checklist strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dhg-ink);
  font-size: 0.84rem;
}

/* Verified offer and price tables */
.dhg-price-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dhg-price-toolbar__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.dhg-price-toolbar__copy > :last-child {
  margin-bottom: 0;
}

.dhg-price-toolbar__filters {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.dhg-price-filter {
  display: grid;
  gap: 6px;
  margin: 0;
}

.dhg-price-filter > span {
  color: #697086;
  font-size: 0.7rem;
  font-weight: 800;
}

.dhg-price-filter select,
.dhg-price-filter input {
  max-width: 100%;
  padding: 10px 34px 10px 12px;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  color: var(--dhg-ink);
  font: inherit;
  font-size: 0.8rem;
}

.dhg-price-filter input {
  padding-right: 12px;
}

.dhg-price-filter select:focus,
.dhg-price-filter input:focus {
  border-color: var(--dhg-blue);
  box-shadow: 0 0 0 3px rgba(22, 143, 243, 0.13);
}

.dhg-price-table-region,
.dhg-price-table__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe3ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 36px rgba(24, 30, 56, 0.05);
  scrollbar-color: #aeb5c5 #eef0f5;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.dhg-price-table-region:focus-visible,
.dhg-price-table__scroll:focus-visible {
  outline: 3px solid rgba(22, 143, 243, 0.48);
  outline-offset: 4px;
}

.dhg-price-table-region::-webkit-scrollbar,
.dhg-price-table__scroll::-webkit-scrollbar {
  height: 10px;
}

.dhg-price-table-region::-webkit-scrollbar-track,
.dhg-price-table__scroll::-webkit-scrollbar-track {
  background: #eef0f5;
}

.dhg-price-table-region::-webkit-scrollbar-thumb,
.dhg-price-table__scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef0f5;
  border-radius: 999px;
  background: #aeb5c5;
}

/* A section may carry the name as a routing anchor; only its inner wrapper scrolls. */
.dhg-section.dhg-price-table-region {
  max-width: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: inherit;
  box-shadow: none;
  scrollbar-gutter: auto;
}

.dhg-price-table {
  width: 100%;
  min-width: 850px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--dhg-copy);
  font-size: 0.78rem;
}

.dhg-price-table caption {
  padding: 16px 18px;
  border-bottom: 1px solid #e4e7ef;
  background: #f8f9fc;
  color: #646b7e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.dhg-price-table th,
.dhg-price-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #e9ecf2;
  text-align: left;
  vertical-align: top;
}

.dhg-price-table thead th {
  background: #f4f6fa;
  color: #60677a;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.dhg-price-table tbody th {
  color: var(--dhg-ink);
  font-weight: 850;
}

.dhg-price-table tbody tr:last-child th,
.dhg-price-table tbody tr:last-child td {
  border-bottom: 0;
}

.dhg-price-table tbody tr:hover th,
.dhg-price-table tbody tr:hover td {
  background: #fbfcfe;
}

.dhg-price-table a {
  color: #1477c8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhg-price-table__amount {
  color: var(--dhg-ink);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dhg-price-table__muted {
  color: #858b9c;
  font-style: italic;
  white-space: nowrap;
}

.dhg-price-table__qualifier {
  display: block;
  margin-top: 4px;
  color: #858b9c;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.45;
}

.dhg-price-table__action {
  white-space: nowrap;
}

.dhg-price-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f1f6;
  color: #686f82;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.25;
}

.dhg-price-status--verified {
  background: #eef5d8;
  color: #587115;
}

.dhg-price-status--promotion {
  background: #eaf5ff;
  color: #126fbf;
}

.dhg-price-empty {
  padding: clamp(30px, 5vw, 52px);
  border: 1px dashed #cdd3df;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.dhg-price-empty h3 {
  margin-bottom: 9px;
  color: var(--dhg-ink);
  font-size: 1.2rem;
}

.dhg-price-empty p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 0.84rem;
  line-height: 1.62;
}

.dhg-price-empty .btn {
  margin: 0;
}

/* Privacy-conscious inline video */
.dhg-inline-video {
  position: relative;
  width: 100%;
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: #0e0b2a;
  box-shadow: 0 24px 65px rgba(8, 7, 31, 0.32);
}

#registrar-prices,
#registration-prices {
  scroll-margin-top: 96px;
}

.dhg-inline-video__poster {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #0e0b2a;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.dhg-inline-video__poster[hidden],
.dhg-inline-video__frame[hidden] {
  display: none;
}

.dhg-inline-video__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 180ms ease, transform 280ms ease;
}

.dhg-inline-video__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 11, 42, 0.58), transparent 57%),
    linear-gradient(90deg, rgba(14, 11, 42, 0.22), transparent 45%);
  pointer-events: none;
}

.dhg-inline-video__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(58px, 7vw, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(22, 143, 243, 0.92);
  box-shadow: 0 14px 38px rgba(5, 5, 22, 0.34);
  transform: translate(-50%, -50%);
  transition: background 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.dhg-inline-video__play::before {
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  content: "";
}

.dhg-inline-video__poster:hover .dhg-inline-video__image {
  opacity: 1;
  transform: scale(1.02);
}

.dhg-inline-video__poster:hover .dhg-inline-video__play {
  background: #127bd2;
  transform: translate(-50%, -50%) scale(1.07);
}

.dhg-inline-video__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(25, 19, 65, 0.85);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.dhg-inline-video__frame {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0b2a;
}

.dhg-inline-video.is-playing .dhg-inline-video__frame {
  display: block;
}

.dhg-inline-video__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dhg-inline-video__fallback {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.5;
}

.dhg-inline-video__fallback a {
  color: #c8eb49;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhg-inline-video__poster:focus-visible {
  outline: 4px solid #c8eb49;
  outline-offset: -6px;
}

/* Related records and previous/next navigation */
.dhg-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dhg-detail-related-grid > * {
  min-width: 0;
}

.dhg-detail-related-grid .dhg-related-card h3 {
  margin-bottom: 11px;
  color: var(--dhg-ink);
  font-size: 1.16rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dhg-detail-related-grid .dhg-related-card > strong {
  margin: auto 0 0;
  color: #147bd4;
  font-size: 0.78rem;
  line-height: 1.4;
}

.dhg-related-card--video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border-radius: 12px;
  object-fit: cover;
}

.dhg-detail-related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--dhg-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(24, 30, 56, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dhg-detail-related-card:hover {
  border-color: rgba(22, 143, 243, 0.3);
  color: inherit;
  box-shadow: 0 18px 44px rgba(24, 30, 56, 0.1);
  transform: translateY(-3px);
}

.dhg-detail-related-card__type {
  display: block;
  margin-bottom: 10px;
  color: #147bd4;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dhg-detail-related-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--dhg-ink);
  font-size: 1.15rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.dhg-detail-related-card p {
  margin: 0 0 18px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.dhg-detail-related-card em {
  display: block;
  margin-top: auto;
  color: #147bd4;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
}

.dhg-detail-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dhg-detail-nav a {
  position: relative;
  display: block;
  min-width: 0;
  padding: 20px 22px 20px 52px;
  border: 1px solid var(--dhg-line);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dhg-detail-nav a::before {
  position: absolute;
  top: 21px;
  left: 21px;
  color: #1687e7;
  content: "\2190";
  font-size: 1.05rem;
  line-height: 1;
}

.dhg-detail-nav a.dhg-detail-nav__next {
  padding-right: 52px;
  padding-left: 22px;
  text-align: right;
}

.dhg-detail-nav a:nth-child(2) {
  padding-right: 52px;
  padding-left: 22px;
  text-align: right;
}

.dhg-detail-nav a.dhg-detail-nav__next::before {
  right: 21px;
  left: auto;
  content: "\2192";
}

.dhg-detail-nav a:nth-child(2)::before {
  right: 21px;
  left: auto;
  content: "\2192";
}

.dhg-detail-nav a:hover {
  border-color: rgba(22, 143, 243, 0.34);
  box-shadow: 0 12px 28px rgba(24, 30, 56, 0.07);
}

.dhg-detail-nav span,
.dhg-detail-nav strong {
  display: block;
}

.dhg-detail-nav span {
  margin-bottom: 5px;
  color: #737a8d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dhg-detail-nav strong {
  color: var(--dhg-ink);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Contact and profile-link lists */
.dhg-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dhg-contact-list li + li {
  border-top: 1px solid #e7eaf1;
}

.dhg-contact-list a {
  position: relative;
  display: block;
  padding: 14px 30px 14px 0;
  color: var(--dhg-ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dhg-contact-list a::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: #1687e7;
  content: "\2197";
  font-size: 0.9rem;
  transform: translateY(-50%);
}

.dhg-contact-list a:hover {
  color: #1477c8;
}

.dhg-detail-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(22, 143, 243, 0.22);
  border-radius: 999px;
  background: #eaf5ff;
  color: #1477c8;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dhg-detail-pill:hover {
  border-color: rgba(22, 143, 243, 0.42);
  background: #dcedfc;
  color: var(--dhg-royal);
}

.dhg-video-legacy-note {
  margin-top: 22px;
}

.dhg-detail-cta {
  padding-top: 72px;
  padding-bottom: 90px;
}

.dhg-detail-cta .dhg-cta-panel {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 10%, rgba(22, 143, 243, 0.24), transparent 30%),
    linear-gradient(135deg, #17143b, #392575);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 75px rgba(25, 20, 62, 0.2);
}

.dhg-detail-cta .dhg-cta-panel > div:first-child {
  max-width: 700px;
}

.dhg-detail-cta .dhg-cta-panel h2 {
  margin-bottom: 13px;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.dhg-detail-cta .dhg-cta-panel p:last-child {
  margin-bottom: 0;
}

.dhg-detail-cta .dhg-cta-panel__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.dhg-detail-cta .dhg-cta-panel__actions .btn {
  margin: 0;
}

/* Branded 404 */
.dhg-not-found-page {
  background: #f6f7fb;
}

.dhg-not-found {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  background:
    radial-gradient(circle at 82% 18%, rgba(22, 143, 243, 0.24), transparent 32%),
    radial-gradient(circle at 16% 88%, rgba(111, 69, 209, 0.35), transparent 38%),
    linear-gradient(135deg, #171338 0%, #302064 52%, #25194f 100%);
  color: #fff;
}

.dhg-not-found::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  pointer-events: none;
}

.dhg-not-found .container,
.dhg-not-found .container-xxl {
  position: relative;
  z-index: 1;
}

.dhg-not-found__panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 34px 95px rgba(8, 7, 31, 0.35);
  backdrop-filter: blur(12px);
}

.dhg-not-found__mark {
  position: relative;
  display: grid;
  width: min(100%, 310px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 29%;
  background:
    radial-gradient(circle at 78% 18%, rgba(184, 220, 49, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(22, 143, 243, 0.23), rgba(255, 255, 255, 0.055));
  box-shadow: 0 24px 65px rgba(8, 7, 31, 0.27);
}

.dhg-not-found__mark::after {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.dhg-not-found__code {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(3.7rem, 8vw, 6.7rem);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 16px 38px rgba(8, 7, 31, 0.3);
}

.dhg-not-found__code small {
  display: block;
  margin-top: 9px;
  color: #c8eb49;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.dhg-not-found__copy {
  min-width: 0;
}

.dhg-not-found__copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.dhg-not-found__copy > p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.79);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.68;
}

.dhg-not-found__copy > .dhg-data-note {
  color: #596276;
  font-size: 0.76rem;
}

.dhg-not-found__search {
  display: flex;
  max-width: 650px;
  gap: 9px;
  margin-top: 27px;
}

.dhg-not-found__search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.dhg-not-found__search input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  backdrop-filter: blur(8px);
}

.dhg-not-found__search input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.dhg-not-found__search input:focus {
  border-color: rgba(200, 235, 73, 0.76);
  box-shadow: 0 0 0 4px rgba(200, 235, 73, 0.12);
}

.dhg-not-found__search .btn {
  flex: 0 0 auto;
  margin: 0;
}

.dhg-not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.dhg-not-found__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(200, 235, 73, 0.55);
  text-underline-offset: 4px;
}

.dhg-not-found__links a:hover {
  color: #c8eb49;
}

/* Shared keyboard focus */
.dhg-detail-card a:focus-visible,
.dhg-detail-card button:focus-visible,
.dhg-detail-related-card:focus-visible,
.dhg-detail-nav a:focus-visible,
.dhg-contact-list a:focus-visible,
.dhg-not-found__links a:focus-visible {
  outline: 3px solid rgba(22, 143, 243, 0.48);
  outline-offset: 4px;
}

.dhg-detail-card--dark a:focus-visible,
.dhg-not-found__links a:focus-visible {
  outline-color: #c8eb49;
}

@media (max-width: 1199.98px) {
  .dhg-detail-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
    gap: 42px;
  }

  .dhg-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 42px;
  }

  .dhg-detail-related-grid {
    gap: 16px;
  }
}

@media (max-width: 991.98px) {
  .dhg-detail-hero {
    padding-bottom: 82px;
  }

  .dhg-detail-hero__grid,
  .dhg-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-detail-hero__visual {
    width: min(100%, 760px);
    justify-self: center;
  }

  .dhg-detail-hero--registrar .dhg-detail-hero__visual {
    width: min(100%, 620px);
  }

  .dhg-detail-layout__sidebar {
    position: static;
  }

  .dhg-detail-layout__sidebar .dhg-detail-card {
    width: 100%;
  }

  .dhg-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dhg-not-found {
    padding: 128px 0 82px;
  }

  .dhg-not-found__panel {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 36px;
  }
}

@media (max-width: 767.98px) {
  .dhg-detail-hero {
    padding-bottom: 72px;
  }

  .dhg-detail-hero .dhg-breadcrumbs {
    margin-bottom: 34px;
  }

  .dhg-detail-hero__grid,
  .dhg-detail-layout {
    gap: 34px;
  }

  .dhg-detail-hero__visual {
    border-radius: 22px;
  }

  .dhg-detail-checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-price-toolbar,
  .dhg-price-toolbar__filters {
    align-items: stretch;
  }

  .dhg-price-toolbar__filters {
    width: 100%;
  }

  .dhg-price-filter {
    flex: 1 1 160px;
  }

  .dhg-price-filter select,
  .dhg-price-filter input {
    width: 100%;
  }

  .dhg-price-table {
    min-width: 760px;
  }

  .dhg-detail-cta .dhg-cta-panel {
    display: block;
  }

  .dhg-detail-cta .dhg-cta-panel__actions {
    margin-top: 25px;
  }

  .dhg-not-found {
    padding: 112px 0 72px;
  }

  .dhg-not-found__panel {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .dhg-not-found__mark {
    width: min(64vw, 240px);
  }

  .dhg-not-found__copy h1,
  .dhg-not-found__copy > p,
  .dhg-not-found__search {
    margin-right: auto;
    margin-left: auto;
  }

  .dhg-not-found__links {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .dhg-detail-hero__visual {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .dhg-detail-hero--video .dhg-detail-hero__visual {
    padding: 6px;
  }

  .dhg-detail-hero__mark {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .dhg-detail-hero__logo-wrap {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .dhg-detail-hero__meta li {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .dhg-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .dhg-detail-card {
    padding: 23px 20px;
    border-radius: 18px;
  }

  .dhg-detail-card__actions,
  .dhg-detail-card__actions .btn {
    width: 100%;
  }

  .dhg-detail-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-fact-list__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .dhg-fact-list__note {
    grid-column: auto;
    margin-top: 2px;
  }

  .dhg-data-note {
    padding: 14px 14px 14px 17px;
  }

  .dhg-detail-copy p,
  .dhg-detail-copy li {
    font-size: 0.94rem;
  }

  .dhg-detail-checklist li {
    padding: 16px 15px 16px 46px;
  }

  .dhg-detail-checklist li::before {
    top: 16px;
    left: 15px;
  }

  .dhg-price-toolbar__filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-price-table-region,
  .dhg-price-table__scroll {
    border-radius: 14px;
  }

  .dhg-section.dhg-price-table-region {
    border-radius: 0;
  }

  .dhg-price-table {
    min-width: 720px;
  }

  .dhg-price-empty {
    padding: 30px 20px;
  }

  .dhg-inline-video {
    border-radius: 14px;
  }

  .dhg-inline-video__badge {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .dhg-detail-related-grid,
  .dhg-detail-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-detail-nav a.dhg-detail-nav__next,
  .dhg-detail-nav a:nth-child(2) {
    text-align: left;
  }

  .dhg-detail-cta {
    padding-top: 54px;
    padding-bottom: 68px;
  }

  .dhg-detail-cta .dhg-cta-panel {
    padding: 30px 22px;
    border-radius: 21px;
  }

  .dhg-detail-cta .dhg-cta-panel__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-detail-cta .dhg-cta-panel__actions .btn {
    width: 100%;
  }

  .dhg-not-found__panel {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .dhg-not-found__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-not-found__search .btn {
    width: 100%;
  }

  .dhg-not-found__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 389.98px) {
  .dhg-detail-hero__grid,
  .dhg-detail-layout {
    gap: 28px;
  }

  .dhg-detail-card,
  .dhg-detail-related-card {
    padding: 20px 17px;
  }

  .dhg-detail-checklist li {
    padding-right: 13px;
  }

  .dhg-detail-nav a,
  .dhg-detail-nav a.dhg-detail-nav__next,
  .dhg-detail-nav a:nth-child(2) {
    padding-right: 44px;
    padding-left: 44px;
    text-align: left;
  }

  .dhg-detail-nav a.dhg-detail-nav__next::before,
  .dhg-detail-nav a:nth-child(2)::before {
    right: 17px;
  }

  .dhg-detail-nav a:not(.dhg-detail-nav__next)::before {
    left: 17px;
  }

  .dhg-not-found__panel {
    padding: 24px 17px;
  }

  .dhg-not-found__mark {
    width: min(66vw, 205px);
  }

  .dhg-not-found__copy h1 {
    font-size: clamp(2.05rem, 12vw, 2.65rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhg-inline-video__image,
  .dhg-inline-video__play,
  .dhg-detail-related-card,
  .dhg-detail-nav a {
    transition: none;
  }

  .dhg-inline-video__poster:hover .dhg-inline-video__image,
  .dhg-inline-video__poster:hover .dhg-inline-video__play,
  .dhg-detail-related-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .dhg-detail-card,
  .dhg-data-note,
  .dhg-price-table-region,
  .dhg-detail-related-card,
  .dhg-detail-nav a,
  .dhg-inline-video,
  .dhg-not-found__panel,
  .dhg-not-found__mark {
    border: 1px solid CanvasText;
  }

  .dhg-inline-video__play,
  .dhg-detail-checklist li::before {
    border: 1px solid ButtonText;
  }
}
