/* ==========================================================================
   THE DESIGNERS HUB — Blog (listing)
   Source of truth: Figma frame "blog page pc" #2129:2686 (1440 x 2992).
   Every coordinate in the desktop block is the literal Figma value.

   Line steps (Inter auto line-height is 1.2102em):
     h1          Inter 700 36, 1.06em -> 38px
     section     Inter 600 32 UPPER   -> 39px
     card title  Inter 700 22 UPPER   -> 27px
     lead/desc   Inter 300/400 18     -> 22px
     press desc  Inter 300 16         -> 19px
     read link   Inter 500 16 lower   -> 19px
     filter tab  Open Sans 400 13     -> 16px

   Stroke alignment read off the frame render: all INSIDE — the hero plate
   (7px), the filter bar (1px), the CTA frame (1px) and the two press images
   (2px on three sides, "2px 0px 2px 2px", baked into the node export).
   ========================================================================== */

.page-blog main { position: relative; }

.bl { --desc: #666666; }   /* fill_6763ac18 — latest-article descriptions */

/* --------------------------------------------------------------------------
   Flow fallback (below 1200px) — unverified reflow, desktop is the port.
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .bl section { position: relative; padding: var(--space-24) var(--page-pad-mob); }
  .bl img { max-width: 100%; height: auto; }
  .bl-hero__bg, .bl-band, .bl-strip { display: none; }
  .bl-filters { display: flex; flex-wrap: wrap; gap: var(--space-16); }
  .bl-cta__frame { display: none; }
  .bl-cta__plate { background: var(--color-surface-dark); color: var(--white); padding: var(--space-24); text-align: center; }
}

/* --- shared type -------------------------------------------------------- */
.bl h1, .bl h2, .bl h3 { font-family: var(--font-heading); text-transform: uppercase; }
.bl-hero__title { font-weight: var(--fw-bold); }
.bl-section__title { font-weight: var(--fw-semi); }
.bl-card__title { margin: 0; font-weight: var(--fw-bold); }

/* "read article →" — Figma sets textCase LOWER on an uppercase string */
.bl-read {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: var(--fw-med);
  font-size: var(--fs-body);
  line-height: 19px;
  text-transform: lowercase;
  white-space: nowrap;
}

.bl-read:hover, .bl-read:focus-visible { color: var(--gold-deep); }

.bl-filter {
  /* Figma's frame reserves 582px of right padding, which leaves less room than
     the seven items need. Figma overflows that padding; a flex row would
     instead shrink every item (the "All" pill collapsed from 50 to 15), so
     shrinking is disabled and the row overflows the padding as it does in the
     file. It still ends ~950, well inside the 1361 bar. */
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-button);
  font-weight: var(--fw-reg);
  font-size: 13px;
  line-height: 16px;
  color: var(--grey-800);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.bl-filter:hover { color: var(--gold); }

.bl-filter[aria-pressed="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 18px 0 17px;
  background: var(--gold);
  color: var(--white);
}

/* the one state Figma pins: "All" as a fixed 50x29 pill */
.bl-filter[data-filter="all"][aria-pressed="true"] { width: 50px; padding: 0; }

/* ==========================================================================
   DESKTOP — the 1440 Figma canvas, literal coordinates
   ========================================================================== */
@media (min-width: 1200px) {

  .page-blog main {
    width: var(--frame-desktop);
    height: 2992px;
    margin-inline: auto;
  }

  .bl section { position: absolute; left: 0; width: var(--frame-desktop); padding: 0; }
  /* `> picture > img` is required: the three breakpoint image swaps are
     wrapped, so `> *` alone leaves all six images static at 0,0. */
  .bl section > *,
  .bl section > picture > img { position: absolute; }
  .page-blog main img { max-width: none; object-fit: fill; }

  .bl-hero__title, .bl-section__title, .bl-cta__title { white-space: nowrap; }

  /* ======================= HERO — image y:23 ======================= */
  .bl-hero { top: 0; height: 700px; }

  .bl-hero__bg { left: -1px; top: 23px; width: 1483px; height: 629px; }

  /* #2129:2699 — 770x224, 7px ink inside */
  .bl-hero__plate {
    left: 80px; top: 200px;
    width: 770px; height: 224px;
    background: var(--white);
    border: 7px solid var(--ink);
  }

  .bl-hero__title {
    left: 145px; top: 264px; width: 668px;
    color: var(--color-text);
    font-size: var(--fs-h1);
    line-height: 38px;
  }

  .bl-hero__lead {
    left: 145px; top: 310px; width: 540px;
    color: var(--color-text);
    font-size: var(--fs-lead);
    line-height: 22px;
  }

  /* #2129:2703 — 1279x68 white bar, 1px ink, padding 20/582/19/40 */
  .bl-filters {
    left: 82px; top: 615px;
    width: 1279px; height: 68px;
    padding: 20px 582px 19px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--white);
    border: var(--stroke-1) solid var(--ink);
  }

  /* ======================= PRESS & MEDIA ======================= */
  .bl-press { top: 0; height: 1350px; }

  .bl-press .bl-section__title {
    left: 79px; top: 731px; width: 244px;
    color: var(--color-text);
    font-size: var(--fs-h2);
    line-height: 39px;
  }

  /* #2129:2689 — the dark band the two covers sit across */
  .bl-band { left: -10px; top: 880px; width: 1457px; height: 257px; background: var(--color-surface-dark); }

  .bl-press__img { top: 833px; width: 549px; height: 304px; }
  .bl-press__img--1 { left: 82px; }
  .bl-press__img--2 { left: 790px; }

  .bl-press__title { top: 1153px; font-size: 22px; line-height: 27px; }
  .bl-press__title--1 { left: 81px;  width: 526px; color: var(--color-text); }
  .bl-press__title--2 { left: 790px; width: 501px; color: var(--black); }

  .bl-press__desc {
    color: var(--color-text);
    font-weight: var(--fw-light);
    font-size: var(--fs-body);
    line-height: 19px;
  }

  .bl-press__desc--1 { left: 81px;  top: 1215px; width: 541px; }
  .bl-press__desc--2 { left: 790px; top: 1214px; width: 505px; }

  /* the ink strip each "read article" link sits on */
  .bl-strip { top: 1270px; width: 549px; height: 34px; background: var(--color-surface-dark); }
  .bl-strip--1 { left: 82px; }
  .bl-strip--2 { left: 790px; }

  .bl-press__read { top: 1277px; width: 107px; }
  .bl-press__read--1 { left: 303px; }
  .bl-press__read--2 { left: 1011px; }

  /* ======================= LATEST ARTICLES ======================= */
  .bl-latest { top: 0; height: 2340px; }

  .bl-latest .bl-section__title {
    left: 78px; top: 1397px; width: 286px;
    color: var(--color-text);
    font-size: var(--fs-h2);
    line-height: 39px;
  }

  .bl-latest__img { left: 78px; width: 410px; height: 215px; }
  .bl-latest__img--1 { top: 1484px; }
  .bl-latest__img--2 { top: 1794px; }
  .bl-latest__img--3 { top: 2104px; }

  .bl-latest__title { left: 538px; color: var(--black); font-size: 22px; line-height: 27px; }
  .bl-latest__title--1 { top: 1478px; width: 569px; }
  .bl-latest__title--2 { top: 1788px; width: 572px; }
  .bl-latest__title--3 { top: 2098px; width: 556px; }

  .bl-latest__desc {
    left: 538px;
    color: var(--desc);
    font-size: var(--fs-lead);
    line-height: 22px;
  }

  .bl-latest__desc--1 { top: 1513px; width: 612px; }
  .bl-latest__desc--2 { top: 1850px; width: 524px; }
  .bl-latest__desc--3 { top: 2160px; width: 559px; }

  .bl-latest__strip { left: 538px; width: 568px; height: 34px; background: var(--color-surface-dark); }
  .bl-latest__strip--1 { top: 1665px; }
  .bl-latest__strip--2 { top: 1975px; }
  .bl-latest__strip--3 { top: 2285px; }

  .bl-latest__read { left: 769px; width: 107px; }
  .bl-latest__read--1 { top: 1672px; }
  .bl-latest__read--2 { top: 1982px; }
  .bl-latest__read--3 { top: 2292px; }

  /* ======================= CTA — frame y:2380 ======================= */
  .bl-cta { top: 0; height: 2800px; }

  .bl-cta__frame {
    left: 20px; top: 2380px;
    width: 1400px; height: 264px;
    background: var(--bg);
    border: var(--stroke-1) solid var(--ink);
  }

  /* 304 tall from y:2420, so it runs past the frame above — as in Figma */
  .bl-cta__plate { left: 80px; top: 2420px; width: 1280px; height: 304px; background: var(--color-surface-dark); }

  .bl-cta__title {
    left: 191px; top: 2468px; width: 1059px;
    color: var(--bg);
    font-family: var(--font-heading);
    font-weight: var(--fw-med);
    font-size: var(--fs-h2);
    line-height: 39px;
    text-align: center;
  }

  .bl-cta__text {
    left: 425px; top: 2523px; width: 590px;
    color: var(--white);
    font-weight: var(--fw-light);
    font-size: var(--fs-lead);
    line-height: 22px;
    text-align: center;
  }

  .bl-cta__btn {
    left: 601px; top: 2623px;
    width: 239px; height: 52px;
    min-height: 52px;
    padding: 0;
  }
}

