/* RMP Open Data & Statistics public experience
   Design tokens follow the current RMP public portal: navy, gold, blue and
   light institutional surfaces. All styles are scoped to .od-page. */

.od-page {
  --od-navy-950: #020814;
  --od-navy-900: #030a16;
  --od-navy-800: #07162b;
  --od-navy-700: #0a1d38;
  --od-navy-600: #0f2c5c;
  --od-gold: #d6b553;
  --od-gold-soft: #f0d894;
  --od-blue: #2f78df;
  --od-blue-soft: #e8f1ff;
  --od-surface: #f4f7fb;
  --od-surface-2: #eef3fa;
  --od-white: #ffffff;
  --od-ink: #0f172a;
  --od-ink-2: #1d2b45;
  --od-muted: #5b6b82;
  --od-line: rgba(15, 44, 92, 0.12);
  --od-line-strong: rgba(15, 44, 92, 0.2);
  --od-shadow-sm: 0 8px 20px rgba(3, 10, 22, 0.06);
  --od-shadow-md: 0 18px 40px rgba(3, 10, 22, 0.1);
  --od-shadow-lg: 0 30px 70px rgba(3, 10, 22, 0.16);
  --od-radius: 20px;
  --od-radius-lg: 28px;
  --od-display: "Spectral", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --od-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  isolation: isolate;
  background: var(--od-surface);
  color: var(--od-ink);
  font-family: var(--od-ui);
  line-height: 1.6;
  animation: odPageIn 0.28s ease both;
}

@keyframes odPageIn {
  from { transform: translateY(3px); }
  to { transform: translateY(0); }
}

.od-page *,
.od-page *::before,
.od-page *::after {
  box-sizing: border-box;
}

.od-page [hidden] {
  display: none !important;
}

.od-page h1,
.od-page h2,
.od-page h3,
.od-page h4,
.od-page p {
  margin-top: 0;
}

:where(.od-page) a {
  color: inherit;
  text-decoration: none;
}

.od-page button,
.od-page input,
.od-page select {
  font: inherit;
}

.od-page :focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

.od-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.od-hero,
.od-dataset-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(47, 120, 223, 0.3), transparent 62%),
    radial-gradient(720px 360px at 88% 8%, rgba(214, 181, 83, 0.16), transparent 68%),
    linear-gradient(155deg, var(--od-navy-950) 0%, var(--od-navy-800) 48%, var(--od-navy-600) 100%);
}

.od-hero {
  padding: 34px 0 88px;
}

.od-dataset-hero {
  padding: 34px 0 118px;
}

.od-hero::after,
.od-dataset-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--od-gold) 18%, var(--od-gold-soft) 50%, var(--od-gold) 82%, transparent);
  opacity: 0.9;
}

.od-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 10%, #000 0%, transparent 78%);
  pointer-events: none;
}

.od-hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.7;
  pointer-events: none;
}

.od-hero__orb--one {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -90px;
  border: 1px solid rgba(214, 181, 83, 0.25);
  background: radial-gradient(circle at 35% 35%, rgba(214, 181, 83, 0.16), transparent 62%);
}

.od-hero__orb--two {
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -260px;
  border: 1px solid rgba(47, 120, 223, 0.25);
  background: radial-gradient(circle at 50% 50%, rgba(47, 120, 223, 0.12), transparent 66%);
}

.od-hero__inner {
  position: relative;
  z-index: 2;
}

