/* =====================================================================
   FunnelX — Blog / Resources + article pages
   Reuses header, footer, buttons, cta-band, reveal from homepage.css
   ===================================================================== */

/* ---------- Hero (light, editorial) ---------- */
.blog-hero { position: relative; overflow: hidden; background: #fff; padding: 150px 0 var(--space-10); text-align: center; }
.blog-hero::before { content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 720px; height: 380px; background: radial-gradient(ellipse at center, rgba(246,128,15,0.08), transparent 70%); pointer-events: none; }
.blog-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(420px 320px at 10% 26%, rgba(50,101,255,0.18), transparent 68%), radial-gradient(460px 340px at 90% 18%, rgba(51,153,255,0.16), transparent 70%), radial-gradient(360px 280px at 78% 92%, rgba(173,193,255,0.20), transparent 72%); }
.blog-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.blog-hero h1 { color: var(--fx-navy); font-size: clamp(2.2rem, 4.8vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.08; margin: var(--space-4) auto 0; max-width: 20ch; }
.blog-hero .blead { margin: var(--space-5) auto 0; color: var(--fg-2); font-size: var(--fs-18); line-height: var(--lh-relaxed); max-width: 56ch; }

/* ---------- Body ---------- */
.blog-body { padding: var(--space-12) 0 var(--space-24); }

/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--space-12); }
.fs-label { font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--fg-3); }
.filter-select { appearance: none; -webkit-appearance: none; font-family: var(--font-sans); font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--fx-navy); background-color: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: 12px 44px 12px 18px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071437' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 15px; transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.filter-select:hover { border-color: var(--fx-light-blue-tint); }
.filter-select:focus { outline: none; border-color: var(--fx-light-blue); box-shadow: var(--focus-ring); }

/* grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 900px){ .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .post-grid { grid-template-columns: 1fr; } }

/* ---------- category colors ---------- */
/* ---------- limited accent rotation: royal blue, orange, a little green ---------- */
.post-grid .post-card:nth-child(3n+1) { --cat: var(--fx-light-blue); }
.post-grid .post-card:nth-child(3n+2) { --cat: var(--fx-orange); }
.post-grid .post-card:nth-child(3n+3) { --cat: var(--fx-green); }
.article-hero { --cat: var(--fx-light-blue); }

/* ---------- editorial card (no blue cover) ---------- */
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-xl); overflow: hidden; text-decoration: none; color: inherit; transition: transform 300ms var(--ease-in-out), box-shadow 300ms var(--ease-in-out); }
.post-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cat, var(--fx-light-blue)); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-body { padding: var(--space-7); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-cat { align-self: flex-start; padding: 4px 11px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--cat, var(--fx-light-blue)); font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: 0.03em; text-transform: uppercase; }
.post-card h3 { font-size: var(--fs-20); line-height: 1.24; letter-spacing: -0.01em; margin: 2px 0 0; color: var(--fx-navy); }
.post-body p { font-size: var(--fs-14); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 0; flex: 1; }
.read-more { margin-top: 4px; font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--fx-light-blue); transition: color 180ms var(--ease-out); }
.post-card:hover .read-more { color: var(--fx-orange); }
.post-cat.is-ds { background: var(--fx-orange); color: #fff; }
.post-cover.is-ds { background: linear-gradient(140deg, #071437 0%, #0331F3 125%); position: relative; overflow: hidden; }
.post-cover.is-ds .pc-mark { background-color: #fff; }
.post-cover.is-ds::after { opacity: 0; }
.post-cover.is-ds .pc-img { position: absolute; left: 50%; top: 26px; bottom: 0; transform: translateX(-50%); width: 72%; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 10px 26px rgba(7,20,55,0.34); z-index: 1; }
.post-card:hover, .post-card:hover .read-more, .post-card:hover h3, .post-card:hover .post-cat { text-decoration: none; }

/* fillable image cover at the top of each card */
.post-cover { position: relative; aspect-ratio: 16 / 10; background: var(--bg-subtle); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border-1); }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 22%, var(--cat, var(--fx-light-blue)), transparent 70%); opacity: 0.12; }
.post-cover .pc-mark { position: relative; width: 54px; height: 54px; background-color: var(--border-2); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.post-cover .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* featured (light, neutral art) */
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-feature-art { position: relative; width: 44%; background: var(--bg-subtle); display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--border-1); }
.post-feature-art::after { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(246,128,15,0.16), transparent 65%); }
.post-feature-art .fa-mark { position: relative; width: 92px; height: 92px; background-color: var(--border-2); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.post-feature-art .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.post-card.featured .post-body { padding: var(--space-12); justify-content: center; gap: 14px; }
.post-card.featured h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.14; }
.post-card.featured .post-body p { font-size: var(--fs-18); flex: none; max-width: 48ch; }
.featured-flag { align-self: flex-start; font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fx-orange); }
@media (max-width: 760px){ .post-card.featured { flex-direction: column; } .post-feature-art { width: 100%; min-height: 200px; border-right: 0; border-bottom: 1px solid var(--border-1); } .post-card.featured .post-body { padding: var(--space-8); } }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: var(--space-16); }
.pagination a { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: var(--radius-md); border: 1px solid var(--border-2); color: var(--fx-navy); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-14); transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out); }
.pagination a:hover { border-color: var(--fx-light-blue-tint); color: var(--fx-orange); }
.pagination a.active { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }
.empty-note { text-align: center; color: var(--fg-3); padding: var(--space-16) 0; display: none; }

