/* =========================================================================
   Gigahost Blog — shared foundation (Phase 1)
   Spec: "Gigahost blog — design system & per-post spec" (doc 18bd0a3d5632213018bd0a3888dec75d)
   Beads: cortex-c6rtmqj (foundation), cortex-1s8lpvf (per-post image_style typing)

   FOUNDATION file — Phase-2 per-post agents do NOT edit it. Foundation-level
   changes to the design system itself are the exception (e.g. cortex-1s8lpvf,
   which added the image_style hero typing below).
   Each post is wrapped by the template in <article class="post post--{shortname}">.
   Per-post overrides live in src/modules/blog/css/posts/{year}/{shortname}.css
   (year-scoped like the include files, since shortnames are unique per-year not
   globally), every selector prefixed `.post--{shortname}` (see §B of the spec).

   Two hero treatments, selected by the posts.json `image_style` field (carried
   as $post['imageStyle']; default 'inline' so legacy posts never bleed):
     image_style:"background" -> .hero--background  (alias .hero--atmospheric):
        atmospheric navy-art rendered full-bleed as a cover, title overlaid on a
        bottom legibility scrim. Only for images designed to bleed.
     image_style:"inline"     -> .hero--inline      (alias .hero--ui) [DEFAULT]:
        UI screenshots / tight feature crops rendered as a contained, framed
        figure on a navy title band — never stretched full-bleed.
   The legacy alias classes (.hero--atmospheric / .hero--ui) stay on the element
   so existing per-post bespoke CSS keeps matching; the image_style-aligned names
   (.hero--background / .hero--inline) are the preferred target for new rules.

   Contents:
     1. @font-face — self-hosted IBM Plex Sans (woff2, reused from controlcenter)
     2. Hero base + hero--background/atmospheric + hero--inline/ui
     3. Reading column (.post-body) — editorial type scale, lead, h3, links,
        strong, lists, blockquote/pull-quote, CTA closing block
     4. Index (year-listing) compact hero-card variant
     5. Responsive (clamp + breakpoints)
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 1. IBM Plex Sans — self-hosted (variable woff2 per unicode subset).      */
/*    A single woff2 per subset carries all weights; each @font-face maps a */
/*    nominal weight onto it. Subsets: latin, latin-ext, cyrillic.          */
/* ----------------------------------------------------------------------- */

/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext (covers ł, ó, ą etc. for Polish + other Latin-script locales) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* cyrillic (Russian, Ukrainian) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* -----------------------------------------------------------------------
   Design tokens (scoped to the blog post, never global)
   ----------------------------------------------------------------------- */
.post {
  --gh-blue:    #2bb3f3; /* bright brand accent: eyebrows, rules, list markers */
  --gh-blue-mid:#0e73ba; /* body links (more legible on light bg) */
  --gh-navy:    #042d4a; /* headings, strong, hero band */
  --gh-navy-dk: #021220; /* hero scrim base */
  --gh-ink:     #1c2b36; /* body text */
  --gh-ink-soft:#2a3b48; /* lead paragraph */
  --gh-muted:   #5a6b78; /* captions */
  --gh-bg:      #f7f9fb; /* off-white reading background */
  --gh-rule:    #e3eaf0; /* hairline rules */
  --gh-measure: 68ch;    /* reading column width */
  --gh-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -----------------------------------------------------------------------
   0. Root base correction (cortex-bqh1bep)
   Bootstrap 3 sets `html { font-size: 10px }` site-wide, but this blog's
   editorial type scale is authored in rem assuming the CSS-default 16px root
   (1.125rem = 18px body, 1.375rem = 22px lead, clamp(2rem…) hero). At the 10px
   root every rem rendered at 62.5% — body 11.25px, lead 13.75px, meta 9.5px —
   which is why the blog read markedly smaller than the marketing pages, and why
   the ch-based reading column collapsed to ~411px. This module stylesheet loads
   AFTER bootstrap.min.css and ONLY on blog pages, so restoring the 16px base
   here fixes the whole blog (foundation + every per-post sidecar + the reading
   column) to its intended scale, and affects no other page. Our non-blog CSS
   uses no rem, so nothing else depends on the 10px base.
   ----------------------------------------------------------------------- */
html { font-size: 16px; }

/* -----------------------------------------------------------------------
   2. Hero — full-bleed cinematic band
   The article is a direct child of #wrapper (template moved the post loop
   out of .container), so .post-hero spans the viewport naturally. The
   100vw breakout below is a belt-and-braces guard in case an ancestor ever
   reintroduces horizontal padding.
   ----------------------------------------------------------------------- */
.post {
  background: var(--gh-bg);
}

.post-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  overflow: hidden;
  background-color: var(--gh-navy);
}