.od-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(100%, 760px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 26px;
  padding: 7px 14px;
  border: 1px solid rgba(214, 181, 83, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(226, 236, 249, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.od-crumbs a {
  color: var(--od-gold-soft);
  text-decoration: none;
  font-weight: 800;
}

.od-crumbs a:hover,
.od-crumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.od-crumb-sep {
  color: rgba(226, 236, 249, 0.4);
  font-weight: 500;
}

.od-crumb-muted {
  color: rgba(226, 236, 249, 0.68);
  font-weight: 700;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-crumb-current {
  color: #fff;
  font-weight: 800;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--od-gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.od-eyebrow--dark {
  color: var(--od-blue);
}

.od-eyebrow__line {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}

.od-hero__title {
  max-width: 960px;
  margin: 14px 0 16px;
  font-family: var(--od-display);
  font-size: clamp(2.5rem, 5.4vw, 4.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.od-hero__intro {
  max-width: 820px;
  margin-bottom: 28px;
  color: rgba(231, 239, 251, 0.82);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.od-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(820px, 100%);
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.od-search__icon {
  display: inline-flex;
  color: rgba(240, 216, 148, 0.9);
  font-size: 1rem;
}

.od-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.od-page .od-search input::placeholder {
  color: rgba(240, 246, 255, 0.88) !important;
  opacity: 1 !important;
  font-weight: 500;
}

.od-page .od-search input::-webkit-input-placeholder {
  color: rgba(240, 246, 255, 0.88) !important;
  opacity: 1 !important;
}

.od-page .od-search input::-moz-placeholder {
  color: rgba(240, 246, 255, 0.88) !important;
  opacity: 1 !important;
}

.od-search__button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--od-gold-soft), var(--od-gold));
  color: #1a1205;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(214, 181, 83, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.od-search__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(214, 181, 83, 0.3);
}

.od-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1000px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.od-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  background: rgba(3, 10, 22, 0.26);
}

.od-hero__stat-value {
  color: #fff;
  font-family: var(--od-display);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.od-hero__stat-value--small {
  font-family: var(--od-ui);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.od-hero__stat-label {
  color: rgba(222, 233, 248, 0.65);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-section {
  position: relative;
  padding: 64px 0;
}

.od-section--catalogue {
  background:
    radial-gradient(700px 260px at 92% 0%, rgba(47, 120, 223, 0.06), transparent 70%),
    var(--od-surface);
}

.od-section--tint {
  background: linear-gradient(180deg, var(--od-surface-2), var(--od-surface));
  border-top: 1px solid var(--od-line);
}

.od-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.od-section-title {
  margin: 10px 0 0;
  font-family: var(--od-display);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--od-navy-800);
}

.od-result-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: #fff;
  color: var(--od-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.od-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.od-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.od-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: #fff;
  color: var(--od-ink-2);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(3, 10, 22, 0.03);
  transition: all 0.18s ease;
}

.od-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--od-surface-2);
  color: var(--od-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.od-chip:hover {
  border-color: rgba(47, 120, 223, 0.4);
  color: var(--od-blue);
  transform: translateY(-1px);
}

.od-chip.is-active {
  border-color: var(--od-navy-600);
  background: var(--od-navy-600);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 44, 92, 0.2);
}

.od-chip.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.od-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--od-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-sort select {
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--od-line);
  border-radius: 12px;
  background: #fff;
  color: var(--od-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
}

.od-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.od-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.od-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.od-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--od-navy-600), var(--od-blue), var(--od-gold));
  opacity: 0.85;
}

.od-card--featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--od-gold), var(--od-gold-soft), var(--od-gold));
}

.od-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 120, 223, 0.28);
  box-shadow: var(--od-shadow-md);
}

.od-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 22px 20px;
}

