:root {
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-secondary: #111827;
  --color-accent: #2563eb;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #f3f4f6;
  --color-surface-soft: #f9fafb;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-green: #16a34a;
  --color-blue: #2563eb;
  --color-yellow: #facc15;
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.1);
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --container: 1280px;
  --container-max: var(--container);
  --container-gutter: clamp(14px, 2.8vw, 24px);
  --font-ui: "Trebuchet MS", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Trebuchet MS", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Trebuchet MS", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--font-ui);
}

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

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-body-scale, 1));
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: var(--font-body-weight, 400);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  font-family: var(--font-display, var(--font-header));
  font-size: calc(1em * var(--font-heading-scale, 1));
  font-weight: var(--font-heading-weight, 800);
}

body.is-menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 120;
  padding: 0.75rem 1rem;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

@supports (padding-left: max(0px)) {
  .container {
    padding-left: max(var(--container-gutter), env(safe-area-inset-left));
    padding-right: max(var(--container-gutter), env(safe-area-inset-right));
  }
}

:where(h1, h2, h3, h4, h5, h6, p, li) {
  overflow-wrap: break-word;
}

:where(.topbar__inner, .h2-topbar__inner, .h2-main__inner, .page-grid, .article-layout) > * {
  min-width: 0;
}

.site-shell {
  min-height: 100vh;
  padding-bottom: 4.75rem;
}

.site-header--v3 {
  --h3-topbar-bg: var(--h-topbar-bg, var(--theme-topbar-bg, var(--color-primary)));
  --h3-topbar-text: var(--h-topbar-text, var(--theme-topbar-text, var(--color-surface)));
  --h3-header-bg: var(--h-header-bg, var(--theme-header-bg, var(--color-surface)));
  --h3-header-text: var(--h-header-text, var(--theme-header-text, var(--color-text)));
  --h3-nav-bg: var(--h-nav-bg, var(--theme-nav-bg, var(--color-surface)));
  --h3-nav-text: var(--h-nav-text, var(--theme-nav-text, var(--color-text)));
  --h3-accent: var(--color-primary);
  --h3-accent-strong: var(--color-primary-dark);
  --h3-muted: var(--color-text-muted);
  --h3-border: var(--color-border);
  --h3-control-bg: var(--btn-action-bg, var(--color-surface-soft));
  --h3-control-text: var(--btn-action-text, var(--color-text));
  --h3-control-contrast: var(--btn-action-inverse, var(--color-surface));
  --h3-topbar-soft: color-mix(in srgb, var(--h3-topbar-text) 8%, transparent);
  --h3-topbar-border: color-mix(in srgb, var(--h3-topbar-text) 14%, transparent);
  --h3-chip-bg: color-mix(in srgb, var(--h3-accent) 14%, var(--h3-topbar-bg) 86%);
  --h3-chip-border: color-mix(in srgb, var(--h3-accent) 26%, transparent);
  --h3-chip-text: color-mix(in srgb, var(--h3-topbar-text) 84%, var(--h3-accent) 16%);
  --h3-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
  position: relative;
  z-index: 60;
  color: var(--h3-header-text);
}

.site-header--v3 .h3-topbar {
  background: linear-gradient(90deg, var(--h3-topbar-bg) 0%, color-mix(in srgb, var(--h3-topbar-bg) 90%, var(--h3-accent-strong) 10%) 100%);
  color: var(--h3-topbar-text);
}

.site-header--v3 .h3-topbar__inner,
.site-header--v3 .h3-main__inner,
.site-header--v3 .h3-nav__inner,
.site-header--v3 .h3-mobile-bar__inner {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.site-header--v3 .h3-topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.45rem;
}

.site-header--v3 .h3-topbar__left,
.site-header--v3 .h3-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.site-header--v3 .h3-topbar__center {
  min-width: 0;
}

.site-header--v3 .h3-weather {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--h3-topbar-border);
  background: var(--h3-topbar-soft);
}

.site-header--v3 .h3-weather .topbar-city-select {
  border: 0;
  background: transparent;
  color: var(--h3-topbar-text);
  font: inherit;
  min-width: 5.8rem;
}

.site-header--v3 .h3-weather .topbar-city-select option {
  color: var(--color-text);
}

.site-header--v3 .h3-weather .topbar-weather__temp {
  font-weight: 700;
  white-space: nowrap;
}

.site-header--v3 .h3-ticker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--h3-topbar-soft);
  border: 1px solid var(--h3-topbar-border);
  overflow: hidden;
}

.site-header--v3 .h3-ticker__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 1.9rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: var(--h3-chip-bg);
  border: 1px solid var(--h3-chip-border);
  color: var(--h3-chip-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--h3-accent) 10%, transparent);
}

.site-header--v3 .h3-ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.site-header--v3 .h3-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--h3-topbar-text);
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
  animation: h2-ticker-scroll var(--h2-ticker-duration, 30s) linear infinite;
  will-change: transform;
}

.site-header--v3 .h3-ticker__track:hover {
  animation-play-state: paused;
}

.site-header--v3 .h3-ticker__track .h2-ticker__item,
.site-header--v3 .h3-ticker__track a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.site-header--v3 .h3-ticker__track .h2-ticker__item:hover,
.site-header--v3 .h3-ticker__track a:hover {
  color: color-mix(in srgb, var(--h3-topbar-text) 82%, var(--h3-accent) 18%);
}

.site-header--v3 .h3-market {
  min-width: 0;
  color: var(--h3-topbar-text);
}

.site-header--v3 .h3-market .h2-market-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: market-vertical-cycle 15s cubic-bezier(0.85, 0, 0.15, 1) infinite;
  will-change: transform;
}

.site-header--v3 .h3-market:hover .h2-market-track {
  animation-play-state: paused;
}

.site-header--v3 .h3-market .market-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  min-width: 180px;
  padding: 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  font-size: 12px;
  font-weight: 700;
}

.site-header--v3 .h3-market .market-card__label {
  font-weight: 800;
  font-size: 11px;
  color: inherit !important;
}

.site-header--v3 .h3-market .market-card__value {
  font-weight: 800;
  color: inherit !important;
}

.site-header--v3 .h3-market .market-card__change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

@keyframes market-vertical-cycle {
  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-38px);
  }

  40%,
  55% {
    transform: translateY(-76px);
  }

  60%,
  75% {
    transform: translateY(-114px);
  }

  80%,
  95% {
    transform: translateY(-152px);
  }

  100% {
    transform: translateY(-190px);
  }
}

.site-header--v3 .h3-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-header--v3 .h3-social a,
.site-header--v3 .h3-social .theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--h3-topbar-text);
  background: var(--h3-topbar-soft);
  border: 1px solid var(--h3-topbar-border);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-header--v3 .h3-social a:hover,
.site-header--v3 .h3-social .theme-toggle:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--h3-topbar-text) 14%, transparent);
  border-color: color-mix(in srgb, var(--h3-topbar-text) 22%, transparent);
}

.site-header--v3 .h3-main {
  background: var(--h3-header-bg);
  border-bottom: 1px solid var(--h3-border);
  box-shadow: var(--h3-shadow);
}

.site-header--v3 .h3-main__inner {
  display: grid;
  grid-template-columns: auto minmax(20rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 6.1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-header--v3 .h3-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header--v3 .h3-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header--v3 .h3-logo img {
  display: block;
  width: auto;
  max-width: min(18.5rem, 100%);
  max-height: 3.55rem;
}

.site-header--v3 .h3-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.35rem 0.38rem 0.35rem 0.95rem;
  border-radius: 1rem;
  background: var(--h3-control-contrast);
  border: 1px solid color-mix(in srgb, var(--h3-accent) 12%, var(--h3-border));
}

.site-header--v3 .h3-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--h3-header-text);
  font: inherit;
}

.site-header--v3 .h3-search input:focus {
  outline: 0;
}

.site-header--v3 .h3-search button {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--h3-accent) 0%, var(--h3-accent-strong) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--h3-accent) 22%, transparent);
}

.site-header--v3 .h3-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-header--v3 .h3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-family: var(--font-display, var(--font-header));
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--h3-border);
  background: var(--h3-control-bg);
  color: var(--h3-control-text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.site-header--v3 .h3-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--h3-accent) 24%, var(--h3-border));
}

.site-header--v3 .h3-btn--primary {
  background: linear-gradient(135deg, var(--h3-accent) 0%, var(--h3-accent-strong) 100%);
  border-color: transparent;
  color: #fff;
}

.site-header--v3 .h3-nav {
  background: var(--h3-nav-bg);
  border-bottom: 1px solid var(--h3-border);
}

.site-header--v3 .h3-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.7rem;
}

.site-header--v3 .h3-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header--v3 .h3-nav__list::-webkit-scrollbar {
  display: none;
}

.site-header--v3 .h3-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.7rem;
  padding: 0.58rem 0.82rem;
  text-decoration: none;
  color: var(--h3-nav-text);
  font-family: var(--font-display, var(--font-header));
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.site-header--v3 .h3-nav__list a:hover,
.site-header--v3 .h3-nav__list a.is-active {
  color: var(--h3-accent-strong);
  box-shadow: inset 0 -3px 0 var(--h3-accent);
}

.site-header--v3 .h3-nav__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.site-header--v3 .h3-nav__search,
.site-header--v3 .h3-nav__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.95rem;
  border: 1px solid var(--h3-border);
  background: var(--h3-control-bg);
  color: var(--h3-control-text);
  text-decoration: none;
  font-family: var(--font-display, var(--font-header));
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-header--v3 .h3-nav__search {
  width: 2.75rem;
}

.site-header--v3 .h3-nav__menu {
  gap: 0.45rem;
  padding: 0 0.95rem;
}

.site-header--v3 .h3-nav__search:hover,
.site-header--v3 .h3-nav__menu:hover {
  border-color: color-mix(in srgb, var(--h3-accent) 24%, var(--h3-border));
}

.site-header--v3 .h3-mobile-bar {
  display: none;
}

.site-header--v3 .h3-header-ad {
  padding-top: 0.45rem;
  padding-bottom: 0.35rem;
  background: var(--h3-header-bg);
  border-bottom: 1px solid var(--h3-border);
}