/* thin gradient at the very top so the opaque white navbar doesn't clip hard */
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(2, 18, 32, 0.55), rgba(2, 18, 32, 0));
  pointer-events: none;
}

.post-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
}

.post-hero .eyebrow {
  display: inline-block;
  color: var(--gh-blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.post-title {
  font-family: var(--gh-sans);
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0;
}

.post-hero .post-meta,
.post-hero time {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--gh-sans);
  font-size: 0.95rem;
  margin: 0.9rem 0 0;
}

/* --- Mode A: image_style:"background" (navy-art) — full-bleed cover, title   */
/*     overlaid on a bottom legibility scrim.                                  */
/*     .hero--background is the image_style-aligned name; .hero--atmospheric   */
/*     is the legacy alias kept for existing per-post bespoke CSS.             */
.hero--background,
.hero--atmospheric {
  min-height: 340px;
  height: clamp(420px, 56vw, 640px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: flex-end; /* title sits at the bottom by default */
}

.hero--background::after,
.hero--atmospheric::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(2, 18, 32, 0.92) 0%,
    rgba(2, 18, 32, 0.45) 38%,
    rgba(2, 18, 32, 0) 70%
  );
  pointer-events: none;
}

.hero--background .post-hero__inner,
.hero--atmospheric .post-hero__inner {
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* --- Mode B: image_style:"inline" (UI screenshots / tight feature crops) —   */
/*     title on a navy band, image framed clean and never covered. This is the */
/*     DEFAULT, so every legacy post lands here.                               */
/*     .hero--inline is the image_style-aligned name; .hero--ui is the legacy  */
/*     alias kept for existing per-post bespoke CSS.                           */
.hero--inline,
.hero--ui {
  /* the post image is presented as a framed window, NOT a cover, so          */
  /* neutralise any inline background-image the template might set.           */
  background-image: none !important;
  background-color: var(--gh-navy);
  background-image: linear-gradient(-180deg, rgba(43, 178, 243, 0) 0%, rgba(43, 178, 243, 0.08) 100%);
  flex-direction: column;
}

.hero--inline .post-hero__inner,
.hero--ui .post-hero__inner {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  align-items: flex-start;
}

/* The framed figure. The template emits it for inline posts as
   <img class="hero-shot" ...>. It reads as a real product window / framed crop.
   The 2.0 UI-screenshot posts narrow the container further and give the image a
   white mat via their per-post CSS; here we set the shared frame.            */
.hero--inline .hero-shot,
.hero--ui .hero-shot {
  display: block;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) clamp(2.5rem, 6vw, 4rem);
  box-sizing: border-box;
  text-align: center; /* centre tight legacy crops that don't fill the column */
}

/* width:auto + max-width:100% means wide screenshots fill the column while tiny
   transparent legacy crops (e.g. the 2016 redesign G-logo) sit at their natural
   size, centred and framed — never upscaled into a blurry full-width banner. */
.hero--inline .hero-shot img,
.hero--ui .hero-shot img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

/* Auto-detected archive artwork predates the typed hero system and was
   generally authored for a white page. Give those fallback assets a
   shrink-wrapped light mat instead of placing transparent dark pixels
   directly on navy. Explicit modern images keep their own treatment. */
