/* ============================================================
   LASTINGMASTERY — SHARED DESIGN SYSTEM
   Aesthetic: "Editorial Wellness" — premium, calm, trustworthy
   Inspired by Hims / D2C men's health 2025 best practices
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ============================================================ */

/* ── Note: add these to every <head> ──
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet">
   ──────────────────────────────────── */

:root {
  /* ── Backgrounds ── */
  --bg:          #faf9f6;    /* warm off-white page */
  --bg-2:        #f2f0ec;    /* subtle section alt */
  --bg-3:        #ede9e4;    /* stronger bg separator */
  --surface:     #ffffff;    /* card / modal / panel */

  /* ── Text ── */
  --text:        #1c1917;    /* primary — warm charcoal, not harsh */
  --text-2:      #57534e;    /* secondary body copy */
  --muted:       #a8a29e;    /* placeholder / metadata */

  /* ── Primary — muted teal (trust · health · calm) ── */
  --primary:         #0e7a8e;
  --primary-dark:    #0c6575;
  --primary-light:   #e4f5f7;
  --primary-faint:   #f0fbfc;
  --primary-mid:     #5bbdd0;

  /* ── Warm accent — coral (CTAs · energy · approachable) ── */
  --warm:        #c2410c;
  --warm-light:  #fff7ed;
  --warm-mid:    #f97316;

  /* ── Semantic ── */
  --success:     #059669;
  --success-bg:  #ecfdf5;
  --danger:      #dc2626;

  /* ── Borders ── */
  --border:      #e7e5e4;
  --border-2:    #d6d3d1;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(28,25,23,0.04);
  --shadow-sm: 0 1px 4px rgba(28,25,23,0.06), 0 2px 6px rgba(28,25,23,0.04);
  --shadow:    0 4px 16px rgba(28,25,23,0.08), 0 2px 6px rgba(28,25,23,0.04);
  --shadow-lg: 0 12px 40px rgba(28,25,23,0.1), 0 4px 12px rgba(28,25,23,0.05);
  --shadow-primary: 0 8px 28px rgba(14,122,142,0.26);

  /* ── Radius ── */
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 100px;

  /* ── Layout ── */
  --max-w:         1200px;
  --max-w-content: 1060px;
  --max-w-narrow:  760px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; }
button { font-family: inherit; }

/* ======================================
   TYPOGRAPHY HELPERS
   ====================================== */
.font-display { font-family: 'Cormorant Garamond', serif; }

.eyebrow {
  display: block;
  font-size: 0.695rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.section-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.72;
  margin-top: 0.65rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.teal-rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.85rem auto;
  opacity: 0.7;
}

/* ======================================
   LAYOUT
   ====================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section    { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 0.18s;
}
.nav-link:hover { color: var(--text); }

.btn-header {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,122,142,0.25);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  line-height: 1;
  align-items: center;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  line-height: 1;
}

.mobile-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s;
}
.mobile-nav-link:hover { color: var(--primary); }

/* ======================================
   BUTTONS
   ====================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ======================================
   TRUST BAR
   ====================================== */
.trust-bar {
  background: var(--primary-light);
  border-bottom: 1px solid rgba(14,122,142,0.14);
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}
.trust-bar-sep {
  width: 4px;
  height: 4px;
  background: var(--primary-mid);
  border-radius: 50%;
  opacity: 0.5;
}