.site-header--v3 .h3-header-ad .ad-slot,
.site-header--v3 .h3-header-ad .ad-banner,
.site-header--v3 .h3-header-ad .ad-box,
.site-header--v3 .h3-header-ad .header-ad-space {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-header--v3 .h3-header-ad .ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header--v3 .icon {
  width: 1.05rem;
  height: 1.05rem;
}

[data-theme-mode="dark"] .site-header--v3 {
  --h3-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

[data-theme-mode="dark"] .site-header--v3 .h3-search,
[data-theme-mode="dark"] .site-header--v3 .h3-btn,
[data-theme-mode="dark"] .site-header--v3 .h3-nav__search,
[data-theme-mode="dark"] .site-header--v3 .h3-nav__menu,
[data-theme-mode="dark"] .site-header--v3 .h3-mobile-bar {
  background: var(--color-surface-soft);
  border-color: var(--color-border);
  color: var(--h3-header-text);
}

[data-theme-mode="dark"] .site-header--v3 .h3-btn--primary {
  background: linear-gradient(135deg, var(--h3-accent) 0%, var(--h3-accent-strong) 100%);
  color: #fff;
}

[data-theme-mode="dark"] .site-header--v3 .h3-search input {
  color: var(--h3-header-text);
}

[data-theme-mode="dark"] .site-header--v3 .h3-mobile-bar {
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 1240px) {
  .site-header--v3 .h3-market {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header--v3 .h3-topbar__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-header--v3 .h3-topbar__left,
  .site-header--v3 .h3-topbar__right {
    justify-content: center;
  }

  .site-header--v3 .h3-main__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    text-align: center;
  }

  .site-header--v3 .h3-brand {
    align-items: center;
  }

  .site-header--v3 .h3-actions {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .site-header--v3 .h3-topbar,
  .site-header--v3 .h3-main,
  .site-header--v3 .h3-nav {
    display: none;
  }

  .site-header--v3 .h3-mobile-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 65;
    background: var(--h3-header-bg);
    border-bottom: 1px solid var(--h3-border);
    box-shadow: var(--h3-shadow);
  }

  .site-header--v3 .h3-header-ad {
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .site-header--v3 .h3-mobile-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4rem;
  }

  .site-header--v3 .h3-mobile-logo img {
    display: block;
    max-width: 9.4rem;
    max-height: 2.3rem;
    width: auto;
  }

  .site-header--v3 .h3-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .site-header--v3 .h3-mobile-actions a,
  .site-header--v3 .h3-mobile-actions button {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--h3-border);
    background: var(--h3-control-bg);
    color: var(--h3-control-text);
  }
}

@media (max-width: 640px) {
  .site-header--v3 .h3-mobile-bar__inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .site-header--v3 .h3-mobile-logo img {
    max-width: 8.2rem;
  }
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  color: inherit;
  fill: currentColor;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.section-title,
.page-title {
  margin: 0;
  color: var(--color-text, #111827);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

.site-header {
  position: relative;
  z-index: 60;
  --drawer-bg: var(--h-nav-bg, var(--theme-nav-bg, var(--color-surface)));
  --drawer-text: var(--h-nav-text, var(--theme-nav-text, var(--color-text)));
  --drawer-bg-alt: color-mix(in srgb, var(--drawer-bg) 92%, var(--drawer-text) 8%);
  --drawer-surface-muted: color-mix(in srgb, var(--drawer-bg) 90%, var(--drawer-text) 10%);
  --drawer-surface-soft: color-mix(in srgb, var(--drawer-bg) 96%, var(--drawer-text) 4%);
  --drawer-text-muted: color-mix(in srgb, var(--drawer-text) 62%, var(--drawer-bg));
  --drawer-border: color-mix(in srgb, var(--drawer-text) 14%, var(--drawer-bg));
  --drawer-backdrop-bg: color-mix(in srgb, rgba(2, 6, 23, 0.82) 72%, var(--drawer-bg) 28%);
  background: var(--h-header-bg, var(--theme-header-bg, var(--color-surface)));
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.topbar,
.h2-topbar {
  --topbar-bg: var(--h-topbar-bg, var(--theme-topbar-bg, #fff));
  --topbar-text: var(--h-topbar-text, var(--theme-topbar-text, #333));
  display: block;
  border-bottom: 1px solid color-mix(in srgb, var(--topbar-text) 18%, var(--topbar-bg));
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 0.6875rem;
  font-weight: 500;
  height: 40px;
  overflow: hidden;
}

.topbar__inner,
.header-main,
.nav-inner,
.header-group,
.header-actions,
.market-strip,
.social-strip,
.ticker,
.hero-pager,
.hero-side-controls {
  display: flex;
  align-items: center;
}

.topbar__inner,
.h2-topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.topbar-left,
.h2-topbar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: max-content;
}

.topbar-right,
.h2-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: max-content;
}

.header-main {
  --header-main-bg: var(--h-header-bg, var(--theme-header-bg));
  --header-main-text: var(--h-header-text, var(--theme-header-text));
  display: grid !important;
  position: relative;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  background: var(--header-main-bg);
  color: var(--header-main-text);
  isolation: isolate;
}

.site-header > .header-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--header-main-bg, var(--h-header-bg, var(--theme-header-bg, var(--color-surface))));
  pointer-events: none;
  z-index: -1;
}

/* Mobile: Logo üstte, Reklam altta */
@media (max-width: 1023px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu logo profile"
      "ad ad ad";
    gap: 1rem;
  }

  .mobile-header-left {
    grid-area: menu;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
  }

  .header-main>.header-group {
    grid-area: profile;
  }

  .header-ad-space {
    grid-area: ad;
    width: 100%;
  }

  .ad-slot--desktop {
    display: none;
  }

  .ad-slot--mobile {
    display: block;
    margin: 0 auto;
  }
}

/* Desktop: Logo | Reklam | Aksiyonlar */
@media (min-width: 1024px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
    padding: 1.25rem 0;
  }

  .logo {
    grid-column: 1;
    align-items: flex-start;
  }

  .header-ad-space {
    grid-column: 2;
    display: flex;
    justify-content: center;
  }

  .header-main>.header-group {
    grid-column: 3;
    justify-content: flex-end;
  }

  .header-actions {
    display: flex;
  }
}

.header-ad-space {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ad-slot {
  --ad-slot-reserve-w: var(--ad-slot-reserve-w-web, var(--ad-w-web, 100%));
  --ad-slot-reserve-h: var(--ad-slot-reserve-h-web, var(--ad-h-web, 0px));
  --ad-slot-reserve-ratio: var(--ad-slot-reserve-ratio-web, var(--ad-ratio-web, auto));
  position: relative;
  width: min(100%, var(--ad-slot-reserve-w));
  min-height: var(--ad-slot-reserve-h);
  aspect-ratio: var(--ad-slot-reserve-ratio);
  align-items: stretch;
  justify-content: stretch;
  contain: layout paint;
}

.ad-slot>* {
  width: 100%;
  height: 100%;
}

.ad-slot__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

@media (max-width: 767px) {
  .ad-slot {
    --ad-slot-reserve-w: var(--ad-slot-reserve-w-mob, var(--ad-w-mob, var(--ad-slot-reserve-w-web, var(--ad-w-web, 100%))));
    --ad-slot-reserve-h: var(--ad-slot-reserve-h-mob, var(--ad-h-mob, var(--ad-slot-reserve-h-web, var(--ad-h-web, 0px))));
    --ad-slot-reserve-ratio: var(--ad-slot-reserve-ratio-mob, var(--ad-ratio-mob, var(--ad-slot-reserve-ratio-web, var(--ad-ratio-web, auto))));
    width: min(100%, var(--ad-slot-reserve-w));
    min-height: var(--ad-slot-reserve-h);
    aspect-ratio: var(--ad-slot-reserve-ratio);
  }
}

.header-ad-space .ad-slot {
  margin: 0 !important;
  /* Header içindeki reklamın marjinini sıfırla */
}

.header-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__inner>.header-group:first-child>span {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar__inner>.header-group:first-child>span:first-child {
  white-space: nowrap;
}

.topbar-weather-slot {
  display: inline-flex !important;
  align-items: center;
}

.topbar__inner>.header-group:first-child>span:nth-child(2) {
  display: none;
}

.market-strip {
  flex: 1 1 auto;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.12rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-strip::-webkit-scrollbar {
  display: none;
}

.social-strip {
  display: flex !important;
  gap: 0.85rem !important;
  justify-content: flex-end;
  min-width: max-content;
}

@media (max-width: 1280px) {
  .social-strip {
    gap: 0.5rem !important;
  }

  .social-strip a:not([aria-label]) {
    display: none;
  }

  .social-strip a[aria-label] {
    display: flex;
  }
}

.social-strip a {
  color: var(--topbar-text);
  font-weight: 700;
}

.social-strip a[aria-label] {
  display: none;
}

.social-strip .theme-toggle {
  width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  justify-content: center;
}

.social-strip .theme-toggle__label {
  display: none;
}

.market-card {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 1280px) {
  .market-card {
    padding: 0.25rem 0.4rem;
    gap: 0.3rem;
  }

  .market-card__value {
    font-size: 0.78rem;
  }
}

.market-card:hover,
.market-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.market-card__top {
  display: contents;
}

.market-card__label {
  order: 1;
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-card__value {
  order: 2;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.market-card__change {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.1rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.market-card__change::before {
  content: "+";
  font-size: 0.62rem;
  line-height: 1;
}

.market-card--up .market-card__change {
  background: #ecfdf5;
  color: #16a34a;
}

.market-card--down .market-card__change {
  background: #fef2f2;
  color: #dc2626;
}

.market-card--down .market-card__change::before {
  content: "-";
}

/* Duplicate .topbar removed — see primary definition above (with --h-topbar-bg mapping) */

.topbar__inner {
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
}

@media (max-width: 1280px) {
  .topbar__inner {
    gap: 0.35rem;
  }
}

.topbar-left {
  gap: 0.4rem !important;
  /* Reduced gap */
}

.topbar-weather {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  /* Reduced from 0.55rem */
  padding: 0 0 0 0.4rem;
  border-left: 1px solid color-mix(in srgb, var(--topbar-text) 22%, var(--topbar-bg));
  color: var(--topbar-text);
}

.topbar-weather__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--topbar-text);
}

.topbar-weather__icon .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.topbar-weather__field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar-weather__field::after {
  content: "";
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 0.3rem;
  height: 0.3rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.4;
  pointer-events: none;
}

.topbar-city-select {
  appearance: none;
  min-width: 4.5rem;
  /* Reduced from 5.5rem */
  padding: 0 0.65rem 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.625rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

.topbar-city-select option {
  color: var(--topbar-text);
  background: var(--topbar-bg);
}

.topbar-weather__temp {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--topbar-bg) 90%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--topbar-text) 16%, var(--topbar-bg));
  color: var(--topbar-text);
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.topbar-loading {
  opacity: 0.6;
  font-style: italic;
  animation: topbarPulse 1.5s infinite ease-in-out;
}

@keyframes topbarPulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.4;
  }
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  justify-self: center;
}

.logo__title {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.95rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.logo__title span {
  color: var(--color-text);
}

.logo__tag {
  display: none;
  color: #9ca3af;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-button,
.mobile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg));
  border-radius: 999px;
  background: color-mix(in srgb, var(--header-main-bg) 94%, var(--header-main-text));
  color: var(--header-main-text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.mobile-action--primary {
  border-color: #fee2e2;
  background: var(--color-surface-soft);
  color: var(--color-primary);
}

.desktop-ad {
  display: none;
  width: min(100%, 45.5rem);
  min-width: min(100%, 45.5rem);
  max-width: 100%;
  height: 5.625rem;
  flex: 0 1 45.5rem;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  background: #f8fafc;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.header-actions {
  --header-action-bg: color-mix(in srgb, var(--header-main-bg) 92%, var(--header-main-text));
  --header-action-border: color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg));
  --header-action-text: var(--header-main-text);
  --header-action-hover-bg: color-mix(in srgb, var(--color-primary) 12%, var(--header-main-bg));
  --header-action-hover-border: color-mix(in srgb, var(--color-primary) 54%, var(--header-main-bg));
  --header-action-hover-text: var(--color-primary);
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 1.05rem;
  border: 1px solid var(--header-action-border);
  border-radius: 0.85rem;
  background: var(--header-action-bg, var(--btn-action-bg, var(--color-surface-soft)));
  color: var(--header-action-text, var(--header-main-text));
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.header-button .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.header-actions .header-button:hover,
.header-actions .header-button:focus-visible {
  border-color: var(--header-action-hover-border);
  background: var(--header-action-hover-bg);
  color: var(--header-action-hover-text);
  transform: translateY(-1px);
}

.header-button--icon {
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  gap: 0;
  border-radius: 999px;
}

.header-button--icon .icon {
  width: 1rem;
  height: 1rem;
}

.header-button--search {
  border-color: color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg));
  background: color-mix(in srgb, var(--header-main-bg) 94%, var(--header-main-text));
  color: var(--header-main-text);
}

.header-button--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--btn-action-contrast, #fff);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.header-actions .header-button--primary:hover,
.header-actions .header-button--primary:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 82%, #000);
  background: color-mix(in srgb, var(--color-primary) 88%, #000);
  color: var(--btn-action-contrast, #fff);
}

.header-button--menu {
  display: none;
}

.site-nav {
  --site-nav-bg: var(--h-nav-bg, var(--theme-nav-bg));
  --site-nav-text: var(--h-nav-text, var(--theme-nav-text));
  display: none;
  border-top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--site-nav-text) 14%, var(--site-nav-bg));
  background: var(--site-nav-bg);
  color: var(--site-nav-text);
}

.site-nav.is-sticky {
  position: sticky;
  top: 0;
  z-index: 59;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.nav-inner {
  justify-content: center;
  gap: 1rem;
  min-height: 3.25rem;
}

.nav-drawer-toggle {
  display: none;
  align-items: center;
  gap: 0.42rem;
  min-height: auto;
  padding: 1rem 0 0.95rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--site-nav-text);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
}

.nav-drawer-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.nav-drawer-toggle:hover,
.nav-drawer-toggle:focus-visible,
.nav-drawer-toggle.is-active {
  color: var(--color-primary);
}

.nav-drawer-toggle:hover::after,
.nav-drawer-toggle:focus-visible::after,
.nav-drawer-toggle.is-active::after {
  background: var(--color-primary);
}

.nav-drawer-toggle .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-list {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 1 auto;
  margin-inline: auto;
}

.nav-list__toggle {
  display: flex;
  align-items: center;
  margin-left: 0.45rem;
}

.nav-list a {
  display: block;
  padding: 1rem 0.85rem;
  position: relative;
  color: var(--site-nav-text);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-list__home a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  min-height: 2.4rem;
  margin-right: 0.2rem;
  padding: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-nav-bg) 92%, var(--site-nav-text));
}

