@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,500&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --bg-soft: #f0f3ff;
  --surface: #ffffff;
  --surface-2: #fbfbff;
  --text: #151426;
  --heading: #0d0c1d;
  --muted: #6d6c80;
  --faint: #9b9aae;
  --border: rgba(30, 29, 55, 0.1);
  --border-strong: rgba(30, 29, 55, 0.16);
  --primary: #B1B2FF;
  --primary-2: #B1B2FF;
  /* Pastel marka zemini uzerinde okunur yazi rengi (WCAG AA). */
  --btn-ink: #14131f;
  --link: #B1B2FF;
  --link-content: #5B4CE4;
  --accent: #AAC4FF;
  --warning: #ffd166;
  --mint: #c8f7dc;
  --shadow: 0 24px 70px rgba(46, 42, 95, 0.12);
  --shadow-sm: 0 12px 36px rgba(46, 42, 95, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --wide: 1320px;
  --prose: 820px;
  --font-sans: "Manrope", "Aptos", "Segoe UI", Arial, sans-serif;
  --font-serif: "Lora", Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-soft: #121215;
  --surface: #161619;
  --surface-2: #1c1c20;
  --text: #e4e4e7;
  --heading: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --primary: #8b80ff;
  --primary-2: #4de2d0;
  --btn-ink: #14131f;
  --link: #B1B2FF;
  --link-content: #B1B2FF;
  --accent: #AAC4FF;
  --warning: #ffe08a;
  --mint: #1d4f49;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 12px 36px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 87, 245, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(23, 195, 178, 0.14), transparent 26rem),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #0a0a0c;
}

html[data-theme="dark"] body {
  background: #0a0a0c;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  padding: 34px 0 88px;
}

.section {
  margin-top: 76px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

/* Dikey bosluk + marka boyutu Ozellestir → Menu'den; varsayilanlar (0 / 42px)
   mevcut gorunumle birebir — sifir kayma. */
.header-inner {
  min-height: 82px;
  padding-top: var(--menu-pady, 0px);
  padding-bottom: var(--menu-pady, 0px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--heading);
  white-space: nowrap;
}

.brand-mark {
  width: var(--menu-logo, 42px);
  height: var(--menu-logo, 42px);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 var(--menu-logo, 42px);
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(103, 87, 245, 0.28);
}

.brand-logo-img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.brand-copy strong {
  display: block;
  margin-top: -3px;
  font-size: 1.15rem;
}

/* Ana sayfada marka bloğu H1 render edilir (site-adı SERP sinyali) —
   UA h1 varsayılanları (margin/2em/bold) markayı bozmasın */
h1.brand-copy {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  max-width: 100%;
  overflow: visible;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
  flex: 0 0 auto;
}

.nav a:hover,
.nav a.is-active {
  color: var(--heading);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Submenu / dropdown */
.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-item__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
  cursor: pointer;
}

.nav-item__top:hover,
.nav-item__top.is-active,
.nav-item:hover .nav-item__top,
.nav-item:focus-within .nav-item__top {
  color: var(--heading);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-item__caret {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-item__caret,
.nav-item:focus-within .nav-item__caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(13, 12, 29, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s linear;
  z-index: 100;
}

:root[data-theme="dark"] .nav-submenu {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu,
.nav-submenu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bridge area so cursor can slide from button to submenu without flicker */
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-submenu__item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-submenu__item:hover,
.nav-submenu__item.is-active {
  background: var(--bg-soft);
  color: var(--heading);
}

:root[data-theme="dark"] .nav-submenu__item:hover,
:root[data-theme="dark"] .nav-submenu__item.is-active {
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile: nav becomes overlay; submenu inline */
@media (max-width: 900px) {
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 16px;
    min-width: 0;
  }
  .nav-item__caret { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  width: 160px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-box input::placeholder {
  color: var(--faint);
}

.icon-btn,
.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--heading);
  background: var(--surface);
  transition: 0.2s ease;
}

.icon-btn:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--btn-ink);
  background: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(177, 178, 255, 0.35);
  transition: 0.2s ease;
}

:root[data-theme="dark"] .btn {
  color: var(--btn-ink);
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(103, 87, 245, 0.32);
}

.btn-secondary {
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-copy {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.pill.is-active {
  color: #fff;
  background: var(--heading);
  border-color: var(--heading);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(360px, 38vw, 460px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 16px 40px rgba(177, 178, 255, 0.18);
  isolation: isolate;
  transform: translateZ(0);
}
@media (max-width: 900px) {
  .hero-slider {
    height: auto;
    min-height: 440px;
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
  }
  .hero-media { order: -1; }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 56px);
  color: #fff;
  overflow: hidden;
  min-width: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(103, 87, 245, 0.45), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(23, 195, 178, 0.28), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #25243f 60%, #2f2856 100%);
}

.hero-content .hero-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-content .hero-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #0d0c1d;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.tag-soft {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.hero-text {
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.slider-controls {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Old separate progress bar — hidden, progress now lives inside the active dot */
.slider-progress { display: none; }

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layout setting: dots hidden visually but kept in DOM (they carry slide data) */
.slider-dots--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Layout setting: optional prev/next arrows */
.slider-arrows { display: flex; align-items: center; gap: 6px; }
.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.6); }

.slider-dot {
  position: relative;
  width: 18px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.slider-dot.is-active {
  width: 44px;
  background: rgba(255, 255, 255, 0.32);
}

.slider-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  will-change: transform;
  transition: transform var(--p-transition, 250ms linear);
}

.hero-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
}

.hero-content {
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}

@media (max-width: 900px) {
  .hero-media {
    border-radius: 0;
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
  }
  .hero-content {
    border-radius: 0;
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
  }
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: none;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.featured-card,
.side-panel,
.post-card,
.info-card,
.form-card,
.legal-card,
.author-hero,
.error-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

:root:not(:root[data-theme="dark"]) .featured-card,
:root:not(:root[data-theme="dark"]) .side-panel,
:root:not(:root[data-theme="dark"]) .post-card,
:root:not(:root[data-theme="dark"]) .info-card,
:root:not(:root[data-theme="dark"]) .form-card,
:root:not(:root[data-theme="dark"]) .legal-card,
:root:not(:root[data-theme="dark"]) .author-hero,
:root:not(:root[data-theme="dark"]) .error-panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.featured-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.18), 0 4px 12px -6px rgba(15, 23, 42, 0.06);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
}

:root[data-theme="dark"] .featured-card:hover {
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55), 0 4px 12px -6px rgba(0, 0, 0, 0.3);
}

