/*
  The parent's chrome around a Labs app: masthead, stripe, a slim strip and the footer.
  Brand Kit v3.1, November 5th, 2026. Same look as the front door, in a sheet of its own.

  A Labs app wears its own brand and its own inline stylesheet, so this sheet stands
  alone. brand.css and house.css are never loaded beside it: their element rules would
  restyle the app. Every selector here starts with an ee prefix, every colour is a kit
  value held in an --ee- variable on the chrome blocks only, and nothing is imported.
*/

/* The parent faces the chrome needs. Served from this repo. */
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url("/brand/fonts/instrument-serif-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("/brand/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("/brand/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url("/brand/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2")}
/* Ruled declares its own IBM Plex Mono at weight 400 and asks for weight 500 in two
   places, which it draws with that 400 face. A plain 500 face under the same family
   name would change those two labels. This face is declared at a width of 99% and the
   chrome asks for 99%, so the browser gives it to the chrome and never to the app.
   No glyph is narrowed: the width only sorts which face answers which request. */
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-stretch:99%;font-display:swap;src:url("/brand/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}
/* Fallback faces sized to match, so the chrome does not jump when the real fonts arrive. */
@font-face{font-family:"EE Serif Fallback";src:local("Times New Roman"),local("Times");size-adjust:83%}
@font-face{font-family:"EE Sans Fallback";src:local("Arial"),local("Helvetica Neue");size-adjust:104%}

/* The kit, on the chrome blocks only. */
.ee-skip,.ee-top,.ee-strip,.ee-foot{
  --ee-navy:#0C2B6B; --ee-midnight:#071634; --ee-orange:#C44D1A; --ee-orange-deep:#A8411A; --ee-ember:#F07A30;
  --ee-bone:#F6F2EA; --ee-graphite:#1F1E1B; --ee-muted:#5A5650;
  --ee-line:rgba(12,43,107,.22); --ee-line-soft:rgba(12,43,107,.12);
  --ee-on-navy-muted:#C9D2E6; --ee-on-navy-line:rgba(246,242,234,.24);
  --ee-display:"Instrument Serif","EE Serif Fallback",Georgia,"Times New Roman",serif;
  --ee-body:"Schibsted Grotesk","EE Sans Fallback",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --ee-mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --ee-focus:var(--ee-orange);
  box-sizing:border-box;font-family:var(--ee-body);font-size:1.0625rem;font-weight:400;font-style:normal;line-height:1.55;letter-spacing:normal;text-align:left;text-transform:none;color:var(--ee-graphite);-webkit-font-smoothing:antialiased
}
.ee-top *,.ee-strip *,.ee-foot *{box-sizing:border-box}
.ee-top a:focus-visible,.ee-strip a:focus-visible,.ee-foot a:focus-visible{outline:3px solid var(--ee-focus);outline-offset:3px;border-radius:0}
.ee-wrap{width:min(1240px,100% - 2.5rem);margin-inline:auto}

/* The page around the app, by the one class each app page carries on its body.
   Each app sets html and body to the height of the window and leaves them there: the
   app's stage keeps its old size, and the strip and footer simply follow it down the
   page. Two things need a nudge for the page to scroll as one document and look as it did.
   Keep hides sideways overflow on both html and body, which turns body into a scroller
   of its own and traps the page; body goes back to visible. Ruled and Keep paint a
   window sized wash on body from 720px wide, where the masthead is one row of 76px;
   the wash starts under the masthead so it sits behind the stage exactly as before. */
body.ee-labs{overflow-x:visible;background-position:0 76px}
/* Rounds at Home holds a wheel or a swipe inside its view. Let it pass on to the page
   once the view has reached its end, so the tab bar and the footer can be reached. */
.ee-labs .view{overscroll-behavior:auto}

.ee-skip{position:absolute;left:16px;top:-80px;z-index:60;padding:12px 18px;background:var(--ee-navy);color:var(--ee-bone);font-weight:600;text-decoration:none}
.ee-skip:focus{top:16px;outline:3px solid var(--ee-focus);outline-offset:3px}

/* Masthead. Not sticky here: it would cover the top of the app. Its heights are whole
   pixels (76 in one row, 100 on a phone), within half a pixel of the front door's, so
   the app below starts on a whole pixel and draws exactly as it does alone. */
.ee-top{position:relative;z-index:1;background:var(--ee-bone);border-bottom:1px solid var(--ee-line-soft)}
.ee-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 2rem;padding-block:13px}
.ee-brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ee-navy)}
.ee-mark{display:block;width:30px;height:30px;flex:none}
.ee-mark rect{fill:currentColor}
.ee-mark rect.ee-ob{fill:var(--ee-orange)}
.ee-name{font:400 1.75rem/1 var(--ee-display);letter-spacing:-.01em}
.ee-sub{align-self:flex-end;padding-bottom:.3rem;font-family:var(--ee-mono);font-size:.62rem;font-weight:500;font-stretch:99%;letter-spacing:.2em;text-transform:uppercase;color:var(--ee-muted)}
.ee-nav{display:flex;align-items:center;gap:clamp(.85rem,2.4vw,2.1rem)}
.ee-nav a{position:relative;padding:10px .1rem 11px;font-size:.98rem;font-weight:500;line-height:24px;text-decoration:none;color:var(--ee-graphite)}
.ee-nav a:hover{color:var(--ee-orange)}
.ee-nav a[aria-current]{color:var(--ee-navy)}
.ee-pip{position:absolute;left:50%;bottom:.1rem;width:18px;height:6px;margin-left:-9px;border-radius:50%;background:var(--ee-orange)}
@media (max-width:560px){.ee-row{padding-block:11px 5px}.ee-nav{width:100%;justify-content:space-between;gap:.4rem}.ee-nav a{font-size:.9rem;line-height:22px}}