/* ==========================================================================
   MOBILE — literal Figma geometry, 390 canvas
   Source of truth: frame "blog page phone" #2129:4732 (390 x 2286).

   Appended last so it wins on source order over the max-width:1199 fallback
   above, which still matches at 390 and hides .bl-hero__bg, .bl-band,
   .bl-strip and .bl-cta__frame outright — all restored below.

   Origin as everywhere else in the mobile phase: the frame draws no
   header/footer, its y:0 is the page top, the header is 81, so every
   coordinate is THE FIGMA VALUE MINUS 81. The offset is noted per block.

   The filter bar lives inside .bl-hero in the markup, so the hero section
   runs 81-584 and carries it.

   Ignored: #2129:4744, the same stray off-canvas instance that sits on the
   contacts frame (x:-2402 y:2100). Not part of the visible layout.
   ========================================================================== */
@media (max-width: 767px) {

  .page-blog main {
    position: relative;
    width: var(--frame-mobile);
    max-width: none;
    height: 1807px;              /* frame 2286 - 81 header */
    margin-inline: 0;
  }

  .page-blog main > section {
    position: absolute;
    left: 0;
    width: var(--frame-mobile);
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* the fallback clamps every image; these carry their own Figma sizes */
  .page-blog .bl img { max-width: none; height: auto; object-fit: fill; }

  /* ======================================================================
     1. HERO + FILTER BAR — photo #2129:4743 at Figma 81 -> main 0.
     Local coordinates are the Figma value minus 81.
     ====================================================================== */
  .bl-hero { top: 0; height: 503px; }

  .page-blog .bl-hero__bg {
    display: block;
    position: absolute;
    left: -43px;
    top: 0;
    width: 526px;
    height: 391px;
  }

  /* #2129:4745 — 461x176, 4px INSIDE stroke, bleeding both edges */
  .bl-hero__plate {
    display: block;
    position: absolute;
    left: -35px;
    top: 127px;
    width: 461px;
    height: 176px;
    background: var(--bg);
    border: 4px solid var(--color-surface-dark);
  }

  /* the plate is a SIBLING div, not a parent, so these resolve against the
     section — section-relative coordinates, not plate-relative */
  .bl-hero__title {
    position: absolute;
    left: 73px;
    top: 157px;
    width: 244px;
    max-width: none;
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-bold);
    line-height: 1.06;
    text-align: center;
    color: var(--color-text);
  }

  .bl-hero__lead {
    position: absolute;
    left: 49px;
    top: 215px;
    width: 292px;
    max-width: none;
    margin: 0;
    font-size: 15px;
    font-weight: var(--fw-reg);
    line-height: 18px;
    text-align: center;
    color: var(--color-text);
  }

  /* #2129:4750 — the white filter box. .bl-filters is the box itself. */
  .bl-filters {
    display: block;
    position: absolute;
    left: 4px;
    top: 402px;
    width: 383px;
    height: 101px;
    gap: 0;
    margin: 0;
    padding: 0;
    background: var(--white);
    border: var(--stroke-1) solid var(--black);
  }

  /* pills: 19 tall, padding 5/18/6/17, on three rows at 418.5 / 446 / 473.
     Offsets are from the box's padding box, 1px inside its border. */
  .bl-filter {
    position: absolute;
    height: 19px;
    min-height: 0;
    margin: 0;
    padding: 5px 18px 6px 17px;
    background: none;
    border: var(--stroke-1) solid var(--black);
    border-radius: 0;
    font-family: var(--font-button);
    font-size: 12px;
    font-weight: var(--fw-reg);
    line-height: 8px;
    text-transform: none;
    white-space: nowrap;
  }

  /* #2129:4751 — the only pill Figma pins to a fixed width */
  /* the 1440 rules pin this one to 50x29 at a higher specificity than a
     bare .bl-filter, so the page class is needed to bring it back to the
     50x19 the 390 frame draws */
  .page-blog .bl-filter[data-filter="all"] {
    left: 9px; top: 15.5px;
    width: 50px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
  }

  .bl-filter[data-filter="launch"]    { left: 71px;  top: 15.5px; }
  .bl-filter[data-filter="sales"]     { left: 196px; top: 15.5px; }
  .bl-filter[data-filter="marketing"] { left: 9px;   top: 43px;   }
  .bl-filter[data-filter="market"]    { left: 190px; top: 43px;   }
  .bl-filter[data-filter="press"]     { left: 9px;   top: 70px;   }
  .bl-filter[data-filter="cases"]     { left: 136px; top: 70px;   }

  /* ======================================================================
     2. PRESS & MEDIA — title #2129:4749 at Figma 616 -> main 535.
     Local coordinates are the Figma value minus 616.
     ====================================================================== */
  .bl-press { top: 535px; height: 383px; }

  .bl-section__title {
    position: absolute;
    left: 8px;
    top: 0;
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-semi);
    line-height: 1.06;
    color: var(--color-text);
    white-space: nowrap;
  }

  /* Four dark rects make up the two press cards: a 461x72 header band per
     card (#2129:4765 / 4766) and a 508x157 block behind each photo
     (#2129:4772 / 4773). The markup only has one .bl-band, so the other
     three are pseudo-elements. They are all the same fill, so the paint
     order between them does not matter. */
  .bl-band {
    display: block;
    position: absolute;
    left: -79px;
    top: 45px;
    width: 461px;
    height: 72px;
    background: var(--color-surface-dark);
  }

  .bl-band::before,
  .bl-band::after,
  .bl-press::before {
    content: "";
    position: absolute;
    background: var(--color-surface-dark);
  }

  .bl-band::before { left: 0;      top: 181px; width: 461px; height: 72px;  }
  .bl-band::after  { left: -323px; top: 0;     width: 508px; height: 157px; }
  .bl-press::before{ left: -402px; top: 226px; width: 508px; height: 157px; }

  .page-blog .bl-press__img {
    display: block;
    position: absolute;
    left: -109px;
    width: 215px;
    height: 137px;
  }

  .bl-press__img--1 { top: 55px;  }
  .bl-press__img--2 { top: 236px; }

  .bl-press__title,
  .bl-latest__title {
    position: absolute;
    left: 113px;
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-semi);
    line-height: 17px;
    text-transform: uppercase;
  }

  .bl-press__title { width: 241px; color: var(--white); }

  .bl-press__title--1 { top: 55px;  }
  .bl-press__title--2 { top: 236px; }

  .bl-press__desc,
  .bl-latest__desc {
    position: absolute;
    left: 113px;
    width: 263px;
    margin: 0;
    font-size: 12px;
    font-weight: var(--fw-light);
    line-height: 15px;
    color: var(--color-text);
  }

  .bl-press__desc--1 { top: 122px; }
  .bl-press__desc--2 { top: 303px; }

  /* #2129:4733 / 4734 — the dark bar the read link sits on */
  .bl-strip {
    display: block;
    position: absolute;
    left: 106px;
    width: 284px;
    height: 18px;
    background: var(--color-surface-dark);
  }

  .bl-strip--1 { top: 184px; }
  .bl-strip--2 { top: 365px; }

  /* #2129:4738 etc — Figma sets textCase LOWER on these */
  .bl-read {
    position: absolute;
    left: 215px;
    width: 66px;
    margin: 0;
    font-size: 10px;
    font-weight: var(--fw-reg);
    line-height: 12px;
    text-transform: lowercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .bl-press__read--1 { top: 187px; }
  .bl-press__read--2 { top: 368px; }

  /* ======================================================================
     3. LATEST ARTICLES — title #2129:4748 at Figma 1031 -> main 950.
     Local coordinates are the Figma value minus 1031.
     ====================================================================== */
  .bl-latest { top: 950px; height: 504px; }

  .page-blog .bl-latest__img {
    display: block;
    position: absolute;
    left: 8px;
    width: 98px;
    height: 137px;
  }

  .bl-latest__img--1 { top: 45px;  }
  .bl-latest__img--2 { top: 206px; }
  .bl-latest__img--3 { top: 367px; }

  .bl-latest__title { color: var(--color-text); }

  .bl-latest__title--1 { top: 51px;  width: 241px; }
  .bl-latest__title--2 { top: 212px; width: 263px; }
  .bl-latest__title--3 { top: 373px; width: 263px; }

  .bl-latest__desc--1 { top: 91px;  }
  .bl-latest__desc--2 { top: 252px; }
  .bl-latest__desc--3 { top: 413px; }

  .bl-latest__strip {
    display: block;
    position: absolute;
    left: 106px;
    width: 278px;
    height: 18px;
    background: var(--color-surface-dark);
  }

  .bl-latest__strip--1 { top: 164px; }
  .bl-latest__strip--2 { top: 325px; }
  .bl-latest__strip--3 { top: 486px; }

  .bl-latest__read--1 { top: 167px; }
  .bl-latest__read--2 { top: 328px; }
  .bl-latest__read--3 { top: 489px; }

  /* ======================================================================
     4. CTA — frame #2129:4784 at Figma 1567 -> main 1486.
     Local coordinates are the Figma value minus 1567.
     ====================================================================== */
  .bl-cta { top: 1486px; height: 273px; }

  .bl-cta__frame {
    display: block;
    position: absolute;
    left: -12px;
    top: 0;
    width: 427px;
    height: 273px;
    background: var(--bg);
    border: var(--stroke-1) solid var(--color-surface-dark);
  }

  .bl-cta__plate {
    position: absolute;
    left: -12px;
    top: 13px;
    width: 418px;
    height: 244px;
    margin: 0;
    padding: 0;
    background: var(--color-surface-dark);
    text-align: left;
  }

  /* .bl-cta__plate is a SIBLING div too — section-relative coordinates */
  .bl-cta__title {
    position: absolute;
    left: 21px;
    top: 46px;
    width: 346px;
    max-width: none;
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-med);
    line-height: 1.06;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
  }

  .bl-cta__text {
    position: absolute;
    left: 39px;
    top: 96px;
    width: 312px;
    max-width: none;
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 17px;
    text-align: center;
    color: var(--white);
  }

  .bl-cta__btn {
    position: absolute;
    left: 8px;
    top: 179px;
    display: flex;
    width: 373px;
    height: 48px;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: var(--fw-bold);
    letter-spacing: normal;
    text-transform: none;
  }
}

