/**
 * F2S International — blog design layer.
 * Sits on top of main.css + enhance.css. Same navy/gold brand system.
 *
 * Rules of the house: solid colours only (no gradients anywhere), sharp
 * geometry (radii 3–12px, never pills), restrained shadows, nothing under 12px.
 *
 *  1. Utilities
 *  2. Reading progress
 *  3. Blog index — hero, filters, post grid
 *  4. Article head
 *  5. Article layout + long-form typography
 *  6. Sidebar (incl. collapsible TOC + scrollspy)
 *  7. Article CTA + related posts
 *  8. Responsive
 *  9. Print
 */

/*--------------------------------------------------------------
# 1. Utilities
--------------------------------------------------------------*/
.a11y-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Blog pages have a light header on a light page — keep the nav readable */
.blog-page .header {
  border-bottom: 0;
}

/*--------------------------------------------------------------
# 2. Reading progress
--------------------------------------------------------------*/
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  background: color-mix(in srgb, var(--brand-navy), transparent 92%);
  pointer-events: none;
}

.reading-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-navy);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  transition: transform .1s linear;
}

/*--------------------------------------------------------------
# 3. Blog index — hero
--------------------------------------------------------------*/
.blog-hero {
  padding: 150px 0 60px;
  background: var(--brand-navy-soft);
  border-bottom: 1px solid var(--line);
}

.blog-hero .breadcrumbs {
  margin-bottom: 20px;
}

.blog-hero .eyebrow {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 7px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.blog-hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-muted);
  max-width: 40em;
  margin: 0;
}

/*--------------------------------------------------------------
# 3b. Category filter
--------------------------------------------------------------*/
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0 0 26px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.blog-filters button {
  border-radius: var(--radius-md);
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease),
    background-color .25s var(--ease), box-shadow .25s var(--ease);
}

.blog-filters button:hover {
  color: var(--brand-navy);
  background: var(--brand-navy-soft);
  border-color: color-mix(in srgb, var(--brand-navy), transparent 78%);
}

.blog-filters button.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# 3c. Post grid
--------------------------------------------------------------*/
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand-navy), transparent 82%);
  box-shadow: var(--shadow-lg);
}

.post-card.is-hidden {
  display: none;
}

.post-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-navy-soft);
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.post-card:hover .post-card-img img {
  transform: scale(1.05);
}

.post-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: rgba(27, 54, 84, .88);
  border-radius: 2px;
  padding: 7px 13px;
}

.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta i {
  color: var(--brand-gold);
}

.post-card-body h2 {
  font-size: 19px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 10px;
}

.post-card-body h2 a {
  color: var(--ink);
  transition: color .25s var(--ease);
}

.post-card-body h2 a:hover {
  color: var(--brand-navy);
}

.post-card-body p {
  font-size: 14.8px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.post-readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--heading-font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-navy);
}

.post-readmore i {
  transition: transform .25s var(--ease);
}

.post-card:hover .post-readmore i {
  transform: translateX(4px);
}

.blog-empty {
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  padding: 48px 0;
  display: none;
}

/*--------------------------------------------------------------
# 4. Article head
--------------------------------------------------------------*/
.article-head {
  padding: 136px 0 0;
  background: #ffffff;
}

/* Article pages read as a single measured column: the head, the two-column
   layout and the related grid all share one max-width so their edges line up.
   1084 = 1060 of content + the .container's 12px gutters. */
.article-head > .container,
.related-posts > .container {
  max-width: 1072px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--ink-muted);
  transition: color .2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--brand-navy);
}

.breadcrumbs > span {
  color: color-mix(in srgb, var(--ink-muted), transparent 45%);
}

.breadcrumbs span[aria-current] {
  color: var(--ink);
}

.article-head .post-tag {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
  background: var(--brand-navy);
}

