/* ── Blog shared vars ─────────────────────────────────────── */
:root {
  --warm-bg:    #FDF8F2;
  --warm-bg-2:  #FAF3EA;
  --warm-rule:  #EDE3D5;
  --warm-text:  #3D2B1A;
  --warm-mid:   #7A5C42;
  --warm-light: #B89E87;
  --amber:      #D97706;
  --amber-bg:   #FEF3C7;
  --amber-rule: #FCD34D;
}

/* ── Category tags ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1.5px solid;
}

.tag-screen-time  { color: var(--cobalt);      border-color: var(--cobalt);      background: rgba(37,99,235,0.06);  }
.tag-research     { color: var(--teal);        border-color: var(--teal);        background: rgba(15,139,141,0.07); }
.tag-chores       { color: var(--amber);       border-color: var(--amber);       background: var(--amber-bg);       }
.tag-family       { color: var(--coral);       border-color: var(--coral);       background: rgba(222,91,73,0.06);  }
.tag-health       { color: #059669;            border-color: #059669;            background: rgba(5,150,105,0.06);  }
.tag-seasonal     { color: #7C3AED;            border-color: #7C3AED;            background: rgba(124,58,237,0.06); }

/* Optional jurisdiction tags — additive, only when location materially changes the advice */
.tag-jurisdiction-au { color: #0F766E; border-color: #0F766E; background: rgba(15,118,110,0.08); }
.tag-jurisdiction-us { color: #1D4ED8; border-color: #1D4ED8; background: rgba(29,78,216,0.08); }

/* ── Blog Index ───────────────────────────────────────────── */
.blog-index-header {
  background: linear-gradient(160deg, #e8f0fe 0%, var(--mist) 100%);
  padding: 72px 0 48px;
  border-bottom: 1px solid #D1DCE8;
}

.blog-index-header .section-label {
  display: block;
  margin-bottom: 14px;
}

.blog-index-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.blog-index-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Post list */
.post-list {
  background: var(--white);
  padding: 0 0 96px;
}

.post-list-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-list-item {
  display: block;
  padding: 40px 0;
  border-bottom: 1px solid #E8EFF7;
  transition: opacity 0.2s;
}

.post-list-item:first-child {
  padding-top: 48px;
}

.post-list-item:hover { opacity: 0.7; }

.post-list-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid #DDE7F2;
}

/* Thumbnail on index */
.post-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: block;
}

.post-list-item .tag {
  margin-bottom: 14px;
}

.post-list-item h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.post-list-item:hover h2 { color: var(--cobalt); }

.post-list-excerpt {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 600px;
}

.post-list-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.post-list-meta .sep { color: #D1DCE8; }

.post-list-meta .read-link {
  margin-left: auto;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-list-meta .read-link::after { content: ' →'; }

/* ── Blog Post / Article ──────────────────────────────────── */

/* Post hero — keep dark gradient, tighten up */
.post-hero {
  background: linear-gradient(160deg, var(--ink-dark) 0%, #1a3a70 55%, #0a4f5a 100%);
  padding: 72px 0 64px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
  top: -150px;
  right: -80px;
  pointer-events: none;
}

.post-hero .container {
  max-width: 800px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  transition: color 0.2s;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.post-back::before { content: '←'; }
.post-back:hover { color: rgba(255,255,255,0.85); }

.post-hero .tag {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
}

.post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: var(--white);
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.post-hero-meta .sep { color: rgba(255,255,255,0.2); }

/* Hero image on post page */
.post-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 40px;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.post-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 18px 42px rgba(5, 15, 30, 0.35);
}

/* Article body — warm feel */
.article {
  background: var(--warm-bg);
  padding: 72px 0 96px;
}

.article .container {
  max-width: 720px;
}

.article p {
  font-size: 1.07rem;
  color: #3A2A1C;
  line-height: 1.85;
  margin-bottom: 26px;
}

.article h2 {
  font-size: 1.3rem;
  color: var(--warm-text);
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--warm-rule);
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.07rem;
  color: var(--warm-text);
  margin: 36px 0 12px;
  font-weight: 700;
}

.article ul, .article ol {
  padding-left: 24px;
  color: #3A2A1C;
  margin-bottom: 26px;
}

.article li {
  font-size: 1.07rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article strong { color: var(--warm-text); font-weight: 700; }

.article em { color: #5A3E28; font-style: italic; }

.article a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article a:hover { text-decoration-color: var(--cobalt); }

/* Pull quote — amber accent */
.pull-quote {
  border-left: 4px solid var(--amber);
  margin: 44px 0;
  padding: 18px 28px;
  background: var(--warm-bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--warm-text);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* Research callout — sky blue */
.research-note {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
  border: 1px solid #BFDBFE;
}

.research-note p {
  font-size: 0.93rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.7;
}

.research-note strong {
  color: var(--cobalt);
}

/* Article CTA box */
.article-cta {
  margin-top: 72px;
  padding: 40px 40px;
  background: linear-gradient(135deg, #0d2444 0%, var(--cobalt) 55%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(124,226,210,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.article-cta h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
}

.article-cta p {
  color: rgba(255,255,255,0.72);
  font-size: 0.97rem;
  margin-bottom: 24px;
  max-width: 480px;
  position: relative;
  line-height: 1.65;
}

.article-cta .btn-primary {
  position: relative;
  font-size: 0.95rem;
  padding: 12px 28px;
  background: var(--white);
  color: var(--cobalt);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.article-cta .btn-primary:hover {
  background: var(--white);
  opacity: 0.92;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* Article nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--warm-rule);
}

.article-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cobalt);
  transition: color 0.2s;
}

.article-nav a:hover { color: var(--warm-text); }
.article-nav .prev::before { content: '← '; }
.article-nav .next::after  { content: ' →'; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .article-cta { padding: 28px 24px; }
  .post-list-meta .read-link { display: none; }
  .post-hero { padding: 56px 0 48px; }
  .post-list-thumb { margin-bottom: 14px; }
}