.nav-list__home a::after {
  display: none;
}

.nav-list__home .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.65rem;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  background: var(--color-primary);
}

.nav-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid color-mix(in srgb, var(--site-nav-text) 16%, var(--site-nav-bg));
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-nav-bg) 94%, var(--site-nav-text));
  color: var(--site-nav-text);
  box-shadow: none;
}

.site-nav .nav-search {
  display: none !important;
}

.header-actions .nav-search {
  display: inline-flex !important;
}

.nav-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-drawer-toggle:hover {
  opacity: 0.9;
}

/* =========================================
   HEADER 2 NAVIGATION (Aligned with V1)
========================================= */
.site-header--v2 .h2-nav {
  display: none;
  border-top: 0;
  border-bottom: 1px solid var(--h2-nav-border) !important;
  background: var(--h2-nav-bg) !important;
  color: var(--h2-nav-text) !important;
  width: 100%;
}

[data-theme-mode="dark"] .site-header--v2 .h2-nav {
  background: var(--h2-nav-bg) !important;
  border-bottom-color: var(--h2-nav-border) !important;
}

@media (min-width: 1024px) {
  .site-header--v2 .h2-nav {
    display: block;
  }
}

.site-header--v2 .h2-nav.is-sticky {
  position: sticky;
  top: 0;
  z-index: 59;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.site-header--v2 .h2-nav__inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1rem;
}

.site-header--v2 .h2-nav__list {
  display: flex !important;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  flex-wrap: nowrap;
}

.site-header--v2 .h2-nav__list li {
  display: flex;
  align-items: center;
}

.site-header--v2 .h2-nav__list a {
  display: block;
  padding: 1.1rem 0.85rem !important;
  position: relative;
  color: var(--h2-nav-text) !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

[data-theme-mode="dark"] .site-header--v2 .h2-nav__list a {
  color: var(--h2-nav-text) !important;
}

.site-header--v2 .h2-nav__list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.site-header--v2 .h2-nav__list a:hover,
.site-header--v2 .h2-nav__list a.is-active {
  color: var(--color-primary) !important;
}

.site-header--v2 .h2-nav__list a:hover::after,
.site-header--v2 .h2-nav__list a.is-active::after {
  background: var(--color-primary) !important;
}

.site-header--v2 .h2-nav__toggle {
  display: flex;
  align-items: center;
  margin-left: auto !important;
  padding-left: 1rem;
}

.site-header--v2 .h2-nav__menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: auto;
  padding: 0.6rem 1.25rem !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header--v2 .h2-nav__menu-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.site-header--v2 .h2-nav__menu-btn .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.5;
}

/* =========================================
   MEGA MENU / MOBILE DRAWER - FINAL FIX
========================================= */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.is-menu-open .drawer-backdrop,
[data-drawer-backdrop]:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transition:
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    visibility 0.28s ease;
}

/* DESKTOP */
@media (min-width: 1025px) {
  .mobile-drawer {
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    border-radius: 0;
    transform: translateY(-48%) scale(0.98);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 45px 120px rgba(15, 23, 42, 0.3);
  }

  body.is-menu-open .mobile-drawer,
  .mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
  }
}

/* MOBILE */
@media (max-width: 1024px) {
  .mobile-drawer {
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 0;
    /* Full width usually looks better without side radius */
    transform: translateY(-48%) scale(1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }

  body.is-menu-open .mobile-drawer,
  .mobile-drawer.is-open {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
}

/* HEADER */
.drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--color-surface-soft) 60%, white) 0%,
      var(--color-surface) 100%);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.drawer-head .icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.drawer-head .icon-button:hover {
  color: var(--color-primary);
  background: var(--color-surface-soft);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  transform: rotate(90deg);
}

/* CONTENT = REAL SCROLL AREA */
.drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-border) 95%, white) transparent;
}

.drawer-content::-webkit-scrollbar {
  width: 10px;
}

.drawer-content::-webkit-scrollbar-track {
  background: transparent;
}

.drawer-content::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-border) 95%, white);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-text-muted) 50%, white);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* INTRO */
.drawer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-areas:
    "content search"
    "pills pills";
  align-items: center;
  gap: 1.4rem 1.6rem;
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, white);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 38%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
}

.drawer-intro__content {
  grid-area: content;
  min-width: 0;
}

.drawer-intro__eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-intro__title {
  margin: 0 0 14px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.9rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.drawer-intro__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 56ch;
}

.drawer-search {
  grid-area: search;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.drawer-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 15px;
}

.drawer-search input::placeholder {
  color: var(--color-text-muted);
}

.drawer-search button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-search button:hover {
  transform: scale(1.04);
  opacity: 0.96;
}

.drawer-pills {
  grid-area: pills;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.15rem;
}

.drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.drawer-pill:hover {
  color: var(--color-primary);
  background: var(--color-surface-soft);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  transform: translateY(-2px);
}

.drawer-pill--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-color: transparent;
}

/* QUICK PANEL */
.drawer-quick-panel {
  margin-bottom: 1.5rem;
}

.drawer-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.drawer-quick-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.drawer-quick-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.drawer-quick-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.drawer-quick-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  color: var(--color-primary);
}

.drawer-quick-card__label {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-quick-card__chip {
  margin-left: auto;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

.drawer-quick-card__value {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.drawer-quick-card__meta {
  display: block;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* SECTIONS */
.drawer-sections {
  padding: 1.45rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
}

.drawer-section-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.drawer-section {
  min-width: 0;
}

.drawer-section__title {
  margin: 0 0 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, white);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-link-list,
.drawer-link-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-link-list li,
.drawer-link-grid li {
  margin: 0;
}

.drawer-link-list a,
.drawer-link-grid a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--color-border) 45%, transparent);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: all 0.22s ease;
}

.drawer-link-list a:hover,
.drawer-link-grid a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.drawer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.2rem;
}

.drawer-link-empty {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 8px 0;
}

.drawer-live {
  width: 100%;
  margin-top: 1.2rem;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--color-primary) 22%, transparent);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.drawer-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.drawer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
}

.drawer-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.drawer-social a:hover {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  background: var(--color-surface-soft);
  transform: translateY(-2px);
}

.mobile-drawer .icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

/* TABLET */
@media (max-width: 1180px) {
  .drawer-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "search"
      "pills";
    align-items: start;
  }

  .drawer-intro__title {
    max-width: none;
    font-size: 1.5rem;
  }

  .drawer-search {
    min-height: 60px;
  }

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

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

