/* tweakflix — Blog index, page-only layout
   Owns styleguide/pages/blog.html and nothing else.

   Client round six (2026-09-08). The index is an editorial section in the
   client's order: breadcrumb, title, lead, search, topic chips; the one
   article as the featured card; the catalogue's categories as topic tiles;
   three help rows; the drafts in preparation; the closing panel. The "where
   can you buy" answer and the twelve-plan list of round two are gone: that
   intent lives in the articles now.

   The page is assembled from c-editorial (.e-post, .e-posts, .e-author),
   c-product (.c-tile at the chip surface), c-controls (.chip, .search,
   .input, .btn, .crumbs, .c-medal, .accordion--icon) and c-chrome. What is
   left for this file:

   1. The type ladder: the display step for the page title, the lg step for
      the lead and for ALL FOUR section headings (the three furniture blocks
      and the closing panel's ask), the 2xl step for the one guide's title.
      Every step is a step of the brief's ramp and the guide's own title
      stays the largest thing under the page title.

   2. The bed geometry. c-editorial draws the bed as a bordered white box,
      which is right beside a dek and wrong above a title. Here the bed is a
      flush plane so the first tile's left edge sits on the text edge.

   3. The ruled plate (§ 5): ONE construction for the three blocks under the
      guide — the eight topic shelves, the three help routes and the two
      drafts. It is the home page's ruled category index; what separates a
      route from a draft is the medallion, the chevron and the states, never
      the material.

   4. The closing panel is NOT this page's (§ 9): it is .p-close, p-home.css's,
      the panel home and /offers/ end on. theme/inc/setup.php enqueues that
      sheet ahead of this one exactly as it does for /offers/. This file only
      says where the panel sits in this page's column and how its ask and its
      three routes divide the frame.

   No raw values, no !important. */

/* ==================================================================
   1. PAGE FRAME
   ================================================================== */

.p-blog { padding-block-end: var(--section-pad-bottom); }

/* THE HEAD IS THE SITE'S MASTHEAD (2026-09-09). It was not: the index title
   was set at the 4xl step (32 at 390, 44 at 1440) while /contact/, /help/ and
   every article carry the display step (42 and 85) in a full-bleed band, so
   the top of this page read one register quieter than the rest of the site.
   The band is here now, drawn from the same tokens p-post.css draws
   .p-masthead from — full-bleed, opening at space-6 / space-8, closing on a
   viewport-wide hairline — because p-post.css is not enqueued on the index
   and a page-owned copy of four declarations is cheaper than a second sheet.

   The band is also USED. On /contact/ the right half of the masthead is
   empty; here the search takes it, bottom-aligned with the lead, so the head
   fills the width its own rule runs and the field stops looking like a
   half-measure stranded above a 992px page. Below 64rem there is one column
   and the reading order is unchanged: crumb, title, lead, field, chips. */
.p-blog__head {
  padding-block: var(--space-6) var(--space-8);
  border-block-end: 1px solid var(--color-border-subtle);
}

@media (min-width: 48rem) {
  .p-blog__head { padding-block: var(--space-8) var(--space-10); }
}

.p-blog__head-in {
  display: grid;
  gap: var(--space-6);
}

/* 64rem is where the container stops growing the text column and starts
   growing the gutter beside it — the width at which a one-column head leaves
   half the band blank. */
@media (min-width: 64rem) {
  .p-blog__head-in {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: end;
    column-gap: var(--space-10);
  }
}

.p-blog__head-main {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  max-inline-size: var(--container-text);
}

.p-blog__crumbs { margin-block-end: var(--space-2); }

/* The display step, the same one the article and every page title takes. */
.p-blog__title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-line);
  letter-spacing: var(--text-display-track);
  font-weight: var(--weight-semibold);
}

/* THE LEAD IS ON THE RAMP (2026-09-09, round nine). It was set at
   --text-md, 18px — a token that is not a step of the six-step ramp the
   brief declares (label 12, sm 14, base 16, lg 20, 3xl, display), and the
   only off-ramp size the page rendered. It takes the lg step: still the
   largest text under the page title, still one clear step over the 16px
   body, and now a size the rest of the shop also sets. */