.article-head h1 {
  font-size: clamp(30px, 3.9vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.1px;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 17em;
  text-wrap: balance;
}

.article-head .article-standfirst {
  font-size: 19px;
  line-height: 1.68;
  color: var(--ink-muted);
  max-width: 34em;
  margin-bottom: 26px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--ink-muted);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta i {
  color: var(--brand-gold);
  font-size: 14px;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 32px 0 0;
  background: var(--brand-navy-soft);
  box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# 5. Article layout + long-form typography
--------------------------------------------------------------*/
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 72px;
  max-width: 1048px;
  margin: 0 auto;
  padding: 52px 0 84px;
  align-items: start;
}

/* The column shell is a little wider than the prose measure, so tables,
   callouts and the CTA can breathe while running text stays readable. */
.article-body {
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .002em;
  max-width: 40em;
  color: color-mix(in srgb, var(--ink) 84%, var(--ink-muted));
}

/* 33em ≈ 72 characters per line — the comfortable long-form measure */
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > h4,
.article-body > blockquote,
.article-body > figure {
  max-width: 33em;
}

/* --- headings --- */
.article-body h2 {
  position: relative;
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 52px 0 16px;
  padding-top: 4px;
  scroll-margin-top: 124px;
  text-wrap: balance;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h2:focus {
  outline: none;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.2px;
  color: var(--ink);
  margin: 34px 0 10px;
  scroll-margin-top: 124px;
}

.article-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 8px;
}

/* Tighten the gap when a heading immediately follows another heading */
.article-body h2 + h3,
.article-body h3 + h4 {
  margin-top: 20px;
}

/* --- copy --- */
.article-body p {
  margin: 0 0 22px;
}

.article-body > p:last-child,
.article-body em:only-child {
  margin-bottom: 0;
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body a {
  color: var(--brand-navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand-navy), transparent 62%);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}

.article-body a:hover {
  color: var(--brand-navy-deep);
  text-decoration-color: var(--brand-navy);
}

/* --- heading anchor / copy link --- */
.heading-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  margin-left: .3em;
  vertical-align: baseline;
  font-size: .72em;
  line-height: 1;
  color: var(--brand-navy);
  text-decoration: none;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(-.08em);
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

.article-body h2:hover .heading-anchor,
.heading-anchor:focus-visible,
.heading-anchor.is-copied {
  opacity: .55;
}

.heading-anchor:hover,
.heading-anchor:focus-visible {
  opacity: 1;
  color: var(--brand-navy-deep);
  text-decoration: none;
}

.heading-anchor i {
  font-size: 1.25em;
  line-height: 1;
}

/* Kept out of the layout entirely until it is needed: a hidden-but-laid-out
   tooltip would widen the heading and push the page into horizontal scroll. */
.heading-anchor::after {
  content: "Link copied";
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2px;
  white-space: nowrap;
  color: #fff;
  background: var(--brand-navy-deep);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  pointer-events: none;
}

.heading-anchor.is-copied {
  opacity: 1;
  color: var(--brand-navy-deep);
}

.heading-anchor.is-copied::after {
  display: block;
  animation: f2s-copied-in .18s var(--ease) both;
}

@keyframes f2s-copied-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Touch devices have no hover — keep the affordance permanently visible */
@media (hover: none) {
  .heading-anchor {
    opacity: .4;
  }
}

/* --- lists --- */
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 11px;
  padding-left: 3px;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body li > ul,
.article-body li > ol {
  margin: 10px 0 0;
}

.article-body li::marker {
  color: var(--brand-gold);
  font-weight: 700;
}

.article-body ol {
  counter-reset: none;
}

/* --- blockquote --- */
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--brand-gold);
  background: none;
  border-radius: 0;
  font-size: 19px;
  line-height: 1.62;
  font-weight: 500;
  color: var(--ink);
}

.article-body blockquote p {
  margin-bottom: 14px;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body blockquote cite,
.article-body blockquote footer {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-muted);
}

/* --- callout --- */
.callout {
  background: var(--brand-navy-soft);
  border: 1px solid color-mix(in srgb, var(--brand-navy), transparent 86%);
  border-left: 3px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 32px 0;
  font-size: 16px;
  line-height: 1.72;
}

.callout h4 {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-navy-deep);
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.callout h4 i {
  color: var(--brand-gold);
  font-size: 17px;
  line-height: 1.4;
  flex: 0 0 auto;
}

.callout p {
  margin-bottom: 12px;
}

.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child {
  margin-bottom: 0;
}

/* A gold variant, if any article ever marks one up */
.callout.callout-gold {
  background: var(--brand-gold-soft);
  border-color: color-mix(in srgb, var(--brand-gold), transparent 74%);
  border-left-color: var(--brand-gold);
}

/* --- tables --- */
.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  min-width: 460px;
}

.article-body th,
.article-body td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  background: var(--brand-navy-soft);
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-body tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--brand-navy-soft), transparent 55%);
}

.article-body td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

/* --- misc --- */
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
  opacity: 1;
}

