/* ============================================================
   Quayside OS — refinement layer (skin.css)
   Loaded AFTER qos.css on every page. Approved 2026-07-02.
   Philosophy: elevate the original, never replace it.
   Keeps: Georgia serif · white windows with colored titlebars ·
   patterned wallpaper · tactile sherbet buttons · right dock ·
   full menubar. Changes: the sherbet palette is re tuned to
   harmonize with the Golden Hour identity (quayside-golden-hour/
   BRAND.md), chrome is softened, and every type size is raised
   for older eyes.

   PER PAGE SIGNATURES — set <body data-skin="home"> etc.
   Each page keeps the same system and varies only its accent
   pair (--sig1/--sig2), hero motif, and wallpaper tint.
   Rollback: remove the skin.css link on any page and it reverts
   to the v1 sherbet look — qos.css is untouched.
   ============================================================ */

/* ---------- 1. Golden Hour harmonized sherbet ---------- */
:root{
  --ink:#16324A;            /* Golden Hour ink replaces v1 navy */
  --paper:#FFFEFA;
  --mut:#52657A;            /* darker mut — contrast for older eyes */
  --pink:#F6D3CE;  --pink-d:#B44E44;   /* dusk pink · coral deep text */
  --sky:#C2DCEC;   --blue:#2E6DA4;     /* bay light · bay text */
  --mint:#CDEBDF;  --green:#276B57;    /* turquoise light · sea green text */
  --butter:#F5E2B8;--amber:#8F6410;    /* gold light · gold text */
  --lav:#DFD6F0;   --purple:#6A54B8;
  --aqua:#C6EAE5;  --teal:#1D6E67;
  --coral:#F6D9C6; --orange:#A85A20;
  /* the crisp offset shadow stays, but lighter, with a soft ambient */
  --shadow:6px 7px 0 rgba(22,50,74,.10), 2px 4px 18px rgba(22,50,74,.10);
}
::selection{background:var(--pink);color:var(--ink)}