.p-blog__lead {
  max-width: var(--measure-lead);
  color: var(--color-ink-secondary);
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  letter-spacing: var(--text-lg-track);
  text-wrap: pretty;
}

/* The field. 2026-09-09: it is the same control as the home hero's field, one
   size down — the magnifier is the SUBMIT and not a sticker, the edge turns
   accent on focus, and with ?q= set a ghost x inside the field returns to
   /blog. c-controls owns all three; this file only says where it sits.
   Stacked under the lead on a phone at the lead's measure; in the band's
   second column, on the lead's last line, from 64rem. */
.p-blog__search {
  inline-size: 100%;
  max-inline-size: var(--measure-lead);
}

@media (min-width: 64rem) {
  .p-blog__head-main { grid-column: 1; }
  .p-blog__search { grid-column: 2; max-inline-size: none; }
  .p-blog__topics-nav { grid-column: 1 / -1; }
}

/* ONE SECTION STEP, ALL FOUR SECTIONS (2026-09-09, round nine). Three of
   the four headings under the guide took this step and the closing panel's
   title took a fourth token nothing else on the page used (--text-xl, 22
   at 390 and 24 at 1440), so a page with one heading level rendered two.
   The step is the card title's size at one weight up, which keeps the
   guide's own title the largest thing under the page title.
   .p-blog__close-title (§ 9) takes the same three declarations. */
.p-blog__h2,
.p-blog__soon-title {
  margin-block-end: var(--space-5);
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  letter-spacing: var(--text-lg-track);
  font-weight: var(--weight-semibold);
}

/* The drafts heading opens on its own line rather than straight onto the
   plate, so its step down is the smaller one. */
.p-blog__soon-title { margin-block-end: var(--space-2); }

/* ==================================================================
   2. TOPIC CHIPS
   Real archive links, not a filter widget. Under the search field, on
   one hairline, so the head closes on the page's own furniture.

   2026-09-09: blog.php renders the row only when a chip NARROWS. One
   category holding every published guide set "Guides 1" beside "All guides
   1" under an H1 that already said Guides — two chips, one set — and ruled
   a 990px hairline at 1440 under a 445px field to hold them. The row and
   its rule return with the second topic.
   ================================================================== */

.p-blog__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

a.chip {
  text-decoration: none;
  white-space: nowrap;
}

a.chip[aria-current="page"] {
  border-color: var(--color-accent);
  background-color: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.p-blog__cat-count {
  color: var(--color-ink-tertiary);
  font-weight: var(--weight-regular);
  font-variant-numeric: tabular-nums;
}

a.chip[aria-current="page"] .p-blog__cat-count { color: currentColor; }

/* ==================================================================
   3. THE FEATURED GUIDE, AND THE GRID WHEN THERE IS ONE
   ================================================================== */

/* THE ONE GUIDE IS AN OBJECT (2026-09-09, round eight). It was type on the
   page ground: an 88x66 mark chip, an eyebrow, a title, a dek and a hairline
   under the lot — the page's only published article rendered as a paragraph
   with a rule, next to a closing panel that WAS a card and eight topic rows
   that were at least ruled into one plate. It is now the one card on the
   page above the panel: a white plane on the page ground, edged, radiused at
   the free-standing card's 16, and lifted by the smallest shadow in the set.
   Nothing else on this page carries a shadow, so the shadow alone ranks it.
   The cover is the top of that plane and the body is the bottom, so the card
   costs the same 24px of head clearance and about the same height it did as
   loose type. */
.p-blog__featured {
  margin-block-start: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-hover) var(--ease-out),
              transform var(--duration-press) var(--ease-out);
}

.p-blog__featured.e-post--featured {
  gap: 0;
  padding-block: 0;
  border-block-end: 0;
}

.p-blog__featured .e-post__body { padding: var(--space-6); }

/* The card answers the pointer and the keyboard with elevation only: the
   edge stays put, because a card that also darkens its border under the
   cursor reads as a control. c-editorial darkens the media bed on hover —
   here that bed is the cover and its rule belongs to the card, not to a
   state. */
