/* ============================================================
   Clevernest blog styles.
   Layers on top of /design-system/css/app-shell.css (tokens + btn/pill primitives)
   and /design-system/css/fonts.css. Colour discipline: GOLD is the primary
   highlight, TEAL the single secondary accent. Chrome stays
   neutral; course art carries its own colour as content.
   ============================================================ */

body { font-family: var(--font-ui); color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }

/* ---- Top nav (mirrors welcome.html) ---- */
@media (max-width: 860px) { .nav-links { display: none; } .nav-login { margin-left: auto; } }

/* ---- Blog index ---- */
.bx-hero { background: linear-gradient(180deg, #FCFBF8, var(--white)); padding: 64px 0 50px; }
.bx-hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; margin-top: 12px; }
.bx-hero p { font-size: 17px; line-height: 1.6; color: var(--slate); max-width: 560px; margin-top: 14px; }
.bx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 10px 0 80px; }
.bx-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm); background: #fff; text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.15s; }
.bx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bx-card img { aspect-ratio: 16/9; object-fit: cover; object-position: 50% 25%; }
.bx-card .bx-b { padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bx-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.bx-card p { font-size: 13.5px; color: var(--slate); line-height: 1.55; }
.bx-card .bx-meta { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--coolgrey); }
.bx-card.featured { grid-column: span 3; flex-direction: row; }
.bx-card.featured img { width: 46%; aspect-ratio: auto; }
.bx-card.featured .bx-b { padding: 28px 30px; justify-content: center; }
.bx-card.featured h3 { font-size: 26px; }
.bx-card.featured p { font-size: 15px; }
@media (max-width: 900px) {
  .bx-grid { grid-template-columns: 1fr 1fr; }
  .bx-card.featured { grid-column: span 2; flex-direction: column; }
  .bx-card.featured img { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 600px) { .bx-grid { grid-template-columns: 1fr; } .bx-card.featured { grid-column: span 1; } }

/* ---- Post page ---- */
.post-head { padding: 52px 0 8px; }
.crumb { display: inline-block; font-size: 13px; font-weight: 700; color: var(--slate); text-decoration: none; margin-bottom: 22px; }
.crumb:hover { color: var(--charcoal); }
.post-head h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; margin-top: 14px; }
.standfirst { font-size: 18px; line-height: 1.6; color: var(--slate); margin-top: 16px; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--coolgrey); margin-top: 18px; }
.byline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cover { border-radius: 20px; margin: 26px auto 0; box-shadow: var(--shadow-md); border: 1px solid var(--ink-100); }

/* ---- Post prose ---- */
.post-body { padding: 34px 32px 10px; font-size: 16.5px; line-height: 1.75; color: var(--slate); }
.post-body h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; font-size: 27px; line-height: 1.2; color: var(--charcoal); margin: 44px 0 14px; }
.post-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 19.5px; color: var(--charcoal); margin: 30px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body b, .post-body strong { color: var(--charcoal); }
.post-body a { color: var(--gold-600); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-body a:hover { color: var(--charcoal); }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; font-size: 14.5px; }
.post-body th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding: 10px 12px; border-bottom: 2px solid var(--ink-100); }
.post-body td { padding: 11px 12px; border-bottom: 1px solid var(--ink-100); color: var(--slate); }
.post-body td:first-child { font-weight: 700; color: var(--charcoal); }
.post-body .tscroll { overflow-x: auto; }

/* callout: one idea worth pinning */
.callout { display: flex; gap: 13px; background: var(--sand); border-radius: 16px; padding: 18px 20px; margin: 26px 0; font-size: 15px; line-height: 1.6; color: var(--charcoal); }
.callout .ci { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--gold-600); display: flex; align-items: center; justify-content: center; }
.callout .ci svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* inline CTA card */
.cta-card { display: flex; align-items: center; gap: 22px; background: var(--charcoal); border-radius: 18px; padding: 24px 26px; margin: 34px 0; }
.cta-card .cta-copy { display: flex; flex-direction: column; gap: 6px; }
.cta-card b { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; }
.cta-card span { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.75); }
.cta-card .btn { flex-shrink: 0; margin-left: auto; }
@media (max-width: 620px) { .cta-card { flex-direction: column; align-items: flex-start; } .cta-card .btn { margin-left: 0; } }

/* FAQ */
.faq { margin: 8px 0 20px; }
.faq details { border: 1px solid var(--ink-100); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; font-size: 15px; font-weight: 800; color: var(--charcoal); font-family: var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; font-weight: 700; color: var(--gold-600); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { font-size: 14.5px; line-height: 1.65; color: var(--slate); margin: 0 0 16px; }

/* related posts */
.related { padding: 30px 32px 70px; }
.related h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { border: 1px solid var(--ink-100); border-radius: 15px; padding: 17px 18px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: transform 0.12s, box-shadow 0.15s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rel-card b { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.rel-card span { font-size: 12.5px; color: var(--slate); line-height: 1.5; }
@media (max-width: 700px) { .rel-grid { grid-template-columns: 1fr; } }

/* ---- Footer (mirrors welcome.html) ---- */

@media (max-width: 560px) { .wrap, .wrap-narrow { padding: 0 20px; } }
