/* ============================================
   SleepWell Guide - Main Stylesheet
   ============================================ */

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

:root {
  --navy:       #0A1628;
  --navy-light: #142240;
  --indigo:     #3B4F7C;
  --indigo-light: #5A6FA0;
  --accent:     #6C8EBF;
  --accent-alt: #4F7FBD;
  --bg:         #F9F7F4;
  --bg-card:    #FFFFFF;
  --bg-alt:     #EEF2F8;
  --text:       #1A1F2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border:     #E2E8F0;
  --border-dark:#CBD5E1;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-alt); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-top: 1.5em;
  margin-bottom: .5em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

code {
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
th {
  background: var(--navy);
  color: white;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg-alt); }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.main-content { min-width: 0; }

.sidebar { position: sticky; top: 80px; }

@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* --- Header --- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
}

/* Nav */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav > ul {
  display: flex;
  gap: .25rem;
}

.main-nav > ul > li { position: relative; }

.main-nav a {
  display: block;
  padding: .5rem .75rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav .active > a {
  background: rgba(255,255,255,.12);
  color: white;
  text-decoration: none;
}

/* Dropdowns */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  z-index: 100;
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
}
.dropdown-menu a {
  color: var(--text) !important;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--navy) !important; }

.nav-dropdown.open .dropdown-menu { display: flex; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy-light);
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a { border-radius: 0; padding: .75rem .5rem; }
  .dropdown-menu {
    display: none !important;
    position: static;
    background: rgba(0,0,0,.15);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .dropdown-menu a { color: rgba(255,255,255,.75) !important; padding-left: 1.5rem; }
  .nav-dropdown.open .dropdown-menu { display: flex !important; }
}