.hero--inline .hero-shot--fallback,
.hero--ui .hero-shot--fallback {
  width: fit-content;
  max-width: calc(100% - 48px);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid rgba(2, 18, 32, 0.1);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.hero--inline .hero-shot--fallback img,
.hero--ui .hero-shot--fallback img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* --- Text-only single posts: align the title band with the reading column.   */
/*     The vast majority of posts (the legacy archive) have no hero image, so   */
/*     their inline hero is a plain navy title band with no framed `.hero-shot` */
/*     to anchor the width. Left at the foundation defaults the title sits in a */
/*     wide 1180px band (flush left ~x113) while the 68ch reading column below  */
/*     is centred (~x433) — the two start ~320px apart and the body reads as a  */
/*     narrow column floating off to one side. For these posts only, constrain  */
/*     the title/meta block to the SAME measure, font context and 24px gutters  */
/*     as `.post-body`, so the column centres and the title sits directly above */
/*     the body it introduces.                                                  */
/*                                                                              */
/*     Scope is deliberately tight: `.blog-single` = individual post page only  */
/*     (not the year index); `.hero--inline` = navy-band mode (not full-bleed   */
/*     `hero--background`); `:not(:has(.hero-shot))` = image-LESS only, so every */
/*     post that carries a framed screenshot/crop — including all nine bespoke  */
/*     Phase-2 posts — is untouched. `:has()` is progressive enhancement: on a  */
/*     browser without it the whole rule is ignored and the layout falls back   */
/*     to the current (functional) foundation default. (cortex-2ex040v)         */
.blog-single .hero--inline:not(:has(.hero-shot)) .post-hero__inner {
  max-width: var(--gh-measure);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  font-family: var(--gh-sans);
  font-size: 1.125rem; /* match .post-body so 68ch resolves to the same width */
}

/* Image-less posts (the legacy archive) got a flat navy band. Give them a subtle
   branded gradient fallback (cortex-ixoz6ya) so a title-only hero still feels
   designed. Needs !important to beat `.hero--inline { background-image:none
   !important }`; higher specificity carries it. Only image-LESS single posts —
   every post with a framed .hero-shot is untouched. */
.blog-single .hero--inline:not(:has(.hero-shot)) {
  background-image: linear-gradient(135deg, #021b30 0%, var(--gh-navy) 45%, #0c5488 135%) !important;
}

/* -----------------------------------------------------------------------
   3. Reading column — editorial body
   ----------------------------------------------------------------------- */
.post-body {
  font-family: var(--gh-sans);
  max-width: var(--gh-measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 24px clamp(3rem, 6vw, 4.5rem);
  color: var(--gh-ink);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

.post-body p {
  margin: 0 0 1.4rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gh-ink);
}

/* Typographic lead: the first paragraph of the post. No new class needed on
   the include HTML — styled positionally. */
.post-body > p:first-of-type {
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--gh-ink-soft);
  font-weight: 400;
  margin-bottom: 1.8rem;
}

/* H3 section headings (what the posts actually use) with a signature accent:
   a short brand-blue rule above each heading. */
.post-body h3 {
  font-family: var(--gh-sans);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--gh-navy);
  letter-spacing: -0.01em;
  margin: 3rem 0 0.9rem;
}

.post-body h3::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gh-blue);
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

/* H2 reserved (posts don't use it today). */
.post-body h2 {
  font-family: var(--gh-sans);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gh-navy);
  margin: 3rem 0 1rem;
}

.post-body strong {
  font-weight: 600;
  color: var(--gh-navy);
}

.post-body a {
  color: var(--gh-blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.post-body a:hover,
.post-body a:focus {
  color: var(--gh-navy);
}

.post-body ul,
.post-body ol {
  font-size: 1.125rem;
  line-height: 1.7;
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body ul li::marker {
  color: var(--gh-blue);
}

.post-body ol li::marker {
  color: var(--gh-blue);
  font-weight: 600;
}

/* Pull-quote (Phase-2 per-post opt-in). No quotation glyphs; blue left rule. */
.post-body blockquote {
  border: 0;
  border-left: 4px solid var(--gh-blue);
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--gh-navy);
  background: none;
}

.post-body blockquote p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

/* In-body figures / captions. Consistent frame for inline post images
   (cortex-ixoz6ya): column width, radius-md, a hairline border + soft shadow so
   screenshots read as framed windows rather than bare bitmaps. */
.post-body figure {
  margin: 2rem 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.post-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gh-rule);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 10px 30px -18px rgba(2, 18, 32, 0.45);
}

.post-body figcaption {
  font-size: 0.9rem;
  color: var(--gh-muted);
  font-style: normal;
  text-align: center;
  margin-top: 0.6rem;
}

/* Section divider — one branded rule (cortex-ixoz6ya): a short centred brand-blue
   bar echoing the h3 accent, replacing the plain grey <hr> so dividers match the
   blog's accent system rather than a default line. */
.post-body hr {
  border: 0;
  height: 3px;
  width: 2.5rem;
  margin: 2.75rem auto;
  background: var(--gh-blue);
  border-radius: 2px;
}

/* Lead callout — one modern component (cortex-ixoz6ya). The 61 legacy posts open
   with <p class="lead">; the old solid-blue box read dated. Now a subtle brand
   tint with a blue accent rule, radius-lg, space-5 padding — consistent with the
   typographic lead's size/colour so lead-as-first-paragraph reads as one voice. */
.post-body p.lead {
  background: rgba(43, 178, 243, 0.08);
  color: var(--gh-ink-soft);
  border-left: 4px solid var(--gh-blue);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-5, 24px);
  font-size: 1.375rem;
  line-height: 1.55;
  font-weight: 400;
}