/* ==========================================================================
   TABLET — literal Figma geometry, 768 canvas
   Source of truth: frame "blog page tablet" #2129:6878 (768 x 2402).

   No chrome drawn, so `main` = 2402 - 81 = **2321** and every coordinate is
   THE FIGMA VALUE MINUS 81. Section origins (frame y):
   hero 81 | press 574 | latest 1117 | cta 1754.

   STROKE ALIGNMENT: batched over 6885 / 6884 / 6923 and all five photos —
   every one renders at its declared size, so everything here is INSIDE and
   the photo strokes are baked into the node renders (no CSS border on them).

   THE FILTER BAR IS TWO ROWS AT THIS BREAKPOINT (y 481.5 and 507.5), where
   the 1440 frame runs one row that overflows its padding. Nothing is shared
   with the desktop treatment.

   Placed after the max-width:1199 fallback; `.bl img` and `.bl section` are
   both (0,1,1) and the `display:none` on `.bl-hero__bg, .bl-band, .bl-strip`
   and on `.bl-cta__frame` all need `.page-blog` to beat them.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {

  .page-blog main {
    position: relative;
    width: var(--frame-tablet);
    max-width: none;
    height: 2055px;
    margin-inline: auto;
    padding: 0;
  }

  /* NO `height` here — (0,1,2) would outrank every per-section height. */
  .page-blog main > section {
    position: absolute;
    left: 0;
    width: var(--frame-tablet);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .page-blog main > section > *,
  .page-blog main > section > picture > img {
    position: absolute;
    margin: 0;
  }

  .page-blog .bl img { max-width: none; height: auto; }

  /* ======================================================================
     1. HERO — photo #2129:6883 at Figma 63, i.e. 18px ABOVE main's top;
     the opaque header covers that strip, which is what the frame composes.
     THE FILTER BAR LIVES INSIDE THIS SECTION in the markup.
     ====================================================================== */
  .bl-hero { top: 0; height: 493px; }

  .page-blog .bl-hero__bg {
    display: block;
    left: -1px;
    top: -18px;
    width: 987px;
    height: 419px;
    object-fit: fill;
  }

  /* #2129:6885 — 690x176, 4px INSIDE */
  .page-blog .bl-hero__plate {
    display: block;
    left: 39px;
    top: 130px;
    width: 690px;
    height: 176px;
    background: var(--bg);
    border: 4px solid var(--color-surface-dark);
  }

  .page-blog .bl-hero__title {
    left: 87px;
    top: 178px;
    width: 594px;
    max-width: none;
    font-size: 32px;
    font-weight: var(--fw-bold);
    line-height: 34px;           /* 32 * 1.06 = 33.92, Figma rounds to px */
    text-align: left;
    color: var(--color-surface-dark);
    white-space: nowrap;         /* Chrome measures it past Figma's 594 box */
  }

  .page-blog .bl-hero__lead {
    left: 87px;
    top: 220px;
    width: 478px;
    max-width: none;
    font-size: 16px;
    font-weight: var(--fw-reg);
    line-height: 19px;           /* box 38 = 2 lines */
    color: var(--color-surface-dark);
  }

  /* #2129:6884 — 688x77 white with a 1px BLACK stroke (not the ink grey).
     The buttons inside it measure from its PADDING box, so each Figma offset
     has the 1px border subtracted. */
  .page-blog .bl-filters {
    display: block;
    left: 40px;
    top: 384px;
    width: 688px;
    height: 77px;
    padding: 0;
    gap: 0;
    background: var(--white);
    border: var(--stroke-1) solid #000000;
  }

  .page-blog .bl-filter {
    position: absolute;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-reg);
    line-height: 18px;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    color: #1E1E1E;
    white-space: nowrap;
  }

  /* THE DOM ORDER IS NOT THE READING ORDER — "Case Studies" is the fifth
     button but sits last on the second row. Keyed by data-filter, not index. */
  .page-blog .bl-filter[data-filter="all"] {
    left: 40px;
    top: 15.5px;
    width: 50px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    line-height: 13px;
    text-align: center;
    color: var(--white);
  }

  .page-blog .bl-filter[data-filter="launch"]    { left: 116px; top: 15.5px; width: 85px;  }
  .page-blog .bl-filter[data-filter="sales"]     { left: 235px; top: 15.5px; width: 93px;  }
  .page-blog .bl-filter[data-filter="marketing"] { left: 352px; top: 15.5px; width: 145px; }
  .page-blog .bl-filter[data-filter="market"]    { left: 41px;  top: 41.5px; width: 164px; }
  .page-blog .bl-filter[data-filter="press"]     { left: 235px; top: 41.5px; width: 87px;  }
  .page-blog .bl-filter[data-filter="cases"]     { left: 352px; top: 41.5px; width: 77px;  }

  /* ======================================================================
     2. PRESS & MEDIA — h2 #2129:6896 at Figma 574 -> main 493.
     Local coordinates are the Figma value minus 574.

     SIX DARK RECTS, THREE ELEMENTS. The markup carries one `.bl-band` and
     two `.bl-strip`s, so the two 798-wide bands, the two 461x70 header bands
     and the two link strips are spread across those three elements and their
     pseudo-elements. The assignment is chosen for PAINT ORDER: Figma draws
     every band before the photos, and header band 2 overlaps photo 2 by 9px
     (267..276), so it hangs off `.bl-strip--1`, which precedes photo 2 in
     the DOM. Hanging it off the title would paint it over the photo.
     ====================================================================== */
  .bl-press { top: 493px; height: 543px; }

  /* Explicit Figma widths rather than `width: auto` — the browser measures
     "Latest Articles" at 231 against the file's 233, so shrink-to-fit does
     not reproduce the declared box. */
  .page-blog .bl-section__title {
    left: 39px;
    max-width: none;
    font-size: 26px;
    font-weight: var(--fw-semi);
    line-height: 31px;
    text-transform: uppercase;
    color: var(--color-surface-dark);
    white-space: nowrap;
  }

  .page-blog .bl-press .bl-section__title  { top: 0; width: 198px; }
  .page-blog .bl-latest .bl-section__title { top: 0; width: 233px; }

  .page-blog .bl-band {
    display: block;
    left: -522px;
    top: 63px;
    width: 798px;
    height: 208px;
    background: var(--color-surface-dark);
  }

  .page-blog .bl-band::before,
  .page-blog .bl-band::after,
  .page-blog .bl-strip--1::before {
    content: "";
    position: absolute;
    background: var(--color-surface-dark);
  }

  /* #2129:6879 — the second 798 band, 240 below the first */
  .page-blog .bl-band::before { left: 0;   top: 240px; width: 798px; height: 208px; }
  /* #2129:6881 — header band 1, relative to the band's own origin */
  .page-blog .bl-band::after  { left: 789px; top: 16px; width: 461px; height: 70px; }
  /* #2129:6882 — header band 2, relative to strip 1's origin (276, 227) */
  .page-blog .bl-strip--1::before { left: -9px; top: 90px; width: 461px; height: 70px; }

  .page-blog .bl-press__img {
    display: block;
    left: -2px;
    width: 278px;
    height: 177px;
    border: 0;                   /* the 3-sided stroke is baked into the render */
    object-fit: fill;
  }

  .page-blog .bl-press__img--1 { top: 79px;  }
  .page-blog .bl-press__img--2 { top: 318px; }

  .page-blog .bl-card__title {
    left: 294px;
    max-width: none;
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: 22px;           /* box 44 = 2 lines */
    text-transform: uppercase;
  }

  .page-blog .bl-press__title { color: var(--white); }

  .page-blog .bl-press__title--1 { top: 92px;  width: 355px; }
  .page-blog .bl-press__title--2 { top: 330px; width: 386px; }

  .page-blog .bl-press__desc {
    left: 294px;
    width: 427px;
    max-width: none;
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 17px;
    color: var(--color-surface-dark);
  }

  .page-blog .bl-press__desc--1 { top: 157px; }   /* 3 lines */
  .page-blog .bl-press__desc--2 { top: 395px; }   /* 2 lines */

  .page-blog .bl-strip {
    display: block;
    left: 276px;
    width: 452px;
    height: 29px;
    background: var(--color-surface-dark);
  }

  .page-blog .bl-strip--1 { top: 227px; }
  .page-blog .bl-strip--2 { top: 465px; }

  .page-blog .bl-read {
    left: 456px;
    width: 93px;
    font-size: 14px;
    font-weight: var(--fw-med);
    line-height: 17px;
    text-transform: lowercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .page-blog .bl-press__read--1 { top: 233px; }
  .page-blog .bl-press__read--2 { top: 471px; }

  /* ======================================================================
     3. LATEST ARTICLES — h2 #2129:6897 at Figma 1117 -> main 1036.
     No bands here: the three cards sit on the page background.
     ====================================================================== */
  .bl-latest { top: 1036px; height: 637px; }


  .page-blog .bl-latest__img {
    display: block;
    left: 39px;
    width: 237px;
    height: 154px;
    border: 0;
    object-fit: fill;
  }

  .page-blog .bl-latest__img--1 { top: 63px;  }
  .page-blog .bl-latest__img--2 { top: 249px; }
  .page-blog .bl-latest__img--3 { top: 435px; }

  .page-blog .bl-latest__title { color: var(--color-surface-dark); }

  .page-blog .bl-latest__title--1 { top: 63px;  width: 386px; }
  .page-blog .bl-latest__title--2 { top: 249px; width: 336px; }
  .page-blog .bl-latest__title--3 { top: 435px; width: 386px; }

  .page-blog .bl-latest__desc {
    left: 294px;
    width: 394px;
    max-width: none;
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 17px;           /* box 34 = 2 lines */
    color: var(--color-surface-dark);
  }

  .page-blog .bl-latest__desc--1 { top: 115px; }
  .page-blog .bl-latest__desc--2 { top: 301px; }
  .page-blog .bl-latest__desc--3 { top: 487px; }

  .page-blog .bl-latest__strip {
    display: block;
    left: 294px;
    width: 434px;
    height: 29px;
    background: var(--color-surface-dark);
  }

  .page-blog .bl-latest__strip--1 { top: 188px; }
  .page-blog .bl-latest__strip--2 { top: 374px; }
  .page-blog .bl-latest__strip--3 { top: 560px; }

  .page-blog .bl-latest__read--1 { top: 194px; }
  .page-blog .bl-latest__read--2 { top: 380px; }
  .page-blog .bl-latest__read--3 { top: 566px; }

  /* ======================================================================
     4. CTA — frame #2129:6923 at Figma 1754 -> main 1673.

     THE DARK PLATE OVERHANGS THE OUTLINE AGAIN — #2129:6924 runs 1780-2088
     while #2129:6923 stops at 2001, so 87px of plate sits outside the
     bordered box. Third tablet frame with this construction, after
     membership and article, so it is the pattern rather than an oddity.
     ====================================================================== */
  /* height trimmed 2026-07-20 with the dead-space pass: the CTA content ends
     at 2007 (334 into this section) but Figma sized the section to 648, so
     its box ran to 2321 - the old main - and stuck out over the trimmed
     footer. 382 lands its bottom on the new main (1673 + 382 = 2055) with a
     48px tail; the CTA panel is well inside it, so nothing is clipped. */
  .bl-cta { top: 1673px; height: 382px; }

  .page-blog .bl-cta__frame {
    display: block;
    left: 16px;
    top: 0;
    width: 735px;
    height: 247px;
    background: var(--bg);
    border: var(--stroke-1) solid var(--color-surface-dark);
  }

  .page-blog .bl-cta__plate {
    display: block;
    left: 39px;
    top: 26px;
    width: 689px;
    height: 308px;
    padding: 0;
    background: var(--color-surface-dark);
    text-align: left;
  }

  .page-blog .bl-cta__title {
    left: 159px;
    top: 74px;
    width: 450px;
    max-width: none;
    font-size: 26px;
    font-weight: var(--fw-med);
    line-height: 31px;           /* box 62 = 2 lines */
    text-align: center;
    text-transform: uppercase;
    color: var(--bg);
  }

  .page-blog .bl-cta__text {
    left: 179px;
    top: 144px;
    width: 411px;
    max-width: none;
    font-size: 18px;
    font-weight: var(--fw-light);
    line-height: 22px;           /* box 66 = 3 lines */
    text-align: center;
    color: var(--white);
  }

  .page-blog .bl-cta__btn {
    left: 264px;
    top: 242px;
    width: 239px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
  }
}