/* MOBILE */
@media (max-width: 768px) {
  .drawer-head {
    padding: 1rem;
  }

  .drawer-content {
    padding: 1rem;
  }

  .drawer-intro,
  .drawer-sections {
    padding: 1rem;
    border-radius: 16px;
  }

  .drawer-intro__title {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .drawer-intro__text {
    font-size: 14px;
  }

  .drawer-search {
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .drawer-search button {
    width: 40px;
    height: 40px;
  }

  .drawer-quick-grid {
    grid-template-columns: 1fr;
  }

  .drawer-section-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .drawer-link-grid {
    grid-template-columns: 1fr;
  }

  .drawer-pill {
    width: 100%;
  }

  .drawer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {

  .drawer-backdrop,
  .mobile-drawer,
  .drawer-head .icon-button,
  .drawer-search button,
  .drawer-pill,
  .drawer-quick-card,
  .drawer-link-list a,
  .drawer-link-grid a,
  .drawer-social a,
  .drawer-live {
    transition: none !important;
  }
}


.mobile-header-right {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-toggle--compact {
  min-height: 2.5rem;
  padding: 0;
  width: 2.5rem;
  justify-content: center;
}

.mobile-header-left .theme-toggle {
  margin-left: 0.1rem;
}

.theme-toggle__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.theme-icon {
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon--sun {
  opacity: 0;
  transform: scale(0.7);
}

.theme-toggle.is-dark .theme-icon--moon {
  opacity: 0;
  transform: scale(0.7);
}

.theme-toggle.is-dark .theme-icon--sun {
  opacity: 1;
  transform: scale(1);
}

.drawer-theme {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.page-main {
  padding-top: 1.5rem;
}

.page-section {
  margin-top: 2rem;
}

.related-grid {
  display: grid;
  gap: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-copy {
  margin: 0;
  color: var(--color-text-muted, #4b5563);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.75;
}

.article-layout {
  display: grid;
  gap: 1.75rem;
}

.article {
  min-width: 0;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-title {
  margin: 0.85rem 0 1rem;
  color: var(--color-text, #111827);
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 8.6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.95rem;
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--color-border, #f3f4f6);
  border-bottom: 1px solid var(--color-border, #f3f4f6);
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-mini__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-surface-soft, #f3f4f6);
  color: var(--color-text-muted, #9ca3af);
}

.author-mini__name {
  display: block;
  color: var(--color-text, #111827);
  font-size: 0.875rem;
  font-weight: 800;
}

.author-mini__role {
  display: block;
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: flex-start;
}

.article-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  color: var(--color-text, #1f2937);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.78;
}

.article-lead {
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-muted, #4b5563);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.66;
}

.article-body p,
.article-body ul {
  margin: 0 0 1.5rem;
}

.article-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft, #f9fafb);
  color: var(--color-text-muted, #6b7280);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 800;
}

.breaking-wrap {
  margin-bottom: 1.5rem;
}

.ticker {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
}

.ticker__label {
  flex: 0 0 auto;
  background: var(--color-secondary);
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0.8rem 1rem;
}

[data-theme-mode="dark"] .site-header {
  background: var(--header-main-bg);
  border-bottom-color: color-mix(in srgb, var(--header-main-text) 14%, var(--header-main-bg));
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.42);
}

[data-theme-mode="dark"] .topbar {
  background: var(--topbar-bg);
  border-bottom-color: color-mix(in srgb, var(--topbar-text) 18%, var(--topbar-bg));
  color: var(--topbar-text);
}

[data-theme-mode="dark"] .social-strip a,
[data-theme-mode="dark"] .icon-button,
[data-theme-mode="dark"] .mobile-action,
[data-theme-mode="dark"] .theme-toggle,
[data-theme-mode="dark"] .topbar-weather,
[data-theme-mode="dark"] .nav-search,
[data-theme-mode="dark"] .drawer-social a {
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  color: inherit;
}

[data-theme-mode="dark"] .topbar .theme-toggle,
[data-theme-mode="dark"] .topbar .icon-button,
[data-theme-mode="dark"] .topbar .mobile-action,
[data-theme-mode="dark"] .topbar .social-strip a[aria-label] {
  background: color-mix(in srgb, var(--topbar-bg) 88%, var(--topbar-text));
  border-color: color-mix(in srgb, var(--topbar-text) 16%, var(--topbar-bg));
  color: var(--topbar-text);
}

[data-theme-mode="dark"] .header-main .header-button,
[data-theme-mode="dark"] .header-main .icon-button,
[data-theme-mode="dark"] .header-main .mobile-action,
[data-theme-mode="dark"] .header-main [data-theme-toggle] {
  background: color-mix(in srgb, var(--header-main-bg) 90%, var(--header-main-text));
  border-color: color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg));
  color: var(--header-main-text);
}

[data-theme-mode="dark"] .header-main>.logo>img,
[data-theme-mode="dark"] .footer .logo img {
  filter: brightness(0) invert(1);
}

[data-theme-mode="dark"] .footer .logo__title,
[data-theme-mode="dark"] .footer .logo__title span,
[data-theme-mode="dark"] .footer .logo__tag {
  color: #ffffff !important;
}

[data-theme-mode="dark"] .topbar-city-select {
  color: var(--topbar-text);
}

[data-theme-mode="dark"] .topbar-city-select option {
  color: var(--topbar-text);
  background: var(--topbar-bg);
}

[data-theme-mode="dark"] .topbar-weather__icon {
  color: var(--topbar-text);
}

[data-theme-mode="dark"] .topbar-weather__temp {
  background: color-mix(in srgb, var(--topbar-bg) 90%, #ffffff);
  color: var(--topbar-text);
}

[data-theme-mode="dark"] .header-button {
  border-color: var(--header-action-border, color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg)));
  background: var(--header-action-bg, var(--btn-action-bg, var(--color-surface-soft)));
  color: var(--header-action-text, var(--header-main-text));
}

[data-theme-mode="dark"] .header-actions .header-button:hover,
[data-theme-mode="dark"] .header-actions .header-button:focus-visible {
  border-color: var(--header-action-hover-border, color-mix(in srgb, var(--color-primary) 54%, var(--header-main-bg)));
  background: var(--header-action-hover-bg, color-mix(in srgb, var(--color-primary) 12%, var(--header-main-bg)));
  color: var(--header-action-hover-text, var(--color-primary));
}

[data-theme-mode="dark"] .header-button--primary {
  background: var(--color-primary);
  color: var(--btn-action-contrast, #fff);
  border-color: var(--color-primary);
}

[data-theme-mode="dark"] .header-actions .header-button--primary:hover,
[data-theme-mode="dark"] .header-actions .header-button--primary:focus-visible {
  background: color-mix(in srgb, var(--color-primary) 88%, #000);
  color: var(--btn-action-contrast, #fff);
  border-color: color-mix(in srgb, var(--color-primary) 82%, #000);
}

[data-theme-mode="dark"] .site-nav .nav-drawer-toggle {
  background: color-mix(in srgb, var(--site-nav-bg) 90%, var(--site-nav-text));
  border-color: color-mix(in srgb, var(--site-nav-text) 16%, var(--site-nav-bg));
  color: var(--site-nav-text);
}

[data-theme-mode="dark"] .desktop-ad,
[data-theme-mode="dark"] .site-nav,
[data-theme-mode="dark"] .mobile-drawer {
  background: var(--site-nav-bg);
  border-color: color-mix(in srgb, var(--site-nav-text) 16%, var(--site-nav-bg));
}

[data-theme-mode="dark"] .drawer-quick-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.34);
  color: #f8fafc;
}

[data-theme-mode="dark"] .drawer-quick-card__icon {
  background: rgba(248, 250, 252, 0.08);
  color: #f8fafc;
}

[data-theme-mode="dark"] .drawer-quick-card__meta {
  color: #94a3b8;
}

[data-theme-mode="dark"] .drawer-quick-card__chip.is-neutral {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

[data-theme-mode="dark"] .drawer-quick-card__chip.is-up {
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}

[data-theme-mode="dark"] .drawer-quick-card__chip.is-down {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

[data-theme-mode="dark"] .nav-drawer-toggle {
  background: var(--color-surface-soft);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

[data-theme-mode="dark"] .drawer-section {
  border-color: rgba(71, 85, 105, 0.5);
  background: rgba(15, 23, 42, 0.88);
}

[data-theme-mode="dark"] .drawer-section__title {
  color: #f8fafc;
}

[data-theme-mode="dark"] .drawer-link-list a,
[data-theme-mode="dark"] .drawer-link-grid a {
  background: rgba(30, 41, 59, 0.88);
  color: #e2e8f0;
}

[data-theme-mode="dark"] .drawer-link-empty {
  color: #94a3b8;
}

[data-theme-mode="dark"] .nav-list a,
[data-theme-mode="dark"] .logo__title span,
[data-theme-mode="dark"] .drawer-list a {
  color: var(--site-nav-text);
}

[data-theme-mode="dark"] .nav-list__home a {
  background: color-mix(in srgb, var(--site-nav-bg) 92%, var(--site-nav-text));
}

[data-theme-mode="dark"] .logo__tag,
[data-theme-mode="dark"] .social-strip a,
[data-theme-mode="dark"] .market-strip,
[data-theme-mode="dark"] .topbar {
  color: inherit;
}

[data-theme-mode="dark"] .market-card {
  border-color: #243041;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  box-shadow: none;
}

[data-theme-mode="dark"] .market-card__label {
  color: #94a3b8;
}

[data-theme-mode="dark"] .market-card__value {
  color: #f8fafc;
}

[data-theme-mode="dark"] .market-card--up .market-card__change {
  background: rgba(22, 163, 74, 0.16);
  color: #4ade80;
}

[data-theme-mode="dark"] .market-card--down .market-card__change {
  background: rgba(220, 38, 38, 0.16);
  color: #f87171;
}

[data-theme-mode="dark"] .nav-list a:hover,
[data-theme-mode="dark"] .nav-list a.is-active,
[data-theme-mode="dark"] .drawer-list a:hover,
[data-theme-mode="dark"] .drawer-list a:focus-visible {
  color: #fff;
  background: rgba(220, 38, 38, 0.08);
}

[data-theme-mode="dark"] .nav-list a:hover::after,
[data-theme-mode="dark"] .nav-list a.is-active::after {
  background: var(--color-primary);
}

[data-theme-mode="dark"] .drawer-backdrop {
  background: rgba(2, 6, 23, 0.72);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 700;
  width: max-content;
}

.ticker__track.is-animated {
  animation: marquee var(--ticker-duration, 60s) linear infinite;
}

.ticker__viewport:hover .ticker__track.is-animated,
.ticker__viewport:focus-within .ticker__track.is-animated {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  white-space: nowrap;
  pointer-events: auto;
}

.ticker__item:hover,
.ticker__item:focus-visible {
  opacity: 0.88;
}

.ticker__item--static {
  cursor: default;
}

.ticker__dot {
  color: #fecaca;
  flex: 0 0 auto;
}

.ticker__text {
  display: inline-block;
}

.hero-layout {
  --hero-stage-height: clamp(18rem, 30vw, 25rem);
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.home-utility-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 82%);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.125rem 0 0.65rem;
  scrollbar-width: none;
}

.home-utility-grid::-webkit-scrollbar {
  display: none;
}

.home-utility-card {
  display: grid;
  gap: 0.85rem;
  min-height: 8.75rem;
  padding: 1rem;
  border: 1px solid #e7edf5;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.hero-main,
.hero-side {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-sm);
}

.hero-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  position: relative;
  width: 100%;
  min-height: 0 !important;
  overflow: hidden;
  align-self: start;
}

.hero-main__viewport,
.hero-slides {
  position: relative;
  width: 100%;
  height: var(--hero-stage-height);
  min-height: var(--hero-stage-height);
  overflow: hidden;
}

/* Fallback for padding-bottom hack is not needed as it is universal, 
   but we keep clean structure */

.hero-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: start;
  min-height: 0;
  background: transparent;
}

.hero-side__viewport {
  position: relative;
  min-height: var(--hero-stage-height);
  height: var(--hero-stage-height);
  overflow: hidden;
  background: #000;
}

.hero-slide,
.hero-side-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease;
}

.hero-slide.is-active,
.hero-side-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-main[data-effect="fade"] .hero-slide.is-active,
.hero-side[data-effect="fade"] .hero-side-slide.is-active {
  animation: heroFadeReveal 0.42s ease both;
}

.hero-main[data-effect="slide"] .hero-slide.is-active,
.hero-side[data-effect="slide"] .hero-side-slide.is-active {
  animation: heroSlideReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-main[data-effect="zoom"] .hero-slide.is-active,
.hero-side[data-effect="zoom"] .hero-side-slide.is-active {
  animation: heroFadeReveal 0.34s ease both;
}

.hero-main[data-effect="blur"] .hero-slide.is-active,
.hero-side[data-effect="blur"] .hero-side-slide.is-active {
  animation: heroBlurReveal 0.56s ease both;
}

.hero-main[data-effect="rise"] .hero-slide.is-active,
.hero-side[data-effect="rise"] .hero-side-slide.is-active {
  animation: heroRiseReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-main[data-effect="cinematic"] .hero-slide.is-active,
.hero-side[data-effect="cinematic"] .hero-side-slide.is-active {
  animation: heroFadeReveal 0.4s ease both;
}

.hero-main[data-effect="drift"] .hero-slide.is-active,
.hero-side[data-effect="drift"] .hero-side-slide.is-active {
  animation: heroDriftReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-main[data-effect="zoom"] .hero-slide__media img,
.hero-side[data-effect="zoom"] .hero-side-slide__media img,
.hero-main[data-effect="cinematic"] .hero-slide__media img,
.hero-side[data-effect="cinematic"] .hero-side-slide__media img,
.hero-main[data-effect="drift"] .hero-slide__media img,
.hero-side[data-effect="drift"] .hero-side-slide__media img {
  will-change: transform;
}

.hero-main[data-effect="zoom"] .hero-slide.is-active .hero-slide__media img,
.hero-side[data-effect="zoom"] .hero-side-slide.is-active .hero-side-slide__media img {
  animation: heroZoomReveal 0.95s ease both;
}

.hero-main[data-effect="cinematic"] .hero-slide.is-active .hero-slide__media img,
.hero-side[data-effect="cinematic"] .hero-side-slide.is-active .hero-side-slide__media img {
  animation: heroCinematicReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-main[data-effect="drift"] .hero-slide.is-active .hero-slide__media img,
.hero-side[data-effect="drift"] .hero-side-slide.is-active .hero-side-slide__media img {
  animation: heroDriftImageReveal 1.1s ease both;
}

@keyframes heroFadeReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroSlideReveal {
  from {
    opacity: 0;
    transform: translateX(3.5%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes heroZoomReveal {
  from {
    transform: scale(1.07);
  }

  to {
    transform: scale(1);
  }
}

@keyframes heroBlurReveal {
  from {
    opacity: 0;
    filter: blur(14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes heroRiseReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCinematicReveal {
  from {
    transform: scale(1.12) translateX(-2.8%);
  }

  to {
    transform: scale(1) translateX(0);
  }
}

@keyframes heroDriftReveal {
  from {
    opacity: 0;
    transform: translateX(-2.8%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes heroDriftImageReveal {
  from {
    transform: scale(1.04) translateX(2.6%);
  }

  to {
    transform: scale(1) translateX(0);
  }
}

.hero-slide a,
.hero-side-slide a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide__media,
.hero-side-slide__media {
  position: absolute;
  inset: 0;
}

.hero-slide__media::after,
.hero-side-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.75));
}

.hero-slide--headline-art .hero-slide__media::after {
  opacity: 0;
}

.hero-slide__media img,
.hero-side-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__body,
.hero-side-slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  z-index: 2;
  padding: 1rem 1rem 1.15rem;
  color: #fff;
}

.hero-slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.42);
}

.hero-side-slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.45);
}

.hero-side-slide__body {
  bottom: 1rem;
  padding: 1rem 1rem 0.75rem;
}

.hero-side-slide__title {
  display: inline;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.88));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-pager {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 3;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-pager::-webkit-scrollbar {
  display: none;
}

.hero-pager button,
.hero-pager a {
  flex: 0 0 3.25rem;
  min-width: 3.25rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hero-pager button:hover,
.hero-pager button:focus-visible,
.hero-pager a:hover,
.hero-pager a:focus-visible {
  background: var(--color-surface-soft);
  color: var(--color-primary);
}

.hero-pager button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.hero-pager button:last-child,
.hero-pager a:last-child {
  border-right: 0;
}

.hero-pager__extra {
  background: var(--color-surface-soft) !important;
  color: var(--color-text) !important;
  font-weight: 900;
}

.hero-main .hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  width: 2.85rem;
  height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-main:hover .hero-arrow,
.hero-main:focus-within .hero-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hero-main .hero-arrow:hover,
.hero-main .hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%) scale(1.03);
}

.hero-arrow--prev {
  left: 0.875rem;
}

.hero-arrow--next {
  right: 0.875rem;
}

.hero-side-controls {
  position: relative;
  z-index: 4;
  justify-content: space-between;
  min-height: 2.5rem;
  padding: 0.25rem 0.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(6px);
}

.hero-side-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--color-text);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.hero-side-controls button:hover,
.hero-side-controls button:focus-visible {
  background: var(--color-surface-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px) scale(1.02);
}

.hero-arrow .icon,
.hero-side-controls .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  color: currentColor;
}

.hero-side-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-side-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d1d5db;
}

.hero-side-dots span.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem 0.6rem;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.2rem;
  border-radius: 0.75rem;
  color: #9ca3af;
}

.bottom-nav-link.is-active {
  background: #fef2f2;
  color: var(--color-primary);
}

.bottom-nav-link span {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottom-live {
  position: relative;
  top: -1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 18px 26px rgba(220, 38, 38, 0.22);
}

.bottom-live::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5);
  animation: ping 1.6s infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(251, 113, 133, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
  }
}

@media (min-width: 768px) {
  .header-main {
    padding: 1rem 0 1.25rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 8fr) minmax(17rem, 4fr);
  }

  .home-utility-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .hero-side {
    min-height: 0;
  }

  .hero-slide__body {
    bottom: 1.35rem;
    padding: 1.6rem 1.75rem 1.4rem;
  }

  .hero-side-slide__body {
    bottom: 1rem;
    padding: 1.1rem 1.15rem 0.85rem;
  }

  .hero-slide__title {
    font-size: 2rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(18rem, 4fr);
    gap: 3rem;
    align-items: start;
  }

  .article-title {
    margin: 1rem 0 1.25rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.02;
  }

  .article-meta-bar {
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .article-meta {
    gap: 1rem;
    font-size: 0.6875rem;
  }

  .share-buttons {
    width: auto;
  }

  .article-cover {
    margin-bottom: 2rem;
  }

  .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
  }

  .article-lead {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.72;
  }

  .article-quote {
    margin: 2.5rem 0;
    padding: 2rem;
    font-size: 1.25rem;
    line-height: 1.72;
  }
}

@media (max-width: 767px) {
  .hero-layout {
    --hero-stage-height: clamp(11.75rem, 56vw, 16rem);
    gap: 0.75rem;
  }

  .hero-main__viewport,
  .hero-slides {
    height: auto;
    min-height: 0;
    aspect-ratio: 39 / 20;
  }

  .hero-slide--headline-art .hero-slide__media {
    background: #2f1111;
  }

  .hero-slide--headline-art .hero-slide__media img {
    object-fit: contain;
    object-position: center center;
  }

  .hero-main .hero-arrow {
    opacity: 0.92;
    pointer-events: auto;
    width: 2.45rem;
    height: 2.45rem;
    transform: translateY(-50%) scale(1);
  }

  .hero-arrow--prev {
    left: 0.65rem;
  }

  .hero-arrow--next {
    right: 0.65rem;
  }

  .hero-pager button,
  .hero-pager a {
    flex-basis: 2.9rem;
    min-width: 2.9rem;
    height: 2.45rem;
    font-size: 0.72rem;
  }

  .hero-slide__body {
    bottom: 0.75rem;
    padding: 0.9rem 0.9rem 1rem;
  }

  .hero-slide__title {
    font-size: 1.05rem;
    line-height: 1.16;
  }
}

@media (hover: none) {
  .hero-main .hero-arrow {
    opacity: 0.92;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

@media (min-width: 1024px) {
  .site-shell {
    padding-bottom: 0;
  }

  .site-nav {
    display: block;
  }

  .home-utility-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .desktop-ad,
  .header-actions,
  .nav-list,
  .nav-search {
    display: flex;
  }

  .nav-drawer-toggle,
  .header-button--menu {
    display: inline-flex;
  }

  .header-main {
    display: flex;
    align-items: center;
    padding: 1rem 0 1.05rem;
  }

  .logo {
    align-items: flex-start;
  }

  .logo__tag {
    display: block;
  }

  .header-group:last-child {
    margin-left: auto;
    gap: 1rem;
  }

  /* Force hide mobile elements on desktop */
  .mobile-header-left,
  .mobile-header-right,
  .mobile-bottom-nav,
  .mobile-bar,
  .h2-mobile-bar {
    display: none !important;
  }
}

/* 10. MOBILE SPECIFIC (FORCE HIDE TOPBAR ON MOBILE) */
@media (max-width: 1024px) {

  .topbar,
  .h2-topbar,
  .h2-main,
  .h2-nav {
    display: none !important;
  }

  /* Show mobile elements on mobile */
  .mobile-header-left,
  .mobile-header-right {
    display: flex !important;
  }

  .h2-mobile-logo img {
    max-height: 60px !important;
    width: auto !important;
    display: block;
  }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: var(--drawer-backdrop-bg, rgba(15, 23, 42, 0.5)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-menu-open .drawer-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme-mode="dark"] .drawer-backdrop {
  background-color: var(--drawer-backdrop-bg, rgba(0, 0, 0, 0.7)) !important;
}

.mobile-drawer {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 0;
  background: color-mix(in srgb, var(--drawer-bg, var(--color-surface)) 96%, transparent);
  color: var(--drawer-text, var(--color-text));
  border: 1px solid color-mix(in srgb, var(--drawer-border, var(--color-border)) 82%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 110px color-mix(in srgb, var(--drawer-text, #0f172a) 26%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  z-index: 1100;
  transform: translateY(-48%) scale(1);
}

.mobile-drawer.is-open {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  display: block !important;
  background: var(--drawer-backdrop-bg, rgba(15, 23, 42, 0.34));
  backdrop-filter: blur(1.5px);
}

.drawer-head {
  width: min(1200px, 100vw);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--drawer-border, var(--color-border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--drawer-surface-soft, var(--color-surface-soft)) 92%, transparent),
    color-mix(in srgb, var(--drawer-bg-alt, var(--color-bg-alt)) 88%, transparent)
  );
}

.drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--drawer-text, var(--color-text));
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-title::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.drawer-head .icon-button {
  display: none;
}

.drawer-content {
  width: min(1200px, 100vw);
  margin: 0 auto;
  height: auto;
  max-height: calc(85vh - 5rem);
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.drawer-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.drawer-quick-card {
  min-height: 4.85rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid color-mix(in srgb, var(--drawer-border, var(--color-border)) 72%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--drawer-surface-soft, var(--color-surface-soft)) 96%, transparent) 0%,
    color-mix(in srgb, var(--drawer-bg-alt, var(--color-bg-alt)) 92%, transparent) 100%
  );
  box-shadow: 0 12px 24px color-mix(in srgb, var(--drawer-text, #0f172a) 8%, transparent);
}

.drawer-quick-card__top {
  gap: 0.45rem;
}

.drawer-quick-card__icon {
  width: 1.8rem;
  height: 1.8rem;
}

.drawer-quick-card__icon .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.drawer-quick-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.drawer-quick-card__value {
  font-size: 1.22rem;
}

.drawer-quick-card__meta {
  font-size: 0.68rem;
}

.drawer-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "quick categories services feeds"
    "social social social social";
  gap: 0.8rem 0.9rem;
  align-items: start;
}

.drawer-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid color-mix(in srgb, var(--drawer-border, var(--color-border)) 68%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--drawer-surface-soft, var(--color-surface-soft)) 94%, transparent) 0%,
    color-mix(in srgb, var(--drawer-bg, var(--color-surface)) 94%, transparent) 100%
  );
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--drawer-text, var(--color-text)) 8%, transparent);
}

.drawer-section--categories {
  grid-area: categories;
}

.drawer-section--quick {
  grid-area: quick;
}

.drawer-section--services {
  grid-area: services;
}

.drawer-section--feeds {
  grid-area: feeds;
}

.drawer-section--social {
  grid-area: social;
}

.drawer-section__title {
  margin-bottom: 0.65rem;
  color: var(--drawer-text-muted, var(--color-text-muted));
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.drawer-link-list,
.drawer-link-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 0;
}

.drawer-link-list li,
.drawer-link-grid li {
  min-width: 0;
}

.drawer-link-list {
  grid-template-columns: 1fr;
}

.drawer-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 0.95rem;
}

.drawer-link-list a,
.drawer-link-grid a {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.48rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--drawer-border, var(--color-border));
  background: transparent;
  color: var(--drawer-text, var(--color-text));
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.drawer-link-grid a {
  padding: 0.42rem 0;
}

.drawer-link-list a:hover,
.drawer-link-list a:focus-visible,
.drawer-link-grid a:hover,
.drawer-link-grid a:focus-visible {
  background: transparent;
  color: var(--color-primary);
  transform: translateX(4px);
}

.drawer-link-empty {
  padding: 0.35rem 0;
}

.drawer-live,
.drawer-social {
  display: none !important;
}

[data-theme-mode="dark"] .drawer-head {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--drawer-bg, var(--color-surface)) 97%, transparent),
    color-mix(in srgb, var(--drawer-bg-alt, var(--color-bg-alt)) 92%, transparent)
  );
  border-bottom-color: var(--drawer-border, var(--color-border));
}

[data-theme-mode="dark"] .drawer-title {
  color: var(--drawer-text, var(--color-text));
}

[data-theme-mode="dark"] .drawer-link-list a,
[data-theme-mode="dark"] .drawer-link-grid a {
  border-bottom-color: var(--drawer-border, var(--color-border));
}

[data-theme-mode="dark"] .mobile-drawer {
  background: color-mix(in srgb, var(--drawer-bg, var(--color-surface)) 94%, transparent);
  border-color: color-mix(in srgb, var(--drawer-border, var(--color-border)) 88%, transparent);
}

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

  .drawer-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "quick categories"
      "services feeds"
      "social social";
  }
}

