/* Audit Friendly blog post - header, Core type ramp, links, tables, contents
 * rail, related articles.
 *
 * Hosted as a site asset and linked from Blog Template -> Page Settings ->
 * Inside <head> (docs/blog-design-deployment.md says why it is not inline).
 * Every value comes from docs/prototypes/blog-redesign/ (Main.dc.html for
 * desktop, PostMobile.dc.html for phones, BuildSpec.dc.html), which comes from
 * DESIGN_SYSTEM.md. Nothing here is a new token.
 *
 * Everything is scoped to .af-post, a class enhance.js puts on <body> only
 * after it finds the article. If the script does not run, or the markup
 * changes, none of this applies and the page renders exactly as it does
 * today - the override layer fails off, not broken.
 *
 * Specificity is deliberate in places: the template styles some of the same
 * things (h3 in Gilroy, the related titles in Gascogne, the H1's no-margin
 * combo class), and a rule here has to outrank the template's, not tie it.
 */

.af-post {
  --af-ink: #0F2137;
  --af-body: #2B3D52;
  --af-muted: #48596E;
  --af-subtle: #67788C;
  --af-hint: #8697A8;
  --af-toc: #55677B;
  --af-green: #0E7C52;
  --af-underline: #9EDDBE;
  --af-band: #F4F7FA;
  --af-rule: #EEF2F7;
  --af-rule-strong: #D6DFE8;
  --af-line: #E3E9EF; /* the share circles' outline */
  --af-shadow: 0 1px 2px rgba(15, 33, 55, .04), 0 12px 28px -20px rgba(15, 33, 55, .28);
  --af-shadow-up: 0 2px 4px rgba(15, 33, 55, .05), 0 20px 34px -22px rgba(15, 33, 55, .34);
  --af-font: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* The site nav is position: fixed over the top of the page, and its height
   * is whatever its embed renders. enhance.js measures it into --af-nav-h;
   * the header, the sticky rail and heading jumps all clear it by this. */
  --af-clear: var(--af-nav-h, 88px);
}

/* 0 - Page --------------------------------------------------------------- */

/* White, as designed: not the template's #fbfbfb sections under a pale cyan
 * header band. */
body.af-post .s-blog-landing-hero,
body.af-post .s-blog-posts { background-color: #FFFFFF; }

/* The template's .wrapper has overflow: hidden, which makes it the box the
 * contents rail sticks inside. That box never scrolls, so the rail scrolled
 * away with the page. overflow: clip clips exactly the same way without
 * becoming a scroll container. hidden also made the wrapper a block
 * formatting context and clip does not, so flow-root keeps that, and with
 * it the layout, unchanged. A browser without clip keeps hidden: no sticky
 * rail there, and nothing else changes. */
@supports (overflow: clip) {
  body.af-post .wrapper { display: flow-root; overflow: clip; }
}

/* 1 - Article header ----------------------------------------------------- */

/* Clear the fixed nav, then the design's breathing room. */
body.af-post .s-blog-landing-hero {
  padding-top: calc(var(--af-clear) + 56px);
  padding-bottom: 0;
}
/* Left-aligned, on the same 1240px line as the rail and article below. */
body.af-post .s-blog-landing-hero .b-936 { max-width: 1240px; }
body.af-post .s-blog-landing-hero .centered-content { text-align: left; }

.af-post .af-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 16px;
  font-family: var(--af-font);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--af-hint);
}
.af-post .af-eyebrow-cat { color: var(--af-green); }
.af-post .af-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--af-rule-strong); }

body.af-post .h1-44 {
  font-family: var(--af-font);
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.02;
  color: var(--af-ink);
  max-width: 24ch;
  margin: 0 0 22px; /* outranks the template's no-margin combo class */
  text-wrap: pretty;
}

/* The standfirst was a serif accent under the image; Core has no serif, and
 * the design puts it under the title. enhance.js moves it there. */
