/* Shared styles for the blog: the index (/blog/) and static post pages (/blog/<slug>/). */
:root {
  --navy: #16223C;
  --signal: #E85D2A;
  --mist: #EEF2F3;
  --fog: #DDE5E8;
  --white: #FFFFFF;
  --deep: #14606D;
  --aqua: #5FB1BD;
  --muted: rgba(22,34,60,0.62);
  --hair: rgba(22,34,60,0.14);
  --mist-muted: rgba(238,242,243,0.7);
  --disp: 'Barlow Semi Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--body); background: var(--mist); color: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV (same as the other pages) ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--mist);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--hair);
  box-shadow: 0 2px 12px rgba(22,34,60,0.08);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
}
.nav-logo { height: 34px; flex-shrink: 0; }
.nav-links {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  font-family: var(--disp); font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--navy);
  padding: 6px 12px; border-radius: 6px;
  position: relative; transition: color .2s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 12px; width: 20px;
  height: 2px; border-radius: 999px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--disp); font-weight: 600; font-size: 15px;
  background: var(--signal); color: #fff;
  border: 0; border-radius: 6px; cursor: pointer;
  padding: 10px 20px; text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
/* sizes to its text, same padding and height on every page */
.nav-links .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; line-height: 22px; white-space: nowrap;
  margin-left: 12px; /* same visible gap to the last link as between links (12px link padding + 6px gap + 12px) */
}

/* hamburger button */
.nav-hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 6px; flex-shrink: 0; order: 2;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-hamburger span + span { margin-top: 5px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  background: var(--mist);
  border-bottom: 1px solid var(--hair);
}
.nav-drawer a, .nav-drawer button {
  font-family: var(--disp); font-weight: 600; font-size: 16px;
  text-decoration: none; color: var(--navy);
  padding: 10px 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}

/* ── EYEBROW + BUTTON (same as the other pages) ── */
.eyebrow {
  font-family: var(--disp); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--deep);
  display: flex; align-items: center; justify-content: center; gap: .7em;
}
.eyebrow::before {
  content: ""; width: .6em; height: .6em; border-radius: 50%;
  background: var(--signal); flex: none;
}
.btn-primary {
  font-family: var(--disp); font-weight: 600; font-size: 16px;
  background: var(--signal); color: #fff;
  border: 0; border-radius: 6px; cursor: pointer;
  padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ── SINGLE POST ── */
.post-page {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px 80px;
}
.post-hero-cover {
  width: 100vw; max-height: 480px;
  object-fit: cover;
  margin-left: calc(-50vw + 50%);
  position: relative;
}
.post-hero-cover-wrap {
  position: relative; overflow: hidden;
  width: 100vw; max-height: 480px;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 40px;
}
.post-hero-cover-wrap img {
  width: 100%; height: 480px; object-fit: cover; display: block;
}
.post-hero-cover-wrap .cover-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, var(--navy));
  display: flex; align-items: flex-end;
  padding: 32px clamp(24px, 5vw, 60px);
}
.post-hero-cover-wrap .cover-scrim h1 {
  font-family: var(--disp);
  font-weight: 800; font-size: clamp(28px, 5vw, 42px);
  color: #fff; max-width: 680px;
}

/* Title card (no cover image) */
.post-hero-title {
  background: var(--navy);
  padding: 48px clamp(24px, 5vw, 60px);
  margin-bottom: 40px;
  border-radius: 0 0 14px 14px;
  position: relative; overflow: hidden;
}
.post-hero-title h1 {
  position: relative; z-index: 1;
  font-family: var(--disp);
  font-weight: 800; font-size: clamp(28px, 5vw, 42px);
  color: #fff; max-width: 680px;
}
/* date and reading time, then the author row: inside the navy header, under the title */
.post-hero-title .post-meta {
  position: relative; z-index: 1;
  font-family: var(--body);
  font-size: 14px; font-weight: 400; line-height: 1.5;
  color: var(--mist); opacity: .8;
  margin: 14px 0 0;
}
.post-author {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
}
.post-author-photo {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 2px solid var(--mist);
  object-fit: cover;
}
.post-author-text { display: flex; flex-direction: column; min-width: 0; }
.post-author-name {
  font-family: var(--disp); font-weight: 600; font-size: 16px; line-height: 1.3;
  color: var(--white); text-decoration: none;
}
.post-author-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-author-role {
  font-family: var(--body); font-size: 14px; line-height: 1.3;
  color: var(--mist);
}