.post-body p.lead a {
  color: var(--gh-blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.post-body p.lead a:hover,
.post-body p.lead a:focus {
  color: var(--gh-navy);
}

/* End-of-post CTA: render the final paragraph as a distinct closing block.
   The posts end with a single arrow link ("Explore … →"). A hairline rule
   above it gives a consistent "next chapter" footer feel. Phase-2 agents may
   override the link to a pill button per post. */
.post-body > p:last-child {
  border-top: 1px solid var(--gh-rule);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 1.2rem;
}

.post-body > p:last-child a {
  font-weight: 600;
  text-decoration: none;
  color: var(--gh-blue-mid);
}

.post-body > p:last-child a:hover,
.post-body > p:last-child a:focus {
  color: var(--gh-navy);
  text-decoration: underline;
}

/* hero -> first paragraph breathing room (extra to the .post-body padding) */
.post .post-body {
  scroll-margin-top: 88px;
}

/* -----------------------------------------------------------------------
   4. Chronological stream
   /blog is one server-rendered document containing every complete article.
   Titles remain links to the canonical single-post URL, while the body keeps
   its real links and full typography. A quiet machined mark and generous
   whitespace separate entries without turning the archive into cards.
   ----------------------------------------------------------------------- */
html {
  overflow-x: hidden;
}

.blog-stream .post {
  scroll-margin-top: 138px;
}

.blog-stream .post-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-stream .post-title a:hover,
.blog-stream .post-title a:focus {
  color: var(--gh-blue);
  text-decoration: none;
}

.blog-stream__separator {
  min-height: clamp(7rem, 10vw, 9rem);
  display: grid;
  place-items: center;
  background: var(--gh-bg, #f7f9fb);
}

/* A single recessed diamond reads as punctuation, never a loading indicator. */
.blog-stream__mark {
  width: 11px;
  height: 11px;
  display: block;
  border: 1px solid #aeb8bf;
  background: #eef2f4;
  box-shadow: inset 0 0 0 2px #f7f9fb;
  transform: rotate(45deg);
  opacity: 0.72;
}

/* -----------------------------------------------------------------------
   5. Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* hero--ui split (if a Phase-2 post used a side-by-side layout) collapses
     to stacked. The shared layout is already stacked, so nothing to undo
     here — this breakpoint is reserved for per-post overrides. */
}

@media (max-width: 767px) {
  .hero--background,
  .hero--atmospheric {
    min-height: 340px;
    height: clamp(340px, 70vw, 460px);
  }
  .post-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .post-hero .eyebrow {
    font-size: 0.7rem;
  }
  .post-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .post-body > p:first-of-type {
    font-size: 1.2rem;
  }
  .post-body p,
  .post-body ul,
  .post-body ol {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .blog-card,
  .blog-card:hover,
  .blog-card:focus {
    transform: none !important;
    transition: none !important;
  }
}

/* -----------------------------------------------------------------------
   6. Grid archive
   /blog?view=grid renders every visible post as a compact card. Historical
   year URLs use the same card presentation with a server-side filter.
   The brand tokens (--gh-*) are declared on .post; redeclare the ones the
   cards need on the listing wrapper so cards (not inside a .post) inherit
   them. Radius/spacing come from the global tokens in css/style.css.
   ----------------------------------------------------------------------- */
.blog-stream,
.blog-grid-view {
  --gh-blue:     #2bb3f3;
  --gh-blue-mid: #0e73ba;
  --gh-navy:     #042d4a;
  --gh-ink:      #1c2b36;
  --gh-muted:    #5a6b78;
  --gh-rule:     #e3eaf0;
  --gh-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-listing {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #f7f9fb;
}

.blog-listing__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.blog-listing__title {
  font-family: var(--gh-sans);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gh-navy);
  margin: 0;
}

.blog-listing__all {
  font-family: var(--gh-sans);
  color: var(--gh-blue-mid);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.blog-listing__all:hover,
.blog-listing__all:focus {
  text-decoration: underline;
}