body.af-post .p-22-gascogne {
  font-family: var(--af-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--af-muted);
  max-width: 62ch;
  margin: 0 0 30px;
  padding-top: 0;
  text-wrap: pretty;
}

/* The design's byline row, under the standfirst: the date on the left, the
 * share buttons on the right, over a hairline. */
.af-post .af-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--af-rule);
  font-family: var(--af-font);
}
.af-post .af-meta .blog-date {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--af-hint);
}
.af-post .af-meta .blog-date:empty { display: none; }

.af-post .af-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* stays right when there is no date */
  font-family: var(--af-font);
}
.af-post .af-share-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--af-hint);
}
.af-post .af-share-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--af-line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--af-muted);
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
/* A 44px touch target around the 34px circle. It is placed from inside the
 * 1px border, so 32 + 2 x 6. Neighbours, 10px apart, meet without
 * overlapping. */
.af-post .af-share-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
}
.af-post .af-share-btn:hover { color: var(--af-ink); border-color: var(--af-rule-strong); background: var(--af-band); }
.af-post .af-share-btn:focus-visible { outline: 2px solid var(--af-green); outline-offset: 2px; }
.af-post .af-share-btn svg { display: block; flex: none; }
.af-post .af-share-copy .af-i-tick { display: none; }
.af-post .af-share-copy.af-copied { color: var(--af-green); border-color: var(--af-underline); }
.af-post .af-share-copy.af-copied .af-i-link { display: none; }
.af-post .af-share-copy.af-copied .af-i-tick { display: block; }
.af-post .af-share-copy[data-af-tip]::after {
  content: attr(data-af-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--af-ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.af-post .af-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.af-post .blog-hero-image-holder { padding: 0; }
body.af-post .blog-hero-image { border-radius: 18px; }

/* The design's 48px from the image to the article, not the template's 184,
 * and 80px under it before the related band. */
body.af-post .s-blog-posts { padding-top: 48px; padding-bottom: 80px; }

/* 2 - Type ramp ---------------------------------------------------------- */

.af-post,
.af-post p,
.af-post li {
  font-family: var(--af-font);
}

.af-post .blog-post-rich-text-18 {
  font-size: 17.5px;
  line-height: 1.72;
  letter-spacing: -0.003em;
  color: var(--af-body);
  max-width: 72ch;
  margin-bottom: 0; /* was -24px */
  overflow-wrap: break-word;
}

.af-post .blog-post-rich-text-18 p { margin: 0 0 26px; }

/* The CMS wraps list items, table cells and quotes in <p>. Those are not
 * paragraphs a reader sees, and 26px under each opened every list up. */
.af-post .blog-post-rich-text-18 li > p,
.af-post .blog-post-rich-text-18 td > p,
.af-post .blog-post-rich-text-18 th > p,
.af-post .blog-post-rich-text-18 blockquote > p { margin: 0; }

.af-post .blog-post-rich-text-18 h2 {
  font-family: var(--af-font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--af-ink);
  margin: 54px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--af-rule);
  text-wrap: pretty;
}
.af-post .blog-post-rich-text-18 > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* The template sets h3 in Gilroy at 28px with +0.5px tracking. Inheriting
 * the family is not enough to beat that, so it is set here. */
.af-post .blog-post-rich-text-18 h3 {
  font-family: var(--af-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--af-ink);
  margin: 38px 0 12px;
  text-wrap: pretty;
}

.af-post .blog-post-rich-text-18 h4 {
  font-family: var(--af-font);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--af-ink);
  margin: 30px 0 10px;
}

/* A jump from the contents lands the heading below the fixed nav. */
.af-post .blog-post-rich-text-18 h2,
.af-post .blog-post-rich-text-18 h3 { scroll-margin-top: calc(var(--af-clear) + 24px); }

