/* Content management: keeps the compact header and navigation dimensions intact. */
.license-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 88px;
  margin: 12px;
  vertical-align: middle;
  border-radius: 6px;
}
.license-emblem img,
.license-emblem-preview img {
  display: block;
  width: 80px;
  height: 88px;
  object-fit: contain;
}
a.license-emblem:hover { background: rgba(185, 149, 231, .08); }
a.license-emblem:focus-visible { outline: 2px solid #b995e7; outline-offset: 5px; }
#site-header .deposit-btn::before {
  content: none;
}
#site-header .deposit-btn .action-icon {
  display: inline;
}
#site-header .topbar-actions a.header-profile {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0 4px;
  border: 1px solid rgba(218, 221, 225, .2);
  border-radius: 50%;
  color: #b7bcc3;
  background: rgba(167, 173, 181, .19);
  text-decoration: none;
  box-shadow: none;
}

#site-header .topbar-actions a.header-profile:hover {
  color: #f0f1f4;
  background: rgba(167, 173, 181, .3);
}

#site-header .header-profile svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-profile:focus-visible,
.content-banner-controls button:focus-visible,
.provider-ticker-pause:focus-visible {
  outline: 2px solid #a6bcdd;
  outline-offset: 3px;
}

.content-banner-slider {
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.content-banner-slide,
.content-banner-slide > a {
  display: block;
  width: 100%;
  aspect-ratio: 1900 / 665;
}

.content-banner-slide[hidden],
.content-banner-controls[hidden],
.provider-ticker-pause[hidden] {
  display: none !important;
}

.content-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1900 / 665;
  object-fit: cover;
}

.content-banner-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 2px 6px;
  border-radius: 20px;
  color: #fff;
  background: rgba(0, 0, 0, .78);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.content-banner-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.content-banner-controls [data-banner-pause] {
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  border-radius: 0;
  font-size: 15px;
}

.content-banner-controls button:hover {
  background: rgba(255, 255, 255, .12);
}

.provider-ticker {
  margin: 0 0 24px;
  padding: 18px 0 22px;
  border-block: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.provider-ticker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 0 10px 12px;
}

.provider-ticker-heading h3 {
  margin: 0;
  color: #aeb4be;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.provider-ticker-pause {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  color: #bfc4cc;
  cursor: pointer;
}

.provider-ticker-window {
  overflow: hidden;
  width: 100%;
}

.provider-ticker-track {
  display: flex;
  width: max-content;
  min-width: 200%;
}

.provider-ticker-lane {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: clamp(40px, 6vw, 120px);
  margin: 0;
  padding: 0 clamp(20px, 3vw, 60px);
  list-style: none;
}

.provider-ticker-lane li {
  flex: 0 0 auto;
  color: #c6cbd3;
  font-size: clamp(17px, 1.4vw, 24px);
  font-weight: 600;
  line-height: 42px;
  white-space: nowrap;
}

.provider-ticker.is-ready .provider-ticker-track {
  animation: content-provider-scroll 32s linear infinite;
}

.provider-ticker.is-paused .provider-ticker-track,
.provider-ticker:hover .provider-ticker-track,
.provider-ticker:focus-within .provider-ticker-track {
  animation-play-state: paused;
}

@keyframes content-provider-scroll {
  to { transform: translateX(-50%); }
}

.admin-form .content-code-editor {
  display: block;
  width: 100%;
  min-height: 480px;
  padding: 18px;
  overflow: auto;
  resize: vertical;
  background: #090c11;
  color: #d8e3f3;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
  user-select: text;
}

.content-editor-card > p,
.content-editor-card .code-note {
  line-height: 1.65;
}

.content-banner-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
}

.content-banner-options label {
  flex: 1 1 160px;
}

.content-banner-options button {
  min-height: 40px;
}

.content-banner-thumbnail {
  display: block;
  width: 120px;
  max-width: 100%;
  aspect-ratio: 1900 / 665;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 3px;
}

.content-banner-preview {
  width: 100%;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .content-banner-slider { margin-bottom: 18px; }
  .content-banner-controls { top: 6px; right: 6px; gap: 2px; padding: 0 3px; font-size: 11px; }
  .content-banner-controls button { width: 26px; height: 26px; }
  .provider-ticker { padding-block: 12px; }
  .admin-form .content-code-editor { min-height: 360px; padding: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .provider-ticker.is-ready .provider-ticker-track { animation: none; }
  .provider-ticker-window { overflow-x: auto; }
  .provider-ticker-track { min-width: 100%; }
  .provider-ticker-lane[aria-hidden="true"] { display: none; }
  .provider-ticker-pause { display: none; }
}
