/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: #292929;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand Accent */
.logo-accent {
  color: #2e7d6e;
}

/* Ad Disclosure Banner */
.ad-disclosure {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  padding: 8px 0;
  font-size: 12px;
  color: #6d5e00;
  text-align: center;
}

.ad-disclosure a {
  color: #6d5e00;
  font-weight: 600;
  text-decoration: underline;
}

/* Header — sticky */
.site-header {
  border-bottom: 1px solid #e6e6e6;
  padding: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  transition: box-shadow 0.25s, background 0.25s;
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 960px;
}

.site-logo {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-accent {
  color: #2e7d6e;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.site-nav > a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.site-nav > a:hover {
  color: #1a1a1a;
  background: #f5f5f5;
}

.site-nav > a.active {
  color: #2e7d6e;
  background: #eef7f4;
}

/* Articles Dropdown */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  color: #555;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: #1a1a1a;
  background: #f5f5f5;
  border-color: #e6e6e6;
}

.nav-dropdown-arrow {
  font-size: 9px;
  transition: transform 0.2s;
  opacity: 0.6;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
  width: 360px;
  padding: 10px 0;
  z-index: 1001;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  color: #333;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.4;
  margin: 0;
  transition: background 0.12s, color 0.12s, padding-left 0.15s;
  border-left: 2px solid transparent;
}

.nav-dropdown-menu a:hover {
  background: #f5f9f8;
  color: #2e7d6e;
  border-left-color: #2e7d6e;
  padding-left: 22px;
}

.nav-dropdown-menu .dropdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  padding: 14px 20px 5px;
  display: block;
}

.nav-dropdown-menu .dropdown-label:first-child {
  padding-top: 6px;
}

.nav-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 16px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  color: #555;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.mobile-menu-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  z-index: 1101;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-close {
  background: none;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 6px 10px;
  line-height: 1;
  transition: background 0.15s;
}

.mobile-nav-close:hover {
  background: #f5f5f5;
}

.mobile-nav-links {
  padding: 12px 0;
}

.mobile-nav-links > a {
  display: block;
  padding: 13px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.12s;
}

.mobile-nav-links > a:hover {
  background: #f5f9f8;
  color: #2e7d6e;
  border-left-color: #2e7d6e;
}

.mobile-nav-links .dropdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  padding: 18px 20px 6px;
  display: block;
}

.mobile-nav-links .nav-dropdown-divider {
  margin: 6px 16px;
  background: #f0f0f0;
}

/* Article */
.article {
  padding: 48px 0 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d4edda;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #2e7d6e;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #292929;
}

.article-date {
  font-size: 13px;
  color: #757575;
}

.article h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #292929;
}

.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: #292929;
}

.article p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #292929;
}

.article ul, .article ol {
  font-size: 18px;
  margin-bottom: 20px;
  padding-left: 28px;
}

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

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* Article Tables */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
}

.article thead tr {
  background: #f5f9f8;
  border-bottom: 2px solid #2e7d6e;
}

.article th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #292929;
}

.article td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
  color: #444;
  vertical-align: top;
}

.article tbody tr:hover {
  background: #f9fbfa;
}

@media (max-width: 600px) {
  .article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .article th, .article td {
    padding: 8px 12px;
    min-width: 120px;
  }
}

.article blockquote {
  border-left: 3px solid #2e7d6e;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f5f9f8;
  border: 1px solid #d4edda;
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0 16px;
}

.author-bio-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d4edda;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: #2e7d6e;
  flex-shrink: 0;
}

.author-bio-name {
  font-size: 16px;
  color: #292929;
  display: block;
  margin-bottom: 4px;
}

.author-bio-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* CCPA Link */
.ccpa-link {
  font-weight: 600;
}

/* RSOC Block */
.rsoc-section {
  background: #f9f9f9;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.rsoc-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

#rsoc-block {
  min-height: 40px;
}

/* Focus styles */
a:focus-visible {
  outline: 2px solid #2e7d6e;
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e6e6e6;
  padding: 40px 0;
  margin-top: 48px;
  background: #fafafa;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #757575;
}

.footer-links a {
  color: #757575;
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover {
  color: #292929;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #292929;
  color: #fff;
  z-index: 9999;
  padding: 16px 0;
}

.cookie-banner-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-content p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-content a {
  color: #81c784;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-accept {
  background: #2e7d6e;
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-accept:hover {
  background: #256b5e;
}

.cookie-reject {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-reject:hover {
  color: #fff;
  border-color: #888;
}

.cookie-banner.cc-managed {
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.cc-managed.cc-show {
  transform: translateY(0);
}

.cookie-banner.cc-managed.cc-hide {
  transform: translateY(100%);
}

/* Compliance Pages */
.page-content {
  padding: 48px 0 32px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #292929;
}

.page-content .page-updated {
  font-size: 13px;
  color: #757575;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: #292929;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #292929;
}

.page-content p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #444;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 28px;
  color: #444;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: #2e7d6e;
  text-decoration: underline;
}

/* Contact Info Block */
.contact-info {
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.contact-info h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: #292929;
}

.contact-info p {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Search Page */
.search-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 32px;
}

.search-header h1 {
  font-size: 16px;
  font-weight: 400;
  color: #757575;
}

.search-header h1 span {
  font-weight: 700;
  color: #292929;
  font-size: 22px;
  display: block;
  margin-top: 4px;
}

#search-ads {
  min-height: 200px;
  padding-bottom: 32px;
}

.no-results {
  font-size: 16px;
  color: #757575;
  text-align: center;
  padding: 48px 0;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #2e7d6e;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Homepage Hero */
.hero {
  background: #f7faf9;
  border-bottom: 1px solid #e6e6e6;
  padding: 48px 0 40px;
}

.hero .container {
  text-align: left;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #292929;
  margin-bottom: 16px;
  position: relative;
  padding-top: 20px;
}

.hero h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #2e7d6e;
}

.hero-subtitle {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
}

/* Article Listing Sections */
.articles-section {
  padding: 32px 0 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 20px;
  padding-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 2px;
  background: #2e7d6e;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: #2e7d6e;
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.article-card:hover::before {
  opacity: 1;
}

.card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2e7d6e;
  background: #e8f5f1;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #292929;
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-meta {
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}

.card-read-more {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d6e;
  margin-bottom: 12px;
}

.card-read-more .arrow {
  display: inline-block;
  transition: transform 0.15s;
}

.article-card:hover .card-read-more .arrow {
  transform: translateX(3px);
}

/* Responsive — tablet */
@media (max-width: 768px) {
  .site-header .container {
    max-width: 100%;
  }

  .site-nav > a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-dropdown-toggle {
    font-size: 13px;
    padding: 6px 10px;
  }

  .nav-dropdown-menu {
    width: 300px;
  }
}

/* Responsive — mobile */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .article {
    padding: 32px 0 24px;
  }

  .article h1 {
    font-size: 26px;
  }

  .article h2 {
    font-size: 20px;
  }

  .article p,
  .article ul,
  .article ol {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links a {
    margin: 0 10px;
  }

  .rsoc-section {
    padding: 16px;
    margin: 24px -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .page-content h1 {
    font-size: 26px;
  }

  .page-content h2 {
    font-size: 20px;
  }

  .ad-disclosure {
    font-size: 11px;
    padding: 6px 0;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links a {
    margin: 4px 8px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .article-card {
    padding: 20px;
  }
}