.article-body img,
.article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-body figure {
  margin: 30px 0;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/*--------------------------------------------------------------
# 6. Sidebar
--------------------------------------------------------------*/
.article-sidebar {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-family: var(--nav-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

/* --- table of contents --- */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
  border-left: 1px solid var(--line);
}

.toc-list li {
  margin: 0;
  line-height: 1.45;
}

.toc-list a {
  display: block;
  position: relative;
  padding: 8px 0 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.toc-list a:hover {
  color: var(--brand-navy);
  border-left-color: color-mix(in srgb, var(--brand-navy), transparent 65%);
}

.toc-list a.is-active {
  color: var(--brand-navy);
  font-weight: 600;
  border-left-color: var(--brand-navy);
}

/* --- TOC disclosure control (mobile only; a plain heading on desktop) --- */
.toc-card h3 {
  margin-bottom: 12px;
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: default;
}

.toc-toggle[disabled] {
  opacity: 1;
}

.toc-chevron {
  display: none;
  font-size: 15px;
  color: var(--brand-navy);
  transition: transform .25s var(--ease);
}

/* --- sidebar CTA --- */
.sidebar-cta {
  background: var(--brand-navy);
  border: 0;
  color: #fff;
  padding: 24px;
}

.sidebar-cta h3 {
  font-family: var(--heading-font);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
  text-transform: none;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 18px;
}

.sidebar-cta .btn-solid {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.sidebar-cta .btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
  color: var(--brand-navy);
}

/* --- related links list --- */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
}

.sidebar-links li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.sidebar-links li:first-child {
  padding-top: 0;
}

.sidebar-links li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-links a {
  color: var(--ink-muted);
  transition: color .2s var(--ease);
}

.sidebar-links a:hover {
  color: var(--brand-navy);
}

/*--------------------------------------------------------------
# 7. Article CTA + related posts
--------------------------------------------------------------*/
.article-cta {
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  padding: 38px 40px 40px;
  color: #fff;
  margin: 52px 0 0;
}

.article-cta h2 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin: 0 0 10px;
  padding: 0;
}

.article-cta p {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 40em;
}

.article-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* These sit inside .article-body — cancel the long-form link underline */
.article-cta a,
.sidebar-cta a {
  text-decoration: none;
}

.article-cta .btn-solid,
.article-cta .btn-outline {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
}

.article-cta .btn-solid {
  background: #fff;
  color: var(--brand-navy);
  border: 1px solid #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.article-cta .btn-outline {
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.article-cta .btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  color: var(--brand-navy);
}

.article-cta .btn-outline:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
}

.related-posts {
  padding: 70px 0 78px;
  background: var(--brand-navy-soft);
  border-top: 1px solid var(--line);
}

.related-posts h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 26px;
  letter-spacing: -.5px;
  color: var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-grid .post-card-body {
  padding: 20px 22px 24px;
}

.related-grid .post-card-body h2 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.related-grid .post-card-body p {
  font-size: 14.5px;
}

/*--------------------------------------------------------------
# 8. Responsive
--------------------------------------------------------------*/