@media (max-width: 767px) {
  .drawer-content {
    padding: 1rem 1rem 1.4rem;
  }

  .drawer-quick-grid {
    grid-template-columns: 1fr;
  }

  .drawer-section-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quick"
      "categories"
      "services"
      "feeds"
      "social";
    gap: 0.75rem;
  }

  .drawer-section {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
  }

  .drawer-link-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .drawer-link-list a,
  .drawer-link-grid a {
    min-height: 2.25rem;
    padding: 0.55rem 0;
  }
}


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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Premium Page Modernization --- */
.kunye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.masthead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.masthead-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #fee2e2;
}

.masthead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  opacity: 0.15;
}

.masthead-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.masthead-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--color-surface-soft);
  color: var(--color-primary);
}

.masthead-card__icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.masthead-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.masthead-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.masthead-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.masthead-item__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.masthead-item__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

/* Contact Premium */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  border-color: var(--color-accent);
  background: #f8fafc;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--color-surface-soft);
  color: var(--color-accent);
}

.contact-info-content h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
}

.contact-info-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}

.contact-form-premium {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.contact-form-premium .form-group {
  margin-bottom: 1.5rem;
}

.contact-form-premium label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.contact-form-premium .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.contact-form-premium .form-control:focus {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: none;
}

.contact-map-wrapper {
  margin-top: 3rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 25rem;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.1);
}

