@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:opsz,wght@9..144,500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-accent: #e7f2ea;
  --ink: #172f2c;
  --muted: #55655f;
  --accent: #1b8f63;
  --accent-strong: #167452;
  --accent-warm: #f2c14e;
  --card: #ffffff;
  --border: #e4d8cc;
  --shadow: 0 20px 40px rgba(23, 47, 44, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(27, 143, 99, 0.18), transparent 46%),
    radial-gradient(circle at 85% 18%, rgba(242, 193, 78, 0.22), transparent 40%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 45%, #f4efe7 100%);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  box-sizing: border-box;
}

.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -48px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(250, 246, 240, 0.8);
  border-bottom: 1px solid rgba(228, 216, 204, 0.7);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  max-height: 56px;
  width: auto;
  height: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #2d6b5d);
  box-shadow: 0 10px 20px rgba(27, 143, 99, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 18px;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--ink);
}

.button, a.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(27, 143, 99, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover, a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(27, 143, 99, 0.25);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(27, 143, 99, 0.3);
  box-shadow: none;
}


/* Language Switcher Styles */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  min-height: 44px; /* Better touch target for mobile */
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus {
  background: var(--bg);
  border-color: var(--accent);
  outline: none;
}

.lang-btn:active {
  background: rgba(27, 143, 99, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
  min-width: 200px; /* Increased width for better readability */
  margin-top: 0.5rem;
  overflow: hidden; /* Ensure rounded corners clip content */
  max-width: 90vw; /* Prevent overflow on very small screens */
}

.lang-list {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain; /* Prevent scrolling parent when list end is reached */
}

.lang-dropdown.show {
  display: block;
}

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

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: var(--bg);
}

.lang-dropdown a.hidden {
  display: none;
}

/* Language Search Styles */
.lang-search-wrapper {
  position: relative;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.lang-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
}

[dir="rtl"] .lang-search-icon {
  left: auto;
  right: 0.85rem;
}

.lang-search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--ink);
  box-sizing: border-box;
  font-family: inherit;
}

[dir="rtl"] .lang-search-input {
  padding: 0.5rem 2rem 0.5rem 0.5rem;
}

.lang-no-results {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  width: 100%;
  box-sizing: border-box;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 64px 0 32px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 54px);
  margin: 12px 0 16px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(23, 47, 44, 0.12);
}

.hero-card-image {
  width: 100%;
  height: 120px;
  background: var(--bg-accent);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-card-image img {
  transform: scale(1.05);
}

.hero-card-content {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  padding: 18px 18px 12px;
}

.hero-card h2 {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-warm);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(242, 193, 78, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(242, 193, 78, 0);
  }
}

.card-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
  width: 100%;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.highlights-list li span {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-size: 28px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.topic-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* New topic styles */
button.topic-card {
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  transition: all 0.2s ease;
}

button.topic-card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 143, 99, 0.1);
}

button.topic-card.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.topic-card.active .topic-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* End new topic styles */

.topic-count {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.article-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(23, 47, 44, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(23, 47, 44, 0.12);
}

.article-card.hidden {
  display: none;
}

.article-card h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 20px;
}

.article-card h3 a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.article-card a {
  text-decoration: none;
  color: inherit;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.chip {
  background: var(--bg);
  color: var(--accent-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 600;
}

.arrow-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.arrow-link:hover span {
  transform: translateX(4px);
}

.article-hero {
  padding: 48px 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.article-hero .arrow-link {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.article-hero .arrow-link:hover {
  opacity: 1;
}

.article-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.article-hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
}

.article-meta-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.meta-author-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-separator {
  color: var(--border);
}

.meta-reading-time {
  background: rgba(0,0,0,0.04);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.article-toc {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  max-width: 100%; /* Changed from 600px */
  backdrop-filter: blur(8px);
}

.toc-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px 0;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.article-toc a {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  display: inline-block;
}

.article-toc a:hover {
  border-color: currentColor;
}

/* Removed old grid meta styles */


.article-content {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 64px) clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 19px;
  max-width: 900px; /* Matched to hero width */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-content h2 {
  font-family: 'Fraunces', serif;
  margin-top: 56px; /* Increased spacing */
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--ink);
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.05); /* Subtle divider */
  scroll-margin-top: 100px;
}

.article-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.article-content h3 {
  font-family: 'Fraunces', serif;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
}

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

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: #f8f4ed;
  border-radius: 12px;
}

.article-callout {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 12px;
  background: #f4fcf7;
  border-left: 4px solid var(--accent);
}

.checklist-card {
  margin: 32px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(27, 143, 99, 0.05);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent any content from overflowing */
}

.checklist-card h3 {
  margin-top: 0 !important;
  font-size: 18px !important;
  color: var(--accent-strong);
}

.checklist-card ul {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: grid;
  grid-template-columns: min-content max-content 1fr;
  column-gap: 16px;
  row-gap: 16px;
  align-items: baseline;
  width: 100%;
  box-sizing: border-box;
}

.checklist-card li {
  display: contents;
}

.checklist-label {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0; /* Allows flex/grid items to shrink below content size */
}

.checklist-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0; /* Allows flex/grid items to shrink below content size */
}

