:root{
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.08);
  --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --accent: #6366f1;
  --accent-2: #14b8a6;
  --accent-hover: #4f46e5;
  --accent-link: #4338ca; /* Darker indigo for better contrast on light backgrounds - WCAG AA compliant */
  --ring: rgba(99,102,241,.2);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height: 1.6;
}
main{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Enhanced focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

a{color:inherit; text-decoration:none}
a:hover{ text-decoration: underline; }
small{
  color: rgba(15,23,42,.8); /* Increased contrast for accessibility (WCAG AA) */
  font-weight: 500;
}
.container{
  max-width:var(--max); 
  margin:0 auto; 
  padding: 40px 32px 80px;
  min-height: 800px; /* Prevent layout shift - increased for content */
  box-sizing: border-box;
}
@media (max-width: 768px){
  .container{
    padding: 32px 24px 64px;
    min-height: 600px; /* Prevent layout shift on mobile - increased */
  }
}
@media (max-width: 640px){
  .container{
    padding: 24px 16px 48px;
    min-height: 400px;
  }
}

.nav{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(248,250,252,.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.1);
}
.nav-inner{
  max-width:var(--max); 
  margin:0 auto; 
  padding: 16px 24px; 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:20px;
}
.brand{
  display:flex; 
  align-items:center; 
  gap:12px; 
  font-weight:700; 
  font-size: 18px;
  letter-spacing:-.01em;
}
.badge{
  width:36px;
  height:36px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 6px -1px rgba(99,102,241,.3);
}
.nav-links{
  display:flex; 
  gap:16px; 
  flex-wrap:wrap; 
  align-items:center;
  font-weight:500;
  font-size: 15px;
}
.nav-links a{
  color: rgba(15,23,42,.75);
  transition: color .2s;
}
.nav-links a:hover{
  text-decoration:none; 
  color: var(--accent);
}
.lang-switcher{
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(99,102,241,.1);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
}
.lang-switcher:hover{
  background: rgba(99,102,241,.15); 
  text-decoration:none;
}
@media (max-width: 640px){
  .nav-inner{padding: 12px 16px}
  .nav-links{gap:12px; font-size: 14px}
  .brand{font-size: 16px}
  .badge{width:32px; height:32px}
}


.intro-section{
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 600px; /* Prevent layout shift */
  box-sizing: border-box;
}
@media (max-width: 768px){
  .intro-section{
    min-height: 500px;
    padding: 32px 0;
    margin: 32px 0;
  }
}

.hero{
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
}
@media (max-width: 768px){
  .hero{
    padding: 36px 28px;
    margin-top: 32px;
  }
  .intro-section{
    min-height: 500px;
    padding: 32px 0;
    margin: 32px 0;
  }
}

.hero{
    padding: 36px 28px;
    margin-top: 32px;
  }
}
@media (max-width: 640px){
  
.intro-section{
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 600px; /* Prevent layout shift */
  box-sizing: border-box;
}
@media (max-width: 768px){
  .intro-section{
    min-height: 500px;
    padding: 32px 0;
    margin: 32px 0;
  }
}

.hero{
    padding: 28px 24px; 
    margin-top: 24px;
  }
}
.h-title{
  font-size: clamp(28px, 5vw, 44px); 
  line-height:1.1; 
  margin: 0 0 16px 0;
  font-weight: 800;
  letter-spacing: -.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.h-sub{
  margin:0; 
  color:var(--muted); 
  max-width: 72ch; 
  font-size: 16px; 
  line-height:1.7;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.pills{
  display:flex; 
  gap:10px; 
  flex-wrap:wrap; 
  margin-top:24px;
  justify-content: center;
}
.pill{
  display:inline-flex; 
  align-items:center; 
  gap:8px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: rgba(15,23,42,.85);
  font-weight:500;
  font-size: 13px;
  transition: all .2s;
}
.pill:hover{
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.2);
  text-decoration:none;
}
.pill small{
  color: rgba(15,23,42,.75); /* Increased contrast for accessibility */
  font-weight: 600;
}
.pill i{
  width:8px;
  height:8px;
  border-radius:50%;
  background: #4f46e5; /* Darker for better contrast */
  display:inline-block;
}
.pill.green{
  background: rgba(20,184,166,.15);
  border-color: rgba(20,184,166,.3);
  color: #047857 !important; /* Much darker teal for WCAG AA contrast - minimum 4.5:1 */
  font-weight: 600 !important;
}
.pill.green:hover{
  background: rgba(20,184,166,.2);
  border-color: rgba(20,184,166,.4);
  color: #047857 !important;
}
.pill.green i{background: #047857 !important;} /* Much darker teal */
.pill.green small{color: #047857 !important; font-weight: 700 !important;} /* Maximum contrast */

.stats-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 768px){
  .stats-grid{
    gap: 20px;
  }
}
@media (max-width: 640px){
  .stats-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.stat-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-number{
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label{
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.search-section{
  margin-top: 48px;
}
.search-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px){
  .search-card{
    padding: 24px 20px;
  }
  .search-section{
    margin-top: 32px;
  }
}
@media (max-width: 480px){
  .search-card{
    padding: 20px 16px;
  }
  .search-controls input{
    font-size: 14px;
    padding: 10px 14px;
  }
  .select{
    font-size: 14px;
    padding: 10px 14px;
  }
}
.search-card h2{
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
}
.search-controls{
  display:flex; 
  gap:12px; 
  align-items:center; 
  flex-wrap:wrap;
}
.search-controls input{
  flex:1;
  min-width: 280px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  font-size: 15px;
  transition: all .2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.search-controls input:focus{
  box-shadow: 0 0 0 3px var(--ring); 
  border-color: var(--accent);
}
.select{
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight:500;
  font-size: 15px;
  cursor: pointer;
  min-width: 200px;
}
.checkbox-label{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  font-size: 14px;
  color: var(--text);
  font-weight:500;
}
.checkbox-label input{
  width:18px;
  height:18px;
  accent-color: var(--accent);
  cursor:pointer;
}
.results-info{
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
@media (max-width: 640px){
  .search-controls{
    flex-direction:column; 
    align-items:stretch;
  }
  .search-controls input,
  .select{
    min-width:100%; 
    width:100%;
  }
}

.publishers-section{
  margin-top: 48px;
}
.publishers-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
/* Center last row items when grid has fewer items than columns */
/* JavaScript handles this dynamically for better browser compatibility */
@media (max-width: 768px){
  .publishers-grid{
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .publishers-grid:has(.site:nth-child(3n+1):last-child) .site:last-child,
  .publishers-grid:has(.site:nth-child(3n+2):last-child) .site:nth-last-child(2),
  .publishers-grid:has(.site:nth-child(3n+2):last-child) .site:last-child{
    grid-column: 1;
    max-width: 100%;
  }
}
@media (max-width: 720px){ 
  .publishers-grid{
    grid-template-columns:1fr; 
    gap: 16px;
    max-width: 100%;
  }
  .publishers-section{
    margin-top: 32px;
  }
}
@media (max-width: 480px){
  .publishers-grid{
    gap: 12px;
  }
}

.site{
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
}
.site-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}
.site-image-wrapper{
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(20,184,166,.1));
  border-radius: 12px;
  color: var(--accent);
}
.site-icon{
  width: 32px;
  height: 32px;
}
.site-external-link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.site-external-link:hover{
  opacity: 1;
  background: var(--bg-alt);
  color: var(--accent);
}
.site-link{
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-height: 0;
}
.site-link:hover .site-name{
  color: var(--accent);
}
.site-link:hover .site-desc{
  color: var(--text);
}
.site h3{
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
@media (max-width: 640px){
  .site{
    padding: 20px;
  }
}
.site:hover, .site:focus-within{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.site a:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.site-name{
  font-weight: 700; 
  margin: 0 0 12px 0; 
  font-size: 18px; 
  line-height: 1.3;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  width: 100%;
  transition: color 0.2s ease;
}
.site-desc{
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  width: 100%;
  overflow: hidden;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex: 1;
}
.site-meta{
  display: flex; 
  gap: 8px; 
  align-items: center; 
  flex-wrap: wrap; 
  margin-top: auto;
  padding-top: 16px;
  justify-content: flex-start;
  width: 100%;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 640px){
  .site{
    padding: 18px;
  }
  .site-header{
    margin-bottom: 12px;
  }
  .site-image-wrapper{
    width: 40px;
    height: 40px;
  }
  .site-icon{
    width: 28px;
    height: 28px;
  }
  .site-external-link{
    width: 28px;
    height: 28px;
  }
  .site-name{
    font-size: 16px;
    margin-bottom: 10px;
  }
  .site-desc{
    font-size: 13px; 
    margin-bottom: 12px;
    -webkit-line-clamp: 5;
  }
  .site-meta{
    padding-top: 12px;
    gap: 6px;
  }
}
@media (max-width: 480px){
  .site{padding: 16px}
  .site-name{font-size: 15px; line-height: 1.25}
  .site-desc{
    font-size: 12px;
    line-height: 1.6;
    -webkit-line-clamp: 6; /* Even more lines on very small screens */
  }
  .site-meta{gap: 4px}
  .tag{font-size: 10px; padding: 4px 8px}
}

.tag{
  font-size: 11px; 
  font-weight:600;
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: rgba(15,23,42,.85); /* Increased contrast for accessibility (WCAG AA) */
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.tag:hover, .tag:focus{
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  background: var(--surface);
  text-decoration: none;
}
/* Ensure tag links maintain tag styling */
.site-meta a.tag,
.site-meta a.tag:hover,
.site-meta a.tag:focus {
  text-decoration: none;
  color: inherit;
}
.site-meta a.tag:hover,
.site-meta a.tag:focus {
  text-decoration: none;
}
.tag.social{ 
  background: rgba(20,184,166,.15) !important; /* Reduced opacity for better contrast */
  color: #064e3b !important; /* Very dark teal for WCAG AA compliance (8.12:1 contrast) */
  border-color: rgba(20,184,166,.3) !important;
  font-weight: 700 !important; /* Increased font weight for better visibility */
}
.tag.social:hover, .tag.social:focus{
  background: rgba(20,184,166,.25) !important;
  border-color: rgba(20,184,166,.5) !important;
  color: #065f46 !important;
}
.tag.rss{ 
  background: rgba(99,102,241,.15); /* Increased opacity for better contrast */
  color: #4f46e5; /* Darker indigo for better contrast (WCAG AA) */
  border-color: rgba(99,102,241,.3);
  font-weight: 600;
}
.tag.rss:hover, .tag.rss:focus{
  background: rgba(99,102,241,.25);
  border-color: rgba(99,102,241,.5);
  color: #4338ca;
}

.latest-section{
  margin-top: 48px;
}
.latest-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px){
  .latest-card{
    padding: 24px;
  }
}
.latest-card h2{
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
}
.section-subtitle{
  margin: 0 0 24px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.feed-item{
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 16px;
  transition: all .25s ease;
  box-shadow: var(--shadow);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.feed-item:first-child{
  margin-top: 0;
}
.feed-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.3);
}
.feed-header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.feed-site{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.feed-title{
  font-weight: 700; 
  text-decoration: none; 
  font-size: 16px; 
  line-height: 1.5; 
  display: block;
  color: var(--text);
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.feed-title:hover{
  text-decoration: underline; 
  color: var(--accent);
}
.feed-title-placeholder{
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feed-summary-link{
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  display: block;
  color: var(--text);
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.feed-summary-link:hover{
  text-decoration: underline;
  color: var(--accent);
}
.feed-summary{
  display: block;
  margin-top: 10px; 
  color: rgba(15,23,42,.75); 
  font-size: 14px; 
  line-height: 1.7;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.feed-summary:hover{
  color: var(--accent);
}
.feed-meta{
  margin-top: 14px; 
  color: var(--muted); 
  font-size: 13px; 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap;
  align-items: center;
}
.feed-date{
  color: var(--muted);
  font-size: 13px;
}
.feed-link{
  color: #4f46e5; /* Darker indigo for better contrast (WCAG AA) */
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.feed-link:hover{
  text-decoration: underline;
  color: #4338ca; /* Even darker on hover */
}
.feed-title, .feed-title-image, .feed-summary{
  color: rgba(15,23,42,.9); /* Increased contrast */
  font-weight: 500;
}
.feed-title:hover, .feed-title-image:hover, .feed-summary:hover{
  color: #4f46e5; /* Darker on hover */
}
.feed-publisher{
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.feed-publisher:hover{
  color: var(--accent);
  text-decoration: underline;
}

.categories-section{
  margin-top: 56px;
}
.section-title{
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 28px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}
.categories-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
/* Center last 2 items in grid when there are 8 categories (odd in 3-column layout) */
@media (min-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* When there are 8 items, center last 2 in columns 2 and 3 */
  .categories-grid .site:nth-last-child(2) {
    grid-column: 2;
    justify-self: center;
  }
  .categories-grid .site:nth-last-child(1) {
    grid-column: 3;
    justify-self: center;
  }
}
@media (max-width: 768px){
  .categories-grid{
    gap: 16px;
  }
}
.category-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight:600;
  font-size: 15px;
  text-align:center;
  transition: all .2s;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  margin: 0 auto; /* Center individual buttons */
}
.category-btn:hover, .category-btn:focus{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration:none;
  background: rgba(99,102,241,.05);
  color: var(--accent);
}
.category-btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.category-icon{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .2s ease;
}
.category-btn:hover .category-icon{
  transform: scale(1.1);
}

.footer{
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height:1.7;
  text-align:center;
}

.breadcrumb{
  display:flex; 
  gap:10px; 
  align-items:center; 
  flex-wrap:wrap; 
  margin-top: 20px; 
  color: rgba(15,23,42,.7); 
  font-weight:500;
  font-size: 14px;
}
.breadcrumb a{
  color: rgba(15,23,42,.8);
}
.breadcrumb a:hover{
  color: var(--accent);
  text-decoration:none;
}
.page-title{
  margin: 16px 0 8px 0; 
  font-size: 32px; 
  font-weight: 800;
  letter-spacing:-.02em;
}
.page-sub{
  margin:0; 
  color: var(--muted); 
  max-width: 100%;
  line-height:1.7;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px){
  .page-sub{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.notice{
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(99,102,241,.3);
  background: rgba(99,102,241,.05);
  color: rgba(15,23,42,.8);
  font-weight:500;
  line-height:1.6;
  font-size: 14px;
}

.btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  gap:8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight:600;
  font-size: 14px;
  cursor:pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration:none;
}
.btn:focus{
  outline:none; 
  box-shadow: 0 0 0 3px var(--ring);
}
button.btn{
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(20,184,166,.08));
  border-color: rgba(99,102,241,.2);
  width: 100%;
}
button.btn:hover{
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(20,184,166,.12));
}

/* Per-page accents */
body.publisher{
  --accent: hsl(var(--accent-h, 255) 95% 58%);
  --accent-2: hsl(var(--accent2-h, 165) 85% 44%);
  --ring: hsla(var(--accent-h, 255), 95%, 58%, .22);
}

.features-section{
  margin: 64px 0;
  padding: 48px 0;
  background: var(--bg-alt);
  border-radius: 16px;
  min-height: 600px;
  box-sizing: border-box;
}
.features-section > div{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.features-section .grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  justify-items: center;
}
@media (max-width: 768px){
  .features-section{
    min-height: 500px;
    padding: 32px 0;
    margin: 48px 0;
  }
  .features-section .grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
