/* HDG Bilgisayar blog — tokens mirrored from https://hdgbilgisayar.com/ (inline + Tailwind slate/blue/cyan/green) */
:root {
  --bg: #020617;                          /* theme-color + slate-950 */
  --bg-mid: #0f172a;                      /* slate-900 */
  --bg-card: rgba(15, 23, 42, 0.92);      /* card-neon ::after */
  --bg-elevated: rgba(15, 23, 42, 0.85);
  --border: rgba(30, 41, 59, 0.8);        /* slate-800/50–80 */
  --border-strong: rgba(71, 85, 105, 0.75); /* slate-600 */
  --text: #cbd5e1;                        /* slate-300 (body) */
  --text-bright: #ffffff;
  --text-muted: #94a3b8;                  /* slate-400 */
  --text-dim: #64748b;                    /* slate-500 */
  --accent: #60a5fa;                      /* blue-400 */
  --accent-strong: #2563eb;               /* blue-600 */
  --accent-soft: rgba(37, 99, 235, 0.24);
  --accent-border: rgba(96, 165, 250, 0.55);
  --cyan: #22d3ee;                        /* cyan-400 */
  --cyan-link: #22d3ee;
  --purple: #a855f7;                      /* purple-500 */
  --gold: #facc15;                        /* yellow-400 accents on live */
  --whatsapp: #16a34a;                    /* hdg-wa-btn */
  --whatsapp-hover: #15803d;
  --radius-btn: 14px;                     /* hdg-wa-btn / hdg-blue-btn */
  --radius-card: 1.5rem;                  /* card-neon / sticky offer */
  --radius-pill: 999px;
  --radius-nav: 10px;
  --max: 68ch;
  --content: 720px;
  --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.5);
  --glow-blue: rgba(59, 130, 246, 0.2);
  --glow-wa: rgba(22, 163, 74, 0.28);
  /* Live font-sans stack (Tailwind default) */
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, #0f172a 0%, #020617 45%, #000000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #3b82f6;
  color: #fff;
}

a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #7dd3fc;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #020617;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header (live: .hdg-nav sticky slate-900/70 blur) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  box-shadow: var(--shadow-nav);
  padding: 1rem;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.logo {
  text-decoration: none;
  font-size: clamp(1.05rem, 3.5vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo:hover {
  text-decoration: none;
}

.logo-gradient {
  background: linear-gradient(90deg, #60a5fa, #a855f7, #22d3ee, #60a5fa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-x 3s ease infinite;
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: var(--radius-nav);
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12);
}

.nav .nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: #ffffff !important;
  border-radius: var(--radius-btn);
  padding: 9px 14px;
  font-weight: 900;
  box-shadow: 0 0 18px var(--glow-wa);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.nav .nav-wa:hover {
  background: var(--whatsapp-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(22, 163, 74, 0.38);
}

/* —— Main —— */
.main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.page-title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 900;
  color: var(--text-bright);
}

.lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 2rem;
  max-width: var(--max);
}

.meta {
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.section-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.4);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose {
  max-width: var(--max);
}

.prose h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text-bright);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 800;
  color: #e2e8f0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: #e2e8f0;
  font-weight: 800;
}

/* —— CTA card (live section card look) —— */
.cta-box {
  margin: 2.5rem 0;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-card);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.08);
}

.cta-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-bright);
}

.cta-box p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: var(--radius-btn);
  font-weight: 900;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-soft);
  color: #bfdbfe;
  border-color: var(--accent-border);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.34);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 0 22px var(--glow-wa);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(22, 163, 74, 0.38);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: rgba(96, 165, 250, 0.85);
  color: #ffffff;
  background: rgba(37, 99, 235, 0.22);
}

/* —— Post list cards —— */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  display: block;
  padding: 1.4rem 1.45rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  border-color: rgba(96, 165, 250, 0.75);
  transform: translateY(-4px);
  box-shadow: 0 0 28px var(--glow-blue);
  text-decoration: none;
  color: inherit;
}