.checklist-text a {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.checklist-text.full-width {
  grid-column: 2 / -1;
}

.check-icon {
  color: #fff;
  background: var(--accent);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 3px;
  align-self: start;
}

.card-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.card-list-item {
  background: #fcfbf9;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
}

.card-list-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}

.card-list-item p {
  font-size: 15px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.article-callout.warning {
  border-left-color: #f2c14e;
  background: #fffdf5;
}

.article-callout.warning strong {
  color: #b38b2d;
}

.article-callout.alert {
  border-left-color: #e54d2e;
  background: #fff5f5;
}

.article-callout.alert strong {
  color: #c9381d;
}

.article-image {
  margin: 32px 0;
  width: 100%;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  border: 1px solid var(--border);
}

.article-image figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  width: 0;
  z-index: 100;
}

/* Old Footer Styles - Keeping some if needed, but overridden */
.footer {
  margin-top: 80px;
  background: #111f1d;
  color: #f7f2ea;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  gap: 24px;
}

.footer-cta {
  display: grid;
  gap: 12px;
}

.footer-cta h2 {
  font-family: 'Fraunces', serif;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(247, 242, 234, 0.7);
}

.footer a {
  color: #f2c14e;
  text-decoration: none;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.pagination-controls button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#page-info {
  font-weight: 500;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 18px;
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .brand img {
    max-height: 48px;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 10px;
    align-items: center;
  }

  /* Hide regular nav links on mobile */
  .nav > a:not(.button) {
    display: none;
  }

  .lang-switcher {
    flex-shrink: 0;
  }

  .nav .button {
    flex-shrink: 1;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
    min-width: 0;
  }

  /* Language Switcher Mobile Improvements */
  .lang-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .lang-btn .material-symbols-outlined {
    font-size: 16px !important;
  }

  .lang-dropdown {
    min-width: 180px;
    max-width: calc(100vw - 2rem);
    right: 0;
    left: auto;
  }

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

  .lang-dropdown a {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .lang-search-input {
    font-size: 0.8rem;
    padding: 0.45rem 0.45rem 0.45rem 1.75rem;
  }

  [dir="rtl"] .lang-search-input {
    padding: 0.45rem 1.75rem 0.45rem 0.45rem;
  }

  /* Checklist Card Mobile Fixes */
  .checklist-card {
    padding: 20px;
    margin: 24px 0;
    overflow: hidden; /* Prevent horizontal overflow */
  }

  .checklist-card ul {
    grid-template-columns: min-content minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
  }

  .checklist-label {
    font-size: 16px;
    min-width: 0; /* Allow label to shrink */
  }

  .checklist-text {
    font-size: 15px;
    grid-column: 1 / -1;
    padding-left: 32px; /* Offset for icon and label */
    min-width: 0; /* Critical for text wrapping */
  }

  .check-icon {
    grid-row: span 2; /* Icon spans both label and text rows */
    align-self: start;
    margin-top: 3px;
  }
}

@media (max-width: 600px) {
  .button {
    width: 100%;
    justify-content: center;
  }

  /* Keep nav button inline on mobile */
  .nav .button {
    width: auto;
  }

  .article-meta-grid {
    grid-template-columns: 1fr;
  }

  /* Language Switcher - Extra Small Screens */
  .lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .lang-btn .material-symbols-outlined {
    font-size: 15px !important;
  }

  .lang-dropdown {
    min-width: 160px;
    max-width: calc(100vw - 1.5rem);
    margin-top: 0.4rem;
  }

  .lang-list {
    max-height: 250px;
  }

  .lang-dropdown a {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Checklist Card - Extra Small Screens */
  .checklist-card {
    padding: 16px;
    margin: 20px 0;
  }

  .checklist-card ul {
    column-gap: 10px;
    row-gap: 10px;
  }

  .checklist-label {
    font-size: 15px;
  }

  .checklist-text {
    font-size: 14px;
    padding-left: 28px;
  }

  .check-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  /* Article Content - Extra Small Screens */
  .article-content {
    padding: 20px 16px;
    font-size: 17px;
  }

  /* Header - Extra Small Screens */
  .header-inner {
    padding: 14px 12px;
    gap: 8px;
  }

  .brand img {
    max-height: 44px;
  }

  .nav {
    gap: 8px;
  }

  .nav .button {
    font-size: 12px;
    padding: 7px 12px;
  }

  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* ZapCount Footer Styles Adapted */
.footer-zapcount {
  background: #0f172a;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.lc-footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
}

.lc-footer-brand h3 img {
  transform: translateY(-2px);
}

.lc-footer-brand p {
  color: #94a3b8; /* text-muted equivalent */
  max-width: 300px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.lc-footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
}

.lc-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lc-footer-links a {
  color: #94a3b8; /* text-light equivalent */
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.lc-footer-links a:hover {
  color: white;
  transform: translateX(2px);
}

.lc-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #64748b; /* text-muted equivalent */
  font-size: 0.9rem;
}

.lc-footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.lc-footer-bottom a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .lc-footer-grid {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      text-align: center;
  }
  
  .lc-footer-brand p {
      margin: 0 auto 1.5rem;
  }

  .lc-footer-brand h3 {
      justify-content: center;
  }

  .lc-footer-links {
      align-items: center;
  }

  .lc-footer-bottom {
      flex-direction: column;
      text-align: center;
  }
}