/* ======================================
   CARDS
   ====================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
}

/* ======================================
   TAGS / BADGES
   ====================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-full);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-free {
  background: var(--success-bg);
  color: #047857;
  border: 1px solid rgba(4,120,87,0.25);
}
.tag-locked {
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 0.9rem;
}

/* ======================================
   FAQ ACCORDION
   ====================================== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
  border-color: var(--primary-mid);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.18s;
  gap: 1rem;
}
.faq-trigger:hover { background: var(--bg); }

.faq-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.28s;
}

.faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.72;
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 4.5rem 0 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fafaf8;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--primary-mid); }

.footer-desc {
  font-size: 0.83rem;
  color: #a8a5a2;
  line-height: 1.72;
  max-width: 220px;
}

.footer-col-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.83rem;
  color: #a8a5a2;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-link:hover { color: #fafaf8; }

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 2rem;
}

.disclaimer-box {
  background: rgba(14,122,142,0.06);
  border: 1px solid rgba(14,122,142,0.15);
  border-radius: var(--r-sm);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.73rem;
  color: #a8a5a2;
  line-height: 1.6;
}
.disclaimer-box strong { color: var(--primary-mid); }

.footer-copy {
  font-size: 0.78rem;
  color: #a8a5a2;
  text-align: center;
}

/* ======================================
   ARTICLE HEADER — lead paragraph left-aligned on desktop
   ====================================== */
@media (min-width: 768px) {
  .article-header-inner p {
    text-align: left !important;
  }
}

/* ======================================
   SCROLL REVEALS
   — opacity:0 only applied when JS has loaded (.js on <html>),
     so crawlers/screenshots/no-JS users always see content.
   ====================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ======================================
   BREADCRUMB
   ====================================== */
.breadcrumb-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-2); }

/* ======================================
   ARTICLE PROSE
   ====================================== */
.prose p           { margin-bottom: 1.1rem; line-height: 1.78; color: var(--text-2); }
.prose h2          { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.85rem; letter-spacing: -0.015em; line-height: 1.2; }
.prose h3          { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.65rem; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1.1rem; }
.prose li          { margin-bottom: 0.4rem; color: var(--text-2); line-height: 1.7; }
.prose strong      { color: var(--text); font-weight: 700; }
.prose a           { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover     { color: var(--primary-dark); }
.prose blockquote  { border-left: 3px solid var(--primary); padding-left: 1.25rem; margin: 1.5rem 0; color: var(--text-2); font-style: italic; }

.science-note {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0;
}
.science-note-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.science-note p { color: var(--primary-dark); margin-bottom: 0; }

.article-cta-box {
  background: var(--primary);
  color: #fff;
  padding: 2rem;
  border-radius: var(--r-lg);
  text-align: center;
  margin: 2rem 0;
}
.article-cta-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-cta-box p  { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; font-size: 0.9rem; }
.article-cta-box a  { display: inline-block; background: #fff; color: var(--primary); padding: 0.75rem 1.75rem; border-radius: var(--r-sm); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.2s; }
.article-cta-box a:hover { background: var(--primary-light); }

/* ======================================
   ARTICLE CONTENT COMPONENTS
   Replaces Tailwind utility classes in
   blog articles and guide articles.
   ====================================== */

/* Numbered step cards (border-left accent) */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.step-card-alt { border-left-color: var(--success); }

/* Circular number badge inside step headings */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.75rem;
}
.step-num-alt { background: var(--success); }

/* Topic tag pills (hero article badges) */
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Insight / warning callout (warm tones) */
.insight-box {
  background: var(--warm-light);
  border-left: 3px solid var(--warm-mid);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0;
}
.insight-box-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data table in articles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
}
.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--bg-2); }
.data-table tr:hover td { background: var(--primary-faint); }