.od-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.od-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: var(--od-surface);
  color: var(--od-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.od-badge--kind {
  border-color: rgba(47, 120, 223, 0.18);
  background: var(--od-blue-soft);
  color: #1d5cb8;
}

.od-badge--file {
  margin-left: auto;
  border-color: rgba(21, 128, 61, 0.16);
  background: #ecfdf3;
  color: #15803d;
}

.od-badge--gold {
  border-color: rgba(214, 181, 83, 0.4);
  background: #fdf7e6;
  color: #8a6a13;
}

.od-badge--good {
  border-color: rgba(21, 128, 61, 0.18);
  background: #ecfdf3;
  color: #15803d;
}

.od-badge--warn {
  border-color: rgba(180, 120, 10, 0.22);
  background: #fff8e6;
  color: #9a6400;
}

.od-badge--danger {
  border-color: rgba(185, 28, 28, 0.18);
  background: #fef2f2;
  color: #b91c1c;
}

.od-card__title {
  margin: 0 0 10px;
  color: var(--od-navy-800);
  font-family: var(--od-display);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.od-card__summary {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--od-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.od-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 12px;
  margin: auto 0 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--od-line);
}

.od-card__meta div {
  min-width: 0;
}

.od-card__meta dt {
  margin-bottom: 3px;
  color: #8a97a9;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.od-card__meta dd {
  margin: 0;
  overflow: hidden;
  color: var(--od-ink-2);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.od-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--od-line);
  color: var(--od-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.od-card__foot i {
  transition: transform 0.18s ease;
}

.od-card:hover .od-card__foot i {
  transform: translateX(4px);
}

.od-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed var(--od-line-strong);
  border-radius: var(--od-radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.od-empty--inline {
  margin-top: 18px;
  padding: 28px 20px;
}

.od-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--od-blue-soft);
  color: var(--od-blue);
  font-size: 1.35rem;
}

.od-empty h3 {
  margin-bottom: 6px;
  font-family: var(--od-display);
  color: var(--od-navy-800);
  font-size: 1.4rem;
}

.od-empty p {
  margin-bottom: 18px;
  color: var(--od-muted);
}

.od-standards {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius-lg);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(47, 120, 223, 0.08), transparent 70%),
    #fff;
  box-shadow: var(--od-shadow-sm);
}

.od-standards__copy p {
  margin: 16px 0 0;
  color: var(--od-muted);
  line-height: 1.75;
}

.od-standards__panel {
  display: grid;
  gap: 10px;
}

.od-standard-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--od-line);
  border-radius: 14px;
  background: var(--od-surface);
  transition: all 0.18s ease;
}

.od-standard-link:hover {
  border-color: rgba(47, 120, 223, 0.3);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--od-shadow-sm);
}

.od-standard-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--od-blue);
  box-shadow: inset 0 0 0 1px var(--od-line);
}

.od-standard-link span:nth-child(2) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.od-standard-link strong {
  color: var(--od-navy-800);
  font-size: 0.9rem;
}

.od-standard-link small {
  color: var(--od-muted);
  font-size: 0.76rem;
}

.od-standard-link > i:last-child {
  color: var(--od-blue);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------------ */
/* Dataset detail                                                     */
/* ------------------------------------------------------------------ */

.od-dataset-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}

.od-dataset-hero .od-badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 244, 252, 0.9);
}

.od-dataset-hero .od-badge--gold {
  background: rgba(214, 181, 83, 0.16);
  color: var(--od-gold-soft);
  border-color: rgba(214, 181, 83, 0.32);
}

.od-dataset-hero .od-badge--good {
  background: rgba(21, 128, 61, 0.2);
  color: #b8f0ce;
}

.od-dataset-hero .od-badge--warn {
  background: rgba(180, 120, 10, 0.2);
  color: #ffe2a8;
}

.od-dataset-hero .od-badge--danger {
  background: rgba(185, 28, 28, 0.22);
  color: #ffc9c9;
}

.od-dataset-hero__title {
  max-width: 980px;
  margin: 0 0 16px;
  font-family: var(--od-display);
  font-size: clamp(2.2rem, 4.6vw, 3.95rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.od-dataset-hero__summary {
  max-width: 860px;
  margin-bottom: 26px;
  color: rgba(231, 239, 251, 0.82);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.72;
}

.od-preview-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(214, 181, 83, 0.4);
  border-radius: 10px;
  background: rgba(214, 181, 83, 0.14);
  color: var(--od-gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.od-metaribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1050px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.od-metaribbon__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(3, 10, 22, 0.28);
}

.od-metaribbon__label {
  color: rgba(222, 233, 248, 0.56);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.od-metaribbon__value {
  color: rgba(247, 250, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.od-dataset-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.od-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.od-button--gold {
  background: linear-gradient(135deg, var(--od-gold-soft), var(--od-gold));
  color: #1a1205;
  box-shadow: 0 14px 28px rgba(214, 181, 83, 0.2);
}

.od-button--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(214, 181, 83, 0.3);
}

.od-button--navy {
  background: var(--od-navy-600);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 44, 92, 0.2);
}

.od-button--navy:hover {
  background: #143a75;
  transform: translateY(-1px);
}

.od-button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #eef4fc;
}

.od-button--ghost:hover {
  border-color: rgba(214, 181, 83, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--od-gold-soft);
}

.od-dataset-body {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  padding-bottom: 70px;
}

.od-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.od-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--od-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--od-shadow-md);
}

