/* ============================================================================
   KORB HEALTH — THE PAGE CHROME FOR HAND-BUILT TOOLS

   Brand cream behind, a lighter sheet of paper in front, a hairline down each
   side. It is the only thing telling a reader where the document starts and the
   desk ends, and it is why a KORB page looks like a KORB page.

   WHY THIS FILE EXISTS. The 26 generated patient pages get this from the
   @media screen block in build-patient-ed.js. Every hand-built tool rendered
   white, edge to edge, with no document surface at all - measured across all 62
   tracked pages on 2026-09-18, 50 had it and 12 did not, and the 12 were the
   hand-built ones. Don spotted it on the Treatment Schedule, then the
   Testosterone Tracker and the GLP-1 Dose Guide, and asked for the set.

   Writing the same eight lines into eleven files is what this repo exists to
   prevent, so it is one file that they link.

   NO WIDTH HERE, DELIBERATELY. Every one of these tools already has a
   constrained .wrap, and they are not the same width and should not be: 560px
   for the Functional Health Tracker, 720 for the Testosterone Tracker, 1180 for
   the scheduler prototypes, which carry a wide table. This file paints the
   column each tool already has rather than imposing one.

   SCREEN ONLY. The print sheet stays white - a cream flood wastes ink and
   prints muddy. Same reasoning as the generated set.

   LINK IT AFTER THE PAGE'S OWN <style> BLOCK. These rules and a page's own
   body{background:#fff} have equal specificity, so the later one wins. Linked
   before, this file does nothing at all and does it silently.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   OPT-IN, and this is the whole lesson of 2026-09-19.

   The first version of this file painted `.wrap` directly, on the strength of a
   survey that found every hand-built tool had a constrained, transparent .wrap.
   True of eleven of them. On KORB_Patient_Hub.html, `.wrap` is a generic width
   limiter used THIRTEEN times - the nav, four resource sections, the AI section,
   the safety block - so the rule painted thirteen stacked full-viewport cream
   boxes and the hub rendered as an empty panel with the nav floating in it.
   That page is the one shared with the website developer.

   The check missed it because it read `document.querySelector('.wrap')` - the
   FIRST one - confirmed its background and measured no overflow. Every one of
   those assertions was true. None of them asked whether .wrap was the document
   or merely an element on it. A SHARED STYLESHEET MUST BE ASKED FOR, NOT
   INFERRED, so a page now opts in with `class="korb-sheet"` on its <body> and a
   page that does not say so is not touched.
   --------------------------------------------------------------------------- */

@media screen {
  body.korb-sheet { background: #ECE9D1; }          /* the desk */

  body.korb-sheet .wrap {
    background: #FBFAF6;                  /* the sheet */
    border-left: 1px solid #DEDBC4;
    border-right: 1px solid #DEDBC4;
    min-height: 100vh;                    /* run the sides to the bottom */
    box-sizing: border-box;
  }
}
