/* The order card (30 Oct 2026; site/assets/order-card.js renders the markup). Colours come
   only from the tokens in accents.css, which every page loads after this file, so the card
   follows the visitor's light or dark setting. The button to press is the house .btn. */
.order-card{scroll-margin-top:84px;margin:0 0 28px}
/* Until order-card.js has drawn the card (it sets data-ready), hold its height so the page
   below does not jump when it appears. The hold applies only when JavaScript is on (the
   page's head adds the js class); if the script never arrives, it lets go after twelve
   seconds and the fallback stands on its own. A slow script never meets the release. */
.js .order-card:not([data-ready]){min-height:var(--oc-hold,620px);animation:oc-release 0s 12s forwards}
@keyframes oc-release{to{min-height:0}}
/* /order/'s fallback (no link to itself): shown at once without JavaScript, and only after
   the same twelve seconds with it, so a slow load never reads as an error. */
.js .order-card .oc-late{visibility:hidden;animation:oc-show 0s 12s forwards}
@keyframes oc-show{to{visibility:visible}}
/* Measured drawn heights, 30 Oct 2026: about 635px from 768px wide, 735px at 430,
   790px at 390 and 850px at 360. Each hold sits just under, so any jump is a few pixels. */
@media (max-width:760px){.order-card{--oc-hold:720px}}
@media (max-width:420px){.order-card{--oc-hold:780px}}
@media (max-width:370px){.order-card{--oc-hold:835px}}
.order-card .oc{max-width:640px;background:var(--card);border:2px solid var(--lavender);border-radius:14px;padding:20px 18px;box-shadow:0 30px 60px -30px var(--shade);text-align:left}
/* Two lines held on phones, so the price arriving from the server does not move the card. */
.order-card .oc-price{margin:0 0 12px;color:var(--body);font-size:.95rem;line-height:1.45;min-height:2.2rem}
.order-card .oc-price b{font-size:1.5rem;color:var(--ink);letter-spacing:-.02em;margin-right:2px}
.order-card .oc-q{margin:0 0 8px;font-weight:600;color:var(--ink);font-size:1.02rem}
.order-card .oc-row{margin:0 0 8px}
.order-card .oc-line{display:flex;gap:8px;align-items:center}
.order-card .oc-n{flex:0 0 1.5em;color:var(--muted);font-size:.9rem}
.order-card input[type="text"]{flex:1 1 auto;min-width:0;min-height:48px;padding:10px 12px;border-radius:12px;border:1.5px solid var(--field-edge);background:var(--field);color:var(--ink);font:inherit;font-size:16px}
.order-card input[type="text"]:focus{outline:2px solid var(--lavender);outline-offset:1px}
/* The one hint of what to paste: muted ink, 4.5:1 or better in both modes (WebKit's default grey is 2.4:1). */
.order-card input[type="text"]::placeholder{color:var(--muted);opacity:1}
.order-card .oc-del{flex:0 0 auto;min-width:44px;min-height:44px;border-radius:12px;border:1px solid var(--field-edge);background:transparent;color:var(--muted);font-size:1.1rem;cursor:pointer}
.order-card .oc-read{margin:6px 0 0 calc(1.5em + 8px);font-size:.85rem;line-height:1.4;color:var(--lime-ink);min-height:0}
.order-card .oc-read:empty{display:none}
/* A line that needs a look (no street number, no address in the link, the same property twice). */
.order-card .oc-read.oc-warn{color:var(--orange-ink)}
.order-card .oc-add{min-height:44px;margin:2px 0 4px;padding:0 14px;border-radius:999px;border:0;box-shadow:inset 0 0 0 2px var(--lavender);background:transparent;color:var(--ink);font:inherit;font-weight:600;font-size:.85rem;cursor:pointer}
.order-card .oc-add[disabled]{opacity:.45;cursor:default}
.order-card .oc-later{display:flex;gap:10px;align-items:center;min-height:44px;margin:10px 0 0;font-size:.9rem;line-height:1.4;color:var(--body);cursor:pointer}
.order-card .oc-later[hidden]{display:none}
.order-card .oc-later input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--lime-ink)}
.order-card .oc-note{margin:10px 0 0;font-size:.9rem;color:var(--orange-ink)}
.order-card .oc-note:empty{display:none}
.order-card .oc-buy{display:block;width:100%;margin-top:14px;white-space:normal}
.order-card .oc-buy[disabled]{opacity:.7;cursor:progress}
.order-card .oc-clock{margin:10px 0 0;font-weight:600;color:var(--ink);font-size:.92rem}
.order-card .oc-small{margin:8px 0 0;font-size:.8rem;line-height:1.5;color:var(--muted)}
.order-card .oc-who{display:flex;gap:12px;align-items:flex-start;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--hairline)}
.order-card .oc-who img{width:48px;height:48px;border-radius:50%;flex:none;box-shadow:0 0 0 2px var(--lavender)}
.order-card .oc-who p{margin:0;font-size:.85rem;line-height:1.5;color:var(--body)}
.order-card .oc-who b{color:var(--ink)}
.order-card .oc-free{margin:12px 0 0;font-size:.9rem}
.order-card .oc-fallback{margin:0}
@media (max-width:760px),(pointer:coarse){
  .order-card .oc{padding:16px 14px}
  .order-card .oc-price{min-height:3.6rem}
  .order-card .oc-free a,.order-card .oc-who a{display:inline-flex;align-items:center;min-height:44px}
}
/* The landing page's sticky bar hides while the card is on screen (order-card.js). */
.stickycta.oc-off{display:none}

