/* Blog B2, the board of ideas (Yossi 22/10, "מאשר תתקדמו"). From petit-content\.scratch-advisors\design-blog-2210\out2\B2-*.html,
   on the site's own tokens, header and footer; everything is scoped to .pd-blog-b. Loaded on the blog page, its topics and articles. */
/* The width comes from .pd-wrap, as on the home and shop; the article's backdrop runs edge to edge. Content up to 1280px (B2). */
.petit-main.pd-blog-b { max-width:none; padding:0; }
.pd-blog-b .pd-wrap { max-width:1440px; }
.pd-blog-b h1 { font-weight:300; }
.pd-blog-b h2,.pd-blog-b h3 { font-weight:500; }
.pd-blog-b p { margin:0; }
.pd-blog-b .pd-vh { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.pd-blog-b .pd-bird { width:64px; height:auto; flex:none; }
.pd-blog-b .pd-eyebrow { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--olive); }
.pd-blog-b .pd-eyebrow::before { content:""; width:24px; height:1px; background:currentColor; }
.pd-blog-b .topic-label { color:var(--olive); font-size:14px; font-weight:600; }
.pd-blog-b .text-link { display:inline-flex; align-items:center; gap:18px; min-height:44px; font-size:16px; font-weight:600; color:var(--olive); text-decoration:none; }
.pd-blog-b .text-link:hover { text-decoration:underline; }
.pd-blog-b .text-link span { font-size:24px; line-height:1; }

/* The board's head. */
.pd-blog-hero { position:relative; text-align:center; padding-block:54px 14px; }
.pd-blog-hero .pd-eyebrow { justify-content:center; }
.pd-blog-b .pd-blog-hero h1 { font-size:clamp(54px,5.4vw,78px); line-height:1.22; margin-block:18px; }
.pd-blog-hero .pd-lead { max-width:54ch; margin-inline:auto; font-size:20px; line-height:1.65; color:var(--muted); }
.pd-blog-hero .pd-blog-seal { position:absolute; left:50px; top:50px; width:90px; height:auto; transform:rotate(-8deg); }

/* Topics: links, so every topic has its own address. */
.pd-blog-filters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; padding-block:22px; margin-bottom:18px; }
.pd-blog-filter { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:8px 18px; border:1px solid transparent; border-radius:999px; background:var(--surface); color:var(--ink); font-size:15px; text-decoration:none; }
.pd-blog-filter:hover { border-color:var(--olive); }
.pd-blog-filter[aria-current="page"] { background:var(--olive); border-color:var(--olive); color:var(--bg); }
.pd-blog-filter .filter-count { font-size:14px; font-variant-numeric:tabular-nums; }
.pd-blog-empty { text-align:center; color:var(--muted); padding-block:40px; }

