/* v1.2 CEO-review sections. Additive only: classes are prefixed sbs-cr- and do not restyle existing approved blocks. */
.sbs-cr-figure { margin:0; }
.sbs-cr-figure img { display:block; width:100%; height:auto; border:1px solid #d6e2f0; border-radius:10px; background:#fff; }
.sbs-cr-figure figcaption { margin-top:.85rem; font-size:18px!important; line-height:1.5; color:#3d4a5c; text-align:left; }
.sbs-cr-photo img { aspect-ratio:3/2; object-fit:cover; }
.sbs-cr-columns { align-items:center!important; }
.sbs-cr-points { padding-left:1.4em; }
.sbs-cr-points li + li { margin-top:.85rem; }
.sbs-cr-principle { margin-top:1.5rem; padding:1rem 1.25rem; border-left:4px solid #5cd16e; background:#eaf3fc; font-weight:600; max-width:65ch; }

/* Facts band: large, high-contrast figures taken from the approved Main Company Profile */
.sbs-cr-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-top:2.5rem; }
.sbs-cr-stats > .wp-block-group { margin:0!important; min-width:0; padding:1.5rem; border-radius:8px; background:#0b2e6b; color:#fff; }
.sbs-cr-stats p { margin:0; color:#fff; }
.sbs-cr-stats .sbs-cr-stat-value { margin:0; color:#5cd16e; font-size:34px!important; line-height:1.15; font-weight:700; }
.sbs-cr-stats .sbs-cr-stat-label { margin-top:.5rem; font-size:20px!important; line-height:1.45; }

/* Numbered delivery steps */
.sbs-cr-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; margin-top:2rem; counter-reset:none; }
.sbs-cr-steps > .wp-block-group { margin:0!important; min-width:0; padding:1.5rem; border:1px solid #d6e2f0; border-top:4px solid #0b2e6b; border-radius:8px; background:#fff; }
.sbs-cr-steps h3 { margin-top:.5rem; font-size:24px!important; line-height:1.3; }
.sbs-cr-steps p { margin-bottom:0; }
.sbs-cr-steps .sbs-card-index { color:#1e7b34; font-weight:700; letter-spacing:.05em; margin:0; }
.sbs-cr-steps-5 { grid-template-columns:repeat(5,minmax(0,1fr)); }

/* Company facts list */
.sbs-cr-facts { list-style:none; padding-left:0!important; margin:1.5rem 0 0; max-width:none; }
.sbs-cr-facts li { padding:1rem 0; border-bottom:1px solid #d6e2f0; margin:0!important; }
.sbs-cr-facts li:first-child { border-top:1px solid #d6e2f0; }
.sbs-cr-facts strong { display:block; color:#0b2e6b; }

/* Homepage additions reuse sbs-home-section typography */
.sbs-cr-home-partner { border-top:1px solid #d6e2f0; }
.sbs-cr-home-partner h2 { max-width:24ch; }
.sbs-cr-home-delivery .sbs-intro { margin-bottom:0; }
.sbs-home-closing .sbs-cr-slogan { color:#1e7b34; margin-bottom:.5rem; }

/* Header: original logo, unaltered, sized for readability */
.sbs-brand .wp-block-site-logo { margin:0 0 .35rem; }
.sbs-brand .wp-block-site-logo img { max-height:84px; width:auto; height:auto; }
.sbs-footer .sbs-cr-footer-company { margin-top:1.25rem; }
.sbs-footer .sbs-cr-footer-slogan { color:#5cd16e; font-weight:600; }

@media (max-width:1100px) {
  .sbs-cr-stats, .sbs-cr-steps, .sbs-cr-steps-5 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:782px) and (max-width:1000px) {
  .sbs-cr-columns { flex-direction:column; }
  .sbs-cr-columns > .wp-block-column { flex-basis:auto!important; width:100%; }
}
@media (max-width:781px) {
  .sbs-cr-stats .sbs-cr-stat-value { font-size:30px!important; }
  .sbs-cr-stats .sbs-cr-stat-label { font-size:18px!important; }
  .sbs-cr-steps h3 { font-size:22px!important; }
  .sbs-brand .wp-block-site-logo img { max-height:64px; }
}
@media (max-width:560px) {
  .sbs-cr-stats, .sbs-cr-steps, .sbs-cr-steps-5 { grid-template-columns:minmax(0,1fr); }
}

/* Logo beside the legal name keeps the header compact */
.sbs-brand:has(.wp-block-site-logo img) { display:flex; flex-direction:row; align-items:center; gap:1rem; max-width:440px; }
.sbs-brand:has(.wp-block-site-logo img) .wp-block-site-logo { margin:0; flex-shrink:0; }
.sbs-brand:has(.wp-block-site-logo img) .wp-block-site-title { margin:0; }
@media (max-width:781px) {
  .sbs-brand:has(.wp-block-site-logo img) { gap:.75rem; }
  .sbs-brand:has(.wp-block-site-logo img) .wp-block-site-title { font-size:18px; line-height:1.3; }
}

/* Technical diagrams sit full-width below their text so labels stay legible */
.sbs-cr-diagram { max-width:880px; margin-top:2rem!important; }

/* Why SBS card details from the approved poster */
.sbs-cr-advantage-list { margin:.75rem 0 0; padding-left:1.2em; }
.sbs-cr-advantage-list li + li { margin-top:.35rem; }

/* Linked diagrams: the link wraps the image, so it must be block-level for the image to fill the figure */
.sbs-cr-figure > a { display:block; }
.sbs-cr-figure > a:focus-visible { outline:3px solid #1565c0; outline-offset:4px; border-radius:10px; }
/* Space between a photo and the content above it inside a section */
.sbs-interior-section > .sbs-cr-photo, .sbs-interior-section > .sbs-cr-figure { margin-top:2rem; }
/* A photo standing alone in a section is kept to diagram width so it supports, not dominates, the text */
.sbs-interior-section > .sbs-cr-photo { max-width:880px; }
