[hidden] {
  display: none !important;
}

:root {
  --ink: #0a2035;
  --ink-deep: #071523;
  --gold: #c5ae00;
  --gold-soft: #f3e8a5;
  --mist: #eef3f7;
  --cloud: #f7fafc;
  --white: #ffffff;
  --text: #314355;
  --muted: #66788b;
  --line: rgba(10, 32, 53, 0.12);
  --shadow: 0 28px 80px rgba(10, 32, 53, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
  --headline: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", "Nyala", "Noto Sans Ethiopic", sans-serif;
  --body: "Aptos", "Segoe UI Variable Text", "Verdana", "Nyala", "Noto Sans Ethiopic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(10, 32, 53, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
  top: 0px !important; /* Prevent Google Translate from pushing body down */
}

/* Hide Google Translate Bar */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hide the Google Translate icon that sometimes appears */
.goog-te-gadget-icon {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 32, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 32, 53, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

[data-admin-root] {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(10, 32, 53, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(10, 32, 53, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
}

[data-admin-root]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

[data-admin-root] .page-header {
  background: rgba(247, 250, 252, 0.72);
  border-bottom-color: rgba(10, 32, 53, 0.08);
}

[data-admin-root] .nav-links a,
[data-admin-root] .menu-toggle {
  color: inherit;
}

[data-admin-root] .nav-links a.active,
[data-admin-root] .nav-links a:hover {
  color: var(--ink);
}

[data-admin-root] .page-hero h1,
[data-admin-root] .page-hero p,
[data-admin-root] .eyebrow,
[data-admin-root] .card-kicker {
  color: inherit;
}

[data-admin-root] .admin-compact-hero p {
  color: var(--muted);
}

[data-admin-root] .eyebrow {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(10, 32, 53, 0.08);
}

[data-admin-root] .language-switch {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(10, 32, 53, 0.08);
  box-shadow: 0 10px 24px rgba(10, 32, 53, 0.08);
}

[data-admin-root] .language-switch button,
[data-admin-root] .language-switch [data-lang-current]::after {
  color: var(--ink);
  border-color: var(--ink);
}

[data-admin-root] .language-switch [data-lang-menu] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(10, 32, 53, 0.08);
}

[data-admin-root] .language-switch [data-lang-option].active {
  background: rgba(10, 32, 53, 0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 32, 53, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(197, 174, 0, 0.12);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 252, 0.72);
  border-bottom: 1px solid rgba(10, 32, 53, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0.04rem;
  align-content: center;
}

.brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--headline);
  color: var(--ink);
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  line-height: 0.92;
}

.brand-text span {
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;
  max-width: 9.4rem;
}

.admin-brand-solo {
  padding-right: 0.2rem;
}

.admin-brand-solo .brand-mark {
  width: 2.9rem;
  height: 2.9rem;
}

.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 0 10px 24px rgba(10, 32, 53, 0.08);
}

.language-switch svg,
.language-switch img {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.language-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  min-width: 2.4rem;
}

.language-switch button.active {
  color: var(--gold);
}

.language-switch [data-lang-current] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.language-switch [data-lang-current]::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-1px);
}

.language-switch [data-lang-menu] {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 5.5rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 32, 53, 0.1);
  box-shadow: 0 18px 40px rgba(10, 32, 53, 0.16);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1000;
  scrollbar-width: thin;
}

.language-switch.open [data-lang-menu] {
  display: flex;
}

.language-switch [data-lang-option] {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
}

.language-switch [data-lang-option].active {
  background: rgba(10, 32, 53, 0.08);
}

.template-editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.template-editor-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.template-elements-panel,
.template-properties {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.template-properties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-editor-stage-wrap .template-properties {
  margin-top: 0.15rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.template-elements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.template-element-list {
  display: grid;
  gap: 0.55rem;
}

.template-element-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(10, 32, 53, 0.08);
  background: rgba(247, 250, 252, 0.9);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

.template-element-item.active {
  border-color: rgba(197, 174, 0, 0.7);
  box-shadow: 0 14px 34px rgba(10, 32, 53, 0.1);
}

.template-editor-stage-wrap {
  display: grid;
  gap: 0.85rem;
}

.bulk-result-list,
.bulk-result-list li {
  margin: 0;
  padding: 0;
}

.bulk-result-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.bulk-result-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.generator-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.generator-card-header h3 {
  margin: 0.35rem 0 0;
}

.generator-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(10, 32, 53, 0.08);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.generator-mode-button {
  min-width: 6.4rem;
  padding: 0.65rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.generator-mode-button.is-active {
  background: linear-gradient(135deg, var(--ink) 0%, #15375b 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(10, 32, 53, 0.14);
}

.generator-panel + .generator-panel {
  margin-top: 0.75rem;
}

.admin-collapsible {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: var(--shadow);
}

.admin-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 1.4rem 1.6rem;
  cursor: pointer;
}

.admin-collapsible-summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-summary strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--headline);
  font-size: 1.2rem;
  line-height: 1.04;
  color: var(--ink-deep);
}

.admin-collapsible-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 700;
}

.admin-collapsible[open] .admin-collapsible-action::after {
  content: "Less";
}

.admin-collapsible:not([open]) .admin-collapsible-action::after {
  content: "More";
}

.admin-collapsible-content {
  padding: 0 1.25rem 1.25rem;
}

[data-certificate-admin-actions] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

[data-certificate-admin-actions][hidden],
[data-certificate-back-row][hidden] {
  display: none !important;
}

.certificate-public-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: var(--shadow);
}

.certificate-public-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(10, 32, 53, 0.08);
  background: rgba(247, 250, 252, 0.95);
}

.certificate-public-copy {
  display: grid;
  gap: 1rem;
}

.certificate-public-copy h3 {
  margin: 0;
}

.certificate-public-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.certificate-public-item {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.certificate-public-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-deep);
}

.registry-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registry-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(10, 32, 53, 0.08);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.registry-view-button {
  min-width: 3.6rem;
  padding: 0.36rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.registry-view-button.is-active {
  background: linear-gradient(135deg, var(--ink) 0%, #15375b 100%);
  color: var(--white);
}

.registry-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.certificate-registry-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: var(--shadow);
}

.certificate-registry-photo {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.certificate-registry-photo-placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-primary);
}

.certificate-registry-copy {
  display: grid;
  gap: 0.65rem;
}

.certificate-registry-copy h4,
.certificate-registry-copy p {
  margin: 0;
}

.certificate-registry-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.certificate-registry-meta span {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(10, 32, 53, 0.08);
  font-size: 0.92rem;
}

.certificate-registry-meta strong {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.registry-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.registry-page-button {
  min-width: 2.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 32, 53, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.registry-page-button.is-active {
  background: linear-gradient(135deg, var(--ink) 0%, #15375b 100%);
  color: var(--white);
}

.template-editor-toolbar {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(10, 32, 53, 0.95);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.5;
}

.template-editor-toolbar code {
  display: inline-flex;
  margin: 0.08rem 0.18rem;
  padding: 0.1rem 0.36rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-soft);
}

.template-editor-stage {
  position: relative;
  min-height: 720px;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(10, 32, 53, 0.1), rgba(10, 32, 53, 0.03));
  border: 1px solid rgba(10, 32, 53, 0.08);
  overflow: auto;
}

.admin-compact-hero {
  padding: 1.5rem 0 0.6rem;
}

.admin-compact-hero .page-hero-grid {
  grid-template-columns: 1fr;
}

.admin-compact-hero .eyebrow {
  margin-bottom: 0.2rem;
}

.admin-compact-hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.admin-compact-hero p {
  max-width: 48ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.admin-quick-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: var(--shadow);
}

.admin-quick-card p {
  margin: 0;
  color: var(--muted);
}

.template-stage-empty {
  display: grid;
  place-items: center;
  min-height: 640px;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  border: 1px dashed rgba(10, 32, 53, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
}

.template-stage-canvas {
  position: relative;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(10, 32, 53, 0.18);
  user-select: none;
  overflow: hidden;
}

.template-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.template-stage-overlay {
  position: absolute;
  inset: 0;
}

.template-stage-canvas.hidden,
.template-stage-empty.hidden {
  display: none;
}

.template-stage-element {
  position: absolute;
  border: 1px dashed rgba(10, 32, 53, 0.24);
  cursor: move;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
}

.template-stage-element.selected {
  border-color: rgba(197, 174, 0, 0.95);
  box-shadow: inset 0 0 0 1px rgba(197, 174, 0, 0.95), 0 10px 30px rgba(10, 32, 53, 0.14);
}

.template-stage-element.text {
  white-space: pre-wrap;
  word-break: break-word;
}

.template-stage-text {
  width: 100%;
  height: 100%;
}

.template-stage-element img {
  width: 100%;
  height: 100%;
}

.template-stage-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(50%, 50%);
  cursor: nwse-resize;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.template-preview-qr {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(10, 32, 53, 0.06) 25%, transparent 25%, transparent 75%, rgba(10, 32, 53, 0.06) 75%),
    linear-gradient(45deg, rgba(10, 32, 53, 0.06) 25%, transparent 25%, transparent 75%, rgba(10, 32, 53, 0.06) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
}

@media (max-width: 1080px) {
  .template-editor-layout {
    grid-template-columns: 1fr;
  }

  .template-editor-stage-wrap .template-properties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generator-card-header {
    flex-direction: column;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.96rem;
  color: var(--ink);
  opacity: 0.82;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-actions .button,
.nav-actions button.button,
.nav-actions .theme-switch,
.nav-actions .language-switch {
  flex: 0 0 auto;
}

.nav-actions .button,
.nav-actions button.button {
  min-height: 2.65rem;
  padding: 0.72rem 1.05rem;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--ink) 0%, #163961 100%);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 32, 53, 0.2);
}

.button-primary:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(10, 32, 53, 0.12);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.page-hero-grid,
.split-layout,
.cta-band,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.hero-copy,
.hero-panel,
.surface,
.stat-card,
.feature-card,
.project-card,
.quote-card,
.cta-band,
.timeline-card,
.form-card,
.insight-card,
.career-card,
.value-card {
  background: #ffffff;
  border: 1px solid rgba(10, 32, 53, 0.05);
  box-shadow: 0 10px 30px rgba(10, 32, 53, 0.06);
  backdrop-filter: none;
}

.metric-card,
.sector-card,
.service-card,
.project-card {
  background: #ffffff;
  border: 1px solid rgba(10, 32, 53, 0.05);
  box-shadow: 0 10px 30px rgba(10, 32, 53, 0.06);
  backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* Theme-flipping hover effects */
html:not([data-theme="dark"]) .metric-card:hover,
html:not([data-theme="dark"]) .sector-card:hover,
html:not([data-theme="dark"]) .service-card:hover,
html:not([data-theme="dark"]) .project-card:hover {
  background: #0a2035 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(10, 32, 53, 0.28) !important;
}

html:not([data-theme="dark"]) .metric-card:hover strong,
html:not([data-theme="dark"]) .sector-card:hover h3,
html:not([data-theme="dark"]) .service-card:hover h3,
html:not([data-theme="dark"]) .project-card:hover h3 {
  color: #ffffff !important;
}

html:not([data-theme="dark"]) .metric-card:hover span,
html:not([data-theme="dark"]) .sector-card:hover p,
html:not([data-theme="dark"]) .service-card:hover p,
html:not([data-theme="dark"]) .service-card:hover li,
html:not([data-theme="dark"]) .project-card:hover p {
  color: rgba(255, 255, 255, 0.8) !important;
}

html:not([data-theme="dark"]) .service-card:hover .card-icon-box,
html:not([data-theme="dark"]) .project-card:hover .card-icon-box {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .metric-card:hover,
html[data-theme="dark"] .sector-card:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .project-card:hover {
  background: #ffffff !important;
  border-color: rgba(10, 32, 53, 0.1) !important;
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .metric-card:hover strong,
html[data-theme="dark"] .sector-card:hover h3,
html[data-theme="dark"] .service-card:hover h3,
html[data-theme="dark"] .project-card:hover h3 {
  color: #0a2035 !important;
}



html[data-theme="dark"] .metric-card:hover span,
html[data-theme="dark"] .sector-card:hover p,
html[data-theme="dark"] .service-card:hover p,
html[data-theme="dark"] .service-card:hover li,
html[data-theme="dark"] .feature-card:hover p,
html[data-theme="dark"] .project-card:hover p {
  color: #314355 !important;
}



html[data-theme="dark"] .service-card:hover .card-icon-box {
  background: var(--mist);
}




.hero-copy {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -4rem;
  top: -5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 174, 0, 0.18), transparent 65%);
}

.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 1.3rem 0 1rem;
  font-family: var(--headline);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink-deep);
}

.hero p,
.page-hero p,
.section-heading p {
  font-size: 1.07rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 66ch;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin: 2rem 0 2.2rem;
}

.stats-row,
.brand-ribbon,
.grid-3,
.grid-4,
.grid-2,
.panel-grid,
.timeline,
.contact-stack,
.resource-list,
.footer-links {
  display: grid;
  gap: 1rem;
}

.stats-row {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  border-radius: 24px;
  padding: 1.35rem;
}

.stat-card strong {
  display: block;
  font-family: var(--headline);
  font-size: 2rem;
  color: var(--ink);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(10, 32, 53, 0.94), rgba(10, 32, 53, 0.82)),
    linear-gradient(135deg, rgba(197, 174, 0, 0.12), transparent 55%);
  color: var(--white);
}

.hero-panel h2,
.cta-band h2,
.footer-brand strong {
  font-family: var(--headline);
  letter-spacing: -0.03em;
}

.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.mini-card strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.brand-ribbon {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.brand-ribbon .surface {
  border-radius: 22px;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 800px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.service-card,
.project-card,
.metric-card,
.quote-card,
.timeline-card,
.form-card,
.insight-card,
.career-card,
.value-card,
.sector-card {
  border-radius: 28px;
  padding: 1.7rem;
}

.card-icon-box {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--mist);
  margin-bottom: 1.4rem;
  color: var(--gold);
}

.card-icon-box img,
.card-icon-box svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Services Expandable Grid */
.services-expandable-grid {
  transition: all 0.5s ease;
}

.services-section-heading h2 {
  font-size: 1.8rem !important;
  margin-bottom: 1rem;
}

.services-section-heading p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 900px;
}

.who-we-are-section {
  position: relative;
  overflow: hidden;
}

.who-we-are-panel {
  position: relative;
  min-height: 26rem;
  display: flex;
  align-items: center;
  padding: 1.25rem clamp(8rem, 20vw, 18rem) 1.25rem 0;
  isolation: isolate;
}

.who-we-are-panel::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: min(80%, 46rem);
  aspect-ratio: 1 / 1;
  background: url("/Safair%20Logo.svg") no-repeat right center / contain;
  opacity: 0.16;
  filter: blur(12px);
  transform: translate(18%, -50%);
  z-index: -1;
  pointer-events: none;
}

.who-we-are-panel .section-heading {
  max-width: 50rem;
  margin-bottom: 0;
  text-align: left;
}

html[data-theme="dark"] .services-section-heading p {
  color: #a9bdd3;
}

html[data-theme="dark"] .who-we-are-panel::before {
  background-image: url("/Safair%20Logo%20Dark.svg");
  opacity: 0.18;
}

@media (max-width: 860px) {
  .who-we-are-panel {
    min-height: 22rem;
    padding-right: clamp(5.5rem, 14vw, 9rem);
    padding-left: 0;
  }

  .who-we-are-panel::before {
    width: min(82%, 34rem);
    transform: translate(26%, -50%);
  }
}

.services-expandable-grid article:nth-child(n+7) {
  display: none;
}

.services-expandable-grid.is-expanded article:nth-child(n+7) {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature Card Hover Effects - Theme Switching */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Light Theme -> Hover to Dark */
html[data-theme="light"] .feature-card:hover {
  background: rgba(9, 28, 46, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .feature-card:hover h3 {
  color: #ffffff !important;
}

html[data-theme="light"] .feature-card:hover p {
  color: #a9bdd3 !important;
}

html[data-theme="light"] .feature-card:hover .card-icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

/* Dark Theme -> Hover to Light */
html[data-theme="dark"] .feature-card:hover {
  background: #ffffff !important;
  border-color: rgba(10, 32, 53, 0.08) !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 32, 53, 0.12);
}

html[data-theme="dark"] .feature-card:hover h3 {
  color: var(--ink) !important;
}

html[data-theme="dark"] .feature-card:hover p {
  color: var(--muted) !important;
}

html[data-theme="dark"] .feature-card:hover .card-icon-box {
  background: var(--mist);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.feature-card h3,
.service-card h3,
.project-card h3,
.timeline-card h3,
.career-card h3,
.value-card h3,
.sector-card h3 {
  margin: 0 0 1rem;
  font-family: var(--headline);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

body.about-page [data-about-section="aboutCoreValues"] .card-kicker {
  font-size: 0.72rem;
}

body.about-page [data-about-section="aboutCoreValues"] .service-card h3 {
  font-size: 1.45rem;
}

.feature-card p,
.service-card p,
.project-card p,
.timeline-card p,
.career-card p,
.value-card p,
.sector-card p,
.quote-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.metric-card strong {
  display: block;
  font-family: var(--headline);
  font-size: 2.4rem;
  color: var(--ink);
}

.metric-card span {
  color: var(--muted);
}

.dark-band {
  background: linear-gradient(180deg, rgba(10, 32, 53, 0.98), rgba(8, 24, 40, 0.95));
  color: var(--white);
}

.white-band {
  background: #ffffff;
  color: var(--text);
  border-top: 1px solid rgba(10, 32, 53, 0.05);
  border-bottom: 1px solid rgba(10, 32, 53, 0.05);
}

html[data-theme="dark"] .white-band {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.dark-band .section-heading h2,
.dark-band .section-heading p,
.dark-band .timeline-card h3,
.dark-band .timeline-card p,
.dark-band .quote-card p {
  color: inherit;
}

.dark-band .service-card h3 {
  color: var(--white);
}

.dark-band .service-card p {
  color: rgba(255, 255, 255, 0.75);
}

.dark-band .service-card,
.dark-band .timeline-card,
.dark-band .quote-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.7;
}

.list li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero-grid {
  grid-template-columns: 1fr 0.8fr;
  align-items: stretch;
}

.page-hero-panel {
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(243, 247, 251, 0.82));
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: var(--shadow);
}

.page-hero-panel strong {
  display: block;
  font-family: var(--headline);
  font-size: 2rem;
  color: var(--ink);
}

.section-heading-compact h2 {
  max-width: 14ch;
}

.insights-hero {
  padding-bottom: 1rem;
}

.insights-hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.4rem;
}

.insights-brief {
  position: relative;
  overflow: hidden;
}

.insights-brief::after {
  content: "";
  position: absolute;
  inset: auto -8% -25% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 174, 0, 0.2), transparent 70%);
  pointer-events: none;
}

