/* ================================================================================
   CAFFEINECHECK.ORG — CFC UNIFIED STYLE SYSTEM
   Prefix: cfc- | Theme: Coffee & Caffeine Science
   Primary: #5D4037 | Secondary: #8D6E63 | Accent: #FF6F00
   Background: #EFEBE9 | Text: #3E2723
   Fonts: Patua One (headings), Neuton (body), Courier Prime (mono)
   ================================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Patua+One&family=Neuton:wght@400;700&family=Courier+Prime&display=swap');

/* ── CSS Variables ── */
:root {
  /* Coffee Theme Variables (per redesign spec) */
  --bean: #5D4037;
  --bean-dark: #3E2723;
  --bean-light: #8D6E63;
  --roast: #8D6E63;
  --roast-light: #A1887F;
  --brew: #FF6F00;
  --brew-hover: #E65100;
  --mug: #3E2723;
  --sip: #6D4C41;
  --foam: #EFEBE9;
  --foam-warm: #D7CCC8;
  --cream: #FFF8E1;
  --espresso: #1a1a1a;
  --text: #3E2723;
  --text-muted: #8D6E63;
  --text-inverse: #ffffff;
  --bg: #EFEBE9;
  --bg-warm: #D7CCC8;
  --border: #BCAAA4;
  --border-strong: #A1887F;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 6px rgba(93,64,55,0.15);
  --shadow-hover: 0 8px 24px rgba(93,64,55,0.22);
  --font-heading: "Patua One", Georgia, serif;
  --font-body: "Neuton", Georgia, serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --transition: all 0.25s ease;
  --max-width: 1200px;
  --article-width: 800px;
  --ad-height: 200px;

  /* Legacy cfc-* aliases for backward compatibility */
  --cfc-primary: var(--bean);
  --cfc-secondary: var(--foam-warm);
  --cfc-accent: var(--brew);
  --cfc-text: var(--mug);
  --cfc-text-muted: var(--roast);
  --cfc-text-inverse: #ffffff;
  --cfc-bg: var(--foam);
  --cfc-bg-warm: var(--foam-warm);
  --cfc-border: var(--roast-light);
  --cfc-border-strong: var(--roast);
  --cfc-radius: 4px;
  --cfc-radius-lg: 8px;
  --cfc-shadow: 0 2px 6px rgba(93,64,55,0.15);
  --cfc-shadow-hover: 0 8px 24px rgba(93,64,55,0.22);
  --cfc-font: var(--font-body);
  --cfc-font-mono: var(--font-mono);
  --cfc-transition: all 0.25s ease;
  --cfc-max-width: 1200px;
  --cfc-article-width: 800px;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bean); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brew); }

/* ── Container ── */
.cfc-container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.cfc-container-narrow { width: 100%; max-width: var(--article-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Navigation ── */
.cfc-nav {
  background: var(--bean);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(93,64,55,0.25);
}
.cfc-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.cfc-logo {
  font-family: var(--font-heading);
  font-weight: 400; font-size: 1.35rem;
  color: var(--text-inverse); letter-spacing: 0.02em;
}
.cfc-logo span { color: var(--brew); }
.cfc-nav-links { display: flex; gap: 2rem; list-style: none; }
.cfc-nav-links a {
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-body); padding: 0.5rem 0; position: relative;
}
.cfc-nav-links a:hover, .cfc-nav-links a.active { color: #ffffff; }
.cfc-nav-links a.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--brew); border-radius: 1px;
}
.cfc-nav-toggle {
  display: none; background: none; border: none;
  color: #ffffff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem;
}

/* ── Ad Slots ── */
.field {
  width: 100%; height: 200px;
  margin: 1rem 0; border-radius: var(--radius);
  background: var(--foam-warm); overflow: hidden;
  align-items: center; justify-content: center;
  border: 1px dashed var(--border-strong); grid-column: 1 / -1;
  opacity: 0; transition: opacity 0.4s ease;
  display: none;
}
.field.brew {
  display: flex; opacity: 1;
}
.field span {
  color: var(--text-muted); font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* Legacy ad slot alias (deprecated, use .field) */
.cfc-ad-slot {
  width: 100%; height: 200px;
  margin: 1rem 0; border-radius: var(--radius);
  background: var(--foam-warm); overflow: hidden;
  align-items: center; justify-content: center;
  border: 1px dashed var(--border-strong); grid-column: 1 / -1;
  opacity: 0; transition: opacity 0.4s ease;
  display: none;
}
.cfc-ad-slot.brew {
  display: flex; opacity: 1;
}

/* ── Hero Section ── */
.cfc-hero {
  background: linear-gradient(135deg, var(--bean) 0%, var(--bean-light) 100%);
  color: var(--text-inverse); padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.cfc-hero::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,111,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cfc-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.cfc-hero-title {
  font-family: var(--font-heading); font-size: 3rem;
  font-weight: 400; line-height: 1.15; margin-bottom: 1rem; letter-spacing: 0.01em;
}
.cfc-hero-subtitle {
  font-size: 1.15rem; opacity: 0.85; margin-bottom: 2rem; max-width: 480px;
}
.cfc-hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brew); color: #ffffff;
  padding: 0.875rem 1.75rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; font-family: var(--font-body);
  transition: var(--transition);
}
.cfc-hero-cta:hover { background: var(--brew-hover); color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,111,0,0.3); }
.cfc-hero-visual {
  background: rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px);
}

