/* Single blog post (CARL's Commentary articles) — chrome glow-up.
   Enqueued only on single posts (functions.php). The article body itself is authored content; this
   styles the page AROUND it: hides GP's duplicate title + comments, forces Poppins, gives plain/older
   posts sensible typography (inline-styled newer posts keep their own look), and styles the footer
   (back link + related posts + CTA) printed by inc/single-post.php. */

/* hide GeneratePress's default page title + comments (the article carries its own title) */
.single-post .entry-header,
.single-post .comments-area,
.single-post .comment-respond,
.single-post .entry-meta { display: none; }

/* one brand font across the article + footer */
.single-post .entry-content,
.single-post .entry-content *,
.single-post .cp-foot,
.single-post .cp-foot *,
.single-post .cb-cta-section,
.single-post .cb-cta-section * { font-family: 'Poppins', sans-serif; }

/* ===== navy hero — matched to the guide-page heroes across the site (breadcrumb + badges + title + meta) ===== */
.cp-hero { background: linear-gradient(135deg, #002D4C 0%, #001930 100%); color: #fff; padding: 48px 24px 56px; }
.cp-hero-inner { max-width: 860px; margin: 0 auto; }
.cp-hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.cp-hero-breadcrumb a { color: rgba(255,255,255,0.82); text-decoration: none; }
.cp-hero-breadcrumb a:hover { color: #fff; }
.cp-hero-breadcrumb span { margin: 0 4px; }
.cp-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cp-hero-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -0.3px; color: #fff; margin: 0 0 16px; }
.cp-hero-meta { display: flex; flex-wrap: wrap; gap: 24px; }
.cp-hero-meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.cp-hero-meta-item svg { opacity: 0.85; }
/* hero badges: category pill (accent tint + accent ink) + type pill (translucent white) — guide style */
.cp-hero .cb-badge { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; line-height: 1.4; }
.cp-hero .cb-badge--building-carl { background: rgba(246,113,234,0.15); color: #F896EE; border-color: rgba(246,113,234,0.3); }
.cp-hero .cb-badge--carl-updates, .cp-hero .cb-badge--pedagogy { background: rgba(0,229,211,0.15); color: #3FE8DC; border-color: rgba(0,229,211,0.3); }
.cp-hero .cb-badge--ai-in-practice { background: rgba(168,224,99,0.15); color: #B6DD78; border-color: rgba(168,224,99,0.3); }
.cp-hero-badge-type { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.16) !important; }

/* Layered blog hero: transparent header-mascot illustration beside the (webpage-rendered) title, over a
   soft blue blob + sparkle/dot accents — recreating the polished look of the preview scenes in CSS. */
.cp-hero--has-art { padding-top: 62px; padding-bottom: 70px; }
.cp-hero--has-art .cp-hero-inner { max-width: 1250px; display: grid; grid-template-columns: 1fr minmax(0, 575px); gap: 50px; align-items: center; }
/* a touch more vertical rhythm so the title doesn't feel crammed against the badges/meta */
.cp-hero--has-art .cp-hero-breadcrumb { margin-bottom: 22px; }
.cp-hero--has-art .cp-hero-badges { margin-bottom: 20px; }
.cp-hero--has-art .cp-hero-title { margin-bottom: 22px; line-height: 1.18; }
.cp-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 330px; }
.cp-hero-art img { position: relative; z-index: 3; width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 18px 38px rgba(0,0,0,0.34)); }
/* baked scenes already include the blob + accents -> fill the column, no drop-shadow (the scene is the frame) */
.cp-hero-art--baked img { max-width: 575px; filter: none; }

/* abstract blue blob behind the mascot — soft, subtle, asymmetric organic shape (feathered edge, not a
   hard oval and not a spotlight glow) */
.cp-art-blob { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; display: block; filter: blur(7px); opacity: 0.92; }
/* sparkle + dot accents — flat, like the preview illustrations (no glow) */
.cp-art-acc { position: absolute; z-index: 2; pointer-events: none; }
.cp-art-spark svg { display: block; width: 100%; height: 100%; }
.cp-art-spark--lime { width: 22px; height: 22px; color: #A8E063; top: 9%; left: 14%; }
.cp-art-spark--amber { width: 15px; height: 15px; color: #FFB328; bottom: 16%; right: 14%; }
.cp-art-dot { border-radius: 50%; }
.cp-art-dot--cyan { width: 10px; height: 10px; background: #59C9E1; top: 25%; right: 16%; }
.cp-art-dot--lime { width: 9px; height: 9px; background: #A8E063; bottom: 27%; left: 15%; }
.cp-art-dot--cyan-sm { width: 7px; height: 7px; background: rgba(89,201,225,0.85); top: 62%; left: 8%; }

@media (max-width: 820px) {
  .cp-hero--has-art { padding-top: 40px; padding-bottom: 44px; }
  .cp-hero--has-art .cp-hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .cp-hero-art { justify-content: center; min-height: 250px; max-width: 380px; }
  .cp-hero-art img { max-width: 340px; }
  .cp-hero-art--baked img { max-width: 380px; }
}

/* reading column + base typography — inline styles on the newer posts win over these; plain/older
   posts fall back to these sensible defaults */
.single-post .entry-content { max-width: 860px; margin: 0 auto; padding: 40px 20px 0; color: #243746; font-size: 1.06rem; line-height: 1.8; }
.single-post .entry-content > div { max-width: none; } /* the authored wrapper already centres itself */
.single-post .entry-content p { margin: 0 0 1.1em; }
.single-post .entry-content h1 { font-weight: 800; font-size: 2.4rem; line-height: 1.1; color: #002D4C; letter-spacing: -0.03em; margin: 0 0 0.5em; }
.single-post .entry-content h2 { font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: #002D4C; letter-spacing: -0.02em; margin: 1.8em 0 0.6em; }
.single-post .entry-content h3 { font-weight: 700; font-size: 1.3rem; color: #002D4C; margin: 1.5em 0 0.5em; }
.single-post .entry-content a { color: #0E86A8; text-decoration: underline; text-underline-offset: 2px; }
.single-post .entry-content ul, .single-post .entry-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.single-post .entry-content li { margin: 0 0 0.5em; }
.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.single-post .entry-content blockquote { margin: 1.5em 0; padding: 6px 0 6px 24px; border-left: 4px solid #00E5D3; color: #3a4a5a; font-style: italic; }

/* ===== article footer (printed by inc/single-post.php) ===== */
.cp-foot { max-width: 860px; margin: 0 auto; padding: 30px 20px 0; }
.cp-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #E7ECF0; padding: 20px 0; margin-bottom: 6px; }
.cp-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #002D4C; text-decoration: none; }
.cp-back:hover { color: #0E86A8; }
/* share buttons */
.cp-share { display: flex; align-items: center; gap: 9px; }
.cp-share-label { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5A6878; margin-right: 1px; }
.cp-share-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef3f6; color: #002D4C; border: 1px solid rgba(0,45,76,.08); cursor: pointer; position: relative; transition: background .15s ease, color .15s ease, transform .15s ease; }
.cp-share-btn:hover { background: #002D4C; color: #fff; transform: translateY(-2px); }
.cp-share-btn svg { width: 16px; height: 16px; }
.cp-share-copied { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #002D4C; color: #fff; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.cp-share-copy.is-copied .cp-share-copied { opacity: 1; }
.cp-related { margin: 8px 0 4px; }
.cp-related-title { font-weight: 800; font-size: 1.4rem; color: #002D4C; margin: 0 0 20px; letter-spacing: -0.02em; }
.cp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cp-rel-card { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 20px; border: 1px solid rgba(0,45,76,0.08); border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0,45,76,0.05); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cp-rel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,45,76,0.1); }
.cp-rel-card-title { font-weight: 700; font-size: 1rem; line-height: 1.35; color: #002D4C; }
.cp-rel-card-date { font-size: 0.8rem; color: #5A6878; margin-top: auto; }

/* badge styles (verbatim from the index — commentary.css isn't loaded on single posts) */
.cb-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; font-family: 'Poppins', sans-serif; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.3px; }
.cb-badge--category { border: 1px solid; }
.cb-badge--building-carl { background: rgba(246,113,234,0.10); border-color: rgba(246,113,234,0.28); color: #A82B9D; /* was #D94FCB (#85) */ }
.cb-badge--carl-updates, .cb-badge--pedagogy { background: rgba(0,229,211,0.10); border-color: rgba(0,229,211,0.28); color: #00766C; /* was #00B8A9 (#85) */ }
.cb-badge--ai-in-practice { background: rgba(168,224,99,0.13); border-color: rgba(168,224,99,0.28); color: #4A7A14; /* was #7AB82E (#85) */ }

/* ===== closing CTA — compact card after the article ===== */
.cb-cta-section { padding: 30px 0 58px; }
.cb-cta-shell { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.cb-cta-card { background: linear-gradient(135deg, #59C9E1, #00E5D3); border-radius: 22px; padding: 26px 32px; box-shadow: 0 14px 40px rgba(0,45,76,0.14); position: relative; overflow: hidden; }
.cb-cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.28), transparent 58%); pointer-events: none; }
.about-cta-layout { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: center; position: relative; z-index: 2; }
.cb-cta-imgwrap { display: flex; align-items: center; justify-content: center; }
.about-cta-img { max-width: 88px; width: 100%; height: auto; }
.about-cta-content h2 { font-size: clamp(19px, 2vw, 23px); font-weight: 800; margin: 0 0 5px; color: #001930; letter-spacing: -0.3px; line-height: 1.18; }
.about-cta-content p { font-size: 14px; line-height: 1.55; margin: 0 0 15px; color: rgba(0,25,48,0.82); }
.about-cta-btns { display: flex; gap: 11px; flex-wrap: wrap; }
.cb-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cb-cta-btn--light { background: #fff; color: #002D4C; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cb-cta-btn--light:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.cb-cta-btn--dark { background: #001930; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cb-cta-btn--dark:hover { transform: translateY(-2px); background: #002D4C; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* responsive */
@media (max-width: 720px) {
	.cp-related-grid { grid-template-columns: 1fr; }
	.about-cta-layout { grid-template-columns: 60px 1fr; gap: 15px; text-align: left; }
	.about-cta-content { text-align: left; }
	.about-cta-btns { justify-content: flex-start; }
	.cb-cta-card { padding: 22px 20px; }
	.about-cta-img { max-width: 60px; }
}

/* ============================================================
   EDITORIAL ARTICLE BODY — "CARL's Commentary" journal styling.
   A distinct, magazine-style read: Lora serif body, accent-barred
   headings, pull-quotes, brand bullets, "Bottom Line" takeaway card.
   Scoped to .cp-article so it overrides the generic entry-content.
   ============================================================ */

/* reading progress bar (filled by inline JS in inc/single-post.php) */
.cp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999;
	background: linear-gradient(90deg, #59C9E1, #00E5D3 55%, #A8E063); transition: width .08s linear; }

/* let .cp-article control the measure (kill the generic frame for these posts) */
.single-post .entry-content:has(.cp-article) { max-width: none; padding: 0; }

/* byline row — bridges the navy hero into the white body */
.cp-byline { max-width: 720px; margin: 0 auto; padding: 30px 24px 2px; display: flex; align-items: center; gap: 13px; }
.cp-byline-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: #001930; box-shadow: 0 5px 14px rgba(0,45,76,.22); }
.cp-byline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-byline-name, .cp-byline-label { display: block; font-family: 'Poppins', sans-serif; }
.cp-byline-name { font-weight: 700; font-size: .98rem; color: #002D4C; line-height: 1.25; }
.cp-byline-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #00766C; /* was #00B0A3 (#85) */ }

/* the article column (Poppins throughout, inherited from .entry-content) */
.cp-article { max-width: 700px; margin: 0 auto; padding: 8px 24px 8px; }
.cp-article > p { font-size: 1.1rem; line-height: 1.78; color: #2c3c49; margin: 0 0 1.3em; }

/* lead-in paragraph */
.cp-article > p.cp-lead { font-size: 1.32rem; line-height: 1.5; color: #163450; font-weight: 500; margin-bottom: 1em; }

/* links */
.single-post .cp-article a { color: #00766C; /* was #00879b (#85) */ text-decoration: underline; text-underline-offset: 3px;
	text-decoration-thickness: 1.5px; text-decoration-color: rgba(0,201,225,.42); transition: color .15s ease, text-decoration-color .15s ease; }
.single-post .cp-article a:hover { color: #002D4C; text-decoration-color: #00E5D3; }

/* section headings + cycling brand accent bar */
.single-post .cp-article h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.62rem;
	line-height: 1.22; letter-spacing: -.01em; color: #002D4C; margin: 2.1em 0 .55em; padding-left: 18px; position: relative; }
.cp-article h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px; border-radius: 3px; background: #00E5D3; }
.cp-article h2:nth-of-type(4n+1)::before { background: #59C9E1; }
.cp-article h2:nth-of-type(4n+2)::before { background: #00E5D3; }
.cp-article h2:nth-of-type(4n+3)::before { background: #A8E063; }
.cp-article h2:nth-of-type(4n)::before   { background: #FFB328; }
.single-post .cp-article h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.24rem; color: #002D4C; margin: 1.7em 0 .5em; }

/* pull-quote */
.cp-article .cp-quote { margin: 1.9em 0; padding: 4px 0 4px 28px; border-left: 3px solid #00E5D3; }
.cp-article .cp-quote p { font-style: italic; font-size: 1.28rem; line-height: 1.5; color: #173854; margin: 0; }

/* lists with brand markers */
.cp-article ul, .cp-article ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.cp-article li { position: relative; padding-left: 30px; margin-bottom: .55em; font-size: 1.06rem; line-height: 1.7; color: #2c3c49; }
.cp-article ul li::before { content: ""; position: absolute; left: 7px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #00E5D3, #59C9E1); }
.cp-article ol { counter-reset: cpol; }
.cp-article ol li { padding-left: 40px; }
.cp-article ol li::before { counter-increment: cpol; content: counter(cpol); position: absolute; left: 0; top: .04em; width: 26px; height: 26px;
	border-radius: 50%; background: #002D4C; color: #fff; font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 700; text-align: center; line-height: 26px; }

/* "Bottom Line" takeaway card */
.cp-article .cp-bottomline { margin: 2.6em auto 1.2em; padding: 30px 34px; border-radius: 20px;
	background: radial-gradient(130% 130% at 0 0, rgba(0,229,211,.08), transparent 58%), #f4f9fb; border: 1px solid rgba(0,45,76,.09); }
.cp-article .cp-bottomline h2 { font-family: 'Poppins', sans-serif; margin: 0 0 .65em; padding-left: 0; font-size: 1.3rem; }
.cp-article .cp-bottomline h2::before { display: none; }
.cp-article .cp-bottomline ul { margin-bottom: 0; }
.cp-article .cp-bottomline p { font-size: 1.12rem; }
.cp-article .cp-bottomline > p:last-child, .cp-article .cp-bottomline ul:last-child { margin-bottom: 0; }

/* italic endnote / closing CTA line */
.cp-article .cp-endnote { font-size: 1.05rem; line-height: 1.6; color: #5A6C7D; border-top: 1px solid #e7ecef; margin-top: 2.4em; padding-top: 1.5em; }
.single-post .cp-article .cp-endnote a { font-style: normal; }

/* in-content images — single figures break out slightly past the reading column for impact;
   consecutive images (e.g. the 3 style examples) render as a centred grid. Width caps via vw
   so they never cause horizontal overflow at any viewport. */
.cp-article .cp-figure { margin: 1.9em 0; }
.cp-article .cp-figure,
.cp-article .cp-figure-group { position: relative; left: 50%; transform: translateX(-50%); width: min(94vw, 820px); }
.cp-article .cp-figure img { width: 100%; height: auto; display: block; border-radius: 14px;
	border: 1px solid rgba(0,45,76,0.08); box-shadow: 0 12px 34px rgba(0,45,76,0.10);
	cursor: zoom-in; transition: filter .15s ease; }
.cp-article .cp-figure img:hover { filter: brightness(1.03); }

/* image lightbox (enlarge on click) — markup injected by chrome.js */
.cp-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
	padding: 30px; background: rgba(0,20,35,0.88); opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease; }
.cp-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.cp-lightbox img { max-width: min(1100px, 94vw); max-height: 90vh; width: auto; height: auto;
	border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); cursor: zoom-out; }
.cp-lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,0.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s ease; }
.cp-lightbox__close:hover { background: rgba(255,255,255,0.28); }
.cp-article .cp-figure-group { margin: 1.9em 0; display: grid; gap: 14px; }
.cp-article .cp-figure-group .cp-figure { margin: 0; position: static; left: auto; transform: none; width: auto; }
.cp-article .cp-fg-2 { grid-template-columns: repeat(2, 1fr); }
.cp-article .cp-fg-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 640px) {
	.cp-article { padding: 6px 20px 6px; }
	.cp-byline { padding: 24px 20px 2px; }
	.cp-article > p { font-size: 1.1rem; }
	.cp-article > p.cp-lead { font-size: 1.28rem; }
	.single-post .cp-article h2 { font-size: 1.4rem; }
	.cp-article li { font-size: 1.06rem; }
	.cp-article .cp-quote p { font-size: 1.22rem; }
	.cp-article .cp-bottomline { padding: 24px 22px; }
	.cp-article .cp-figure-group { grid-template-columns: 1fr; }
}
