/* DZ School – RTL education theme */
:root {
  --blue: #2563eb; --blue-d: #1e3a8a; --blue-l: #eff6ff; --green: #16a34a; --amber: #f59e0b;
  --bg: #f6f9ff; --card: #fff; --text: #1f2937; --muted: #6b7280; --line: #e5e7eb; --r: 18px;
  --shadow: 0 6px 20px rgba(37, 99, 235, .10);
  --header-bg: #fff;
  --topbar-bg: #1e3a8a;
  --topbar-fg: #dbeafe;
  --hero-grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
  --wave-fill: #f6f9ff;
  --input-bg: #fff;
  --input-border: #cbd5e1;
}

/* Dark mode – Phase 1 (safe CSS-only theme) */
html.dark {
  --blue: #60a5fa; --blue-d: #93c5fd; --blue-l: #1e293b; --green: #4ade80; --amber: #fbbf24;
  --bg: #0f172a; --card: #1e293b; --text: #e2e8f0; --muted: #94a3b8; --line: #334155;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --header-bg: #1e293b;
  --topbar-bg: #020617;
  --topbar-fg: #94a3b8;
  --hero-grad: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%);
  --wave-fill: #0f172a;
  --input-bg: #0f172a;
  --input-border: #475569;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Tajawal', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.85; direction: rtl; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.4; color: var(--blue-d); margin: 0 0 .5em; }
.dzs-skip { position: absolute; right: -9999px; } .dzs-skip:focus { right: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 9999; }
.dzs-container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 18px; }
.dzs-container-wide { max-width: 1600px; }
.dzs-container-progress { max-width: 1680px; }
.dzs-narrow { max-width: 860px; }
.dzs-center { text-align: center; }
.dzs-muted { color: var(--muted); }