/* Slightly narrower gutters once the sidebar starts to crowd */
@media (max-width: 1199px) {
  .article-layout {
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 992px) {
  .blog-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-head {
    padding-top: 112px;
  }

  .blog-hero {
    padding: 122px 0 48px;
  }

  /* One column: the whole article — head, body and cards — is capped at the
     same reading measure and centred, so nothing runs past ~74 characters. */
  .article-head > .container {
    max-width: 594px;
  }

  .related-posts > .container {
    max-width: none;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 570px;
    gap: 26px;
    padding: 40px 0 68px;
  }

  .article-body {
    max-width: none;
    order: 0;
  }

  /* Let the sidebar cards become grid items in their own right so the table
     of contents can sit above the article while the CTA cards stay below. */
  .article-sidebar {
    display: contents;
    position: static;
  }

  .article-sidebar > .sidebar-card {
    order: 1;
  }

  .article-sidebar > .toc-card {
    order: -1;
  }

  /* Collapsed disclosure state */
  .toc-card.is-collapsible {
    padding: 6px 18px;
  }

  .toc-card.is-collapsible h3 {
    margin: 0;
  }

  .toc-card.is-collapsible .toc-toggle {
    cursor: pointer;
    padding: 14px 0;
  }

  .toc-card.is-collapsible .toc-chevron {
    display: inline-block;
  }

  .toc-card.is-collapsible.is-open .toc-chevron {
    transform: rotate(180deg);
  }

  .toc-card.is-collapsible:not(.is-open) .toc-list {
    display: none;
  }

  .toc-card.is-collapsible .toc-list {
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .article-body h2 {
    margin-top: 44px;
  }
}

@media (max-width: 820px) {
  .article-head .article-standfirst {
    font-size: 17.5px;
  }

  .article-hero-img {
    aspect-ratio: 16 / 9;
    margin-top: 26px;
  }
}

@media (max-width: 620px) {
  .blog-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .blog-hero {
    padding: 104px 0 40px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  .blog-filters {
    gap: 7px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .blog-filters button {
    font-size: 13.5px;
    padding: 9px 15px;
  }

  .article-head {
    padding-top: 96px;
  }

  .article-head h1 {
    letter-spacing: -.7px;
  }

  .article-head .article-standfirst {
    font-size: 16.5px;
    margin-bottom: 22px;
  }

  .article-meta {
    gap: 8px 16px;
    font-size: 13px;
    padding-bottom: 24px;
  }

  .article-hero-img {
    aspect-ratio: 4 / 3;
    margin-top: 22px;
  }

  .article-layout {
    padding: 32px 0 56px;
  }

  .article-body {
    font-size: 16.5px;
    line-height: 1.75;
  }

  .article-body h2 {
    margin-top: 38px;
    letter-spacing: -.3px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 20px;
  }

  .article-body blockquote {
    padding-left: 18px;
    font-size: 17.5px;
  }

  .callout {
    padding: 18px 18px;
    margin: 26px 0;
    font-size: 15.5px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .sidebar-cta {
    padding: 22px 20px;
  }

  .article-cta {
    padding: 28px 22px 30px;
    margin-top: 40px;
  }

  .article-cta p {
    font-size: 15.5px;
    margin-bottom: 20px;
  }

  .article-cta .cta-actions {
    gap: 10px;
  }

  .article-cta .btn-solid,
  .article-cta .btn-outline {
    flex: 1 1 100%;
  }

  .related-posts {
    padding: 52px 0 58px;
  }
}

@media (max-width: 400px) {
  .post-card-body {
    padding: 20px 18px 22px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body table {
    min-width: 400px;
  }

  .toc-card.is-collapsible {
    padding: 4px 16px;
  }
}

/* Reduced motion — no animated bars, no drifting cards */
@media (prefers-reduced-motion: reduce) {
  .reading-progress-bar {
    transition: none;
  }

  .post-card,
  .post-card-img img,
  .post-readmore i,
  .article-cta .btn-solid,
  .sidebar-cta .btn-solid,
  .toc-chevron {
    transition: none !important;
  }

  .post-card:hover,
  .post-card:focus-within,
  .article-cta .btn-solid:hover,
  .sidebar-cta .btn-solid:hover {
    transform: none;
  }

  .post-card:hover .post-card-img img {
    transform: none;
  }

  .heading-anchor.is-copied::after {
    animation: none;
  }
}

/*--------------------------------------------------------------
# 9. Print
--------------------------------------------------------------*/
@media print {
  #header,
  .header,
  .article-sidebar,
  .related-posts,
  #footer,
  .footer,
  .whatsapp-float,
  .scroll-top,
  .reading-progress,
  .article-cta,
  .breadcrumbs,
  .heading-anchor,
  .blog-filters,
  .a11y-live {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .article-head {
    padding: 0 !important;
  }

  .article-head > .container,
  .related-posts > .container,
  .container,
  .container-xl {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
  }

  .article-head h1 {
    font-size: 21pt;
    max-width: none;
    color: #000 !important;
  }

  .article-head .post-tag {
    background: none !important;
    color: #000 !important;
    padding: 0 0 6pt;
    border: 0;
    letter-spacing: 1px;
  }

  .article-head .article-standfirst {
    font-size: 12pt;
    color: #000 !important;
    max-width: none;
  }

  .article-meta {
    font-size: 9pt;
    color: #000 !important;
    padding-bottom: 8pt;
    border-bottom: 1pt solid #999;
  }

  .article-meta i,
  .article-body li::marker {
    color: #000 !important;
  }

  .article-hero-img {
    max-height: 55mm;
    box-shadow: none;
    border-radius: 0;
    margin-top: 8pt;
  }

  .article-layout {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .article-body {
    max-width: none !important;
    font-size: 11pt;
    line-height: 1.55;
    color: #000 !important;
  }

  .article-body h2,
  .article-body h3,
  .article-body h4 {
    color: #000 !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .article-body h2 {
    font-size: 14pt;
    margin: 18pt 0 6pt;
  }

  .article-body h3 {
    font-size: 12pt;
    margin: 12pt 0 4pt;
  }

  .article-body a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Make destinations readable on paper */
  .article-body a[href]:not([href^="#"])::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #333;
    word-break: break-all;
  }

  .callout,
  .article-body blockquote {
    background: none !important;
    border: 1pt solid #999 !important;
    border-radius: 0;
    padding: 8pt 10pt;
    color: #000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .callout h4,
  .callout h4 i {
    color: #000 !important;
  }

  .table-wrap {
    overflow: visible !important;
    border: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .article-body table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 9.5pt;
    border: 1pt solid #999;
  }

  .article-body th {
    background: none !important;
    color: #000 !important;
    border-bottom: 1pt solid #999;
  }

  .article-body td {
    color: #000 !important;
    border-bottom: 1pt solid #ccc;
  }

  .article-body tbody tr:nth-child(even) td {
    background: none !important;
  }

  .article-body p,
  .article-body li {
    orphans: 3;
    widows: 3;
  }

  .article-body img {
    max-width: 100% !important;
    break-inside: avoid;
  }
}
