:root {
  color-scheme: dark;
  --page-bg: #020713;
  --page-bg-2: #071127;
  --ink: #f7f9ff;
  --muted: #9da9c6;
  --faint: rgba(225, 232, 255, 0.38);
  --blue: #302cff;
  --blue-2: #0f4bd8;
  --cyan: #65e8ff;
  --gold: #f3c65f;
  --cream: #fff9df;
  --line: rgba(151, 175, 255, 0.18);
  --line-strong: rgba(183, 201, 255, 0.34);
  --panel: rgba(8, 18, 45, 0.62);
  --panel-strong: rgba(7, 16, 40, 0.88);
  --grid-line: rgba(98, 128, 216, 0.055);
  --shadow: rgba(0, 0, 0, 0.56);
  --card-width: clamp(16.5rem, 19vw, 19.5rem);
  --card-height: clamp(23rem, 27vw, 27.5rem);
  --active-card-scale: 1;
  --mx: 74%;
  --my: 24%;
  --pointer-x: 0;
  --pointer-y: 0;
  --active-accent: #65e8ff;
  --active-accent-text: var(--active-accent);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --page-bg: #fffef8;
  --page-bg-2: #eef3fb;
  --ink: #10213b;
  --muted: #4b5568;
  --faint: rgba(35, 59, 94, 0.5);
  --blue: #153e91;
  --blue-2: #0f5f9d;
  --cyan: #0b8497;
  --gold: #8b5800;
  --cream: #6d4300;
  --line: rgba(22, 55, 108, 0.16);
  --line-strong: rgba(139, 88, 0, 0.34);
  --panel: rgba(255, 253, 244, 0.78);
  --panel-strong: rgba(255, 253, 244, 0.95);
  --grid-line: rgba(22, 55, 108, 0.055);
  --shadow: rgba(88, 65, 20, 0.2);
  --active-accent-text: color-mix(in srgb, var(--active-accent) 18%, #10213b 82%);
}

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

html {
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(48, 44, 255, 0.15), transparent 31rem),
    radial-gradient(circle at 11% 78%, rgba(0, 183, 255, 0.11), transparent 30rem),
    linear-gradient(145deg, var(--page-bg) 0%, var(--page-bg-2) 55%, var(--page-bg) 100%);
  color: var(--ink);
  font-family: var(--pd-font-ui);
  font-weight: var(--pd-font-weight-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 200, 55, 0.27), transparent 28rem),
    radial-gradient(circle at 10% 78%, rgba(52, 147, 189, 0.12), transparent 30rem),
    linear-gradient(145deg, #fffef8 0%, #fbf4df 45%, #eef3fb 100%);
}

body::selection {
  background: rgba(101, 232, 255, 0.28);
  color: var(--ink);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-underline-offset: 0.22em;
}

body#regulationsPage [hidden] {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page-bg);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient,
.page-grid,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.15;
  transform: translate3d(calc(var(--pointer-x) * 1px), calc(var(--pointer-y) * 1px), 0);
}

.ambient--blue {
  top: -23rem;
  right: -12rem;
  left: auto;
  background: var(--blue);
}

.ambient--cyan {
  top: auto;
  bottom: -24rem;
  left: -14rem;
  background: var(--cyan);
  transform: translate3d(calc(var(--pointer-x) * -0.6px), calc(var(--pointer-y) * -0.6px), 0);
}

.ambient--gold {
  top: 38%;
  right: 22%;
  left: auto;
  width: 20rem;
  height: 20rem;
  background: var(--gold);
  opacity: 0.06;
}

.page-grid {
  z-index: 0;
  opacity: 0.72;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 50% 42%, black 12%, transparent 78%);
}

.page-noise {
  z-index: 50;
  opacity: 0.026;
  background-image:
    radial-gradient(circle at 20% 35%, currentColor 0 0.45px, transparent 0.7px),
    radial-gradient(circle at 72% 64%, currentColor 0 0.4px, transparent 0.7px);
  background-position: 0 0, 2px 3px;
  background-size: 5px 5px, 7px 7px;
  color: var(--ink);
  mix-blend-mode: soft-light;
}

