:root {
  --ink: #17121f;
  --muted: #62596f;
  --purple: #4d18c0;
  --purple-dark: #2f1746;
  --purple-soft: #f2ecf8;
  --line: #e7dfef;
  --surface: #ffffff;
  --surface-soft: #faf8fc;
  --success: #1f7a4d;
  --shadow: 0 24px 70px rgba(32, 18, 48, 0.14);
  --header-top-height: 48px;
  --header-main-height: 30px;
  --header-total-height: calc(var(--header-top-height) + var(--header-main-height));
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.7;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.header-top-bar {
  min-height: var(--header-top-height);
  padding: 0 clamp(20px, 5vw, 64px);
  color: #fff;
  background: var(--purple);
}

.header-top-shell,
.header-main-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.header-top-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: var(--header-top-height);
  font-size: 14px;
  font-weight: 700;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 100%;
  color: #fff;
}

.topbar-link:hover {
  color: rgba(255, 255, 255, 0.76);
}

.topbar-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-icon-button {
  justify-content: center;
  align-items: center;
  width: 20px;
  min-width: 20px;
  border-radius: 999px;
}

.topbar-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-language {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  z-index: 10;
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 18, 48, 0.14);
  transform: translateX(50%);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.language-option:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.header-main-bar {
  padding: 0 clamp(12px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(231, 223, 239, 0.9);
  box-shadow: 0 18px 50px rgba(32, 18, 48, 0.08);
  backdrop-filter: blur(16px);
}

.header-main-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "actions nav brand";
  position: relative;
  align-items: center;
  gap: 10px;
  min-height: var(--header-main-height);
}

.brand-link img {
  width: 138px;
  height: auto;
}

.brand-link {
  grid-area: brand;
  justify-self: end;
  align-self: center;
}

.site-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.site-nav a {
  padding: 8px 0;
  border-radius: 0;
  transition: color 180ms ease;
}

.site-nav a:first-child {
  color: var(--ink);
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--purple);
}

.header-actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
}

.search-button {
  order: 1;
}

.register-button {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 0 18px 0 12px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(32, 18, 48, 0.14);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.register-button:hover {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
  box-shadow: 0 10px 22px rgba(32, 18, 48, 0.18);
  transform: translateY(-1px);
}

.register-button span {
  position: relative;
  top: -1px;
}

.nav-toggle {
  order: 3;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--purple);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 80px) clamp(48px, 8vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #241036 0%, #5a2d82 58%, #7a4da1 100%);
}

.media-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 70vh, 620px);
  margin-top: calc(var(--header-total-height) * -1);
  color: #fff;
  background: #1f1230;
}

.media-hero-video,
.media-hero-overlay {
  position: absolute;
  inset: 0;
}

.media-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hero-overlay {
  background:
    linear-gradient(180deg, rgba(17, 10, 27, 0.62) 0%, rgba(17, 10, 27, 0.42) 34%, rgba(17, 10, 27, 0.68) 100%),
    linear-gradient(90deg, rgba(17, 10, 27, 0.62) 0%, rgba(17, 10, 27, 0.14) 55%, rgba(17, 10, 27, 0.48) 100%);
}

.media-hero-shell {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: min(1180px, 100%);
  min-height: clamp(420px, 70vh, 620px);
  margin: 0 auto;
  padding: calc(var(--header-total-height) + 44px) clamp(20px, 6vw, 80px) 56px;
}

.media-hero-copy {
  max-width: 620px;
}

