/* The demo desk, as a working web app. 23 September 2026.
   The household header sits in the desk plate's quiet field; the lanes carry the otter's poses.
   Jobs open in a side panel (a <dialog>, desk-app.js). Phones get one column and lane tabs (launch.js).
   Classes are prefixed dk- to stay clear of site.css and the kit's small desk. */

.dk-page { background: var(--paper); }

.dk-banner { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; padding: 12px var(--g); background: var(--orange); color: var(--river); font-size: 1rem; font-weight: 500; }
.dk-banner strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.dk-banner a { font-weight: 700; margin-left: auto; }

/* ---------- the household header, on the desk plate ---------- */
/* tall enough to keep both the person on the steps and the otter with its card in frame */
.dk-top { position: relative; display: grid; height: clamp(440px, 52vw, 1040px); overflow: hidden; border-bottom: 2.5px solid var(--river); }
.dk-top > * { grid-area: 1 / 1; }
.dk-top-plate { position: absolute; inset: 0; }
.dk-top-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 48%; }
.dk-top-copy { position: relative; z-index: 2; align-self: start; padding: clamp(24px, 2.6vw, 44px) var(--g) 40px; width: min(60%, 860px); }
.dk-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.dk-tag { padding: 4px 12px; border-radius: 999px; background: var(--river); color: var(--screen); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dk-url { display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px 4px 10px; border-radius: 999px; background: var(--screen); border: 1.5px solid var(--river); font-size: .8125rem; font-weight: 700; }
.dk-url .i { width: 13px; height: 13px; }
.dk-top h1 { font-size: clamp(3.2rem, 7vw, 7.6rem); line-height: .9; margin: 0 0 14px; }
.dk-now { margin: 0 0 22px; font-weight: 700; color: var(--olive); font-size: 1rem; }
.dk-count { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-count li { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 16px 7px; border-radius: 999px; background: var(--screen); box-shadow: 0 0 0 1.5px var(--river) inset; font-size: .9375rem; font-weight: 700; }
.dk-count b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.dk-count .n { background: var(--river); color: var(--screen); }
.dk-count .c { box-shadow: 0 0 0 1.5px var(--olive) inset; }

/* ---------- the body: sidebar and board ---------- */
.dk-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.dk-side { position: sticky; top: 0; display: grid; gap: 18px; padding: 28px 24px 28px var(--g); border-right: 2px solid var(--olive-soft); }
.dk-box { padding: 18px; border: 2px solid var(--river); border-radius: 16px; background: var(--screen); }
.dk-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 .75rem/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.dk-h::before { content: ""; width: 20px; height: 9px; border: 2px solid var(--green); border-radius: 50%; flex: none; }
.dk-people { display: grid; gap: 10px; margin-bottom: 12px; }
.dk-people li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--olive); font-weight: 500; line-height: 1.25; }
.dk-people b { display: block; color: var(--river); font-size: 1rem; }
.dk-people .av { width: 34px; height: 34px; font-size: .875rem; }
.dk-note { margin: 0; padding-top: 12px; border-top: 1.5px dashed var(--olive); font-size: .8125rem; line-height: 1.45; }
.dk-ways ul { display: grid; gap: 12px; }
.dk-ways li { display: flex; gap: 10px; font-size: .8125rem; line-height: 1.35; color: var(--olive); font-weight: 500; }
.dk-ways li b { display: block; color: var(--river); font-size: .9375rem; }
.dk-ways .i { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: #FDE6D3; color: var(--river); }
.dk-side-otter { width: 90%; margin: 4px auto 0; }

.dk-main { padding: 28px var(--g) 56px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.dk-main > * { min-width: 0; }
.dk-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.dk-h2 { font-size: clamp(1.8rem, 2.4vw, 2.5rem); line-height: 1; }
.dk-sub { font-size: .875rem; font-weight: 700; color: var(--olive); }

/* dates: ten working days, each with what falls on it */
.dk-days { display: grid; grid-template-columns: repeat(10, minmax(96px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dk-days li { display: flex; flex-direction: column; gap: 5px; min-height: 118px; padding: 10px 9px; border: 1.5px solid var(--olive-soft); border-radius: 12px; background: rgba(251, 243, 226, .6); }
.dk-days li.today { border: 2px solid var(--river); background: var(--screen); }
.dk-d { display: flex; align-items: baseline; gap: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.dk-d b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--river); letter-spacing: 0; line-height: 1; }
.dk-d { flex-wrap: wrap; }
.dk-d em { font-style: normal; padding: 1px 6px; border-radius: 99px; background: var(--orange); color: var(--river); font-size: .625rem; }
.dk-ev { padding: 4px 7px; border-radius: 7px; font-size: .75rem; font-weight: 700; line-height: 1.25; background: var(--olive-soft); }
.dk-ev.h { background: var(--screen); box-shadow: 0 0 0 1.5px var(--green) inset; }
.dk-ev.n { background: var(--river); color: var(--screen); }
.dk-later { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .875rem; font-weight: 700; color: var(--olive); }

/* ---------- lanes ---------- */
.dk-tabs { display: none; }
.dk-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dk-lane, .dk-lane[hidden] { display: flex; flex-direction: column; padding: 16px 14px 0; border-radius: 18px; background: rgba(251, 243, 226, .55); border: 1.5px solid var(--olive-soft); overflow: hidden; }
.dk-lane.needs { background: #FDE6D3; border: 2px solid var(--river); }
.dk-lane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dk-lane-head h2 { margin: 0; font-size: 1rem; line-height: 1; }
.dk-lane-head .state { font-family: var(--text); font-size: .8125rem; padding: 5px 13px 5px 9px; }
.dk-n { font-family: var(--display); font-size: 2rem; line-height: 1; }
.dk-lane-note { margin: 10px 0 14px; font-size: .875rem; font-weight: 500; color: var(--olive); line-height: 1.4; min-height: 2.8em; }
.dk-jobs { display: grid; gap: 10px; }
.dk-job { display: grid; gap: 7px; width: 100%; padding: 13px 14px 12px; border: 2px solid var(--river); border-radius: 14px; background: var(--screen); color: var(--river); font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.dk-job:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 0 var(--river); }
.dk-job:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.dk-jt { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.dk-jt .i { width: 18px; height: 18px; margin-top: 1px; }
.dk-js { font-size: .875rem; line-height: 1.4; }
.dk-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dk-live .rings { width: 30px; height: 13px; }
.dk-jm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; }
.dk-due { padding: 3px 9px; border-radius: 99px; box-shadow: 0 0 0 1.5px var(--river) inset; }
.dk-src { color: var(--olive); }
.dk-jm .av { margin-left: auto; }
.dk-lane.done .dk-job { border-color: var(--olive); }
.dk-lane.done .dk-jt { color: var(--olive); }
.dk-lane.done .dk-due { box-shadow: 0 0 0 1.5px var(--olive) inset; color: var(--olive); }
.dk-lane.could .dk-job { border-style: dashed; }
.dk-lane-art { width: 86%; max-width: 260px; margin: auto auto -4px; padding-top: 18px; }
.dk-lane.hand .dk-lane-art { width: 100%; max-width: 300px; }

/* ---------- the side panel ---------- */
.dk-panel { position: fixed; inset: 0 0 0 auto; width: min(620px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 22px clamp(18px, 3vw, 36px) 48px; border: 0; border-left: 2.5px solid var(--river); background: var(--screen); color: var(--river); overflow-y: auto; overscroll-behavior: contain; }
.dk-panel::backdrop { background: rgba(14, 59, 40, .42); }
.dk-panel[open] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .dk-panel[open] { animation: dk-slide .32s cubic-bezier(.2, .7, .3, 1); }
}
@keyframes dk-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dk-pan-head { position: sticky; top: -22px; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: -22px calc(-1 * clamp(18px, 3vw, 36px)) 14px; padding: 16px clamp(18px, 3vw, 36px) 12px; background: var(--screen); border-bottom: 1.5px solid var(--olive-soft); }
.dk-close { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--river); border-radius: 50%; background: var(--screen); color: var(--river); cursor: pointer; }
.dk-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dk-close:hover { background: var(--orange); }
.dk-pan-meta { margin: 0 0 8px; font-size: .875rem; font-weight: 700; color: var(--olive); }
.dk-pan-title { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; margin: 0 0 12px; }
.dk-pan-ans { font-family: var(--display); font-size: 1.45rem; line-height: 1.18; margin: 0 0 16px; }
.dk-panel p { font-size: 1rem; }
.dk-pan-sec { border-top: 2px solid var(--river); padding-top: 16px; margin-top: 18px; }
.dk-pan-sec p { margin: 0 0 10px; }
.dk-panel .trail2 { font-size: .9375rem; margin-top: 16px; }
.dk-panel .trail2 q::before { content: "\201C"; } .dk-panel .trail2 q::after { content: "\201D"; }
.dk-letter { margin: 0 8px 8px 0; font-size: .8125rem; }
.dk-letter-h { margin: 0 0 8px; font: 700 .9375rem/1.2 var(--text); color: var(--river); }
.dk-replies { display: grid; gap: 10px; }
.dk-replies li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: .9375rem; }
.dk-replies .reply { justify-self: start; background: var(--orange); }
.dk-replies .slot { font-size: .75rem; }
.dk-tracker { margin: 12px 0 4px; }
.dk-tracker .tracker-head { padding: 12px 16px 10px; }
.dk-tracker .tracker-head .q { font-size: 1.15rem; }
.dk-tracker li { padding: 9px 16px; font-size: .875rem; }
.dk-tracker .say { font-size: .8125rem; }
.dk-tracker .tracker-foot { padding: 10px 16px; }
.dk-w14 { width: 14%; } .dk-w65 { width: 65%; }
.dk-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.dk-shot { display: grid; gap: 4px; padding: 12px; border: 1.5px solid var(--olive); border-radius: 14px; background: #fff; font-size: .8125rem; line-height: 1.4; }
.dk-shot b { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--olive); }
.dk-shot mark { background: rgba(255, 122, 61, .38); color: var(--river); font-weight: 700; padding: 0 2px; }
.dk-link { padding: 0; border: 0; background: none; color: var(--river); font: 700 1rem var(--text); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- close ---------- */
.dk-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; padding: clamp(56px, 7vw, 110px) var(--g); border-top: 3px solid var(--river); }
.dk-cta h2 { font-size: clamp(2.6rem, 5vw, 5.6rem); max-width: 13ch; margin-bottom: 18px; }
.dk-cta .actions { margin: 0; }

/* ---------- tablet: sidebar goes under, two lanes a row ---------- */
@media (max-width: 1199px) {
  .dk-body { grid-template-columns: minmax(0, 1fr); }
  .dk-side { position: static; order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-top: 2px solid var(--olive-soft); padding: 28px var(--g); }
  .dk-side-otter { display: none; }
  .dk-main { padding: 28px var(--g) 40px; }
  .dk-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-top-copy { width: min(72%, 760px); }
}

/* ---------- phones: one column, lane tabs ---------- */
@media (max-width: 760px) {
  .dk-banner { padding: 10px 16px; font-size: .9375rem; }
  .dk-banner strong { font-size: 1.15rem; }
  .dk-banner a { margin-left: 0; }
  .dk-top { display: flex; flex-direction: column; height: auto; }
  .dk-top-plate { position: static; }
  .dk-top-copy { order: -1; width: auto; padding: 24px 16px 4px; }
  .dk-top-plate img { height: 52vw; object-position: 100% 55%; }
  .dk-top h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .dk-now { font-size: .875rem; margin-bottom: 16px; }
  .dk-count { gap: 5px; }
  .dk-count li { gap: 5px; padding: 4px 9px 5px; font-size: .75rem; }
  .dk-count b { font-size: 1.2rem; }
  .dk-main { padding: 24px 16px 32px; gap: 22px; }
  .dk-days { grid-template-columns: repeat(10, 108px); margin-right: -16px; padding-right: 16px; }
  .dk-tabs { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: repeat(4, auto); gap: 4px; margin: 0 -16px; padding: 10px 16px; background: var(--paper); border-bottom: 1.5px solid var(--olive-soft); overflow-x: auto; }
  .dk-tabs [role="tab"] { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--river); border-radius: 999px; background: var(--screen); color: var(--river); font: 700 .8125rem/1 var(--text); white-space: nowrap; cursor: pointer; }
  .dk-tabs [role="tab"] em { font-style: normal; }
  .dk-tabs [aria-selected="true"] { background: var(--river); color: var(--screen); }
  .dk-lanes { grid-template-columns: minmax(0, 1fr); }
  .js .dk-lane[hidden] { display: none; }
  .dk-lane-note { min-height: 0; }
  .dk-lane-art { max-width: 200px; }
  .dk-side { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  .dk-panel { width: 100vw; border-left: 0; padding: 18px 16px 40px; }
  .dk-pan-head { margin: -18px -16px 14px; padding: 12px 16px 10px; top: -18px; }
  .dk-shots { grid-template-columns: minmax(0, 1fr); }
  .dk-replies li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dk-cta { padding: 48px 16px 64px; }
}