/* ── Stats Bar ── */
.cfc-stats {
  background: var(--foam); padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cfc-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.cfc-stat-number {
  font-size: 2.5rem; font-weight: 700; color: var(--bean);
  line-height: 1; margin-bottom: 0.5rem; font-family: var(--font-mono);
}
.cfc-stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Section Headers ── */
.cfc-section-header { margin-bottom: 2.5rem; }
.cfc-section-header h2 { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 400; color: var(--bean); margin-bottom: 0.5rem; }
.cfc-section-header p { color: var(--text-muted); font-size: 1.05rem; }

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

/* ── Article Cards ── */
.cfc-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Whole Card Clickable ── */
a.cfc-article-card, a.cfc-tool-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: #ffffff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
a.cfc-article-card:hover, a.cfc-tool-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--border-strong);
}
a.cfc-article-card img, a.cfc-article-card p, a.cfc-article-card span,
a.cfc-article-card h3, a.cfc-article-card .cfc-card-meta,
a.cfc-tool-card img, a.cfc-tool-card p, a.cfc-tool-card span,
a.cfc-tool-card h3, a.cfc-tool-card .cfc-card-meta { pointer-events: none; }

.cfc-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--foam); }
.cfc-card-body { padding: 1.25rem; }
.cfc-card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400; color: var(--bean); margin-bottom: 0.5rem; line-height: 1.3; }
.cfc-card-body p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }
.cfc-card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.cfc-card-meta .cfc-tag { background: var(--foam); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: var(--bean); }

/* ── Inline Tool Cards ── */
a.cfc-inline-tool {
  display: flex; align-items: flex-start; gap: 1rem;
  text-decoration: none; color: inherit; cursor: pointer;
  background: var(--foam); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; margin: 1.5rem 0;
  transition: var(--transition); box-shadow: var(--shadow);
}
a.cfc-inline-tool:hover { border-color: var(--brew); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
a.cfc-inline-tool .cfc-inline-tool-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--bean); color: #ffffff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; pointer-events: none;
}
a.cfc-inline-tool .cfc-inline-tool-text { flex: 1; pointer-events: none; }
a.cfc-inline-tool .cfc-inline-tool-text h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 400; color: var(--bean); margin-bottom: 0.35rem; pointer-events: none; }
a.cfc-inline-tool .cfc-inline-tool-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; pointer-events: none; }
a.cfc-inline-tool .cfc-inline-tool-privacy { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-style: italic; pointer-events: none; }

/* ── Article Page Layout ── */
.cfc-article-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.cfc-article-header h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 400; color: var(--bean); line-height: 1.2; margin-bottom: 1rem; }
.cfc-article-meta { display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; color: var(--text-muted); }
.cfc-article-meta .cfc-author-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cfc-article-content { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.cfc-article-content p { margin-bottom: 1.25rem; }
.cfc-article-content h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; color: var(--bean); margin: 2.5rem 0 1rem; }
.cfc-article-content h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400; color: var(--roast); margin: 2rem 0 0.75rem; }
.cfc-article-content blockquote { border-left: 4px solid var(--brew); padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: var(--text-muted); }
.cfc-article-content ul, .cfc-article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.cfc-article-content li { margin-bottom: 0.5rem; }
.cfc-article-content img { border-radius: var(--radius-lg); margin: 1.5rem 0; box-shadow: var(--shadow); }

