/* ============================================================
   Cedar Chartered Accountants — Blog / Insights
   Loaded only on /blog/ and /blog/{slug}/ so the home page stays lean.
   Inherits every colour, radius, shadow and font token from styles.css.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin: 0 0 1.4rem; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .84rem; letter-spacing: .01em;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.breadcrumb li + li::before {
  content: "/"; color: var(--faint); opacity: .7;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb [aria-current="page"] {
  color: var(--navy); font-weight: 500;
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Page hero (blog index, 404) ----------
   A shorter version of the home hero so the blog reads as the same site. */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(rgba(13,26,46,0.80), rgba(13,26,46,0.86)),
    url("../img/forest-hero.webp") center/cover no-repeat;
}
.page-hero-inner {
  position: relative; z-index: 1;
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(3.2rem, 7vw, 5.5rem);
  max-width: 760px;
}
.page-hero .eyebrow { color: var(--green-light); }
.page-hero .breadcrumb li { color: var(--on-dark-soft); }
.page-hero .breadcrumb a { color: var(--on-dark-soft); }
.page-hero .breadcrumb a:hover { color: var(--green-light); }
.page-hero .breadcrumb li + li::before { color: rgba(255,255,255,0.35); }
.page-hero .breadcrumb [aria-current="page"] { color: #fff; }
.page-hero-title {
  color: #fff; font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.page-hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--on-dark);
  max-width: 640px; margin: 0; line-height: 1.7;
}
.page-hero-actions { margin: 2rem 0 0; }

/* ---------- Post grid & cards ---------- */
.blog-listing { background: var(--paper); }
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2rem);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
.post-card-media {
  display: block; overflow: hidden; background: var(--navy-deep);
  border-bottom: 1px solid var(--line);
}
.post-card-media img {
  width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.03); }

.post-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.7rem 1.75rem 1.9rem;
}
.post-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem;
  margin: 0 0 .9rem; font-size: .82rem; color: var(--faint);
}
.post-tag {
  display: inline-flex; align-items: center;
  background: var(--green-soft); color: var(--green-deep);
  font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
}
.post-card-title {
  font-family: var(--display); font-weight: 500; color: var(--navy);
  font-size: 1.3rem; line-height: 1.28; letter-spacing: -0.01em;
  margin: 0 0 .7rem;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--green-deep); }
/* Card-wide click target, while the heading link stays the accessible one */
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-excerpt {
  color: var(--muted); font-size: .97rem; line-height: 1.68; margin: 0 0 1.3rem;
}
.post-card-more {
  margin: auto 0 0; font-weight: 600; font-size: .9rem; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: .45rem;
}
.post-card-more .arrow { transition: transform .25s var(--ease); }
.post-card:hover .post-card-more .arrow { transform: translateX(4px); }

.blog-empty { color: var(--muted); font-size: 1.05rem; }

/* ---------- Article ---------- */
.article-header {
  background: var(--paper);
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.2rem);
}
.article-header-inner { max-width: 800px; }
.article-title {
  font-size: clamp(2rem, 3.9vw, 3.05rem);
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem;
  margin: 0; font-size: .92rem; color: var(--muted);
}
.article-author { font-weight: 600; color: var(--navy); }
.article-meta-sep { color: var(--faint); }

.article-cover {
  margin: 0 0 clamp(2.2rem, 5vw, 3.4rem);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--navy-deep);
}
.article-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

