/* ============================================
   ARTICLE PAGE STYLES — extends ../assets/css/styles.css
   Heavier use of colour throughout: tinted page background,
   header photo banner, coloured dividers — not just isolated boxes.
   ============================================ */

/* Page-wide tint so white isn't the dominant colour */
.post-page { background: linear-gradient(180deg, #F8F6FF 0%, #FFFFFF 460px) }

.post-hero { padding: 56px 0 0 }
.post-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px }
.post-meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  background: var(--white); border: 2px solid var(--ink);
  padding: 6px 14px; border-radius: 999px;
}
.post-title { font-size: clamp(30px, 4.4vw, 50px); max-width: 20ch; margin-bottom: 0 }

/* Header image banner */
.post-banner {
  margin: 32px 0 0;
  border: 2px solid var(--ink); border-radius: 10px;
  overflow: hidden; position: relative;
  box-shadow: 6px 6px 0 var(--lime);
}
.post-banner img { width: 100%; height: 320px; object-fit: cover; display: block }
@media (max-width: 600px) { .post-banner img { height: 220px } }

.post-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; max-width: 980px; margin: 0 auto; padding-top: 40px }
@media (max-width: 880px) { .post-wrap { grid-template-columns: 1fr; gap: 0 } }

/* Table of contents - sticky sidebar */
.toc { position: sticky; top: 96px; border: 2px solid var(--ink); border-radius: 6px; padding: 20px 18px; background: var(--white); box-shadow: 4px 4px 0 var(--panel2) }
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; display: block }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px }
.toc li { counter-increment: toc; font-size: 13px; line-height: 1.5 }
.toc a { display: flex; gap: 8px; color: var(--grey); font-weight: 600; transition: color .2s }
.toc a::before { content: counter(toc); color: var(--violet); font-weight: 700; flex-shrink: 0 }
.toc a:hover { color: var(--ink) }
@media (max-width: 880px) {
  .toc { position: static; margin-bottom: 36px }
}

/* Article body typography */
.post-body { max-width: 720px }
.post-body > p:first-of-type {
  font-size: 19px; color: var(--ink); font-weight: 500; line-height: 1.7;
}
.post-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 52px 0 18px;
  padding: 4px 0 8px;
  border-bottom: 3px solid var(--lime);
  display: inline-block;
}
.post-body h3 {
  font-size: 19px; font-weight: 700; color: var(--violet);
  margin: 32px 0 12px;
}
.post-body p { font-size: 16px; line-height: 1.85; color: var(--ink); margin-bottom: 20px }
.post-body p strong { color: var(--violet) }
.post-body ul, .post-body ol { margin: 0 0 24px 0; display: flex; flex-direction: column; gap: 12px }
.post-body ul li, .post-body ol li {
  font-size: 15.5px; line-height: 1.7; color: var(--ink);
  padding-left: 26px; position: relative;
}
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 10px; height: 10px; background: var(--violet); border-radius: 2px;
}
.post-body ol { counter-reset: ol-count }
.post-body ol li { counter-increment: ol-count }
.post-body ol li::before {
  content: counter(ol-count); position: absolute; left: 0; top: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--white); background: var(--ink);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.post-body li strong { color: var(--ink) }

/* In-article inline photo */
.post-figure { margin: 32px 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 5px 5px 0 var(--panel2) }
.post-figure img { width: 100%; max-height: 300px; object-fit: cover; display: block }
.post-figure figcaption { padding: 12px 18px; background: var(--panel); font-size: 13px; color: var(--grey); font-weight: 600 }

/* Did-you-know / stat callout */
.callout {
  background: var(--ink); color: var(--white);
  border-radius: 8px; padding: 24px 26px; margin: 32px 0;
  position: relative; overflow: hidden;
}
.callout::before {
  content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: var(--violet); opacity: .35; top: -70px; right: -50px;
}
.callout-label { position: relative; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; display: block }
.callout p { position: relative; z-index: 1; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.7; margin: 0 }