/* The cards: the shape comes from the position (inc/blog.php), the colour from the topic, the first is olive. */
.pd-blog-b .board-shell { container-type:inline-size; }
.pd-blog-b .card-grid { --cell:400px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(var(--cell),auto); grid-auto-flow:row; gap:22px; }
@supports (width:1cqw) { .pd-blog-b .card-grid { --cell:calc((100cqw - 44px) / 3); } }
.pd-blog-b .pd-tile { --tile-bg:var(--surface); --tile-border:var(--line); position:relative; display:flex; flex-direction:column; border-radius:24px; background:var(--tile-bg); border:1px solid var(--tile-border); }
.pd-blog-b .pd-tile.cat-home { --tile-bg:var(--yellow); --tile-border:var(--yellow-2); }
.pd-blog-b .pd-tile.cat-office { --tile-bg:var(--bg); --tile-border:var(--line); }
.pd-blog-b .pd-tile.cat-celebrate { --tile-bg:var(--surface); --tile-border:var(--line); }
.pd-blog-b .pd-tile.primary { --tile-bg:var(--olive); --tile-border:var(--olive); color:var(--bg); }
.pd-blog-b .shape-wide { grid-column:span 2; }
.pd-blog-b .shape-tall { grid-row:span 2; }
.pd-blog-b .tile-content { display:flex; flex-direction:column; flex:1; padding:28px; }
.pd-blog-b .tile-top { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; margin-bottom:22px; }
.pd-blog-b .tile-top .pd-bird { width:42px; margin-inline-start:auto; }
.pd-blog-b .pd-tile h3 { font-size:30px; line-height:1.23; margin-bottom:16px; }
.pd-blog-b .pd-tile h3 a { text-decoration:none; }
.pd-blog-b .pd-tile h3 a:hover { text-decoration:underline; text-decoration-thickness:1px; }
.pd-blog-b .pd-tile h3 a::after { content:""; position:absolute; inset:0; border-radius:24px; }
.pd-blog-b .pd-tile:focus-within { outline:3px solid var(--olive); outline-offset:5px; }
.pd-blog-b .pd-tile h3 a:focus-visible { outline:none; }
.pd-blog-b .pd-tile p { font-size:17px; line-height:1.7; color:var(--muted); }
.pd-blog-b .tile-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:52px; padding-top:20px; margin-top:auto; }
.pd-blog-b .tile-foot .text-link { min-height:32px; }
.pd-blog-b .tile-date { font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums; }
.pd-blog-b .shape-wide h3 { font-size:38px; max-width:24ch; }
.pd-blog-b .shape-wide p { max-width:58ch; }
.pd-blog-b .shape-tall h3 { font-size:35px; }
.pd-blog-b .shape-tall:not(.has-photo) .tile-content { padding-block:36px; }
.pd-blog-b .shape-tall:not(.has-photo) .tile-top { margin-bottom:52px; }
.pd-blog-b .shape-tall:not(.has-photo) .tile-top .pd-bird { width:72px; }
.pd-blog-b .shape-tall:not(.has-photo) h3 { font-size:40px; }
.pd-blog-b .shape-tall:not(.has-photo) p { margin-top:12px; font-size:19px; }
.pd-blog-b .pd-tile.primary h3 { font-size:clamp(40px,3.3vw,48px); font-weight:300; }
.pd-blog-b .pd-tile.primary p { font-size:19px; max-width:46ch; }
.pd-blog-b .pd-tile.primary .topic-label,.pd-blog-b .pd-tile.primary p,.pd-blog-b .pd-tile.primary .text-link,.pd-blog-b .pd-tile.primary .tile-date { color:var(--bg); }
.pd-blog-b .pd-tile.primary .pd-bird { filter:brightness(0) invert(1); }
.pd-blog-b .pd-tile.primary:focus-within { outline-color:var(--olive); }
/* A photo only where the position allows and the post has one. */
.pd-blog-b .tile-image { margin:0; flex:none; overflow:hidden; }
.pd-blog-b .tile-image img { display:block; width:100%; height:100%; object-fit:cover; }
.pd-blog-b .shape-tall .tile-image { height:310px; border-radius:23px 23px 0 0; }
.pd-blog-b .shape-wide.has-photo { flex-direction:row; }
.pd-blog-b .shape-wide .tile-image { width:32%; order:2; border-radius:23px 0 0 23px; }
.pd-blog-b .shape-wide .tile-image img { min-height:100%; }
.pd-blog-b .shape-wide.has-photo h3 { font-size:32px; }
.pd-blog-pages { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-block:40px 0; }
.pd-blog-pages .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0 14px; border-radius:999px; background:var(--surface); color:var(--ink); text-decoration:none; }
.pd-blog-pages .page-numbers.current { background:var(--olive); color:var(--bg); }