/* Body column centred, share rail parked in the left margin */
.article-layout {
  display: grid; grid-template-columns: 150px minmax(0, 760px);
  justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.article-aside { grid-column: 1; grid-row: 1; }
.article-body  { grid-column: 2; grid-row: 1; }

.article-share { position: sticky; top: 110px; }
.article-share-label {
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .68rem; color: var(--green-deep); margin: 0 0 .9rem;
}
.article-share ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.article-share a {
  display: inline-block; font-size: .9rem; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.article-share a:hover { color: var(--green-deep); border-bottom-color: var(--green); }

/* ---------- Article body typography ---------- */
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--muted); }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.4rem; }
.article-lead {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.5;
  color: var(--navy); margin-bottom: 1.6rem !important;
}
.article-body h2 {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  margin: clamp(2.4rem, 5vw, 3.2rem) 0 .9rem; scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 1.18rem; color: var(--navy); font-weight: 600;
  margin: 2rem 0 .7rem; scroll-margin-top: 100px;
}
.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.article-body ol { counter-reset: article-ol; }
.article-body li {
  position: relative; padding-left: 1.6rem; margin-bottom: .8rem; line-height: 1.75;
}
.article-body ul > li::before {
  content: ""; position: absolute; left: .1rem; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.article-body ol > li { counter-increment: article-ol; }
.article-body ol > li::before {
  content: counter(article-ol) "."; position: absolute; left: 0; top: 0;
  color: var(--green-deep); font-weight: 600;
}
.article-body li strong, .article-body p strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--green-deep); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(47,107,79,.4); transition: color .2s ease, text-decoration-color .2s ease;
}
.article-body a:hover { color: var(--green); text-decoration-color: var(--green); }

/* Table of contents — auto-built from the article's h2 headings */
.article-toc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.7rem;
  margin: 0 0 clamp(2rem, 4vw, 2.6rem);
}
.article-toc-label {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .7rem; color: var(--green-deep); margin: 0 0 .9rem !important;
}
/* Selectors carry .article-body so they outrank the base ol/ul list styles. */
.article-body .article-toc ol {
  margin: 0 !important; padding: 0; list-style: none; counter-reset: toc;
  display: grid; gap: .5rem;
}
.article-body .article-toc ol > li {
  counter-increment: toc; position: relative; padding-left: 1.9rem;
  margin: 0; font-size: .95rem; line-height: 1.5;
}
.article-body .article-toc ol > li::before {
  content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-size: .78rem; font-weight: 600; color: var(--faint); letter-spacing: .04em;
  background: none; width: auto; height: auto; border-radius: 0;
}
.article-toc a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.article-toc a:hover { color: var(--green-deep); border-bottom-color: var(--green); }

/* Key takeaways — the summary panel that opens a long article */
.article-takeaways {
  background: var(--navy-deep); color: #fff;
  border-radius: var(--radius-lg); padding: 1.7rem 1.9rem 1.9rem;
  margin: 0 0 clamp(2rem, 4vw, 2.6rem);
}
.article-takeaways-label {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .7rem; color: var(--green-light); margin: 0 0 1rem !important;
}
.article-body .article-takeaways ul {
  margin: 0 !important; padding: 0; list-style: none; display: grid; gap: .8rem;
}
.article-body .article-takeaways ul > li {
  color: var(--on-dark); font-size: .99rem; line-height: 1.62;
  position: relative; padding-left: 1.6rem; margin: 0;
}
/* Green Light, never Cedar Green: on a navy ground the darker green vanishes. */
.article-body .article-takeaways ul > li::before {
  content: ""; position: absolute; left: .1rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-light);
}
/* Override the base navy-on-paper treatments, which are unreadable on navy. */
.article-body .article-takeaways strong { color: #fff; }
.article-body .article-takeaways a {
  color: var(--green-light); text-decoration-color: rgba(128,198,183,.5);
}
.article-body .article-takeaways a:hover {
  color: #fff; text-decoration-color: #fff;
}

.article-quote {
  margin: clamp(2rem, 4vw, 2.6rem) 0; padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--green);
}
.article-quote p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.55;
  color: var(--navy); margin: 0;
}

.article-callout {
  background: var(--green-soft); border: 1px solid rgba(47,107,79,.18);
  border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 1.5rem 1.7rem .4rem;
  margin: clamp(2rem, 4vw, 2.6rem) 0;
}
.article-callout-label {
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; color: var(--green-deep); margin: 0 0 .7rem !important;
}
.article-callout p { color: var(--ink); font-size: 1rem; }