.af-post .blog-post-rich-text-18 ul,
.af-post .blog-post-rich-text-18 ol { margin: 0 0 26px; padding-left: 22px; }
.af-post .blog-post-rich-text-18 li { margin-bottom: 11px; padding-left: 4px; }
.af-post .blog-post-rich-text-18 ul li::marker { color: var(--af-green); }
.af-post .blog-post-rich-text-18 ol li::marker { color: var(--af-hint); font-weight: 700; font-size: .92em; }
.af-post .blog-post-rich-text-18 strong { font-weight: 700; color: var(--af-ink); }

.af-post .blog-post-rich-text-18 blockquote {
  margin: 34px 0;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--af-rule);
  border-bottom: 1px solid var(--af-rule);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--af-ink);
}

/* Top and bottom only: a centred figure keeps Webflow's auto side margins. */
.af-post .blog-post-rich-text-18 figure { margin-top: 0; margin-bottom: 30px; }
.af-post .blog-post-rich-text-18 figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--af-hint);
  text-align: left;
}

/* 3 - Links in body copy ------------------------------------------------- */

.af-post .blog-post-rich-text-18 a {
  color: var(--af-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--af-underline);
  transition: color .15s, text-decoration-color .15s;
}
.af-post .blog-post-rich-text-18 a:hover {
  color: var(--af-ink);
  text-decoration-color: var(--af-ink);
}

/* 4 - Tables - horizontal rules only, tabular figures -------------------- */

/* enhance.js wraps each table, so a wide one scrolls sideways on a tablet
 * rather than pushing the column past the screen. */
.af-post .af-table-wrap { overflow-x: auto; margin: 0 0 30px; }

.af-post .blog-post-rich-text-18 table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.af-post .blog-post-rich-text-18 th,
.af-post .blog-post-rich-text-18 td {
  padding: 15px 16px 15px 0;
  border: 0;
  border-bottom: 1px solid var(--af-rule);
  text-align: left; /* a <th> centres by default */
  vertical-align: top;
  color: var(--af-muted);
}
.af-post .blog-post-rich-text-18 th {
  padding: 0 16px 10px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--af-subtle);
  border-bottom-color: var(--af-rule-strong);
  white-space: nowrap;
}
.af-post .blog-post-rich-text-18 td:first-child { color: var(--af-ink); font-weight: 600; }
/* enhance.js tags columns that are mostly numeric. !important because the
 * CMS writes text-align: left inline on every cell. */
.af-post .blog-post-rich-text-18 td.af-num,
.af-post .blog-post-rich-text-18 th.af-num { text-align: right !important; padding-right: 0; }

/* 5 - Contents rail ------------------------------------------------------ */

/* enhance.js builds this wrapper itself rather than relying on Webflow's,
 * so the layout does not depend on the template's container classes. */
.af-post .af-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

/* Grid children may shrink below their content, and a long unbroken string
 * wraps rather than pushing the column past the screen. */
.af-post .af-grid > * { min-width: 0; }

/* The template caps the column at 744px. enhance.js tags only the wrappers
 * that genuinely cap it (never a 100vw limit), and they widen only where the
 * rail shows; a phone always keeps the template's own widths. */
@media (min-width: 901px) {
  body.af-post .af-widen { max-width: 1240px; }
}

.af-post .af-toc {
  position: sticky;
  top: calc(var(--af-clear) + 24px);
  font-family: var(--af-font);
  font-size: 13.5px;
  line-height: 1.42;
}
/* A long contents list scrolls inside the rail instead of running off the
 * bottom of the screen, where a sticky column could never reach it. */
.af-post .af-toc-rail {
  max-height: calc(100vh - var(--af-clear) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.af-post .af-toc-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--af-hint);
  margin-bottom: 14px;
}
.af-post .af-toc ol { list-style: none; margin: 0; padding: 0; }
.af-post .af-toc li { margin: 0; padding: 0; }
.af-post .af-toc ol a {
  display: block;
  padding: 7px 0 7px 16px;
  border-left: 2px solid var(--af-rule);
  color: var(--af-toc);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.af-post .af-toc ol a:hover { color: var(--af-ink); border-left-color: var(--af-rule-strong); }
.af-post .af-toc ol a.af-on {
  color: var(--af-ink);
  font-weight: 700;
  border-left-color: var(--af-ink);
}
.af-post .af-toc .af-sub a { padding-left: 28px; font-size: 12.5px; color: var(--af-subtle); }
.af-post .af-toc .af-sub a.af-on { color: var(--af-ink); }

/* The share buttons again at the foot of the rail, where the design's rail
 * has its one extra action. */
.af-post .af-rail-share {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--af-rule);
}
.af-post .af-rail-share .af-share { margin-left: 0; }

