/* Modern Diabetes News Portal - sukeret2.com (IS 5568 AA Accessible & Vercel Ready) */
:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --brand-primary: #0369a1;
  --brand-dark: #075985;
  --brand-accent: #047857;
  --brand-urgent: #be123c;
  --border-color: #cbd5e1;
  --card-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-hover-shadow: 0 12px 26px -4px rgba(15, 23, 42, 0.11), 0 4px 10px -2px rgba(3, 105, 161, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --base-font-size: 16px;
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-surface: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.92);
  --bg-subtle: #0f172a;
  --text-main: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --brand-primary: #38bdf8;
  --brand-dark: #0284c7;
  --brand-accent: #10b981;
  --border-color: #334155;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.5);
}

/* Accessibility Modes (ת"י 5568) */
html.a11y-high-contrast {
  --bg-primary: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --bg-glass: #000000 !important;
  --bg-subtle: #171717 !important;
  --text-main: #ffff00 !important;
  --text-secondary: #ffffff !important;
  --text-muted: #e5e5e5 !important;
  --brand-primary: #00ffff !important;
  --brand-accent: #00ff00 !important;
  --border-color: #ffff00 !important;
}

html.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  font-weight: 700 !important;
}

html.a11y-readable-font body,
html.a11y-readable-font .article-content * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.015em !important;
}

html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

body {
  font-family: 'Rubik', 'Heebo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.55;
  direction: rtl;
  text-align: right;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Mandatory Visible Keyboard Focus State (IS 5568 / WCAG 2.0 AA) */
:focus-visible {
  outline: 3px solid #0284c7 !important;
  outline-offset: 3px !important;
}

/* Skip to Content Link */
.skip-link {
  position: fixed;
  top: -100px;
  right: 1.5rem;
  background: #0369a1;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 800;
  z-index: 10000;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Breaking News Ticker */
.breaking-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.45rem 0;
}

.breaking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.breaking-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.live-badge {
  background: var(--brand-urgent);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.ticker-items {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker-items::-webkit-scrollbar { display: none; }

.ticker-item {
  color: #f1f5f9;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ticker-item:hover {
  color: #38bdf8;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0369a1, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.brand-titles .site-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0;
}

.brand-titles p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.search-box {
  position: relative;
}

.search-box input {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.48rem 2.1rem 0.48rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  width: 230px;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--brand-primary);
  width: 270px;
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #0369a1;
  color: #ffffff;
}
.btn-primary:hover {
  background: #075985;
}

.btn-accent {
  background: #047857;
  color: #ffffff;
}
.btn-accent:hover {
  background: #065f46;
}

.btn-ghost {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--brand-primary);
}

/* Category Navigation Pills */
.hub-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-nav::-webkit-scrollbar { display: none; }

.hub-pill {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hub-pill:hover, .hub-pill.active {
  background: #0369a1;
  color: #ffffff;
  border-color: #0369a1;
}

/* Hero Bento Grid */
.hero-section {
  padding: 1.5rem 0 0.75rem;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.25rem;
}

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

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--card-shadow);
}

.hero-main-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.hero-main-card:hover img {
  transform: scale(1.03);
  opacity: 0.62;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  background: linear-gradient(0deg, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.84) 68%, rgba(15,23,42,0.3) 100%);
  color: #ffffff;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.hero-overlay h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.hero-overlay p {
  color: #f1f5f9;
  font-size: 0.93rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.side-story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.side-story-card img {
  width: 110px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.side-story-card h3 {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.2rem 0 0.35rem;
  color: var(--text-main);
}

/* Main Portal Layout (News Feed + Monetization Sidebar) */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.75rem;
  margin: 1.75rem 0 3rem;
  align-items: start;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.22rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.15rem;
}

.news-card-wrap {
  container-type: inline-size;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--brand-primary);
}

