:root{
  color-scheme: dark light;
  --bg: #0b0f14;
  --text: #e6f0ff;
  --muted: #9fb2c5;
  --muted2: #c9d7e6;
  --border: #223144;
  --card: #0e141c;
  --card2: #141c24;
  --link: #8fd9ff;
  --shadow: 0 10px 30px rgba(0,0,0,0.22);
}

/* Minimal, stable CSS for server-generated SEO pages.
   Intentionally not Tailwind-dependent and not hashed, so backend can link reliably. */

html, body { margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* --- top progress + continue pill (inspired by example second.html) --- */
.top-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: rgba(245, 246, 244, 0.92);
  z-index: 10000;
  opacity: 0.75;
}

.continue-pill{
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 9999;
  display: none;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(245, 246, 244, 0.95);
  color: #0b0f14;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  font-size: 0.85rem;
}
.continue-pill a{ text-decoration:none; color:#0b0f14; }

.container{
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  align-items:center;
  font-size: 13px;
  color:var(--muted);
  margin-bottom: 10px;
}
.breadcrumbs a{ color:var(--muted); }
.breadcrumbs-sep{ opacity:0.6; }
.breadcrumbs-current{ color:var(--text); opacity:0.9; }

.page-header{ margin-bottom: 6px; }

h1{
  font-size: 40px;
  line-height: 1.15;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}

/* action bar under H1 */
.actionbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin: 14px 0 18px;
}
.btn-primary{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 246, 244, 0.95);
  color: #0b0f14;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}
.btn-primary:hover{ opacity: 0.92; text-decoration:none; }
.btn-secondary{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 246, 244, 0.10);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid rgba(245, 246, 244, 0.18);
}
.btn-secondary:hover{
  background: rgba(245, 246, 244, 0.14);
  text-decoration:none;
}
.actionbar-note{
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.9;
}

.lede{
  font-size: 18px;
  color:var(--muted2);
  margin: 0 0 18px;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  font-size: 13px;
  color:var(--muted);
  margin: 0 0 22px;
}

.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

.kicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:var(--muted);
  margin-bottom: 6px;
}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color:var(--muted2);
}

h2{
  font-size: 24px;
  margin: 26px 0 10px;
}

h3{
  font-size: 18px;
  margin: 18px 0 8px;
  color:#e6f0ff;
}

p{ margin: 10px 0; color:#c9d7e6; }

.article p{ color:var(--muted2); }
.article h2, .article h3{ scroll-margin-top: 18px; }

details{
  border:1px solid var(--border);
  background:var(--card);
  border-radius: 12px;
  padding: 12px 14px;
}
details + details{ margin-top: 10px; }
summary{ cursor:pointer; color:#e6f0ff; font-weight: 600; }

.related-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 740px){
  .related-grid{ grid-template-columns: 1fr 1fr; }
}

.cta{
  display:inline-block;
  margin-top: 14px;
  background: #8b5cf6;
  color:#0b0f14;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}
.cta:hover{ filter: brightness(1.05); text-decoration:none; }

/* --- In-flow relief block (inspired by example.html) --- */
.inline-relief{ margin: 28px 0; }
.inline-relief-card{
  background: linear-gradient(180deg, rgba(245,246,244,0.98), rgba(245,246,244,0.94));
  color: #0b0f14;
  border-radius: 14px;
  padding: 18px 18px;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.inline-relief-card h3{ margin: 10px 0 6px; color:#0b0f14; }
.inline-relief-card p{ color: rgba(11,15,20,0.85); }
.inline-eyebrow{
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 6px 0;
}
.inline-list{
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}
.inline-list li{ margin: 6px 0; }
.inline-list li::before{ content: "• "; }
.inline-relief-button{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.inline-relief-button:hover{ opacity: 0.93; text-decoration:none; }
.inline-note{
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 8px;
}

/* Kindness variant */
.inline-kindness .inline-relief-card{
  background: linear-gradient(180deg, rgba(74,222,128,0.15), rgba(34,197,94,0.08));
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--text);
}
.inline-kindness .inline-relief-card h3{ color: var(--text); }
.inline-kindness .inline-relief-card p{ color: var(--muted2); }
.inline-kindness .inline-eyebrow{ color: #4ade80; opacity: 1; }
.inline-kindness-button{
  background: #4ade80 !important;
  color: #0b0f14 !important;
}
.inline-kindness-button:hover{ background: #22c55e !important; }

/* --- Sticky relief hint (shown via /articles.js after scroll) --- */
.relief-hint{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px;

  background: rgba(245, 246, 244, 0.95);
  color: #0b0f14;
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.relief-hint p{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}
.relief-hint-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.relief-hint a{
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
}
.relief-hint button{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: 0.55;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.relief-hint button:hover{
  opacity: 0.85;
  background: rgba(0,0,0,0.06);
}

/* Kindness sticky hint variant */
.kindness-hint{
  background: linear-gradient(180deg, rgba(74,222,128,0.95), rgba(34,197,94,0.92));
  color: #0b0f14;
}
.kindness-hint p{ color: #0b0f14; }
.kindness-hint a{
  background: #0b0f14;
  color: #4ade80;
}

/* Kindness actionbar variant */
.kindness-actionbar .btn-kindness{
  background: #4ade80;
  color: #0b0f14;
}
.kindness-actionbar .btn-kindness:hover{
  background: #22c55e;
}

@media (min-width: 900px){
  .relief-hint{
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
}

/* --- Footer --- */
.site-footer{
  margin-top: 60px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  opacity: 0.8;
}
.footer-content{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 4px;
  font-size: 0.875rem;
}
.footer-sep{
  opacity: 0.6;
}
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
}
.footer-nav a{
  color: var(--muted);
  text-decoration: none;
  padding: 4px 4px;
  margin: -4px -4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-nav a:hover{
  color: var(--text);
  text-decoration: underline;
}
@media (max-width: 640px){
  .site-footer{
    padding: 20px 12px;
  }
  .footer-content{
    flex-direction: column;
    gap: 12px 0;
  }
  .footer-sep{
    display: none;
  }
  .footer-nav{
    gap: 12px 8px;
  }
}