html[data-theme="light"] .page-noise {
  opacity: 0.015;
  mix-blend-mode: multiply;
}

.regulations-shell {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 3.25rem);
}

.topbar {
  min-height: 4.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-bg) 86%, transparent), transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand__emblem {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 28px rgba(48, 44, 255, 0.2);
}

.brand__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 0.15rem;
  line-height: 1;
}

.brand__copy strong {
  font-size: 0.69rem;
  letter-spacing: 0.24em;
}

.brand__copy small {
  color: var(--muted);
  font-family: var(--pd-font-latin);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar__center {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-family: var(--pd-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar__center [lang="km"] {
  font-family: var(--pd-font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.topbar__center i {
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.topbar__controls {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.625rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.status-pill,
.icon-button,
.round-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-pill {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--pd-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.status-pill i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 58%, transparent);
  box-shadow: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.status-pill[aria-pressed="true"] i {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms var(--ease-out), color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.status-pill:hover,
.icon-button:hover {
  border-color: color-mix(in srgb, var(--active-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--active-accent) 10%, var(--panel));
  color: var(--ink);
  transform: translateY(-2px);
}

.status-pill[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.preview-notice,
.active-regulation__eyebrow,
.carousel-counter,
.regulation-card__number,
.regulation-card__meta,
.art__index,
.art__caption {
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  width: auto;
  min-width: 144px;
  height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0 0.75rem 0 0.4375rem;
  overflow: hidden;
  border-radius: 999px;
  isolation: isolate;
  transition: transform 180ms var(--ease-out), background 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.theme-toggle::before {
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 198, 95, 0.32), transparent 60%);
  content: "";
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 350ms ease, transform 550ms var(--ease-out);
}

.theme-toggle::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  content: "";
  transform: translateX(-125%);
  transition: transform 650ms var(--ease-out);
}

.theme-toggle:hover::before {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle:hover::after {
  transform: translateX(125%);
}

.power-toggle__orb {
  position: relative;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 16px rgba(243, 198, 95, 0.08);
  color: var(--gold);
}

.theme-toggle svg {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  transition: opacity 220ms ease, transform 350ms var(--ease-out);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-60deg) scale(0.45);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(60deg) scale(0.45);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.power-toggle__label {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  color: var(--ink);
  line-height: 1;
  text-align: left;
}

.power-toggle__label strong,
.power-toggle__label span {
  font-family: var(--pd-font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.power-toggle__label span {
  color: var(--muted);
  letter-spacing: 0.09em;
}

.power-toggle__pulse {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(157, 169, 198, 0.48);
  box-shadow: 0 0 0 0 rgba(243, 198, 95, 0);
  transition: background 350ms ease, box-shadow 350ms ease;
}

.fullscreen-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.fullscreen-toggle .icon-exit-fullscreen {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
  color: var(--cyan);
}

.fullscreen-toggle[aria-pressed="true"] .icon-enter-fullscreen {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] .icon-exit-fullscreen {
  display: block;
}

.fullscreen-toggle:disabled {
  cursor: progress;
  opacity: 0.68;
}

html[data-theme="light"] .status-pill,
html[data-theme="light"] .icon-button {
  border-color: rgba(22, 55, 108, 0.16);
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 8px 22px rgba(88, 65, 20, 0.07);
}

html[data-theme="light"] .status-pill {
  color: rgba(16, 33, 59, 0.78);
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(151, 92, 0, 0.28);
  background: linear-gradient(105deg, rgba(255, 250, 226, 0.98), rgba(255, 220, 113, 0.92) 58%, rgba(245, 181, 43, 0.92));
  box-shadow: 0 10px 28px rgba(186, 112, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  color: #10213b;
}

html[data-theme="light"] .theme-toggle:hover {
  background: linear-gradient(105deg, #fffdf2, #ffe18b 58%, #f5b52b);
}

html[data-theme="light"] .power-toggle__orb {
  border-color: rgba(11, 28, 52, 0.16);
  background: #153e91;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.08), 0 5px 14px rgba(35, 52, 84, 0.18);
  color: #fff8d8;
}

html[data-theme="light"] .power-toggle__label span {
  color: #704600;
}

html[data-theme="light"] .power-toggle__pulse {
  background: #173f91;
  box-shadow: 0 0 0 4px rgba(21, 62, 145, 0.08), 0 0 14px rgba(21, 62, 145, 0.22);
  animation: regulationsPowerPulse 2.1s ease-in-out infinite;
}

.preview-notice {
  position: relative;
  z-index: 35;
  display: grid;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(0.75rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 68%, transparent);
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.2;
  text-align: center;
}

.preview-notice__login {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--pd-font-mono);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.preview-notice__login > span:first-child {
  color: var(--gold);
  font-weight: 700;
}

.preview-notice__login strong {
  color: var(--ink);
}

.preview-notice__login i {
  color: var(--line-strong);
  font-style: normal;
}

.preview-notice__login::after {
  color: var(--cyan);
  content: "→";
  font-size: 0.8rem;
  transition: transform 180ms var(--ease-out);
}

.preview-notice__login:hover::after,
.preview-notice__login:focus-visible::after {
  transform: translateX(0.2rem);
}

main {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 100%;
  min-height: 0;
  isolation: isolate;
}

.hero-heading {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(94vw, 90rem);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.hero-heading h1 {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 11%, transparent);
  font-size: clamp(1.7rem, 8.4vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
  white-space: nowrap;
}

.hero-heading h1 i {
  color: color-mix(in srgb, var(--cyan) 38%, transparent);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  vertical-align: 0.12em;
  -webkit-text-stroke: 0;
}

.hero-heading h1 span {
  display: inline;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 20%, transparent);
}

.carousel-region {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: clamp(4.5rem, 11vh, 6rem) clamp(1rem, 4vw, 4rem) 0.35rem;
}

.carousel-aura {
  position: absolute;
  z-index: -1;
  top: 47%;
  left: 50%;
  width: min(70vw, 68rem);
  height: min(34vw, 27rem);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--blue) 20%, transparent), transparent 70%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.carousel-floor {
  position: absolute;
  z-index: -1;
  top: 62%;
  left: 50%;
  width: min(72vw, 61rem);
  height: 8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--shadow), transparent 67%);
  box-shadow: 0 0 5rem var(--shadow), inset 0 0 2rem rgba(255, 255, 255, 0.02);
  transform: translate(-50%, -50%) rotateX(72deg);
}

.carousel-viewport {
  position: relative;
  min-height: 0;
  perspective: clamp(850px, 90vw, 1500px);
  perspective-origin: 50% 48%;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport:focus-visible {
  outline-offset: -3px;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 32%, transparent);
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-stage {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
}

.carousel-motion-peek {
  --peek-accent: var(--cyan);
  --peek-accent-2: var(--gold);
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: none;
  width: var(--card-width);
  height: var(--card-height);
  margin-top: calc(var(--card-height) * -0.5);
  margin-left: calc(var(--card-width) * -0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: none;
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

.carousel-motion-peek__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--peek-accent) 30%, var(--line));
  border-radius: clamp(1.3rem, 2vw, 1.85rem);
  background:
    linear-gradient(color-mix(in srgb, var(--peek-accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--peek-accent-2) 14%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 19%, color-mix(in srgb, var(--peek-accent) 22%, transparent) 19.3% 19.8%, transparent 20.1% 31%, color-mix(in srgb, var(--peek-accent-2) 18%, transparent) 31.3% 31.8%, transparent 32.1%),
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--peek-accent) 22%, transparent), transparent 51%),
    linear-gradient(145deg, color-mix(in srgb, var(--peek-accent-2) 11%, var(--panel-strong)), var(--panel-strong));
  background-size: 2rem 2rem, 2rem 2rem, auto, auto, auto;
  box-shadow: none;
  transform: scale(0.72);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.carousel-reticle {
  position: absolute;
  z-index: 20;
  top: 48%;
  left: 50%;
  width: calc(var(--card-width) + 1.15rem);
  height: calc(var(--card-height) + 1.15rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  opacity: 0.58;
  transform: translate(-50%, -50%) scale(var(--active-card-scale));
  pointer-events: none;
}

.carousel-reticle::before,
.carousel-reticle::after,
.carousel-reticle span::before,
.carousel-reticle span::after {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--line-strong);
  content: "";
}

.carousel-reticle::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; border-radius: 0.4rem 0 0; }
.carousel-reticle::after { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; border-radius: 0 0.4rem 0 0; }
.carousel-reticle span:first-child::before { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; border-radius: 0 0 0 0.4rem; }
.carousel-reticle span:first-child::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; border-radius: 0 0 0.4rem; }

.regulation-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-width);
  height: var(--card-height);
  margin-top: calc(var(--card-height) * -0.5);
  margin-left: calc(var(--card-width) * -0.5);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: none;
}

.regulation-card__action {
  --card-scale: 0.75;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: clamp(1.3rem, 2vw, 1.85rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(0, 0, 0, 0.12)),
    var(--panel-strong);
  box-shadow: 0 2rem 5rem var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transform: scale(var(--card-scale));
  transform-origin: center;
  transition: border-color 180ms ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.regulation-card.is-active-plane .regulation-card__action {
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.regulation-card.is-active .regulation-card__action {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line-strong));
  box-shadow:
    0 2.5rem 7rem var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent),
    0 0 3.5rem color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.regulation-card.is-rear-plane {
  filter: brightness(0.56);
}

.regulation-card.is-rear-plane .regulation-card__action {
  box-shadow:
    0 0.85rem 2rem var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.regulation-card.is-outside-plane {
  visibility: hidden;
}

.regulation-card.is-outside-plane .regulation-card__action {
  box-shadow: none;
}

.carousel-viewport.is-dragging .carousel-stage,
.carousel-viewport.is-motion-active .carousel-stage {
  will-change: transform;
}

.carousel-viewport.is-dragging .regulation-card,
.carousel-viewport.is-motion-active .regulation-card {
  will-change: opacity;
}

.carousel-viewport.is-dragging .regulation-card__action,
.carousel-viewport.is-motion-active .regulation-card__action {
  will-change: transform;
}

.regulation-card__action::before {
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.15), transparent 18%, transparent 70%, rgba(255, 255, 255, 0.05));
  content: "";
  pointer-events: none;
}

.regulation-card__top,
.regulation-card__bottom {
  position: absolute;
  z-index: 10;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(0.85rem, 1.4vw, 1.15rem);
}

.regulation-card__top {
  top: 0;
  height: 3.25rem;
  transition: opacity 220ms ease;
}

.regulation-card:not(.is-active) .regulation-card__top {
  opacity: 0;
}

.regulation-card__bottom {
  bottom: 0;
  align-items: flex-end;
  padding-bottom: clamp(0.95rem, 1.6vw, 1.2rem);
}

.regulation-card__number,
.regulation-card__meta {
  color: var(--muted);
  font-family: var(--pd-font-mono);
  font-size: clamp(0.42rem, 0.58vw, 0.54rem);
}

.regulation-card__meta {
  text-align: right;
}

.regulation-card__copy p {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-family: var(--pd-font-mono);
  font-size: clamp(0.42rem, 0.58vw, 0.54rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.regulation-card__copy h3 {
  max-width: 13rem;
  margin: 0;
  font-family: var(--pd-font-ui);
  font-size: clamp(1rem, 1.75vw, 1.48rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.regulation-card__arrow {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  transition: color 240ms ease, background 240ms ease, transform 240ms var(--ease-out);
}

.regulation-card__arrow svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.regulation-card.is-active .regulation-card__arrow {
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  color: #071127;
  transform: rotate(-35deg);
}

.art {
  position: absolute;
  inset: 3.1rem 0.72rem 0.72rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(0.95rem, 1.6vw, 1.35rem);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 18%, var(--page-bg-2)), var(--page-bg) 76%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2rem 4rem rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.document-cover {
  position: absolute;
  inset: 3.1rem 0.72rem 0.72rem;
  display: grid;
  overflow: hidden;
  padding: clamp(0.5rem, 0.8vw, 0.75rem);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: clamp(0.95rem, 1.6vw, 1.35rem);
  background:
    radial-gradient(circle at 50% 34%, rgba(46, 92, 170, 0.26), transparent 62%),
    linear-gradient(145deg, #0a1b3a, #020713 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2rem 4rem rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.document-cover::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 19%, transparent 78%, rgba(3, 8, 23, 0.05));
  content: "";
  pointer-events: none;
}

.document-cover__image {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: clamp(0.375rem, 0.55vw, 0.5625rem);
  object-fit: contain;
  object-position: center;
  background: #86c9ef;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0.55rem 1.25rem rgba(2, 8, 28, 0.34);
}

.art::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  opacity: 0.68;
  mask-image: linear-gradient(black, transparent 94%);
}

.art::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 20%, transparent 72%, rgba(255, 255, 255, 0.04));
  content: "";
  pointer-events: none;
}

.art__index,
.art__caption {
  position: absolute;
  z-index: 10;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  font-family: var(--pd-font-mono);
  font-size: clamp(0.4rem, 0.55vw, 0.5rem);
}

.art__index { top: 0.8rem; left: 0.85rem; }
.art__caption { top: 0.8rem; right: 0.85rem; }

.art__orbit,
.art__beam,
.art__core,
.art__node {
  position: absolute;
  display: block;
}

.art__orbit {
  top: 42%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
}

.art__orbit--two {
  width: 52%;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent-2) 68%, transparent);
  transform: translate(-50%, -50%) rotate(-22deg) scaleY(0.72);
}

.art__beam {
  top: 41%;
  left: 50%;
  width: 82%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translate(-50%, -50%) rotate(36deg);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}

.art__beam--two {
  transform: translate(-50%, -50%) rotate(-36deg);
}

.art__core {
  z-index: 4;
  top: 42%;
  left: 50%;
  display: grid;
  width: 30%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, var(--accent-2) 26%, var(--accent) 66%, var(--page-bg) 100%);
  box-shadow: 0 0 2rem color-mix(in srgb, var(--accent) 48%, transparent);
  transform: translate(-50%, -50%);
}

.art__core::before,
.art__core::after {
  position: absolute;
  content: "";
}

.art__core::before {
  width: 38%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
}

.art__core::after {
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0.8rem var(--gold);
}

.art__node {
  z-index: 5;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0.8rem var(--accent-2);
}

.art__node--one { top: 21%; left: 24%; }
.art__node--two { top: 27%; right: 19%; }
.art__node--three { bottom: 28%; left: 19%; }
.art__node--four { right: 27%; bottom: 22%; }

.art__word {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 8%;
  left: 0;
  padding-inline: 0.35rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.4rem, 2.45vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.45);
}

.art__word small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--pd-font-latin);
  font-size: 0.2em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.art--contracts .art__core { border-radius: 0.55rem; transform: translate(-50%, -50%) rotate(8deg); }