.od-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--od-blue-soft);
  color: var(--od-blue);
  font-size: 0.9rem;
}

.od-kpi__label {
  overflow: hidden;
  color: var(--od-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.od-kpi__value {
  color: var(--od-navy-800);
  font-family: var(--od-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.od-kpi__value--small {
  font-size: 1.15rem;
}

.od-kpi__value.is-positive {
  color: #147a43;
}

.od-kpi__value.is-negative {
  color: #b42318;
}

.od-kpi__hint {
  color: #8a97a9;
  font-size: 0.7rem;
  font-weight: 600;
}

.od-panel {
  margin-bottom: 20px;
  padding: 26px;
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
}

.od-panel__head {
  margin-bottom: 20px;
}

.od-panel__head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.od-panel h2 {
  margin: 8px 0 0;
  font-family: var(--od-display);
  color: var(--od-navy-800);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.od-panel__lede {
  max-width: 820px;
  margin-bottom: 20px;
  color: var(--od-muted);
  line-height: 1.7;
}

.od-viewtoggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: var(--od-surface);
}

.od-viewtoggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--od-muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.od-viewtoggle button.is-active {
  background: var(--od-navy-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 44, 92, 0.18);
}

.od-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--od-line);
  border-radius: 16px;
  background: var(--od-surface);
}

.od-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.od-control-group--metrics {
  flex: 1 1 100%;
}

.od-control-label {
  color: #7a8798;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.od-select {
  min-height: 38px;
  min-width: 94px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--od-line);
  border-radius: 10px;
  background-color: #fff;
  color: var(--od-ink);
  font-size: 0.8rem;
  font-weight: 650;
}

.od-metricchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.od-metricchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: #fff;
  color: var(--od-ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.od-metricchip__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--od-metric-colour, var(--od-blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--od-metric-colour, #2f78df) 16%, transparent);
}

.od-metricchip:hover {
  border-color: var(--od-metric-colour, var(--od-blue));
}

.od-metricchip.is-active {
  border-color: var(--od-metric-colour, var(--od-blue));
  background: color-mix(in srgb, var(--od-metric-colour, #2f78df) 10%, #fff);
  color: var(--od-navy-800);
}

.od-control-group--toggles {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}

.od-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--od-ink-2);
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.od-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.od-switch span {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
}

.od-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.od-switch input:checked + span {
  background: var(--od-blue);
}

.od-switch input:checked + span::after {
  transform: translateX(16px);
}

.od-switch input:focus-visible + span {
  outline: 3px solid rgba(47, 120, 223, 0.5);
  outline-offset: 3px;
}

.od-chartbox {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--od-line);
  border-radius: 16px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(47, 120, 223, 0.05), transparent 65%),
    #fff;
  overflow: hidden;
}

.od-chart {
  width: 100%;
  height: 470px;
}

.od-chart-empty {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--od-muted);
  text-align: center;
}

.od-chart-empty i {
  color: #b8c4d6;
  font-size: 2rem;
}

.od-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  color: var(--od-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.od-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.od-scale-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 181, 83, 0.28);
  border-radius: 10px;
  background: #fffaf0;
  color: #6b5320;
  font-size: 0.76rem;
  line-height: 1.55;
}

.od-scale-note i {
  margin-top: 2px;
  color: #9a6400;
}

.od-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.od-tablebox {
  margin-top: 18px;
}

.od-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.od-table-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  min-width: min(360px, 100%);
  padding: 0 14px;
  border: 1px solid var(--od-line);
  border-radius: 10px;
  background: var(--od-surface);
  color: var(--od-muted);
}

