/* On a computer: the journal lies open (desk.js). Everything here is under body.desk; the phone is not touched. */
body.desk .wrap{max-width:1180px}
body.desk .wrap::before{display:none}

/* every page is a sheet of paper on the desk, so the pages share one place and one width */
body.desk .wrap:not(:has(.book)):not(:has(>.page)){background:var(--paper,var(--surface));border:1px solid var(--line-2);padding:26px 34px 40px;min-height:calc(100vh - 136px);
  box-shadow:0 3px 0 color-mix(in srgb,var(--ink) 7%,var(--bg)),0 18px 36px -24px rgba(60,40,10,.45)}

/* the open journal */
body.desk .jg.book{grid-template-columns:clamp(320px,36%,430px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:0;align-items:stretch;background:var(--paper,var(--surface));border:1px solid var(--line-2);
  min-height:calc(100vh - 136px);box-shadow:0 3px 0 color-mix(in srgb,var(--ink) 7%,var(--bg)),0 18px 36px -24px rgba(60,40,10,.45)}
body.desk .book .jmain{grid-column:1;grid-row:1;padding:26px 24px 0 28px}
body.desk .book .jtl{grid-column:1;grid-row:2;padding:0 24px 30px 28px}
body.desk .book .bkr{grid-column:2;grid-row:1/span 2;position:relative;padding:26px 32px 30px;border-inline-start:1px solid var(--line)}
/* the fold between the two pages */
body.desk .book .bkr::before{content:"";position:absolute;inset-block:0;inset-inline-start:-20px;width:40px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(60,40,10,.075) 50%,transparent)}
body.desk .book .bkin{position:sticky;top:0}
body.desk .book .lead0{margin-bottom:10px}

/* the chosen day on the left page */
body.desk .book .daycard[aria-current],body.desk .book .resume[aria-current]{outline:2px solid var(--ink);outline-offset:-2px}

/* the day, opened on the right page: the page itself is the paper */
body.desk .book .page{background:none;border:0;box-shadow:none;padding:0;margin:0;max-width:none}
body.desk .book .page::before,body.desk .book .page::after{display:none}
body.desk .book .taped{grid-template-columns:repeat(2,1fr)}
body.desk .book .dayx{max-width:none}
body.desk .book .jside{display:block;margin-top:24px}
body.desk .book .jside .duo{grid-template-columns:1fr 1fr;gap:12px}

/* a new journal: what a day will look like */
body.desk .book .bkgh{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:10px}
body.desk .book .bkgh .gslot{min-height:190px;font-weight:500}
body.desk .book .bknote{min-height:96px;margin-top:16px;font-weight:500}