.post-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.post-card:hover h2 {
  color: #93c5fd;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.post-card .date {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 0.75rem;
  color: var(--text-bright);
}

.related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.related li {
  margin-bottom: 0.4rem;
}

/* —— Footer (live: bg-black border-t slate-800) —— */
.site-footer {
  border-top: 1px solid #1e293b;
  background: #000000;
  padding: 3rem 1.25rem 2.75rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-brand .logo-gradient {
  /* same animated gradient as header */
}

.site-footer p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.site-footer .footer-desc {
  color: #64748b;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.site-footer .address {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: #22d3ee;
}

.site-footer .footer-email a {
  color: #22d3ee;
  font-weight: 800;
}

.site-footer .footer-email a:hover {
  color: #67e8f9;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.footer-pills a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.75);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.footer-pills a:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.85);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
}

.footer-copy {
  color: #475569;
  font-size: 0.8125rem;
  margin-top: 0.5rem !important;
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem;
  }

  .nav a:not(.nav-wa) {
    padding: 7px 8px;
    font-size: 12px;
  }

  .nav .nav-wa {
    padding: 8px 12px;
    font-size: 12px;
  }

  .main {
    padding: 1.5rem 1rem 2.75rem;
  }
}


.post-figure {
  margin: 1.75rem 0;
}
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.post-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* —— Header tools: theme + language (shared with homepage) —— */
.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-left: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-switch {
  width: 92px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  cursor: pointer;
  transition: all 0.35s ease;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 1));
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.4), inset 0 0 16px rgba(59, 130, 246, 0.18);
  flex-shrink: 0;
  padding: 0;
}

.theme-switch.light {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.95), rgba(125, 211, 252, 0.65));
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.48), inset 0 0 16px rgba(255, 255, 255, 0.5);
}

.theme-switch-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  pointer-events: none;
  font-size: 16px;
  z-index: 2;
}

.sun-icon {
  color: #facc15;
  filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.9));
  opacity: 0.55;
}

.moon-icon {
  color: #93c5fd;
  filter: drop-shadow(0 0 7px rgba(147, 197, 253, 0.8));
  transform: scale(1.12) rotate(-10deg);
}

.theme-switch-thumb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  position: absolute;
  top: 3px;
  left: 52px;
  z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fff, #bfdbfe, #2563eb);
  box-shadow: 0 0 14px rgba(147, 197, 253, 0.95), 0 0 28px rgba(59, 130, 246, 0.6);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switch.light .theme-switch-thumb {
  left: 4px;
  background: radial-gradient(circle at 30% 30%, #fff, #fde68a, #f59e0b);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.95), 0 0 26px rgba(250, 204, 21, 0.5);
}

.lang-dropdown {
  position: relative;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.lang-button:hover {
  border-color: #3b82f6;
}

.lang-button .fa-chevron-down {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-left: 0.15rem;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 10rem;
  max-height: 16rem;
  overflow-y: auto;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #334155;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid #334155;
  transition: background 0.15s ease;
}

.lang-option:first-child {
  border-top: none;
}

.lang-option:hover {
  background: #334155;
  color: #fff !important;
}

.lang-option .flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-menu::-webkit-scrollbar {
  width: 6px;
}
.lang-menu::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 8px;
}
.lang-menu::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 8px;
}

/* —— Light theme (body.theme-light + html.theme-light for FOUC) —— */
html.theme-light body,
body.theme-light {
  color: #1e293b;
  background: radial-gradient(ellipse at top, #e0f2fe 0%, #f8fafc 58%, #ffffff 100%);
  background-attachment: fixed;
}

html.theme-light .site-header,
body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

html.theme-light .nav a,
body.theme-light .nav a {
  color: #334155;
}

html.theme-light .nav a:hover,
html.theme-light .nav a[aria-current="page"],
body.theme-light .nav a:hover,
body.theme-light .nav a[aria-current="page"] {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.1);
}

