/*
Theme Name: USFans Spreadsheet
Theme URI: https://sheetfinds.com/
Author: USFans
Author URI: https://sheetfinds.com/
Description: A clean, bright and colorful SEO-focused theme for USFans Spreadsheet — the ultimate guide to product spreadsheets, links and finds. Includes a category dropdown, product grid, guide articles and CTA buttons that link to the main sheetfinds.com store.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usfans-spreadsheet
Tags: seo, shopping, one-page, ecommerce, bright, light, colorful
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --bg-main: #FFF8F3;
  --bg-section: #FFFFFF;
  --bg-accent: #FEF3E7;
  --bg-soft: #F9FAFB;
  --ink: #1F2937;
  --ink-muted: #6B7280;
  --ink-light: #9CA3AF;
  --border: #F1E4D3;
  --border-light: #F3F4F6;

  --brand: #EC4899;
  --brand-dark: #DB2777;
  --brand-soft: #FCE7F3;

  --secondary: #3B82F6;
  --secondary-dark: #2563EB;

  --accent-yellow: #FCD34D;
  --accent-yellow-soft: #FEF3C7;
  --accent-purple: #A78BFA;
  --accent-purple-soft: #EDE9FE;
  --accent-green: #34D399;
  --accent-green-soft: #D1FAE5;
  --accent-orange: #F97316;
  --accent-orange-soft: #FFEDD5;
  --accent-teal: #14B8A6;
  --accent-teal-soft: #CCFBF1;
  --accent-red: #F43F5E;
  --accent-red-soft: #FFE4E6;
  --accent-blue: #60A5FA;
  --accent-blue-soft: #DBEAFE;
  --accent-lime: #A3E635;
  --accent-lime-soft: #ECFCCB;
  --accent-indigo: #818CF8;
  --accent-indigo-soft: #E0E7FF;

  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.05);
  --shadow: 0 4px 12px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 20px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 41, 55, 0.10);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --container: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
}
.site-brand:hover { color: var(--ink); }
.site-brand .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-orange) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
}
.site-brand small {
  display: block; font-size: 0.72rem; color: var(--ink-muted);
  font-weight: 500; letter-spacing: 0.02em;
}

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav > a,
.primary-nav > .dropdown > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  background: transparent; border: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav > a:hover,
.primary-nav > .dropdown > button:hover { background: var(--bg-accent); color: var(--brand-dark); }
.primary-nav > .cta {
  background: var(--brand); color: #fff;
  padding: 10px 18px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
}
.primary-nav > .cta:hover { background: var(--brand-dark); color: #fff; }

.dropdown { position: relative; }
.dropdown > button .caret {
  width: 12px; height: 12px; display: inline-block;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.dropdown[open] > button .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 280px;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dropdown[open] .dropdown-panel,
.dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.dropdown-panel a:hover { background: var(--bg-accent); color: var(--brand-dark); }
.dropdown-panel .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-accent); border: 0;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 4px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a, .primary-nav > .dropdown > button, .primary-nav > .cta {
    width: 100%; justify-content: flex-start; border-radius: 10px;
  }
  .dropdown-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 4px 12px;
    display: none; min-width: 0;
  }
  .dropdown[open] .dropdown-panel { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(1200px 400px at 10% -10%, var(--accent-yellow-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 10%, var(--accent-purple-soft) 0%, transparent 55%),
    radial-gradient(700px 400px at 50% 100%, var(--brand-soft) 0%, transparent 60%),
    var(--bg-main);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--border);
  color: var(--brand-dark); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.hero h1 {
  margin-top: 18px; font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent-orange) 55%, var(--accent-purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 14px; font-size: 1.125rem; color: var(--ink-muted);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem;
  border: 0; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-orange) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(236, 72, 153, 0.36); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost {
  background: transparent; color: var(--brand-dark);
  padding: 12px 18px;
}
.btn-ghost:hover { color: var(--brand); }
.btn .arrow {
  width: 14px; height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
}

.hero-meta {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px 32px;
}
.hero-meta .stat b { display: block; font-size: 1.4rem; color: var(--ink); }
.hero-meta .stat span { font-size: 0.85rem; color: var(--ink-muted); }

/* Hero visual — floating category cards */
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-left: auto;
}
.hero-visual .float-card {
  position: absolute;
  background: #fff; border-radius: var(--radius-md);
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem;
  animation: bob 5s ease-in-out infinite;
}
.hero-visual .float-card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
}
.hero-visual .fc-1 { top: 4%; left: 8%; animation-delay: 0s; }
.hero-visual .fc-2 { top: 22%; right: 0; animation-delay: 0.6s; }
.hero-visual .fc-3 { top: 52%; left: 0; animation-delay: 1.2s; }
.hero-visual .fc-4 { bottom: 8%; right: 6%; animation-delay: 1.8s; }
.hero-visual .fc-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-orange) 60%, var(--accent-yellow) 100%);
  display: grid; place-items: center; color: #fff;
  font-weight: 800; text-align: center; padding: 20px;
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.32);
}
.hero-visual .fc-center span { display: block; font-size: 0.75rem; opacity: 0.85; letter-spacing: 0.12em; }
.hero-visual .fc-center b { display: block; font-size: 1.4rem; margin-top: 4px; line-height: 1.15; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-section); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { letter-spacing: -0.015em; }
.section-head p { color: var(--ink-muted); margin-top: 8px; font-size: 1.05rem; }