.od-table-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--od-ink);
  font-size: 0.82rem;
}

.od-table-note {
  color: #8a97a9;
  font-size: 0.74rem;
  font-weight: 600;
}

.od-tablewrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--od-line);
  border-radius: 12px;
}

.od-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.od-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 13px;
  border-bottom: 1px solid var(--od-line);
  background: var(--od-navy-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.od-table thead th:first-child,
.od-table thead th:nth-child(2) {
  text-align: left;
}

.od-table tbody th,
.od-table tbody td {
  padding: 9px 13px;
  border-bottom: 1px solid rgba(15, 44, 92, 0.07);
  color: var(--od-ink-2);
  text-align: right;
  white-space: nowrap;
}

.od-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  color: var(--od-navy-800);
  font-weight: 700;
  text-align: left;
}

.od-table tbody tr:nth-child(even) td,
.od-table tbody tr:nth-child(even) th {
  background: #f9fbfe;
}

.od-table tbody tr:hover td,
.od-table tbody tr:hover th {
  background: #f0f6ff;
}

.od-table td.is-missing {
  color: #a8b3c2;
}

.od-table-empty {
  padding: 22px;
  color: var(--od-muted);
  text-align: center;
}

.od-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3fa;
  color: #46566d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.od-status--final {
  background: #ecfdf3;
  color: #15803d;
}

.od-status--provisional,
.od-status--revised {
  background: #fff8e6;
  color: #9a6400;
}

.od-status--missing,
.od-status--mixed {
  background: #f1f5f9;
  color: #64748b;
}

.od-status--not_applicable {
  background: #fef2f2;
  color: #b91c1c;
}

.od-cellnote {
  color: #9a6400;
  font-size: 0.75rem;
  font-weight: 700;
}

.od-missing {
  color: #a8b3c2;
}

.od-timeline {
  display: grid;
  gap: 14px;
}

.od-timeline__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.od-timeline__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--od-blue-soft);
  color: var(--od-blue);
  font-size: 0.8rem;
}

.od-timeline__item--contract_end .od-timeline__marker {
  background: #fef2f2;
  color: #b91c1c;
}

.od-timeline__item--methodology_change .od-timeline__marker {
  background: #fff8e6;
  color: #9a6400;
}

.od-timeline__copy {
  padding: 12px 14px;
  border: 1px solid var(--od-line);
  border-radius: 12px;
  background: var(--od-surface);
}

.od-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #8a97a9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-timeline__type {
  color: var(--od-blue);
}

.od-timeline__copy p {
  margin: 0;
  color: var(--od-ink-2);
  font-size: 0.86rem;
  line-height: 1.6;
}

.od-twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.od-definitions {
  display: grid;
  gap: 12px;
}

.od-definition {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--od-line);
}

.od-definition:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.od-definition__dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
}

.od-definition strong {
  display: block;
  color: var(--od-navy-800);
  font-size: 0.88rem;
}

.od-definition strong small {
  color: #8a97a9;
  font-size: 0.7rem;
  font-weight: 700;
}

.od-definition p {
  margin: 3px 0 0;
  color: var(--od-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.od-method {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--od-line);
}

.od-method h3 {
  margin-bottom: 8px;
  color: var(--od-navy-800);
  font-family: var(--od-display);
  font-size: 1.1rem;
}

.od-method p {
  margin: 0;
  color: var(--od-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.od-quality__meter {
  height: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.od-quality__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--od-blue), #59a2ff);
}

.od-quality__rows {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--od-line);
  border-radius: 12px;
  background: var(--od-line);
}

.od-quality__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  background: #fff;
  color: var(--od-muted);
  font-size: 0.8rem;
}

.od-quality__rows strong {
  color: var(--od-navy-800);
  font-size: 0.88rem;
}