.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 0;
}

.success-icon-wrapper {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-wrapper .icon {
  width: 2.5rem;
  height: 2.5rem;
}

/* Page Layouts */
.page-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

.page-grid--full {
  grid-template-columns: 1fr !important;
}

.page-grid--full .sidebar {
  display: none !important;
}

.page-grid--full .page-body {
  grid-column: 1 / -1;
}

/* Service Page Enhancements */
.service-hero {
  position: relative;
  display: block !important;
  padding: 3.5rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #af4b15, #853a10);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(133, 58, 16, 0.15);
  margin-bottom: 2rem;
}

.service-hero--traffic {
  background: linear-gradient(135deg, #c2410c, #7c2d12);
}

.service-hero__main {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}



.service-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.service-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.service-title-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}

.service-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Aesthetic Select */
.service-select-wrapper {
  position: relative;
  min-width: 16rem;
}

.service-select {
  appearance: none;
  width: 100%;
  padding: 0.85rem 3.5rem 0.85rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.service-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.service-select option {
  background: #7c2d12;
  color: #fff;
}

.service-select-wrapper::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.service-select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

.service-summary {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  font-weight: 500;
  text-align: left;
}


.service-summary strong {
  color: #fff;
  font-weight: 800;
}

/* Service Map Section */
.traffic-map-shell {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.traffic-map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 450px;
}

.traffic-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Namaz Vakitleri Enhancements */
.prayer-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.prayer-selection__item {
  flex: 1 1 240px;
  min-width: 0;
}

.prayer-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.prayer-select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 0.85rem;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.prayer-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  outline: none;
}

.prayer-daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.prayer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.85rem 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prayer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.prayer-card.is-active {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(4, 120, 87, 0.25);
  transform: scale(1.05);
  z-index: 2;
}

.prayer-card__label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.prayer-card.is-active .prayer-card__label {
  color: rgba(255, 255, 255, 0.85);
}

.prayer-card__time {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}

.prayer-card.is-active .prayer-card__time {
  color: #fff;
}

.prayer-table-shell {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.prayer-table td,
.prayer-table th {
  text-align: center !important;
  vertical-align: middle;
}

.prayer-table td.col-date {
  text-align: left !important;
  border-right: 1px solid #f1f5f9;
}

.prayer-table tr.is-today {
  background: rgba(16, 185, 129, 0.06);
}

.prayer-table tr.is-today td {
  font-weight: 800;
  color: #059669 !important;
}

/* Pharmacy Grid Enhancements */
.pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.pharmacy-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pharmacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.pharmacy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.pharmacy-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

.pharmacy-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.pharmacy-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pharmacy-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pharmacy-info__item .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.8;
}

.pharmacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.pharmacy-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pharmacy-action-btn--call {
  background: #f8fafc;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.pharmacy-action-btn--call:hover {
  background: #f1f5f9;
}

.pharmacy-action-btn--map {
  background: rgba(220, 38, 38, 0.05);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.pharmacy-action-btn--map:hover {
  background: rgba(220, 38, 38, 0.1);
}

[data-theme-mode="dark"] .prayer-selection {
  background: rgba(17, 24, 39, 0.5);
  border-color: #374151;
}

[data-theme-mode="dark"] .prayer-card {
  background: linear-gradient(145deg, #111827, #1f2937);
  border-color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme-mode="dark"] .prayer-card__label {
  color: #94a3b8;
}

[data-theme-mode="dark"] .prayer-card__time {
  color: #f8fafc;
}

[data-theme-mode="dark"] .prayer-table-shell {
  background: #111827;
  border-color: #1f2937;
}

[data-theme-mode="dark"] .prayer-table tr.is-today {
  background: rgba(16, 185, 129, 0.15);
}

[data-theme-mode="dark"] .prayer-table td.col-date {
  border-color: #243041;
}

[data-theme-mode="dark"] .pharmacy-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme-mode="dark"] .pharmacy-status {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

[data-theme-mode="dark"] .pharmacy-action-btn--call {
  background: #1f2937;
  border-color: #374151;
}

[data-theme-mode="dark"] .pharmacy-action-btn--call:hover {
  background: #374151;
}

[data-theme-mode="dark"] .pharmacy-action-btn--map {
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.2);
}

[data-theme-mode="dark"] .pharmacy-action-btn--map:hover {
  background: rgba(220, 38, 38, 0.15);
}

/* ── Burçlar / Horoscope ─────────────────────────────── */
.service-hero--horoscope {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  position: relative;
  overflow: hidden;
}

.service-hero--horoscope::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
}

.service-hero--horoscope .service-kicker,
.service-hero--horoscope .service-title,
.service-hero--horoscope .service-summary {
  color: #fff;
}

.service-hero--horoscope .service-title-icon {
  font-size: 2.5rem;
  background: none;
  color: #a78bfa;
  border: none;
  box-shadow: none;
}

/* Tab filter */
.zodiac-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0 2rem;
}