/* Signal corner cut: top-right of a navy hero, post header, card tile or share image.
   Not a motif; it can sit with hatching. Parent needs position: relative; overflow: hidden.
   Copy of docs/motifs/corner-cut.html. */
.corner-cut {
  position: absolute; top: 0; right: 0; width: 48px; height: 48px;
  background: var(--signal); clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1; pointer-events: none;
}
/* text link with a shifting arrow: back link and "Connect on LinkedIn" */
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  font-family: var(--disp); font-weight: 600; font-size: 16px; line-height: 1.2;
  color: var(--deep); text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link-arrow { display: inline-block; transition: transform .18s ease; }
.text-link:hover .text-link-arrow { transform: translateX(-3px); }
.post-back { margin: 12px 0 8px; padding: 0 4px 0 0; }

/* ── POST BODY TYPOGRAPHY ── */
.post-body {
  font-family: var(--body);
  font-size: 17px; line-height: 1.75;
  max-width: 68ch; margin: 0; /* starts at the same left edge as the back link and header */
  color: var(--navy);
}
.post-body h2 {
  font-family: var(--disp);
  font-weight: 700; font-size: 26px; line-height: 1.25;
  margin: 2.5rem 0 1rem;
}
/* No Signal dot on post headings (brand guidelines: the dot is for eyebrow labels only). */
.post-body h3 {
  font-family: var(--disp);
  font-weight: 600; font-size: 20px;
  margin: 2rem 0 .75rem;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--aqua);
  display: inline-block;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body blockquote {
  border-left: 3px solid var(--deep);
  padding-left: 1.25rem;
  font-size: 1.15em;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: normal;
}
.post-body img {
  width: 100%; border-radius: 14px;
  margin: 2rem 0;
}
.post-body img + em {
  display: block;
  font-family: var(--body);
  font-size: 13px; color: var(--muted);
  margin-top: -1.5rem; margin-bottom: 2rem;
  font-style: normal;
}
.post-body a { color: var(--deep); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body code {
  font-family: var(--body);
  font-size: 13px;
  background: var(--fog);
  color: var(--navy);
  padding: 2px 6px; border-radius: 4px;
}
.post-body pre {
  font-family: var(--body);
  font-size: 13px;
  background: var(--fog);
  color: var(--navy);
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-body pre code {
  background: none; padding: 0;
}
.post-body ul, .post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.post-body li { margin-bottom: .4rem; }
/* bullets: a small round Deep Water dot */
.post-body ul { list-style: none; }
.post-body ul > li { position: relative; }
.post-body ul > li::before {
  content: ""; position: absolute; left: -1.1rem; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--deep);
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 2.5rem 0;
}

/* ── COMPONENT CLASSES ── */
.tip-box {
  background: var(--white);
  border-left: 3px solid var(--deep);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  position: relative;
  padding-top: 2.5rem;
}
.tip-box::before {
  content: 'Tip';
  font-family: var(--disp);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--deep);
  position: absolute; top: .75rem; left: 1.25rem;
}
.tool-box {
  background: var(--navy);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  color: var(--mist);
  margin: 1.5rem 0;
  position: relative;
  padding-top: 2.5rem;
}
.tool-box::before {
  content: 'Tool';
  font-family: var(--disp);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--aqua);
  position: absolute; top: .75rem; left: 1.25rem;
}
.tool-box strong {
  font-family: var(--disp);
  font-weight: 700; font-size: 17px;
  color: #fff; display: block;
  margin-bottom: 4px;
}
.tool-box p { color: rgba(238,242,243,0.8); font-size: 15px; margin-bottom: 8px; }
.tool-box a { color: var(--aqua); text-decoration: none; font-size: 15px; font-weight: 500; }
.tool-box a:hover { text-decoration: underline; }
.cta-block {
  background: var(--navy);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-block h3 {
  font-family: var(--disp);
  font-weight: 700; font-size: 22px;
  color: #fff; margin-bottom: 8px;
  border: none; padding: 0; display: block;
}
.cta-block h3::before { display: none; }
.cta-block p { color: #fff; font-weight: 500; margin-bottom: 16px; }
/* button rule (same on every page): 48px tall, min-width 160px on desktop, padding 14px 28px, Barlow Semi Condensed 600 16px, 6px radius */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 48px; min-width: 160px; padding: 14px 28px;
  font-family: var(--disp);
  font-weight: 600; font-size: 16px; line-height: 20px;
  color: #fff; text-decoration: none; white-space: nowrap;
  background: var(--signal); border-radius: 6px;
  transition: background .15s ease;
}
.cta-btn:hover { background: #D2522C; }

/* ── FOOTER (same as the other pages) ── */
.dark-panel {
  background: var(--navy); color: var(--mist);
  position: relative; overflow: hidden;
}
.motif-hatch {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(120deg, rgba(238,242,243,0.07) 0 2px, transparent 2px 13px);
}
.motif-hatch--fade {
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 75%);
  mask-image: linear-gradient(to right, transparent 30%, #000 75%);
}
.site-footer { padding: 48px 24px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.footer-logo { height: 30px; margin-bottom: 10px; }
.footer-tagline {
  font-family: var(--disp); font-size: 15px;
  letter-spacing: .06em; color: rgba(238,242,243,0.8); font-weight: 600;
}
.footer-right {
  font-family: var(--body); font-size: 14px;
  letter-spacing: .04em; color: rgba(238,242,243,0.75);
  text-align: right; display: flex; flex-direction: column; gap: 6px; font-weight: 400;
}
.footer-right a { color: var(--aqua); text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links .nav-link { display: none; }
  .nav-links .nav-cta { margin-left: 0; }
  .nav-hamburger { display: block; }
  .nav-drawer.open { display: flex; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 10px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-index { padding: 40px 16px 60px; }
  .post-page { padding: 0 16px 60px; }
  .post-hero-title { padding: 32px 20px; }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}

/* ── POST CTA: second button on a two-button block ── */
.cta-block .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-btn--ghost {
  background: transparent; color: var(--mist);
  border: 1.5px solid rgba(238,242,243,0.55);
  padding: 12.5px 26.5px; /* border counted, so the outer size matches */
}
.cta-btn--ghost:hover { background: rgba(238,242,243,0.1); }
/* the generic post link colour must not override button text */
.post-body a.cta-btn { color: #fff; }
.post-body a.cta-btn:hover { text-decoration: none; }
.post-body a.cta-btn--ghost { background: transparent; color: var(--mist); }
.post-body a.cta-btn--ghost:hover { background: rgba(238,242,243,0.1); }
.post-body .cta-block h3 { margin: 0 0 8px; }

/* ── INTRO BOX (Notion Summary) ── */
.post-summary {
  max-width: 68ch; margin: 0 0 2.25rem;
  background: var(--white);
  border: 1px solid var(--hair); border-left: 3px solid var(--deep);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--navy);
}

/* ── AUTHOR CARD (end of post) ── */
.author-card {
  max-width: 68ch; margin: 0;
  background: var(--mist);
  border: 1px solid var(--hair); border-radius: 14px;
  padding: 24px;
}
.author-card-head { display: flex; align-items: center; gap: 16px; }
.author-card-photo {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%; object-fit: cover;
}
.author-card-name { font-family: var(--disp); font-weight: 700; font-size: 20px; line-height: 1.2; }
.author-card-role { font-family: var(--body); font-size: 14px; color: var(--muted); }
.author-card-bio { font-size: 16px; line-height: 1.6; margin: 16px 0 4px; }

/* ── POST CTA BOX, posts for both audiences: closing paragraph plus two labelled buttons ── */
.post-body .cta-box {
  background: var(--navy); color: var(--white);
  border-radius: 14px;
  padding: 28px;
  margin: 2rem 0;
}
.post-body .cta-box p { color: var(--white); margin-bottom: 1.5rem; }
.cta-pair { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; /* two buttons side by side: equal width */ justify-content: start; gap: 20px 24px; }
.cta-pair-item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.post-body .cta-box a.cta-btn { display: flex; }
.cta-label {
  font-family: var(--disp); font-weight: 600; font-size: 13px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(238,242,243,0.75);
}
.post-body .cta-box a.cta-btn--ghost {
  color: var(--white); background: transparent; border-color: var(--mist);
}
.post-body .cta-box a.cta-btn--ghost:hover { background: rgba(238,242,243,0.1); }
@media (max-width: 640px) {
  .post-body .cta-box { padding: 24px 20px; }
  .cta-pair { grid-auto-flow: row; grid-auto-columns: 1fr; justify-content: stretch; }
  .cta-pair-item { align-items: stretch; }
  .post-body .cta-box a.cta-btn { min-width: 0; width: 100%; }
}