/* 6 - Reading progress --------------------------------------------------- */

.af-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--af-rule, #EEF2F7);
  z-index: 1000; /* over the site nav, which sits at 999 */
}
.af-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: #0E7C52;
  transition: width .08s linear;
}

/* 7 - Related articles - the design's "Keep reading" band ---------------- */

body.af-post .s-blog-related {
  background-color: var(--af-band);
  padding-top: 64px;
  padding-bottom: 72px;
}
body.af-post .s-blog-related .block { max-width: 1240px; }
body.af-post .s-blog-related .h2-30 {
  font-family: var(--af-font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--af-ink);
  margin: 0 0 28px;
}
body.af-post .s-blog-related .blog-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body.af-post .s-blog-related .w-dyn-item > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: var(--af-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.af-post .s-blog-related .w-dyn-item > a:hover { transform: translateY(-2px); box-shadow: var(--af-shadow-up); }
body.af-post .s-blog-related .blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}
/* The template sets these titles in Gascogne, a serif Core does not have. */
body.af-post .s-blog-related .blog-thumbnail-h3 {
  order: 1;
  margin: 0;
  padding: 20px 22px 12px;
  font-family: var(--af-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.32;
  color: var(--af-ink);
  text-wrap: pretty;
}
body.af-post .s-blog-related .blog-thumbnail-date {
  order: 2;
  margin: auto 0 0;
  padding: 0 22px 24px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--af-hint);
}
/* The design's cards are title and date; the whole card is the link. */
body.af-post .s-blog-related .h3-blog-thumbnail-summary,
body.af-post .s-blog-related .read-label { display: none; }

/* 8 - Mobile - rail becomes a pill and a bottom sheet -------------------- */

.af-fab, .af-sheet, .af-scrim { display: none; }

@media (max-width: 900px) {
  /* The header lines up with the article column, which is 744px here. */
  body.af-post .s-blog-landing-hero .b-936 { max-width: 744px; }

  .af-post .af-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .af-post .af-toc-rail { display: none; }

  .af-post .af-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    min-height: 46px;
    padding: 0 10px 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--af-ink);
    color: #fff;
    font-family: var(--af-font);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(9, 30, 50, .35);
    z-index: 1001;
    cursor: pointer;
  }
  .af-post .af-fab svg { flex: none; }
  .af-post .af-fab-count {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .af-post .af-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 33, 55, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 1002;
  }
  .af-post .af-sheet {
    display: block;
    position: fixed;
    /* The sheet reuses .af-toc for its list styling, which carries the
     * sticky rail's `top`. Left set, the sheet stretches between top and
     * bottom instead of resting on the bottom edge. */
    top: auto;
    box-sizing: border-box;
    left: 0; right: 0; bottom: 0;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(9, 30, 50, .22);
    transform: translateY(100%);
    /* Hidden on visibility as well as transform: a percentage translate is
     * only as correct as the measured height, and a sheet that peeks above
     * the fold is worse than one that animates a frame late. Also keeps it
     * out of the accessibility tree while closed. */
    visibility: hidden;
    transition: transform .24s ease, visibility 0s linear .24s;
    z-index: 1003;
  }
  .af-post.af-sheet-open .af-scrim { opacity: 1; pointer-events: auto; }
  .af-post.af-sheet-open .af-sheet {
    transform: translateY(0);
    visibility: visible;
    transition: transform .24s ease, visibility 0s;
  }
  .af-post.af-sheet-open { overflow: hidden; }

  .af-post .af-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 16px auto 14px;
    border-radius: 999px;
    background: var(--af-rule-strong);
  }
  .af-post .af-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .af-post .af-sheet-head .af-toc-label { margin: 0; }
  .af-post .af-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--af-muted);
    cursor: pointer;
  }
  .af-post .af-sheet ol a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid var(--af-rule);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--af-muted);
  }
  .af-post .af-sheet ol a.af-on { color: var(--af-ink); font-weight: 700; }
  .af-post .af-sheet .af-sub a { padding-left: 14px; font-size: 14px; color: var(--af-muted); }
}