html.theme-light .page-title,
html.theme-light .post-card h2,
html.theme-light .prose h2,
html.theme-light .prose h3,
html.theme-light .cta-box h2,
html.theme-light .related h2,
html.theme-light .prose strong,
body.theme-light .page-title,
body.theme-light .post-card h2,
body.theme-light .prose h2,
body.theme-light .prose h3,
body.theme-light .cta-box h2,
body.theme-light .related h2,
body.theme-light .prose strong {
  color: #0f172a;
}

html.theme-light .lead,
html.theme-light .post-card p,
html.theme-light .cta-box p,
html.theme-light .post-figure figcaption,
body.theme-light .lead,
body.theme-light .post-card p,
body.theme-light .cta-box p,
body.theme-light .post-figure figcaption {
  color: #475569;
}

html.theme-light .meta,
html.theme-light .post-card .date,
body.theme-light .meta,
body.theme-light .post-card .date {
  color: #64748b;
}

html.theme-light .prose p,
html.theme-light .prose li,
body.theme-light .prose p,
body.theme-light .prose li {
  color: #334155;
}

html.theme-light a,
body.theme-light a {
  color: #0369a1;
}

html.theme-light a:hover,
body.theme-light a:hover {
  color: #0284c7;
}

html.theme-light .post-card,
body.theme-light .post-card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

html.theme-light .post-card:hover,
body.theme-light .post-card:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.12);
}

html.theme-light .post-card:hover h2,
body.theme-light .post-card:hover h2 {
  color: #1d4ed8;
}

html.theme-light .cta-box,
body.theme-light .cta-box {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.08);
}

html.theme-light .btn--primary,
body.theme-light .btn--primary {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.45);
}

html.theme-light .btn--primary:hover,
body.theme-light .btn--primary:hover {
  background: #2563eb;
  color: #fff;
}

html.theme-light .btn--ghost,
body.theme-light .btn--ghost {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}

html.theme-light .site-footer,
body.theme-light .site-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
  color: #64748b;
}

html.theme-light .site-footer .footer-desc,
html.theme-light .site-footer .address,
body.theme-light .site-footer .footer-desc,
body.theme-light .site-footer .address {
  color: #64748b;
}

html.theme-light .footer-pills a,
body.theme-light .footer-pills a {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

html.theme-light .footer-pills a:hover,
body.theme-light .footer-pills a:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.55);
  color: #0f172a;
}

html.theme-light .footer-copy,
body.theme-light .footer-copy {
  color: #94a3b8;
}

html.theme-light .lang-button,
body.theme-light .lang-button {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html.theme-light .lang-button .fa-chevron-down,
body.theme-light .lang-button .fa-chevron-down {
  color: #64748b;
}

html.theme-light .lang-menu,
body.theme-light .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

html.theme-light .lang-option,
body.theme-light .lang-option {
  color: #0f172a !important;
  border-color: #e2e8f0;
}

html.theme-light .lang-option:hover,
body.theme-light .lang-option:hover {
  background: #e0f2fe;
  color: #075985 !important;
}

html.theme-light .section-label,
body.theme-light .section-label {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.4);
}

html.theme-light .related,
body.theme-light .related {
  border-top-color: #e2e8f0;
}

html.theme-light .post-figure img,
body.theme-light .post-figure img {
  border-color: #cbd5e1;
}

/* —— RTL —— */
[dir="rtl"] .header-right {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol,
[dir="rtl"] .related ul {
  padding-left: 0;
  padding-right: 1.35rem;
}

[dir="rtl"] .theme-switch-thumb {
  left: auto;
  right: 52px;
}

[dir="rtl"] .theme-switch.light .theme-switch-thumb {
  right: 4px;
  left: auto;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .theme-switch {
    width: 78px;
    height: 36px;
  }

  .theme-switch-thumb {
    width: 28px;
    height: 28px;
    left: 44px;
  }

  .theme-switch.light .theme-switch-thumb {
    left: 4px;
  }

  [dir="rtl"] .theme-switch-thumb {
    left: auto;
    right: 44px;
  }

  [dir="rtl"] .theme-switch.light .theme-switch-thumb {
    right: 4px;
  }
}