.article-disclaimer {
  margin-top: clamp(2.2rem, 4vw, 3rem) !important;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .9rem; line-height: 1.7; color: var(--faint); font-style: italic;
}

/* Definition callout used for short "what this term means" asides */
.article-define {
  border-left: 2px solid var(--line); padding: .2rem 0 .2rem 1.5rem;
  margin: clamp(1.8rem, 3vw, 2.2rem) 0;
}
.article-define p { font-size: .98rem; margin-bottom: .7rem; }
.article-define p:last-child { margin-bottom: 0; }
.article-define-term {
  font-family: var(--display); font-weight: 600; color: var(--navy);
  font-size: 1.02rem; margin-bottom: .35rem !important;
}

/* Comparison / reference tables inside an article */
.article-table-wrap {
  overflow-x: auto; margin: clamp(2rem, 4vw, 2.6rem) 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card);
}
.article-body table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.article-body thead th {
  background: var(--paper-2); color: var(--navy);
  font-family: var(--sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line);
}
.article-body tbody th {
  text-align: left; font-weight: 600; color: var(--navy); vertical-align: top;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft);
}
.article-body tbody td {
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft);
  color: var(--muted); vertical-align: top; line-height: 1.6;
}
.article-body tbody tr:last-child th,
.article-body tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.article-faq { margin-top: clamp(2.6rem, 5vw, 3.4rem); }
.article-faq h2 { margin-top: 0; }
.article-faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.article-faq details:first-of-type { border-top: 1px solid var(--line); }
.article-faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem 0;
  font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.4;
  color: var(--navy); transition: color .2s ease;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary:hover { color: var(--green-deep); }
.article-faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: .42em;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.article-faq details[open] summary::after { transform: rotate(-135deg); }
.article-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.article-faq-answer { padding: 0 0 1.3rem; }
.article-faq-answer p { font-size: 1rem; margin-bottom: .9rem; }
.article-faq-answer p:last-child { margin-bottom: 0; }
.article-faq-answer ul { margin-bottom: .9rem; }

/* ---------- Flow chart (.psb-flow) ----------
   A decision flow built from real HTML. Wide layouts run the questions down
   a central spine with early outcomes branching to the right; narrow layouts
   stack everything on a single rail. The switch is a container query, so the
   chart responds to the width it is actually given, not the viewport.
   Colour carries meaning: green = qualifies, navy = needs the ATO,
   neutral = the flow ends. Connector colour clears 3:1 against Paper 2. */
.psb-flow {
  --psb-wire: #7a808a;
  --psb-navy-soft: #e4e9f1;
  --psb-edge: 2.6rem;
  --psb-arrow: 7px;
  container-type: inline-size;
  margin: clamp(2rem, 4vw, 2.8rem) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  line-height: 1.45;
}

/* Neutralise the article's prose styles inside the chart. */
.article-body .psb-flow p,
.article-body .psb-flow ol,
.article-body .psb-flow ul { margin: 0; padding: 0; list-style: none; }
.article-body .psb-flow li {
  position: static; padding: 0; margin: 0; line-height: inherit;
}
.article-body .psb-flow ol > li::before,
.article-body .psb-flow ul > li::before { content: none; }

/* Heading */
.psb-flow-head {
  display: grid; gap: .4rem;
  padding-bottom: 1.1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.psb-flow-label {
  font-family: var(--sans); font-weight: 700; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep);
}
.psb-flow-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.34rem); line-height: 1.3;
  letter-spacing: -0.01em; color: var(--navy);
  text-wrap: balance;
}

/* A step: decision node on the spine, early outcome to its right */
.article-body .psb-flow .psb-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.psb-node   { grid-column: 1; grid-row: 1; }
.psb-branch { grid-column: 2; grid-row: 1; display: flex; align-items: center; }
.article-body .psb-flow .psb-next { grid-column: 1; grid-row: 2; }

