/* =========================================================================
   Medihaber — Tasarım Sistemi
   OKLCH tokens, components, responsive
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: oklch(13% 0.005 280);
  --surface: oklch(18% 0.006 280);
  --surface-2: oklch(22% 0.007 280);
  --border: oklch(28% 0.008 280 / 0.5);
  --border-strong: oklch(35% 0.01 280 / 0.7);
  --text: oklch(97% 0.005 280);
  --text-dim: oklch(75% 0.008 280);
  --text-mute: oklch(55% 0.008 280);
  --accent: oklch(78% 0.16 75);
  --accent-deep: oklch(68% 0.16 50);
  --accent-soft: oklch(78% 0.16 75 / 0.12);
  --live: oklch(65% 0.22 25);
  --green: oklch(72% 0.20 145);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1320px;
  --max-w-prose: 720px;
  --shadow-card: 0 12px 32px oklch(0% 0 0 / 0.5);
  --shadow-card-hover: 0 16px 40px oklch(0% 0 0 / 0.65);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: oklch(15% 0 0); }

/* =========================================================================
   Erişilebilirlik: odak göstergesi
   ========================================================================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   Layout yardımcıları
   ========================================================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--max-w-prose); margin: 0 auto; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(13% 0.005 280 / 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav .subscribe {
  background: var(--accent);
  color: oklch(15% 0 0);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  min-height: 36px;
}
.main-nav .subscribe:hover { background: var(--accent-deep); }
.search-icon {
  color: var(--text-mute);
  font-size: 1.1rem;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.search-icon:hover, .search-icon:focus-visible { color: var(--text); background: oklch(100% 0 0 / 0.05); }
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.mobile-menu-btn[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-btn[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* =========================================================================
   BREAKING NEWS MARQUEE
   ========================================================================= */
.breaking-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
  overflow: hidden;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.breaking-label {
  background: var(--live);
  color: oklch(100% 0 0);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.breaking-marquee {
  flex: 1;
  overflow: hidden;
  height: 1.3rem;
}
.breaking-marquee:hover .breaking-marquee-inner,
.breaking-marquee:focus-within .breaking-marquee-inner {
  animation-play-state: paused;
}
.breaking-marquee-inner {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  will-change: transform;
}
.breaking-marquee-inner a {
  color: var(--text-dim);
  font-size: 0.78rem;
  transition: color 0.2s var(--ease-out);
}
.breaking-marquee-inner a:hover { color: var(--accent); }
.breaking-marquee-inner .sep {
  color: oklch(100% 0 0 / 0.12);
  line-height: 1.3rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .breaking-wrap { display: none; }
}

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb {
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a {
  color: var(--text-mute);
  transition: color 0.2s var(--ease-out);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: oklch(100% 0 0 / 0.15); }
.breadcrumb [aria-current="page"] { color: var(--text-dim); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand .logo img { height: 28px; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { color: var(--text-mute); line-height: 1.5; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.footer-col a {
  display: block;
  color: var(--text-mute);
  padding: 0.3rem 0;
  min-height: 32px;
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-mute);
  font-size: 0.7rem;
}
.social { display: flex; gap: 0.5rem; }
.social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-mute);
  font-size: 0.85rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* =========================================================================
   NEWS CARD (reusable)
   ========================================================================= */
.news-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.news-card:hover, .news-card:focus-visible {
  border-color: oklch(78% 0.16 75 / 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}
.news-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--surface-2);
}
.news-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.news-card:hover .news-card-img,
.news-card:focus-visible .news-card-img { transform: scale(1.06); }
.news-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, oklch(13% 0.005 280 / 0.65) 0%, transparent 55%);
}
.news-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(15% 0 0);
  background: var(--accent);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  z-index: 2;
  line-height: 1;
}
.news-card-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
}
.news-card-time {
  font-size: 0.65rem; color: var(--text-mute);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.news-card-time::before {
  content: '';
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: 0.6;
}
.news-card-title {
  font-size: 0.85rem; font-weight: 600; line-height: 1.32; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================================
   BUTTON
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: oklch(15% 0 0);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateX(2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-dim); background: oklch(100% 0 0 / 0.04); }

/* =========================================================================
   PAGE LAYOUT
   ========================================================================= */
.page {
  padding: 1.5rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.page-lead {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.page-section {
  margin-bottom: 3rem;
}
.page-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.page-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-section p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.page-section ul, .page-section ol {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}
.page-section li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.page-section strong { color: var(--text); font-weight: 600; }
.page-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-section a:hover { color: var(--accent-deep); }

/* =========================================================================
   KÜNYE — Team grid
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.team-member {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out);
}
.team-member:hover { border-color: var(--border-strong); }
.team-member .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: oklch(15% 0 0);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.team-member h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.team-member .role {
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.team-member p {
  font-size: 0.82rem;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   CONTACT FORM
   ========================================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-grid > .form-field--full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}
.form-field label .req { color: var(--accent); margin-left: 0.15rem; }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
  font-family: inherit;
  min-height: 44px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--border-strong); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--accent); background: var(--surface-2); }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--live); }
.form-field .help { font-size: 0.72rem; color: var(--text-mute); }
.form-field .error { font-size: 0.78rem; color: var(--live); display: none; }
.form-field.has-error .error { display: block; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--live); }
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.form-status {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}
.form-status.is-success { display: block; background: oklch(72% 0.20 145 / 0.12); color: var(--green); border: 1px solid oklch(72% 0.20 145 / 0.3); }
.form-status.is-error { display: block; background: oklch(65% 0.22 25 / 0.12); color: var(--live); border: 1px solid oklch(65% 0.22 25 / 0.3); }

/* =========================================================================
   ACCORDION (FAQ)
   ========================================================================= */
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.accordion details:hover { border-color: var(--border-strong); }
.accordion summary {
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-mute);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.accordion .answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* =========================================================================
   CATEGORY PAGE
   ========================================================================= */
.category-hero {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.category-hero .eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.category-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.category-hero p {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.55;
}
.category-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.category-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.category-grid .news-card-title { font-size: 0.95rem; -webkit-line-clamp: 3; }
.category-grid .news-card-body { padding: 0.85rem 1rem 1rem; }

/* =========================================================================
   PAGINATION
   ========================================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
}
.pagination a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.pagination [aria-current="page"] {
  background: var(--accent);
  color: oklch(15% 0 0);
  border-color: var(--accent);
}
.pagination .ellipsis { border: none; color: var(--text-mute); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */
.article {
  padding: 1rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-header {
  max-width: var(--max-w-prose);
  margin: 0 auto 2rem;
}
.article-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-decoration: none;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: var(--accent-soft);
  transition: background 0.2s var(--ease-out);
}
.article-header .eyebrow:hover { background: oklch(78% 0.16 75 / 0.2); }
.article-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.article-header .lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.byline .author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
}
.byline .avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: oklch(15% 0 0);
  font-size: 0.7rem;
}
.byline .sep { color: oklch(100% 0 0 / 0.15); }
.article-hero-image {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.article-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: oklch(85% 0.005 280);
  background: linear-gradient(0deg, oklch(8% 0.005 280 / 0.85) 0%, transparent 100%);
}
.article-body {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.article-body > * + * { margin-top: 1.25rem; }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.5rem;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  line-height: 1.3;
}
.article-body p { color: var(--text-dim); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--accent-deep); }
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  color: var(--text-dim);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: normal;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 1.75rem 0;
}
.article-body blockquote p { color: var(--text); }
.article-body blockquote cite {
  display: block;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-style: normal;
  margin-top: 0.5rem;
  font-weight: 500;
}
.article-body figure {
  margin: 2rem 0;
}
.article-body figure img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-body figure figcaption {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
  text-align: center;
}