.od-quality__missing h3,
.od-quality__notes h3 {
  margin: 18px 0 8px;
  color: var(--od-ink-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-quality__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.od-quality__chips span {
  padding: 4px 8px;
  border: 1px solid var(--od-line);
  border-radius: 7px;
  background: var(--od-surface);
  color: var(--od-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.od-quality__notes {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--od-gold);
  border-radius: 0 10px 10px 0;
  background: #fffaf0;
}

.od-quality__notes p {
  margin: 0 0 6px;
  color: #6b5320;
  font-size: 0.8rem;
  line-height: 1.55;
}

.od-quality__notes p:last-child {
  margin-bottom: 0;
}

.od-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  background:
    radial-gradient(560px 240px at 100% 0%, rgba(47, 120, 223, 0.08), transparent 70%),
    linear-gradient(135deg, #ffffff, #f7faff);
}

.od-download__copy h2 {
  margin-bottom: 6px;
}

.od-download__copy p {
  margin: 0;
  color: var(--od-muted);
  font-size: 0.88rem;
}

.od-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.od-download__actions .od-button--navy {
  background: var(--od-navy-600);
}

.od-download__actions .od-button--ghost {
  border-color: var(--od-line);
  background: #fff;
  color: var(--od-ink-2);
}

.od-download__actions .od-button--ghost:hover {
  border-color: rgba(47, 120, 223, 0.4);
  color: var(--od-blue);
}

.od-citation {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--od-line);
}

.od-citation__label {
  color: #8a97a9;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.od-citation code {
  color: var(--od-ink-2);
  font-size: 0.78rem;
  line-height: 1.55;
  word-break: break-word;
}

.od-external .od-resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--od-line);
  border-radius: 14px;
  background: var(--od-surface);
  transition: all 0.18s ease;
}

.od-external .od-resource-card:hover {
  border-color: rgba(47, 120, 223, 0.35);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
}

.od-resource-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--od-blue-soft);
  color: var(--od-blue);
}

.od-resource-card__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.od-resource-card__copy strong {
  color: var(--od-navy-800);
  font-size: 0.9rem;
}

.od-resource-card__copy small {
  overflow: hidden;
  color: var(--od-muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
}

.od-feedback__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.od-feedback__copy strong {
  color: var(--od-navy-800);
  font-family: var(--od-display);
  font-size: 1.1rem;
}

.od-feedback__copy span {
  color: var(--od-muted);
  font-size: 0.8rem;
}

.od-feedback__actions {
  display: flex;
  gap: 8px;
}

.od-feedback__actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--od-line);
  border-radius: 999px;
  background: #fff;
  color: var(--od-ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.od-feedback__actions button:hover {
  border-color: rgba(47, 120, 223, 0.4);
  color: var(--od-blue);
}

.od-feedback__thanks {
  flex: 1 1 100%;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Interaction feedback                                               */
/* ------------------------------------------------------------------ */

.od-page a,
.od-page button,
.od-page select,
.od-page input,
.od-page .od-standard-link,
.od-page .od-resource-card {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.od-page button:disabled,
.od-page .is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.od-page button:active:not(:disabled),
.od-page .od-standard-link:active,
.od-page .od-resource-card:active {
  transform: translateY(1px);
}

.od-search:focus-within {
  border-color: rgba(214, 181, 83, 0.72);
  box-shadow:
    0 0 0 3px rgba(214, 181, 83, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 45px rgba(0, 0, 0, 0.24);
}

.od-search input:focus-visible {
  outline: none;
}

.od-chip:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.35);
  outline-offset: 2px;
}

.od-card:focus-within {
  border-color: rgba(214, 181, 83, 0.55);
  box-shadow:
    0 0 0 3px rgba(214, 181, 83, 0.16),
    var(--od-shadow-md);
}

.od-card__link:focus-visible {
  outline: none;
}

.od-standard-link:focus-visible,
.od-resource-card:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.5);
  outline-offset: 3px;
}

.od-button:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.55);
  outline-offset: 3px;
}

.od-button[aria-busy="true"] {
  opacity: 0.82;
  cursor: progress;
}

.od-download__actions .od-button--navy,
.od-download__actions .od-button--navy i {
  color: #ffffff;
}