.art--safety .art__core { border-radius: 48% 48% 58% 58%; clip-path: polygon(50% 0, 92% 17%, 82% 72%, 50% 100%, 18% 72%, 8% 17%); }
.art--training .art__orbit--one { transform: translate(-50%, -50%) rotate(22deg) scaleY(0.48); }
.art--training .art__orbit--two { transform: translate(-50%, -50%) rotate(-38deg) scaleY(0.48); }
.art--skills .art__core { border-radius: 28%; transform: translate(-50%, -50%) rotate(45deg); }
.art--skills .art__core::before { transform: rotate(-45deg); }
.art--inspection .art__orbit--one { border-width: 2px 1px 1px 2px; }
.art--inspection .art__beam--one { transform-origin: 0 50%; animation: radarSweep 7s linear infinite; }
.art--protection .art__beam { width: 54%; height: 2px; }
.art--mobility .art__orbit--one { border-style: dashed; transform: translate(-50%, -50%) rotate(55deg) scaleY(0.6); }
.art--resolution .art__core { width: 24%; border-radius: 0.3rem; }
.art--resolution .art__beam { width: 64%; transform: translate(-50%, -50%); }

.carousel-meta {
  position: relative;
  z-index: 24;
  display: grid;
  width: min(100%, 67rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  justify-self: center;
}

.active-regulation-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
}