/* =====================================================================
   Article (blog post) pages
   ===================================================================== */
.article-hero { position: relative; background: #fff; padding: 140px 0 var(--space-8); text-align: center; }
.article-hero .wrap { max-width: 1000px; padding: 0 var(--space-10); }
@media (max-width: 640px){ .article-hero .wrap { padding: 0 var(--space-6); } }
.article-cat { display: inline-block; padding: 5px 13px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--cat, var(--fx-light-blue)); font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: 0.03em; text-transform: uppercase; }
.article-hero h1 { color: var(--fx-navy); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; margin: var(--space-5) auto var(--space-5); max-width: 30ch; }
.article-meta { display: flex; gap: 16px; justify-content: center; align-items: center; color: var(--fg-3); font-size: var(--fs-14); }
.article-meta { flex-wrap: wrap; gap: 10px 14px; row-gap: 8px; }
.article-meta .am-pic { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; object-position: center 22%; flex: none; }
.article-hero .article-meta .am-name { color: var(--fx-navy); font-weight: var(--fw-semibold); font-size: var(--fs-14); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.article-hero .article-meta .am-name:hover { color: var(--fx-light-blue); }
.article-hero .article-meta .am-name svg { width: 13px; height: 13px; fill: currentColor; opacity: .6; }
.article-hero .article-meta .am-name:hover svg { opacity: 1; }
.article-meta .sep { width: 1px; height: 12px; background: var(--border-2); }
.article-figure { max-width: 960px; margin: var(--space-2) auto var(--space-12); padding: 0 var(--space-8); }.fig-ph { border-radius: var(--radius-xl); border: 2px dashed var(--border-2); background: var(--bg-subtle); aspect-ratio: 16 / 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fg-3); }
.fig-ph .fp-mark { width: 46px; height: 46px; background-color: var(--fx-light-blue-tint); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.fig-ph .fp-t { font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--fg-2); }
.article-figure img.article-img { width: 100%; display: block; aspect-ratio: 16 / 5; max-height: 420px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

.article-body { max-width: 860px; margin: 0 auto; padding: 0 var(--space-8); }
.article-body p { font-size: var(--fs-18); line-height: 1.75; color: var(--fg-1); margin: 0 0 var(--space-6); }
.article-body h3 { font-size: var(--fs-20); color: var(--fx-light-blue); margin: var(--space-8) 0 var(--space-3); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: var(--fs-14); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.article-body th, .article-body td { border: 1px solid var(--border-1); padding: 11px 14px; text-align: left; vertical-align: top; line-height: 1.5; }
.article-body th { background: var(--fx-navy); color: #fff; font-weight: var(--fw-semibold); letter-spacing: 0.01em; border-color: var(--fx-navy); }
.article-body tbody tr:nth-child(even) { background: var(--bg-subtle); }
.article-body tbody td:first-child { color: var(--fx-blue); font-weight: var(--fw-semibold); }
.article-body .callout { background: var(--bg-subtle); border-left: 4px solid var(--fx-light-blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 18px; margin: 0 0 var(--space-6); font-size: var(--fs-16); line-height: 1.6; color: var(--fg-1); }
.drill { border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: var(--space-6); margin: 0 0 var(--space-5); }
.drill h4 { font-size: var(--fs-18); color: var(--fx-navy); margin: 0 0 8px; }
.drill > p { font-size: var(--fs-15); color: var(--fg-2); margin: 0 0 14px; line-height: 1.6; }
.drill dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.drill dt { font-size: var(--fs-12); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fx-light-blue); font-weight: var(--fw-semibold); padding-top: 2px; }
.drill dd { margin: 0; font-size: var(--fs-14); color: var(--fg-1); line-height: 1.55; }
@media (max-width: 560px){ .drill dl { grid-template-columns: 1fr; gap: 2px; } .drill dt { margin-top: 10px; } .article-body table, .article-body thead, .article-body tbody, .article-body th, .article-body td, .article-body tr { display: block; } .article-body thead { display: none; } .article-body td { border: 0; border-bottom: 1px solid var(--border-1); } }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--fx-blue); letter-spacing: -0.01em; margin: var(--space-10) 0 var(--space-4); padding-left: 16px; border-left: 4px solid var(--fx-orange); }
.article-body a:not(.btn) { color: var(--fx-light-blue); text-decoration: none; border-bottom: 1px solid var(--fx-light-blue-tint); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.article-body a:not(.btn):hover { color: var(--fx-orange); border-bottom-color: var(--fx-orange); }
.article-body .related-link { font-size: var(--fs-16); }
.article-body .related-link a { font-weight: var(--fw-medium); }
.pullquote { border-left: 4px solid var(--fx-orange); margin: var(--space-8) 0; padding: 6px 0 6px 24px; font-size: var(--fs-24); font-weight: var(--fw-medium); line-height: 1.4; color: var(--fx-navy); letter-spacing: -0.01em; }
.takeaways { background: var(--bg-subtle); border-radius: var(--radius-lg); padding: var(--space-8); margin: var(--space-10) 0; }
.takeaways h3 { font-size: var(--fs-18); color: var(--fx-navy); margin: 0 0 var(--space-4); }
.takeaways .tk { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.takeaways .tk:last-child { margin-bottom: 0; }
.takeaways .tk .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--fx-orange); flex: none; margin-top: 9px; }
.takeaways .tk span.t { font-size: var(--fs-16); color: var(--fg-1); line-height: var(--lh-snug); }
.article-share { max-width: 860px; margin: var(--space-10) auto 0; padding: var(--space-6) var(--space-8) 0; border-top: 1px solid var(--border-1); display: flex; gap: 14px; align-items: center; color: var(--fg-3); font-size: var(--fs-14); }

/* ---------------- Article components v2 (TL;DR, FAQ, scripts, definitions) ---------------- */
.tldr { background: var(--fx-navy); border-radius: var(--radius-xl); padding: var(--space-8); margin: 0 0 var(--space-10); }
.tldr h2 { color: #fff; font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 26px; color: #fff; font-size: var(--fs-16); line-height: 1.55; }
.tldr li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 999px; background: var(--fx-green); }
.tldr.light { background: var(--bg-subtle); border: 1px solid var(--border-1); }
.tldr.light h2 { color: var(--fx-light-blue); }
.tldr.light li { color: var(--fg-1); }

.defbox { border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: #fff; padding: var(--space-6) var(--space-7); margin: 0 0 var(--space-8); box-shadow: var(--shadow-xs); }
.defbox b { display: block; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.09em; text-transform: uppercase; color: var(--fx-light-blue); margin-bottom: 8px; }
.defbox p { margin: 0; font-size: var(--fs-20); line-height: 1.45; color: var(--fx-navy); letter-spacing: -0.01em; }

.script { border: 1px solid var(--border-1); border-left: 4px solid var(--fx-light-blue); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: #fff; padding: var(--space-6); margin: 0 0 var(--space-6); }
.script .sc-row { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: start; padding: 8px 0; }
.script .sc-row + .sc-row { border-top: 1px solid var(--border-1); }
.script .who { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.07em; text-transform: uppercase; color: #fff; background: var(--fx-navy); border-radius: 999px; padding: 4px 9px; text-align: center; margin-top: 2px; }
.script .who.rep { background: var(--fx-light-blue); }
.script .who.coach { background: var(--fx-orange); }
.script .sc-row p { margin: 0; font-size: var(--fs-16); line-height: 1.6; color: var(--fg-1); }
.script .sc-row p em { color: var(--fg-3); font-style: normal; font-size: var(--fs-14); display: block; margin-top: 4px; }

.keyline { font-size: var(--fs-18); font-weight: var(--fw-semibold); color: var(--fx-navy); line-height: 1.5; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }

.checklist { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: var(--fs-16); line-height: 1.6; color: var(--fg-1); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 5px; background: rgba(3,197,147,0.16); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--fx-green); border-width: 0 2px 2px 0; transform: rotate(42deg); }

.afaq { margin: var(--space-10) 0 0; display: grid; gap: 10px; }
.afaq .faq-item { border: 1px solid var(--border-1); border-radius: var(--radius-lg); background: #fff; padding: 0 var(--space-6); }
.afaq .faq-item.open { border-color: var(--fx-light-blue); box-shadow: 0 0 0 3px rgba(50,101,255,0.09); }
.afaq .faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 40px 18px 0; font-family: var(--font-sans); font-size: var(--fs-16); font-weight: var(--fw-semibold); color: var(--fx-navy); cursor: pointer; position: relative; }
.afaq .faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--fx-light-blue); transition: transform 320ms var(--ease-in-out); }
.afaq .faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.afaq .faq-a { max-height: 0; overflow: hidden; transition: max-height 340ms var(--ease-in-out); }
.afaq .faq-item.open .faq-a { max-height: 420px; }
.afaq .faq-a p { margin: 0 0 18px; font-size: var(--fs-15, 15px); line-height: 1.65; color: var(--fg-2); }


.pc-ph { position: absolute; inset: auto 0 0 0; top: 0; display: grid; place-content: center; justify-items: center; text-align: center; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.7; color: var(--fg-3); border: 2px dashed var(--border-2); border-radius: inherit; background: linear-gradient(150deg, #eef3ff 0%, #e6f6f4 100%); }