/* ── Article Tail: 1-Column Full Width ── */
.cfc-article-tail {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.cfc-related-articles h3, .cfc-recommended-tools h3 {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400;
  color: var(--bean); margin-bottom: 1.25rem;
}
.cfc-related-list, .cfc-tool-list { list-style: none; }
.cfc-related-list li, .cfc-tool-list li { margin-bottom: 0.75rem; }
.cfc-related-list a, .cfc-tool-list a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; background: #ffffff; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.cfc-related-list a:hover, .cfc-tool-list a:hover { border-color: var(--brew); background: var(--foam); }
.cfc-related-list img { width: 60px; height: 45px; object-fit: cover; border-radius: var(--radius); pointer-events: none; }
.cfc-related-list span, .cfc-tool-list span { font-size: 0.9rem; font-weight: 600; color: var(--bean); pointer-events: none; }

/* ── Author Box ── */
.cfc-author-box {
  display: flex; gap: 1.25rem; background: var(--foam);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; margin: 2rem 0;
}
.cfc-author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; pointer-events: none; }
.cfc-author-box h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; color: var(--bean); margin-bottom: 0.25rem; }
.cfc-author-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ── Breadcrumb ── */
.cfc-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0;
}
.cfc-breadcrumb a { color: var(--bean); }
.cfc-breadcrumb a:hover { color: var(--brew); }
.cfc-breadcrumb span { color: var(--text-muted); }