.active-regulation {
  display: grid;
  min-width: 0;
  grid-template-areas:
    "eyebrow"
    "title"
    "line";
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.active-regulation__eyebrow-row {
  display: flex;
  min-width: 0;
  grid-area: eyebrow;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.active-regulation__eyebrow {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--active-accent-text);
  font-family: var(--pd-font-mono);
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-regulation__title-row {
  min-width: 0;
  display: flex;
  grid-area: title;
  align-items: baseline;
  gap: 0.8rem;
}

.active-regulation__title-row h2 {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-family: var(--pd-font-ui);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.active-regulation__title-row #activeTitle[lang="km"] {
  font-family: var(--pd-font-ui);
  font-weight: var(--pd-font-weight-heading);
  letter-spacing: 0;
  line-height: 1.18;
}

.active-regulation__document-title {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  border-radius: 0.35rem;
  color: inherit;
  cursor: default;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  white-space: nowrap;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.active-regulation__document-title #activeTitle {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-regulation__document-title[href] {
  cursor: pointer;
}

.active-regulation__document-title[href]:hover {
  color: var(--active-accent-text);
  text-decoration: underline;
}

.active-regulation__document-title[href]:focus-visible {
  outline: 1px solid var(--active-accent);
  outline-offset: 4px;
  color: var(--active-accent-text);
}

.active-regulation__summary {
  max-width: 49rem;
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.88vw, 0.82rem);
  line-height: 1.45;
}

.official-source-link {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.2rem;
  color: var(--cyan);
  font-family: var(--pd-font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 180ms ease, color 180ms ease;
}

.official-source-link:hover,
.official-source-link:focus-visible {
  color: var(--active-accent-text);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.active-regulation__line {
  width: min(100%, 45rem);
  height: 1px;
  grid-area: line;
  overflow: hidden;
  background: var(--line);
}

.active-regulation__line span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--active-accent));
  box-shadow: 0 0 0.75rem var(--active-accent);
  transition: width 320ms var(--ease-out);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.carousel-counter {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--muted);
  font-family: var(--pd-font-mono);
  font-size: 0.56rem;
}