.zodiac-tab {
  padding: 0.7rem 1.75rem;
  border-radius: 2rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zodiac-tab:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.zodiac-tab.is-active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

/* Panels */
.zodiac-panel {
  display: none;
}

.zodiac-panel.is-active {
  display: block;
}

/* Grid */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Card */
.zodiac-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.zodiac-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.zodiac-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.12);
}

.zodiac-card__icon {
  font-size: 2.75rem;
  line-height: 1;
}

.zodiac-card__body {
  flex: 1;
}

.zodiac-card__name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.zodiac-card__element {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  margin-bottom: 0.85rem;
}

.zodiac-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.zodiac-card__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.65;
  text-align: right;
  margin-top: 0.5rem;
}

/* Dark mode */
[data-theme-mode="dark"] .zodiac-tab {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

[data-theme-mode="dark"] .zodiac-tab.is-active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: transparent;
  color: #fff;
}

[data-theme-mode="dark"] .zodiac-card {
  background: linear-gradient(145deg, #111827, #1a1f35);
  border-color: #1f2937;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

[data-theme-mode="dark"] .zodiac-card__element {
  background: rgba(139, 92, 246, 0.15);
}

/* ── Error Pages (404 / 403 / 500) ──────────────────── */
.error-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 4rem 2rem;
  overflow: hidden;
  border-radius: 2rem;
  margin: 2rem 0 4rem;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 2rem;
  overflow: hidden;
}

/* Animated floating orbs */
.error-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: error-float 8s ease-in-out infinite;
}

.error-orb--1 {
  width: 350px;
  height: 350px;
  top: -80px;
  left: -50px;
}

.error-orb--2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -40px;
  animation-delay: -3s;
  animation-duration: 10s;
}

.error-orb--3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 55%;
  animation-delay: -5s;
  animation-duration: 12s;
}

/* 404 Theme — Indigo/Violet */
.error-page--404 {
  background: linear-gradient(145deg, #0f172a, #1e1b4b);
}

.error-page--404 .error-orb--1 {
  background: rgba(99, 102, 241, 0.5);
}

.error-page--404 .error-orb--2 {
  background: rgba(139, 92, 246, 0.4);
}

.error-page--404 .error-orb--3 {
  background: rgba(79, 70, 229, 0.3);
}

/* 403 Theme — Amber/Orange */
.error-page--403 {
  background: linear-gradient(145deg, #1a0f00, #451a03);
}

.error-page--403 .error-orb--1 {
  background: rgba(245, 158, 11, 0.45);
}

.error-page--403 .error-orb--2 {
  background: rgba(234, 88, 12, 0.35);
}

.error-page--403 .error-orb--3 {
  background: rgba(251, 191, 36, 0.25);
}

/* 500 Theme — Red/Rose */
.error-page--500 {
  background: linear-gradient(145deg, #1c0808, #450a0a);
}

.error-page--500 .error-orb--1 {
  background: rgba(239, 68, 68, 0.45);
}

.error-page--500 .error-orb--2 {
  background: rgba(220, 38, 38, 0.35);
}

.error-page--500 .error-orb--3 {
  background: rgba(244, 63, 94, 0.3);
}

@keyframes error-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -25px) scale(1.08);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Content */
.error-page__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
}

.error-page__code {
  display: block;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
  pointer-events: none;
  margin-bottom: -2rem;
}

.error-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}

.error-page__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.error-page__title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-page__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
}

/* Buttons */
.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-btn--primary {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.error-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.error-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.error-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 640px) {
  .error-page {
    min-height: 55vh;
    padding: 3rem 1.5rem;
    border-radius: 1.25rem;
  }

  .error-page__code {
    font-size: 5.5rem;
    margin-bottom: -1.5rem;
  }

  .error-page__title {
    font-size: 1.6rem;
  }

  .error-page__desc {
    font-size: 0.95rem;
  }

  .error-page__icon {
    width: 4rem;
    height: 4rem;
  }

  .error-page__icon svg {
    width: 2rem;
    height: 2rem;
  }

  .error-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
  }

  .service-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .service-title-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
  }

  .service-title {
    font-size: 1.75rem;
  }

  .service-select-wrapper {
    min-width: 0;
    width: 100%;
  }

  .service-summary {
    font-size: 1.05rem;
    text-align: left;
  }

  .traffic-map-frame {
    min-height: 350px;
  }
}

/* ── Gallery Detail Page (details-gallery.twig) ─────── */

/* Info header bar */
.gallery-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.gallery-info-header .info-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.gallery-info-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
}

.info-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Gallery image list (scroll container) */
.gallery-image-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Each figure item */
.gallery-image-item {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
}

.gallery-image-item.loaded {
  opacity: 1;
  transform: translateY(0);
}

.gallery-image-item:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.14);
}

/* Counter badge */
.gallery-image-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  backdrop-filter: blur(6px);
  letter-spacing: 0.04em;
}

/* Image wrapper */
.gallery-image-wrapper {
  width: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* Actual image */
.gallery-image-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  max-height: 80vh;
}

.gallery-image-img.loaded {
  opacity: 1;
}

