/* blog.css — shared styles for the blog (gateway theme).
   Poppins everywhere, navy #0F2747 + gold #A8946A, frosted glass. */
:root {
  --navy: #0F2747; --navy-deep: #0a1c33; --navy-hover: #1a3a5f;
  --gold: #A8946A; --canvas: #f4f4f6; --paper: #ffffff;
  --ink: #14202e; --gray: #5b6675; --line: #E7E7E3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }
.eyebrow { font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 500; color: var(--navy); display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.accent { color: var(--gold); }

/* ---- Blog nav bar ---- */
.nav { position: sticky; top: 16px; z-index: 60; margin: 16px auto 0; max-width: 1220px; padding: 0 16px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(15,39,71,0.08); border-radius: 9999px;
  padding: 11px 14px 11px 20px; box-shadow: 0 12px 34px rgba(15,39,71,0.08);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; white-space: nowrap; }
.brand .dot { width: 32px; height: 32px; border-radius: 9999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 15px; border-radius: 9999px; font-size: 0.9rem; font-weight: 500; color: var(--ink); transition: background .25s; }
.nav-links a:hover { background: rgba(15,39,71,0.06); }
.nav-links a[aria-current="page"] { background: rgba(15,39,71,0.07); font-weight: 600; }
/* Workflows dropdown (matches the main site nav) */
.nav-dd { position: relative; }
.nav-dd-trigger { padding: 8px 15px; border-radius: 9999px; font-size: 0.9rem; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: background .25s; }
.nav-dd:hover .nav-dd-trigger, .nav-dd:focus-within .nav-dd-trigger { background: rgba(15,39,71,0.06); }
.nav-dd-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(2px); min-width: 178px; background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(15,39,71,0.08); border-radius: 16px; box-shadow: 0 16px 40px rgba(15,39,71,0.14); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.nav-dd-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.nav-dd-menu a:hover { background: rgba(15,39,71,0.06); }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 9999px; font-weight: 600; font-size: 0.9rem; transition: transform .3s, background .3s, box-shadow .3s; white-space: nowrap; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(15,39,71,0.22); }
.btn-navy:hover { background: var(--navy-hover); transform: translateY(-2px); }
.btn svg { width: 1.05rem; height: 1.05rem; }
.wa { background: #1FA855; color: #fff; }
.wa:hover { background: #178f47; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---- Blog index hero ---- */
.blog-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.blog-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 20px auto 16px; max-width: 18ch; }
.blog-hero p { color: var(--gray); font-size: 1.08rem; max-width: 60ch; margin: 0 auto; }

/* category chips */
.cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip { font-size: 0.78rem; font-weight: 500; color: var(--navy); background: rgba(15,39,71,0.05); border: 1px solid rgba(15,39,71,0.10); padding: 7px 16px; border-radius: 9999px; }

/* ---- Post grid ---- */
.posts { padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 100px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .grid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border: 1px solid rgba(15,39,71,0.08); border-radius: 22px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 34px rgba(15,39,71,0.08); transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s; }
.pcard:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 26px 56px rgba(15,39,71,0.13); border-color: rgba(15,39,71,0.14); }
.pcard .media { aspect-ratio: 16/10; overflow: hidden; background: var(--canvas); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease; }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tag { align-self: flex-start; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--navy); background: rgba(15,39,71,0.06); padding: 5px 11px; border-radius: 9999px; }
.pcard h2, .pcard h3 { font-size: 1.4rem; }
.pcard p { color: var(--gray); font-size: 0.96rem; }
.pmeta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 0.82rem; }
.readmore { font-weight: 600; color: var(--navy); display: inline-flex; gap: 7px; }
.readmore .arr { transition: transform .3s; } .pcard:hover .readmore .arr { transform: translateX(4px); }

/* featured card (first post, wide) */
.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
@media (max-width: 940px) { .featured { grid-template-columns: 1fr; } }
.featured .media { aspect-ratio: auto; height: 100%; min-height: 280px; }
.featured .body { justify-content: center; padding: clamp(26px, 4vw, 44px); }
.featured h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

/* ---- Article (post page) ---- */
.crumbs { padding-top: clamp(40px, 6vw, 64px); font-size: 0.84rem; color: var(--gray); }
.crumbs a:hover { color: var(--navy); }
.article-head { padding: 22px 0 8px; }
.article-head .tag { margin-bottom: 16px; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.12; margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 14px; color: var(--gray); font-size: 0.9rem; flex-wrap: wrap; }
.byline .who { display: flex; align-items: center; gap: 10px; }
.byline .who img { width: 38px; height: 38px; border-radius: 9999px; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-fig { margin: clamp(28px,4vw,44px) 0; }
.hero-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 50px rgba(15,39,71,0.12); }

.prose { font-size: 1.06rem; color: #25313f; }
.prose > p { margin: 0 0 1.3em; }
.prose .lede { font-size: 1.2rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.3em 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(168,148,106,0.6); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: 18px; box-shadow: 0 14px 38px rgba(15,39,71,0.10); }
.prose figcaption { font-size: 0.84rem; color: var(--gray); text-align: center; margin-top: 10px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-family: 'Poppins', system-ui, sans-serif; font-size: 1.3rem; font-style: italic; color: var(--ink); }

.takeaways { background: var(--canvas); border: 1px solid rgba(15,39,71,0.07); border-radius: 20px; padding: 28px 30px; margin: 2em 0; }
.takeaways h3 { font-size: 1.2rem; margin-bottom: 12px; }
.takeaways ul { margin: 0 0 0 1.1em; }
.takeaways li { margin-bottom: 8px; color: #25313f; }

.author-box { display: flex; gap: 20px; align-items: flex-start; background: rgba(255,255,255,0.72); border: 1px solid rgba(15,39,71,0.08); border-radius: 22px; padding: 26px 28px; margin: 2.4em 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 34px rgba(15,39,71,0.07); }
.author-box img { width: 76px; height: 76px; border-radius: 9999px; object-fit: cover; flex: none; border: 2px solid #000; }
.author-box .eyebrow { margin-bottom: 8px; }
.author-box h4 { font-size: 1.2rem; margin-bottom: 6px; }
.author-box p { color: var(--gray); font-size: 0.95rem; }
@media (max-width: 540px) { .author-box { flex-direction: column; } }

/* ---- CTA + footer (shared) ---- */
.cta { background: var(--navy); color: #fff; text-align: center; padding: clamp(54px,7vw,86px) 0; margin-top: clamp(48px,6vw,80px); }
.cta h2 { color: #fff; font-size: clamp(1.9rem,3.6vw,2.7rem); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.74); max-width: 50ch; margin: 0 auto 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-light { background: #fff; color: var(--navy); } .cta .btn-light:hover { background: #eee; }
footer.site { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 38px 0; text-align: center; font-size: 0.86rem; }
footer.site a { color: rgba(255,255,255,0.85); font-weight: 500; }
footer.site a:hover { color: #fff; }
