/* DataStack V4.6 — user's five-point visual and legal-document feedback.
   Scoped after legacy layers; no redesign of Reports / Catalogue functionality. */
/* The image is static. Do not leave video-control space or unused poster margins. */
.v4-home .static-hero { margin:0; padding:0; }
.v4-home .static-hero .video-hero-stage {
  height:auto; min-height:590px; margin:0; padding:0; overflow:hidden;
}
.v4-home .static-hero .video-hero-content { padding-bottom:36px; }
.v4-home .static-hero .video-hero-visual {
  top:auto; bottom:0; right:0; transform:none;
  height:auto; overflow:hidden; background:#eaf3ff;
}
.v4-home .static-hero .static-hero-image {
  display:block; width:100%; height:auto; aspect-ratio:910/512;
  object-fit:cover; object-position:center; opacity:1;
}
.v4-home .static-hero .video-hero-stats { margin-top:0; }
/* Three featured-report choices: equal inset on EVERY side, no text at the border. */
.v4-home .v4-feature-list { margin-inline:0; }
.v4-home .v4-feature-choice {
  padding:18px 22px; min-width:0; gap:13px;
}
.v4-home .v4-feature-choice:not(:last-child) {
  margin-right:0; border-right:1px solid var(--ds-line);
}
.v4-home .v4-feature-choice::before { left:0; right:0; }
/* One and only one underline: the existing CSS border is the underline.
   Remove text-decoration on hover globally for our underlined text links. */
a.v4-inline-link, a.ds-link-arrow, a.ds-link-external,
.v4-feature-deeplinks a, .v4-publications-note a, .feature-heading-line>a,
.site-footer .footer-inner>div a {
  text-decoration:none; text-decoration-line:none;
}
a.v4-inline-link:hover, a.ds-link-arrow:hover, a.ds-link-external:hover,
.v4-feature-deeplinks a:hover, .v4-publications-note a:hover,
.feature-heading-line>a:hover, .site-footer .footer-inner>div a:hover {
  text-decoration:none; text-decoration-line:none;
}
a.v4-inline-link {
  border-bottom:1px solid var(--ds-blue); padding-bottom:3px; line-height:1.55;
}
a.v4-inline-link:hover { border-bottom-color:var(--ds-blue); }
/* Footer/legal links use a single border rather than underline+border. */
.site-footer .footer-inner>div a { border-bottom:1px solid transparent; padding-bottom:3px; }
.site-footer .footer-inner>div a:hover { border-bottom-color:currentColor; }
/* Native accessible document dialog (ESC, close, backdrop, focus return). */
.legal-dialog {
  position:fixed; inset:0; width:min(1080px,calc(100vw - 48px));
  height:min(91dvh,1000px); max-height:91dvh; max-width:none;
  margin:auto; padding:0; border:1px solid #dce3ed;
  border-radius:14px; background:#fff; color:var(--ds-ink);
  box-shadow:0 26px 90px rgba(12,22,41,.22); overflow:hidden;
}
.legal-dialog::backdrop { background:rgba(15,23,42,.64); }
.legal-dialog:not([open]) { display:none!important; }
.legal-dialog[open] { display:flex; flex-direction:column; }
.legal-dialog-header {
  flex:none; display:flex;align-items:center;gap:16px;justify-content:space-between;
  min-height:64px;padding:12px 20px;border-bottom:1px solid var(--ds-line);
  background:#fff;
}
.legal-dialog-header h2 { margin:0;font-size:17px;line-height:1.35;letter-spacing:-.03em;font-weight:600; }
.legal-dialog-close {
  width:40px;height:40px;display:grid;place-items:center;flex:none;
  background:#f5f7fc;border:1px solid #dce3ed;border-radius:8px;
  color:var(--ds-ink);cursor:pointer;
}
.legal-dialog-close:hover { background:#e9edff; }
.legal-dialog-close svg {width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;}
.legal-dialog-body { flex:1;min-height:0;display:flex;flex-direction:column;background:#f4f6fb; }
.legal-dialog-actions {display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 20px;background:#fff;border-bottom:1px solid var(--ds-line);min-height:48px;flex:none;}
.legal-dialog-actions p { font-size:11px;color:var(--ds-muted);line-height:1.55;margin:0; }
.legal-dialog-actions a,.legal-zoom {
  flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:38px;
  font-family:inherit;font-size:11px;font-weight:600;color:var(--ds-blue);
  background:#fff;border:1px solid #d2daf1;border-radius:7px;padding:8px 12px;
  text-decoration:none;cursor:pointer;
}
.legal-dialog-actions a:hover,.legal-zoom:hover{ background:#eef1ff; }
.legal-dialog-viewport {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;}
.legal-dialog-viewport img {display:block;width:100%;height:auto;margin:0 auto;max-width:100%;}
.legal-dialog-viewport img.is-zoomed { width:1100px;max-width:none; }
.legal-dialog-viewport iframe { display:block;width:100%;height:100%;min-height:100%;border:0;background:#fff; }
@media(max-width:790px) {
  .v4-home .static-hero .video-hero-stage {min-height:580px;}
  .v4-home .v4-feature-choice {padding:15px 17px;}
}
@media(max-width:640px) {
  .v4-home .static-hero .video-hero-stage {height:auto;min-height:0;padding:0;overflow:visible;}
  .v4-home .static-hero .video-hero-content {padding-bottom:0;}
  .v4-home .static-hero .video-hero-visual {
    position:relative;top:auto;bottom:auto;left:auto;right:auto;
    width:calc(100% - 32px);height:auto;margin:25px auto 0;
    -webkit-mask-image:none;mask-image:none;
  }
  .v4-home .static-hero .video-hero-stats {margin-top:0;}
  .v4-home .v4-feature-choice {padding:15px 15px;min-height:67px;}
  .v4-home .v4-feature-choice:not(:last-child) {border-right:0;border-bottom:1px solid var(--ds-line);}
  .legal-dialog {width:calc(100vw - 18px);height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);border-radius:10px;}
  .legal-dialog-header {min-height:58px;padding:9px 13px;}
  .legal-dialog-header h2 {font-size:15px;}
  .legal-dialog-actions {padding:9px 12px;align-items:flex-start;flex-direction:column;}
  .legal-dialog-actions p {font-size:10px;}
  .legal-dialog-actions a,.legal-zoom {min-height:39px;font-size:11px;}
}
@media(prefers-reduced-motion:reduce) {
 .legal-dialog *, .legal-dialog {animation:none!important;transition:none!important;}
}
