/* MyWoolbridge Shared Info Hero V4 — 2026-10-22
   Source: Gitify 2026-10-20, assets 2026-10-20, Contacts V1.1/V1.3,
   OpenPencil Desktop Contact 0:48858 and Political 0:48388.
   Shared only by five pages using info_hero (#62) / info_tabs (#64).
   No global header, cart, checkout or accordion behaviour is changed. */

/* Single geometric shell for policy / offer / delivery / FAQ / contacts. */
@media (min-width: 992px) {
  body.wb-info-page .wb-info-hero.wb-container {
    box-sizing: border-box;
    min-height: 458px;
    padding-top: 34px;
    padding-bottom: 0;
    overflow: hidden;
  }
  body.wb-info-page .wb-info-hero .wb-info-hero__inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    min-height: 392px;
    align-items: center;
    gap: 18px;
  }
  body.wb-info-page .wb-info-hero .wb-info-hero__copy,
  body.wb-info-page .wb-info-hero .wb-info-hero__inner--contacts .wb-info-hero__copy {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 clamp(28px, 4.5vw, 62px);
    text-align: left;
  }
  body.wb-info-page .wb-info-hero__title {
    max-width: 100%;
    margin: 0;
    font-family: var(--wb-font-accent);
    font-weight: 400;
    line-height: 1.09;
    letter-spacing: 0;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  /* Long headings fit their common column instead of overlapping artwork. */
  body.wb-policy-page .wb-info-hero__title {
    font-size: clamp(38px, 3vw, 42px);
    line-height: 1.15;
  }
  body.wb-offer-page .wb-info-hero__title,
  body.wb-delivery-page .wb-info-hero__title {
    font-size: clamp(42px, 3.7vw, 56px);
  }
  body.wb-faq-page .wb-info-hero__title {
    font-size: clamp(56px, 5vw, 80px);
  }
  body.wb-contacts-page .wb-info-hero__title {
    font-size: clamp(56px, 5.25vw, 88px);
  }
  body.wb-info-page .wb-info-hero__subtitle {
    margin: 12px 0 0;
    max-width: 100%;
  }
  body.wb-info-page .wb-info-hero .wb-info-hero__mascot {
    position: static;
    display: block;
    align-self: center;
    justify-self: center;
    box-sizing: border-box;
    width: min(100%, 440px);
    height: 310px;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  /* The policy artwork is a 4096x4096 PNG with huge transparent margins.
     A 360px visible image box prevents it looking four times smaller. */
  body.wb-policy-page .wb-info-hero .wb-info-hero__mascot--policy {
    width: min(100%, 440px);
    height: 360px;
  }
  body.wb-info-page .wb-info-content.wb-container {
    position: relative;
    z-index: 3;
    margin-top: -34px;
    background: transparent;
    border-radius: 0;
  }
  body.wb-info-page .wb-info-content .wb-info-card-shell {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    background: #fff;
  }
  /* Original theme has a disconnected 38px pseudo-cap. The real shell
     provides the cap and corners in one place, preventing double stacking. */
  body.wb-info-page .wb-info-content .wb-info-card-shell::before {
    content: none;
    display: none;
  }
  body.wb-info-page .wb-info-content .wb-info-card-shell .wb-info-tabs,
  body.wb-info-page .wb-info-content .wb-info-card-shell .wb-faq-layout,
  body.wb-info-page .wb-info-content .wb-info-card-shell--contacts .wb-contacts-layout {
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Medium breakpoint uses one-column header and full-width card, but keeps
   a shared background edge. It does not change Bootstrap page typography. */
@media (min-width: 576px) and (max-width: 991.98px) {
  body.wb-info-page .wb-info-hero.wb-container {min-height: 0; padding-bottom: 34px;}
  body.wb-info-page .wb-info-hero .wb-info-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
    min-height: 300px;
    align-items: center;
    gap: 16px;
  }
  body.wb-info-page .wb-info-hero .wb-info-hero__copy {min-width:0;padding:0 0 0 12px;text-align:left;}
  body.wb-info-page .wb-info-hero__title {max-width:100%;font-size:clamp(34px,4vw,46px);line-height:1.12;overflow-wrap:anywhere;}
  body.wb-info-page .wb-info-hero .wb-info-hero__mascot {position:static;width:100%;height:240px;max-height:none;margin:0;object-fit:contain;transform:none;}
  body.wb-info-page .wb-info-content.wb-container {position:relative;z-index:3;margin-top:-34px;background:transparent;}
  body.wb-info-page .wb-info-content .wb-info-card-shell {box-sizing:border-box;max-width:1200px;padding:20px;border-radius:16px 16px 0 0;background:#fff;}
  body.wb-info-page .wb-info-card-shell::before {content:none;display:none;}
  body.wb-info-page .wb-info-card-shell .wb-info-tabs,
  body.wb-info-page .wb-info-card-shell .wb-faq-layout {padding-inline:0;}
}

/* Contacts mobile is already calibrated from OpenPencil; keep its 375px
   sizes and independent panels. Use the SAME wrapper convention elsewhere. */
@media (max-width: 575.98px) {
  body.wb-info-page .wb-info-hero.wb-container {min-height:0;padding-top:0;padding-bottom:16px;overflow:hidden;}
  body.wb-info-page .wb-info-hero .wb-info-hero__inner {
    display:flex;min-height:0;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;
  }
  body.wb-info-page .wb-info-hero .wb-info-hero__copy,
  body.wb-info-page .wb-info-hero .wb-info-hero__inner--contacts .wb-info-hero__copy {
    box-sizing:border-box;order:1;width:100%;padding:14px 0 0;text-align:center;
  }
  body.wb-info-page .wb-info-hero__title,
  body.wb-policy-page .wb-info-hero__title {
    max-width:min(330px,100%);margin:0 auto;
    font-size:24px;font-weight:400;line-height:28px;letter-spacing:0;
    overflow-wrap:break-word;text-align:center;
  }
  body.wb-info-page .wb-info-hero__subtitle {max-width:100%;margin:8px auto 0;}
  body.wb-info-page .wb-info-hero .wb-info-hero__mascot {
    position:static;order:2;display:block;align-self:center;justify-self:center;
    box-sizing:border-box;width:min(221px,68vw);height:auto;max-height:142px;
    margin:20px auto 0;object-fit:contain;transform:none;
  }
  /* PNG's transparent interior needs a taller image canvas, not a much
     larger outer hero. Keep the 375px contact header unchanged. */
  body.wb-policy-page .wb-info-hero .wb-info-hero__mascot--policy {
    width:min(260px,78vw);height:158px;max-height:none;margin:10px auto 0;
  }
  body.wb-info-page .wb-info-content.wb-container {
    position:relative;z-index:3;margin-top:0;background:#fff;padding-bottom:32px;
  }
  body.wb-info-page .wb-info-content .wb-info-card-shell,
  body.wb-policy-page .wb-info-content .wb-info-card-shell--document {
    box-sizing:border-box;max-width:none;min-width:0;padding:0;border-radius:0;background:transparent;
  }
  body.wb-info-page .wb-info-card-shell::before {content:none;display:none;}
  body.wb-info-page .wb-info-card-shell .wb-info-tabs,
  body.wb-info-page .wb-info-card-shell .wb-faq-layout {padding-inline:0;}
}