/* ---------- 2. wallpaper — same pattern, First Light tint ---------- */
html{background:var(--tint-shell,#F6EAE2)} /* overscroll never flashes dark */
body{
  font-size:var(--t-lede);
  min-height:100vh; /* wallpaper always reaches the bottom — no bare backing band on short pages / tall screens */
  background:repeating-linear-gradient(135deg,#FBF4EC 0,#FBF4EC 8px,#F6EAE2 8px,#F6EAE2 9.5px);
}
body.wp2{background:repeating-linear-gradient(135deg,#EFF7F4 0,#EFF7F4 8px,#E2F0EC 8px,#E2F0EC 9.5px)}
body.wp3{background:repeating-linear-gradient(135deg,#F2F0FA 0,#F2F0FA 8px,#E8E4F5 8px,#E8E4F5 9.5px)}
body.wp4{background:repeating-linear-gradient(135deg,#FBF3E0 0,#FBF3E0 8px,#F4E7C6 8px,#F4E7C6 9.5px)}
body.wp5{background:repeating-linear-gradient(135deg,#EEF4FB 0,#EEF4FB 8px,#DFEAF6 8px,#DFEAF6 9.5px)}
body.wp6{background:repeating-linear-gradient(135deg,#FBF1EC 0,#FBF1EC 8px,#F7E2D6 8px,#F7E2D6 9.5px)}
body.wp7{background:repeating-linear-gradient(135deg,#EDF8F7 0,#EDF8F7 8px,#DFF1EF 8px,#DFF1EF 9.5px)}

/* ---------- 3. per page signature accents ---------- */
body[data-skin="home"]{--sig1:#F4C8C3;--sig2:#F0DCAE}       /* golden hour: dusk pink into gold */
body[data-skin="tennis"]{--sig1:#9FDCD4;--sig2:#CDEBDF}     /* midday: turquoise into sea green */
body[data-skin="documents"]{--sig1:#C2DCEC;--sig2:#EAF2F7}  /* first light: bay into cream */
body[data-skin="money"]{--sig1:#F0DCAE;--sig2:#FAF0D8}      /* gold into cream */
body[data-skin="values"]{--sig1:#F5E2B8;--sig2:#C8ECE7}     /* market gold into seaglass */
body[data-skin="fixit"]{--sig1:#A8DCC4;--sig2:#CDEBDF}      /* sea green into mint */
body[data-skin="atlas"]{--sig1:#AFCDE2;--sig2:#C6EAE5}      /* midday bay into aqua */
body[data-skin="briefing"]{--sig1:#F5E2B8;--sig2:#F4C8C3}   /* golden hour: lamplight gold into dusk pink */
body[data-skin="reserve"]{--sig1:#F4C8C3;--sig2:#C2DCEC}    /* dusk pink into bay */
body[data-skin="ideas"]{--sig1:#F0DCAE;--sig2:#F4C8C3}      /* gold into dusk pink */
body[data-skin="welcome"]{--sig1:#F4C8C3;--sig2:#F0DCAE}    /* golden hour, like home */
body[data-skin="run"]{--sig1:#C2DCEC;--sig2:#DFD6F0}        /* civic: bay into lavender */
body[data-skin="vote"]{--sig1:#DFD6F0;--sig2:#CDEBDF}       /* civic: lavender into mint */
body[data-skin="records"]{--sig1:#C2DCEC;--sig2:#F5E2B8}    /* paper trail: bay into gold */
body[data-skin="feed"]{--sig1:#F6D9C6;--sig2:#F5E2B8}       /* the porch: coral into gold */
body[data-skin="events"]{--sig1:#DFD6F0;--sig2:#F6D9C6}     /* the social: lavender into coral */
body[data-skin="homes"]{--sig1:#F5E2B8;--sig2:#C2DCEC}      /* the exchange: market gold into bay blue */
body[data-skin="shop"]{--sig1:#F0DCAE;--sig2:#F6D9C6}      /* the supply table: market gold into coral */
body[data-skin="platform"]{--sig1:#DFD6F0;--sig2:#C2DCEC}   /* civic: lavender into bay */
body[data-skin="leadership"]{--sig1:#B5D2E6;--sig2:#DFD6F0} /* civic: deep bay into lavender */
body[data-skin="ops"]{--sig1:#C2DCEC;--sig2:#CDEBDF}        /* the Standard: bay into mint — the grounds, run well */
.c-hero .titlebar{background:linear-gradient(90deg,var(--sig1,var(--pink)),var(--sig2,var(--butter)))}

/* ---------- 4. refined window chrome ---------- */
.window{border-radius:12px;border-width:1.6px;overflow:hidden}
/* 8/2 · the top corners are PAINTED into the titlebar, not carved by the
   clip — at Retina zoom levels the antialiased overflow edge let the drop
   shadow peek through a sub-pixel seam beside the fold button. */
.titlebar{border-top-left-radius:10px;border-top-right-radius:10px}
.titlebar .x{border-top-right-radius:10px}
.titlebar{height:38px;border-bottom-width:1.6px}
.titlebar .ttl{font-size:var(--t-body);padding:0 15px}
.titlebar .x{width:38px;border-left-width:1.6px}
.winbody{padding:26px 30px;font-size:var(--t-body);line-height:1.7}

/* ---------- 5. tactile buttons, gently modernized ---------- */
.btn{font-size:var(--t-caption);padding:12px 22px;border-radius:999px;
  box-shadow:3px 3px 0 rgba(22,50,74,.16);transition:transform .08s ease;font-family:var(--font-ui)}
.btn:hover{transform:translate(-1px,-1px)}
.btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 rgba(22,50,74,.16)}
.btn.sm{font-size:var(--t-caption);padding:9px 14px;border-radius:999px;font-family:var(--font-ui)}
.btn.chip{font-size:var(--t-caption);border-radius:999px;font-family:var(--font-ui)}

/* ---------- 6. menubar — same items, more presence ---------- */
#menubar{height:42px;font-size:var(--t-body)}
#menubar .item{padding:0 15px}
#menubar #mDate,#menubar .mbx{font-size:var(--t-caption)}
.wiretrack{font-size:var(--t-caption)}
#menubar .brand{font-size:var(--t-caption)}
/* the app icon Q takes the corner — BRAND.md approved use of the glyph */
#menubar .logo{width:20px;height:20px;clip-path:none;
  background:url('logo/q-appicon.svg') center/contain no-repeat}
.micon{font-size:var(--t-lede)}
/* the calendar dropdown hangs from the taller menubar */
#qcal{top:42px}

/* ---------- 7. dock — bigger labels, softer rail ----------
   Desktop-only geometry: MUST stay scoped to min-width:861px.
   (Unscoped, it overrode qos.css's mobile bottom-bar rules and
   pinned a 104px vertical rail to the LEFT of phone screens —
   the "stuck sidebar / scrollbar scrolls the wrong way" bug.) */
@media (min-width:861px){
  .qdock{top:104px;width:104px;overflow-y:auto;max-height:calc(100vh - 132px)}
  #dock{border-radius:0 12px 12px 0}
  #dock2{border-radius:12px 0 0 12px}
  .icon{padding:11px 6px;gap:6px}
}
.icon svg{width:26px;height:26px}
.icon span{font-size:var(--t-caption);color:var(--ink)}
.icon .phch{font-size:var(--t-label)}

/* ---------- 8. panels, palette, calendar pick up the radius ---------- */
.mbpanel{border-radius:12px;overflow:hidden}
#qcal{border-radius:0 0 12px 12px}
#cmdk .box{border-radius:12px;overflow:hidden}
#cmdk input{font-size:var(--t-lede)}
#cmdk .res a{font-size:var(--t-caption)}
.mbpanel .vrow{font-size:var(--t-caption)}
.mbpanel .prow{font-size:var(--t-caption)}
.mbpanel .pf{font-size:var(--t-label)}

/* ---------- 9. content components — larger, higher contrast ---------- */
.stats{border-radius:8px;overflow:hidden}
.stats b{font-size:var(--t-statement)}
.stats span{font-size:var(--t-caption);opacity:.9}
.doc{border-radius:8px;overflow:hidden}
.doc summary b{font-size:var(--t-body)}
.doc .body p{font-size:var(--t-body)}
.doc .tag{font-size:var(--t-label)}
table{font-size:var(--t-caption);border-radius:8px;overflow:hidden}
th{font-size:var(--t-label);font-family:var(--font-ui)}
.pillar{border-radius:0 8px 8px 0}
.pillar b{font-size:var(--t-lede)}
.pillar em,.pillar p{font-size:var(--t-body)}
.tl b{font-size:var(--t-body)}
.tl span{font-size:var(--t-caption)}
.footnote{font-size:var(--t-caption)}
.phasetag{border-radius:4px}
#qostrail a{font-size:var(--t-caption);border-radius:999px}
#qostrail .tlab{font-size:var(--t-label)}

/* ---------- 10. accessibility ---------- */
a:focus-visible,button:focus-visible,.btn:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
@media (max-width:860px){
  /* belt & suspenders: the docks are ALWAYS the stacked bottom bars on mobile */
  /* the sheet grid needs its full height — the old horizontal-strip dock's
     overflow-y:hidden survived into the Rooms-sheet era and cropped every
     fourth tile row (owner's wife's phone, 7/28). */
  .qdock{position:static;width:auto;max-height:none;overflow:visible;border-radius:0}
  #dock{border-radius:12px 12px 0 0}
  .winbody{padding:20px 18px}
}

/* ---------- 11. phone: a window title may not be amputated ----------
   `.ttl` shipped as nowrap + overflow:hidden + ellipsis, which on a 390px
   screen quietly cut seven pages' window titles — unit.html lost 140px of one.
   The titlebar is how a reader knows which window they are in, and phones are
   half this audience. Below 640 the title wraps and the bar grows to fit it;
   above 640 nothing changes, because there the one-line bar is correct.
   (Found 7/31 by the sweep's new clipped-overflow check — the document-level
   scrollWidth metric cannot see overflow that a card clips.) */
@media (max-width:640px){
  .titlebar{height:auto;min-height:38px;align-items:stretch}
  .titlebar .ttl{white-space:normal;overflow:visible;text-overflow:clip;
    line-height:1.28;padding-top:8px;padding-bottom:8px;
    display:flex;align-items:center}
  .titlebar .x{height:auto;align-self:stretch;flex:0 0 38px}
}