.media-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.media-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.media-hero-copy p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-carousel {
  --hero-slide-width: min(760px, 68vw);
  --hero-slide-gap: clamp(18px, 2vw, 28px);
  --hero-side-shift: calc((var(--hero-slide-width) * 0.43) + var(--hero-slide-gap));
  position: relative;
  overflow: hidden;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-carousel-track {
  position: relative;
  height: clamp(360px, 34vw, 440px);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--hero-slide-width);
  height: 100%;
  opacity: 0;
  transform: translateX(calc(-50% + (var(--hero-side-shift) * 1.3))) scale(0.84);
  transform-origin: center center;
  transition:
    opacity 320ms ease,
    transform 420ms ease,
    filter 320ms ease,
    z-index 0ms linear 220ms;
  filter: saturate(0.84);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-current {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  filter: none;
  pointer-events: auto;
  z-index: 4;
}

.hero-slide.is-prev {
  opacity: 0.82;
  transform: translateX(calc(-50% - var(--hero-side-shift))) scale(0.88);
  filter: saturate(0.92);
  z-index: 3;
}

.hero-slide.is-next {
  opacity: 0.82;
  transform: translateX(calc(-50% + var(--hero-side-shift))) scale(0.88);
  filter: saturate(0.92);
  z-index: 3;
}

.hero-slide.is-hidden-prev {
  opacity: 0;
  transform: translateX(calc(-50% - (var(--hero-side-shift) * 1.55))) scale(0.78);
  z-index: 1;
}

.hero-slide.is-hidden-next {
  opacity: 0;
  transform: translateX(calc(-50% + (var(--hero-side-shift) * 1.55))) scale(0.78);
  z-index: 1;
}

.hero-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.hero-news {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.hero-news .hero-card {
  width: 100%;
}

.hero-card-link {
  color: inherit;
  text-decoration: none;
}

.hero-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(32, 18, 48, 0.18);
}

.hero-card-link:hover .hero-card-cta {
  background: rgba(255, 255, 255, 0.18);
}

.hero-centered {
  max-width: 880px;
  text-align: center;
}

.hero-centered .hero-media {
  display: none;
}

.hero-symbol {
  width: 54px;
  margin-bottom: 18px;
}

.hero-centered .hero-symbol {
  margin-right: auto;
  margin-left: auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-centered .hero-copy p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.hero-media {
  min-height: 360px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media > img,
.hero-media > video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #1b1029;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.hero-card.is-text-only {
  display: grid;
  align-content: end;
  padding: 22px 22px 24px;
  background: linear-gradient(135deg, rgba(36, 16, 54, 0.96) 0%, rgba(90, 45, 130, 0.96) 58%, rgba(122, 77, 161, 0.96) 100%);
}

.hero-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card-media img,
.hero-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 10, 27, 0.08) 0%, rgba(17, 10, 27, 0.2) 40%, rgba(17, 10, 27, 0.82) 100%);
}

.hero-card-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 24px;
}

.hero-card-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
}

.hero-card-excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.7;
}

.hero-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero-card-cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1180px;
  margin: 28px auto 0;
}

.hero-controls button {
  min-width: 92px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section,
.value-section,
.trust-section,
.final-cta {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  margin: 0 0 24px;
  text-align: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.tile,
.steps article,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tile {
  min-height: 260px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(40, 25, 55, 0.08);
}

.tile span {
  color: var(--purple);
  font-weight: 900;
}

.tile p,
.steps p,
.trust-section p,
.final-cta p,
.login-panel p {
  margin: 0;
  color: var(--muted);
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
  background: var(--surface-soft);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list p {
  margin: 0;
  border-right: 4px solid var(--purple);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(40, 25, 55, 0.06);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps article {
  min-height: 180px;
  padding: 26px;
}

.steps strong {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 24px;
}

.trust-section {
  max-width: none;
  color: #fff;
  background: #1f1230;
  text-align: center;
}

.trust-section .eyebrow {
  color: #d9c9ea;
}

.trust-section p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-cta {
  color: #fff;
  background: linear-gradient(135deg, #5a2d82 0%, #2f1746 100%);
  text-align: center;
}

.final-cta p {
  max-width: 720px;
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.76);
  background: #160d22;
}

.site-footer img {
  width: 150px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  background: var(--purple);
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--purple-dark);
}

.button-light {
  border-color: #fff;
  color: var(--purple-dark);
  background: #fff;
}

.button-light:hover {
  color: #fff;
  background: transparent;
}

.button-secondary {
  color: var(--purple);
  background: #fff;
}

.button-secondary:hover {
  color: #fff;
}

.public-login-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface-soft);
}

.news-page {
  min-height: 100vh;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 6vw, 80px);
  background: var(--surface-soft);
}

.news-article {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(32, 18, 48, 0.08);
}

.news-backlink {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--purple);
  font-weight: 800;
}

.news-article h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
}

.news-media {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #1f1230;
}

.news-media img,
.news-media video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-copy {
  color: var(--ink);
  font-size: 18px;
}

.news-copy p,
.news-empty p {
  margin: 0;
  color: var(--muted);
}

.login-panel {
  width: min(480px, 100%);
  padding: 34px;
  box-shadow: var(--shadow);
}

.login-panel img {
  width: 170px;
  margin-bottom: 34px;
}

.login-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
}

.login-panel .button {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: auto;
}

