/* CALIBRE consolidated pricing: small-screen wrapping and anchor clearance. */
#pricing-tiers,#in-person{scroll-margin-top:6rem}
#in-person .cip-note{border:1px solid rgba(255,255,255,.25);background:#111;color:#fff;border-radius:8px;padding:16px 18px;margin-top:24px;margin-bottom:24px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
#in-person .cip-note strong{display:block;font-size:16px;margin-bottom:4px}
#in-person .cip-note a{color:#fff;text-decoration:underline;text-underline-offset:4px}
#in-person a{min-height:44px;overflow-wrap:anywhere}
#in-person [data-testid="inperson-blocks"] li>span:last-child{flex-wrap:wrap}
@media(max-width:639px){#in-person [data-testid="inperson-blocks"] li{display:flex;flex-direction:column;align-items:flex-start;gap:8px}#in-person [data-testid="inperson-blocks"] li>span:last-child{width:100%;justify-content:space-between}#in-person [data-testid="inperson-blocks"]{padding:20px}}


/* CALIBRE mobile QC follow-up: presentation only; no content or checkout changes. */
@media (max-width: 1023px) {
  /* Use one measured sticky-header offset, not root padding plus section margin. */
  html {
    scroll-padding-top: 0;
    overflow-x: clip;
  }
  #pricing-tiers,
  #in-person {
    scroll-margin-top: calc(var(--calibre-mobile-header-height, 65px) + 12px);
  }
  /* Keep the mobile header in normal sticky flow and avoid backdrop-compositing clipping. */
  body > header {
    position: sticky;
    top: 0;
    inset-block-start: 0;
    z-index: 50;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-black, #090909);
    padding-top: env(safe-area-inset-top, 0px);
  }
  body > header > .canvas {
    height: 64px;
    min-height: 64px;
    align-items: center;
    overflow: visible;
  }
  body > header a[aria-label="CALIBRE home"] {
    flex-shrink: 0;
    min-height: 44px;
  }
  body > header a[aria-label="CALIBRE home"] picture {
    display: block;
    line-height: 0;
  }
  body > header a[aria-label="CALIBRE home"] img {
    display: block;
    height: 22px;
    width: auto;
    max-height: 28px;
    object-fit: contain;
  }
  /* min-height has no effect on an inline box: give actual links a flex box. */
  #in-person a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
    box-sizing: border-box;
  }
  /* The single-session price is existing non-link text; keep it non-link text. */
  #in-person > ul > li:first-child > span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (max-width: 639px) {
  /* All three comparison columns fit at 360px; horizontal scrolling remains a fallback. */
  [aria-label="Standard and Pro comparison"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a3a3a3 #171717;
  }
  [aria-label="Standard and Pro comparison"] table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  [aria-label="Standard and Pro comparison"] th,
  [aria-label="Standard and Pro comparison"] td {
    padding-right: 8px;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 12px;
    line-height: 1.45;
  }
  [aria-label="Standard and Pro comparison"] tr > :first-child { width: 42%; }
  [aria-label="Standard and Pro comparison"] tr > :nth-child(2),
  [aria-label="Standard and Pro comparison"] tr > :nth-child(3) { width: 29%; }
  [aria-label="Standard and Pro comparison"] tr > :last-child { padding-right: 0; }
  [aria-label="Standard and Pro comparison"] thead .overline {
    display: block;
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
  }
}