.carousel-counter strong {
  color: var(--ink);
  font-family: var(--pd-font-mono);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.carousel-buttons {
  display: flex;
  gap: 0.5rem;
}

.round-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.round-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-2px);
}

.round-button svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pagination {
  position: relative;
  z-index: 25;
  display: flex;
  width: min(100%, 32rem);
  justify-self: center;
  justify-content: center;
  gap: 0.1rem;
  overflow-x: auto;
  padding-top: 0.2rem;
  scrollbar-width: none;
}

.pagination::-webkit-scrollbar {
  display: none;
}

.pagination button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.pagination button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 220ms var(--ease-out), background 220ms ease, box-shadow 220ms ease;
}

.pagination button:hover span,
.pagination button.is-active span {
  width: 2rem;
  background: var(--dot-accent);
  box-shadow: 0 0 0.85rem color-mix(in srgb, var(--dot-accent) 68%, transparent);
}

body#regulationsPage .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes radarSweep {
  to { transform: translate(-50%, -50%) rotate(396deg); }
}

@keyframes regulationsPowerPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.22); }
}

@media (min-width: 1180px) and (min-height: 620px) {
  :root {
    --active-card-scale: 1.16;
  }

  .carousel-region {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .carousel-meta {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    justify-self: stretch;
    align-self: stretch;
    pointer-events: none;
  }

  .active-regulation-panel {
    position: absolute;
    top: 50%;
    left: clamp(2rem, 4vw, 4rem);
    width: clamp(15rem, 20vw, 17.5rem);
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    padding: 1rem 0 1rem 1rem;
    border-left: 1px solid color-mix(in srgb, var(--active-accent) 42%, var(--line));
    transform: translateY(-45%);
    pointer-events: auto;
  }

  .active-regulation {
    grid-template-areas:
      "eyebrow"
      "title"
      "line";
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .active-regulation__eyebrow-row {
    margin-bottom: 0.65rem;
  }

  .active-regulation__title-row h2 {
    font-size: clamp(1.6rem, 2.15vw, 2.15rem);
    line-height: 1.12;
  }

  .active-regulation__document-title {
    white-space: normal;
  }

  .active-regulation__line {
    width: 100%;
    margin-top: 0.85rem;
  }

  .carousel-actions {
    position: static;
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.15rem;
    pointer-events: auto;
  }

  .pagination {
    grid-row: 2;
    align-self: end;
  }
}

@media (min-width: 1180px) and (min-height: 700px) {
  .carousel-motion-peek {
    display: block;
  }

  .carousel-viewport.is-motion-peek-active .carousel-motion-peek {
    opacity: 0.11;
    visibility: visible;
    transition-delay: 0s;
    will-change: transform, opacity;
  }

  .hero-heading {
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .carousel-region {
    padding-top: clamp(1.75rem, 4vh, 2.25rem);
  }

  .active-regulation-panel {
    top: auto;
    bottom: clamp(1.25rem, 4vh, 2.25rem);
    gap: 0.4rem;
    padding-block: 0.75rem;
    transform: none;
  }

  .active-regulation__eyebrow-row {
    margin-bottom: 0.45rem;
  }

  .active-regulation__document-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .active-regulation__line {
    margin-top: 0.65rem;
  }

  .carousel-actions {
    gap: 0.625rem;
    padding-top: 0;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 1180px) and (min-height: 760px) {
  :root {
    --active-card-scale: 1.3;
  }
}

@media (min-width: 1680px) and (min-height: 760px) {
  :root {
    --card-width: clamp(19.5rem, min(19vw, 38vh), 27.5rem);
    --card-height: clamp(27.5rem, min(27vw, 54vh), 38.75rem);
  }

  .carousel-reticle {
    top: calc(48% - 0.3125rem);
  }
}

@media (max-width: 980px) {
  :root {
    --card-width: clamp(16rem, 31vw, 17rem);
    --card-height: clamp(22rem, 44vw, 24rem);
  }

  .topbar__center {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .theme-toggle {
    min-width: 138px;
  }

  .carousel-region {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --card-width: min(68vw, 16rem);
    --card-height: min(90vw, 22rem);
  }

  .topbar {
    min-height: 3.75rem;
    padding-inline: 0.85rem;
  }

  .brand__emblem {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand__copy small {
    display: none;
  }

  .topbar__controls {
    gap: 0.45rem;
  }

  .autoplay-toggle {
    display: none;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .theme-toggle {
    width: auto;
    min-width: 116px;
    height: 44px;
    padding-right: 0.625rem;
  }

  .power-toggle__label strong {
    font-size: 0.5rem;
  }

  .power-toggle__label span {
    display: none;
  }

  .preview-notice {
    min-height: 2.5rem;
    padding-inline: 0.65rem;
    font-size: 0.52rem;
  }

  .preview-notice__login {
    width: 100%;
    min-height: 40px;
    gap: 0.28rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
  }

  .preview-notice__login::after {
    display: none;
  }

  .hero-heading {
    top: 0;
  }

  .hero-heading h1 {
    font-size: clamp(1.65rem, 8.4vw, 3.6rem);
  }

  .carousel-region {
    padding: 4.85rem 0.75rem max(0.65rem, env(safe-area-inset-bottom));
  }

  .carousel-stage,
  .carousel-reticle {
    top: 46%;
  }

  .carousel-floor {
    top: 57%;
    width: 92vw;
  }

  .carousel-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding-inline: 0.15rem;
  }

  .active-regulation-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .active-regulation {
    grid-template-areas:
      "title title"
      "line eyebrow";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .active-regulation__eyebrow-row {
    margin: 0;
  }

  .active-regulation__eyebrow {
    display: none;
  }

  .active-regulation__title-row h2 {
    font-size: 1.23rem;
    line-height: 1;
  }

  .active-regulation__document-title {
    white-space: normal;
  }

  .official-source-link {
    min-height: 40px;
    font-size: 0.58rem;
  }

  .carousel-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .carousel-counter {
    display: flex;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }

  .pagination {
    display: none;
  }
}

@media (max-width: 410px) {
  .brand__copy {
    display: none;
  }

  .topbar__controls {
    gap: 7px;
  }

  .theme-toggle {
    min-width: 118px;
    padding: 0 0.5rem 0 0.375rem;
  }

  .power-toggle__pulse {
    display: none;
  }

  .official-source-link {
    font-size: 0.54rem;
  }
}

@media (max-width: 330px) {
  .theme-toggle {
    min-width: 112px;
  }
}

@media (max-width: 720px) and (max-height: 740px) {
  :root {
    --card-width: min(58vw, 13.5rem);
    --card-height: clamp(13rem, min(70vw, calc(100svh - 18rem)), 16.5rem);
  }

  .hero-heading h1 {
    font-size: clamp(1.55rem, 8vw, 3.2rem);
  }

  .carousel-region {
    padding-top: 4.25rem;
  }
}

@media (max-height: 740px) and (min-width: 721px) {
  :root {
    --card-width: clamp(12.5rem, 17vw, 15.5rem);
    --card-height: clamp(18rem, 24vw, 21.8rem);
  }

  .carousel-region {
    padding-top: 4.25rem;
  }

  .hero-heading {
    top: 0;
  }

  .hero-heading h1 {
    font-size: clamp(3.5rem, 8vw, 6.3rem);
  }
}

@media (max-height: 520px) and (min-width: 540px) {
  :root {
    --card-width: 7.75rem;
    --card-height: 10rem;
  }

  .topbar {
    min-height: 3.25rem;
  }

  .brand__emblem {
    width: 2.25rem;
    height: 2.25rem;
  }

  .preview-notice {
    min-height: 2.25rem;
    font-size: 0.48rem;
  }

  .preview-notice__login {
    min-height: 36px;
  }

  .hero-heading {
    top: 0;
  }

  .hero-heading h1 {
    font-size: clamp(2.35rem, 6vw, 3rem);
  }

  .carousel-region {
    padding: 2.65rem 1rem 0.25rem;
  }

  .document-cover {
    padding: 0.375rem;
  }

  .document-cover__image {
    border-radius: 0.3125rem;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0.35rem 0.8rem rgba(2, 8, 28, 0.28);
  }

  .carousel-meta {
    gap: 0.75rem;
  }

  .active-regulation-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .active-regulation {
    grid-template-areas:
      "title eyebrow"
      "line line";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .active-regulation__eyebrow-row {
    margin: 0;
  }

  .active-regulation__eyebrow {
    display: none;
  }

  .active-regulation__title-row h2 {
    font-size: 1.1rem;
  }

  .active-regulation__document-title {
    white-space: nowrap;
  }

  .official-source-link {
    min-height: 40px;
    font-size: 0.6rem;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }

  .art__word {
    bottom: 6%;
    font-size: 0.95rem;
  }

  .pagination {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body#regulationsPage,
  body#regulationsPage *,
  body#regulationsPage *::before,
  body#regulationsPage *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  body#regulationsPage .ambient {
    transform: none;
  }

  body#regulationsPage .carousel-stage,
  body#regulationsPage .regulation-card,
  body#regulationsPage .regulation-card__action {
    will-change: auto;
  }

  body#regulationsPage .carousel-motion-peek {
    display: none;
    will-change: auto;
  }
}