.p-blog__featured:focus-within { box-shadow: var(--shadow-md); }

.p-blog__featured:focus-within .e-post__media { border-color: var(--color-border-subtle); }

@media (hover: hover) and (pointer: fine) {
  .p-blog__featured:hover { box-shadow: var(--shadow-md); }
  .p-blog__featured:hover .e-post__media { border-color: var(--color-border-subtle); }
}

/* THE PRESS (2026-09-09, round nine). Every other route in the tail answers
   a finger by settling under it; the page's one published guide — the
   biggest target on the screen and the only one a phone reader is likely to
   press — answered with nothing between touchdown and the next page. It
   takes the card press the catalogue's cards take: the lift goes back to
   rest and the plane scales the shared press step. :has() carries the state
   from the stretched link to the card that owns it. */
.p-blog__featured:active,
.p-blog__featured:has(.e-post__title a:active) {
  box-shadow: var(--shadow-sm);
  transform: scale(var(--press-scale));
}

@media (prefers-reduced-motion: reduce) {
  .p-blog__featured { transition: none; }
  .p-blog__featured:active,
  .p-blog__featured:has(.e-post__title a:active) { transform: none; }
}

.p-blog__featured .e-post__title {
  font-size: var(--text-2xl-size);
  line-height: var(--text-2xl-line);
  letter-spacing: var(--text-2xl-track);
}

/* The byline and the link are the two ends of ONE line, and now that line has
   an edge to end on: the card's. It used to be capped at the dek's 544 so the
   link would not float 450px out into the container; inside the card the body
   column is the measure, so the foot runs the card's width and the link lands
   on its inside edge. One hairline over it separates who wrote it from what
   it says, the way the cover's hairline separates the picture from the words. */
.p-blog__featured .e-post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--color-border-subtle);
}

/* ONE ROUTE TO ONE DESTINATION (2026-09-09, round nine). The card carried
   two links to the same URL — the title, stretched over the whole card by
   c-editorial, and this cue beside the byline — so a keyboard and a screen
   reader met the same guide twice, once as its headline and once as "Read
   the guide: <the same headline>". The stretched title is the route,
   because it is the words the reader is choosing between; the cue is a
   <span> now: the same words in the same place, answering the pointer and
   the keyboard through the card that owns them. */