/* top bar */
.dzs-topbar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: .9rem; }
.dzs-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.dzs-topbar-in > .dzs-theme-toggle { flex: 0 0 auto; margin-inline-end: 4px; }
.dzs-topbar-in > .dzs-contact { flex: 1 1 auto; min-width: 0; }
.dzs-topbar-in > .dzs-topbar-side { flex: 0 0 auto; margin-inline-start: auto; }
.dzs-contact span { margin-inline-end: 18px; }
.dzs-auth a { color: #fff; text-decoration: none; margin-inline-start: 16px; }
.dzs-auth a:hover { text-decoration: underline; }

/* header */
.dzs-header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; transition: box-shadow .25s, background .25s; }
.dzs-header.is-stuck { box-shadow: 0 6px 24px rgba(30, 58, 138, .12); }
html.dark .dzs-header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.admin-bar .dzs-header { top: 32px; }
.dzs-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.dzs-header-in .dzs-nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.dzs-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dzs-logo-mark { font-size: 2rem; background: var(--blue-l); border-radius: 14px; width: 48px; height: 48px; display: grid; place-items: center; }
.dzs-logo-text { font-size: 1.4rem; font-weight: 800; color: var(--blue-d); }
.dzs-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dzs-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.dzs-menu a { display: block; padding: .4rem .72rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; border-radius: 10px; transition: background .2s, color .2s; white-space: nowrap; }
.dzs-menu a:hover, .dzs-menu .current-menu-item > a, .dzs-menu .current_page_item > a { background: var(--blue-l); color: var(--blue); }
.dzs-menu li { position: relative; }
.dzs-menu .sub-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 190px; background: #fff; box-shadow: var(--shadow); border-radius: 12px; list-style: none; padding: 6px; margin: 0; z-index: 10; }
.dzs-menu li:hover > .sub-menu { display: block; }
.dzs-cta { background: var(--green); color: #fff; text-decoration: none; font-weight: 800; padding: .5rem 1.1rem; border-radius: 999px; transition: transform .2s, background .2s; white-space: nowrap; font-size: .92rem; }
.dzs-cta:hover { background: #15803d; transform: translateY(-2px); color: #fff; }
.dzs-burger { display: none; background: var(--blue-l); border: 0; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; padding: 12px; }
.dzs-burger span { display: block; height: 3px; background: var(--blue-d); border-radius: 3px; margin: 4px 0; }

/* hero */
.dzs-hero { position: relative; background: var(--hero-grad); color: #fff; padding: 70px 0 110px; overflow: hidden; }
.dzs-hero::before, .dzs-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.dzs-hero::before { width: 420px; height: 420px; left: -120px; top: -140px; }
.dzs-hero::after { width: 260px; height: 260px; right: 30%; bottom: -120px; background: rgba(34, 197, 94, .18); }
.dzs-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.dzs-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
.dzs-hero p { font-size: 1.15rem; color: #dbeafe; max-width: 560px; }
.dzs-pill { display: inline-block; background: rgba(255, 255, 255, .16); padding: .25rem 1rem; border-radius: 999px; font-weight: 700; margin-bottom: 14px; }
.dzs-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.dzs-btn { display: inline-block; border-radius: 999px; padding: .75rem 1.8rem; font-weight: 800; text-decoration: none; background: var(--blue); color: #fff; transition: transform .2s, box-shadow .2s; border: 2px solid transparent; }
.dzs-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); color: #fff; }
.dzs-btn-light { background: #fff; color: var(--blue-d); } .dzs-btn-light:hover { color: var(--blue-d); }
.dzs-btn-line { background: transparent; border-color: rgba(255, 255, 255, .7); }
.dzs-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; display: block; z-index: 3; }

.dzs-hero-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.dzs-board { width: min(340px, 100%); background: #fff; color: var(--text); border-radius: 22px; padding: 20px; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); transform: rotate(-3deg); position: relative; animation: dzs-float 5s ease-in-out infinite; }
.dzs-board b { color: var(--blue); }
.dzs-board i { display: block; height: 10px; background: #e5e7eb; border-radius: 6px; margin: 8px 0; } .dzs-board i.s { width: 60%; }
.dzs-board .o { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: .95rem; }
.dzs-board .o u { width: 16px; height: 16px; border: 2px solid #9ca3af; border-radius: 50%; display: inline-block; }
.dzs-board .o.on { border-color: var(--green); background: #f0fdf4; } .dzs-board .o.on u { background: var(--green); border-color: var(--green); }
.dzs-board .t { position: absolute; top: -16px; left: 14px; background: var(--amber); color: #fff; font-weight: 800; padding: .2rem .8rem; border-radius: 999px; }
.dzs-bubble { position: absolute; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 1.8rem; box-shadow: var(--shadow); animation: dzs-float 4s ease-in-out infinite; }
.dzs-bubble.b1 { top: 0; right: 8%; } .dzs-bubble.b2 { bottom: 10px; right: 0; animation-delay: .8s; } .dzs-bubble.b3 { top: 20px; left: 4%; animation-delay: 1.6s; }
@keyframes dzs-float { 50% { transform: translateY(-12px) rotate(-3deg); } }

/* sections */
.dzs-section { padding: 64px 0; }
.dzs-alt { background: #fff; }
.dzs-head { text-align: center; margin-bottom: 36px; }
.dzs-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.dzs-head p { color: var(--muted); margin: 0; }
.dzs-head h2::after { content: ''; display: block; width: 64px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); margin: 10px auto 0; }

.dzs-cycles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dzs-cycle { background: var(--card); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--c); transition: transform .25s, box-shadow .25s; }
.dzs-cycle:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(37, 99, 235, .18); }
.dzs-cycle-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--c) 14%, white); margin-bottom: 12px; }
.dzs-years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dzs-years a { text-decoration: none; background: var(--bg); color: var(--text); font-weight: 700; padding: .3rem 1rem; border-radius: 999px; transition: background .2s, color .2s; }
.dzs-years a:hover { background: var(--c); color: #fff; }

.dzs-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dzs-feature { text-align: center; padding: 26px 18px; border-radius: 20px; background: var(--bg); transition: transform .25s; }
.dzs-feature:hover { transform: translateY(-6px); }
.dzs-feature span { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.dzs-feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.dzs-stats { background: linear-gradient(135deg, var(--green), #0d9488); color: #fff; padding: 46px 0; }
.dzs-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.dzs-stats b { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.2; direction: ltr; }
.dzs-stats span { opacity: .9; }

.dzs-cta-box { background: linear-gradient(135deg, var(--blue-d), var(--blue)); color: #fff; border-radius: 26px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dzs-cta-box h2 { color: #fff; margin: 0 0 4px; } .dzs-cta-box p { margin: 0; color: #dbeafe; }

/* inner pages */
.dzs-banner { background: linear-gradient(135deg, var(--blue-d), var(--blue)); color: #fff; padding: 38px 0; text-align: center; position: relative; overflow: hidden; }
.dzs-banner::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .07); left: -60px; top: -90px; }
.dzs-banner h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; position: relative; z-index: 1; }
.dzs-banner p { margin: 4px 0 0; color: #dbeafe; position: relative; z-index: 1; }
.dzs-page { padding: 40px 0 64px; }
.dzs-content { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.dzs-wide .dzs-content { background: transparent; box-shadow: none; padding: 0; }
.dzs-thumb { border-radius: 14px; margin-bottom: 18px; }

.dzs-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.dzs-post { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.dzs-post:hover { transform: translateY(-6px); }
.dzs-post img { width: 100%; height: 190px; object-fit: cover; display: block; }
.dzs-post-body { padding: 18px; }
.dzs-post h3 { font-size: 1.15rem; } .dzs-post h3 a { color: inherit; text-decoration: none; }
.dzs-more { font-weight: 700; text-decoration: none; }
.dzs-pager { margin-top: 28px; text-align: center; }
.dzs-pager .page-numbers { display: inline-block; padding: .35rem .9rem; margin: 2px; border-radius: 10px; background: #fff; text-decoration: none; }
.dzs-pager .current { background: var(--blue); color: #fff; }

/* footer */
.dzs-footer { background: #0f1d4a; color: #c7d2fe; padding-top: 48px; }
.dzs-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.dzs-footer h4 { color: #fff; font-size: 1.15rem; }
.dzs-footer a { color: #c7d2fe; text-decoration: none; } .dzs-footer a:hover { color: #fff; }
.dzs-footer ul { list-style: none; padding: 0; margin: 0; }
.dzs-footer li { padding: 3px 0; }
.dzs-copy { margin-top: 36px; padding: 16px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }

/* ---- DZ Exams app inside the theme ---- */
.dzs-wide .dz-app { background: transparent; padding: 0; }

@media (max-width: 1000px) {
  .dzs-hero-in { grid-template-columns: 1fr; text-align: center; }
  .dzs-hero p { margin-inline: auto; } .dzs-hero-btns { justify-content: center; }
  .dzs-hero-art { display: none; }
  .dzs-cycles, .dzs-features { grid-template-columns: repeat(2, 1fr); }
  .dzs-footer-grid { grid-template-columns: 1fr; }
  .dzs-burger { display: block; }
  .dzs-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; box-shadow: 0 16px 30px rgba(0, 0, 0, .1); }
  .dzs-nav.is-open { display: flex; }
  .dzs-menu { flex-direction: column; }
  .dzs-cta { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .dzs-cycles, .dzs-features { grid-template-columns: 1fr; }
  .dzs-stats-in { grid-template-columns: repeat(2, 1fr); }
  .dzs-hero { padding: 46px 0 90px; }
  .dzs-topbar-in { justify-content: center; text-align: center; }
  .dzs-cta-box { padding: 26px; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Footer menu */
.dzs-foot-menu { list-style: none; margin: 0; padding: 0; }
.dzs-foot-menu li { margin-bottom: 8px; }
.dzs-foot-menu a { color: inherit; text-decoration: none; opacity: .9; }
.dzs-foot-menu a:hover { opacity: 1; text-decoration: underline; }

/* Slightly tighter nav links (not cramped) */
.dzs-menu a { padding: .45rem .9rem; }
.dzs-header-in { min-height: 70px; }

/* Activity / level cards hover polish */
.dzs-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.dzs-levels.dzs-cards-rich {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (min-width: 700px) {
  .dzs-levels.dzs-cards-rich {
    grid-template-columns: repeat(2, 1fr);
  }
  #levels .dzs-levels {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 699px) {
  .dzs-levels, .dzs-levels.dzs-cards-rich {
    grid-template-columns: 1fr;
  }
}
.dzs-level {
  transition: transform .2s, box-shadow .2s;
}
.dzs-level:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .14);
}

/* Rich interactive cards (activity / BEM / levels) */
.dzs-card-rich {
  padding: 28px 22px 24px !important;
  text-align: center;
}
.dzs-card-art {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lc, #2563eb) 18%, #fff), #fff);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lc, #2563eb) 22%, transparent);
  display: grid;
  place-items: center;
}
.dzs-art-main {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.08));
  animation: dzs-bob 3.5s ease-in-out infinite;
}
.dzs-art-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--lc, #2563eb);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.dzs-art-float {
  position: absolute;
  font-size: 1.1rem;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
  animation: dzs-bob 3s ease-in-out infinite;
}
.dzs-art-float.f1 { top: 8px; right: -12px; animation-delay: .4s; }
.dzs-art-float.f2 { bottom: 6px; left: -10px; animation-delay: 1.1s; }
.dzs-card-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.dzs-card-rich:hover .dzs-card-art {
  transform: translateY(-4px) scale(1.03);
  transition: transform .25s ease;
}
.dzs-card-rich .dzs-card-art { transition: transform .25s ease; }
@keyframes dzs-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .dzs-art-main, .dzs-art-float { animation: none; }
}

/* Notification badge (red light) */
.dzs-account-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dz-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .7);
  animation: dz-pulse-red 1.4s ease-out infinite;
}
@keyframes dz-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Y School 1.5.1: responsive refinements (preserves the original stylesheet) */
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.dzs-language-switcher { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dzs-language-switcher a { color: inherit; text-decoration: none; }
.dzs-language-switcher a.is-current { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.dzs-account-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dz-notif-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
@media (max-width: 900px) {
  .dzs-container { padding-inline: 16px; }
  .dzs-header-in { gap: 12px; }
  .dzs-nav { gap: 10px; }
  .dzs-menu a { padding: .45rem .7rem; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .dzs-topbar-in, .dzs-topbar-side { align-items: flex-start; }
  .dzs-topbar-in { flex-direction: column; }
  .dzs-header-in { min-height: 64px; flex-wrap: wrap; }
  .dzs-logo-text { font-size: 1.15rem; }
  .dzs-nav { width: 100%; }
  .dzs-menu { gap: 3px; }
  .dzs-menu a { padding: .4rem .55rem; }
  .dzs-container { padding-inline: 12px; }
  .dzs-auth a { margin-inline-start: 8px; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========== Dark Mode overrides (Phase 1) ========== */
html.dark body { background: var(--bg); color: var(--text); }
html.dark .dzs-menu .sub-menu,
html.dark .dzs-board,
html.dark .dzs-alt,
html.dark .dzs-pager .page-numbers,
html.dark .dzs-nav.is-open { background: var(--card); }
html.dark .dzs-btn-light { background: var(--card); color: var(--blue-d); }
html.dark .dzs-logo-mark { background: var(--blue-l); }
html.dark .dzs-logo-text { color: var(--blue-d); }
html.dark .dzs-menu a { color: var(--text); }
html.dark .dzs-menu a:hover,
html.dark .dzs-menu .current-menu-item > a,
html.dark .dzs-menu .current_page_item > a { background: var(--blue-l); color: var(--blue); }
html.dark .dzs-burger { background: var(--blue-l); }
html.dark .dzs-burger span { background: var(--blue-d); }
html.dark .dzs-wave path { fill: var(--wave-fill); }
html.dark .dzs-level,
html.dark .dzs-feature,
html.dark .dzs-card-rich { background: var(--card); border-color: var(--line); }
html.dark .dzs-footer { background: #020617; }
html.dark .dzs-copy { background: #000; color: #64748b; }
html.dark .dzs-skip:focus { background: var(--card); color: var(--text); }

/* Theme toggle – compact, far-right edge, does not displace auth links */
.dzs-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.10); color: #fff; cursor: pointer;
  font-size: .95rem; line-height: 1; transition: background .2s;
  flex-shrink: 0; padding: 0;
}
.dzs-theme-toggle:hover { background: rgba(255,255,255,.20); }
.dzs-theme-toggle:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
html.dark .dzs-theme-toggle { background: rgba(148,163,184,.12); color: #fbbf24; }
html.dark .dzs-theme-toggle:hover { background: rgba(148,163,184,.25); }
.dzs-theme-toggle .dzs-icon-sun { display: none; }
.dzs-theme-toggle .dzs-icon-moon { display: inline; }
html.dark .dzs-theme-toggle .dzs-icon-sun { display: inline; }
html.dark .dzs-theme-toggle .dzs-icon-moon { display: none; }

/* Smooth theme transition (only colors, not layout) */
html.dzs-theme-ready body,
html.dzs-theme-ready .dzs-header,
html.dzs-theme-ready .dzs-topbar,
html.dzs-theme-ready .dzs-hero,
html.dzs-theme-ready .dz-app,
html.dzs-theme-ready .dz-card {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}


/* wider nav + progress layout */
@media (max-width: 1100px) {
  .dzs-menu a { padding: .35rem .55rem; font-size: .86rem; }
  .dzs-logo-text { font-size: 1.15rem; }
}
body.dzs-wide .dzs-page .dzs-container-wide,
body.dzs-wide .dzs-page .dzs-container-progress {
  max-width: 1680px;
  width: 100%;
  padding-inline: 24px;
}
body.dzs-wide .dzs-banner { padding: 28px 0; }
body.dzs-wide .dzs-content { max-width: none; }