/* ── Ink & Ember: the card is the ink tile (Theo, 1 Nov 2026) ──────────────────
   Scoped to <html data-brand="ember">, so /order/ on the company host keeps the
   Room palette and only the product's surfaces change. The key is a cream pill
   with an ink label, and the brief lets it sit on nothing but this tile — which
   is why the card itself turns ink here rather than only the button changing.
   Source: content/handover/rebrand/ROUND2_one-accent.md, changes 1, 2 and 12. */
:root[data-brand="ember"] .order-card .oc{
  background:var(--tile);border:1px solid var(--tile-rim);color:var(--on-tile-body);
}
:root[data-brand="ember"] .order-card .oc-price,
:root[data-brand="ember"] .order-card .oc-later,
:root[data-brand="ember"] .order-card .oc-who p{color:var(--on-tile-body)}
:root[data-brand="ember"] .order-card .oc-price b,
:root[data-brand="ember"] .order-card .oc-q,
:root[data-brand="ember"] .order-card .oc-clock,
:root[data-brand="ember"] .order-card .oc-who b,
:root[data-brand="ember"] .order-card .oc-add{color:var(--on-tile)}
:root[data-brand="ember"] .order-card .oc-n,
:root[data-brand="ember"] .order-card .oc-small,
:root[data-brand="ember"] .order-card .oc-del{color:var(--on-tile-muted)}
/* The read-back and a line that needs a look: neutral on the tile. Orange is the
   number and never a warning, so a warning is the tile's own ink, weighted. */
:root[data-brand="ember"] .order-card .oc-read{color:var(--on-tile-body)}
:root[data-brand="ember"] .order-card .oc-read.oc-warn,
:root[data-brand="ember"] .order-card .oc-note{color:var(--on-tile);font-weight:600}
/* Fields on the tile, and one focus ring: cream at 2.5px, 3px offset. */
:root[data-brand="ember"] .order-card input[type="text"]{
  background:var(--tile-field);border-color:var(--tile-edge);color:var(--on-tile);
}
:root[data-brand="ember"] .order-card input[type="text"]::placeholder{color:var(--on-tile-muted)}
:root[data-brand="ember"] .order-card input[type="text"]:focus{
  outline:2.5px solid var(--on-tile);outline-offset:3px;border-color:var(--on-tile);
}
:root[data-brand="ember"] .order-card .oc-del{border-color:var(--tile-edge)}
:root[data-brand="ember"] .order-card .oc-add{box-shadow:inset 0 0 0 2px var(--tile-edge)}
:root[data-brand="ember"] .order-card .oc-later input{accent-color:var(--on-tile)}
:root[data-brand="ember"] .order-card .oc-who{border-top-color:var(--tile-edge)}
:root[data-brand="ember"] .order-card .oc-who img{box-shadow:0 0 0 2px var(--tile-edge)}
/* The key: one object, a cream pill with a 3px lower edge, both modes. */
:root[data-brand="ember"] .order-card .oc-buy{
  box-shadow:inset 0 -3px 0 var(--btn-edge);
}
:root[data-brand="ember"] .order-card .oc-buy:focus-visible{
  outline:4px solid var(--on-tile);outline-offset:3px;
}