/* Decision node */
.psb-node {
  display: grid; gap: .3rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem 1.1rem;
}
.psb-node-head { display: flex; align-items: flex-start; gap: .7rem; }
.psb-num {
  flex: none; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; margin-top: .02rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .76rem; line-height: 1;
}
.psb-q {
  font-family: var(--display); font-weight: 500;
  font-size: 1.04rem; line-height: 1.35; color: var(--navy);
  text-wrap: balance;
}
.article-body .psb-flow .psb-sub {
  padding-left: 2.3rem;
  font-size: .86rem; line-height: 1.5; color: var(--muted);
  text-wrap: pretty;
}

/* Conditions inside a node, joined by "and" / "or" */
.article-body .psb-flow .psb-conds { margin-top: .7rem; padding-left: 0; }
.psb-cond {
  display: block; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem .8rem;
  font-size: .88rem; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.psb-join {
  display: block; padding: .32rem 0; text-align: center; line-height: 1;
  font-family: var(--sans); font-weight: 700; font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Horizontal connector into an early outcome */
.psb-edge {
  position: relative; flex: 0 0 var(--psb-edge);
  height: 2px; margin-right: var(--psb-arrow);
  background: var(--psb-wire);
}
.psb-edge::after {
  content: ""; position: absolute; top: 50%; right: calc(var(--psb-arrow) * -1);
  transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: var(--psb-arrow) solid var(--psb-wire);
}
.psb-edge-label {
  position: absolute; left: calc(50% + var(--psb-arrow) / 2); bottom: .5rem;
  transform: translateX(-50%); white-space: nowrap; line-height: 1;
  font-family: var(--sans); font-weight: 700; font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Vertical connector down the spine to the next step */
.article-body .psb-flow .psb-next {
  position: relative; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
}
.psb-next::before {
  content: ""; position: absolute; top: 0; bottom: var(--psb-arrow); left: 50%;
  width: 2px; margin-left: -1px; background: var(--psb-wire);
}
.psb-next::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: var(--psb-arrow) solid var(--psb-wire);
}
.psb-next-label {
  position: relative; z-index: 1; padding: .22rem .5rem;
  background: var(--paper-2); line-height: 1;
  font-family: var(--sans); font-weight: 700; font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* "If yes" / "If no": always read by assistive tech, visible only when stacked */
.psb-if,
.psb-when {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Outcomes */
.psb-outcome {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid transparent; border-left-width: 3px;
  border-radius: var(--radius-lg);
}
.psb-outcome-icon {
  flex: none; display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 8px;
}
.psb-outcome-icon svg { width: 1.15rem; height: 1.15rem; }
.psb-nowrap { white-space: nowrap; }
.psb-outcome-text { display: grid; gap: .15rem; min-width: 0; }
.psb-outcome-title {
  font-family: var(--display); font-weight: 600;
  font-size: .98rem; line-height: 1.3;
  text-wrap: balance;
}
.psb-outcome-sub { font-size: .84rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

.psb-outcome--yes {
  background: var(--green-soft);
  border-color: rgba(47,107,79,.22); border-left-color: var(--green);
}
.psb-outcome--yes .psb-outcome-icon  { background: var(--green); color: #fff; }
.psb-outcome--yes .psb-outcome-title { color: var(--green-deep); }

.psb-outcome--action {
  background: var(--psb-navy-soft);
  border-color: rgba(20,35,60,.14); border-left-color: var(--navy);
}
.psb-outcome--action .psb-outcome-icon  { background: var(--navy); color: #fff; }
.psb-outcome--action .psb-outcome-title { color: var(--navy); }

.psb-outcome--no {
  background: var(--card);
  border-color: var(--line); border-left-color: var(--psb-wire);
}
.psb-outcome--no .psb-outcome-icon  { background: var(--paper-2); color: var(--muted); }
.psb-outcome--no .psb-outcome-title { color: var(--ink); }

/* Final outcome sits on the spine, under the last step */
.psb-end {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.psb-outcome--final {
  grid-column: 1;
  padding: 1rem 1.15rem; box-shadow: var(--shadow-sm);
}
.psb-outcome--final .psb-outcome-title { font-size: 1.04rem; }

.article-body .psb-flow .psb-flow-note {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .84rem; line-height: 1.6; color: var(--muted);
}

/* Stacked layout: one rail down the left, outcomes teeing off it */
@container (max-width: 600px) {
  .article-body .psb-flow .psb-step { grid-template-columns: minmax(0, 1fr); }
  .psb-node   { grid-column: 1; grid-row: 1; }

  .psb-branch {
    --psb-rail: 1.1rem;
    grid-column: 1; grid-row: 2;
    position: relative; align-items: stretch;
    padding: .9rem 0 0 2.7rem;
  }
  .psb-branch::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: var(--psb-rail);
    width: 2px; margin-left: -1px; background: var(--psb-wire);
  }
  .psb-edge {
    position: absolute; flex: none; margin: 0;
    left: var(--psb-rail); top: calc(.9rem + 1.85rem);
    width: calc(2.7rem - var(--psb-rail) - var(--psb-arrow));
  }
  .psb-edge-label { display: none; }

  .article-body .psb-flow .psb-next {
    grid-column: 1; grid-row: 3;
    height: 2.7rem; justify-content: flex-start;
  }
  .psb-next::before,
  .psb-next::after { left: 1.1rem; }
  .psb-next-label {
    margin-left: calc(1.1rem + .7rem); padding: 0; background: none;
  }

  .psb-if,
  .psb-when {
    position: static; width: auto; height: auto; overflow: visible;
    clip: auto; white-space: normal;
  }
  .psb-when {
    font-family: var(--sans); font-weight: 700; font-size: .62rem;
    letter-spacing: .16em; text-transform: uppercase; line-height: 1;
    color: var(--muted); margin-bottom: .2rem;
  }

  .article-body .psb-flow .psb-sub,
  .article-body .psb-flow .psb-conds { padding-left: 0; }

  .psb-end { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Related posts ---------- */
.related-posts { background: var(--paper-2); }
/* Fixed two-up: with only one related article an auto-fit grid would stretch
   that single card across the whole container. */
.related-posts .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-all { margin: clamp(2rem, 4vw, 2.6rem) 0 0; }
.related-all a { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .45rem; }
.related-all .arrow { transition: transform .25s var(--ease); }
.related-all a:hover .arrow { transform: translateX(4px); }

/* ---------- Closing CTA ---------- */
.blog-cta { background: var(--navy-deep); color: #fff; }
.blog-cta-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center;
}
.blog-cta .eyebrow { color: var(--green-light); }
.blog-cta-title { color: #fff; font-weight: 500; margin-bottom: .8rem; }
.blog-cta-copy p { color: var(--on-dark); max-width: 58ch; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.blog-cta-points {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem;
}
.blog-cta-points li { display: flex; align-items: center; gap: .95rem; color: var(--on-dark); font-size: 1rem; }
.blog-cta-points a { color: #fff; }
.blog-cta-points a:hover { color: var(--green-light); }
.blog-cta-points address { font-style: normal; margin: 0; line-height: 1.5; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .article-body { grid-column: 1; grid-row: 1; }
  .article-aside {
    grid-column: 1; grid-row: 2;
    margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  }
  .article-share { position: static; }
  .article-share ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
}

@media (max-width: 980px) {
  .blog-cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-hero {
    background-image:
      linear-gradient(rgba(13,26,46,0.80), rgba(13,26,46,0.86)),
      url("../img/forest-hero-mobile.webp");
  }
}

@media (max-width: 560px) {
  .post-grid,
  .related-posts .post-grid { grid-template-columns: 1fr; }
  .post-card-body { padding: 1.5rem 1.4rem 1.6rem; }
  .breadcrumb [aria-current="page"] { max-width: 20ch; }
  .blog-cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card-media img, .post-card-more .arrow, .related-all .arrow {
    transition: none;
  }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card-media img { transform: none; }
}