/* The web stripe: navy, orange, navy. One per page, under the masthead. */
.ee-stripe{height:4px;background:linear-gradient(90deg,var(--ee-navy) 0 33.333%,var(--ee-orange) 33.333% 66.666%,var(--ee-navy) 66.666% 100%)}

/* The parent's strip under the app: whose playground this is, the way back, and the one orange action. */
.ee-strip{position:relative;z-index:1;background:var(--ee-bone);border-top:1px solid var(--ee-line-soft);font-size:.95rem;color:var(--ee-muted)}
.ee-strip-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem 2rem;padding-block:1.1rem}
.ee-of{font-weight:500;color:var(--ee-graphite)}
.ee-strip-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.6rem}
.ee-link{color:var(--ee-navy);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em}
.ee-link:hover{color:var(--ee-orange)}
.ee-btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.6rem;padding:.5rem 1.1rem;border:1px solid var(--ee-orange);border-radius:999px;background:var(--ee-orange);color:#fff;font-weight:600;font-size:.95rem;line-height:1.1;text-decoration:none;cursor:pointer;transition:background-color .2s,border-color .2s,transform .2s cubic-bezier(.25,.7,.15,1)}
.ee-btn:hover{background:var(--ee-orange-deep);border-color:var(--ee-orange-deep)}
.ee-btn:active{transform:translateY(1px)}
.ee-btn svg{display:block;width:1.05em;height:1.05em;flex:none}
.ee-strip a.ee-btn:focus-visible{border-radius:999px}

/* Footer */
.ee-foot{position:relative;z-index:1;--ee-focus:var(--ee-ember);background:var(--ee-midnight);color:var(--ee-bone)}
.ee-foot-grid{display:grid;gap:2rem;padding-block:clamp(2.5rem,5vw,4rem) 1.5rem}
.ee-foot .ee-brand{color:var(--ee-bone)}
.ee-foot .ee-sub{color:var(--ee-on-navy-muted)}
.ee-foot .ee-mark rect.ee-ob{fill:var(--ee-ember)}
.ee-foot-about{margin:1rem 0 0;max-width:28em;color:var(--ee-on-navy-muted);text-wrap:pretty}
.ee-foot-h{margin:0 0 .8rem;font-family:var(--ee-mono);font-size:1rem;font-weight:500;font-stretch:99%;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;color:var(--ee-on-navy-muted)}
.ee-foot-col ul{display:grid;gap:.4rem;margin:0;padding:0;list-style:none}
.ee-foot-col a{text-decoration:none;color:var(--ee-bone)}
.ee-foot-col a:hover{text-decoration:underline;text-underline-offset:.3em}
.ee-foot-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding-block:1.2rem 2rem;border-top:1px solid var(--ee-on-navy-line);font-size:.88rem;color:var(--ee-on-navy-muted)}
@media (min-width:800px){.ee-foot-grid{grid-template-columns:1.4fr 1fr 1fr}}

@media (prefers-reduced-motion:reduce){.ee-btn{transition:none}}
/* Rounds at Home prints its doctor brief. The chrome stays off the paper. */
@media print{.ee-skip,.ee-top,.ee-strip,.ee-foot{display:none!important}}