.insights-metric-list,
.featured-story-side,
.story-meta-row,
.insights-filter-row,
.featured-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.insights-metric-list {
  margin-top: 1.4rem;
  flex-direction: column;
}

.insights-metric-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.insights-metric-item span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.insights-metric-item strong {
  font-size: 1rem;
  line-height: 1.55;
}

.featured-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 34px;
  background:
    linear-gradient(140deg, rgba(10, 32, 53, 0.96), rgba(18, 54, 89, 0.92)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.22), transparent 30%);
  box-shadow: 0 26px 70px rgba(10, 32, 53, 0.24);
  color: var(--white);
}

.featured-story-copy,
.story-side-card,
.resource-stack-card {
  border-radius: 28px;
}

.featured-story-copy {
  padding: 2rem;
}

.featured-story .card-kicker,
.story-side-card .card-kicker {
  color: var(--gold-soft);
}

.featured-story h2 {
  margin: 0 0 1rem;
  font-family: var(--headline);
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.featured-story p,
.story-side-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.featured-story-meta {
  margin: 1.3rem 0 1.8rem;
}

.featured-story-meta span,
.story-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: inherit;
}

.featured-story-side {
  align-content: start;
}

.story-side-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.featured-story-home {
  width: calc(100% + 4rem);
  margin-inline: -2rem;
  padding-left: calc(1.1rem + 2rem);
  padding-right: calc(1.1rem + 2rem);
}

.insights-library-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.insights-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.insights-library-panel .section-heading {
  margin-bottom: 0;
}

.insights-library-panel .insights-controls {
  margin: 0;
}

.insights-library-panel .insight-article-card {
  padding: 1.25rem;
  gap: 0.85rem;
}

.insights-library-panel .insight-article-card h3 {
  font-size: 1.12rem;
}

.insights-library-panel .insight-article-card p {
  line-height: 1.65;
}

.insights-library-panel .story-meta-row {
  gap: 0.45rem;
}

.insights-library-panel .story-meta-row span {
  font-size: 0.74rem;
  padding: 0.56rem 0.72rem;
}

.insights-library-panel .hero-actions {
  gap: 0.55rem;
}

.insights-library-panel .button {
  width: 100%;
  justify-content: center;
}

.story-side-card h3,
.insight-article-card h3,
.resource-stack-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--headline);
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink-deep);
}

.story-side-card h3 {
  color: var(--white);
}

.insights-controls {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 19rem);
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1.5rem;
}

.insights-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 32, 53, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.insights-filter:hover,
.insights-filter:focus-visible,
.insights-filter.is-active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--ink) 0%, #15375b 100%);
  border-color: rgba(10, 32, 53, 0.18);
  color: var(--white);
}

.insights-search {
  display: block;
}

.insights-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 32, 53, 0.12);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(10, 32, 53, 0.06);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-article-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.7rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.insight-article-card:hover,
.insight-article-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 32px 70px rgba(10, 32, 53, 0.16);
}