/* Reference citation list */
.citation-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}
.citation-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.citation-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.citation-links a {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.citation-links a:hover { text-decoration: underline; }

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .menu-btn    { display: flex !important; }
  .main-content, .container { padding: 0 1rem; }
  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .header-inner { padding: 0 1rem; }
  .footer-inner { padding: 0 1rem; }
  .trust-bar-inner { padding: 0.5rem 1rem; gap: 0.6rem; justify-content: center; }
  .trust-bar-sep { display: none; }
  .trust-bar-item { font-size: 0.7rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .problem-icon { width: 2rem; height: 2rem; }
  .problem-icon svg { width: 15px; height: 15px; }
}

/* ======================================
   ARTICLE TABLE OVERRIDES
   Force teal headers on inline-styled tables
   in guide/blog article content.
   ====================================== */
main table thead,
article table thead { background: var(--primary) !important; }
main table thead th,
article table thead th {
  color: #fff !important;
  border-color: var(--primary) !important;
  font-weight: 600;
}
main table td,
article table td { vertical-align: top; }

/* ======================================
   TAILWIND COLOR BRIDGE
   Maps Tailwind blue-600 utility classes
   to the design-system primary teal.
   Loads after Tailwind CDN, overrides it.
   ====================================== */

/* Text colors */
.text-blue-600,
.hover\:text-blue-600:hover { color: var(--primary) !important; }
.text-blue-700               { color: var(--primary-dark) !important; }
.text-blue-100               { color: rgba(255,255,255,0.85) !important; }

/* Background colors */
.bg-blue-600                 { background-color: var(--primary) !important; }
.hover\:bg-blue-600:hover    { background-color: var(--primary) !important; }
.bg-blue-700,
.hover\:bg-blue-700:hover    { background-color: var(--primary-dark) !important; }
.bg-blue-50                  { background-color: var(--primary-faint) !important; }
.bg-blue-100                 { background-color: var(--primary-light) !important; }

/* Border colors */
.border-blue-600             { border-color: var(--primary) !important; }
.border-blue-200             { border-color: rgba(14,122,142,0.2) !important; }

/* CTA gradient blocks — from blue to blue */
.from-blue-600               { --tw-gradient-from: var(--primary) !important; }
.to-blue-700                 { --tw-gradient-to: var(--primary-dark) !important; }
.from-blue-600.to-blue-700,
.bg-gradient-to-br.from-blue-600 { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important; }

/* Emerald (success states) — keep as-is, they're fine */
/* Focus rings */
.focus\:ring-blue-500:focus  { --tw-ring-color: rgba(14,122,142,0.3) !important; }
.focus\:border-blue-500:focus { border-color: var(--primary) !important; }

/* Body background — ensure light theme for all pages */
body { background-color: var(--bg) !important; }

/* ======================================
   TAILWIND UTILITY BRIDGE (no CDN)
   Defines all remaining Tailwind classes
   used in Blog/ and Guides/ pages.
   ====================================== */

/* Text colors */
.text-slate-900,.text-slate-800,.text-blue-900,.text-gray-900 { color: var(--text); }
.text-slate-700,.text-slate-600,.text-gray-700,.text-gray-600 { color: var(--text-2); }
.text-slate-500,.text-gray-500,.text-slate-400 { color: var(--muted); }
.text-blue-500 { color: var(--primary); }
.text-emerald-600,.text-emerald-500,.text-green-600 { color: var(--success); }
.text-yellow-900,.text-amber-900,.text-orange-900 { color: var(--warm); }
.text-yellow-700,.text-amber-700 { color: var(--warm-mid); }
.text-red-600,.text-red-700 { color: #dc2626; }

/* Text sizes */
.text-xs  { font-size: 0.75rem;  line-height: 1.25; }
.text-sm  { font-size: 0.875rem; line-height: 1.5;  }
.text-base{ font-size: 1rem;     line-height: 1.5;  }
.text-lg  { font-size: 1.125rem; line-height: 1.75; }
.text-xl  { font-size: 1.25rem;  line-height: 1.75; }
.text-2xl { font-size: 1.5rem;   line-height: 2;    }
.text-3xl { font-size: 1.875rem; line-height: 2.25; }
.text-4xl { font-size: 2.25rem;  line-height: 2.5;  }

/* Font weight */
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

/* Font style & decoration */
.italic       { font-style: italic; }
.not-italic   { font-style: normal; }
.underline    { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }
.hover\:underline:hover     { text-decoration: underline; }
.hover\:no-underline:hover  { text-decoration: none; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-blue-700:hover { color: var(--primary-dark); }
.hover\:text-yellow-700:hover{ color: var(--warm-mid); }

/* Line height */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }
.leading-loose   { line-height: 2; }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Tracking */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest{ letter-spacing: 0.1em; }
.uppercase      { text-transform: uppercase; }

/* Backgrounds */
.bg-white        { background-color: #fff; }
.bg-gray-50,.bg-slate-50,.bg-stone-50 { background-color: var(--bg-2); }
.bg-gray-100,.bg-slate-100,.bg-stone-100 { background-color: var(--bg-3); }
.bg-yellow-50    { background-color: var(--warm-light); }
.bg-red-50       { background-color: #fef2f2; }
.bg-emerald-50   { background-color: #ecfdf5; }
.bg-green-50     { background-color: #f0fdf4; }
.bg-emerald-100  { background-color: #d1fae5; }
.bg-emerald-600,.bg-emerald-700  { background-color: var(--success); }
.hover\:bg-slate-50:hover,.hover\:bg-gray-50:hover { background-color: var(--bg-2); }
.hover\:bg-slate-100:hover  { background-color: var(--bg-3); }
.hover\:bg-blue-50:hover    { background-color: var(--primary-faint); }
.hover\:bg-yellow-300:hover { background-color: #fde047; }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.hover\:bg-emerald-50:hover { background-color: #ecfdf5; }
.hover\:bg-emerald-600:hover{ background-color: var(--success); }

/* Border radius */
.rounded    { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: var(--r); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl{ border-radius: 1rem; }
.rounded-3xl{ border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Borders */
.border   { border: 1px solid var(--border); }
.border-2 { border: 2px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-slate-200,.border-gray-200,.border-stone-200 { border-color: var(--border); }
.border-blue-500  { border-color: var(--primary); }
.hover\:border-blue-500:hover  { border-color: var(--primary); }
.hover\:border-blue-600:hover  { border-color: var(--primary); }
.hover\:border-blue-200:hover  { border-color: rgba(14,122,142,0.3); }
.hover\:border-blue-300:hover  { border-color: rgba(14,122,142,0.4); }
.hover\:shadow-md:hover  { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1); }
.hover\:shadow-lg:hover  { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1); }
.hover\:shadow-xl:hover  { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1); }

/* Padding */
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-2 { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }
.py-1 { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem;     padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }

/* Margin */
.m-0  { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12{ margin-bottom: 3rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-3 { margin-right: 0.75rem; }

/* Display */
.block        { display: block; }
.inline       { display: inline; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none; }
.grid         { display: grid; }

/* Flexbox */
.flex-row    { flex-direction: row; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1      { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow   { flex-grow: 1; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }

/* Space between children */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Sizing */
.w-full  { width: 100%; }
.w-auto  { width: auto; }
.w-4  { width: 1rem; }
.w-5  { width: 1.25rem; }
.w-6  { width: 1.5rem; }
.w-8  { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-none { max-width: none; }
.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.min-w-0    { min-width: 0; }

/* Overflow */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }
.overflow-x-auto  { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.inset-0  { top:0; right:0; bottom:0; left:0; }
.top-0    { top: 0; }
.z-10     { z-index: 10; }
.z-50     { z-index: 50; }

/* Misc */
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.pointer-events-none { pointer-events: none; }
.opacity-75     { opacity: 0.75; }
.opacity-50     { opacity: 0.5; }
.shadow         { box-shadow: 0 1px 3px rgba(0,0,0,0.1),0 1px 2px rgba(0,0,0,0.06); }
.shadow-md      { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg      { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl      { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1); }
.transition     { transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.duration-200   { transition-duration: 200ms; }

/* Lists — prevent double markers when text has embedded bullets/numbers */
ul.list-none,ol.list-none { list-style: none; padding-left: 0; }
.list-disc   { list-style-type: disc; }
.list-decimal{ list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.list-outside{ list-style-position: outside; }

/* Prose base (for article content) */
.prose { color: var(--text-2); line-height: 1.75; }
.prose h2,.prose h3,.prose h4 { color: var(--text); font-family: 'Cormorant Garamond',serif; }
.prose a { color: var(--primary); }
.prose strong { color: var(--text); font-weight: 700; }
.prose-lg { font-size: 1.125rem; }

/* Tailwind grid auto-fit helpers used in some pages */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:flex-row    { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