/* --- Hero / Page Header --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
}
.page-hero .container { max-width: 860px; }
.page-hero h1 { color: white; font-size: clamp(1.75rem, 5vw, 3rem); margin: 0 0 .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 0; max-width: 620px; }
.page-hero .meta {
  display: flex;
  gap: 1rem;
  margin-bottom: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
  padding: .75rem 0;
  font-size: .875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-alt); }
.breadcrumb span { margin: 0 .4rem; }

/* --- Section/Category Index Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--navy); }
.card p { font-size: .9rem; color: var(--text-muted); margin: 0; flex: 1; }
.card-link { margin-top: 1rem; font-size: .85rem; color: var(--accent-alt); font-weight: 600; }

/* Nav section cards (homepage) */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.section-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; }
.section-card .icon { font-size: 1.75rem; }
.section-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; }
.section-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* --- Article Content Styles --- */
.article-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h4 { margin: 0 0 .75rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { font-size: .9rem; margin-bottom: .3rem; }
.toc a { color: var(--accent-alt); }

.key-takeaway {
  background: linear-gradient(135deg, #EEF2F8 0%, #E8EFF8 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.key-takeaway h4 { margin: 0 0 .5rem; color: var(--indigo); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }

.info-box {
  background: #FEF9E7;
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box.blue {
  background: #EEF2F8;
  border-left-color: var(--accent);
}
.info-box.green {
  background: #ECFDF5;
  border-left-color: var(--success);
}
.info-box.red {
  background: #FEF2F2;
  border-left-color: var(--danger);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--indigo); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }

/* --- Sidebar --- */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* AdSense */
.ad-unit {
  background: var(--bg-card);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: .8rem;
  background: var(--bg-alt);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.ad-placeholder::before {
  content: "📣";
  font-size: 2rem;
}
.ad-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  padding: .25rem .75rem;
  background: var(--bg-alt);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Affiliate Box */
.affiliate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.affiliate-box .affiliate-header {
  background: var(--navy);
  color: white;
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.affiliate-box .affiliate-body { padding: 1rem; }
.affiliate-item {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  font-size: .875rem;
}
.affiliate-item:last-child { border-bottom: none; }
.affiliate-item .aff-icon { font-size: 1.5rem; flex-shrink: 0; }
.affiliate-item .aff-name { font-weight: 600; color: var(--navy); display: block; margin-bottom: .2rem; }
.affiliate-item .aff-desc { color: var(--text-muted); font-size: .8rem; }
.btn-affiliate {
  display: block;
  text-align: center;
  background: var(--accent-alt);
  color: white !important;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 700;
  margin-top: .5rem;
  transition: background .2s;
  text-decoration: none;
}
.btn-affiliate:hover { background: var(--indigo); text-decoration: none; }

/* Related Articles Sidebar */
.related-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.related-sidebar h4 {
  background: var(--bg-alt);
  padding: .75rem 1rem;
  margin: 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.related-sidebar ul {
  list-style: none;
  padding: .5rem;
  margin: 0;
}
.related-sidebar li { margin: 0; }
.related-sidebar a {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--text);
  border-radius: var(--radius);
}
.related-sidebar a:hover { background: var(--bg-alt); text-decoration: none; }

/* --- Medical Disclaimer --- */
.medical-disclaimer {
  background: #FEF9E7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: #92400E;
  margin: 2rem 0;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.medical-disclaimer::before { content: "⚕️"; font-size: 1.25rem; flex-shrink: 0; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-alt);
  margin-bottom: .4rem;
}
.blog-card h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--navy); }
.blog-card p { font-size: .875rem; color: var(--text-muted); margin: 0; flex: 1; }
.blog-card-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .75rem;
  display: flex;
  gap: .75rem;
}

/* Blog index & article meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.blog-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: white;
  background: var(--accent-alt);
  padding: .2rem .55rem;
  border-radius: 20px;
}
.blog-date {
  font-size: .8rem;
  color: var(--text-muted);
}
.blog-card h2 {
  font-size: 1.05rem;
  margin: .4rem 0 .6rem;
  line-height: 1.4;
}
.blog-card h2 a { color: var(--navy); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent-alt); text-decoration: underline; }
.blog-card p { font-size: .875rem; color: var(--text-muted); margin: 0; flex: 1; }
.blog-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.read-time {
  font-size: .78rem;
  color: var(--text-light);
}
.blog-index { padding: 2.5rem 0; }
.load-more { text-align: center; margin-top: 2rem; }
.btn-load-more {
  background: var(--bg-alt);
  border: 1px solid var(--border-dark);
  color: var(--text);
  padding: .65rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-load-more:hover { background: var(--border); }

/* Article header blog-meta */
.article-header .blog-meta { margin-bottom: .6rem; }

/* --- Tools & Calculators --- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.tool-card h3 { margin-top: 0; }

.calculator-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--navy);
}
.form-group select,
.form-group input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-sans);
  background: white;
  color: var(--text);
}
.form-group select:focus,
.form-group input:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--indigo); color: white; }
.btn-primary:hover { background: var(--navy); color: white; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.btn-outline:hover { background: var(--indigo); color: white; }

.result-box {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
  display: none;
}
.result-box.show { display: block; }

/* --- Reviews --- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .review-card { grid-template-columns: 1fr; } }
.review-card .review-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.review-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.stars { color: #F59E0B; font-size: .95rem; }
.review-score { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: .75rem 0;
}
@media (max-width: 480px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: .75rem;
  font-size: .85rem;
}
.pros h5 { color: var(--success); margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; }
.cons h5 { color: var(--danger); margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; }
.pros li, .cons li { margin-bottom: .2rem; }

/* Badge */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-best { background: #FEF3C7; color: #92400E; }
.badge-new { background: #D1FAE5; color: #065F46; }
.badge-hot { background: #FEE2E2; color: #991B1B; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; }

.footer-col h4 {
  color: white;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: white; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: white; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-light);
  color: white;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  border-top: 3px solid var(--accent);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-content p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.8); }
.cookie-content a { color: var(--accent); }
.cookie-buttons { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.btn-accept {
  background: var(--accent);
  color: white;
  border: none;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-accept:hover { background: var(--indigo); }
.btn-decline {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-decline:hover { border-color: rgba(255,255,255,.5); color: white; }
.cookie-settings { font-size: .8rem; color: rgba(255,255,255,.45); }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
}
.tag:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent-alt); text-decoration: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Highlight box */
.highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight h3 { color: white; margin-top: 0; }
.highlight p { color: rgba(255,255,255,.8); margin-bottom: 0; }

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: none;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question .icon { transition: transform .3s; flex-shrink: 0; }
.faq-question.open .icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 1rem 1.25rem;
  font-size: .925rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.faq-answer.open { display: block; }

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.download-card .dl-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.download-card h4 { font-size: .95rem; margin: 0 0 .4rem; color: var(--navy); }
.download-card p { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Print */
@media print {
  .site-header, .sidebar, .cookie-banner, .site-footer { display: none; }
  .content-wrapper { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