.news-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.news-card-body p {
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Monetization & Interactive Widgets Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.widget-box.highlight-gradient {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.widget-badge {
  display: inline-block;
  background: #065f46;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.widget-box h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.calc-form {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-input-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.calc-input-group input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
}

.calc-result {
  background: var(--bg-subtle);
  border-right: 4px solid var(--brand-primary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.calc-result .big-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-primary);
}

/* Lead Magnet Box */
.lead-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  font-size: 0.86rem;
  color: #f1f5f9;
}
.lead-list li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lead-form input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-family: inherit;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
}
.lead-form input[type="email"]::placeholder { color: #cbd5e1; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: #e2e8f0;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: #10b981;
  cursor: pointer;
}

/* Single Article Page Layout & Unified Clean Typography */
.article-header {
  padding: 1.5rem 0 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand-primary); }

.article-title {
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.author-eeat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 0.9rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0369a1, #047857);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.summary-box {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.07) 0%, rgba(4, 120, 87, 0.07) 100%);
  border: 1px solid rgba(3, 105, 161, 0.25);
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0 1.5rem;
}

.summary-box h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.summary-box ul {
  padding-right: 1.15rem;
  font-size: 0.93rem;
  line-height: 1.55;
}
.summary-box li {
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* UNIFIED ARTICLE CONTENT TYPOGRAPHY */
.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  font-size: 1rem !important;
  line-height: 1.62 !important;
  color: var(--text-main);
  box-shadow: var(--card-shadow);
}

.article-content * {
  font-family: 'Rubik', 'Heebo', system-ui, sans-serif !important;
}

.article-content p, .article-content li, .article-content span, .article-content div {
  font-size: 1rem !important;
  line-height: 1.62 !important;
}

.article-content p {
  margin-bottom: 0.95rem !important;
}

.article-content h2 {
  font-size: 1.3rem !important;
  line-height: 1.35 !important;
  margin: 1.5rem 0 0.6rem !important;
  color: var(--text-main) !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

.article-content h3, .article-content h4 {
  font-size: 1.12rem !important;
  line-height: 1.4 !important;
  margin: 1.25rem 0 0.5rem !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
}

.article-content ul, .article-content ol {
  margin: 0.75rem 0 1.15rem !important;
  padding-right: 1.35rem !important;
}

.article-content li {
  margin-bottom: 0.4rem !important;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 1.15rem auto;
}

.article-content a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inline "Read Also" Box inside articles */
.inline-related-box {
  background: var(--bg-subtle);
  border-right: 4px solid var(--brand-accent);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.inline-related-box strong {
  font-weight: 800;
  color: var(--brand-accent);
  font-size: 0.92rem !important;
}

.inline-related-box a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.95rem !important;
}
.inline-related-box a:hover {
  color: var(--brand-primary);
}

/* Scientific Study Citation Box */
.study-citation-box {
  background: rgba(3, 105, 161, 0.05);
  border: 1px solid rgba(3, 105, 161, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.88rem !important;
}

.study-citation-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-primary);
}

.in-article-cta {
  margin: 1.8rem 0;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.in-article-cta a {
  text-decoration: none !important;
  color: #ffffff !important;
}

.medical-disclaimer {
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.84rem !important;
  color: var(--text-secondary);
}

/* Floating Accessibility Toolbar (ת"י 5568) */
.a11y-widget {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9999;
}

.a11y-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0369a1;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.a11y-toggle-btn:hover {
  transform: scale(1.06);
  background: #075985;
}

.a11y-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 280px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.28);
  display: none;
}
.a11y-panel.open {
  display: block;
}

.a11y-panel h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.a11y-action-btn {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.a11y-action-btn:hover, .a11y-action-btn[aria-pressed="true"] {
  background: #0369a1;
  color: #ffffff;
  border-color: #0369a1;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 0 1.75rem;
  border-top: 1px solid #1e293b;
  margin-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  font-size: 0.88rem;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: #cbd5e1;
}
.footer-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.dark-box-title { color: #ffffff !important; font-size: 1.15rem !important; margin-bottom: 0.4rem !important; }
.dark-box-text { color: #f1f5f9 !important; font-size: 0.86rem !important; line-height: 1.65 !important; }
.dark-box-link { color: #38bdf8 !important; text-decoration: underline !important; }
.footer-bottom-bar { border-top: 1px solid #1e293b; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 0.8rem; color: #cbd5e1; }