/* ==========================================================================
   Category grid (11 products)
   ========================================================================== */
.category-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px 20px 20px;
  color: var(--ink); text-align: left; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  border-color: transparent;
}
.category-card .cat-ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.category-card .cat-ico svg { width: 30px; height: 30px; }
.category-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.category-card p { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }
.category-card .go {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-accent); display: grid; place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.category-card .go::after {
  content: ''; width: 8px; height: 8px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}
.category-card:hover .go { background: var(--brand); transform: rotate(-45deg); }
.category-card:hover .go::after { border-color: #fff; }

/* Color swatches — 11 rotating themes */
.cat-1  .cat-ico { background: var(--brand-soft); color: var(--brand); }
.cat-2  .cat-ico { background: var(--accent-orange-soft); color: var(--accent-orange); }
.cat-3  .cat-ico { background: var(--accent-yellow-soft); color: #B45309; }
.cat-4  .cat-ico { background: var(--accent-green-soft); color: #059669; }
.cat-5  .cat-ico { background: var(--accent-teal-soft); color: #0F766E; }
.cat-6  .cat-ico { background: var(--accent-blue-soft); color: #2563EB; }
.cat-7  .cat-ico { background: var(--accent-indigo-soft); color: #4F46E5; }
.cat-8  .cat-ico { background: var(--accent-purple-soft); color: #7C3AED; }
.cat-9  .cat-ico { background: var(--accent-red-soft); color: var(--brand-dark); }
.cat-10 .cat-ico { background: var(--accent-lime-soft); color: #65A30D; }
.cat-11 .cat-ico { background: var(--bg-accent); color: var(--accent-orange); }

/* ==========================================================================
   Feature strip (2 CTA banners)
   ========================================================================== */
.feature-strip {
  display: grid; gap: 24px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) { .feature-strip { grid-template-columns: 1fr; } }
.feature-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
  position: relative; overflow: hidden;
}
.feature-card.fc-a {
  background: linear-gradient(135deg, #FF6B9D 0%, #F97316 100%);
}
.feature-card.fc-b {
  background: linear-gradient(135deg, #6366F1 0%, #14B8A6 100%);
}
.feature-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.feature-card p { color: rgba(255,255,255,0.92); margin-bottom: 20px; }
.feature-card .btn { background: #fff; color: var(--ink); }
.feature-card .btn:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.feature-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.feature-card::before {
  content: ''; position: absolute; right: 80px; bottom: -60px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

/* ==========================================================================
   Article grid (12 posts)
   ========================================================================== */
.article-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .cover {
  height: 160px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
  padding: 20px; text-align: center;
  position: relative; overflow: hidden;
}
.article-card .cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%);
}
.article-card .cover span { position: relative; z-index: 1; }
.article-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-card .tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35;
}
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand-dark); }
.article-card p {
  font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 16px; flex: 1;
}
.article-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem; color: var(--brand-dark);
}
.article-card .read-more:hover { color: var(--brand); }
.article-card .read-more::after {
  content: '→'; transition: transform 0.15s ease;
}
.article-card .read-more:hover::after { transform: translateX(3px); }

/* Cover color rotation */
.cover-1  { background: linear-gradient(135deg, #EC4899, #F97316); }
.cover-2  { background: linear-gradient(135deg, #6366F1, #A78BFA); }
.cover-3  { background: linear-gradient(135deg, #14B8A6, #34D399); }
.cover-4  { background: linear-gradient(135deg, #F59E0B, #F97316); }
.cover-5  { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.cover-6  { background: linear-gradient(135deg, #DB2777, #A855F7); }
.cover-7  { background: linear-gradient(135deg, #059669, #14B8A6); }
.cover-8  { background: linear-gradient(135deg, #F97316, #FCD34D); }
.cover-9  { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.cover-10 { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.cover-11 { background: linear-gradient(135deg, #DC2626, #F97316); }
.cover-12 { background: linear-gradient(135deg, #16A34A, #FACC15); }

/* ==========================================================================
   Value / trust bar
   ========================================================================== */
.trust-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px;
}
.trust-item .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.trust-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.trust-item p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(255,255,255,0.28), transparent 60%),
    linear-gradient(135deg, #EC4899 0%, #F97316 60%, #FCD34D 100%);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-final h2 { color: #fff; font-size: 2rem; }
.cta-final p { color: rgba(255,255,255,0.95); max-width: 620px; margin: 0 auto 24px; }
.cta-final .btn { background: #fff; color: var(--ink); }
.cta-final .btn:hover { color: var(--ink); }

/* ==========================================================================
   Article / page single
   ========================================================================== */
.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 300px at 0% 0%, var(--accent-yellow-soft), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, var(--brand-soft), transparent 60%),
    var(--bg-main);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb span.sep { color: var(--ink-light); }

.article-hero-tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--border);
  color: var(--brand-dark); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.page-hero h1 { max-width: 820px; letter-spacing: -0.015em; }
.page-hero .meta {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px;
  color: var(--ink-muted); font-size: 0.9rem;
}
.page-hero .meta b { color: var(--ink); font-weight: 600; }

.article-body {
  padding: 48px 0 72px;
}
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.prose {
  font-size: 1.05rem; line-height: 1.75; color: #374151;
  max-width: 780px;
}
.prose h2 { margin-top: 2em; font-size: 1.6rem; letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin-bottom: 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 12px 12px 0;
  color: var(--ink); font-style: italic;
}
.prose .cta-inline {
  margin: 2em 0; padding: 24px 26px;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-yellow-soft));
  border-radius: var(--radius-md);
}
.prose .cta-inline h4 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.prose .cta-inline p { margin: 0 0 12px; color: var(--ink-muted); }

.sidebar {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 20px;
}
.side-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px 22px;
}
.side-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 14px; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { margin-bottom: 10px; }
.side-card li a {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 6px 8px; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-card li a:hover { background: var(--bg-accent); color: var(--brand-dark); }
.side-card li a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}
.side-card.side-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-orange) 100%);
  color: #fff; border: 0;
}
.side-card.side-cta h4 { color: rgba(255,255,255,0.85); }
.side-card.side-cta p { color: rgba(255,255,255,0.95); margin-bottom: 16px; }
.side-card.side-cta .btn {
  background: #fff; color: var(--ink); width: 100%; justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #1F2937; color: #D1D5DB;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D1D5DB; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block .site-brand { color: #fff; }
.site-footer .brand-block p { color: #9CA3AF; margin-top: 12px; font-size: 0.95rem; }
.site-footer .footer-bottom {
  border-top: 1px solid #374151; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: #9CA3AF; font-size: 0.85rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
