/* === Foundation === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
  --bg: #f7f7f5;
  --bg-white: #ffffff;
  --bg-section: #efeee9;
  --bg-dark: #1c2a35;
  --bg-dark-2: #243544;
  --text: #1a1d20;
  --text-2: #4b5158;
  --text-3: #8a8f96;
  --text-inv: #f0f0ec;
  --accent: #d47a2e;
  --accent-hover: #bd6a22;
  --accent-light: #faf2e8;
  --teal: #2a7d7d;
  --teal-light: #e8f4f4;
  --border: #dddcd7;
  --border-light: #e8e7e2;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.05);
  --card-hover: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --w-narrow: 700px;
  --w-content: 800px;
  --w-wide: 1140px;
  --font-h: 'Fraunces', Georgia, serif;
  --font-b: 'DM Sans', -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; }

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 58px;
}
.site-logo {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.02em;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-list a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover { background: var(--bg-section); color: var(--text); }
.nav-list a.active { background: var(--accent-light); color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column;
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--bg-white); padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 0.6rem 0.5rem; width: 100%; }
}

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.3rem; }

/* =====================
   HOMEPAGE
   ===================== */

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-h);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #fff;
}
.hero p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.75;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-inv); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Quick nav strip */
.quick-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.quick-nav-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.quick-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.quick-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.quick-nav .nav-icon { font-size: 1rem; }

/* Section */
.section {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.section--alt {
  background: var(--bg-section);
  max-width: none;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 1.5rem;
}
.section--alt .section-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.section-header a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.section-header a:hover { text-decoration: underline; }

/* Cards */
.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.card h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}
.card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.card .card-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Featured card (large) */
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.card--featured { grid-row: span 2; }
.card--featured .card-body { padding: 1.75rem; }
.card--featured h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.card--featured p { font-size: 0.95rem; }

/* Compare strip */
.compare-strip {
  background: var(--bg-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.compare-strip h2 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.compare-strip p {
  color: var(--text-inv);
  opacity: 0.65;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.compare-grid {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.compare-item {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: var(--text-inv);
  transition: background 0.15s, border-color 0.15s;
}
.compare-item:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.compare-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.compare-item p { font-size: 0.78rem; opacity: 0.6; }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .card--featured { grid-row: span 1; }
}
@media (max-width: 600px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
}

/* =====================
   ARTICLE PAGE
   ===================== */
.article-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem 2.25rem;
}
.article-header-inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
}
.article-header .cat-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.article-header h1 {
  font-family: var(--font-h);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.article-header .article-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-3);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.article-meta svg { opacity: 0.5; }

/* Disclaimer */
.disclaimer-banner {
  max-width: var(--w-narrow);
  margin: 1.25rem auto 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--teal);
  line-height: 1.45;
}
.disclaimer-banner svg { flex-shrink: 0; margin-top: 1px; color: var(--teal); }
.disclaimer-banner a { color: var(--teal); font-weight: 600; }

/* Article body */
.article-body {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* TOC */
.toc {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.toc summary { padding: 0.7rem 1rem; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.toc ul { padding: 0.25rem 1rem 0.6rem; margin-left: 1rem; }
.toc li { margin: 0.2rem 0; font-size: 0.85rem; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Content typography */
.content-body h2 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
}
.content-body h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}
.content-body p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
.content-body ul, .content-body ol { margin: 0 0 1.1rem 1.5rem; }
.content-body li { margin-bottom: 0.35rem; line-height: 1.65; }
.content-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.content-body a:hover { text-decoration-thickness: 2px; }
.content-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.content-body blockquote p { margin: 0; color: var(--text-2); }
.content-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.88rem; }
.content-body th, .content-body td { padding: 0.6rem 0.85rem; border: 1px solid var(--border); text-align: left; }
.content-body th { background: var(--bg-section); font-weight: 600; font-size: 0.82rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.02em; }
.content-body img { border-radius: var(--radius); margin: 1.25rem 0; }

/* Key info box */
.content-body .info-box {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--teal);
}
.content-body .info-box p { margin: 0; color: var(--teal); font-size: 0.92rem; }

/* Sources */
.sources { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sources h2 { font-family: var(--font-b); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); margin-bottom: 0.5rem; }
.sources ol { padding-left: 1.25rem; font-size: 0.82rem; color: var(--text-2); }
.sources li { margin-bottom: 0.2rem; }
.sources a { color: var(--accent); text-decoration: none; }
.sources a:hover { text-decoration: underline; }

/* FAQ Accordion */
.faq { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.faq h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.faq-item {
  background: var(--accent-light);
  border-radius: 28px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(212,122,46,0.1); }
.faq-item summary {
  padding: 0.7rem 1.4rem;
  font-weight: 600; font-size: 0.88rem; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='6' y1='2' x2='6' y2='10'/%3E%3Cline x1='2' y1='6' x2='10' y2='6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform 0.25s ease;
}
.faq-item[open] { background: var(--bg-white); border-color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='2' y1='6' x2='10' y2='6'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 1.4rem 0.85rem;
  margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-2);
}

/* Tags */
.tags { margin-top: 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 500; background: var(--bg-section); padding: 0.2rem 0.6rem; border-radius: 4px; color: var(--text-2); text-decoration: none; }
.tag:hover { background: var(--border); }

/* =====================
   LIST PAGES
   ===================== */
.list-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.list-header-inner { max-width: var(--w-wide); margin: 0 auto; }
.list-header h1 { font-family: var(--font-h); font-size: 1.75rem; font-weight: 700; }
.list-header p { color: var(--text-2); font-size: 0.95rem; margin-top: 0.3rem; }
.list-body { max-width: var(--w-wide); margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* =====================
   LEGAL PAGES
   ===================== */
.legal-page { max-width: var(--w-narrow); margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.legal-page h1 { font-family: var(--font-h); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.legal-page p { margin-bottom: 0.9rem; color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }
.legal-page ul { margin: 0 0 1rem 1.5rem; color: var(--text-2); font-size: 0.92rem; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--accent); }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--bg-dark);
  padding: 2.5rem 1.5rem;
  color: var(--text-inv);
}
.footer-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-disclaimer { max-width: 500px; text-align: center; font-size: 0.78rem; opacity: 0.5; line-height: 1.5; }
.footer-nav a { color: var(--text-inv); text-decoration: none; font-size: 0.82rem; margin: 0 0.6rem; font-weight: 500; opacity: 0.7; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-size: 0.72rem; opacity: 0.35; }