/* The WhatsApp ending, on the board and under every article. */
.pd-blog-b .contact-band { display:grid; grid-template-columns:84px 1fr auto; align-items:center; gap:28px; padding:36px 40px; margin-block:80px 64px; background:var(--yellow); border-radius:24px; }
.pd-blog-b .contact-band .pd-bird { width:80px; }
.pd-blog-b .contact-band h2 { font-size:32px; margin-bottom:8px; }
.pd-blog-b .contact-band p { color:var(--muted); font-size:17px; }
.pd-blog-button { display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:48px; padding:11px 24px; border:1px solid var(--olive); border-radius:999px; background:var(--olive); color:var(--bg); font-size:16px; font-weight:600; text-decoration:none; }
.pd-blog-button:hover { text-decoration:underline; text-underline-offset:5px; }

/* The article. */
.pd-blog-backdrop { background:var(--surface); padding-bottom:48px; }
.pd-blog-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding-block:24px 8px; font-size:14px; color:var(--muted); }
.pd-blog-crumbs a { display:inline-flex; align-items:center; min-height:44px; color:inherit; }
.pd-blog-hero-article { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr); align-items:start; gap:72px; padding-block:24px 16px; }
.pd-blog-hero-article.no-brief { grid-template-columns:minmax(0,1fr); }
.pd-blog-b .pd-blog-title { font-size:58px; line-height:1.14; margin-block:20px 24px; }
.pd-blog-meta { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:24px; font-size:14px; color:var(--olive); }
.pd-blog-meta > span + span { border-inline-start:1px solid var(--line); padding-inline-start:14px; }
.pd-blog-brief { position:relative; margin-top:62px; padding:36px; background:var(--yellow); border:1px solid var(--yellow-2); border-radius:24px; }
.pd-blog-brief .pd-bird { width:65px; margin-bottom:24px; }
.pd-blog-b .pd-blog-brief h2 { font-size:32px; margin-bottom:12px; }
.pd-blog-brief p { font-size:19px; line-height:1.8; }
.pd-blog-b .pd-blog-reading-layout { max-width:760px; margin:40px auto 0; padding-inline:40px; }
.pd-blog-toc { border-bottom:1px solid var(--line); padding-bottom:20px; }
.pd-blog-b .pd-blog-toc h2 { font-family:var(--sans); font-size:15px; font-weight:600; margin-bottom:12px; }
.pd-blog-toc ol { display:flex; flex-wrap:wrap; gap:8px 20px; list-style:none; padding:0; margin:0; }
.pd-blog-toc a { display:flex; align-items:center; gap:12px; min-height:44px; padding-block:8px; font-size:15px; color:var(--muted); text-decoration:none; }
.pd-blog-toc a:hover { color:var(--olive); text-decoration:underline; }
.pd-blog-toc a span { font-size:12px; color:var(--olive); }
.pd-blog-reading { font-size:19px; line-height:1.9; overflow-wrap:break-word; }
.pd-blog-reading > * { max-width:none; }
.pd-blog-reading p { margin-block:0 20px; }
.pd-blog-b .pd-blog-reading h2 { font-size:34px; line-height:1.3; margin:36px 0 20px; padding-top:28px; border-top:1px solid var(--line); scroll-margin-top:24px; }
.pd-blog-b .pd-blog-reading h2:first-child { margin-top:8px; padding-top:20px; border-top:0; }
.pd-blog-reading ul,.pd-blog-reading ol { margin-block:0 20px; padding-inline-start:1.2em; }
.pd-blog-reading li + li { margin-top:6px; }
.pd-blog-reading a { color:var(--olive); text-underline-offset:5px; }
.pd-blog-products { margin-top:16px; padding-block:16px; border-top:1px solid var(--line); font-size:16px; color:var(--olive); }
.pd-blog-products a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:5px; }
.pd-blog-related { padding-top:72px; }
.pd-blog-section-title { display:flex; justify-content:space-between; align-items:baseline; gap:24px; margin-bottom:28px; }
.pd-blog-b .pd-blog-section-title h2 { font-size:36px; }
.pd-blog-b .related-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:minmax(310px,auto); gap:22px; }
.pd-blog-b .related-grid .tile-content { padding:24px; }
.pd-blog-b .related-grid .pd-tile h3 { font-size:26px; }
.pd-blog-b .related-grid .shape-wide h3 { font-size:32px; }
.pd-blog-b .related-grid .shape-wide .tile-image { width:30%; }
.pd-blog-b .related-grid .pd-tile p { font-size:16px; }