.od-download__actions .od-button--ghost,
.od-download__actions .od-button--ghost i {
  color: var(--od-navy-800);
}

.od-metricchip:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.5);
  outline-offset: 2px;
}

.od-viewtoggle button:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.5);
  outline-offset: 2px;
}

.od-select:hover {
  border-color: rgba(47, 120, 223, 0.45);
}

.od-select:focus {
  border-color: var(--od-blue);
  box-shadow: 0 0 0 3px rgba(47, 120, 223, 0.16);
}

.od-switch:hover span {
  background: #b6c4d6;
}

.od-switch:active span::after {
  transform: scale(0.92);
}

.od-switch input:checked:active + span::after {
  transform: translateX(16px) scale(0.92);
}

.od-table tbody tr:focus-within td,
.od-table tbody tr:focus-within th {
  background: #f0f6ff;
}

.od-feedback__actions button:focus-visible {
  outline: 3px solid rgba(47, 120, 223, 0.5);
  outline-offset: 2px;
}

.od-feedback__actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.od-table-search:focus-within {
  border-color: rgba(47, 120, 223, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 120, 223, 0.12);
}

.od-table-search input:focus-visible {
  outline: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

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

  .od-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .od-twocol {
    grid-template-columns: minmax(0, 1fr);
  }

  .od-standards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .od-hero {
    padding-bottom: 64px;
  }

  .od-dataset-hero {
    padding-bottom: 100px;
  }

  .od-hero__stats,
  .od-metaribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .od-filterbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .od-sort {
    width: 100%;
    justify-content: space-between;
  }

  .od-sort select {
    flex: 1 1 auto;
  }

  .od-chart {
    height: 400px;
  }

  .od-card__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .od-card__meta div:last-child {
    grid-column: 1 / -1;
  }

  .od-download {
    grid-template-columns: minmax(0, 1fr);
  }

  .od-download__actions {
    justify-content: flex-start;
  }

  .od-panel {
    padding: 20px;
  }

  .od-panel__head--split {
    flex-direction: column;
  }

  .od-table {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .od-container {
    width: min(100% - 28px, 1240px);
  }

  .od-hero__title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .od-dataset-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .od-search {
    min-height: 56px;
    padding-left: 16px;
  }

  .od-search__button {
    min-height: 42px;
    padding: 0 16px;
  }

  .od-hero__stats,
  .od-metaribbon,
  .od-grid,
  .od-grid--related,
  .od-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .od-card__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .od-card__meta div:last-child {
    grid-column: 1 / -1;
  }

  .od-dataset-body {
    margin-top: -54px;
  }

  .od-controls {
    gap: 12px;
  }

  .od-control-group {
    flex: 1 1 calc(50% - 6px);
  }

  .od-control-group--toggles {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .od-chart {
    height: 330px;
  }

  .od-button {
    flex: 1 1 auto;
  }

  .od-standards {
    padding: 24px 18px;
  }

  .od-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .od-table thead th:first-child,
  .od-table tbody th {
    position: sticky;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .od-page *,
  .od-page *::before,
  .od-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media print {
  .od-hero__grid,
  .od-hero__orb,
  .od-dataset-hero__actions,
  .od-controls,
  .od-viewtoggle,
  .od-table-tools,
  .od-feedback,
  .od-download__actions,
  .od-related {
    display: none !important;
  }

  .od-page {
    background: #fff;
  }

  .od-dataset-hero {
    padding: 20px 0;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .od-dataset-hero__title,
  .od-dataset-hero__summary,
  .od-metaribbon__value,
  .od-metaribbon__label,
  .od-dataset-hero .od-badge,
  .od-crumbs,
  .od-crumbs a {
    color: #000 !important;
  }

  .od-metaribbon {
    border-color: #999;
  }

  .od-metaribbon__item {
    background: #fff;
  }

  .od-dataset-body {
    margin-top: 0;
  }

  .od-panel,
  .od-kpi {
    break-inside: avoid;
    box-shadow: none;
  }
}