.p-blog__read {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-block-size: var(--control-height);
  color: var(--color-accent);
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.p-blog__read-i {
  inline-size: var(--space-4);
  block-size: var(--space-4);
  transition: transform var(--duration-hover) var(--ease-out);
}

.p-blog__featured:focus-within .p-blog__read { color: var(--color-accent-hover); }

.p-blog__featured:focus-within .p-blog__read-i { transform: translateX(2px); }

@media (hover: hover) and (pointer: fine) {
  .p-blog__featured:hover .p-blog__read { color: var(--color-accent-hover); }
  .p-blog__featured:hover .p-blog__read-i { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .p-blog__read-i { transition: none; }
}

.p-blog__latest,
/* The answer sits close to the field that asked for it: the head already
   closes on its own 32, so a further 48 read as a dropped section. */
.p-blog__results { padding-block-start: var(--space-8); }

/* The bed is a plane, not a box: c-editorial's border, fill, inline
   padding and 16rem cap are rules about a bed sitting BESIDE a paragraph.
   Here the rack is measured by its own marks. */
.p-blog .e-post__media {
  max-inline-size: none;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  background-color: transparent;
  align-content: start;
  justify-items: start;
}

/* THE COVER. There is no photograph and there will not be one; what the
   article is about is a plan, and the plan has a mark. The mark is the
   cover: it takes the card's full width on a sunken plane, at 72px with its
   name under it rather than 56px with its name beside it, so the first thing
   the eye lands on is a picture and not a label. The plane's own bottom
   hairline is the card's one internal rule. */
.p-blog__featured .e-post__media {
  gap: var(--space-3);
  align-content: center;
  justify-items: center;
  padding: var(--space-8) var(--space-6);
  border-block-end: 1px solid var(--color-border-subtle);
  border-start-start-radius: var(--radius-xl);
  border-start-end-radius: var(--radius-xl);
  background-color: var(--color-surface-sunken);
}

/* THE 11rem RESERVE IS A GRID RULE, NOT A CARD RULE (round-one blog critic).
   The floor exists so that every rack in a ROW of cards resolves to one
   height and the eyebrows stay level. On the featured card there is no row:
   the rack measured 122px inside a 176px bed at 390, so 54px of nothing sat
   between the last mark and the GUIDES eyebrow — the one hole on the phone
   screen the client opens first. It runs where it was earned. */
.p-blog__grid .e-post__media {
  min-block-size: 11rem;
  margin-block-end: var(--space-6);
}

.p-blog__grid .e-post__excerpt,
.p-blog .e-post__excerpt {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}

/* 14px floor at 390: the card eyebrow rides the shared 12px label token. */
.p-blog .e-post__eyebrow {
  font-size: var(--text-sm-size);
  line-height: var(--text-xs-line);
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .p-blog__featured.e-post--featured { grid-template-columns: minmax(0, 1fr); }
}

/* AT 1440 THE CARD IS A COVER BESIDE A SUMMARY (2026-09-09, round eight).
   Stacked, the card was 992 wide with its dek stopping at 544 and 45% of the
   frame empty to the right of it — the void the critic found. Turned on its
   side the cover takes a 20rem column of its own, full height, and the words
   take the rest: the mark grows to 96px because it now has a panel to fill,
   the body column measures 592 against a 544 dek, and the widest object above
   the closing panel is also the fullest one. The two columns meet on one
   vertical hairline, which is the same rule the stacked form draws across. */
@media (min-width: 64rem) {
  .p-blog__featured.e-post--featured {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .p-blog__featured .e-post__media {
    padding: var(--space-10);
    border-block-end: 0;
    border-inline-end: 1px solid var(--color-border-subtle);
    border-start-end-radius: 0;
    border-end-start-radius: var(--radius-xl);
  }

  .p-blog__featured .e-post__body { padding: var(--space-10); }

  .p-blog__featured .p-blog__marks { --tile-size: 7rem; }
}

/* ==================================================================
   4. MARK RACK
   ================================================================== */

/* One mark, named, on one line. The card carries the plan the article is
   about and nothing else, so its promise is the article's: the contrast
   marks stay on the article's cover, where a caption says what they are
   for. A rack of three under a single guide read as three subjects. */
.p-blog .p-blog__marks {
  --tile-size: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  min-width: 0;
}

.p-blog .p-blog__mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.p-blog .e-post__media-name {
  text-align: start;
  font-weight: var(--weight-medium);
  color: var(--color-ink-secondary);
}

/* ON THE COVER THE MARK IS THE PICTURE AND THE NAME IS ITS CAPTION, so they
   stack and centre instead of sitting side by side. Beside each other at 56px
   the pair measured 221 of the card's 358 and hung off the left edge like a
   tag; stacked at 72px on the cover plane it is the object the eye lands on
   first, and the caption still says which plan the guide is about. */
.p-blog__featured .p-blog__marks {
  --tile-size: 4.5rem;
  justify-content: center;
}

.p-blog__featured .p-blog__mark {
  flex-direction: column;
  gap: var(--space-3);
}

.p-blog__featured .e-post__media-name { text-align: center; }

/* ==================================================================
   5. THE RULED PLATE — ONE SYSTEM FOR THE THREE BLOCKS UNDER THE GUIDE

   2026-09-09, round nine. "Browse by topic", "Before you buy" and "In
   preparation" are the same layout family — a stack of one-line label
   rows — and they were wearing three different skins: a hairline tile
   at radius 8, the offers accordion's bordered white card at radius
   12, and a bare hairline row at radius 0. Three materials for one
   family is what turns an editorial index into an account or settings
   list, and the page critic read the tail exactly that way.

   They share one construction now, and it is not a fourth invention:
   it is the home page's ruled category index, judged this week, which
   this page had already taken for the topics. A plate with one top
   edge, rows parted by their own hairline, no card, no shadow, no fill
   at rest.

   What tells the three jobs apart is the AFFORDANCE, never the skin:

   - a ROUTE carries a medallion, takes the soft accent across the whole
     row under the pointer, inverts that medallion and presses;
   - the three help routes LEAVE THE PAGE, so they also carry the
     chevron every leaving row on this site carries, and it travels;
   - a DRAFT is not a route, so it carries no medallion, no chevron and
     no state at all — a name on the same rule, which is the client's
     "no cards, no links, no dates" said in one material with its
     neighbours instead of in a third.
   ================================================================== */

.p-blog__plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Ruled, not spaced: no row gap, so a plate is one object with one top
     edge and its rows are lines in it. */
  row-gap: 0;
  column-gap: var(--space-6);
  align-items: stretch;
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--color-border);
  list-style: none;
}

/* Two tracks only where the label is short enough that one track would be
   a 90% empty rule. The eight shelves carry two words; the help routes and
   the drafts carry sentences and stay one up until the page is wide enough
   to break them cleanly. */
.p-blog__plate--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.p-blog__row,
.p-blog__draft {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  block-size: 100%;
  min-block-size: 3.5rem;
  padding: var(--space-3) var(--space-2);
  border-block-end: 1px solid var(--color-border);
  color: var(--color-ink);
}

.p-blog__row {
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--duration-hover) var(--ease-out),
              transform var(--duration-press) var(--ease-out);
}