/* ── Tool Detail Page ── */
.cfc-tool-hero { background: var(--bean); color: var(--text-inverse); padding: 3rem 0 2rem; }
.cfc-tool-hero h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; margin-bottom: 0.5rem; }
.cfc-tool-hero p { opacity: 0.85; max-width: 600px; }
.cfc-tool-panel {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0;
}
.cfc-form-group { margin-bottom: 1.25rem; }
.cfc-form-group label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--bean); margin-bottom: 0.5rem; }
.cfc-form-group input, .cfc-form-group select, .cfc-form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  background: #ffffff; transition: var(--transition);
}
.cfc-form-group input:focus, .cfc-form-group select:focus, .cfc-form-group textarea:focus {
  outline: none; border-color: var(--bean); box-shadow: 0 0 0 3px rgba(93,64,55,0.1);
}
.cfc-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); border: none; font-family: var(--font-body);
}
.cfc-btn-primary { background: var(--bean); color: #ffffff; }
.cfc-btn-primary:hover { background: var(--bean-dark); color: #ffffff; }
.cfc-btn-accent { background: var(--brew); color: #ffffff; }
.cfc-btn-accent:hover { background: var(--brew-hover); color: #ffffff; }
.cfc-btn-secondary { background: var(--foam); color: var(--bean); border: 1px solid var(--border); }
.cfc-btn-secondary:hover { background: var(--foam-warm); }
.cfc-btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Tool Results ── */
.cfc-result-box {
  background: var(--foam); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; display: none;
}
.cfc-result-box.active { display: block; }
.cfc-result-box h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; color: var(--bean); margin-bottom: 1rem; }
.cfc-result-value { font-size: 2rem; font-weight: 700; color: var(--brew); font-family: var(--font-mono); }

/* ── Charts ── */
.cfc-chart-container { width: 100%; height: 300px; margin: 1.5rem 0; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }

/* ── History Table ── */
.cfc-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.cfc-table th, .cfc-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cfc-table th { font-weight: 700; color: var(--bean); background: var(--foam); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cfc-table tr:hover td { background: var(--foam); }

/* ── FAQ Accordion ── */
.cfc-faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.cfc-faq-question {
  width: 100%; padding: 1rem 1.25rem; background: var(--foam); border: none;
  text-align: left; font-weight: 700; font-size: 1rem; color: var(--bean);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition); font-family: var(--font-body);
}
.cfc-faq-question:hover { background: var(--foam-warm); }
.cfc-faq-question::after { content: "+"; font-size: 1.25rem; color: var(--brew); transition: transform 0.3s ease; }
.cfc-faq-item.active .cfc-faq-question::after { transform: rotate(45deg); }
.cfc-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.cfc-faq-item.active .cfc-faq-answer { max-height: 500px; }
.cfc-faq-answer-inner { padding: 0 1.25rem 1.25rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ── About Page ── */
.cfc-about-hero { background: var(--foam); padding: 4rem 0 3rem; text-align: center; }
.cfc-about-hero img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 4px solid #ffffff; box-shadow: var(--shadow-hover); pointer-events: none; }
.cfc-about-hero h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; color: var(--bean); margin-bottom: 0.5rem; }
.cfc-about-hero .cfc-subtitle { color: var(--text-muted); font-size: 1.1rem; }
.cfc-credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.cfc-credential-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.cfc-credential-card .cfc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cfc-credential-card h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 400; color: var(--bean); margin-bottom: 0.35rem; }
.cfc-credential-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Contact Page ── */
.cfc-contact-section { max-width: 600px; margin: 0 auto; padding: 3rem 0; }
.cfc-contact-card {
  background: var(--foam); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; text-align: center;
}
.cfc-contact-card h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 400; color: var(--bean); margin-bottom: 0.75rem; }
.cfc-contact-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.cfc-contact-card a { color: var(--brew); font-weight: 700; font-size: 1.1rem; }
.cfc-disclaimer-box {
  background: var(--foam); border-left: 4px solid var(--text-muted);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;
}

/* ── 404 Page ── */
.cfc-error-page { text-align: center; padding: 6rem 1.5rem; }
.cfc-error-code { font-size: 6rem; font-weight: 700; color: var(--bean); line-height: 1; margin-bottom: 1rem; font-family: var(--font-mono); }
.cfc-error-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; color: var(--bean); margin-bottom: 1rem; }
.cfc-error-quote { font-size: 1.1rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cfc-error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.cfc-footer {
  background: var(--bean-dark); color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem; margin-top: 4rem;
}
.cfc-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.cfc-footer-col h4 { font-size: 0.9rem; font-weight: 700; color: #ffffff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cfc-footer-col ul { list-style: none; }
.cfc-footer-col li { margin-bottom: 0.5rem; }
.cfc-footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.cfc-footer-col a:hover { color: #ffffff; }
.cfc-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.cfc-back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: rgba(255,255,255,0.5); font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.cfc-back-to-top:hover { color: #ffffff; }

/* ── Pagination ── */
.cfc-load-more { text-align: center; margin: 2.5rem 0; }
.cfc-load-more-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem; background: #ffffff; border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--bean); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.cfc-load-more-btn:hover { border-color: var(--bean); background: var(--foam); }

/* ── Utility ── */
.cfc-text-center { text-align: center; }
.cfc-mt-1 { margin-top: 0.5rem; } .cfc-mt-2 { margin-top: 1rem; } .cfc-mt-3 { margin-top: 1.5rem; } .cfc-mt-4 { margin-top: 2rem; }
.cfc-mb-1 { margin-bottom: 0.5rem; } .cfc-mb-2 { margin-bottom: 1rem; } .cfc-mb-3 { margin-bottom: 1.5rem; } .cfc-mb-4 { margin-bottom: 2rem; }
.cfc-hidden { display: none !important; }
.cfc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ── */

/* ── Article Tail: Horizontal Scroll ── */
.cfc-article-tail {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.cfc-scroll-row {
  display: flex; gap: 1rem;
  overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cfc-scroll-row > a,
.cfc-scroll-row > .cfc-related-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: var(--shadow); transition: var(--transition);
  text-decoration: none; color: inherit; cursor: pointer;
}
.cfc-scroll-row > a:hover,
.cfc-scroll-row > .cfc-related-card:hover {
  border-color: var(--brew); box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cfc-scroll-row > a h4,
.cfc-scroll-row > .cfc-related-card h4 {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 400; color: var(--bean); margin-bottom: 0.5rem;
}
.cfc-scroll-row > a p,
.cfc-scroll-row > .cfc-related-card p {
  font-size: 0.85rem; color: var(--text-muted);
}

@media (max-width: 1023px) {
  .cfc-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cfc-hero-title { font-size: 2.25rem; }
  .cfc-tool-grid, .cfc-article-grid { grid-template-columns: repeat(2, 1fr); }
  .cfc-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cfc-credentials { grid-template-columns: repeat(2, 1fr); }
  .cfc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .cfc-nav-links { display: none !important; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bean); flex-direction: column !important; padding: 1rem 1.5rem; gap: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 999;
  }
  .cfc-nav-links.active { display: flex !important; }
  .cfc-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.1); list-style: none; }
  .cfc-nav-links a { display: block; padding: 0.875rem 0; }
  .cfc-nav-toggle { display: block; }
  .cfc-hero { padding: 3rem 0 2.5rem; }
  .cfc-hero-title { font-size: 1.75rem; }
  .cfc-tool-grid, .cfc-article-grid, .cfc-stats-grid, .cfc-credentials, .cfc-footer-grid { grid-template-columns: 1fr; }
  .cfc-article-header h1 { font-size: 1.75rem; }
  .cfc-error-code { font-size: 4rem; }
  .cfc-section-header h2 { font-size: 1.4rem; }
  .cfc-container, .cfc-container-narrow { padding: 0 1rem; }
}
@media (max-width: 479px) {
  .cfc-hero-title { font-size: 1.5rem; }
  .cfc-btn-group { flex-direction: column; }
  .cfc-btn { width: 100%; justify-content: center; }
  .cfc-author-box { flex-direction: column; text-align: center; }
  .cfc-author-box img { margin: 0 auto; }
  a.cfc-inline-tool { flex-direction: column; text-align: center; }
  a.cfc-inline-tool .cfc-inline-tool-icon { margin: 0 auto; }
}