.form-actions,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-upload-row label {
  min-width: min(420px, 100%);
}

@media (max-width: 900px) {
  .site-footer,
  .login-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  :root {
    --header-top-height: 40px;
    --header-main-height: 68px;
  }

  .header-top-bar,
  .header-main-bar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header-top-shell {
    gap: 16px;
    font-size: 13px;
  }

  .header-main-shell {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }

  .brand-link img {
    width: auto;
    height: 82px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button,
  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .register-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle span {
    width: 16px;
    margin: 3px auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    z-index: 1;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(32, 18, 48, 0.1);
    min-width: 0;
  }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-split,
  .value-section {
    grid-template-columns: 1fr;
  }

  .media-hero,
  .media-hero-shell {
    min-height: 420px;
  }

  .media-hero-shell {
    padding-top: calc(var(--header-total-height) + 30px);
    padding-bottom: 40px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-carousel {
    --hero-slide-width: min(760px, 84vw);
    --hero-slide-gap: 14px;
    --hero-side-shift: calc((var(--hero-slide-width) * 0.34) + var(--hero-slide-gap));
    width: 100%;
  }

  .hero-carousel-track {
    height: 340px;
  }

  .hero-slide.is-prev,
  .hero-slide.is-next {
    opacity: 0.72;
    transform: translateX(calc(-50% + var(--hero-side-shift))) scale(0.9);
  }

  .hero-slide.is-prev {
    transform: translateX(calc(-50% - var(--hero-side-shift))) scale(0.9);
  }

  .hero-card-overlay {
    padding: 20px;
  }

  .tile-grid,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .brand-link img {
    width: auto;
    height: 74px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button,
  .nav-toggle {
    width: 32px;
    height: 32px;
  }

  .register-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .register-button span {
    display: inline;
  }

  .nav-toggle span {
    width: 14px;
    margin: 2.5px auto;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero-section,
  .section,
  .value-section,
  .trust-section,
  .final-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-carousel {
    --hero-slide-width: calc(100vw - 48px);
    --hero-slide-gap: 10px;
    --hero-side-shift: calc((var(--hero-slide-width) * 0.18) + var(--hero-slide-gap));
    width: 100%;
  }

  .hero-carousel-track {
    height: 280px;
  }

  .hero-slide.is-prev,
  .hero-slide.is-next {
    opacity: 0;
    transform: translateX(calc(-50% + (var(--hero-side-shift) * 1.2))) scale(0.9);
  }

  .hero-slide.is-prev {
    transform: translateX(calc(-50% - (var(--hero-side-shift) * 1.2))) scale(0.9);
  }

  .hero-slide.is-current {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .media-hero-copy h1 {
    font-size: 34px;
  }

  .media-hero-copy p:not(.eyebrow) {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .hero-card.is-text-only {
    padding: 18px;
  }

  .hero-card-overlay {
    padding: 18px;
  }

  .hero-card-title {
    font-size: 20px;
  }

  .hero-card-excerpt {
    font-size: 14px;
  }

  .login-panel,
  .public-login-entry {
    padding: 18px;
  }

  .news-page {
    padding: 24px 18px;
  }

  .news-article {
    padding: 20px 18px;
  }

  .news-copy {
    font-size: 16px;
  }
}

.admin-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface-soft);
}

#admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface-soft);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px;
  color: #fff;
  background: #1f1230;
}

.admin-brand img {
  width: 168px;
  margin-bottom: 34px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a:not(.admin-brand) {
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  padding: 34px clamp(18px, 4vw, 48px);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.admin-section,
.admin-placeholder,
.admin-form,
.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-section,
.admin-placeholder {
  margin-bottom: 18px;
  padding: 24px;
}

.admin-status {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 800;
}

.admin-status.muted {
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--surface-soft);
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

.admin-form textarea {
  min-height: 104px;
  resize: vertical;
}

.hero-admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.admin-item.is-editing {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.admin-item span {
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.admin-item p,
.admin-placeholder p {
  margin: 0;
  color: var(--muted);
}

.admin-item h3,
.admin-placeholder h2 {
  margin: 8px 0;
}

.admin-item strong {
  display: inline-flex;
  margin-top: 12px;
  color: var(--success);
}

.item-actions {
  justify-content: flex-end;
}

.item-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--purple);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.item-actions button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

@media (max-width: 900px) {
  #admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-header,
  .admin-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}
