/* page-legacy-bk-polish.css — page bundle d27bf1ac35c1c20b (28/326 rules, manifest bb108b1802769b86) */
/*
 * Legacy ACF block polish for old editorial blocks that still appear inside
 * posts and clinic pages. Scoped by template/body classes in functions.php.
 */
/* The 1060px width is the POST editorial rail. /contato/ sets its own full-rail
   width in page-contato.css, so exclude it here — otherwise this !important forces
   a fight that page-contato has to answer with its own !important. */
/* 2026-06-27: bk8 aligned to the shared 1180px card-rail (was 1060px centered,
   ~60px inside the rail -> visually misaligned vs bk1/jt blocks on posts). bk3
   keeps its narrower 1060px editorial width. Width-only; structure unchanged. */
/* 2026-09-21 grid fix F5: the one-column post variant only capped the row text at 78ch (x=161 inside the 958px row interior); title
   and description now take the text rail, centred in the symmetric interior (704 → x=288). The ::before numeral travels with the title. */
body:is(.page-id-4507, .page-id-11183, .page-id-4721, .page-id-7862, .page-id-9427) .entry-content > :is(.bk11, .bk22, .bk42, .bk43, .bk58, .bk64, .bk56) {
  box-sizing: border-box;
  width: min(1240px, calc(100vw - 48px)) !important;
  max-width: min(1240px, calc(100vw - 48px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: hidden;
}
/* 2026-10-20: stacked article sections share the surrounding prose rail.
   Media-break layouts retain their own grid. Narrow cards use their own width. */
@media only screen and (min-width: 1024px){
/* 2026-09-21 grid fix F6 (2-column grid only): the tile's clamp(22px,5vw,64px) side padding ate 22% of each 590px cell (text at
     115/705); 20px lateral = the .jt-up15__item inset on the same pages → 71/661. One-column bk7 (fewer than 5 rows) is untouched. */
/* 2026-09-18: an odd row count left an empty bordered cell in the last grid row — the last odd row spans both tracks */
}
body.single.single-post .entry-content .jt-bk1-scan {
  box-sizing: border-box;
  max-width: 980px;
  margin: clamp(26px, 4vw, 46px) auto clamp(30px, 4.5vw, 54px);
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid #d8cec6;
  background: #fbf8f4;
}
body.single.single-post .entry-content .jt-bk1-scan__head {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  margin-bottom: clamp(22px, 3vw, 32px);
}
body.single.single-post .entry-content .jt-bk1-scan__kicker {
  margin: 0;
  color: #7d625a;
  font-family: Roobert, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}
body.single.single-post .entry-content .jt-bk1-scan h2 {
  margin: 0;
  color: #211b18;
  font-family: Roobert, Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
body.single.single-post .entry-content .jt-bk1-scan__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d8cec6;
  border-left: 1px solid #d8cec6;
  background: #fff;
}
body.single.single-post .entry-content .jt-bk1-scan__item {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border-right: 1px solid #d8cec6;
  border-bottom: 1px solid #d8cec6;
}
body.single.single-post .entry-content .jt-bk1-scan__item span {
  display: block;
  margin-bottom: 18px;
  color: #9b756b;
  font-family: Roobert, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
body.single.single-post .entry-content .jt-bk1-scan__item h3 {
  margin: 0 0 8px;
  color: #201b18;
  font-family: Roobert, Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.18;
}
body.single.single-post .entry-content .jt-bk1-scan__item p {
  margin: 0;
  color: #4b433d;
  font-size: 14.5px;
  line-height: 1.58;
}
body.single.single-post .entry-content .jt-bk1-scan__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
body.single.single-post .entry-content .jt-bk1-scan__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #cfc4bb;
  background: #fff;
  color: #1f1a17;
  font-family: Roobert, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
@media only screen and (max-width: 980px){
body.single.single-post .entry-content .jt-bk1-scan__head,
  body.single.single-post .entry-content .jt-bk1-scan__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media only screen and (max-width: 640px){
body.single.single-post .entry-content .jt-bk1-scan {
    margin: 24px auto 34px;
    padding: 18px;
  }
body.single.single-post .entry-content .jt-bk1-scan__head {
    gap: 12px;
    margin-bottom: 18px;
  }
body.single.single-post .entry-content .jt-bk1-scan h2 {
    font-size: 24px;
    line-height: 1.12;
  }
body.single.single-post .entry-content .jt-bk1-scan__item {
    padding: 16px;
  }
body.single.single-post .entry-content .jt-bk1-scan__item h3 {
    font-size: 17px;
  }
body.single.single-post .entry-content .jt-bk1-scan__item p {
    font-size: 14px;
    line-height: 1.52;
  }
body.single.single-post .entry-content .jt-bk1-scan__links a {
    width: 100%;
    justify-content: center;
  }
}
/* 2026-09-05 G3: bk3 was the last block on the retired 1060px ".w" editorial
   rail (bk5/bk7/bk8 left it on 2026-06-27). Rail it like the k6 readable card
   (760 text rail + 2×42px padding); its 72ch inner column already fits. */