.p-blog__row .c-medal {
  --medal-size: 2.25rem;
  --medal-glyph: 1.125rem;
  flex: none;
  transition: background-color var(--duration-hover) var(--ease-out),
              color var(--duration-hover) var(--ease-out);
}

.p-blog__row-name,
.p-blog__draft {
  min-inline-size: 0;
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  letter-spacing: var(--text-base-track);
  font-weight: var(--weight-semibold);
  text-wrap: pretty;
}

.p-blog__row-name {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

/* Two lines reserved on every name in a two-track plate whether or not it
   wraps ("Security and privacy" does, "Career" does not), so the four rows
   of a track are one height and the rules keep step; a one-line name sits
   centred in the reserve. */
.p-blog__plate--two .p-blog__row-name {
  min-block-size: calc(var(--text-sm-line) * 2);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  letter-spacing: var(--text-sm-track);
}

/* The cue that the row leaves the page. It travels 2px towards where it
   points, like every other chevron on this site that points AT something —
   the crumbs' arrow, the card action, the featured guide's read cue. */
.p-blog__row-go {
  flex: none;
  margin-inline-start: auto;
  inline-size: var(--space-4);
  block-size: var(--space-4);
  color: var(--color-ink-tertiary);
  transition: transform var(--duration-hover) var(--ease-out),
              color var(--duration-hover) var(--ease-out);
}

.p-blog__row:active {
  background-color: var(--color-surface-sunken);
  border-block-end-color: transparent;
  transform: scale(var(--press-scale));
}

.p-blog__row:focus-visible .p-blog__row-go,
.p-blog__row:active .p-blog__row-go {
  transform: translateX(2px);
  color: var(--color-accent);
}

@media (hover: hover) and (pointer: fine) {
  /* The filled row IS the separator while it is hovered, so its own rule
     goes out from under the fill rather than cutting the plate in half. */
  .p-blog__row:hover {
    background-color: var(--color-accent-soft);
    border-block-end-color: transparent;
  }

  .p-blog__row:hover .c-medal {
    background-color: var(--color-accent);
    color: var(--color-ink-on-accent);
  }

  .p-blog__row:hover .p-blog__row-go {
    transform: translateX(2px);
    color: var(--color-accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-blog__row,
  .p-blog__row .c-medal,
  .p-blog__row-go { transition: none; }
  .p-blog__row:active { transform: none; }
}

@media (min-width: 48rem) {
  .p-blog__plate--two { column-gap: var(--space-10); }

  .p-blog__row,
  .p-blog__draft { padding: var(--space-4) var(--space-3); }

  .p-blog__row .c-medal {
    --medal-size: 2.5rem;
    --medal-glyph: 1.25rem;
  }

  .p-blog__plate--two .p-blog__row-name {
    min-block-size: 0;
    font-size: var(--text-base-size);
    line-height: var(--text-base-line);
    letter-spacing: var(--text-base-track);
  }
}

/* ==================================================================
   6. BROWSE BY TOPIC — eight shelves, two tracks
   ================================================================== */

/* The page's one short break. Above it the guide; below it the furniture
   for a reader the guide did not answer. */
.p-blog__topics { padding-block-start: var(--space-16); }

/* ==================================================================
   7. BEFORE YOU BUY — three routes off the page
   ================================================================== */

.p-blog__help { padding-block-start: var(--space-12); }

/* ==================================================================
   8. IN PREPARATION
   A status, not a promotion: one heading, one line, the titles on the
   same plate the routes above run on, with none of a route's parts.
   ================================================================== */

.p-blog__soon { padding-block-start: var(--space-12); }

.p-blog__soon-lead {
  margin: 0 0 var(--space-4);
  max-inline-size: var(--measure-lead);
  color: var(--color-ink-secondary);
}

/* THE TITLES ARE TITLES, THE LINE ABOUT THEM IS NOT. The rows take the
   page ink at the weight the routes above use; the lead keeps the grey.
   No medallion, no chevron, no state: nothing here is a link, and the
   absence of every part a route carries is what says so. */
.p-blog__draft {
  font-weight: var(--weight-medium);
}

/* THE LIST FILLS ITS ROW AT 1440. Two draft titles stacked in a 544 column
   under a 992 page left 450px of nothing beside them. From 64rem the drafts
   take the topic plate's own two tracks. Still a hairline and a name. */
@media (min-width: 64rem) {
  .p-blog__soon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-10);
  }
}

/* ==================================================================
   9. THE CLOSING PANEL IS THE SHOP'S CLOSING PANEL

   2026-09-09, round nine. Home and /offers/ both end on .p-close — the
   dark textured panel at the 2xl radius, one filled control on it. This
   page ended on a bespoke .p-blog__cta: a white bordered box at radius
   12 wearing the head band's skin, which made the fourth object in the
   tail the fourth flavour of the same white row. One component now, on
   all three routes, so the shop ends the same way wherever you leave it.
   p-home.css declares it and theme/inc/setup.php enqueues that sheet
   ahead of this one, exactly as /offers/ and /how-it-works/ already do.

   What this page changes about it, and only this:

   1. It sits INSIDE the page's narrow column, so the panel's edges are
      the column's edges rather than the 1400 container's. The component
      insets itself from a full-bleed section; here the container has
      already done that, so the inset is zeroed rather than paid twice.
   2. The actions are a sibling of the ask, not a child of it, because
      this panel carries no comments: the ask takes the left of the frame
      and the three routes stack down its right, so the widest object on
      the page is also the fullest one.
   3. The client's three routes and the ranking of round seven are
      untouched: the catalogue in the panel's accent, WhatsApp as the
      filled message control, Telegram as the quiet route under it.
   ================================================================== */

/* The page's last gap is the biggest gap on the page — one step over the
   step the three furniture blocks share. --p-gap is p-home.css's page
   rhythm and is not declared on this main, so the step is stated here. */
.p-blog__close {
  max-inline-size: none;
  padding-block-start: var(--space-16);
}

.p-blog__close .p-close__panel { margin-inline: 0; }

/* The ask's heading is a section heading of this page, so it takes the
   page's one section step (§ 1) rather than the panel's own 3xl: four
   headings, one size, and the guide's own title stays the largest thing
   under the page title. */
.p-blog__close-title {
  margin: 0;
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  letter-spacing: var(--text-lg-track);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}

/* The panel's own --space-8 seam parts the ask from the actions; the
   component's internal margin would pay that distance a second time. */
.p-blog__close .p-close__actions {
  display: flex; /* the home rule is a grid row from 30rem (2026-09-14); this stack stays a column */
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-block-start: 0;
}

/* (2026-09-14: the Telegram route is a filled control like the two above it
   and takes the column's width with them; its align-self: start went.) */

@media (min-width: 48rem) {
  /* A stack of full-width controls across an 800px panel reads as a form.
     The column is the width the filled control needs and no more. */
  .p-blog__close .p-close__actions { max-inline-size: 17rem; }
}

@media (min-width: 64rem) {
  .p-blog__close { padding-block-start: var(--section-pad-cta); }

  .p-blog__close .p-close__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
    grid-template-areas: "ask actions";
    align-items: center;
    column-gap: var(--space-16);
  }

  .p-blog__close .p-close__ask { grid-area: ask; }
  .p-blog__close .p-close__actions { grid-area: actions; max-inline-size: none; }
}