/* Good / bad example boxes */
.example-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 }
@media (max-width: 600px) { .example-row { grid-template-columns: 1fr } }
.example-box { border-radius: 6px; padding: 18px 20px; border: 2px solid var(--ink) }
.example-box.good { background: #F2FFE0 }
.example-box.bad { background: #FFF0EE }
.example-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; display: block }
.example-box.good .example-label { color: #4A6B0A }
.example-box.bad .example-label { color: #B43030 }
.example-box p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink) }

/* Checklist box — violet-tinted gradient instead of flat grey */
.checklist-box {
  border: 2px solid var(--ink); border-radius: 8px; padding: 24px 26px; margin: 32px 0;
  background: linear-gradient(135deg, var(--panel) 0%, #EDE7FF 100%);
}
.checklist-box-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; display: block }
.checklist-box ul { margin: 0; gap: 10px }
.checklist-box li { padding-left: 30px; font-size: 14.5px }
.checklist-box li::before {
  content: '✓'; background: none; width: auto; height: auto;
  color: var(--violet); font-weight: 700; font-size: 15px; top: 0;
}

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px }
.compare-table th, .compare-table td { border: 2px solid var(--ink); padding: 12px 16px; text-align: left }
.compare-table th { background: var(--violet); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 700 }
.compare-table th:first-child { background: var(--ink) }
.compare-table td:first-child { color: var(--grey) }
.compare-table tr:nth-child(even) td { background: var(--panel) }

/* FAQ section — tinted panel, not bare white */
.faq-section { margin-top: 56px; padding: 36px 32px; border-radius: 12px; background: linear-gradient(160deg, #F8F6FF 0%, var(--panel) 100%); border: 2px solid var(--ink) }
.faq-section .eyebrow { margin-bottom: 6px }
.faq-section h2 { border: none; padding: 0; margin: 0 0 28px; display: block }
.faq-item { border: 2px solid var(--ink); border-radius: 6px; margin-bottom: 14px; overflow: hidden; background: var(--white) }
.faq-q { padding: 18px 22px; font-weight: 700; font-size: 15.5px; background: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px }
.faq-q::after { content: '+'; font-size: 22px; color: var(--violet); font-weight: 400; flex-shrink: 0; transition: transform .2s }
.faq-item.open .faq-q::after { transform: rotate(45deg) }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 400px }
.faq-a p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--grey) }

/* Tip box */
.tip-box {
  border: 2px dashed var(--violet); border-radius: 8px;
  padding: 22px 24px; margin: 32px 0; background: #F8F6FF;
}
.tip-box-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; display: block }
.tip-box p { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.7 }

/* Final CTA block inside article — fixed: btn-outline no longer white-on-white */
.post-cta {
  background: var(--ink); border-radius: 10px; padding: 40px 36px; margin: 56px 0 0;
  position: relative; overflow: hidden;
}
.post-cta::before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--violet); opacity: .3; bottom: -120px; left: -60px }
.post-cta::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--lime); opacity: .18; top: -60px; right: 12% }
.post-cta-inner { position: relative; z-index: 1 }
.post-cta h3 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px }
.post-cta p { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 22px; max-width: 60ch }
.post-cta-actions { display: flex; gap: 12px; flex-wrap: wrap }
.post-cta .btn-primary { box-shadow: 4px 4px 0 var(--lime) }
.post-cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white) }
.post-cta .btn-outline:hover { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--lime) }

/* Related posts */
.related-section { margin: 56px 0 0 }
.related-section h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
@media (max-width: 780px) { .related-grid { grid-template-columns: 1fr } }
.related-card {
  display: block; border: 2px solid var(--ink); border-radius: 6px; padding: 20px;
  transition: transform .2s, box-shadow .2s; background: var(--white);
}
.related-card:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--violet) }
.related-card .cat { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; display: block }
.related-card h4 { font-size: 15px; margin-bottom: 8px; font-weight: 700; line-height: 1.4 }
.related-card p { font-size: 13px; color: var(--grey); margin: 0; line-height: 1.5 }

/* Blog index grid — now with thumbnail photos */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr } }
.blog-card {
  display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 8px;
  overflow: hidden; transition: transform .25s, box-shadow .25s; background: var(--white);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--violet) }
.blog-card .thumb { height: 150px; overflow: hidden; background: var(--panel) }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1 }
.blog-card .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3 }
.blog-card p { font-size: 14px; color: var(--grey); line-height: 1.65; margin-bottom: 18px; flex: 1 }
.blog-card .meta { font-size: 12px; color: var(--grey); font-weight: 600; display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line) }
.blog-card .read-link { font-size: 13px; font-weight: 700; color: var(--violet); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px }

.blog-hero-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px }
.filter-pill {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
}
.filter-pill.active { background: var(--ink); color: var(--white) }