/* ==== RTL OVERLAY (auto — tools/rtl-gen.js; mirrors horizontal geometry for Arabic, scoped to html[dir=rtl], changed decls only) ==== */
html[dir="rtl"] .bl-filter[aria-pressed="true"] {
    padding: 0 17px 0 18px
}
@media (min-width: 1200px) {
    html[dir="rtl"] .bl section {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .bl-hero__bg {
        right: -1px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__plate {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__title {
        right: 145px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__lead {
        right: 145px;
        left: auto
    }
    html[dir="rtl"] .bl-filters {
        right: 82px;
        padding: 20px 40px 19px 582px;
        left: auto
    }
    html[dir="rtl"] .bl-press .bl-section__title {
        right: 79px;
        left: auto
    }
    html[dir="rtl"] .bl-band {
        right: -10px;
        left: auto
    }
    html[dir="rtl"] .bl-press__img--1 {
        right: 82px;
        left: auto
    }
    html[dir="rtl"] .bl-press__img--2 {
        right: 790px;
        left: auto
    }
    html[dir="rtl"] .bl-press__title--1 {
        right: 81px;
        left: auto
    }
    html[dir="rtl"] .bl-press__title--2 {
        right: 790px;
        left: auto
    }
    html[dir="rtl"] .bl-press__desc--1 {
        right: 81px;
        left: auto
    }
    html[dir="rtl"] .bl-press__desc--2 {
        right: 790px;
        left: auto
    }
    html[dir="rtl"] .bl-strip--1 {
        right: 82px;
        left: auto
    }
    html[dir="rtl"] .bl-strip--2 {
        right: 790px;
        left: auto
    }
    html[dir="rtl"] .bl-press__read--1 {
        right: 303px;
        left: auto
    }
    html[dir="rtl"] .bl-press__read--2 {
        right: 1011px;
        left: auto
    }
    html[dir="rtl"] .bl-latest .bl-section__title {
        right: 78px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__img {
        right: 78px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__title {
        right: 538px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__desc {
        right: 538px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__strip {
        right: 538px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__read {
        right: 769px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__frame {
        right: 20px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__plate {
        right: 80px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__title {
        right: 191px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__text {
        right: 425px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__btn {
        right: 601px;
        left: auto
    }
}
@media (max-width: 767px) {
    html[dir="rtl"] .page-blog main > section {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-hero__bg {
        right: -43px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__plate {
        right: -35px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__title {
        right: 73px;
        left: auto
    }
    html[dir="rtl"] .bl-hero__lead {
        right: 49px;
        left: auto
    }
    html[dir="rtl"] .bl-filters {
        right: 4px;
        left: auto
    }
    html[dir="rtl"] .bl-filter {
        padding: 5px 17px 6px 18px
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="all"] {
        right: 9px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="launch"] {
        right: 71px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="sales"] {
        right: 196px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="marketing"] {
        right: 9px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="market"] {
        right: 190px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="press"] {
        right: 9px;
        left: auto
    }
    html[dir="rtl"] .bl-filter[data-filter="cases"] {
        right: 136px;
        left: auto
    }
    html[dir="rtl"] .bl-section__title {
        right: 8px;
        left: auto
    }
    html[dir="rtl"] .bl-band {
        right: -79px;
        left: auto
    }
    html[dir="rtl"] .bl-band::before {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .bl-band::after {
        right: -323px;
        left: auto
    }
    html[dir="rtl"] .bl-press::before {
        right: -402px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-press__img {
        right: -109px;
        left: auto
    }
    html[dir="rtl"] .bl-press__title,
html[dir="rtl"] .bl-latest__title {
        right: 113px;
        left: auto
    }
    html[dir="rtl"] .bl-press__desc,
html[dir="rtl"] .bl-latest__desc {
        right: 113px;
        left: auto
    }
    html[dir="rtl"] .bl-strip {
        right: 106px;
        left: auto
    }
    html[dir="rtl"] .bl-read {
        right: 215px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-latest__img {
        right: 8px;
        left: auto
    }
    html[dir="rtl"] .bl-latest__strip {
        right: 106px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__frame {
        right: -12px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__plate {
        right: -12px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .bl-cta__title {
        right: 21px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__text {
        right: 39px;
        left: auto
    }
    html[dir="rtl"] .bl-cta__btn {
        right: 8px;
        left: auto
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html[dir="rtl"] .page-blog main > section {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-hero__bg {
        right: -1px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-hero__plate {
        right: 39px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-hero__title {
        right: 87px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-hero__lead {
        right: 87px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filters {
        right: 40px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter {
        text-align: right
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="all"] {
        right: 40px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="launch"] {
        right: 116px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="sales"] {
        right: 235px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="marketing"] {
        right: 352px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="market"] {
        right: 41px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="press"] {
        right: 235px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-filter[data-filter="cases"] {
        right: 352px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-section__title {
        right: 39px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-band {
        right: -522px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-band::before {
        right: 0;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-band::after {
        right: 789px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-strip--1::before {
        right: -9px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-press__img {
        right: -2px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-card__title {
        right: 294px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-press__desc {
        right: 294px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-strip {
        right: 276px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-read {
        right: 456px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-latest__img {
        right: 39px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-latest__desc {
        right: 294px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-latest__strip {
        right: 294px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-cta__frame {
        right: 16px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-cta__plate {
        right: 39px;
        text-align: right;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-cta__title {
        right: 159px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-cta__text {
        right: 179px;
        left: auto
    }
    html[dir="rtl"] .page-blog .bl-cta__btn {
        right: 264px;
        left: auto
    }
}