.featured-copy {
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.featured-copy > .pill { align-self: flex-start; }

.featured-copy h2,
.post-card h3,
.list-item h3,
.category-large h3,
.legal-card h2 {
  margin: 0;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.featured-copy h2 {
  font-size: clamp(1.3rem, 1.85vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.16;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-copy h2 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.28s ease;
}

.featured-card:hover .featured-copy h2 a { background-size: 100% 1px; }

.featured-copy .section-copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-copy .meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dot-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(103, 87, 245, 0.12), rgba(23, 195, 178, 0.18));
}

.featured-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 56px;
  background: linear-gradient(90deg, var(--surface), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

:root[data-theme="dark"] .featured-media::before {
  background: linear-gradient(90deg, var(--surface), transparent);
  opacity: 0.6;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover .featured-media img { transform: scale(1.04); }

.side-panel {
  padding: 22px 22px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.side-panel h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 12px;
  color: var(--heading);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.side-panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--link-content, var(--primary)));
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.list-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 6px;
  margin: 0 -6px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.list-item + .list-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--border);
  opacity: 0.7;
}

.list-item:hover {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.list-item:hover::before { display: none; }
.list-item:hover + .list-item::before { display: none; }

.list-item img {
  width: 68px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.list-item:hover img { transform: scale(1.04); }

.list-item > div,
.list-item > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.list-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease;
}

.list-item:hover h3 { color: var(--primary); }

.list-item .pill {
  align-self: flex-start;
  font-size: 0.66rem;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}

.list-item .meta {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topic-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.topic-label {
  color: var(--heading);
  font-weight: 900;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
}

.category-large {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 122, 144, 0.32), transparent 60%),
    radial-gradient(circle at 88% 12%, rgba(23, 195, 178, 0.28), transparent 60%),
    radial-gradient(circle at 50% 95%, rgba(103, 87, 245, 0.6), transparent 70%),
    linear-gradient(135deg, #1a1a2e 0%, #25243f 60%, #2f2856 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.category-large h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.category-large h3 a { color: inherit; }

.category-large p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.category-small-grid {
  display: grid;
  gap: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.mini-card img {
  width: 150px;
  height: 126px;
  object-fit: cover;
  border-radius: 18px;
}

.mini-card h3 {
  margin: 6px 0 0;
  color: var(--heading);
  font-size: 1.1rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.lab-section {
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px;
  color: var(--heading);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .lab-section {
  color: #fff;
  background: linear-gradient(135deg, #1f2030, #2a2c40 52%, #1a1b28);
}

.lab-section--minimal {
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .lab-section--minimal {
  background: linear-gradient(135deg, #131316, #1a1a1e);
  border-color: rgba(255, 255, 255, 0.08);
}

.lab-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.lab-section--minimal .lab-section__head {
  border-bottom-color: var(--border);
}

:root[data-theme="dark"] .lab-section--minimal .lab-section__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lab-section__head .section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--heading);
}

:root[data-theme="dark"] .lab-section__head .section-title {
  color: #fff;
}

.lab-section__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

:root[data-theme="dark"] .lab-section__count {
  color: rgba(255, 255, 255, 0.45);
}

.lab-section .section-head {
  margin-bottom: 18px;
}

.lab-section .section-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.lab-section .section-copy {
  font-size: 0.92rem;
  margin-top: 6px;
}

.lab-section .section-head {
  align-items: center;
}

.lab-section .section-title,
.lab-section .section-copy {
  color: var(--heading);
}

.lab-section .eyebrow {
  color: var(--primary);
}

:root[data-theme="dark"] .lab-section .section-title,
:root[data-theme="dark"] .lab-section .section-copy,
:root[data-theme="dark"] .lab-section .eyebrow {
  color: #fff;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.icon-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

:root[data-theme="dark"] .lab-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.icon-category {
  text-align: center;
  color: var(--heading);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.icon-category:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(13, 12, 29, 0.08);
}

:root[data-theme="dark"] .icon-category {
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .icon-category:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.icon-category svg,
.icon-category .cat-svg-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: var(--primary);
  stroke-width: 1.5;
  transition: transform 0.18s ease;
}

:root[data-theme="dark"] .icon-category svg,
:root[data-theme="dark"] .icon-category .cat-svg-icon {
  color: #ffffff;
}

.icon-category:hover svg,
.icon-category:hover .cat-svg-icon {
  transform: scale(1.08);
}

/* SVG file rendered via mask-image — color follows currentColor (primary) */
.cat-svg-icon {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--cat-icon);
          mask-image: var(--cat-icon);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* Category-hero icon — bigger inside its gradient tile */
.category-hero__icon .cat-svg-icon {
  width: 32px;
  height: 32px;
  color: #fff;
}

:root[data-theme="dark"] .icon-category svg {
  color: var(--primary);
}

.icon-category h3 {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

:root[data-theme="dark"] .icon-category h3 {
  color: #fff;
}

.lab-card__count {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .lab-card__count {
  color: rgba(255, 255, 255, 0.4);
}

.lab-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.lab-card > *:not(img) {
  position: relative;
}

.lab-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

:root[data-theme="dark"] .lab-card h3 {
  color: #fff;
}

.icon-category h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.posts-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.posts-grid--four .post-card p {
  display: none;
}

@media (max-width: 1100px) {
  .posts-grid--four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .posts-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.post-card {
  overflow: hidden;
  transition: 0.2s ease;
}

:root:not(:root[data-theme="dark"]) .post-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.post-card:hover {
  transform: translateY(-4px);
}

:root:not(:root[data-theme="dark"]) .post-card:hover {
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  border-color: var(--border);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.post-card img {
  border-radius: var(--radius-lg);
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #0d0c1d;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card__read {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.post-card-body {
  padding: 20px 22px 22px;
}

.post-card__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-card__author {
  color: var(--link);
  font-weight: 700;
  transition: color 0.15s ease;
}

.post-card__author:hover {
  color: var(--heading);
}

.post-card__byline-sep {
  opacity: 0.55;
}

.post-card__date {
  color: var(--muted);
  font-weight: 500;
}

.post-card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.post-card h3 a {
  color: var(--heading);
  transition: color 0.15s ease;
}

.post-card h3 a:hover {
  color: var(--link);
}

.post-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 36px 0 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.latest-pager .pager-num,
.latest-pager .pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s ease;
}

.latest-pager .pager-num:hover,
.latest-pager .pager-arrow:hover {
  border-color: var(--primary);
  color: var(--heading);
  transform: translateY(-1px);
}

.latest-pager .pager-num.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-ink);
  cursor: default;
  pointer-events: none;
}

.latest-pager .pager-dots {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.latest-pager .pager-arrow {
  font-weight: 700;
  letter-spacing: -0.005em;
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 209, 102, 0.42), transparent 18rem),
    linear-gradient(135deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.cta-band p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.newsletter-form {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
}

.newsletter-form input:not([type="checkbox"]):not([type="radio"]),
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

.newsletter-form input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 52px;
  padding: 0 16px;
}

.checkline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkline input[type="checkbox"],
.checkline input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  appearance: auto;
  -webkit-appearance: auto;
}

.checkline span {
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 90px;
  padding: 64px 0 28px;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

:root[data-theme="dark"] .site-footer {
  background: var(--bg-soft);
}

.site-footer::before {
  content: "{}";
  position: absolute;
  right: -16px;
  top: -70px;
  color: color-mix(in srgb, var(--primary) 6%, transparent);
  font-size: 17rem;
  font-weight: 900;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: max(20px, calc((100vw - var(--container)) / 2));
  right: max(20px, calc((100vw - var(--container)) / 2));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), var(--primary), var(--border-strong), transparent);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.9fr;
  gap: 34px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 1rem;
}

.footer-brand {
  color: var(--heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.footer-grid p {
  margin: 14px 0 0;
  max-width: 380px;
}

/* Footer social row */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
  color: var(--heading);
  border-color: var(--primary);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

:root[data-theme="dark"] .footer-social a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--heading);
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-jekcms {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  background: linear-gradient(120deg, var(--primary), var(--link-content) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.footer-jekcms:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .footer-jekcms {
  color: #EEF1FF;
  background: linear-gradient(120deg, #B1B2FF, #C7B6FF 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Footer customizer — appearance + templates
   ============================================ */

.site-footer-wrap { --footer-accent: var(--primary); }

.site-footer-wrap--bg-bg-soft .site-footer { background: var(--bg-soft); }
.site-footer-wrap--bg-dark .site-footer {
  background: #0e1014;
  color: #d8dbe5;
  border-top-color: rgba(255,255,255,0.06);
}
.site-footer-wrap--bg-dark .site-footer .footer-title,
.site-footer-wrap--bg-dark .site-footer .footer-brand { color: #fff; }
.site-footer-wrap--bg-dark .site-footer .footer-links a,
.site-footer-wrap--bg-dark .site-footer .footer-bottom span { color: rgba(255,255,255,0.78); }
.site-footer-wrap--bg-dark .site-footer .footer-links a:hover { color: #fff; }
.site-footer-wrap--bg-brand-gradient .site-footer {
  background: linear-gradient(135deg, color-mix(in srgb, var(--footer-accent) 14%, var(--bg-soft)), var(--bg-soft));
}

.site-footer-wrap--compact .site-footer { padding: 32px 0 18px; margin-top: 60px; }
.site-footer-wrap--compact .footer-grid { padding-bottom: 22px; gap: 22px; }
.site-footer-wrap--no-border .site-footer { border-top-color: transparent; }
.site-footer-wrap--no-border .footer-bottom { border-top-color: transparent; }

/* Geniş marka logosu (Ayarlar → Marka'dan yüklenince) — header */
/* Genis logo da Menu sekmesindeki boyut slider'ini izler (ce: markali sitede
   logo_height etkisizdi — yalniz .brand-mark bagliydi). Varsayilan 42px ayni. */
.brand--wide .jek-logo { height: var(--menu-logo, 42px); width: auto; max-width: min(62vw, 440px); display: block; object-fit: contain; }
/* Tema-duyarlı swap: display:block yukarıdaki kuralla helper'ın tek-sınıf
   display:none'unu ezmesin diye swap burada AYNI spesifisiteyle tekrarlanır */
.brand--wide .jek-logo--dark { display: none; }
:root[data-theme="dark"] .brand--wide .jek-logo--light { display: none; }
:root[data-theme="dark"] .brand--wide .jek-logo--dark { display: block; }
.brand--wide .brand-copy--sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .brand--wide .jek-logo { height: calc(var(--menu-logo, 42px) * 0.81); } }

/* Brand block */
.footer-brand-block { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.footer-brand--image img { max-height: 38px; width: auto; display: block; }
/* Swap kuralları `.footer-brand--image img` (0,1,1) kuralından GÜÇLÜ olmalı —
   tek-class hali (0,1,0) eziliyordu ve iki varyant birden görünüyordu (C57) */
.footer-brand--image .footer-brand__logo--light { display: inline-block; }
.footer-brand--image .footer-brand__logo--dark  { display: none; }
:root[data-theme="dark"] .footer-brand--image .footer-brand__logo--light { display: none; }
:root[data-theme="dark"] .footer-brand--image .footer-brand__logo--dark  { display: inline-block; }
.footer-brand--image .footer-brand__logo:only-child { display: inline-block !important; }
.footer-brand__tag { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-desc { margin: 0; color: var(--muted); line-height: 1.55; }
.footer-text :is(p,a,strong,em) { color: var(--muted); }
.footer-text a { color: var(--footer-accent); }
.footer-newsletter__intro { margin: 0 0 12px; color: var(--muted); }
.footer-newsletter__form { display: flex; gap: 8px; }
.footer-newsletter__form input[type="email"] {
  flex: 1; min-width: 0; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--heading); font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.footer-newsletter__form input[type="email"]:focus {
  outline: none; border-color: var(--footer-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--footer-accent) 22%, transparent);
}
.footer-newsletter__form button {
  padding: 11px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--footer-accent); color: #1a1c2c;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.footer-newsletter__form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
/* Bülten görünüm varyantları (footer özelleştirici → Bülten sütunu → Görünüm stili) */
.footer-newsletter--boxed {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
}
.footer-newsletter--boxed .footer-newsletter__form input[type="email"] { background: var(--bg); }
.footer-newsletter--accent {
  padding: 20px; border-radius: 14px;
  background: color-mix(in srgb, var(--footer-accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--footer-accent) 35%, transparent);
}
.footer-newsletter--accent .footer-newsletter__form input[type="email"] { background: var(--bg); }
.site-footer-wrap--bg-dark .footer-newsletter--boxed,
.site-footer--dark-cta .footer-newsletter--boxed {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12);
}
@media (max-width: 560px) {
  .footer-newsletter__form { flex-direction: column; }
  .footer-newsletter__form button { width: 100%; }
}
.footer-contact__row { display: block; margin: 0 0 6px; color: var(--muted); text-decoration: none; }
.footer-contact__row:hover { color: var(--footer-accent); }
.footer-brand-mini { display: inline-block; font-weight: 800; font-size: 1.05rem; color: var(--heading); text-decoration: none; }
.footer-brand-mini__tag { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }

/* Bar credit slot */
.footer-bottom .footer-credit { color: var(--muted); font-size: 0.84rem; }
.footer-bottom .footer-tagline { color: var(--muted); }
.footer-social--bar { gap: 6px; }
.footer-social--bar a { width: 28px; height: 28px; }

/* Template: classic-4col — uses existing .footer-grid columns; brand spans first slot */
.site-footer--classic-4col .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr; }

/* Template: minimal-center */
.site-footer--minimal-center .footer-center {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 20px 20px; gap: 14px;
}
.site-footer--minimal-center .footer-brand-block { align-items: center; max-width: 580px; }
.site-footer--minimal-center .footer-desc { margin: 0; }
.site-footer--minimal-center .footer-bottom { justify-content: center; flex-wrap: wrap; gap: 10px 20px; text-align: center; }

/* Template: brand-newsletter */
.site-footer--brand-newsletter .footer-bn-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px;
  padding: 56px 20px 28px;
}
.site-footer--brand-newsletter .footer-bn-right { display: flex; flex-direction: column; justify-content: center; }
.site-footer--brand-newsletter .footer-bn-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px;
  padding: 0 20px 28px; border-top: 1px solid var(--border); padding-top: 22px;
}

/* Template: dark-cta */
.site-footer--dark-cta { background: #0e1014; color: #d8dbe5; }
.site-footer--dark-cta .footer-cta {
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
  padding: 48px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer--dark-cta .footer-cta__copy h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.site-footer--dark-cta .footer-cta__copy p { margin: 8px 0 0; color: rgba(255,255,255,0.7); max-width: 580px; }
.site-footer--dark-cta .footer-cta__btn {
  background: var(--footer-accent); color: #1a1c2c;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: filter 0.18s ease, transform 0.18s ease;
}
.site-footer--dark-cta .footer-cta__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.site-footer--dark-cta .footer-grid { padding-top: 36px; }
.site-footer--dark-cta .footer-title,
.site-footer--dark-cta .footer-brand { color: #fff; }
.site-footer--dark-cta .footer-links a,
.site-footer--dark-cta .footer-desc,
.site-footer--dark-cta .footer-bottom span { color: rgba(255,255,255,0.72); }
.site-footer--dark-cta .footer-links a:hover { color: #fff; }
.site-footer--dark-cta .footer-bottom { border-top-color: rgba(255,255,255,0.08); }

/* Template: compact-2col */
.site-footer--compact-2col .footer-2col {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding: 36px 20px 22px;
}

/* Template: stacked-mega */
.site-footer--stacked-mega .footer-mega {
  display: grid; grid-template-columns: 1.3fr 3fr; gap: 36px;
  padding: 56px 20px 28px;
}
.site-footer--stacked-mega .footer-mega__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px;
}

/* Template: triple-row (3 satır: marka / sütunlar / CTA + bar) */
.site-footer--triple-row .footer-tr-row { padding: 28px 0; border-bottom: 1px solid var(--border); }
.site-footer--triple-row .footer-tr-row--brand { padding: 48px 20px 28px; }
.site-footer--triple-row .footer-tr-row--brand > .footer-brand-block { max-width: 720px; }
.site-footer--triple-row .footer-tr-row--cols {
  padding: 32px 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px;
}
.site-footer--triple-row .footer-tr-row--cta {
  background: color-mix(in srgb, var(--footer-accent, var(--primary)) 12%, transparent);
  border-bottom: 0; padding: 36px 20px;
}
.site-footer--triple-row .footer-tr-cta { max-width: 640px; margin: 0 auto; text-align: center; }
.site-footer--triple-row .footer-tr-cta .footer-title { font-size: 1.15rem; text-transform: none; letter-spacing: -0.01em; margin-bottom: 6px; }
.site-footer--triple-row .footer-tr-cta .footer-newsletter__form { justify-content: center; }

/* Template: editorial-bold (büyük marka tipografisi + sağda kompakt sütunlar) */
.site-footer--editorial-bold { background: var(--bg-soft); }
.site-footer--editorial-bold .footer-eb-grid {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px;
  padding: 72px 20px 32px;
  align-items: start;
}
.site-footer--editorial-bold .footer-brand-block { max-width: none; gap: 18px; }
.site-footer--editorial-bold .footer-eb-brand .footer-brand {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--heading);
  text-decoration: none;
}
.site-footer--editorial-bold .footer-eb-brand .footer-brand--image img { max-height: 56px; }
.site-footer--editorial-bold .footer-eb-brand .footer-desc {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 460px;
  color: var(--muted);
  margin: 0;
}
/* Chip-style social icons */
.site-footer--editorial-bold .footer-social {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.site-footer--editorial-bold .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--heading);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.site-footer--editorial-bold .footer-social a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  color: var(--footer-accent, var(--primary));
}
.site-footer--editorial-bold .footer-eb-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px;
}
.site-footer--editorial-bold .footer-eb-cols .footer-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}
.site-footer--editorial-bold .footer-eb-cols .footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer--editorial-bold .footer-eb-cols .footer-links a {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--heading);
  padding: 0;
  text-decoration: none;
}
.site-footer--editorial-bold .footer-eb-cols .footer-links a:hover { color: var(--footer-accent, var(--primary)); }
.site-footer--editorial-bold .footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-footer--classic-4col .footer-grid,
  .site-footer--dark-cta .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer--brand-newsletter .footer-bn-grid,
  .site-footer--compact-2col .footer-2col,
  .site-footer--stacked-mega .footer-mega,
  .site-footer--editorial-bold .footer-eb-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer--editorial-bold .footer-eb-grid { padding-top: 48px; align-items: start; }
  .site-footer--dark-cta .footer-cta { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 560px) {
  .site-footer--classic-4col .footer-grid,
  .site-footer--dark-cta .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.page-hero {
  padding: 58px 0 26px;
  text-align: center;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 auto;
  color: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.single-hero {
  padding: 56px 20px 36px;
  text-align: center;
  background: transparent;
}

.single-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}

.single-hero__crumb a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.single-hero__crumb a:hover {
  color: var(--heading);
}

.single-hero__crumb-sep {
  opacity: 0.5;
}

.single-hero__crumb-current {
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary);
}

.single-title-wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.single-hero__byline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.single-hero__author {
  color: var(--link);
  font-weight: 700;
}

.single-hero__author:hover {
  text-decoration: underline;
}

.single-hero__sep {
  color: var(--muted);
  opacity: 0.55;
}

.single-hero__date {
  color: var(--muted);
  font-weight: 500;
}

.single-title-wrap h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.single-lead {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.single-hero__pill {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.single-hero__pill:hover {
  transform: translateY(-1px);
}

/* Continue-reading scroll indicator */
.single-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 36px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
  animation: nlScrollFadeIn 0.6s ease 0.6s both;
}

.single-hero__scroll:hover {
  color: var(--heading);
  transform: translateY(2px);
}

.single-hero__scroll-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.single-hero__scroll-mouse {
  position: relative;
  width: 22px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: block;
}

.single-hero__scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: currentColor;
  animation: nlScrollWheel 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes nlScrollWheel {
  0%   { transform: translateY(0);   opacity: 0; }
  20%  {                              opacity: 1; }
  80%  {                              opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@keyframes nlScrollFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .single-hero__scroll-wheel,
  .single-hero__scroll { animation: none; }
}

.single-hero-img {
  width: min(1100px, calc(100% - 40px));
  height: clamp(300px, 42vw, 540px);
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

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

.article-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: minmax(0, var(--prose)) 300px;
  gap: 48px;
  /* default align-items:stretch so the sidebar column matches article height,
     giving position:sticky children a tall containing block. */
}

.article-content {
  min-width: 0;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 16px;
}

.article-content figure,
.article-content .article-figure {
  margin: 32px 0;
}

.article-content figure img,
.article-content .article-figure img {
  width: 100%;
  margin: 0;
}

.article-content figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

.article-content p,
.article-content li {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.article-content p {
  margin: 0 0 26px;
}

.article-content h2 {
  margin: 44px 0 14px;
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.article-content h3 {
  margin: 36px 0 12px;
  color: var(--heading);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.article-content h4 {
  margin: 28px 0 10px;
  color: var(--heading);
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 700;
}

.article-content a {
  color: var(--link-content);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: var(--heading);
}

.article-content ul,
.article-content ol {
  margin: 0 0 26px;
  padding-left: 28px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin: 0 0 8px;
}

.article-content li::marker {
  color: var(--primary);
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.article-content code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.article-content pre {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: inherit;
}

.article-content hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-content strong {
  color: var(--heading);
  font-weight: 700;
}

.article-content blockquote {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.article-content blockquote p {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.36;
  letter-spacing: -0.04em;
}

/* ── İçerik tabloları (C6 sınıfı: personal temada tablo CSS'i yoktu →
   kenarlıksız/başlıksız okunmaz görünüm). Markdown tabloları .table-wrap ile
   sarılı gelir; ham HTML tabloları da doğrudan stillenir. ── */
.article-content .table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.98rem;
  line-height: 1.55;
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
}
.article-content .table-wrap table {
  margin: 0; /* sarmalayıcı zaten dış boşluğu veriyor */
}
.article-content th,
.article-content td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}
.article-content thead th {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.article-content tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.article-content table code {
  white-space: nowrap;
}

/* Layout setting: sidebar on the left (Customize -> Sidebar -> Position) */
.article-layout--sidebar-left { grid-template-columns: 300px minmax(0, var(--prose)); }
.article-layout--sidebar-left .article-content { order: 2; }
.article-layout--sidebar-left .article-sidebar { order: 1; }

/* Archive / search / author pages with sidebar (Customize -> Sidebar visibility) */
.archive-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.archive-with-sidebar--left { grid-template-columns: 300px minmax(0, 1fr); }
.archive-with-sidebar--left .archive-main { order: 2; }
.archive-with-sidebar--left .article-sidebar { order: 1; }
.archive-with-sidebar .archive-main { min-width: 0; }
.archive-with-sidebar .archive-main .container { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
@media (max-width: 960px) {
  .archive-with-sidebar,
  .archive-with-sidebar--left { grid-template-columns: 1fr; }
  .archive-with-sidebar--left .archive-main { order: 1; }
  .archive-with-sidebar--left .article-sidebar { order: 2; }
}

/* Customize -> Görünüm -> Tipografi: değişken bağları.
   Varsayılan değerler mevcut görünümle BİREBİR — ayar dokunulmadıkça sıfır kayma. */
.article-content p,
.article-content li { font-size: calc(clamp(1.05rem, 1.5vw, 1.15rem) * var(--content-scale, 1)); line-height: var(--lh-base, 1.75); }
.article-content p { margin: 0 0 var(--p-gap, 26px); }
.article-content h2 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--heading-scale, 1)); }
.article-content h3 { font-size: calc(clamp(1.3rem, 2.4vw, 1.6rem) * var(--heading-scale, 1)); }
.section-title { font-size: calc(clamp(1.5rem, 2.4vw, 2.1rem) * var(--heading-scale, 1)); }
.single-title-wrap h1 { font-size: calc(clamp(2.1rem, 4.4vw, 3.4rem) * var(--heading-scale, 1)); }
.hero-title { font-size: calc(clamp(1.6rem, 2.6vw, 2.4rem) * var(--heading-scale, 1)); }

/* Layout setting: compact post header (Customize -> Post page -> Header style) */
.single-hero--compact { padding: 30px 20px 18px; text-align: left; }
.single-hero--compact .single-title-wrap { margin: 0 auto; text-align: left; max-width: min(1180px, calc(100% - 4px)); }
.single-hero--compact .single-title-wrap h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.single-hero--compact .single-hero__crumb { justify-content: flex-start; }
.single-hero--compact .single-lead { margin-left: 0; max-width: 720px; }
.single-hero--compact .single-hero__byline { margin-left: 0; }

/* Layout variant: author box as centered card (Customize -> Post page card) */
.author-box--card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border, rgba(13, 12, 29, 0.08));
  border-radius: 20px;
  padding: 30px 26px;
}
.author-box--card .author-avatar { width: 92px; height: 92px; }
.author-box--card .social-row { justify-content: center; }

/* Layout setting: square avatars (author box + sidebar author card) */
.avatar-square .author-avatar,
.avatar-square .author-mini__avatar,
.avatar-square.author-box .author-avatar,
.avatar-square.author-mini .author-mini__avatar { border-radius: 14px; }

/* Layout variant: minimal comments (no avatars, tighter list) */
.comments-section--minimal .comment__avatar { display: none; }
.comments-section--minimal .comment { gap: 0; }
.comments-section--minimal .comment__body { padding-left: 0; }

/* Generic sidebar widgets (recent / categories / tags / newsletter / custom) */
.sb-widget {
  background: var(--surface);
  border: 1px solid var(--border, rgba(13, 12, 29, 0.08));
  border-radius: 16px;
  padding: 18px 20px;
}
.sb-widget__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}
.sb-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-widget__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sb-widget__list a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  min-width: 0;
}
.sb-widget__list a:hover { text-decoration: underline; }
.sb-widget__meta { flex: none; font-size: 0.75rem; opacity: 0.6; white-space: nowrap; }
.sb-widget__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form--stack { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.newsletter-form--stack input[type="email"] { width: 100%; }
.newsletter-form--stack .btn { width: 100%; }

.article-sidebar {
  /* IMPORTANT: no flex / no align-self:start here.
     The grid column must stretch to the article's height so position:sticky
     children inside .sidebar-sticky have a tall containing block to scroll within. */
  min-width: 0;
}

.article-sidebar > * + * {
  margin-top: 18px;
}

.toc,
.share-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-soft);
}

:root[data-theme="dark"] .toc,
:root[data-theme="dark"] .share-card {
  background: var(--surface);
}

.sidebar-sticky {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Only clamp height when content is taller than viewport */
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar-sticky::-webkit-scrollbar { width: 6px; }
.sidebar-sticky::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }

@media (max-width: 1100px) {
  .sidebar-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.toc h3,
.share-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.toc__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.toc__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.toc__progress {
  height: 3px;
  margin: 0 0 12px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.toc__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.toc__list {
  display: flex;
  flex-direction: column;
}

.toc__list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.toc__list a:last-child {
  border-bottom: 0;
}

.toc__list a:hover,
.toc__list a.is-active {
  color: var(--heading);
}

.toc__list a.toc__sub {
  padding-left: 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Compact author-mini card — clean white box style */
.author-mini {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(13, 12, 29, 0.05);
  text-align: center;
}

:root[data-theme="dark"] .author-mini {
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.author-mini__bio {
  text-align: center;
  max-width: 260px;
  margin: 12px auto 0;
}

.author-mini__foot {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-top: 0;
  padding-top: 4px;
}

.author-mini__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.author-mini__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--primary);
}

.author-mini__meta {
  min-width: 0;
  text-align: center;
  width: 100%;
}

.author-mini__label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.author-mini__meta h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.author-mini__meta h3 a {
  color: inherit;
}

.author-mini__bio {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.author-mini__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.author-mini__more {
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.author-mini__social {
  display: flex;
  gap: 6px;
}

.author-mini__social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.author-mini__social a:hover {
  background: var(--primary);
  color: #fff;
}

/* Author hero (author archive page) avatar */
.author-avatar,
.author-hero__avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--primary);
}

.share-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-row a,
.social-row a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s ease;
}

.share-row a:hover,
.social-row a:hover {
  border-color: var(--primary);
  color: var(--heading);
  background: var(--surface);
  transform: translateY(-2px);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.author-box {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-soft);
  position: relative;
}

:root[data-theme="dark"] .author-box {
  background: var(--surface);
}

.author-box .author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 24px rgba(13, 12, 29, 0.08);
}

.author-box > div {
  min-width: 0;
}

.author-box h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-box h3 a {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--heading);
  text-decoration: none;
}

.author-box h3 a:hover {
  color: var(--link-content);
}

.author-box .section-copy {
  margin: 0 0 14px;
  max-width: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 22px;
  }
  .author-box .author-avatar {
    margin: 0 auto;
    width: 88px;
    height: 88px;
  }
  .author-box h3 {
    justify-content: center;
  }
  .author-box .social-row {
    justify-content: center;
  }
}

.about-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 30px;
}

.about-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
}

.about-side {
  display: grid;
  gap: 22px;
}

.info-card {
  padding: 28px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  letter-spacing: -0.045em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 36px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.checkline.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 900;
}

.form-field input,
.form-field textarea,
.form-field select {
  min-height: 52px;
  padding: 0 16px;
}

.form-field textarea {
  min-height: 150px;
  padding-top: 14px;
  resize: vertical;
}

.legal-layout {
  width: min(980px, calc(100% - 40px));
  margin: 34px auto 0;
}

/* Last-updated badge in hero */
.legal-meta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.legal-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-meta__badge strong {
  color: var(--heading);
  font-weight: 800;
}

/* Two-column shell for legal & about */
.legal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legal-toc-wrap {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

@media (max-width: 960px) {
  .legal-toc-wrap {
    position: static;
  }
}

.legal-toc {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-soft);
  overflow: hidden;
  min-width: 0;
}

:root[data-theme="dark"] .legal-toc {
  background: var(--surface);
}

.legal-toc__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-toc__head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-toc__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: legal-toc;
}

.legal-toc__list li {
  counter-increment: legal-toc;
  margin-bottom: 4px;
}

.legal-toc__list a {
  display: block;
  padding: 8px 8px 8px 32px;
  position: relative;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc__list a::before {
  content: counter(legal-toc, decimal-leading-zero);
  position: absolute;
  left: 6px;
  top: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.legal-toc__list a:hover,
.legal-toc__list a.is-active {
  background: var(--surface);
  color: var(--heading);
}

:root[data-theme="dark"] .legal-toc__list a:hover,
:root[data-theme="dark"] .legal-toc__list a.is-active {
  background: rgba(255, 255, 255, 0.06);
}

/* Pro legal card with numbered sections */
.legal-card--pro {
  padding: clamp(32px, 4.5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 6px 28px rgba(13, 12, 29, 0.05);
  counter-reset: legal-h2;
}

:root[data-theme="dark"] .legal-card--pro {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.legal-card--pro h2 {
  counter-increment: legal-h2;
  position: relative;
  margin: 44px 0 16px;
  padding-left: 56px;
  font-size: 1.4rem;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.legal-card--pro h2:first-child {
  margin-top: 0;
}

.legal-card--pro h2::before {
  content: counter(legal-h2, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #EEF1FF;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .legal-card--pro h2::before {
  color: #EEF1FF;
  background: color-mix(in srgb, var(--primary) 28%, transparent);
}

.legal-card--pro p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
  margin: 0 0 18px;
  padding-left: 56px;
}

.legal-card--pro ul,
.legal-card--pro ol {
  padding-left: 76px;
  margin: 0 0 18px;
}

.legal-card--pro li {
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-card--pro h2 + ul,
.legal-card--pro h2 + ol {
  margin-top: -8px;
}

@media (max-width: 600px) {
  .legal-card--pro h2 {
    padding-left: 0;
    padding-top: 56px;
  }
  .legal-card--pro h2::before {
    top: 0;
  }
  .legal-card--pro p,
  .legal-card--pro ul,
  .legal-card--pro ol {
    padding-left: 0;
  }
}

/* Pro related links — proper card grid (not dropdowns) */
.legal-related-pro {
  margin-top: 56px;
  width: min(980px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.legal-related-pro__title {
  margin: 0 0 18px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

.legal-related-pro__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.legal-related-pro__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.legal-related-pro__card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(103, 87, 245, 0.12);
}

.legal-related-pro__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.legal-related-pro__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.legal-related-pro__label {
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-related-pro__hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* About stats card */
.about-stats {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-soft);
  overflow: hidden;
  min-width: 0;
}

:root[data-theme="dark"] .about-stats {
  background: var(--surface);
}

.about-stats__title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-stats__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.about-stats__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 4px;
  min-width: 0;
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}

:root[data-theme="dark"] .about-stats__cell {
  background: rgba(255, 255, 255, 0.04);
}

.about-stats__num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.about-stats__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.5rem;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin-top: 26px;
  font-size: 1.2rem;
  color: var(--heading);
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-card p {
  margin: 0 0 18px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.legal-card ul { list-style: disc; }
.legal-card ol { list-style: decimal; }

.legal-card li {
  margin-bottom: 8px;
}

.legal-card li::marker {
  color: var(--primary);
}

.legal-card a {
  color: var(--link-content);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.legal-card a:hover {
  color: var(--heading);
}

.legal-card em {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.legal-card strong {
  color: var(--heading);
  font-weight: 700;
}

.author-hero {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
}

.author-hero .author-avatar {
  width: 168px;
  height: 168px;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

.author-hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.075em;
}

.category-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 24px 20px 12px;
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.archive-item img {
  width: 180px;
  height: 128px;
  object-fit: cover;
  border-radius: 18px;
}

.archive-item h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.error-wrap {
  min-height: calc(100vh - 420px);
  display: grid;
  place-items: center;
  padding: 74px 0;
}

.error-panel {
  width: min(760px, calc(100% - 40px));
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
}

.error-code {
  color: var(--primary);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.error-panel h1 {
  margin: 28px 0 10px;
  color: var(--heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    order: 3;
  }

  .header-actions {
    justify-self: end;
    order: 2;
  }

  .brand {
    min-width: 0;
    order: 1;
  }

  .nav {
    position: fixed;
    inset: 78px 20px auto;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  /* Dim + block the page behind the open mobile menu. Backdrop sits below
     the header (z-index:30) so the hamburger stays tappable to close, but
     above page content so the hero text can't bleed through the panel. */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(10, 9, 20, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    border-radius: 16px;
  }

  .search-box {
    width: 170px;
  }

  .home-intro-grid,
  .category-layout,
  .contact-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container,
  .container-wide,
  .legal-layout,
  .single-hero-img,
  .article-layout {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 72px;
    gap: 10px;
  }

  .brand-copy span {
    display: none;
  }

  .search-box {
    display: none;
  }

  .hero-slider {
    min-height: 610px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 38px 28px;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    opacity: 0.62;
  }

  .card-note {
    width: 260px;
    left: 40%;
    top: 36%;
  }

  .card-video {
    right: 12%;
    top: 12%;
    width: 150px;
    height: 108px;
  }

  .card-chat {
    right: 5%;
    top: 34%;
    width: 140px;
    height: 92px;
  }

  .chip-heart {
    left: 52%;
    top: 8%;
  }

  .slider-controls {
    left: 28px;
    right: auto;
  }

  .featured-card,
  .topic-strip,
  .cta-band,
  .about-mosaic,
  .author-hero,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .lab-grid,
  .icon-category-grid,
  .posts-grid,
  .values-grid,
  .footer-grid,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-bottom,
  .footer-bottom {
    display: grid;
  }

  .author-hero {
    text-align: center;
  }

  .author-hero .author-avatar {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 22px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .icon-btn,
  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 16vw, 4.6rem);
  }

  .section {
    margin-top: 56px;
  }

  .list-item,
  .mini-card,
  .author-box,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .list-item img,
  .mini-card img,
  .archive-item img {
    width: 100%;
    height: 190px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   v2 additions — reading progress, breadcrumbs,
   category/author hero, lab-grid auto-fill,
   legal-related, error-search, soft error code
   ============================================ */

/* Top-of-page reading progress bar (single posts only) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

:root[data-theme="dark"] .reading-progress {
  background: rgba(255, 255, 255, 0.08);
}

.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.12s linear;
}

/* Lab/Categories grid — 8 items per row on desktop */
.icon-category-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1100px) {
  .icon-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .icon-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .icon-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.icon-category {
  position: relative;
}

.icon-category h3 {
  font-size: 0.88rem;
  margin: 2px 0 0;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--heading);
  line-height: 1.2;
}

:root[data-theme="dark"] .icon-category h3 {
  color: #fff;
}

.lab-card__count {
  position: static;
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .lab-card__count {
  color: rgba(255, 255, 255, 0.4);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--heading);
}

.breadcrumb__sep {
  opacity: 0.55;
}

.breadcrumb__current {
  color: var(--heading);
}

/* Category-hero (archive page) icon + meta */
.category-hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.category-hero__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(103, 87, 245, 0.25);
}

.category-hero__icon svg {
  width: 30px;
  height: 30px;
}

.category-hero__main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.category-hero__main .eyebrow {
  margin: 0;
}

.category-hero__main .section-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.category-hero__main .section-copy {
  margin: 4px 0 0;
  text-align: center;
}

.category-hero__meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.category-hero__count {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .category-hero__icon {
    width: 56px;
    height: 56px;
  }
  .category-hero__icon svg {
    width: 26px;
    height: 26px;
  }
}

/* Author hero (richer) */
.author-hero {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  margin-top: 18px;
}

.author-hero__avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--primary);
}

.author-hero__avatar--placeholder {
  display: grid;
}

.author-hero__body h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.author-hero__body .section-copy {
  margin: 0 0 14px;
  max-width: 560px;
}

.author-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.author-hero__count {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--heading);
  font-weight: 800;
}

.author-hero__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.author-hero__email {
  color: var(--link);
}

.author-hero__cta {
  align-self: center;
}

@media (max-width: 800px) {
  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-hero__avatar {
    margin: 0 auto;
  }
  .author-hero__cta {
    justify-self: center;
  }
}

/* Legal related cards (under legal-card) */
.legal-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.legal-related__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 800;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.legal-related__card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.legal-related__arrow {
  color: var(--primary);
  font-size: 1.05rem;
}

/* Error page softening */
.error-code--soft {
  font-size: clamp(4rem, 12vw, 8rem);
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.65;
  line-height: 1;
}

.error-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.error-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--heading);
  font-size: 0.95rem;
  outline: none;
}

.error-search .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.error-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Section-head with right-side CTA button */
.section-head .btn-secondary {
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ============================================
   Comments
   ============================================ */
.comments-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.comments-section .section-head {
  margin-bottom: 24px;
}

.comments-section .section-title {
  font-size: 1.4rem;
}

.comments-list-wrap {
  margin-bottom: 36px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-list--nested {
  margin-top: 16px;
  padding-left: 56px;
  border-left: 2px solid var(--border);
}

.comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.comment-list--nested .comment:last-child {
  border-bottom: 0;
}

.comment-list > .comment:last-child {
  border-bottom: 0;
}

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--primary);
}

.comment__body {
  min-width: 0;
}

.comment__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.comment__author {
  color: var(--heading);
  font-weight: 800;
}

.comment__author a {
  color: inherit;
}

.comment__date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.comment__date::before {
  content: "·";
  margin-right: 8px;
  color: var(--faint);
}

.comment__content {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.comment__content p:first-child { margin-top: 0; }
.comment__content p:last-child  { margin-bottom: 0; }

.comment__reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}

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

.comment-form-wrap {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(13, 12, 29, 0.05);
}

:root[data-theme="dark"] .comment-form-wrap {
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.comment-form-wrap h3 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.comment-form-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.comment-form-cancel strong {
  color: var(--heading);
  font-weight: 700;
}

.comment-form-cancel button {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.comment-form-cancel button:hover {
  color: var(--heading);
  background: var(--surface-2);
}

.comment-form__msg {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.comments-section .form-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .comment-list--nested {
    padding-left: 24px;
  }
  .comment {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .comment__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* ==================================================================
   Menu tasarim varyantlari + header sosyal ikonlari (Ozellestir → Menu)
   Varsayilan (classic + sticky, sosyal kapali) mevcut gorunumle birebir.
   ================================================================== */
.site-header--static { position: static; }

.header-socials { display: inline-flex; align-items: center; gap: 8px; }
.header-socials a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  border-radius: 10px;
  transition: color .15s, background .15s;
}
.header-socials a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.header-socials svg { width: 16px; height: 16px; display: block; }

/* Ortalanmis: marka ustte ortada, menu altinda ortada, araclar sag ustte */
.site-header--centered .header-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  row-gap: 8px;
  padding-top: 14px;
  padding-bottom: 10px;
  position: relative;
  min-height: 0;
}
.site-header--centered .header-actions {
  position: absolute;
  top: 14px;
  right: 0;
}
@media (max-width: 900px) {
  .site-header--centered .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    row-gap: 0;
    position: static;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 82px;
  }
  .site-header--centered .header-actions { position: static; }
}

/* Ince: alcak serit, kucuk marka ve baglantilar (slider degerlerini oransal izler) */
.site-header--slim .header-inner { min-height: 58px; gap: 14px; }
.site-header--slim .brand-mark {
  width: calc(var(--menu-logo, 42px) * 0.76);
  height: calc(var(--menu-logo, 42px) * 0.76);
  flex-basis: calc(var(--menu-logo, 42px) * 0.76);
  border-radius: 10px;
}
.site-header--slim .brand-copy strong { font-size: 15px; }
.site-header--slim .brand-copy span { display: none; }
.site-header--slim .nav a { font-size: 13.5px; }
.site-header--slim .search-box input { padding-top: 7px; padding-bottom: 7px; }

/* Yuzen kutu: header seffaf, ic bar sayfadan ayrik yuvarlatilmis kutu */
.site-header--boxed {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.site-header--boxed .header-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(13, 12, 29, 0.08);
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 12px;
  margin-bottom: 6px;
}
[data-theme="dark"] .site-header--boxed .header-inner { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); }

/* Cift katli: ustte marka + araclar, altta tam-genislik ince menu seridi */
@media (min-width: 901px) {
  .site-header--double .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand spacer actions" "nav nav nav";
    row-gap: 0;
    padding-top: calc(var(--menu-pady, 0px) + 12px);
    padding-bottom: 0;
    min-height: 0;
  }
  .site-header--double .brand { grid-area: brand; }
  .site-header--double .header-actions { grid-area: actions; }
  .site-header--double .nav {
    grid-area: nav;
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding: 10px 0 calc(var(--menu-pady, 0px) + 10px);
  }
}

/* C149: menü içi arama — masaüstünde gizli, mobil panelde görünür.
   Başlıktaki .search-box <=1100px kapanıyor ve telefonda arama hiç kalmıyordu. */
.nav .nav-search { display: none; }
@media (max-width: 1100px) {
  .nav .nav-search { display: flex; align-items: center; width: 100%; height: 44px;
    margin: 0 0 14px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 10px; }
  .nav .nav-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
    color: inherit; padding: 0 12px; font-size: 15px; }
}

/* Alt kunye (jek-footbar) `color: inherit` + `opacity: .78` uyguluyor; devralinan
   --muted ile etkin oran 3.07:1'e dusuyordu. Yalnizca bu kapsayiciya ayni rengin
   koyulastirilmis turevi verildi (color-mix yoksa sabit deger). */
.site-footer .footer-bottom { color: #484754; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .site-footer .footer-bottom { color: color-mix(in srgb, var(--muted) 66%, #000); }
    :root[data-theme="dark"] .site-footer .footer-bottom { color: var(--muted); }
}