.article-footer {
  max-width: var(--max-w-prose);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.share-buttons { display: flex; gap: 0.5rem; }
.share-buttons button {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease-out);
  background: var(--surface);
}
.share-buttons button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================================================================
   RESPONSIVE — TABLET
   ========================================================================= */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > .form-field--full { grid-column: 1; }
}

/* =========================================================================
   RESPONSIVE — MOBILE
   ========================================================================= */
@media (max-width: 768px) {
  .header-inner { padding: 0.6rem 0.85rem; gap: 0.5rem; }
  .logo-text { font-size: 1.1rem; }
  .mobile-menu-btn { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  .main-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    min-height: 48px;
  }

  .page { padding: 1rem 0.85rem 3rem; }
  .page-title { font-size: 1.6rem; }
  .page-lead { font-size: 0.92rem; }
  .page-section h2 { font-size: 1.2rem; }
  .page-section p, .page-section li { font-size: 0.9rem; }

  .breadcrumb { padding: 0.5rem 0.85rem; font-size: 0.7rem; }

  .site-footer { padding: 1.5rem 0.85rem 1rem; margin-top: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .category-hero { padding: 0.5rem 0 1.5rem; margin-bottom: 1.5rem; }
  .category-hero h1 { font-size: 1.6rem; }
  .category-grid { grid-template-columns: 1fr; gap: 0.85rem; }

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

  .article { padding: 0.5rem 0.85rem 3rem; }
  .article-header h1 { font-size: 1.6rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.1rem; }
  .byline { font-size: 0.78rem; }
  .article-footer { flex-direction: column; align-items: flex-start; }

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

  .pagination { gap: 0.3rem; margin-top: 2rem; padding-top: 1.5rem; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; font-size: 0.8rem; }
}

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

/* =========================================================================
   BACKGROUND IMAGE (homepage only)
   ========================================================================= */
.full-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease-out);
}
.full-bg .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      oklch(13% 0.005 280 / 0.94) 0%,
      oklch(13% 0.005 280 / 0.50) 45%,
      oklch(13% 0.005 280 / 0.90) 100%);
  z-index: 1;
}