/* DESK-P: the policy pages read as documents: a calmer title and text than an article. */
.pd-policy-head { padding-block:40px 8px; text-align:center; }
.pd-policy-head .pd-blog-meta { justify-content:center; }
.pd-blog-b.pd-policy-main .pd-blog-title { font-size:44px; margin-block:0 8px; }
.pd-policy-text { font-size:17px; line-height:1.8; }
.pd-blog-b .pd-policy-text h2 { font-size:26px; }
.pd-blog-b .pd-policy-text h3 { font-size:20px; margin:24px 0 8px; }
.pd-policy-text hr { margin-block:32px; border:0; border-top:1px solid var(--line); }
.pd-policy-main .pd-blog-reading-layout { margin-bottom:64px; }
@media (max-width:1099px) {
  .pd-blog-b .tile-content { padding:24px; }
  .pd-blog-hero-article { grid-template-columns:minmax(0,1fr); gap:28px; }
  .pd-blog-brief { margin-top:0; max-width:680px; }
}
@media (min-width:600px) and (max-width:1099px) {
  .pd-blog-b .card-grid { --cell:360px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  @supports (width:1cqw) { .pd-blog-b .card-grid { --cell:calc((100cqw - 22px) / 2); } }
  /* Two columns: positions 5 and 6 trade shapes, so the order stays and no hole opens. */
  .pd-blog-b .card-grid > .slot-5 { grid-column:span 2; grid-row:span 1; }
  .pd-blog-b .card-grid > .slot-6 { grid-column:span 1; grid-row:span 2; flex-direction:column; }
  .pd-blog-b .card-grid > .slot-5 .tile-top { margin-bottom:22px; }
  .pd-blog-b .card-grid > .slot-5 .tile-top .pd-bird { width:44px; }
  .pd-blog-b .card-grid > .slot-5 h3 { font-size:36px; }
  .pd-blog-b .card-grid > .slot-6 .tile-image { width:100%; height:280px; order:0; border-radius:23px 23px 0 0; }
  .pd-blog-b .pd-tile h3 { font-size:27px; }
  .pd-blog-b .shape-tall h3 { font-size:32px; }
  .pd-blog-b .shape-wide h3 { font-size:36px; }
  .pd-blog-b .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pd-blog-b .related-grid > .shape-wide { grid-column:span 2; }
}
@media (max-width:1050px) and (min-width:900px) {
  .pd-blog-hero .pd-blog-seal { left:0; width:64px; }
  .pd-blog-b .pd-blog-title { font-size:50px; }
  .pd-blog-brief { padding:28px; }
}
@media (max-width:899px) {
  .pd-blog-hero { padding-block:34px 4px; }
  .pd-blog-b .pd-blog-hero h1 { font-size:53px; margin-block:18px 16px; }
  .pd-blog-hero .pd-blog-seal { position:static; display:block; width:58px; margin:0 auto 20px; transform:none; }
  .pd-blog-hero .pd-eyebrow { font-size:13px; }
  .pd-blog-hero .pd-lead { max-width:30ch; font-size:18px; }
  .pd-blog-filters { gap:6px; padding-block:24px; margin-bottom:6px; }
  .pd-blog-filter { font-size:14px; padding:7px 13px; gap:7px; }
  .pd-blog-b .card-grid { gap:16px; }
  .pd-blog-b .pd-tile { border-radius:20px; }
  .pd-blog-b .contact-band { grid-template-columns:56px 1fr; gap:18px; padding:28px 22px; margin-block:52px 40px; }
  .pd-blog-b .contact-band .pd-bird { width:56px; }
  .pd-blog-b .contact-band h2 { font-size:27px; }
  .pd-blog-b .contact-band p { font-size:16px; }
  .pd-blog-b .contact-band .pd-blog-button { grid-column:1 / -1; width:100%; }
  .pd-blog-backdrop { padding-bottom:28px; }
  .pd-blog-crumbs { font-size:13px; padding-top:16px; gap:8px; }
  .pd-blog-hero-article { padding-top:16px; }
  .pd-blog-b .pd-blog-title { font-size:41px; line-height:1.16; }
  .pd-blog-b.pd-policy-main .pd-blog-title { font-size:34px; }
  .pd-policy-head { padding-top:28px; }
  .pd-blog-brief { padding:24px; border-radius:20px; }
  .pd-blog-brief .pd-bird { width:48px; float:left; margin:0 16px 12px 0; }
  .pd-blog-b .pd-blog-brief h2 { font-size:28px; }
  .pd-blog-brief p { font-size:18px; clear:both; }
  .pd-blog-b .pd-blog-reading-layout { max-width:680px; margin-top:28px; padding-inline:20px; }
  .pd-blog-reading { font-size:18px; line-height:1.85; }
  .pd-blog-b .pd-blog-reading h2 { font-size:28px; }
  .pd-blog-related { padding-top:48px; }
  .pd-blog-b .pd-blog-section-title h2 { font-size:29px; }
}
@media (max-width:599px) {
  .pd-blog-b .card-grid,.pd-blog-b .related-grid { grid-template-columns:minmax(0,1fr); grid-auto-rows:auto; gap:16px; }
  .pd-blog-b .card-grid > .pd-tile,.pd-blog-b .related-grid > .pd-tile { grid-column:auto; grid-row:auto; min-height:320px; border-radius:20px; }
  .pd-blog-b .card-grid > .shape-tall { min-height:560px; }
  .pd-blog-b .pd-tile h3,.pd-blog-b .shape-wide h3,.pd-blog-b .shape-wide.has-photo h3 { font-size:30px; }
  .pd-blog-b .pd-tile.primary h3 { font-size:37px; }
  .pd-blog-b .pd-tile.primary p { font-size:18px; }
  .pd-blog-b .shape-tall h3 { font-size:32px; }
  .pd-blog-b .shape-tall:not(.has-photo) h3 { font-size:36px; }
  .pd-blog-b .shape-tall:not(.has-photo) .tile-top .pd-bird { width:60px; }
  .pd-blog-b .shape-tall:not(.has-photo) .tile-top { margin-bottom:36px; }
  .pd-blog-b .shape-wide.has-photo { flex-direction:column; }
  .pd-blog-b .shape-wide .tile-image,.pd-blog-b .related-grid .shape-wide .tile-image { width:100%; height:180px; order:0; border-radius:19px 19px 0 0; }
  .pd-blog-b .shape-tall .tile-image { height:240px; border-radius:19px 19px 0 0; }
  .pd-blog-b .pd-blog-reading h2 { font-size:30px; }
  /* The dates wrap here; a separator would open the second row as a stray bar. */
  .pd-blog-meta { gap:6px 16px; }
  .pd-blog-meta > span + span { border-inline-start:0; padding-inline-start:0; }
  /* One row of topics on the phone, as in the shop (Yossi 22/10); the counts give way. */
  .pd-blog-filters { flex-wrap:nowrap; gap:6px; }
  .pd-blog-filter { flex:none; padding:7px 12px; }
  .pd-blog-filter .filter-count { display:none; }
  .pd-blog-products { font-size:15px; }
  .pd-blog-section-title { flex-wrap:wrap; align-items:center; }
  .pd-blog-b .related-grid > .pd-tile { min-height:280px; }
  .pd-blog-b .related-grid .pd-tile h3,.pd-blog-b .related-grid .shape-wide h3 { font-size:29px; }
}
@media (prefers-reduced-motion:reduce) { .pd-blog-b * { scroll-behavior:auto !important; } }
