/* ============================================================
   LUNCHBOX.KIDS — SHARED TABLET LAYER (769px–1024px)
   Loads AFTER /styles.css. Targets the desktop HTML (.d-only)
   on iPad-class viewports so the sidebar + main content coexist
   without cramping.
   ============================================================ */

@media (min-width: 769px) and (max-width: 1024px) {

  /* ---- Sidebar: collapsed icon rail, slightly wider than default ---- */
  body[data-nav="sidebar"] .shell,
  body:not([data-nav]) .shell {
    display: grid !important;
    grid-template-columns: 96px 1fr !important;
  }
  body[data-nav="sidebar"] .sidebar,
  body:not([data-nav]) .sidebar {
    display: flex !important;
    padding: 28px 14px 22px;
  }
  .topnav {
    display: none !important;
  }
  /* Hide labels when collapsed */
  body[data-nav="sidebar"] .sb-label,
  body:not([data-nav]) .sb-label {
    display: none;
  }
  /* Show the short "Formula" label in the vertical pill */
  body[data-nav="sidebar"] .sidebar .sb-cta .sb-cta-label.desktop,
  body:not([data-nav]) .sidebar .sb-cta .sb-cta-label.desktop {
    display: none !important;
  }
  body[data-nav="sidebar"] .sidebar .sb-cta .sb-cta-label.tablet,
  body:not([data-nav]) .sidebar .sb-cta .sb-cta-label.tablet {
    display: flex !important;
  }
  /* Center the logo now that the collapse button is gone */
  body[data-nav="sidebar"] .sb-logo,
  body:not([data-nav]) .sb-logo {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- Section container: tighter horizontal padding ---- */
  .section-inner {
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  .section-inner.narrow {
    max-width: 720px;
  }

  /* ---- Base body scale nudge for readability ---- */
  html { font-size: 15px; }

  /* ---- Cookie banner: cap width so it doesn't span full tablet ---- */
  .cookie-banner {
    max-width: 560px;
  }

  /* Center nav icons in the collapsed rail */
  body[data-nav="sidebar"] .sb-nav a,
  body:not([data-nav]) .sb-nav a {
    justify-content: center;
    padding: 9px 0;
  }
  /* Hide the "Free" pill on the Lunchbox Formula item */
  body[data-nav="sidebar"] .sb-pill,
  body:not([data-nav]) .sb-pill {
    display: none !important;
  }

  /* Hide the version/meta copy under the CTA */
  body[data-nav="sidebar"] .sb-meta,
  body:not([data-nav]) .sb-meta {
    display: none !important;
  }

  /* Turn "Get the Formula" CTA into a vertical pill saying "Formula" */
  body[data-nav="sidebar"] .sidebar .sb-cta,
  body:not([data-nav]) .sidebar .sb-cta {
    flex-direction: column;
    gap: 0;
    padding: 18px 6px;
    border-radius: 100px;
    width: 44px;
    min-height: 132px;
    align-self: center;
    justify-content: center;
    align-items: center;
  }
  body[data-nav="sidebar"] .sidebar .sb-cta .sb-cta-disc,
  body:not([data-nav]) .sidebar .sb-cta .sb-cta-disc {
    display: none !important;
  }
  body[data-nav="sidebar"] .sidebar .sb-cta .sb-cta-label,
  body:not([data-nav]) .sidebar .sb-cta .sb-cta-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    transform: rotate(180deg);
  }

}