/* ==================================================================
   10. THE PAGE'S STEP
   Three blocks of furniture under one guide: topics, help, drafts.
   At 390 the first opens on 64 and the other two on 48 — the density
   pass's numbers, unchanged, on the surface the client judges first.
   From 64rem the page runs 992 wide and 64 between two full-width
   blocks is a crease, not a step: the three take the site's own
   section step (115 at 1440, the brief's 96 floor with room over it)
   and the closing panel takes the step above that, so the last gap on
   the page is the one gap bigger than every gap above it. The guide's
   own answer keeps its shorter 32 (§ 3): it belongs to the field that
   asked for it.
   ================================================================== */

@media (min-width: 64rem) {
  .p-blog__topics,
  .p-blog__help,
  .p-blog__soon { padding-block-start: var(--section-pad-top); }
}

/* Editorial covers fill guide-card frames; existing mark-only cards keep their layout. */
.p-blog .e-post__media.e-post__media--image {
  display: block;
  padding: 0;
  overflow: hidden;
  background-color: #f2eff9;
}
.p-blog .e-post__media--image img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Compact phone-only guide cards. Desktop and tablet layouts stay as designed. */
@media (max-width: 47.9375rem) {
  .p-blog__grid {
    row-gap: 0.75rem;
  }
  .p-blog .e-post,
  .p-blog__featured.e-post--featured {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: start;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    box-shadow: none;
  }
  .p-blog .e-post .e-post__media,
  .p-blog .e-post .e-post__media.e-post__media--image {
    inline-size: 6rem;
    block-size: 4.5rem;
    min-block-size: 0;
    max-inline-size: none;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .p-blog .e-post .e-post__media--image img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
  }
  .p-blog .e-post__body {
    min-inline-size: 0;
    padding: 0;
  }
  .p-blog .e-post__eyebrow {
    display: none;
  }
  .p-blog .e-post__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-wrap: pretty;
  }
  .p-blog .e-post__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-block-start: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
  }
  .p-blog .e-post .e-post__foot {
    display: block;
    margin-block-start: 0.5rem;
    padding-block-start: 0;
    border-block-start: 0;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .p-blog .e-post .e-author__meta {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .p-blog__featured .e-author__name,
  .p-blog__featured .p-blog__read {
    display: none;
  }
}

/* Small phone cards show the image, title and date; the featured guide keeps its summary. */
@media (max-width: 47.9375rem) {
  .p-blog .e-post:not(.e-post--featured) {
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    align-content: start;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__media {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__title {
    grid-column: 2;
    grid-row: 1;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__excerpt {
    display: none;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__foot {
    grid-column: 2;
    grid-row: 2;
    margin-block-start: 0;
  }
}

/* Desktop/tablet guides use the compact card structure established on phones. */
@media (min-width: 48rem) {
  .p-blog__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
  .p-blog .e-post:not(.e-post--featured) {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: start;
    column-gap: var(--space-5);
    row-gap: var(--space-2);
    min-block-size: 10rem;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
  }
  .p-blog__grid .e-post::before {
    display: none;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__media {
    grid-column: 1;
    grid-row: 1 / span 2;
    inline-size: 7rem;
    block-size: 5.25rem;
    min-block-size: 0;
    margin: 0;
    border-radius: var(--radius-lg);
    align-self: center;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 1.125rem;
    line-height: 1.4;
    text-wrap: pretty;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__eyebrow,
  .p-blog .e-post:not(.e-post--featured) > .e-post__excerpt {
    display: none;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__foot {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    font-size: var(--text-sm-size);
    line-height: var(--text-sm-line);
  }
  .p-blog .e-post:not(.e-post--featured) .e-post__media--image img {
    object-fit: contain;
  }
  .p-blog .p-blog__featured.e-post--featured {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    box-shadow: none;
  }
  .p-blog .p-blog__featured .e-post__media {
    inline-size: 11rem;
    block-size: 8.25rem;
    min-block-size: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
  }
  .p-blog .p-blog__featured .e-post__media--image img {
    object-fit: contain;
  }
  .p-blog .p-blog__featured .e-post__body {
    padding: 0;
  }
  .p-blog .p-blog__featured .e-post__eyebrow {
    display: none;
  }
  .p-blog .p-blog__featured .e-post__title {
    font-size: var(--text-2xl-size);
    line-height: var(--text-2xl-line);
    text-wrap: pretty;
  }
  .p-blog .p-blog__featured .e-post__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-block-start: var(--space-2);
  }
  .p-blog .p-blog__featured .e-post__foot {
    margin-block-start: var(--space-3);
    padding: 0;
    border: 0;
  }
  .p-blog .p-blog__featured .e-author__name {
    display: none;
  }
}

/* Wide screens: two balanced cards per row, with quiet keyboard and pointer feedback. */
@media (min-width: 64rem) {
  .p-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-6);
  }
  .p-blog__grid .e-post {
    transition: border-color var(--duration-hover) var(--ease-out),
                box-shadow var(--duration-hover) var(--ease-out);
  }
  .p-blog__grid .e-post:focus-within {
    border-color: var(--color-accent-border);
    box-shadow: var(--shadow-sm);
  }
}
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  .p-blog__grid .e-post:hover {
    border-color: var(--color-accent-border);
    box-shadow: var(--shadow-sm);
  }
}
@media (min-width: 64rem) and (prefers-reduced-motion: reduce) {
  .p-blog__grid .e-post { transition: none; }
}

/* Phone refinement: one row per guide, with deliberate touch and keyboard feedback. */
@media (max-width: 47.9375rem) {
  .p-blog__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-3);
  }
  .p-blog .e-post:not(.e-post--featured) {
    grid-template-columns: clamp(5rem, 24vw, 6rem) minmax(0, 1fr);
    min-block-size: 7.5rem;
    align-content: center;
  }
  .p-blog .e-post:not(.e-post--featured) > .e-post__media {
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 4 / 3;
    align-self: center;
  }
  .p-blog .e-post {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--duration-press) var(--ease-out),
                border-color var(--duration-press) var(--ease-out),
                transform var(--duration-press) var(--ease-out);
  }
  .p-blog .e-post:active {
    background-color: var(--color-accent-soft);
    border-color: var(--color-accent);
    transform: scale(0.992);
  }
  .p-blog .e-post:has(.e-post__title a:focus-visible) {
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }
  .p-blog .e-post__title a:focus-visible {
    text-decoration-color: currentColor;
  }
}
@media (max-width: 47.9375rem) and (prefers-reduced-motion: reduce) {
  .p-blog .e-post { transition: none; }
  .p-blog .e-post:active { transform: none; }
}

/* Guide card artwork: captions are redundant beside the full guide title. */
.p-blog .e-post:not(.e-post--featured) .e-post__media-name { display: none; }

/* Higgsfield vs Runway: equal, non-overlapping halves from each live catalogue tile.
   The catalogue artwork's centered safe area keeps each brand mark fully visible. */
.p-blog .e-post__media.p-blog__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}
.p-blog .p-blog__comparison-half {
  position: relative;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
}
.p-blog .p-blog__comparison-half:has([data-plan="higgsfield-pro"]) {
  background: oklch(0.8846 0.0506 112.32);
}
.p-blog .p-blog__comparison-half:has([data-plan="runway-pro"]) {
  background: oklch(0.9672 0 0);
}
.p-blog .p-blog__comparison-half .c-tile {
  --tile-size: 100%;
  --tile-ratio: 4 / 3;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: 100%;
  transform: translate(-50%, -50%);
  border-radius: 0;
}
.p-blog .p-blog__comparison-half .c-tile__art {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