.insight-article-card p,
.resource-stack-card p,
.insights-empty p,
.form-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.insight-article-media {
  margin: -0.2rem -0.2rem 1rem;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.insight-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-article-card[hidden] {
  display: none;
}

.story-meta-row {
  margin-top: auto;
}

.story-meta-row span {
  background: rgba(10, 32, 53, 0.05);
  border: 1px solid rgba(10, 32, 53, 0.08);
  color: var(--ink);
}

.resource-stack-card {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 251, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.insights-empty {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.insights-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.cta-band {
  border-radius: var(--radius-xl);
  padding: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.featured-insight-band {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  align-items: end;
}

.featured-insight-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 32, 53, 0.06), rgba(10, 32, 53, 0.3));
  pointer-events: none;
}

.featured-insight-band > * {
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

[data-homepage-featured] {
  background:
    linear-gradient(140deg, rgba(10, 32, 53, 0.94), rgba(18, 54, 89, 0.86)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 30%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 74px rgba(10, 32, 53, 0.18);
}

[data-homepage-featured] h2,
[data-homepage-featured] p,
[data-homepage-featured] .eyebrow {
  color: var(--white);
}

[data-homepage-featured] .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.split-layout {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-inline-newsletter {
  grid-template-columns: repeat(2, 1fr);
  align-items: flex-end;
}

@media (max-width: 560px) {
  .form-inline-newsletter {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.checkbox-field {
  align-items: center;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 32, 53, 0.12);
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.form-response {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 1rem;
  min-height: 1.4rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.contact-item-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item-label strong {
  margin: 0;
}

.contact-item-icon {
  width: 1.95rem;
  height: 1.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: var(--mist);
  color: var(--gold);
  flex: 0 0 auto;
}

.contact-item-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item-values {
  display: grid;
  gap: 0.35rem;
}

.contact-page .contact-channels-section .container {
  position: relative;
}

/* Contact channels: avoid gold/yellow accents in the channel card */
.contact-page .contact-channels-section .card-kicker {
  color: var(--muted);
}

.contact-page .contact-channels-section .contact-item-icon {
  color: var(--ink);
}

html[data-theme="dark"] .contact-page .contact-channels-section .card-kicker {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .contact-page .contact-channels-section .contact-item-icon {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 32, 53, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.resource-link-button {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
}

.resource-admin-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.resource-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

.resource-admin-item strong {
  display: block;
  color: var(--ink);
}

.resource-admin-item span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.resource-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.partner-ticker {
  overflow: hidden;
  width: 100%;
}

.partner-ticker-track {
  display: flex;
  width: max-content;
  animation: partner-scroll 32s linear infinite;
}

.partner-ticker-track:hover {
  animation-play-state: paused;
}

.partner-ticker-set {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 180px;
  min-height: 120px;
  padding: 1.1rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 0 18px 44px rgba(10, 32, 53, 0.08);
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.partner-card:hover {
  box-shadow: 0 22px 52px rgba(10, 32, 53, 0.14);
  transform: translateY(-2px);
}

.partner-card img {
  width: auto;
  max-width: 120px;
  height: 52px;
  object-fit: contain;
}

.partner-card span {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
}

.article-reader {
  padding: 2rem;
}

.article-reader p {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.article-cover {
  margin: 0 0 1.35rem;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-grid {
  padding: 2.2rem;
  border-radius: 28px;
  color: var(--white);
}

.article-hero-grid h1,
.article-hero-grid p,
.article-hero-grid .story-meta-row span {
  color: var(--white);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-nav-links a {
  font-size: 0.92rem;
}

.admin-nav-links a.active {
  opacity: 1;
}

.compact-admin-intro {
  display: grid;
  gap: 0.45rem;
}

.compact-admin-intro h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.compact-admin-intro p {
  margin: 0;
  max-width: 62rem;
  color: var(--muted);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(10, 32, 53, 0.1);
  vertical-align: top;
}

.admin-table th {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-note {
  color: var(--muted);
  line-height: 1.8;
}

.admin-result,
.result-links,
.auth-card {
  display: grid;
  gap: 0.8rem;
}

.admin-result .button,
.result-links .button {
  width: fit-content;
}

.result-links p,
.auth-card p {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-badge.valid {
  background: rgba(24, 161, 94, 0.12);
  color: #117446;
}

.status-badge.expired {
  background: rgba(194, 51, 51, 0.12);
  color: #9b1e1e;
}

.certificate-frame {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.certificate-loading {
  min-height: 12rem;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.certificate-sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 1414;
  overflow: hidden;
  border-radius: 24px;
  background: #0d243a;
}

.certificate-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.certificate-template-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-mask,
.certificate-overlay,
.certificate-photo,
.certificate-qr {
  position: absolute;
  z-index: 2;
}

.certificate-mask {
  background: rgba(255, 255, 255, 0.96);
}

.certificate-mask-left {
  left: 11%;
  top: 31%;
  width: 36%;
  height: 44%;
}

.certificate-mask-right {
  left: 60%;
  top: 31%;
  width: 27%;
  height: 34%;
}

.certificate-mask-expiry {
  left: 8%;
  bottom: 5.5%;
  width: 24%;
  height: 4.5%;
}

.certificate-mask-qr {
  right: 6%;
  bottom: 11%;
  width: 18%;
  height: 22%;
}

.certificate-photo {
  left: 7.5%;
  top: 8%;
  width: 13.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  transform: translate(var(--photo-x, 0px), var(--photo-y, 0px)) scale(var(--photo-scale, 1));
  transform-origin: center center;
}

.certificate-overlay {
  color: #112a45;
}

.certificate-name {
  left: 12%;
  top: 43.5%;
  width: 33%;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  font-weight: 700;
}

.certificate-training {
  left: 12%;
  top: 53%;
  width: 33%;
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 1.65rem);
  font-weight: 600;
}

.certificate-english-text {
  left: 11%;
  top: 35%;
  width: 36%;
  text-align: center;
  line-height: 1.45;
  font-size: clamp(0.58rem, 1.15vw, 1.35rem);
}

.certificate-amharic-title {
  left: 60%;
  top: 43%;
  width: 27%;
  text-align: center;
  font-size: clamp(0.9rem, 1.8vw, 2rem);
  font-weight: 700;
}

.certificate-amharic-text {
  left: 59%;
  top: 52%;
  width: 29%;
  text-align: center;
  line-height: 1.55;
  font-size: clamp(0.54rem, 1vw, 1.18rem);
}

.certificate-expiry {
  left: 8%;
  bottom: 6.2%;
  font-size: clamp(0.7rem, 1.4vw, 1.5rem);
}

.certificate-number {
  right: 14.4%;
  bottom: 16.7%;
  width: 14%;
  text-align: center;
  font-size: clamp(0.45rem, 0.95vw, 1rem);
}

.certificate-verify-text {
  right: 14%;
  bottom: 16%;
  width: 17%;
  display: grid;
  gap: 0.15rem;
  text-align: center;
  font-size: clamp(0.4rem, 0.88vw, 0.95rem);
}

.certificate-verify-text strong {
  font-size: clamp(0.5rem, 1vw, 1.05rem);
}

.certificate-qr {
  right: 7.2%;
  bottom: 11.5%;
  width: 14.5%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  padding: 0.45rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: #08192b;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
}

.footer-brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: left center;
  margin-bottom: 0;
}

.footer-brand-lockup {
  align-items: center;
  margin-bottom: 0.85rem;
}

.footer-brand .brand-text strong,
.footer-brand .brand-text span {
  color: #ffffff !important;
}

/* Ensure logo text is white in light mode footer */
html:not([data-theme="dark"]) .site-footer .brand-text strong,
html:not([data-theme="dark"]) .site-footer .brand-text span {
  color: #ffffff !important;
}

.footer-brand p {
  color: #ffffff !important;
  margin: 0;
  max-width: 22rem;
}

.footer-col h4 {
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(197, 174, 0, 0.14);
  border-color: rgba(197, 174, 0, 0.35);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .brand-ribbon,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .featured-story,
  .insights-controls,
  .insights-grid,
  .insights-hero-grid {
    grid-template-columns: 1fr;
  }

  .featured-story-home {
    width: 100%;
    margin-inline: 0;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

body.auth-page .section-tight {
  padding-top: 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 1180px) and (min-height: 820px) {
  body.auth-page .section-tight {
    padding-top: 0;
    margin-top: -8rem;
  }
}

@media (max-height: 760px) {
  body.auth-page .page-hero.auth-hero {
    margin-top: 0;
    padding: 7rem 0 1.5rem;
    min-height: auto;
    align-items: flex-start;
  }

  body.auth-page .section-tight {
    margin-top: 0;
    padding-top: 1.5rem;
  }
}

@media (max-width: 860px) {
  .home-sectors-section {
    display: none;
  }

  .home-page .split-layout .grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .insights-grid-compact {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 3.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(10, 32, 53, 0.08);
    box-shadow: 0 14px 34px rgba(10, 32, 53, 0.1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease,
      border-color 180ms ease;
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      width 220ms ease,
      background 180ms ease;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: "";
  }

  .menu-toggle-icon::before {
    transform: translate(-50%, calc(-50% - 0.38rem));
  }

  .menu-toggle-icon::after {
    transform: translate(-50%, calc(-50% + 0.38rem));
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(10, 32, 53, 0.14);
  }

  .page-header.open .menu-toggle {
    background: rgba(10, 32, 53, 0.1);
    border-color: rgba(10, 32, 53, 0.14);
    transform: rotate(90deg);
  }

  .page-header.open .menu-toggle-icon {
    background: transparent;
  }

  .page-header.open .menu-toggle-icon::before {
    width: 1.28rem;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .page-header.open .menu-toggle-icon::after {
    width: 1.28rem;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }

.page-header.open .nav-links,
.page-header.open .nav-actions {
  display: flex;
}

html[data-theme="dark"] .registry-page-button {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

html[data-theme="dark"] .registry-page-button.is-active {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #0a2035;
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
}

.theme-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  background: transparent;
  box-shadow: none;
}

.theme-switch-icon::before,
.theme-switch-icon::after {
  content: none;
}

.theme-switch-icon::before {
  content: none;
}

.theme-switch-icon::after {
  content: none;
}

.theme-switch:hover {
  transform: translateY(-1px) scale(1.04);
}

html[data-theme="dark"] .theme-switch {
  color: #ffffff;
}

html[data-theme="dark"] body,
html[data-theme="dark"] [data-admin-root] {
  color: #d9e5f2;
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(120, 162, 204, 0.1), transparent 20%),
    linear-gradient(180deg, #061321 0%, #0a2035 48%, #091a2c 100%);
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] [data-admin-root]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="dark"] .page-header,
html[data-theme="dark"] [data-admin-root] .page-header {
  background: rgba(6, 19, 33, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-text strong,
html[data-theme="dark"] .brand-text span,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .page-header h2,
html[data-theme="dark"] .page-header h3,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .section h3,
html[data-theme="dark"] .section p,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .project-card h3,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .admin-compact-hero p,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .insight-article-card h3,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td {
  color: #d9e5f2;
}

html[data-theme="dark"] .brand-text span,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .section p,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .field-help {
  color: #a9bdd3;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .language-switch,
html[data-theme="dark"] .theme-switch,
html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .page-hero-panel,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insight-article-card,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel {
  background: rgba(9, 28, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .certificate-public-item {
  color: var(--ink) !important;
}

html[data-theme="dark"] .certificate-public-item strong,
html[data-theme="dark"] .certificate-public-item span,
html[data-theme="dark"] .certificate-public-item span *,
html[data-theme="dark"] .certificate-public-item a {
  color: var(--ink) !important;
}

html[data-theme="dark"] .certificate-public-item a:hover {
  color: var(--ink-deep) !important;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .insights-search,
html[data-theme="dark"] .registry-filters input,
html[data-theme="dark"] .registry-filters select {
  background: rgba(5, 18, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef4fb;
}

html[data-theme="dark"] .insights-filter {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef4fb;
}

html[data-theme="dark"] .insights-filter.is-active,
html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover {
  background: rgba(197, 174, 0, 0.12);
  color: var(--gold-soft);
  border-color: rgba(197, 174, 0, 0.35);
}

html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover {
  background: rgba(9, 28, 46, 0.95);
  color: #eef4fb;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(5, 16, 28, 0.98), rgba(3, 11, 20, 0.98));
}

html[data-theme="dark"] .footer-brand .brand-text strong,
html[data-theme="dark"] .footer-brand .brand-text span,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-col h4 {
  color: #ffffff;
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-social a:hover {
  color: var(--gold-soft);
}

html[data-theme="dark"] .menu-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(9, 28, 46, 0.9);
}

html[data-theme="dark"] .menu-toggle::before,
html[data-theme="dark"] .menu-toggle::after {
  background: #ffffff;
}

html[data-theme="dark"] .language-switch {
  background: rgba(9, 28, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .language-switch button,
html[data-theme="dark"] .theme-switch {
  color: #eef4fb;
}

html[data-theme="dark"] .language-switch [data-lang-menu] {
  background: rgba(7, 23, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .language-switch [data-lang-option].active {
  background: rgba(197, 174, 0, 0.12);
}

/* Final dark-mode homepage overrides that must stay last */
html[data-theme="dark"] .menu-toggle {
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .page-header {
  background: #061321 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme="dark"] .nav-links {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Homepage refresh */
.hero-slider-section {
  padding: 1.6rem 0 3.2rem;
}

.hero-carousel {
  position: relative;
  width: min(100%, calc(100vw - 2rem));
  min-height: clamp(34rem, 78vh, 48rem);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 5px solid rgba(9, 26, 44, 0.96);
  box-shadow: 0 36px 90px rgba(10, 32, 53, 0.28);
  background:
    radial-gradient(circle at 22% 18%, rgba(197, 174, 0, 0.1), transparent 16%),
    #091a2c;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2.3rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(10, 32, 53, 0.24);
  filter: blur(26px);
  z-index: -1;
}

.hero-carousel-chrome {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-carousel-accent {
  position: absolute;
}

.hero-carousel-accent--dots {
  position: absolute;
  top: 1.2rem;
  left: 1.35rem;
  width: 3.5rem;
  height: 3.5rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.2px, transparent 1.2px);
  background-size: 0.42rem 0.42rem;
  opacity: 0.5;
}

.hero-carousel-accent--fan {
  top: 0;
  right: 0;
  width: 17rem;
  height: 14rem;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.08) 50.5%, transparent 51%) top right / 100% 100% no-repeat;
  opacity: 0.6;
}

.hero-carousel-topbar {
  position: absolute;
  top: 1.1rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-carousel-brand {
  font-family: var(--headline);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3e8a5;
}

.hero-carousel-nav,
.hero-carousel-pills {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-carousel-nav span,
.hero-carousel-pills span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-carousel-pills span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 700ms ease, transform 700ms ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 1600ms ease;
}

.hero-slide.active img {
  transform: scale(1.08);
}

.hero-slide--industrial img {
  object-position: center 42%;
}

.hero-slide--solar img {
  object-position: center 58%;
}

.hero-slide--steel img {
  object-position: center center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(197, 174, 0, 0.12), transparent 20%),
    linear-gradient(90deg, rgba(7, 21, 35, 0.88) 0%, rgba(7, 21, 35, 0.62) 34%, rgba(7, 21, 35, 0.22) 68%, rgba(7, 21, 35, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 21, 35, 0.08) 0%, rgba(7, 21, 35, 0.12) 42%, rgba(7, 21, 35, 0.9) 100%);
}

.hero-slide-content {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2rem);
  right: clamp(1.2rem, 3vw, 2rem);
  top: clamp(4.8rem, 10vw, 6rem);
  bottom: 5.4rem;
  z-index: 2;
  width: auto;
  display: grid;
  align-items: end;
}

.hero-slide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  min-height: 100%;
}

.hero-slide-main {
  display: grid;
  gap: 1.1rem;
  max-width: 31rem;
  padding: 0 0 1.2rem;
  align-content: end;
}

.hero-slide-count {
  color: var(--white);
  font-family: var(--headline);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-slide-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #f3e8a5;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-slide-content h1 {
  margin: 0;
  color: var(--white);
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  max-width: 11ch;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-slide-content p {
  margin: 0;
  max-width: 29rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.9;
}

.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.hero-slide-side {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  display: grid;
  gap: 0.5rem;
  width: min(14rem, 24vw);
  justify-items: start;
}

.hero-slide-note {
  display: grid;
  gap: 0.22rem;
  width: 100%;
  padding: 0.85rem 0 0;
  border-radius: 0;
  align-content: start;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
  box-shadow: none;
}

.hero-slide-note strong {
  color: #f3e8a5;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-slide-note span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.84rem;
}

.hero-slide-actions .button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e3cf43 100%);
  color: var(--ink-deep);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(197, 174, 0, 0.28);
}

.hero-carousel-arrow {
  position: relative;
  top: auto;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  transform: scale(1.06);
  background: rgba(7, 21, 35, 0.58);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-carousel-footer {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-carousel-connect {
  display: grid;
  gap: 0.75rem;
  min-width: 10rem;
}

.hero-carousel-connect span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-carousel-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-carousel-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: lowercase;
}

.hero-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  flex: 1;
}

.hero-carousel-track-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-carousel-track-item span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-carousel-track-item strong {
  font-family: var(--headline);
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-carousel-track-item.active,
.hero-carousel-track-item:hover,
.hero-carousel-track-item:focus-visible {
  color: var(--white);
  border-top-color: var(--gold);
  transform: translateY(-0.15rem);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-visual-frame {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #091a2c;
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 35, 0.06) 0%, rgba(7, 21, 35, 0.18) 38%, rgba(7, 21, 35, 0.82) 100%),
    linear-gradient(135deg, rgba(197, 174, 0, 0.16), transparent 42%);
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
  object-position: center;
}

.hero-visual-overlay {
  position: absolute;
  inset: auto 1.4rem 1.4rem 1.4rem;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(7, 21, 35, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-visual-overlay .card-kicker {
  margin-bottom: 0;
}

.hero-visual-overlay h2 {
  margin: 0;
  font-family: var(--headline);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero-visual-notes {
  display: grid;
  gap: 1rem;
}

.hero-visual-notes .mini-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 0 20px 48px rgba(10, 32, 53, 0.12);
}

.hero-visual-notes .mini-card strong {
  color: var(--ink);
}

.hero-visual-notes .mini-card span {
  color: var(--muted);
  line-height: 1.75;
}

.sectors-grid {
  align-items: stretch;
}

.sectors-grid .sector-card {
  position: relative;
  overflow: hidden;
}

.sectors-grid .sector-card::after {
  content: "";
  position: absolute;
  inset: auto 1.7rem 1.2rem 1.7rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(197, 174, 0, 0));
}

@media (max-width: 960px) {
  .hero-carousel {
    min-height: 42rem;
    border-radius: 28px;
  }

  .hero-carousel-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-carousel-nav {
    order: 3;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(7, 21, 35, 0.2) 0%, rgba(7, 21, 35, 0.38) 34%, rgba(7, 21, 35, 0.92) 100%);
  }

  .hero-slide-shell {
    grid-template-columns: 1fr;
  }

  .hero-slide-side {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .hero-slide-content h1 {
    max-width: 12ch;
  }

  .hero-carousel-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .hero-slider-section {
    padding-top: 1rem;
  }

  .hero-carousel {
    width: min(100%, calc(100vw - 1rem));
    min-height: 41rem;
    border-radius: 24px;
    border-width: 4px;
  }

  .hero-carousel-topbar {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    gap: 0.7rem;
  }

  .hero-carousel-nav {
    display: none;
  }

  .hero-carousel-pills span {
    font-size: 0.62rem;
    padding: 0.38rem 0.58rem;
  }

  .hero-slide-content {
    left: 1rem;
    right: 1rem;
    top: 4.6rem;
    bottom: 7.7rem;
  }

  .hero-slide-main {
    padding: 0;
  }

  .hero-slide-side {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0.8rem;
  }

  .hero-slide-note {
    padding-top: 0.7rem;
    border-radius: 0;
  }

  .hero-slide-content h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    max-width: 100%;
  }

  .hero-slide-content p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .hero-slide-actions {
    flex-wrap: wrap;
  }

  .hero-slide-actions .button-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-carousel-arrow {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.05rem;
  }

  .hero-carousel-footer {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    gap: 0.8rem;
  }

  .hero-carousel-connect {
    min-width: 0;
  }

  .hero-carousel-track {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-carousel-track-item {
    padding-top: 0.65rem;
  }

  .hero-carousel-track-item strong {
    font-size: 0.88rem;
  }
}

html[data-theme="dark"] .hero-visual-notes .mini-card {
  background: rgba(10, 32, 53, 0.74);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .hero-visual-notes .mini-card strong {
  color: #d9e5f2;
}

html[data-theme="dark"] .hero-visual-notes .mini-card span {
  color: #a9bdd3;
}

html[data-theme="dark"] .hero-carousel {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .hero-slide-actions .button-primary {
  color: var(--ink-deep);
}

html[data-theme="dark"] .hero-slide-actions .button-secondary {
  color: var(--white);
}

/* Final theme toggle icon system */
.theme-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.2rem !important;
  height: 3.2rem !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0a2035 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease !important;
}

.theme-switch:hover,
.theme-switch:focus-visible {
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow: none !important;
}

.theme-switch:active {
  transform: scale(0.92) !important;
}

.theme-switch-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.9rem !important;
  height: 1.9rem !important;
  border-radius: 0 !important;
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
}

.theme-switch-icon::before,
.theme-switch-icon::after {
  content: none !important;
}

.theme-switch-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  transform: rotate(90deg);
  transform-origin: 50% 50%;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.theme-switch-sun-core,
.theme-switch-moon,
.theme-switch-rays,
.theme-switch-mask-circle {
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease !important;
  transform-origin: 50% 50%;
}

.theme-switch-sun-core {
  fill: currentColor;
  stroke: none;
  opacity: 1;
  transform: scale(1);
}

.theme-switch-rays {
  opacity: 1;
  transform: scale(1);
}

.theme-switch-moon {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform: scale(0.55);
}

.theme-switch-mask-circle {
  transform: translate(18px, -4px);
}

html[data-theme="dark"] .theme-switch {
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .theme-switch-svg {
  transform: rotate(40deg);
}

html[data-theme="dark"] .theme-switch-sun-core,
html[data-theme="dark"] .theme-switch-rays {
  opacity: 0;
  transform: scale(0.45);
}

html[data-theme="dark"] .theme-switch-moon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch-mask-circle {
  transform: translate(0, 0);
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy .stats-row strong,
html[data-theme="dark"] .hero-copy .stats-row span,
html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0a2035;
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: #0a2035;
  border-color: #0a2035;
  color: var(--gold-soft);
}

html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel .mini-card strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .resource-link small {
  color: #ffffff;
}

html[data-theme="dark"] .feature-card h3 {
  color: var(--gold-soft);
}
/* Final dark-mode content overrides */
html[data-theme="dark"] .hero-copy .eyebrow {
  color: #ffffff;
}

html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035 !important;
}

html[data-theme="dark"] .feature-card .card-kicker {
  color: #c5ae00 !important;
}

html[data-theme="dark"] .split-layout .list li {
  color: #ffffff;
}

html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .cta-band > .button.button-secondary {
  color: #0a2035 !important;
  border-color: #0a2035 !important;
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .cta-band > .button.button-secondary:hover,
html[data-theme="dark"] .cta-band > .button.button-secondary:focus-visible {
  background: #c5ae00 !important;
  border-color: #c5ae00 !important;
  color: #ffffff !important;
}
/* Final dark-mode desktop + mobile polish */
html[data-theme="dark"] section.section-tight .section-heading h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .language-switch img {
  filter: brightness(0) invert(1);
}

/* True final admin layout overrides */
[data-admin-root].admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 32, 53, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f9fc 0%, #eef3f7 100%);
}

[data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(10, 32, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 32, 53, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

[data-admin-root].admin-shell .container {
  width: min(1320px, calc(100% - 2.5rem));
}

[data-admin-root].admin-shell .section,
[data-admin-root].admin-shell .section-tight {
  padding: 0 0 1.4rem;
}

[data-admin-root].admin-shell .page-hero,
[data-admin-root].admin-shell .admin-compact-hero {
  padding: 1rem 0 1.2rem;
}

[data-admin-root].admin-shell .page-hero-grid,
[data-admin-root].admin-shell .split-layout {
  gap: 1.35rem;
}

[data-admin-root].admin-shell .metric-card,
[data-admin-root].admin-shell .form-card,
[data-admin-root].admin-shell .admin-quick-card,
[data-admin-root].admin-shell .admin-table-wrap,
[data-admin-root].admin-shell .admin-collapsible,
[data-admin-root].admin-shell .generator-shell,
[data-admin-root].admin-shell .template-stage-shell,
[data-admin-root].admin-shell .editor-panel,
[data-admin-root].admin-shell .page-hero-panel {
  border-radius: 26px;
}

[data-admin-root].admin-shell .admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 17.5rem;
  padding: 1rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 248, 252, 0.92));
  border-right: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 22px 0 52px rgba(10, 32, 53, 0.08);
  backdrop-filter: blur(20px);
  z-index: 40;
  transition: transform 220ms ease, width 220ms ease, padding 220ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-header,
[data-admin-root].admin-shell .admin-sidebar-footer,
[data-admin-root].admin-shell .admin-sidebar-nav a,
[data-admin-root].admin-shell .admin-topbar-leading,
[data-admin-root].admin-shell .admin-topbar .nav-wrap,
[data-admin-root].admin-shell .admin-topbar .nav-actions {
  display: flex;
  align-items: center;
}

[data-admin-root].admin-shell .admin-sidebar-header {
  justify-content: space-between;
  gap: 0.75rem;
}

[data-admin-root].admin-shell .admin-sidebar-brand {
  max-width: 11.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(10, 32, 53, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before,
[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before {
  left: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  right: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav a {
  gap: 0.85rem;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  color: #5a6d80;
  font-size: 0.96rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-nav a:hover,
[data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(10, 32, 53, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-nav-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 32, 53, 0.08);
  flex: 0 0 auto;
}

[data-admin-root].admin-shell .admin-nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

[data-admin-root].admin-shell .admin-nav-text,
[data-admin-root].admin-shell .admin-topbar-meta,
[data-admin-root].admin-shell .admin-sidebar-helper {
  min-width: 0;
}

[data-admin-root].admin-shell .admin-sidebar-footer {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-helper strong {
  color: var(--ink);
  font-size: 0.95rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

[data-admin-root].admin-shell .admin-sidebar-logout {
  width: 100%;
  justify-content: center;
}

[data-admin-root].admin-shell .admin-workspace {
  margin-left: 17.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-admin-root].admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 250, 253, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-topbar .nav-wrap {
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

[data-admin-root].admin-shell .admin-topbar-leading {
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-topbar-meta {
  display: grid;
  gap: 0.12rem;
}

[data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
  margin: 0;
}

[data-admin-root].admin-shell .admin-topbar-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

[data-admin-root].admin-shell .admin-topbar .nav-actions {
  gap: 0.75rem;
  margin-left: auto;
}

[data-admin-root].admin-shell .admin-mobile-nav-toggle {
  display: none;
}

[data-admin-root].admin-shell .admin-workspace > main {
  flex: 1 1 auto;
  padding: 1rem 0 2rem;
}

[data-admin-root].admin-shell .site-footer {
  margin-top: 0.5rem;
  padding: 1.5rem 0 2rem;
  background: transparent;
  border-top: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.25rem;
}

[data-admin-root].admin-shell .admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 35;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
  width: 5.8rem;
  padding-inline: 0.6rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
  margin-left: 5.8rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-brand {
  max-width: 3rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-nav a {
  justify-content: center;
  padding-inline: 0.55rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-nav-text,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-helper,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-logout {
  display: none;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-footer {
  align-items: center;
}

@media (max-width: 1180px) {
  [data-admin-root].admin-shell .admin-sidebar {
    width: 16rem;
  }

  [data-admin-root].admin-shell .admin-workspace {
    margin-left: 16rem;
  }
}

@media (max-width: 1024px) {
  [data-admin-root].admin-shell .container {
    width: calc(100% - 1.5rem);
  }

  [data-admin-root].admin-shell .admin-sidebar {
    transform: translateX(-100%);
    width: min(19rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }

  [data-admin-root].admin-shell .admin-workspace,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 0;
  }

  [data-admin-root].admin-shell .admin-sidebar-toggle {
    display: none;
  }

  [data-admin-root].admin-shell .admin-mobile-nav-toggle {
    display: inline-flex;
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  [data-admin-root].admin-shell .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  [data-admin-root].admin-shell .admin-topbar .nav-wrap {
    min-height: 4.4rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta strong {
    font-size: 0.92rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
    font-size: 0.72rem;
  }
}

html[data-theme="dark"] [data-admin-root].admin-shell {
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.12), transparent 20%),
    linear-gradient(180deg, #071321 0%, #0a2035 55%, #081a2b 100%);
}

html[data-theme="dark"] [data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar {
  background: linear-gradient(180deg, rgba(8, 23, 38, 0.96), rgba(9, 25, 42, 0.94));
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a:hover,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper strong,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar-meta strong {
  color: #ffffff;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar {
  background: rgba(8, 23, 38, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Final admin layout overrides */
[data-admin-root].admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 32, 53, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f9fc 0%, #eef3f7 100%);
}

[data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(10, 32, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 32, 53, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

[data-admin-root].admin-shell .container {
  width: min(1320px, calc(100% - 2.5rem));
}

[data-admin-root].admin-shell .section,
[data-admin-root].admin-shell .section-tight {
  padding: 0 0 1.4rem;
}

[data-admin-root].admin-shell .page-hero,
[data-admin-root].admin-shell .admin-compact-hero {
  padding: 1rem 0 1.2rem;
}

[data-admin-root].admin-shell .page-hero-grid,
[data-admin-root].admin-shell .split-layout {
  gap: 1.35rem;
}

[data-admin-root].admin-shell .metric-card,
[data-admin-root].admin-shell .form-card,
[data-admin-root].admin-shell .admin-quick-card,
[data-admin-root].admin-shell .admin-table-wrap,
[data-admin-root].admin-shell .admin-collapsible,
[data-admin-root].admin-shell .generator-shell,
[data-admin-root].admin-shell .template-stage-shell,
[data-admin-root].admin-shell .editor-panel,
[data-admin-root].admin-shell .page-hero-panel {
  border-radius: 26px;
}

[data-admin-root].admin-shell .admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 17.5rem;
  padding: 1rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 248, 252, 0.92));
  border-right: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 22px 0 52px rgba(10, 32, 53, 0.08);
  backdrop-filter: blur(20px);
  z-index: 40;
  transition: transform 220ms ease, width 220ms ease, padding 220ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-header,
[data-admin-root].admin-shell .admin-sidebar-footer,
[data-admin-root].admin-shell .admin-sidebar-nav a,
[data-admin-root].admin-shell .admin-topbar-leading,
[data-admin-root].admin-shell .admin-topbar .nav-wrap,
[data-admin-root].admin-shell .admin-topbar .nav-actions {
  display: flex;
  align-items: center;
}

[data-admin-root].admin-shell .admin-sidebar-header {
  justify-content: space-between;
  gap: 0.75rem;
}

[data-admin-root].admin-shell .admin-sidebar-brand {
  max-width: 11.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(10, 32, 53, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before,
[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before {
  left: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  right: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav a {
  gap: 0.85rem;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  color: #5a6d80;
  font-size: 0.96rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-nav a:hover,
[data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(10, 32, 53, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-nav-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 32, 53, 0.08);
  flex: 0 0 auto;
}

[data-admin-root].admin-shell .admin-nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

[data-admin-root].admin-shell .admin-nav-text,
[data-admin-root].admin-shell .admin-topbar-meta,
[data-admin-root].admin-shell .admin-sidebar-helper {
  min-width: 0;
}

[data-admin-root].admin-shell .admin-sidebar-footer {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-helper strong {
  color: var(--ink);
  font-size: 0.95rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

[data-admin-root].admin-shell .admin-sidebar-logout {
  width: 100%;
  justify-content: center;
}

[data-admin-root].admin-shell .admin-workspace {
  margin-left: 17.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-admin-root].admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 250, 253, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-topbar .nav-wrap {
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

[data-admin-root].admin-shell .admin-topbar-leading {
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-topbar-meta {
  display: grid;
  gap: 0.12rem;
}

[data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
  margin: 0;
}

[data-admin-root].admin-shell .admin-topbar-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

[data-admin-root].admin-shell .admin-topbar .nav-actions {
  gap: 0.75rem;
  margin-left: auto;
}

[data-admin-root].admin-shell .admin-mobile-nav-toggle {
  display: none;
}

[data-admin-root].admin-shell .admin-workspace > main {
  flex: 1 1 auto;
  padding: 1rem 0 2rem;
}

[data-admin-root].admin-shell .site-footer {
  margin-top: 0.5rem;
  padding: 1.5rem 0 2rem;
  background: transparent;
  border-top: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.25rem;
}

[data-admin-root].admin-shell .admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 35;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
  width: 5.8rem;
  padding-inline: 0.6rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
  margin-left: 5.8rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-brand {
  max-width: 3rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-nav a {
  justify-content: center;
  padding-inline: 0.55rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-nav-text,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-helper,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-logout {
  display: none;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-footer {
  align-items: center;
}

@media (max-width: 1180px) {
  [data-admin-root].admin-shell .admin-sidebar {
    width: 16rem;
  }

  [data-admin-root].admin-shell .admin-workspace {
    margin-left: 16rem;
  }
}

@media (max-width: 1024px) {
  [data-admin-root].admin-shell .container {
    width: calc(100% - 1.5rem);
  }

  [data-admin-root].admin-shell .admin-sidebar {
    transform: translateX(-100%);
    width: min(19rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }

  [data-admin-root].admin-shell .admin-workspace,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 0;
  }

  [data-admin-root].admin-shell .admin-sidebar-toggle {
    display: none;
  }

  [data-admin-root].admin-shell .admin-mobile-nav-toggle {
    display: inline-flex;
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  [data-admin-root].admin-shell .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  [data-admin-root].admin-shell .admin-topbar .nav-wrap {
    min-height: 4.4rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta strong {
    font-size: 0.92rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
    font-size: 0.72rem;
  }
}

html[data-theme="dark"] [data-admin-root].admin-shell {
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.12), transparent 20%),
    linear-gradient(180deg, #071321 0%, #0a2035 55%, #081a2b 100%);
}

html[data-theme="dark"] [data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar {
  background: linear-gradient(180deg, rgba(8, 23, 38, 0.96), rgba(9, 25, 42, 0.94));
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a:hover,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper strong,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar-meta strong {
  color: #ffffff;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar {
  background: rgba(8, 23, 38, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Final admin SaaS sidebar layout */
.admin-shell {
  position: relative;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.4rem 1rem 1rem;
  background: rgba(247, 250, 252, 0.9);
  border-right: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 20px 0 48px rgba(10, 32, 53, 0.08);
  backdrop-filter: blur(20px);
  z-index: 40;
  transition: width 220ms ease, transform 220ms ease, padding 220ms ease;
}

.admin-sidebar-header,
.admin-sidebar-footer,
.admin-sidebar-nav a,
.admin-topbar-leading {
  display: flex;
  align-items: center;
}

.admin-sidebar-header,
.admin-sidebar-footer {
  justify-content: space-between;
  gap: 0.9rem;
}

.admin-sidebar-brand {
  max-width: 11.25rem;
  overflow: hidden;
}

.admin-sidebar-toggle,
.admin-mobile-nav-toggle {
  flex: 0 0 auto;
}

.admin-sidebar-toggle {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(10, 32, 53, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-sidebar-toggle-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.admin-sidebar-toggle-icon::before,
.admin-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  bottom: 0.16rem;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}

.admin-sidebar-toggle-icon::before {
  left: 0.25rem;
}

.admin-sidebar-toggle-icon::after {
  right: 0.25rem;
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar-nav a {
  gap: 0.85rem;
  min-height: 3.15rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  background: rgba(10, 32, 53, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(10, 32, 53, 0.06);
}

.admin-nav-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 32, 53, 0.08);
  color: currentColor;
  flex: 0 0 auto;
}

.admin-nav-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.admin-nav-text,
.admin-sidebar-helper,
.admin-topbar-meta {
  min-width: 0;
}

.admin-sidebar-helper {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar-helper strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-sidebar-helper span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.admin-sidebar-logout {
  width: 100%;
  justify-content: center;
}

.admin-workspace {
  min-height: 100vh;
  margin-left: 18rem;
  transition: margin-left 220ms ease;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.admin-topbar-leading {
  gap: 0.9rem;
}

.admin-topbar-meta {
  display: grid;
  gap: 0.2rem;
}

.admin-topbar-meta .card-kicker {
  margin: 0;
}

.admin-topbar-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-mobile-nav-toggle {
  display: none;
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 35;
}

.admin-shell.sidebar-collapsed .admin-sidebar {
  width: 6rem;
  padding-inline: 0.65rem;
}

.admin-shell.sidebar-collapsed .admin-workspace {
  margin-left: 6rem;
}

.admin-shell.sidebar-collapsed .admin-sidebar-brand {
  max-width: 2.9rem;
}

.admin-shell.sidebar-collapsed .admin-sidebar-nav a {
  justify-content: center;
  padding-inline: 0.6rem;
}

.admin-shell.sidebar-collapsed .admin-nav-text,
.admin-shell.sidebar-collapsed .admin-sidebar-helper,
.admin-shell.sidebar-collapsed .admin-sidebar-logout {
  display: none;
}

.admin-shell.sidebar-collapsed .admin-sidebar-footer {
  justify-content: center;
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: min(20rem, calc(100vw - 2rem));
    max-width: calc(100vw - 1rem);
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-mobile-nav-toggle {
    display: inline-flex;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-shell.sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .admin-topbar .nav-wrap {
    min-height: 4.5rem;
  }

  .admin-topbar-meta strong {
    font-size: 0.92rem;
  }

  .admin-topbar-meta .card-kicker {
    font-size: 0.72rem;
  }
}

html[data-theme="dark"] .admin-sidebar {
  background: rgba(9, 25, 42, 0.94);
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 20px 0 48px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .admin-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html[data-theme="dark"] .admin-sidebar-nav a {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] .admin-sidebar-nav a:hover,
html[data-theme="dark"] .admin-sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .admin-sidebar-helper strong,
html[data-theme="dark"] .admin-topbar-meta strong {
  color: #ffffff;
}

html[data-theme="dark"] .admin-sidebar-helper span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .admin-topbar {
  background: rgba(9, 25, 42, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Final dark-mode desktop + mobile polish */
html[data-theme="dark"] section.section-tight .section-heading h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .language-switch img {
  filter: brightness(0) invert(1);
}

/* Final dark-mode content overrides */
html[data-theme="dark"] .hero-copy .eyebrow {
  color: #ffffff;
}

html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035 !important;
}

html[data-theme="dark"] .feature-card .card-kicker {
  color: #c5ae00 !important;
}

html[data-theme="dark"] .split-layout .list li {
  color: #ffffff;
}

html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .cta-band > .button.button-secondary {
  color: #0a2035 !important;
  border-color: #0a2035 !important;
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .cta-band > .button.button-secondary:hover,
html[data-theme="dark"] .cta-band > .button.button-secondary:focus-visible {
  background: #c5ae00 !important;
  border-color: #c5ae00 !important;
  color: #ffffff !important;
}
/* Final dark-mode homepage overrides */
html[data-theme="dark"] .menu-toggle {
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy .stats-row strong,
html[data-theme="dark"] .hero-copy .stats-row span,
html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0a2035;
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: #0a2035;
  border-color: #0a2035;
  color: var(--gold-soft);
}

html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel .mini-card strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .resource-link small {
  color: #ffffff;
}

html[data-theme="dark"] .feature-card h3 {
  color: var(--gold-soft);
}
 
/* Final dark-mode homepage overrides */
html[data-theme="dark"] .menu-toggle {
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy .stats-row strong,
html[data-theme="dark"] .hero-copy .stats-row span,
html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0a2035;
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: #0a2035;
  border-color: #0a2035;
  color: var(--gold-soft);
}

html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel .mini-card strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .resource-link small {
  color: #ffffff;
}

html[data-theme="dark"] .feature-card h3 {
  color: var(--gold-soft);
}

html[data-theme="dark"] .menu-toggle {
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy .stats-row strong,
html[data-theme="dark"] .hero-copy .stats-row span,
html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0a2035;
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: #0a2035;
  border-color: #0a2035;
  color: var(--gold-soft);
}

html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel .mini-card strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .resource-link small {
  color: #ffffff;
}

html[data-theme="dark"] .feature-card h3 {
  color: var(--gold-soft);
}

/* Final dark-mode review fixes */
html[data-theme="dark"] .page-header {
  background: #061321 !important;
  backdrop-filter: none !important;
}

@media (min-width: 921px) {
  html[data-theme="dark"] .nav-links {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 920px) {
  html[data-theme="dark"] .page-header.open .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(10, 32, 53, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
  }

  html[data-theme="dark"] .page-header.open .nav-links a {
    color: var(--ink) !important;
  }
}

html[data-theme="dark"] .nav-links a {
  color: #f2f7fd !important;
  opacity: 0.86 !important;
}

html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a:focus-visible {
  color: #fff6c8 !important;
  opacity: 1 !important;
  border-bottom-color: var(--gold) !important;
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insights-library-panel,
html[data-theme="dark"] .insights-empty,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel {
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--ink) !important;
  border-color: rgba(10, 32, 53, 0.12) !important;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .project-card h3,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .quote-card h3,
html[data-theme="dark"] .quote-card p,
html[data-theme="dark"] .timeline-card h3,
html[data-theme="dark"] .timeline-card p,
html[data-theme="dark"] .form-card h3,
html[data-theme="dark"] .form-card p,
html[data-theme="dark"] .career-card h3,
html[data-theme="dark"] .career-card p,
html[data-theme="dark"] .value-card h3,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .sector-card h3,
html[data-theme="dark"] .sector-card p,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .cta-band p,
html[data-theme="dark"] .insights-library-panel .section-heading h2,
html[data-theme="dark"] .insights-library-panel .section-heading p,
html[data-theme="dark"] .insights-library-panel .card-kicker,
html[data-theme="dark"] .insights-empty strong,
html[data-theme="dark"] .insights-empty p,
html[data-theme="dark"] .admin-card h3,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong {
  color: var(--ink) !important;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .insights-brief,
html[data-theme="dark"] .featured-story,
html[data-theme="dark"] .story-side-card,
html[data-theme="dark"] .insight-article-card,
html[data-theme="dark"] .dark-band .service-card,
html[data-theme="dark"] .dark-band .timeline-card,
html[data-theme="dark"] .dark-band .quote-card {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%) !important;
  color: #f4f8fd !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .hero-panel strong,
html[data-theme="dark"] .hero-panel p,
html[data-theme="dark"] .insights-brief strong,
html[data-theme="dark"] .insights-brief p,
html[data-theme="dark"] .featured-story h2,
html[data-theme="dark"] .featured-story p,
html[data-theme="dark"] .story-side-card h3,
html[data-theme="dark"] .story-side-card p,
html[data-theme="dark"] .insight-article-card h3,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .insight-article-card .card-kicker,
html[data-theme="dark"] .dark-band .service-card h3,
html[data-theme="dark"] .dark-band .service-card p,
html[data-theme="dark"] .dark-band .timeline-card h3,
html[data-theme="dark"] .dark-band .timeline-card p,
html[data-theme="dark"] .dark-band .quote-card h3,
html[data-theme="dark"] .dark-band .quote-card p {
  color: #f4f8fd !important;
}

html[data-theme="dark"] .insight-article-card .story-meta-row span,
html[data-theme="dark"] .featured-story .story-meta-row span,
html[data-theme="dark"] .featured-story-meta span {
  color: #f4f8fd !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .insights-library-panel .insights-search {
  background: #ffffff !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

html[data-theme="dark"] .insights-library-panel .insights-search input {
  background: #ffffff !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  border-color: rgba(10, 32, 53, 0.12) !important;
  background-clip: padding-box !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] [data-admin-root] {
  color: #edf4fb;
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(120, 162, 204, 0.08), transparent 18%),
    linear-gradient(180deg, #061421 0%, #0a2035 45%, #071a2c 100%);
}

html[data-theme="dark"] .page-header,
html[data-theme="dark"] [data-admin-root] .page-header {
  background: rgba(6, 20, 33, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-text strong,
html[data-theme="dark"] .brand-text span,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .site-footer .footer-col h4,
html[data-theme="dark"] .site-footer .footer-links a,
html[data-theme="dark"] .site-footer .footer-brand p,
html[data-theme="dark"] .site-footer .brand-text strong,
html[data-theme="dark"] .site-footer .brand-text span {
  color: #f5f9fe;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .section > .container > p,
html[data-theme="dark"] .admin-compact-hero p {
  color: #b6c8da;
}

html[data-theme="dark"] .nav-links a {
  opacity: 0.88;
  border-bottom-color: transparent;
}

html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a:focus-visible {
  opacity: 1;
  color: #fff7cf;
  border-bottom-color: var(--gold);
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .page-hero-panel,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insight-article-card,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel,
html[data-theme="dark"] .language-switch [data-lang-menu],
html[data-theme="dark"] .nav-links {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(10, 32, 53, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .page-hero-panel,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insight-article-card,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel {
  color: var(--ink);
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-panel strong,
html[data-theme="dark"] .page-hero-panel strong,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .project-card h3,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .quote-card h3,
html[data-theme="dark"] .timeline-card h3,
html[data-theme="dark"] .form-card h3,
html[data-theme="dark"] .insight-card h3,
html[data-theme="dark"] .career-card h3,
html[data-theme="dark"] .value-card h3,
html[data-theme="dark"] .sector-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .insight-article-card h3,
html[data-theme="dark"] .admin-card h3,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .field label {
  color: var(--ink);
}

html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-panel p,
html[data-theme="dark"] .page-hero-panel p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .quote-card p,
html[data-theme="dark"] .timeline-card p,
html[data-theme="dark"] .insight-card p,
html[data-theme="dark"] .career-card p,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .sector-card p,
html[data-theme="dark"] .cta-band p,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .field-help {
  color: var(--muted);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .insights-search,
html[data-theme="dark"] .registry-filters input,
html[data-theme="dark"] .registry-filters select {
  background: #ffffff;
  border-color: rgba(10, 32, 53, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .insights-filter {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-color: rgba(10, 32, 53, 0.12);
}

html[data-theme="dark"] .button-primary {
  background: var(--white);
  color: var(--ink);
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .insights-filter.is-active {
  background: rgba(197, 174, 0, 0.14);
  color: var(--ink);
  border-color: rgba(197, 174, 0, 0.36);
}

html[data-theme="dark"] .theme-switch {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .language-switch {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .language-switch button,
html[data-theme="dark"] .theme-switch,
html[data-theme="dark"] .menu-toggle {
  color: #f4f8fd;
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insights-library-panel,
html[data-theme="dark"] .insights-empty,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
}

html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .project-card h3,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .quote-card h3,
html[data-theme="dark"] .quote-card p,
html[data-theme="dark"] .timeline-card h3,
html[data-theme="dark"] .timeline-card p,
html[data-theme="dark"] .career-card h3,
html[data-theme="dark"] .career-card p,
html[data-theme="dark"] .value-card h3,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .sector-card h3,
html[data-theme="dark"] .sector-card p,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .cta-band p,
html[data-theme="dark"] .insights-library-panel h2,
html[data-theme="dark"] .insights-library-panel p,
html[data-theme="dark"] .insights-empty strong,
html[data-theme="dark"] .insights-empty p {
  color: var(--ink);
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .insights-brief,
html[data-theme="dark"] .featured-story,
html[data-theme="dark"] .story-side-card,
html[data-theme="dark"] .insight-article-card {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f9fe;
}

html[data-theme="dark"] .hero-panel .card-kicker,
html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .hero-panel p,
html[data-theme="dark"] .form-card h3,
html[data-theme="dark"] .form-card p,
html[data-theme="dark"] .form-card .card-kicker,
html[data-theme="dark"] .insights-brief strong,
html[data-theme="dark"] .insights-brief p,
html[data-theme="dark"] .insight-article-card h3,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .insight-article-card .card-kicker,
html[data-theme="dark"] .insight-article-card .story-meta-row span {
  color: #f5f9fe;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(10, 32, 53, 0.08);
  border-color: rgba(10, 32, 53, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: rgba(10, 32, 53, 0.14);
  border-color: rgba(10, 32, 53, 0.16);
  color: var(--ink);
}

html[data-theme="dark"] .insight-article-card .story-meta-row span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .insights-library-panel .insights-search input {
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
  background-clip: padding-box;
}

html[data-theme="dark"] .insights-library-panel,
html[data-theme="dark"] .insights-library-panel .section-heading h2,
html[data-theme="dark"] .insights-library-panel .section-heading p,
html[data-theme="dark"] .insights-library-panel .insights-search,
html[data-theme="dark"] .insights-library-panel .insights-filter-row {
  color: var(--ink);
}

@media (min-width: 921px) {
  html[data-theme="dark"] .nav-links {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}

@media (max-width: 920px) {
  html[data-theme="dark"] .page-header.open .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(10, 32, 53, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  }

  html[data-theme="dark"] .page-header.open .nav-links a {
    color: var(--ink);
  }
}

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    margin-top: 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 32, 53, 0.08);
    box-shadow: 0 20px 40px rgba(10, 32, 53, 0.1);
  }

  .nav-actions {
    padding: 0.8rem 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .language-switch {
    width: fit-content;
    justify-content: flex-start;
    margin: 0;
  }

  .grid-3,
  .grid-2,
  .stats-row,
  .form-grid,
  .brand-ribbon,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .featured-story-copy {
    padding: 1.5rem;
  }
}

@media (min-width: 861px) {
.theme-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.2rem !important;
  height: 3.2rem !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0a2035 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease !important;
}

.theme-switch:hover,
.theme-switch:focus-visible {
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow: none !important;
}

.theme-switch:active {
  transform: scale(0.92) !important;
}

.theme-switch-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.9rem !important;
  height: 1.9rem !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.theme-switch-icon::before,
.theme-switch-icon::after {
  content: none !important;
}

.theme-switch-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  transform: rotate(90deg);
  transform-origin: 50% 50%;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.theme-switch-sun-core,
.theme-switch-moon,
.theme-switch-rays,
.theme-switch-mask-circle {
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease !important;
  transform-origin: 50% 50%;
}

.theme-switch-sun-core {
  fill: currentColor;
  stroke: none;
  opacity: 1;
  transform: scale(1);
}

.theme-switch-rays {
  opacity: 1;
  transform: scale(1);
}

.theme-switch-moon {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform: scale(0.55);
}

.theme-switch-mask-circle {
  transform: translate(18px, -4px);
}

html[data-theme="dark"] .theme-switch {
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .theme-switch-svg {
  transform: rotate(40deg);
}

html[data-theme="dark"] .theme-switch-sun-core,
html[data-theme="dark"] .theme-switch-rays {
  opacity: 0;
  transform: scale(0.45);
}

html[data-theme="dark"] .theme-switch-moon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch-mask-circle {
  transform: translate(0, 0);
}
}

@media (max-width: 560px) {
  .hero,
  .page-hero {
    padding-top: 3rem;
  }

  .admin-compact-hero {
    padding-top: 1.1rem;
  }

  .admin-compact-hero h1 {
    font-size: 1.3rem;
  }

  .admin-compact-hero p {
    font-size: 0.9rem;
  }

  .registry-filters,
  .certificate-grid,
  .certificate-registry-meta,
  .certificate-registry-card {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .page-hero-panel,
  .feature-card,
  .service-card,
  .project-card,
  .metric-card,
  .quote-card,
  .timeline-card,
  .form-card,
  .insight-card,
  .career-card,
  .value-card,
  .sector-card,
  .cta-band {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .certificate-frame {
    padding: 0.4rem;
  }

  .insights-filter-row,
  .featured-story-meta,
  .story-meta-row {
    gap: 0.55rem;
  }

  .insights-filter {
    width: 100%;
  }

  .generator-mode-toggle {
    width: 100%;
  }

  .generator-mode-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .certificate-public-card,
  .certificate-public-meta {
    grid-template-columns: 1fr;
  }
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #0a2035;
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
}

.theme-switch-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0;
  position: relative;
  background: transparent;
  box-shadow: none;
}

.theme-switch-label {
  line-height: 1;
}

html[data-theme="dark"] body,
html[data-theme="dark"] [data-admin-root] {
  color: #d9e5f2;
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(120, 162, 204, 0.1), transparent 20%),
    linear-gradient(180deg, #061321 0%, #0a2035 48%, #091a2c 100%);
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] [data-admin-root]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="dark"] .page-header,
html[data-theme="dark"] [data-admin-root] .page-header {
  background: rgba(6, 19, 33, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-text strong,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .insight-article-card h3,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td {
  color: #d9e5f2;
}

html[data-theme="dark"] .brand-text span,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .section p,
html[data-theme="dark"] .insight-article-card p,
html[data-theme="dark"] .admin-note,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .metric-card span {
  color: #a9bdd3;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .language-switch,
html[data-theme="dark"] .theme-switch,
html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .page-hero-panel,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .career-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .sector-card,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .insight-article-card,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .generator-shell,
html[data-theme="dark"] .certificate-registry-card,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .certificate-public-aside,
html[data-theme="dark"] .certificate-frame,
html[data-theme="dark"] .template-stage-shell,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .page-panel {
  background: rgba(9, 28, 46, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .insights-search,
html[data-theme="dark"] .registry-filters input,
html[data-theme="dark"] .registry-filters select {
  background: rgba(5, 18, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef4fb;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .insights-filter {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef4fb;
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .insights-filter.is-active,
html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover {
  background: rgba(197, 174, 0, 0.12);
  color: var(--gold-soft);
  border-color: rgba(197, 174, 0, 0.35);
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(5, 16, 28, 0.98), rgba(3, 11, 20, 0.98));
}

html[data-theme="dark"] .footer-brand .brand-text strong,
html[data-theme="dark"] .footer-brand .brand-text span,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-col h4 {
  color: #ffffff;
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-social a:hover {
  color: var(--gold-soft);
}

html[data-theme="dark"] .menu-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .theme-switch {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .language-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .language-switch button,
html[data-theme="dark"] .theme-switch {
  color: #eef4fb;
}

html[data-theme="dark"] .language-switch [data-lang-menu] {
  background: rgba(7, 23, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .language-switch [data-lang-option].active {
  background: rgba(197, 174, 0, 0.12);
}
/* Final dark-mode homepage overrides that must stay last */
html[data-theme="dark"] .menu-toggle {
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

html[data-theme="dark"] .menu-toggle-icon,
html[data-theme="dark"] .menu-toggle-icon::before,
html[data-theme="dark"] .menu-toggle-icon::after {
  background: #ffffff;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .hero-copy .stats-row strong,
html[data-theme="dark"] .hero-copy .stats-row span,
html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0a2035;
  color: #0a2035;
}

html[data-theme="dark"] .hero-copy .button-secondary:hover,
html[data-theme="dark"] .hero-copy .button-secondary:focus-visible {
  background: #0a2035;
  border-color: #0a2035;
  color: var(--gold-soft);
}

html[data-theme="dark"] .hero-panel h2,
html[data-theme="dark"] .hero-panel .mini-card strong,
html[data-theme="dark"] .hero-panel .mini-card span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong,
html[data-theme="dark"] .resource-link small {
  color: #ffffff;
}

html[data-theme="dark"] .feature-card h3 {
  color: var(--gold-soft);
}
/* Final dark-mode content overrides */
html[data-theme="dark"] .hero-copy .eyebrow {
  color: #ffffff;
}

html[data-theme="dark"] .brand-ribbon .surface {
  color: #0a2035 !important;
}

html[data-theme="dark"] .feature-card .card-kicker {
  color: #c5ae00 !important;
}

html[data-theme="dark"] .split-layout .list li {
  color: #ffffff;
}

html[data-theme="dark"] .resource-link span,
html[data-theme="dark"] .resource-link strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .cta-band > .button.button-secondary {
  color: #0a2035 !important;
  border-color: #0a2035 !important;
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .cta-band > .button.button-secondary:hover,
html[data-theme="dark"] .cta-band > .button.button-secondary:focus-visible {
  background: #c5ae00 !important;
  border-color: #c5ae00 !important;
  color: #ffffff !important;
}
/* Final dark-mode desktop + mobile polish */
html[data-theme="dark"] section.section-tight .section-heading h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .language-switch img {
  filter: brightness(0) invert(1);
}

/* Absolute final admin layout overrides */
[data-admin-root].admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 32, 53, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f9fc 0%, #eef3f7 100%);
}

[data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(10, 32, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 32, 53, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

[data-admin-root].admin-shell .container {
  width: min(1320px, calc(100% - 2.5rem));
}

[data-admin-root].admin-shell .section,
[data-admin-root].admin-shell .section-tight {
  padding: 0 0 1.4rem;
}

[data-admin-root].admin-shell .page-hero,
[data-admin-root].admin-shell .admin-compact-hero {
  padding: 1rem 0 1.2rem;
}

[data-admin-root].admin-shell .page-hero-grid,
[data-admin-root].admin-shell .split-layout {
  gap: 1.35rem;
}

[data-admin-root].admin-shell .metric-card,
[data-admin-root].admin-shell .form-card,
[data-admin-root].admin-shell .admin-quick-card,
[data-admin-root].admin-shell .admin-table-wrap,
[data-admin-root].admin-shell .admin-collapsible,
[data-admin-root].admin-shell .generator-shell,
[data-admin-root].admin-shell .template-stage-shell,
[data-admin-root].admin-shell .editor-panel,
[data-admin-root].admin-shell .page-hero-panel {
  border-radius: 26px;
}

[data-admin-root].admin-shell .admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 17.5rem;
  padding: 1rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 248, 252, 0.92));
  border-right: 1px solid rgba(10, 32, 53, 0.08);
  box-shadow: 22px 0 52px rgba(10, 32, 53, 0.08);
  backdrop-filter: blur(20px);
  z-index: 40;
  transition: transform 220ms ease, width 220ms ease, padding 220ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-header,
[data-admin-root].admin-shell .admin-sidebar-footer,
[data-admin-root].admin-shell .admin-sidebar-nav a,
[data-admin-root].admin-shell .admin-topbar-leading,
[data-admin-root].admin-shell .admin-topbar .nav-wrap,
[data-admin-root].admin-shell .admin-topbar .nav-actions {
  display: flex;
  align-items: center;
}

[data-admin-root].admin-shell .admin-sidebar-header {
  justify-content: space-between;
  gap: 0.75rem;
}

[data-admin-root].admin-shell .admin-sidebar-brand {
  max-width: 11.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(10, 32, 53, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before,
[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::before {
  left: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-toggle-icon::after {
  right: 0.24rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

[data-admin-root].admin-shell .admin-sidebar-nav a {
  gap: 0.85rem;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  color: #5a6d80;
  font-size: 0.96rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

[data-admin-root].admin-shell .admin-sidebar-nav a:hover,
[data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(10, 32, 53, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-nav-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 32, 53, 0.08);
  flex: 0 0 auto;
}

[data-admin-root].admin-shell .admin-nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

[data-admin-root].admin-shell .admin-nav-text,
[data-admin-root].admin-shell .admin-topbar-meta,
[data-admin-root].admin-shell .admin-sidebar-helper {
  min-width: 0;
}

[data-admin-root].admin-shell .admin-sidebar-footer {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .admin-sidebar-helper strong {
  color: var(--ink);
  font-size: 0.95rem;
}

[data-admin-root].admin-shell .admin-sidebar-helper span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

[data-admin-root].admin-shell .admin-sidebar-logout {
  width: 100%;
  justify-content: center;
}

[data-admin-root].admin-shell .admin-workspace {
  margin-left: 17.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-admin-root].admin-shell .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 250, 253, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 32, 53, 0.06);
}

[data-admin-root].admin-shell .admin-topbar .nav-wrap {
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

[data-admin-root].admin-shell .admin-topbar-leading {
  gap: 0.9rem;
}

[data-admin-root].admin-shell .admin-topbar-meta {
  display: grid;
  gap: 0.12rem;
}

[data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
  margin: 0;
}

[data-admin-root].admin-shell .admin-topbar-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

[data-admin-root].admin-shell .admin-topbar .nav-actions {
  gap: 0.75rem;
  margin-left: auto;
}

[data-admin-root].admin-shell .admin-mobile-nav-toggle {
  display: none;
}

[data-admin-root].admin-shell .admin-workspace > main {
  flex: 1 1 auto;
  padding: 1rem 0 2rem;
}

[data-admin-root].admin-shell .site-footer {
  margin-top: 0.5rem;
  padding: 1.5rem 0 2rem;
  background: transparent;
  border-top: 1px solid rgba(10, 32, 53, 0.08);
}

[data-admin-root].admin-shell .site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.25rem;
}

[data-admin-root].admin-shell .admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 35;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
  width: 5.8rem;
  padding-inline: 0.6rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
  margin-left: 5.8rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-brand {
  max-width: 3rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-nav a {
  justify-content: center;
  padding-inline: 0.55rem;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-nav-text,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-helper,
[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-logout {
  display: none;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-footer {
  align-items: center;
}

@media (max-width: 1180px) {
  [data-admin-root].admin-shell .admin-sidebar {
    width: 16rem;
  }

  [data-admin-root].admin-shell .admin-workspace {
    margin-left: 16rem;
  }
}

@media (max-width: 1024px) {
  [data-admin-root].admin-shell .container {
    width: calc(100% - 1.5rem);
  }

  [data-admin-root].admin-shell .admin-sidebar {
    transform: translateX(-100%);
    width: min(19rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }

  [data-admin-root].admin-shell .admin-workspace,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 0;
  }

  [data-admin-root].admin-shell .admin-sidebar-toggle {
    display: none;
  }

  [data-admin-root].admin-shell .admin-mobile-nav-toggle {
    display: inline-flex;
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  [data-admin-root].admin-shell .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  [data-admin-root].admin-shell .admin-topbar .nav-wrap {
    min-height: 4.4rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta strong {
    font-size: 0.92rem;
  }

  [data-admin-root].admin-shell .admin-topbar-meta .card-kicker {
    font-size: 0.72rem;
  }
}

html[data-theme="dark"] [data-admin-root].admin-shell {
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.12), transparent 20%),
    linear-gradient(180deg, #071321 0%, #0a2035 55%, #081a2b 100%);
}

html[data-theme="dark"] [data-admin-root].admin-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar {
  background: linear-gradient(180deg, rgba(8, 23, 38, 0.96), rgba(9, 25, 42, 0.94));
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a:hover,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper strong,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar-meta strong {
  color: #ffffff;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-helper span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-topbar {
  background: rgba(8, 23, 38, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] [data-admin-root].admin-shell .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Absolute final admin desktop lock */
@media (min-width: 1025px) {
  [data-admin-root].admin-shell {
    display: block !important;
  }

  [data-admin-root].admin-shell .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 18rem !important;
    z-index: 60 !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
    width: 5.8rem !important;
  }

  [data-admin-root].admin-shell .admin-workspace {
    margin-left: 18rem !important;
    width: calc(100% - 18rem) !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 5.8rem !important;
    width: calc(100% - 5.8rem) !important;
  }

  [data-admin-root].admin-shell .admin-topbar {
    display: none !important;
  }

  [data-admin-root].admin-shell .admin-sidebar-overlay {
    display: none !important;
  }
}

[data-admin-root].admin-shell .admin-sidebar-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
}

[data-admin-root].admin-shell .admin-sidebar-nav a {
  display: flex !important;
  width: 100% !important;
}

[data-admin-root].admin-shell .admin-sidebar-tools {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
}

[data-admin-root].admin-shell .admin-sidebar-tools .theme-switch,
[data-admin-root].admin-shell .admin-sidebar-tools .language-switch {
  width: 100% !important;
  justify-content: center !important;
}

[data-admin-root].admin-shell .admin-sidebar-tools .language-switch {
  min-height: 3rem !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-tools .theme-switch,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-tools .language-switch {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Final admin SaaS sidebar */
[data-admin-root].admin-shell {
  --admin-sidebar-width: 18rem;
  --admin-sidebar-collapsed-width: 5.4rem;
  --admin-surface: #ffffff;
  --admin-border: rgba(10, 32, 53, 0.08);
  --admin-shadow: 0 28px 60px rgba(10, 32, 53, 0.12);
}

[data-admin-root].admin-shell .admin-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  overflow: hidden !important;
}

[data-admin-root].admin-shell .admin-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding-bottom: 0.9rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-admin-root].admin-shell .admin-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  max-width: 11.5rem !important;
}

[data-admin-root].admin-shell .admin-sidebar-brand .brand-mark {
  width: 100% !important;
  max-width: 11rem !important;
  height: auto !important;
  object-fit: contain !important;
}

[data-admin-root].admin-shell .admin-sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  flex: 1 1 auto !important;
  align-content: stretch !important;
  overflow-y: auto !important;
  padding-right: 0.1rem !important;
}

[data-admin-root].admin-shell .admin-side-link,
[data-admin-root].admin-shell .admin-side-summary,
[data-admin-root].admin-shell .admin-side-submenu a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0.85rem !important;
  border-radius: 0.95rem !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

[data-admin-root].admin-shell .admin-side-link,
[data-admin-root].admin-shell .admin-side-summary {
  min-height: 3rem !important;
  padding: 0.65rem 0.85rem !important;
}

[data-admin-root].admin-shell .admin-side-link {
  justify-content: flex-start !important;
}

[data-admin-root].admin-shell .admin-side-group {
  display: grid !important;
  gap: 0.35rem !important;
}

[data-admin-root].admin-shell .admin-side-group summary {
  list-style: none !important;
}

[data-admin-root].admin-shell .admin-side-group summary::-webkit-details-marker {
  display: none !important;
}

[data-admin-root].admin-shell .admin-side-summary {
  position: relative !important;
  justify-content: flex-start !important;
}

[data-admin-root].admin-shell .admin-side-caret {
  width: 0.7rem !important;
  height: 0.7rem !important;
  margin-left: auto !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) translateY(-1px) !important;
  opacity: 0.68 !important;
  transition: transform 160ms ease, opacity 160ms ease !important;
}

[data-admin-root].admin-shell .admin-side-group[open] > .admin-side-summary .admin-side-caret {
  transform: rotate(225deg) translateY(-1px) !important;
  opacity: 1 !important;
}

[data-admin-root].admin-shell .admin-side-submenu {
  display: grid !important;
  gap: 0.35rem !important;
  margin-left: 0.95rem !important;
  padding-left: 0.95rem !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-admin-root].admin-shell .admin-side-submenu a {
  min-height: 2.85rem !important;
  padding: 0.55rem 0.8rem !important;
}

[data-admin-root].admin-shell .admin-nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.8rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: inherit !important;
}

[data-admin-root].admin-shell .admin-nav-icon svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  fill: currentColor !important;
}

[data-admin-root].admin-shell .admin-nav-text {
  min-width: 0 !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

[data-admin-root].admin-shell .admin-sidebar-footer {
  display: grid !important;
  gap: 0.9rem !important;
  padding-top: 0.95rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-admin-root].admin-shell .admin-sidebar-helper {
  border-radius: 1rem !important;
  padding: 0.95rem 1rem !important;
}

[data-admin-root].admin-shell .admin-sidebar-logout {
  width: 100% !important;
  min-height: 3rem !important;
  justify-content: center !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell {
  --admin-surface: rgba(8, 21, 36, 0.94);
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(14, 29, 47, 0.98), rgba(11, 24, 40, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--admin-shadow) !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-link,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-summary,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-submenu a {
  color: rgba(232, 239, 247, 0.82) !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-link:hover,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-summary:hover,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-submenu a:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-link.is-active,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-submenu a.is-active {
  background: linear-gradient(180deg, rgba(32, 56, 84, 0.95), rgba(26, 48, 74, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-group[open] > .admin-side-summary {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-link.is-active .admin-nav-icon,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-submenu a.is-active .admin-nav-icon,
html[data-theme="dark"] [data-admin-root].admin-shell .admin-side-group[open] > .admin-side-summary .admin-nav-icon {
  background: rgba(197, 174, 0, 0.16) !important;
  color: #f7df4b !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell .admin-sidebar-tools .language-switch img {
  filter: brightness(0) invert(1) !important;
}

@media (min-width: 1025px) {
  [data-admin-root].admin-shell {
    padding: 1rem !important;
  }

  [data-admin-root].admin-shell .admin-sidebar {
    top: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    width: var(--admin-sidebar-width) !important;
    padding: 1rem 0.9rem !important;
    border-radius: 1.6rem !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
    width: var(--admin-sidebar-collapsed-width) !important;
    padding-inline: 0.6rem !important;
  }

  [data-admin-root].admin-shell .admin-workspace {
    margin-left: calc(var(--admin-sidebar-width) + 2rem) !important;
    width: calc(100% - var(--admin-sidebar-width) - 3rem) !important;
    min-height: calc(100vh - 2rem) !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: calc(var(--admin-sidebar-collapsed-width) + 2rem) !important;
    width: calc(100% - var(--admin-sidebar-collapsed-width) - 3rem) !important;
  }

  [data-admin-root].admin-shell .admin-workspace > main {
    padding-top: 0 !important;
  }

  [data-admin-root].admin-shell .admin-mobile-nav-toggle {
    display: none !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-header {
    justify-content: center !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-brand {
    max-width: 2.9rem !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-side-link,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-side-summary {
    justify-content: center !important;
    padding-inline: 0.45rem !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-side-group {
    gap: 0 !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-side-submenu,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-nav-text,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-side-caret,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-helper,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-logout {
    display: none !important;
  }

  [data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar-tools {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  [data-admin-root].admin-shell {
    padding: 0 !important;
  }

  [data-admin-root].admin-shell .admin-sidebar {
    top: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 0.75rem !important;
    width: min(18rem, calc(100vw - 1.5rem)) !important;
    padding: 1rem 0.9rem !important;
    border-radius: 1.5rem !important;
    z-index: 80 !important;
  }

  [data-admin-root].admin-shell .admin-workspace,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 0 !important;
    width: 100% !important;
  }

  [data-admin-root].admin-shell .admin-topbar {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 45 !important;
  }

  [data-admin-root].admin-shell .admin-topbar .nav-wrap {
    width: calc(100% - 1rem) !important;
    min-height: 4.5rem !important;
    border-radius: 0 0 1rem 1rem !important;
  }

  [data-admin-root].admin-shell .admin-topbar .nav-actions {
    display: none !important;
  }
}

/* Admin sidebar stabilization */
[data-admin-root].admin-shell {
  --admin-accent: #c6a600;
  --admin-accent-soft: rgba(198, 166, 0, 0.14);
  --admin-surface-alt: rgba(255, 255, 255, 0.78);
}

[data-admin-root].admin-shell .admin-sidebar {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  bottom: 1rem !important;
  width: var(--admin-sidebar-width) !important;
  padding: 1rem 0.9rem !important;
  border-radius: 1.6rem !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.94)) !important;
  border: 1px solid var(--admin-border) !important;
  box-shadow: var(--admin-shadow) !important;
  backdrop-filter: blur(22px) !important;
  z-index: 60 !important;
}

[data-admin-root].admin-shell .admin-side-link,
[data-admin-root].admin-shell .admin-side-summary,
[data-admin-root].admin-shell .admin-side-submenu a {
  color: #5a6d80 !important;
}

[data-admin-root].admin-shell .admin-side-link:hover,
[data-admin-root].admin-shell .admin-side-summary:hover,
[data-admin-root].admin-shell .admin-side-submenu a:hover {
  background: rgba(10, 32, 53, 0.06) !important;
  border-color: rgba(10, 32, 53, 0.08) !important;
  color: #10263d !important;
  transform: translateX(2px) !important;
}

[data-admin-root].admin-shell .admin-side-link.is-active,
[data-admin-root].admin-shell .admin-side-summary.is-active,
[data-admin-root].admin-shell .admin-side-submenu a.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)) !important;
  border-color: rgba(198, 166, 0, 0.24) !important;
  color: #10263d !important;
  box-shadow:
    inset 0 0 0 1px rgba(198, 166, 0, 0.08),
    0 14px 30px rgba(10, 32, 53, 0.08) !important;
}

[data-admin-root].admin-shell .admin-side-link.is-active .admin-nav-icon,
[data-admin-root].admin-shell .admin-side-summary.is-active .admin-nav-icon,
[data-admin-root].admin-shell .admin-side-submenu a.is-active .admin-nav-icon {
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent) !important;
}

[data-admin-root].admin-shell .admin-side-group[open] > .admin-side-summary {
  background: rgba(10, 32, 53, 0.04) !important;
  border-color: rgba(10, 32, 53, 0.07) !important;
  color: #10263d !important;
}

[data-admin-root].admin-shell .admin-side-submenu {
  margin-left: 0.8rem !important;
  padding-left: 0.9rem !important;
  border-left: 1px solid rgba(10, 32, 53, 0.08) !important;
}

[data-admin-root].admin-shell .admin-sidebar-toggle {
  width: 2.85rem !important;
  height: 2.85rem !important;
  border: 1px solid rgba(10, 32, 53, 0.08) !important;
  border-radius: 1rem !important;
  background: var(--admin-surface-alt) !important;
  color: #10263d !important;
  box-shadow: 0 12px 24px rgba(10, 32, 53, 0.08) !important;
}

[data-admin-root].admin-shell .admin-sidebar-helper {
  background: var(--admin-surface-alt) !important;
  border: 1px solid rgba(10, 32, 53, 0.08) !important;
}

[data-admin-root].admin-shell .admin-workspace {
  margin-left: calc(var(--admin-sidebar-width) + 2rem) !important;
  width: calc(100% - var(--admin-sidebar-width) - 3rem) !important;
  min-height: calc(100vh - 2rem) !important;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-sidebar {
  width: var(--admin-sidebar-collapsed-width) !important;
  padding-inline: 0.6rem !important;
}

[data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
  margin-left: calc(var(--admin-sidebar-collapsed-width) + 2rem) !important;
  width: calc(100% - var(--admin-sidebar-collapsed-width) - 3rem) !important;
}

html[data-theme="dark"] [data-admin-root].admin-shell {
  --admin-surface-alt: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1024px) {
  [data-admin-root].admin-shell .admin-sidebar {
    top: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 0.75rem !important;
    width: min(18rem, calc(100vw - 1.5rem)) !important;
    transform: translateX(calc(-100% - 1rem)) !important;
  }

  [data-admin-root].admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0) !important;
  }

  [data-admin-root].admin-shell .admin-workspace,
  [data-admin-root].admin-shell.sidebar-collapsed .admin-workspace {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Homepage hero final visual override */
.hero.hero-slider-section {
  padding: 1.4rem 0 3rem !important;
}

.hero.hero-slider-section .hero-carousel {
  position: relative !important;
  width: min(100%, calc(100vw - 2rem)) !important;
  min-height: clamp(36rem, 78vh, 49rem) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 32px !important;
  border: 5px solid rgba(9, 26, 44, 0.96) !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(197, 174, 0, 0.1), transparent 16%) !important,
    #091a2c !important;
  box-shadow: 0 36px 90px rgba(10, 32, 53, 0.28) !important;
}

.hero.hero-slider-section .hero-carousel::after {
  content: "" !important;
  position: absolute !important;
  left: 8% !important;
  right: 8% !important;
  bottom: -2.3rem !important;
  height: 4rem !important;
  border-radius: 50% !important;
  background: rgba(10, 32, 53, 0.24) !important;
  filter: blur(26px) !important;
  z-index: -1 !important;
}

.hero.hero-slider-section .hero-carousel-chrome {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.hero.hero-slider-section .hero-carousel-accent--dots {
  position: absolute !important;
  top: 1.2rem !important;
  left: 1.35rem !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.2px, transparent 1.2px) !important;
  background-size: 0.42rem 0.42rem !important;
  opacity: 0.5 !important;
}

.hero.hero-slider-section .hero-carousel-accent--fan {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 17rem !important;
  height: 14rem !important;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.08) 50.5%, transparent 51%) top right / 100% 100% no-repeat !important;
  opacity: 0.6 !important;
}

.hero.hero-slider-section .hero-carousel-topbar {
  position: absolute !important;
  top: 1.1rem !important;
  left: 1.4rem !important;
  right: 1.4rem !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

.hero.hero-slider-section .hero-carousel-brand {
  font-family: var(--headline) !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #f3e8a5 !important;
}

.hero.hero-slider-section .hero-carousel-nav,
.hero.hero-slider-section .hero-carousel-pills {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.hero.hero-slider-section .hero-carousel-nav span,
.hero.hero-slider-section .hero-carousel-pills span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.hero.hero-slider-section .hero-carousel-pills span {
  padding: 0.45rem 0.7rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero.hero-slider-section .hero-slide {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(1.02) !important;
  transition: 
    opacity 1800ms cubic-bezier(0.4, 0, 0.2, 1), 
    transform 1800ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero.hero-slider-section .hero-slide.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1) !important;
}

.contact-details-card {
  background: #071523;
  border-radius: 24px;
  color: white;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .contact-details-card {
  background: #ffffff;
  color: #071523;
  box-shadow: 0 20px 40px rgba(10, 32, 53, 0.1);
  border: 1px solid rgba(10, 32, 53, 0.05);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 520px;
}

.contact-details-main {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details-title {
  font-family: var(--headline);
  font-size: 5.4rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact-details-intro {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 440px;
  color: white;
}

[data-theme="light"] .contact-details-intro {
  color: #071523;
}

.contact-details-cta {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

[data-theme="light"] .contact-details-cta {
  color: rgba(7, 21, 35, 0.6);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.15rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

[data-theme="light"] .contact-info-icon {
  border-color: rgba(7, 21, 35, 0.2);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  transition: stroke 0.3s ease;
}

[data-theme="light"] .contact-info-icon svg {
  stroke: #071523;
}

.contact-info-row a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s, color 0.3s ease;
}

[data-theme="light"] .contact-info-row a {
  color: #071523;
}

.contact-info-row a:hover {
  opacity: 0.8;
}

.contact-info-phones, .contact-info-address {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.contact-details-visual {
  background: #0b1d2e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

[data-theme="light"] .contact-details-visual {
  background: #f8fafc;
}

.contact-visual-shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(197, 174, 0, 0.3);
  top: -50px;
  right: -50px;
  filter: blur(40px);
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(0, 102, 204, 0.2);
  bottom: -40px;
  left: -20px;
  filter: blur(30px);
}

.contact-visual-logo {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 240px;
  color: white;
  transition: color 0.3s ease;
}

[data-theme="light"] .contact-visual-logo {
  color: #071523;
}

.worker-icon-svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
  .contact-details-main {
    padding: 3rem 2rem;
  }
  .contact-details-visual {
    height: 300px;
  }
  .contact-details-title {
    font-size: 3.8rem;
  }
}

@keyframes heroZoom {
  from { transform: scale(1.01); }
  to { transform: scale(1.06); }
}

.hero.hero-slider-section .hero-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background-color: #071523 !important;
  transform: scale(1.01);
  will-change: transform !important;
}

.hero.hero-slider-section .hero-slide.active img {
  animation: heroZoom 9000ms cubic-bezier(0.2, 0, 0.8, 1) both !important;
}

.hero.hero-slider-section .hero-slide--industrial img {
  object-position: center 42% !important;
}

.hero.hero-slider-section .hero-slide--solar img {
  object-position: center 58% !important;
}

.hero.hero-slider-section .hero-slide--steel img {
  object-position: center center !important;
}

.hero.hero-slider-section .hero-slide-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(197, 174, 0, 0.12), transparent 20%) !important,
    linear-gradient(90deg, rgba(7, 21, 35, 0.9) 0%, rgba(7, 21, 35, 0.64) 34%, rgba(7, 21, 35, 0.22) 68%, rgba(7, 21, 35, 0.18) 100%) !important,
    linear-gradient(180deg, rgba(7, 21, 35, 0.08) 0%, rgba(7, 21, 35, 0.12) 42%, rgba(7, 21, 35, 0.92) 100%) !important;
}

.hero.hero-slider-section .hero-slide-content {
  position: absolute !important;
  left: clamp(1.2rem, 3vw, 2rem) !important;
  right: clamp(1.2rem, 3vw, 2rem) !important;
  top: clamp(4.8rem, 10vw, 6rem) !important;
  bottom: 5.4rem !important;
  z-index: 2 !important;
  display: grid !important;
  align-items: end !important;
}

.hero.hero-slider-section .hero-slide-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 100% !important;
}

.hero.hero-slider-section .hero-slide-main {
  display: grid !important;
  gap: 1.1rem !important;
  max-width: 31rem !important;
  padding: 0 0 1.2rem !important;
  align-content: end !important;
}

.hero.hero-slider-section .hero-slide-count {
  color: var(--white) !important;
  font-family: var(--headline) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
}

.hero.hero-slider-section .hero-slide-kicker {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f3e8a5 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  margin: 0 !important;
  max-width: 11ch !important;
  color: var(--white) !important;
  font-family: var(--headline) !important;
  font-size: clamp(2.7rem, 5vw, 4.4rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em !important;
  text-transform: uppercase !important;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
}

.hero.hero-slider-section .hero-slide-content p {
  margin: 0 !important;
  max-width: 29rem !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.96rem !important;
  line-height: 1.9 !important;
}

.hero.hero-slider-section .hero-slide-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  margin-top: 0.7rem !important;
}

.hero.hero-slider-section .hero-slide-actions .button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e3cf43 100%) !important;
  color: var(--ink-deep) !important;
  border-color: transparent !important;
  box-shadow: 0 18px 40px rgba(197, 174, 0, 0.28) !important;
}

.hero.hero-slider-section .hero-carousel-arrow {
  position: relative !important;
  width: 3rem !important;
  height: 3rem !important;
  margin-top: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--white) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  backdrop-filter: blur(14px) !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

.hero.hero-slider-section .hero-carousel-arrow:hover,
.hero.hero-slider-section .hero-carousel-arrow:focus-visible {
  transform: scale(1.06) !important;
  background: rgba(7, 21, 35, 0.58) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.hero.hero-slider-section .hero-slide-side {
  position: absolute !important;
  right: 0 !important;
  bottom: 1.2rem !important;
  display: grid !important;
  gap: 0.5rem !important;
  width: min(14rem, 24vw) !important;
  justify-items: start !important;
}

.hero.hero-slider-section .hero-slide-note {
  display: grid !important;
  gap: 0.22rem !important;
  width: 100% !important;
  padding: 0.85rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero.hero-slider-section .hero-slide-note strong {
  color: #f3e8a5 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

.hero.hero-slider-section .hero-slide-note span {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
}

.hero.hero-slider-section .hero-carousel-footer {
  position: absolute !important;
  left: 1.4rem !important;
  right: 1.4rem !important;
  bottom: 1.25rem !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: end !important;
  justify-content: flex-start !important;
  gap: 1.5rem !important;
}

.hero.hero-slider-section .hero-carousel-connect {
  display: grid !important;
  gap: 0.75rem !important;
  min-width: 10rem !important;
}

.hero.hero-slider-section .hero-carousel-connect span {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.hero.hero-slider-section .hero-carousel-socials {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.hero.hero-slider-section .hero-carousel-socials a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.9rem !important;
  height: 1.9rem !important;
  padding: 0 0.45rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--white) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

.hero.hero-slider-section .hero-carousel-track {
  display: block !important;
  width: fit-content !important;
  max-width: min(18rem, 60vw) !important;
  flex: 0 0 auto !important;
}

.hero.hero-slider-section .hero-carousel-track-item {
  display: none !important;
  gap: 0.12rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: color 180ms ease, border-color 180ms ease !important;
}

.hero.hero-slider-section .hero-carousel-track-item span {
  display: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item strong {
  font-family: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 300 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item::after {
  content: "" !important;
  width: 5rem !important;
  height: 1px !important;
  margin-top: 0.6rem !important;
  transform: scaleY(0.6) !important;
  transform-origin: left !important;
  background: rgba(197, 174, 0, 0.9) !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active {
  display: grid !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active,
.hero.hero-slider-section .hero-carousel-track-item:hover,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible {
  color: var(--white) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 960px) {
  .hero.hero-slider-section .hero-carousel {
    min-height: 42rem !important;
    border-radius: 28px !important;
  }

  .hero.hero-slider-section .hero-carousel-topbar {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .hero.hero-slider-section .hero-carousel-nav {
    order: 3 !important;
    width: 100% !important;
    gap: 0.85rem !important;
  }

  .hero.hero-slider-section .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(7, 21, 35, 0.2) 0%, rgba(7, 21, 35, 0.38) 34%, rgba(7, 21, 35, 0.92) 100%) !important;
  }

  .hero.hero-slider-section .hero-slide-side {
    position: static !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    margin-top: 1rem !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-slider-section {
    padding-top: 1rem !important;
  }

  .hero.hero-slider-section .hero-carousel {
    width: min(100%, calc(100vw - 1rem)) !important;
    min-height: 41rem !important;
    border-radius: 24px !important;
    border-width: 4px !important;
  }

  .hero.hero-slider-section .hero-carousel-topbar {
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    gap: 0.7rem !important;
  }

  .hero.hero-slider-section .hero-carousel-nav {
    display: none !important;
  }

  .hero.hero-slider-section .hero-carousel-pills span {
    font-size: 0.62rem !important;
    padding: 0.38rem 0.58rem !important;
  }

  .hero.hero-slider-section .hero-slide-content {
    left: 1rem !important;
    right: 1rem !important;
    top: 4.6rem !important;
    bottom: 7.7rem !important;
  }

  .hero.hero-slider-section .hero-slide-content h1 {
    max-width: 100% !important;
    font-size: clamp(2.2rem, 11vw, 3.2rem) !important;
  }

  .hero.hero-slider-section .hero-slide-content p {
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
  }

  .hero.hero-slider-section .hero-slide-actions {
    flex-wrap: wrap !important;
  }

  .hero.hero-slider-section .hero-slide-actions .button-primary {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero.hero-slider-section .hero-carousel-arrow {
    width: 2.8rem !important;
    height: 2.8rem !important;
    font-size: 1.05rem !important;
  }

  .hero.hero-slider-section .hero-slide-side {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    margin-top: 0.8rem !important;
  }

  .hero.hero-slider-section .hero-slide-note {
    padding-top: 0.7rem !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    gap: 0.8rem !important;
  }

  .hero.hero-slider-section .hero-carousel-connect {
    min-width: 0 !important;
  }

  .hero.hero-slider-section .hero-carousel-track {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .hero.hero-slider-section .hero-carousel-track-item {
    padding-top: 0.65rem !important;
  }
}

/* Homepage hero minimalist full-bleed override */

.hero.hero-slider-section {
  padding: 0 !important;
}

.hero.hero-slider-section .hero-carousel {
  width: 100% !important;
  min-height: calc(100svh - 5rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #091a2c !important;
}

.hero.hero-slider-section .hero-carousel::after,
.hero.hero-slider-section .hero-carousel-chrome,
.hero.hero-slider-section .hero-carousel-topbar,
.hero.hero-slider-section .hero-carousel-footer,
.hero.hero-slider-section .hero-slide-count,
.hero.hero-slider-section .hero-slide-kicker,
.hero.hero-slider-section .hero-slide-side {
  display: none !important;
}

.hero.hero-slider-section .hero-slide img {
}

.hero.hero-slider-section .hero-slide.active img {
}

.hero.hero-slider-section .hero-slide--solar.active img {
}

.hero.hero-slider-section .hero-slide--steel.active img {
}

.hero.hero-slider-section .hero-slide-overlay {
  background:
    linear-gradient(180deg, rgba(7, 21, 35, 0.08) 0%, rgba(7, 21, 35, 0.12) 42%, rgba(7, 21, 35, 0.46) 72%, rgba(4, 10, 18, 0.92) 100%) !important;
}

.hero.hero-slider-section .hero-slide-overlay::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 11rem !important;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0) 0%, rgba(5, 12, 20, 0.38) 38%, rgba(5, 12, 20, 0.88) 100%) !important;
}

.hero.hero-slider-section .hero-slide-content {
  left: clamp(1.25rem, 5vw, 5rem) !important;
  right: clamp(1.25rem, 5vw, 5rem) !important;
  top: auto !important;
  bottom: clamp(3.8rem, 9vh, 6rem) !important;
  align-items: end !important;
}

.hero.hero-slider-section .hero-slide-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

.hero.hero-slider-section .hero-slide-main {
  max-width: 40rem !important;
  gap: 1.2rem !important;
  padding: 0 !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  max-width: 10ch !important;
  font-size: clamp(2.8rem, 7vw, 5.8rem) !important;
  line-height: 0.92 !important;
  color: #ffffff !important;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.38) !important;
}

.hero.hero-slider-section .hero-slide-content p {
  max-width: 34rem !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

.hero.hero-slider-section .hero-slide-actions {
  margin-top: 0.4rem !important;
}

.hero.hero-slider-section .hero-slide-actions .button-primary {
  min-height: 3.2rem !important;
  padding: 0.95rem 1.55rem !important;
  background: linear-gradient(135deg, var(--gold) 0%, #ebd34b 100%) !important;
  color: var(--ink-deep) !important;
  box-shadow: 0 18px 40px rgba(197, 174, 0, 0.22) !important;
}

.hero.hero-slider-section .hero-carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  margin-top: -1.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(7, 21, 35, 0.14) !important;
  backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  font-size: 1.3rem !important;
}

.hero.hero-slider-section .hero-carousel-prev {
  left: 1.25rem !important;
}

.hero.hero-slider-section .hero-carousel-next {
  right: 1.25rem !important;
}

@media (max-width: 900px) {
  .hero.hero-slider-section .hero-carousel {
    min-height: calc(100svh - 4.4rem) !important;
  }

  .hero.hero-slider-section .hero-slide-content {
    bottom: 4.5rem !important;
  }

  .hero.hero-slider-section .hero-slide-content h1 {
    max-width: 100% !important;
    font-size: clamp(2.5rem, 10vw, 4.4rem) !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-slider-section .hero-carousel {
    min-height: calc(100svh - 4.2rem) !important;
  }

  .hero.hero-slider-section .hero-slide-content {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 3.5rem !important;
  }

  .hero.hero-slider-section .hero-slide-content p {
    max-width: 100% !important;
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
  }

  .hero.hero-slider-section .hero-slide-actions .button-primary {
    width: auto !important;
  }

  .hero.hero-slider-section .hero-carousel-arrow {
    width: 3rem !important;
    height: 3rem !important;
    margin-top: -1.5rem !important;
  }

  .hero.hero-slider-section .hero-carousel-prev {
    left: 0.85rem !important;
  }

  .hero.hero-slider-section .hero-carousel-next {
    right: 0.85rem !important;
  }
}

/* Homepage hero centered layout + notifier */
.hero.hero-slider-section .hero-carousel-footer {
  display: flex !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 1.3rem !important;
  z-index: 6 !important;
  transform: translateX(-50%) !important;
}

.hero.hero-slider-section .hero-carousel-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.7rem !important;
  padding: 0.8rem 1rem !important;
  border-radius: 999px !important;
  background: rgba(7, 21, 35, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18) !important;
}

.hero.hero-slider-section .hero-carousel-track-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.5rem 0.8rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transform: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.65rem !important;
  height: 1.65rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
}

.hero.hero-slider-section .hero-carousel-track-item strong {
  font-family: var(--body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active,
.hero.hero-slider-section .hero-carousel-track-item:hover,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-top-color: transparent !important;
  transform: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active span,
.hero.hero-slider-section .hero-carousel-track-item:hover span,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible span {
  background: linear-gradient(135deg, var(--gold) 0%, #ebd34b 100%) !important;
  color: var(--ink-deep) !important;
}

.hero.hero-slider-section .hero-slide-content {
  left: 50% !important;
  right: auto !important;
  width: min(100%, 60rem) !important;
  transform: translateX(-50%) !important;
  justify-items: center !important;
}

.hero.hero-slider-section .hero-slide-shell,
.hero.hero-slider-section .hero-slide-main {
  width: 100% !important;
  justify-items: center !important;
}

.hero.hero-slider-section .hero-slide-main {
  max-width: 48rem !important;
  text-align: center !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  max-width: 12ch !important;
  text-align: center !important;
}

.hero.hero-slider-section .hero-slide-content p {
  max-width: 40rem !important;
  text-align: center !important;
}

.hero.hero-slider-section .hero-slide-actions {
  justify-content: center !important;
}

@media (max-width: 900px) {
  .hero.hero-slider-section .hero-slide-content {
    width: min(100%, 46rem) !important;
  }

  .hero.hero-slider-section .hero-carousel-track-item strong {
    font-size: 0.76rem !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-slider-section .hero-slide-content {
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    transform: none !important;
  }

  .hero.hero-slider-section .hero-slide-content h1,
  .hero.hero-slider-section .hero-slide-content p {
    max-width: 100% !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    transform: none !important;
  }

  .hero.hero-slider-section .hero-carousel-track {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 0.65rem 0.75rem !important;
  }

  .hero.hero-slider-section .hero-carousel-track::-webkit-scrollbar {
    display: none !important;
  }
}

/* Homepage hero system-aligned reset */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--gold) !important;
  opacity: 1 !important;
  border-bottom-color: var(--gold) !important;
  text-shadow: 0 0 18px rgba(197, 174, 0, 0.18) !important;
}

.hero.hero-slider-section {
  padding: 0 0 3rem !important;
}

.hero.hero-slider-section .hero-carousel {
  width: 100% !important;
  min-height: calc(100svh - 5.25rem) !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  background:
    radial-gradient(circle at top left, rgba(197, 174, 0, 0.18), transparent 28%) !important,
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)) !important,
    #091a2c !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.hero.hero-slider-section .hero-carousel::after {
  display: none !important;
}

.hero.hero-slider-section .hero-slide {
  position: absolute !important;
  inset: 0 !important;
}

.hero.hero-slider-section .hero-slide img {
}

.hero.hero-slider-section .hero-slide-overlay {
  background:
    linear-gradient(110deg, rgba(7, 21, 35, 0.84) 0%, rgba(7, 21, 35, 0.58) 36%, rgba(7, 21, 35, 0.22) 64%, rgba(7, 21, 35, 0.24) 100%) !important,
    linear-gradient(180deg, rgba(7, 21, 35, 0.02) 0%, rgba(7, 21, 35, 0.14) 58%, rgba(7, 21, 35, 0.9) 100%) !important;
}

.hero.hero-slider-section .hero-slide-overlay::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 9rem !important;
  background: linear-gradient(180deg, rgba(7, 21, 35, 0) 0%, rgba(7, 21, 35, 0.58) 55%, rgba(7, 21, 35, 0.92) 100%) !important;
}

.hero.hero-slider-section .hero-slide-content {
  left: 2rem !important;
  right: 2rem !important;
  top: 2rem !important;
  bottom: 2rem !important;
  width: auto !important;
  transform: none !important;
  display: grid !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.hero.hero-slider-section .hero-slide-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 20rem) !important;
  gap: 1.25rem !important;
  min-height: 100% !important;
  align-items: end !important;
}

.hero.hero-slider-section .hero-slide-main {
  align-self: end !important;
  max-width: 40rem !important;
  padding: 1.7rem 1.8rem !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 22px 46px rgba(7, 21, 35, 0.16) !important;
  justify-items: start !important;
  text-align: left !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  max-width: 12ch !important;
  margin: 0 !important;
  color: var(--white) !important;
  font-size: clamp(2.8rem, 5vw, 4.8rem) !important;
  line-height: 0.94 !important;
  text-align: left !important;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

.hero.hero-slider-section .hero-slide-content p {
  max-width: 33rem !important;
  margin: 0 !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.98rem !important;
  font-weight: 300 !important;
  line-height: 1.9 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
}

.hero.hero-slider-section .hero-slide-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-top: 0.5rem !important;
}

.hero.hero-slider-section .hero-slide-actions .button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e7d147 100%) !important;
  color: var(--ink-deep) !important;
  box-shadow: 0 18px 34px rgba(197, 174, 0, 0.2) !important;
}

.hero.hero-slider-section .hero-carousel-arrow {
  top: 50% !important;
  width: 3.2rem !important;
  height: 3.2rem !important;
  margin-top: -1.6rem !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--white) !important;
  box-shadow: 0 14px 30px rgba(7, 21, 35, 0.14) !important;
}

.hero.hero-slider-section .hero-carousel-prev {
  left: 1.1rem !important;
}

.hero.hero-slider-section .hero-carousel-next {
  right: 1.1rem !important;
}

.hero.hero-slider-section .hero-carousel-footer {
  display: block !important;
  position: absolute !important;
  left: 2rem !important;
  right: 2rem !important;
  bottom: 1.5rem !important;
  transform: none !important;
  z-index: 5 !important;
}

.hero.hero-slider-section .hero-carousel-track {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.8rem !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item {
  display: grid !important;
  gap: 0.35rem !important;
  padding: 1rem 1rem 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.74) !important;
  text-align: left !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

.hero.hero-slider-section .hero-carousel-track-item span {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gold-soft) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
}

.hero.hero-slider-section .hero-carousel-track-item strong {
  font-family: var(--headline) !important;
  font-size: 1rem !important;
  color: var(--white) !important;
  letter-spacing: -0.02em !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active,
.hero.hero-slider-section .hero-carousel-track-item:hover,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(197, 174, 0, 0.34) !important;
  transform: translateY(-2px) !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active span,
.hero.hero-slider-section .hero-carousel-track-item:hover span,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible span {
  color: var(--gold) !important;
}

@media (max-width: 960px) {
  .hero.hero-slider-section .hero-carousel {
    min-height: calc(100svh - 4.8rem) !important;
    border-radius: 0 !important;
  }

  .hero.hero-slider-section .hero-slide-content {
    left: 1.4rem !important;
    right: 1.4rem !important;
    top: 1.4rem !important;
    bottom: 1.4rem !important;
  }

  .hero.hero-slider-section .hero-slide-shell {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .hero.hero-slider-section .hero-slide-main {
    max-width: 100% !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1.4rem !important;
    right: 1.4rem !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-slider-section {
    padding-top: 0 !important;
  }

  .hero.hero-slider-section .hero-carousel {
    width: 100% !important;
    min-height: calc(100svh - 4.4rem) !important;
    border-radius: 0 !important;
  }

  .hero.hero-slider-section .hero-slide-content {
    left: 1rem !important;
    right: 1rem !important;
    top: 1rem !important;
    bottom: 1rem !important;
  }

  .hero.hero-slider-section .hero-slide-main {
    padding: 1.25rem !important;
    border-radius: 24px !important;
  }

  .hero.hero-slider-section .hero-slide-content h1 {
    max-width: 100% !important;
    font-size: clamp(2.2rem, 10vw, 3.4rem) !important;
  }

  .hero.hero-slider-section .hero-slide-content p {
    max-width: 100% !important;
    font-size: 0.94rem !important;
    line-height: 1.8 !important;
  }

  .hero.hero-slider-section .hero-carousel-arrow {
    width: 2.85rem !important;
    height: 2.85rem !important;
    margin-top: -1.425rem !important;
  }

  .hero.hero-slider-section .hero-carousel-prev {
    left: 0.75rem !important;
  }

  .hero.hero-slider-section .hero-carousel-next {
    right: 0.75rem !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
  }

  .hero.hero-slider-section .hero-carousel-track {
    grid-template-columns: 1fr !important;
  }
}

/* Homepage hero centered refinement */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--gold) !important;
  border-bottom-width: 1px !important;
  border-bottom-color: var(--gold) !important;
}

.hero.hero-slider-section .hero-slide-content {
  left: 1.75rem !important;
  right: 1.75rem !important;
  top: 0 !important;
  bottom: 0 !important;
  display: grid !important;
  align-items: center !important;
  justify-items: center !important;
}

.hero.hero-slider-section .hero-slide-shell {
  grid-template-columns: 1fr !important;
  min-height: 100% !important;
  align-items: center !important;
  justify-items: center !important;
}

.hero.hero-slider-section .hero-slide-main {
  align-self: center !important;
  justify-items: center !important;
  text-align: center !important;
  max-width: min(46rem, 100%) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  max-width: 11ch !important;
  text-align: center !important;
}

.hero.hero-slider-section .hero-slide-content p {
  position: relative !important;
  max-width: 31rem !important;
  padding-top: 0.95rem !important;
  border-top: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.84rem !important;
  font-weight: 300 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
}

.hero.hero-slider-section .hero-slide-content p::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 5rem !important;
  height: 1px !important;
  transform: translateX(-50%) scaleY(0.6) !important;
  transform-origin: center !important;
  background: rgba(197, 174, 0, 0.9) !important;
}

.hero.hero-slider-section .hero-slide-actions {
  justify-content: center !important;
}

.hero.hero-slider-section .hero-carousel-footer {
  left: 1.75rem !important;
  right: 1.75rem !important;
  bottom: 1.15rem !important;
}

.hero.hero-slider-section .hero-carousel::after {
  content: none !important;
}

.hero.hero-slider-section .hero-carousel-track {
  display: block !important;
  width: fit-content !important;
  max-width: min(18rem, 60vw) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item {
  display: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active {
  display: grid !important;
}

.hero.hero-slider-section .hero-carousel-track-item::after {
  margin-top: 0.1rem !important;
}

/* Dark Mode Certificate Generator Overrides - Final Fix */
html[data-theme="dark"] .generator-workspace,
html[data-theme="dark"] .generator-shell {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
}

html[data-theme="dark"] .generator-mode-toggle {
  background: #2a2a2a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.28rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

html[data-theme="dark"] .generator-mode-button {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  min-width: 6.4rem !important;
  padding: 0.65rem 0.95rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .generator-mode-button.is-active {
  background: #0a2035 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .checkbox-row span,
html[data-theme="dark"] .field span,
html[data-theme="dark"] .generator-workspace h2,
html[data-theme="dark"] .generator-workspace h3,
html[data-theme="dark"] .generator-workspace p {
  color: #ffffff !important;
}

/* Final override to fix invisible titles on hover in dark mode */
html[data-theme="dark"] .sector-card:hover h3,
html[data-theme="dark"] .feature-card:hover h3,
html[data-theme="dark"] .project-card:hover h3,
html[data-theme="dark"] .service-card:hover h3,
html[data-theme="dark"] .metric-card:hover strong {
  color: #0a2035 !important;
}




html[data-theme="dark"] .certificate-public-item span,
html[data-theme="dark"] .certificate-public-item span *,
html[data-theme="dark"] .certificate-public-item a {
  color: var(--ink) !important;
}

/* Mobile menu background override for all pages in dark mode */
@media (max-width: 920px) {
  html[data-theme="dark"] .page-header.open .nav-links {
    background: var(--ink) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  }
  
  html[data-theme="dark"] .page-header.open .nav-links a {
    color: #ffffff !important;
  }
  
  html[data-theme="dark"] .page-header.open .nav-links a:hover,
  html[data-theme="dark"] .page-header.open .nav-links a.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--gold) !important;
  }
}

/* Projects page card overrides for mobile in dark mode */
@media (max-width: 860px) {
  html[data-theme="dark"] .projects-page .project-card {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  }

  html[data-theme="dark"] .projects-page .project-card h3,
  html[data-theme="dark"] .projects-page .project-card p {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .projects-page .project-card .card-kicker {
    color: var(--gold) !important;
  }
}

/* Careers page card overrides for mobile in dark mode */
@media (max-width: 860px) {
  html[data-theme="dark"] .careers-page .career-card {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  }

  html[data-theme="dark"] .careers-page .career-card h3,
  html[data-theme="dark"] .careers-page .career-card p {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .careers-page .career-card .card-kicker {
    color: var(--gold) !important;
  }
}

/* Contact page card and form overrides for mobile in dark mode */
@media (max-width: 860px) {
  html[data-theme="dark"] .contact-page .career-card,
  html[data-theme="dark"] .contact-page .form-card {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  }

  html[data-theme="dark"] .contact-page .career-card h3,
  html[data-theme="dark"] .contact-page .form-card h3,
  html[data-theme="dark"] .contact-page .career-card p,
  html[data-theme="dark"] .contact-page .form-card p,
  html[data-theme="dark"] .contact-page .contact-item strong,
  html[data-theme="dark"] .contact-page .contact-item span,
  html[data-theme="dark"] .contact-page .contact-item a,
  html[data-theme="dark"] .contact-page .form-grid label span {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .contact-page .career-card .card-kicker,
  html[data-theme="dark"] .contact-page .form-card .card-kicker {
    color: var(--gold) !important;
  }

  /* Contact channels: avoid scattered gold labels */
  html[data-theme="dark"] .contact-page .contact-channels-section .career-card .card-kicker {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .contact-page .form-grid input,
  html[data-theme="dark"] .contact-page .form-grid textarea,
  html[data-theme="dark"] .contact-page .form-grid select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .contact-page .form-grid input:focus,
  html[data-theme="dark"] .contact-page .form-grid textarea:focus,
  html[data-theme="dark"] .contact-page .form-grid select:focus {
    border-color: var(--gold) !important;
    outline: none !important;
  }
}

/* Authentication page card and layout overrides for mobile in dark mode */
@media (max-width: 860px) {
  .auth-page .page-hero-panel {
    display: none !important;
  }

  html[data-theme="dark"] .auth-page .form-card {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  }

  html[data-theme="dark"] .auth-page .form-card h3,
  html[data-theme="dark"] .auth-page .form-card p,
  html[data-theme="dark"] .auth-page .form-card span,
  html[data-theme="dark"] .auth-page .form-card .admin-note {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .auth-page .form-card .card-kicker {
    color: var(--gold) !important;
  }

  html[data-theme="dark"] .auth-page .form-grid input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .auth-page .form-grid input:focus {
    border-color: var(--gold) !important;
    outline: none !important;
  }
}

/* Login page card and layout overrides for mobile in dark mode */
@media (max-width: 860px) {
  html[data-theme="dark"] .login-page .form-card,
  html[data-theme="dark"] .login-page .page-hero-panel {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 2rem !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1.5rem !important;
  }

  html[data-theme="dark"] .login-page .form-card h3,
  html[data-theme="dark"] .login-page .form-card p,
  html[data-theme="dark"] .login-page .form-card span,
  html[data-theme="dark"] .login-page .page-hero-panel h3,
  html[data-theme="dark"] .login-page .page-hero-panel p {
    color: #ffffff !important;
  }

  html[data-theme="dark"] .login-page .form-card .card-kicker {
    color: var(--gold) !important;
  }

  html[data-theme="dark"] .login-page .form-grid input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .login-page .form-grid input:focus {
    border-color: var(--gold) !important;
    outline: none !important;
  }
}

html[data-theme="dark"] .sectors-grid .sector-card h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .sectors-grid .sector-card:hover h3 {
  color: #0a2035 !important;
}


body.about-page .page-hero.about-hero,
body.services-page .page-hero.services-hero,
body.projects-page .page-hero.projects-hero,
body.insights-page .page-hero.insights-hero,
body.careers-page .page-hero.careers-hero,
body.contact-page .page-hero.contact-hero {
  position: relative;
  min-height: 50vh;
  min-height: 50svh;
  display: grid;
  align-items: center;
  margin-top: -5rem;
  padding: 7rem 0 2.75rem;
  overflow: hidden;
}

body.login-page .page-hero.login-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  margin-top: -5rem;
  padding: 5rem 0;
  overflow: hidden;
  background: #ffffff;
}

body.auth-page .page-hero.auth-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  margin-top: -5rem;
  padding: 5rem 0 0;
  overflow: hidden;
  background: transparent;
}

@media (max-width: 1080px) {
  body.auth-page .page-hero.auth-hero {
    min-height: 62vh;
    padding: 7rem 0 1.5rem;
  }

  body.auth-page .section-tight {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  body.auth-page .page-hero.auth-hero {
    min-height: auto;
    margin-top: 0;
    padding: 7.5rem 0 2rem;
    align-items: flex-start;
  }

  body.auth-page .page-hero.auth-hero .auth-hero-media {
    height: 100%;
  }

  body.auth-page .section-tight {
    margin-top: 0;
    padding-top: 1.5rem;
  }
}

html[data-theme="dark"] body.login-page .page-hero.login-hero {
  background: #0a2035;
}

html[data-theme="dark"] body.auth-page .page-hero.auth-hero {
  background: transparent;
}

body.about-page .page-hero.about-hero .container,
body.auth-page .page-hero.auth-hero .container,
body.login-page .page-hero.login-hero .container,
body.services-page .page-hero.services-hero .container,
body.projects-page .page-hero.projects-hero .container,
body.insights-page .page-hero.insights-hero .container,
body.careers-page .page-hero.careers-hero .container,
body.contact-page .page-hero.contact-hero .container {
  position: relative;
  z-index: 1;
}

body.about-page .page-hero.about-hero .about-hero-media,
body.services-page .page-hero.services-hero .services-hero-media,
body.projects-page .page-hero.projects-hero .projects-hero-media,
body.insights-page .page-hero.insights-hero .insights-hero-media,
body.careers-page .page-hero.careers-hero .careers-hero-media,
body.contact-page .page-hero.contact-hero .contact-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.auth-page .page-hero.auth-hero .auth-hero-media,
body.login-page .page-hero.login-hero .login-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
}

body.about-page .page-hero.about-hero .about-hero-media::after,
body.auth-page .page-hero.auth-hero .auth-hero-media::after,
body.login-page .page-hero.login-hero .login-hero-media::after,
body.services-page .page-hero.services-hero .services-hero-media::after,
body.projects-page .page-hero.projects-hero .projects-hero-media::after,
body.insights-page .page-hero.insights-hero .insights-hero-media::after,
body.careers-page .page-hero.careers-hero .careers-hero-media::after,
body.contact-page .page-hero.contact-hero .contact-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 33, 0.66) 0%, rgba(6, 19, 33, 0.28) 52%, rgba(6, 19, 33, 0) 100%);
}

body.about-page .page-hero.about-hero .about-hero-media img,
body.auth-page .page-hero.auth-hero .auth-hero-media img,
body.login-page .page-hero.login-hero .login-hero-media img,
body.services-page .page-hero.services-hero .services-hero-media img,
body.projects-page .page-hero.projects-hero .projects-hero-media img,
body.insights-page .page-hero.insights-hero .insights-hero-media img,
body.careers-page .page-hero.careers-hero .careers-hero-media img,
body.contact-page .page-hero.contact-hero .contact-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

body.about-page .page-hero.about-hero .about-hero-content,
body.services-page .page-hero.services-hero .services-hero-content,
body.projects-page .page-hero.projects-hero .projects-hero-content,
body.insights-page .page-hero.insights-hero .insights-hero-content,
body.careers-page .page-hero.careers-hero .careers-hero-content,
body.contact-page .page-hero.contact-hero .contact-hero-content {
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}

body.auth-page .page-hero.auth-hero .auth-hero-content,
body.login-page .page-hero.login-hero .login-hero-content {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

body.auth-page .page-hero.auth-hero .auth-hero-content p,
body.login-page .page-hero.login-hero .login-hero-content p {
  margin-left: 0;
  margin-right: 0;
}

body.auth-page .page-hero.auth-hero .page-hero-panel,
body.login-page .page-hero.login-hero .page-hero-panel,
body.login-page .page-hero.login-hero .form-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(10, 32, 53, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] body.auth-page .page-hero.auth-hero .page-hero-panel,
html[data-theme="dark"] body.login-page .page-hero.login-hero .page-hero-panel,
html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card {
  background: rgba(10, 32, 53, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.login-page .page-hero.login-hero .form-card .card-kicker {
  color: var(--gold) !important;
}

body.login-page .page-hero.login-hero .page-hero-panel .panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card button.button-primary {
  background: #ffffff;
  color: var(--ink);
  background-image: none !important;
  border-color: #ffffff;
}

html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card button.button-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

body.auth-page .page-hero.auth-hero .page-hero-panel strong,
body.auth-page .page-hero.auth-hero .page-hero-panel p,
body.login-page .page-hero.login-hero .page-hero-panel strong,
body.login-page .page-hero.login-hero .page-hero-panel p,
body.login-page .page-hero.login-hero .form-card h3,
body.login-page .page-hero.login-hero .form-card p,
body.login-page .page-hero.login-hero .form-card span,
body.login-page .page-hero.login-hero .form-card label span {
  color: var(--ink) !important;
}

html[data-theme="dark"] body.auth-page .page-hero.auth-hero .page-hero-panel strong,
html[data-theme="dark"] body.auth-page .page-hero.auth-hero .page-hero-panel p,
html[data-theme="dark"] body.login-page .page-hero.login-hero .page-hero-panel strong,
html[data-theme="dark"] body.login-page .page-hero.login-hero .page-hero-panel p,
html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card h3,
html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card p,
html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card label span {
  color: #ffffff !important;
}

html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card .card-kicker {
  color: var(--gold) !important;
}

body.login-page .page-hero.login-hero .form-card input {
  background: rgba(10, 32, 53, 0.05);
  border-color: rgba(10, 32, 53, 0.1);
  color: var(--ink);
}

html[data-theme="dark"] body.login-page .page-hero.login-hero .form-card input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.login-page .page-hero.login-hero .form-card input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  outline: none;
}

@media (max-width: 860px) {
  body.auth-page .page-hero.auth-hero .auth-hero-content,
  body.login-page .page-hero.login-hero .login-hero-content {
    text-align: center;
    margin-bottom: 2rem;
  }
}

body.about-page .page-hero.about-hero .about-hero-content h1,
body.auth-page .page-hero.auth-hero .auth-hero-content h1,
body.login-page .page-hero.login-hero .login-hero-content h1,
body.services-page .page-hero.services-hero .services-hero-content h1,
body.projects-page .page-hero.projects-hero .projects-hero-content h1,
body.insights-page .page-hero.insights-hero .insights-hero-content h1,
body.careers-page .page-hero.careers-hero .careers-hero-content h1,
body.contact-page .page-hero.contact-hero .contact-hero-content h1 {
  font-size: clamp(2.05rem, 3.7vw, 3.35rem);
  line-height: 0.98;
  color: #ffffff;
}

body.about-page .page-hero.about-hero .about-hero-content p,
body.auth-page .page-hero.auth-hero .auth-hero-content p,
body.login-page .page-hero.login-hero .login-hero-content p,
body.services-page .page-hero.services-hero .services-hero-content p,
body.projects-page .page-hero.projects-hero .projects-hero-content p,
body.insights-page .page-hero.insights-hero .insights-hero-content p,
body.careers-page .page-hero.careers-hero .careers-hero-content p,
body.contact-page .page-hero.contact-hero .contact-hero-content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

body.services-page .page-hero.services-hero .hero-actions,
body.insights-page .page-hero.insights-hero .hero-actions,
body.careers-page .page-hero.careers-hero .hero-actions {
  justify-content: center;
}

body.services-page #service-platform .section-heading h2 {
  max-width: min(34ch, 100%);
  text-wrap: balance;
}

body.services-page #industry-coverage .section-heading h2 {
  max-width: min(28ch, 100%);
  text-wrap: balance;
}

body.about-page .section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

html[data-theme="dark"] body.about-page .value-card {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  color: #f4f8fd !important;
}

html[data-theme="dark"] body.about-page .value-card .card-kicker {
  color: var(--gold) !important;
}

html[data-theme="dark"] body.about-page .value-card h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] body.about-page .value-card p {
  color: rgba(244, 248, 253, 0.82) !important;
}

html[data-theme="dark"] body.insights-page .insights-library-panel {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34) !important;
  color: #f4f8fd !important;
}

html[data-theme="dark"] body.insights-page .insights-library-panel .section-heading h2,
html[data-theme="dark"] body.insights-page .insights-library-panel .section-heading p {
  color: #f4f8fd !important;
}

html[data-theme="dark"] body.insights-page .insights-library-panel .card-kicker {
  color: var(--gold-soft) !important;
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card:hover {
  background: #ffffff !important;
  border-color: rgba(10, 32, 53, 0.1) !important;
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card:hover h3 {
  color: #0a2035 !important;
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card p {
  color: rgba(244, 248, 253, 0.82) !important;
}

html[data-theme="dark"] body.services-page #industry-coverage .sector-card:hover p {
  color: #314355 !important;
}


body.home-page .hero.hero-slider-section {
  margin-top: -5rem;
  padding-top: 5rem;
}

body.home-page .hero.hero-slider-section .hero-carousel {
  min-height: 100svh !important;
  background: transparent !important;
}

body.home-page .page-header,
body.about-page .page-header,
body.auth-page .page-header,
body.login-page .page-header,
body.services-page .page-header,
body.projects-page .page-header,
body.insights-page .page-header,
body.careers-page .page-header,
body.contact-page .page-header {
  background: rgba(247, 250, 252, 0.72) !important;
  border-bottom-color: rgba(10, 32, 53, 0.08) !important;
}

html[data-theme="dark"] body.home-page .page-header,
html[data-theme="dark"] body.about-page .page-header,
html[data-theme="dark"] body.auth-page .page-header,
html[data-theme="dark"] body.login-page .page-header,
html[data-theme="dark"] body.services-page .page-header,
html[data-theme="dark"] body.projects-page .page-header,
html[data-theme="dark"] body.insights-page .page-header,
html[data-theme="dark"] body.careers-page .page-header,
html[data-theme="dark"] body.contact-page .page-header {
  background: rgba(6, 19, 33, 0.32) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body.home-page:not(.home-header-scrolled) .page-header,
body.about-page:not(.home-header-scrolled) .page-header,
body.auth-page:not(.home-header-scrolled) .page-header,
body.login-page:not(.home-header-scrolled) .page-header,
body.services-page:not(.home-header-scrolled) .page-header,
body.projects-page:not(.home-header-scrolled) .page-header,
body.insights-page:not(.home-header-scrolled) .page-header,
body.careers-page:not(.home-header-scrolled) .page-header,
body.contact-page:not(.home-header-scrolled) .page-header {
  background: rgba(247, 250, 252, 0.42) !important;
  border-bottom-color: rgba(10, 32, 53, 0.05) !important;
}

html[data-theme="dark"] body.home-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.about-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.auth-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.login-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.services-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.projects-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.insights-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.careers-page:not(.home-header-scrolled) .page-header,
html[data-theme="dark"] body.contact-page:not(.home-header-scrolled) .page-header {
  background: rgba(6, 19, 33, 0.18) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 860px) {
  html[data-theme="dark"] body.home-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.about-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.auth-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.login-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.services-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.projects-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.insights-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.careers-page.home-header-scrolled .page-header,
  html[data-theme="dark"] body.contact-page.home-header-scrolled .page-header {
    background: rgba(6, 19, 33, 0.78) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  }

  html[data-theme="dark"] body.home-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.about-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.auth-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.login-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.services-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.projects-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.insights-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.careers-page.home-header-scrolled .page-header.open,
  html[data-theme="dark"] body.contact-page.home-header-scrolled .page-header.open {
    background: rgba(6, 19, 33, 0.88) !important;
  }
}

body.home-page .brand-text strong,
body.home-page .brand-text span,
body.home-page .nav-links a,
body.home-page .menu-toggle,
body.about-page .brand-text strong,
body.about-page .brand-text span,
body.about-page .nav-links a,
body.about-page .menu-toggle,
body.auth-page .brand-text strong,
body.auth-page .brand-text span,
body.auth-page .nav-links a,
body.auth-page .menu-toggle,
body.login-page .brand-text strong,
body.login-page .brand-text span,
body.login-page .nav-links a,
body.login-page .menu-toggle,
body.services-page .brand-text strong,
body.services-page .brand-text span,
body.services-page .nav-links a,
body.services-page .menu-toggle,
body.projects-page .brand-text strong,
body.projects-page .brand-text span,
body.projects-page .nav-links a,
body.projects-page .menu-toggle,
body.insights-page .brand-text strong,
body.insights-page .brand-text span,
body.insights-page .nav-links a,
body.insights-page .menu-toggle,
body.careers-page .brand-text strong,
body.careers-page .brand-text span,
body.careers-page .nav-links a,
body.careers-page .menu-toggle,
body.contact-page .brand-text strong,
body.contact-page .brand-text span,
body.contact-page .nav-links a,
body.contact-page .menu-toggle {
  color: var(--ink) !important;
}

body.home-page .nav-links a.active,
body.home-page .nav-links a:hover,
body.about-page .nav-links a.active,
body.about-page .nav-links a:hover,
body.auth-page .nav-links a.active,
body.auth-page .nav-links a:hover,
body.login-page .nav-links a.active,
body.login-page .nav-links a:hover,
body.services-page .nav-links a.active,
body.services-page .nav-links a:hover,
body.projects-page .nav-links a.active,
body.projects-page .nav-links a:hover,
body.insights-page .nav-links a.active,
body.insights-page .nav-links a:hover,
body.careers-page .nav-links a.active,
body.careers-page .nav-links a:hover,
body.contact-page .nav-links a.active,
body.contact-page .nav-links a:hover {
  color: var(--ink-deep) !important;
}

html[data-theme="dark"] body.home-page .brand-text strong,
html[data-theme="dark"] body.home-page .brand-text span,
html[data-theme="dark"] body.home-page .nav-links a,
html[data-theme="dark"] body.home-page .menu-toggle,
html[data-theme="dark"] body.about-page .brand-text strong,
html[data-theme="dark"] body.about-page .brand-text span,
html[data-theme="dark"] body.about-page .nav-links a,
html[data-theme="dark"] body.about-page .menu-toggle,
html[data-theme="dark"] body.auth-page .brand-text strong,
html[data-theme="dark"] body.auth-page .brand-text span,
html[data-theme="dark"] body.auth-page .nav-links a,
html[data-theme="dark"] body.auth-page .menu-toggle,
html[data-theme="dark"] body.login-page .brand-text strong,
html[data-theme="dark"] body.login-page .brand-text span,
html[data-theme="dark"] body.login-page .nav-links a,
html[data-theme="dark"] body.login-page .menu-toggle,
html[data-theme="dark"] body.services-page .brand-text strong,
html[data-theme="dark"] body.services-page .brand-text span,
html[data-theme="dark"] body.services-page .nav-links a,
html[data-theme="dark"] body.services-page .menu-toggle,
html[data-theme="dark"] body.careers-page .brand-text strong,
html[data-theme="dark"] body.careers-page .brand-text span,
html[data-theme="dark"] body.careers-page .nav-links a,
html[data-theme="dark"] body.careers-page .menu-toggle,
html[data-theme="dark"] body.contact-page .brand-text strong,
html[data-theme="dark"] body.contact-page .brand-text span,
html[data-theme="dark"] body.contact-page .nav-links a,
html[data-theme="dark"] body.contact-page .menu-toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.projects-page .brand-text strong,
html[data-theme="dark"] body.projects-page .brand-text span,
html[data-theme="dark"] body.projects-page .nav-links a,
html[data-theme="dark"] body.projects-page .menu-toggle,
html[data-theme="dark"] body.contact-page .brand-text strong,
html[data-theme="dark"] body.contact-page .brand-text span,
html[data-theme="dark"] body.contact-page .nav-links a,
html[data-theme="dark"] body.contact-page .menu-toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.insights-page .brand-text strong,
html[data-theme="dark"] body.insights-page .brand-text span,
html[data-theme="dark"] body.insights-page .nav-links a,
html[data-theme="dark"] body.insights-page .menu-toggle,
html[data-theme="dark"] body.contact-page .brand-text strong,
html[data-theme="dark"] body.contact-page .brand-text span,
html[data-theme="dark"] body.contact-page .nav-links a,
html[data-theme="dark"] body.contact-page .menu-toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.careers-page .brand-text strong,
html[data-theme="dark"] body.careers-page .brand-text span,
html[data-theme="dark"] body.careers-page .nav-links a,
html[data-theme="dark"] body.careers-page .menu-toggle,
html[data-theme="dark"] body.contact-page .brand-text strong,
html[data-theme="dark"] body.contact-page .brand-text span,
html[data-theme="dark"] body.contact-page .nav-links a,
html[data-theme="dark"] body.contact-page .menu-toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.home-page .nav-links a.active,
html[data-theme="dark"] body.home-page .nav-links a:hover,
html[data-theme="dark"] body.about-page .nav-links a.active,
html[data-theme="dark"] body.about-page .nav-links a:hover,
html[data-theme="dark"] body.auth-page .nav-links a.active,
html[data-theme="dark"] body.auth-page .nav-links a:hover,
html[data-theme="dark"] body.login-page .nav-links a.active,
html[data-theme="dark"] body.login-page .nav-links a:hover,
html[data-theme="dark"] body.services-page .nav-links a.active,
html[data-theme="dark"] body.services-page .nav-links a:hover,
html[data-theme="dark"] body.projects-page .nav-links a.active,
html[data-theme="dark"] body.projects-page .nav-links a:hover,
html[data-theme="dark"] body.insights-page .nav-links a.active,
html[data-theme="dark"] body.insights-page .nav-links a:hover,
html[data-theme="dark"] body.contact-page .nav-links a.active,
html[data-theme="dark"] body.contact-page .nav-links a:hover {
  color: #ffffff !important;
}

html[data-theme="dark"] body.projects-page .project-card .card-kicker {
  color: var(--gold) !important;
}

html[data-theme="dark"] body.projects-page .project-card h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] body.projects-page .project-card:hover h3 {
  color: #0a2035 !important;
}

body.home-page .hero.hero-slider-section .hero-slide img,
body.home-page .hero.hero-slider-section .hero-slide-overlay {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}

/* Careers Page Dark Mode Polish */
html[data-theme="dark"] .career-card h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .career-card .card-kicker,
html[data-theme="dark"] .form-card .card-kicker {
  color: var(--gold) !important;
}

html[data-theme="dark"] .contact-item strong {
  color: #ffffff !important;
}

/* Specific override for Resource Stack card in dark mode */
html[data-theme="dark"] .resource-stack-card {
  background:
    linear-gradient(145deg, rgba(10, 32, 53, 0.98), rgba(14, 44, 72, 0.94)),
    radial-gradient(circle at top right, rgba(197, 174, 0, 0.16), transparent 38%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .resource-stack-card h3,
html[data-theme="dark"] .resource-stack-card p,
html[data-theme="dark"] .resource-stack-card .resource-link span,
html[data-theme="dark"] .resource-stack-card .resource-link strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .resource-stack-card .card-kicker {
  color: var(--gold) !important;
}

html[data-theme="dark"] .resource-stack-card .resource-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .resource-stack-card .resource-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}


body.home-page .hero.hero-slider-section .hero-slide-overlay::after {
  content: none !important;
}

.hero.hero-slider-section {
  font-family: var(--body) !important;
}

.hero.hero-slider-section .hero-slide-content h1 {
  font-family: var(--headline) !important;
  text-transform: none !important;
}

.hero.hero-slider-section .hero-slide-content p,
.hero.hero-slider-section .hero-carousel-track-item strong {
  font-family: var(--body) !important;
}

.hero.hero-slider-section .hero-carousel-track-item span {
  display: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item strong {
  font-family: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 300 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

@media (max-width: 960px) {
  .hero.hero-slider-section .hero-slide-content {
    left: 1.25rem !important;
    right: 1.25rem !important;
  }

  .hero.hero-slider-section .hero-slide-content h1 {
    max-width: 13ch !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1.25rem !important;
    right: 1.25rem !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-slider-section .hero-slide-content {
    left: 1rem !important;
    right: 1rem !important;
  }

  .hero.hero-slider-section .hero-slide-content p {
    font-size: 0.76rem !important;
    line-height: 1.65 !important;
  }

  .hero.hero-slider-section .hero-carousel-footer {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 0.9rem !important;
  }
}

html[data-theme="dark"] .nav-links {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme="dark"] .nav-links a {
  background: transparent !important;
}

.hero.hero-slider-section .hero-carousel-footer,
.hero.hero-slider-section .hero-carousel-track,
.hero.hero-slider-section .hero-carousel-track-item,
.hero.hero-slider-section .hero-carousel-track-item strong {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item.active,
.hero.hero-slider-section .hero-carousel-track-item:hover,
.hero.hero-slider-section .hero-carousel-track-item:focus-visible,
.hero.hero-slider-section .hero-carousel-track-item:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero.hero-slider-section .hero-carousel-track-item::after {
  margin-top: 0.1rem !important;
}