/* Caption */
.gallery-image-caption {
  position: relative;
  display: block;
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #fff !important;
  background: rgba(15, 15, 20, 0.88) !important;
  border-top: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-image-caption strong,
.gallery-image-caption b {
  color: #fff !important;
  font-weight: 800;
}

/* Loader */
.gallery-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes gallery-spin {
  to {
    transform: rotate(360deg);
  }
}

.gallery-loader-text {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Dark mode */
[data-theme-mode="dark"] .gallery-info-header {
  background: #111827;
  border-color: #1f2937;
}

[data-theme-mode="dark"] .gallery-image-item {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

[data-theme-mode="dark"] .gallery-image-caption {
  background: #111827;
  border-color: #1f2937;
  color: #9ca3af;
}

[data-theme-mode="dark"] .gallery-nav-btn {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-image-item {
    border-radius: 0.85rem;
  }

  .gallery-image-wrapper {
    min-height: 200px;
  }

  .gallery-image-img {
    max-height: 60vh;
  }

  .gallery-image-counter {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }
}


/* --- REDBLACK MERGED CONTENT --- */

/* Redblack critical.css
   Core reset, font defaults and layout-reservation rules moved out of layout.twig
   so the theme matches the two-layer asset structure used by Nexora. */

:root {
  --primary-color: var(--color-primary, #e30613);
  --secondary-color: var(--color-secondary, #222);
  --text-color: var(--color-text, #333);
  --bg-color: var(--color-bg, #f5f5f5);
  --card-bg: var(--color-surface, #fff);
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --bg-light: #f9f9f9;
  --bg-white: #fff;
  --text-dark: #333;
  --text-gray: #666;
  --border-light: #ddd;
  --text-white: #fff;
  --primary-dark: var(--color-primary-dark, #c00);
  --ff: var(--font-main, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--ff);
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  max-width: none;
}

@supports (padding-left: max(0px)) {
  .container {
    padding-left: max(var(--container-gutter), env(safe-area-inset-left));
    padding-right: max(var(--container-gutter), env(safe-area-inset-right));
  }
}

#header,
.header4-main-header {
  min-height: 60px;
  display: block;
  width: 100%;
}

.header-main {
  min-height: 60px;
}

@media (min-width: 992px) {

  #header,
  .header4-main-header,
  .header-main {
    min-height: 70px;
  }
}

#header4 {
  transition: none !important;
  box-shadow: none;
}

@media (max-width: 991px) {
  .container {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(var(--container-gutter), env(safe-area-inset-left));
    padding-right: max(var(--container-gutter), env(safe-area-inset-right));
  }
}

i.fa-solid,
i.fas,
.fa-solid,
.fas {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.logo .logo-box {
  display: inline-block;
  inline-size: clamp(140px, 18vw, 220px);
  aspect-ratio: var(--logo-ar, 200/60);
  position: relative;
}

.logo .logo-box .logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo .logo-box .logo-dark {
  opacity: 0;
  pointer-events: none;
}

html.dark .logo .logo-box .logo-light {
  opacity: 0;
  pointer-events: none;
}

html.dark .logo .logo-box .logo-dark {
  opacity: 1;
  pointer-events: auto;
}

img {
  height: auto;
}

.lcp-img {
  aspect-ratio: 780/439;
  display: block;
  width: 100%;
  object-fit: cover;
}

/* --- Detail Page Components (ATF) --- */

.author-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-mini__avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-soft, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-mini__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-mini__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
}

.author-mini__role {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.article-toolbar {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border, #eee);
  border-bottom: 1px solid var(--color-border, #eee);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-toolbar__share {
  display: flex;
  gap: 0.75rem;
}

.article-toolbar__tools {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.share-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: opacity 0.2s;
}

.share-button:hover {
  opacity: 0.85;
}

.share-button--facebook {
  background: #1877f2;
}

.share-button--twitter {
  background: #000;
}

.share-button--whatsapp {
  background: #25d366;
}

.share-button .icon {
  width: 18px;
  height: 18px;
}

.preview-notice {
  position: sticky;
  top: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(90deg, #111827 0%, #1f2937 55%, #334155 100%);
  color: #fff;
  text-align: left;
  shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.preview-notice__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-notice__content {
  max-width: 70rem;
}

.preview-notice__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.preview-notice__text {
  margin: 0.18rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .preview-notice {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.85rem 0.9rem;
  }

  .preview-notice__badge {
    min-width: auto;
  }

  .preview-notice__title {
    font-size: 0.84rem;
  }

  .preview-notice__text {
    font-size: 0.74rem;
  }
}

/* Ad Slot CLS Protection */
.ad-slot {
  display: block;
  width: min(100%, var(--ad-slot-reserve-w, 100%));
  max-width: 100%;
  height: auto;
  min-height: var(--ad-slot-reserve-h, 0px);
  aspect-ratio: var(--ad-slot-reserve-ratio, auto);
  background: transparent;
  transition: min-height 0.2s ease;
  overflow: hidden;
}

.ad-slot__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: transparent;
}

.ad-slot--empty .ad-slot__placeholder {
  border: 1px dashed #eee;
  color: #ccc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   HEADER2 FINAL
======================================== */

.site-header--v2 {
  --h2-topbar-bg: var(--h-topbar-bg, var(--theme-topbar-bg, var(--color-primary)));
  --h2-topbar-text: var(--h-topbar-text, var(--theme-topbar-text, #ffffff));
  --h2-header-bg: var(--h-header-bg, var(--theme-header-bg, var(--color-surface, #ffffff)));
  --h2-header-text: var(--h-header-text, var(--theme-header-text, var(--color-text, #111827)));
  --h2-header-muted: color-mix(in srgb, var(--h2-header-text) 62%, var(--h2-header-bg));
  --h2-header-border: color-mix(in srgb, var(--h2-header-text) 14%, var(--h2-header-bg));
  --h2-header-soft: color-mix(in srgb, var(--h2-header-bg) 96%, var(--h2-header-text) 4%);
  --h2-nav-bg: var(--h-nav-bg, var(--theme-nav-bg, var(--color-surface, #ffffff)));
  --h2-nav-text: var(--h-nav-text, var(--theme-nav-text, var(--color-text, #111827)));
  --h2-nav-border: color-mix(in srgb, var(--h2-nav-text) 14%, var(--h2-nav-bg));
  position: relative;
  z-index: 70;
  background: var(--h2-header-bg);
  color: var(--h2-header-text);
}

.site-header .mobile-drawer {
  --color-bg: var(--drawer-bg);
  --color-surface: var(--drawer-bg);
  --color-bg-alt: var(--drawer-bg-alt);
  --color-surface-muted: var(--drawer-surface-muted);
  --color-surface-soft: var(--drawer-surface-soft);
  --color-text: var(--drawer-text);
  --color-text-muted: var(--drawer-text-muted);
  --color-border: var(--drawer-border);
  --btn-action-bg: var(--drawer-surface-soft);
  --btn-action-text: var(--drawer-text);
  --btn-action-contrast: var(--drawer-bg);
}

/* TOPBAR */
.h2-topbar {
  display: block;
}

.h2-topbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 38px;
}

/* TICKER */
.h2-ticker {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.h2-ticker__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.h2-ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding-left: 12px;
  white-space: nowrap;
}

.h2-ticker__track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: inherit;
  animation: h2-ticker-scroll var(--h2-ticker-duration, 30s) linear infinite;
}

.h2-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes h2-ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.h2-ticker__loading {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* TOPBAR RIGHT */
.h2-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.h2-market-strip {
  display: flex;
  height: 38px;
  overflow: hidden;
  position: relative;
  max-width: 250px;
  margin-right: 10px;
  background-color: color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 4px;
  padding: 0 10px;
}

.h2-market-track {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.market-card {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 150px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 700;
  color: inherit;
}

.market-card__label {
  font-weight: 800;
  opacity: 1;
  font-size: 11px;
  color: inherit !important;
}

.market-card__value {
  font-weight: 800;
  color: inherit !important;
}

.h2-market-strip::-webkit-scrollbar {
  display: none;
}

.h2-weather {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  padding-left: 12px;
  color: inherit;
}

.h2-weather .topbar-weather__icon,
.h2-weather .topbar-weather__temp,
.h2-weather .topbar-city-select,
.h2-weather .topbar-weather__field {
  color: inherit;
}

.h2-weather .topbar-weather__temp {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
}

/* MAIN */
.h2-main {
  background: var(--h2-header-bg);
  color: var(--h2-header-text);
  border-bottom: 1px solid var(--h2-header-border);
}

.h2-main__inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;

  padding: 12px 0 !important;
  gap: 20px;
}

/* LOGO */
.h2-logo {
  display: flex;
  align-items: center;
}

.h2-logo a {
  display: inline-flex;
  align-items: center;
}

.h2-logo img {
  display: block;
  height: 64px !important;
  width: auto;
  max-width: 100%;
}

/* SEARCH */
.h2-search {
  display: flex;
  justify-content: center;
}

.h2-search__form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 370px;
  height: 50px;
  border: 1px solid var(--h2-header-border);
  border-radius: 999px;
  background: var(--h2-header-soft);
  color: var(--h2-header-text);
  overflow: hidden;
}

.h2-search__form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 20px;
  color: var(--h2-header-text);
  font-size: 15px;
  outline: none;
}

.h2-search__form input::placeholder {
  color: var(--h2-header-muted);
}

.h2-search__form button {
  width: 54px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--h2-header-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ACTIONS */
.h2-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.h2-btn--subscribe {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--color-primary, #dc2626);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.h2-action-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h2-icon-link {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border, #dbe2ea);
  border-radius: 999px;
  background: var(--btn-action-bg, var(--color-surface, #fff));
  color: var(--btn-action-text, var(--color-text-muted, #64748b));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.h2-icon-link .icon {
  width: 1rem;
  height: 1rem;
}

.h2-icon-link .h2-icon-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-primary, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* NAV */
.h2-nav {
  background: var(--h2-nav-bg);
  color: var(--h2-nav-text);
  border-bottom: 1px solid var(--h2-nav-border);
}

.h2-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.h2-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  gap: 0px !important;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 54px !important;
  flex-wrap: nowrap;
}

.h2-nav__list>li {
  display: flex;
  align-items: center;
  flex: 0 0 auto !important;
  min-width: 0;
}

.h2-nav__list>li:not(.h2-nav__toggle) {
  justify-content: flex-start;
}

.h2-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: auto;
  padding: 0 4px !important;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
}

.h2-nav__toggle {
  position: absolute !important;
  right: 0;
  flex: 0 0 auto !important;
  padding-left: 8px;
}

.h2-nav__menu-btn {
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

/* Biraz dar ekranlarda sıkıştır */
@media (max-width: 1280px) {
  .h2-nav__list {
    gap: 4px;
  }

  .h2-nav__list a {
    padding: 0 8px;
    font-size: 12px;
  }

  .h2-nav__menu-btn {
    padding: 0 14px !important;
    font-size: 12px !important;
  }
}

.h2-nav__menu-btn::after {
  display: none !important;
}



.h2-nav__menu-btn:hover,
.h2-nav__menu-btn:focus-visible {
  opacity: 0.92;
  color: #fff !important;
}

/* HEADER AD */
.h2-header-ad {
  padding-top: 10px !important;
  padding-bottom: 8px !important;
}

.h2-header-ad .ad-slot,
.h2-header-ad .ad-banner,
.h2-header-ad .ad-box,
.h2-header-ad .header-ad-space {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.h2-header-ad .ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* MOBILE BAR */
.h2-mobile-bar {
  display: none;
  background: var(--h-header-bg, var(--theme-header-bg, var(--color-surface, #fff)));
  color: var(--h-header-text, var(--theme-header-text, var(--color-text)));
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.h2-mobile-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
}

.h2-mobile-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.h2-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 1340px) {
  .h2-nav__list {
    gap: 6px;
  }

  .h2-nav__list a {
    padding: 0 7px;
    font-size: 12px;
  }

  .h2-nav__menu-btn {
    padding: 0 16px;
    font-size: 12px;
  }

  .h2-market-strip {
    max-width: 620px;
  }
}

@media (max-width: 1200px) {
  .h2-main__inner {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .h2-logo img {
    height: 66px;
  }

  .h2-search__form {
    max-width: 330px;
  }

  .h2-market-strip {
    max-width: 500px;
  }

  .h2-nav__list {
    gap: 4px;
  }

  .h2-nav__list a {
    padding: 0 6px;
    font-size: 11px;
  }

  .h2-nav__menu-btn {
    padding: 0 14px;
    font-size: 11px;
  }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .h2-main__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 0.85rem 1rem;
    align-items: center;
  }

  .h2-logo {
    grid-area: logo;
  }

  .h2-search {
    grid-area: search;
    justify-content: flex-start;
    min-width: 0;
  }

  .h2-search__form {
    max-width: none;
  }

  .h2-actions {
    grid-area: actions;
    justify-content: flex-end;
  }
}

/* Mobilde reklam gizlenmesin */
@media (max-width: 1024px) {

  .h2-topbar,
  .h2-main,
  .h2-nav {
    display: none;
  }

  .h2-mobile-bar {
    display: block;
  }

  .h2-header-ad {
    display: block !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .h2-header-ad .ad-slot--desktop {
    display: none !important;
  }

  .h2-header-ad .ad-slot--mobile {
    display: block !important;
    margin: 0 auto !important;
  }

  .h2-header-ad .ad-slot {
    width: min(100%, var(--ad-slot-reserve-w-mob, var(--ad-w-mob, var(--ad-slot-reserve-w-web, var(--ad-w-web, 100%)))));
    min-height: var(--ad-slot-reserve-h-mob, var(--ad-h-mob, var(--ad-slot-reserve-h-web, var(--ad-h-web, 0px))));
    aspect-ratio: var(--ad-slot-reserve-ratio-mob, var(--ad-ratio-mob, var(--ad-slot-reserve-ratio-web, var(--ad-ratio-web, auto))));
  }
}

/* --- Redzora Unified Action Pattern (Extracted from layout) --- */
.h2-icon-link,
.mobile-action,
[data-theme-toggle],
.header-action-btn,
.icon-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: var(--btn-action-size, 40px) !important;
  height: var(--btn-action-size, 40px) !important;
  min-width: var(--btn-action-size, 40px) !important;
  padding: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--btn-action-radius, 999px) !important;
  background: var(--btn-action-bg, var(--color-surface-soft)) !important;
  color: var(--btn-action-text, var(--color-text)) !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.h2-icon-link:hover,
[data-theme-toggle]:hover {
  background: var(--color-primary) !important;
  color: var(--btn-action-contrast, #fff) !important;
  transform: translateY(-2px);
}

.topbar [data-theme-toggle],
.topbar .icon-button,
.topbar .mobile-action {
  background: color-mix(in srgb, var(--topbar-bg) 88%, var(--topbar-text)) !important;
  border-color: color-mix(in srgb, var(--topbar-text) 16%, var(--topbar-bg)) !important;
  color: var(--topbar-text) !important;
}

.header-main [data-theme-toggle],
.header-main .icon-button,
.header-main .mobile-action {
  background: color-mix(in srgb, var(--header-main-bg) 90%, var(--header-main-text)) !important;
  border-color: color-mix(in srgb, var(--header-main-text) 16%, var(--header-main-bg)) !important;
  color: var(--header-main-text) !important;
}

.site-nav .nav-drawer-toggle {
  background: color-mix(in srgb, var(--site-nav-bg) 90%, var(--site-nav-text));
  border: 1px solid color-mix(in srgb, var(--site-nav-text) 16%, var(--site-nav-bg));
  color: var(--site-nav-text);
}

.site-nav .nav-drawer-toggle:hover,
.site-nav .nav-drawer-toggle:focus-visible,
.site-nav .nav-drawer-toggle.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* --- Global Night Mode Base Standards --- */
[data-theme-mode="dark"],
[data-theme-mode="dark"] body {
  --color-bg: #050810 !important;
  --color-surface: #0f172a !important;
  --color-surface-soft: #1e293b !important;
  --color-text: #f8fafc !important;
  --color-border: #1e293b !important;
  --btn-action-bg: var(--color-surface-soft);
  --btn-action-text: var(--color-text);
}