/* 9 - Phones - PostMobile.dc.html --------------------------------------- */

@media (max-width: 767px) {
  body.af-post .s-blog-landing-hero { padding-top: calc(var(--af-clear) + 28px); }
  .af-post .af-eyebrow { gap: 4px 9px; margin-bottom: 14px; font-size: 10px; }
  body.af-post .h1-44 {
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -0.028em;
    margin-bottom: 16px;
  }
  body.af-post .p-22-gascogne { font-size: 17px; margin-bottom: 22px; }
  .af-post .af-meta { gap: 12px 16px; margin-bottom: 22px; padding-bottom: 20px; }
  .af-post .af-meta .blog-date { font-size: 12.5px; }
  body.af-post .blog-hero-image { border-radius: 14px; }
  body.af-post .s-blog-posts { padding-top: 28px; padding-bottom: 56px; }

  .af-post .blog-post-rich-text-18 { font-size: 17px; }
  .af-post .blog-post-rich-text-18 p { margin-bottom: 24px; }
  .af-post .blog-post-rich-text-18 h2 {
    font-size: 23px;
    line-height: 1.2;
    margin: 40px 0 14px;
    padding-top: 26px;
  }
  .af-post .blog-post-rich-text-18 h3 { font-size: 19px; margin: 32px 0 10px; }
  .af-post .blog-post-rich-text-18 ul,
  .af-post .blog-post-rich-text-18 ol { margin-bottom: 24px; padding-left: 20px; }
  .af-post .blog-post-rich-text-18 li { margin-bottom: 10px; padding-left: 3px; }
  .af-post .blog-post-rich-text-18 blockquote { margin: 28px 0; padding: 22px 0; font-size: 19px; }

  body.af-post .s-blog-related { padding-top: 40px; padding-bottom: 48px; }
  body.af-post .s-blog-related .h2-30 { font-size: 28px; margin-bottom: 22px; }
}

@media (max-width: 1000px) {
  body.af-post .s-blog-related .blog-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.af-post .s-blog-related .blog-featured-grid { grid-template-columns: minmax(0, 1fr); }

  /* Wide comparison tables become one block per row, each value labelled
   * with its column, rather than a squeezed grid (PostMobile.dc.html).
   * enhance.js marks the tables and writes the labels. */
  .af-post .af-stack,
  .af-post .af-stack tbody,
  .af-post .af-stack tr,
  .af-post .af-stack td { display: block; width: 100%; }
  .af-post .af-stack tr.af-head-row { display: none; }
  .af-post .af-stack tr { padding: 12px 0; border-bottom: 1px solid var(--af-rule); }
  .af-post .blog-post-rich-text-18 .af-stack td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    border: 0;
    text-align: right !important;
  }
  .af-post .blog-post-rich-text-18 .af-stack td::before {
    content: attr(data-label);
    flex: none;
    max-width: 50%;
    padding-top: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--af-subtle);
  }
  .af-post .blog-post-rich-text-18 .af-stack td:first-child {
    display: block;
    padding-bottom: 6px;
    font-size: 16px;
    text-align: left !important;
  }
  .af-post .blog-post-rich-text-18 .af-stack td:first-child::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .af-post *, .af-progress > i { transition: none !important; }
  body.af-post .s-blog-related .w-dyn-item > a:hover { transform: none; }
}
