/* ===========================================================================
   RAISED PAPER: the Next Level Brand Experience system (approved by Lisa for
   the builder pages on August 21, 2026), carried into the studio.
   Light from the upper left, a bright rim top-left, a shaded rim bottom-right,
   stacked contact + mid + ambient shadows. Working surfaces are carved in.
   Colors come from the client theme (faceHi, face, faceLo, plate, shade).
   =========================================================================== */
body.studio, body.signin-body {
  --r: 24px; --r-md: 16px; --r-sm: 12px;
  --bevel:
    inset 1.5px 1.5px 0 rgba(255,255,255,0.98),
    inset -1.5px -1.5px 0 rgba(var(--shade),0.30),
    inset 0 4px 8px rgba(255,255,255,0.55),
    inset 0 -5px 10px rgba(var(--shade),0.12);
  --lift-sm: 0 1px 1px rgba(var(--shade),0.22), 0 3px 5px rgba(var(--shade),0.16), 0 7px 14px rgba(var(--shade),0.12);
  --lift: 0 1px 2px rgba(var(--shade),0.24), 0 5px 9px rgba(var(--shade),0.18), 0 14px 26px rgba(var(--shade),0.15), 0 26px 48px rgba(var(--shade),0.10);
  --lift-lg: 0 2px 3px rgba(var(--shade),0.26), 0 8px 14px rgba(var(--shade),0.20), 0 22px 42px rgba(var(--shade),0.17), 0 44px 80px rgba(var(--shade),0.13);
  --carve: inset 2px 3px 7px rgba(var(--shade),0.34), inset -2px -2px 5px rgba(255,255,255,0.96), inset 0 1px 0 rgba(var(--shade),0.20);
  --face-grad: linear-gradient(145deg, var(--faceHi) 0%, var(--face) 46%, var(--faceLo) 100%);
  --face-sunk: linear-gradient(145deg, var(--faceLo) 0%, var(--face) 62%);
  background-color: var(--plate);
  background-image:
    radial-gradient(50% 42% at 12% 16%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(40% 36% at 90% 72%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(34% 30% at 72% 6%, rgba(var(--shade),0.12) 0%, rgba(var(--shade),0) 72%);
  background-attachment: fixed;
}
body.studio .strip { background: transparent; border-bottom-color: rgba(var(--shade),0.22); }
body.studio .mast { border-bottom: none; padding-bottom: 6px; }

/* Tabs: a raised bar of rounded tabs; the current one is pressed in */
body.studio .tabs {
  gap: 6px; margin-top: 26px; padding: 8px; border-radius: var(--r-md);
  background: var(--face-grad); box-shadow: var(--bevel), var(--lift);
}
body.studio .tab {
  border: none; border-radius: var(--r-sm); background: transparent; padding: 11px 16px;
  transition: background .15s, box-shadow .15s, color .15s;
}
body.studio .tab:hover { background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); color: var(--accent); }
body.studio .tab.is-current { background: var(--face-sunk); box-shadow: var(--carve); color: var(--accent); top: 0; }

/* The sheet: the most raised plate on the page */
body.studio .sheet {
  margin-top: 22px; border: none; border-radius: var(--r);
  background: var(--face-grad); box-shadow: var(--bevel), var(--lift-lg);
}
body.studio .part__head { border-bottom-color: rgba(var(--shade),0.30); }
body.studio .piece, body.studio .wf, body.studio .srow, body.studio .lrow, body.studio .road__stop, body.studio .check,
body.studio .blist li, body.studio .btable td, body.studio .links li, body.studio .weblink { border-bottom-color: rgba(var(--shade),0.18); }
body.studio .lab { border-bottom-color: rgba(var(--shade),0.34); }

/* Raised paper objects */
body.studio .cards .card, body.studio .smpage, body.studio .font, body.studio .swatch, body.studio .figure, body.studio .filecard,
body.studio .seccard, body.studio .phase, body.studio .snav__item, body.studio .words li, body.studio .chip, body.studio .tpl,
body.studio .wfw__card, body.studio .up, body.studio .board .card, body.studio .lisanote, body.studio .sblock--lisa {
  border: none; border-radius: var(--r-md); background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm);
}
body.studio .words li, body.studio .chip { border-radius: 13px; }
body.studio .swatch, body.studio .figure, body.studio .filecard, body.studio .tpl, body.studio .up { overflow: hidden; }
body.studio .figure figcaption, body.studio .filecard__preview, body.studio .up__thumb { border-color: rgba(var(--shade),0.18); background: transparent; }
body.studio .figure__img { background: rgba(255,255,255,0.55); }
body.studio .seccard:hover, body.studio .board a.card:hover, body.studio .board button.card:hover, body.studio .snav__item:hover,
body.studio .chip:hover, body.studio .tpl:hover, body.studio .swatch:hover {
  box-shadow: var(--bevel), var(--lift); transform: translateY(-2px); border: none;
}
body.studio .chip[aria-pressed="true"], body.studio .tpl[aria-pressed="true"] { background: var(--face-sunk); box-shadow: var(--carve); color: var(--accent); border: none; transform: none; }
body.studio .snav__item.is-current { background: var(--face-sunk); box-shadow: var(--carve); }
body.studio .snav__item.is-current .snav__date { color: var(--muted); }
body.studio .snav__item.is-current .snav__title { color: var(--accent); }
body.studio .snav__badge { border-radius: 999px; padding: 3px 9px; box-shadow: var(--lift-sm); }
body.studio .phase { border-top: none; }
body.studio .phase.is-current { background: var(--face-sunk); box-shadow: var(--carve); }
body.studio .seccard.is-progress { border-left: none; box-shadow: var(--bevel), var(--lift-sm), inset 3px 0 0 var(--accent2); }
body.studio .seccard.is-done { background: var(--face-sunk); box-shadow: var(--carve); }
body.studio .secnav__chip { border: none; border-radius: 10px; background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); }
body.studio .secnav__chip.is-current { background: var(--accent); color: var(--sheet); box-shadow: var(--carve); }
body.studio .secnav__chip.is-done { background: var(--face-sunk); box-shadow: var(--carve); }

/* Board: columns are carved trays, cards sit raised in them */
body.studio .col { border: none; border-radius: var(--r-md); background: var(--face-sunk); box-shadow: var(--carve); }
body.studio .col__head { border-bottom-color: rgba(var(--shade),0.18); border-top: none !important; position: relative; }
body.studio .col__head::before { content: ''; position: absolute; left: 14px; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--line); }
body.studio .col--todo .col__head::before { background: var(--accent); }
body.studio .col--progress .col__head::before { background: var(--accent2); }
body.studio .col--lisa .col__head::before { background: var(--gold); }
body.studio .board .card--lisa { border: none !important; }
body.studio .board .card--done { opacity: 0.66; }
body.studio .nextbar, body.studio .intro-note, body.studio .websec__intro, body.studio .heardq {
  border: none; border-radius: var(--r-md); background: var(--face-sunk); box-shadow: var(--carve);
}
body.studio .lisanote { padding: 20px 24px; }
body.studio .websec__note, body.studio .wf__example, body.studio .hw__answer { border-radius: var(--r-sm); }

/* Working surfaces are carved in */
body.studio textarea, body.studio input[type="text"], body.studio input[type="url"], body.studio input[type="email"],
body.studio input[type="date"], body.studio select, body.signin-body .field input {
  border: none !important; border-radius: var(--r-sm); background: var(--face-sunk) !important; box-shadow: var(--carve);
}
body.studio textarea:focus, body.studio input:focus, body.studio select:focus, body.signin-body .field input:focus {
  box-shadow: var(--carve), 0 0 0 2px var(--accent2) !important;
}
body.studio .drop { border: none; border-radius: var(--r-md); background: var(--face-sunk); box-shadow: var(--carve); }
body.studio .drop:hover, body.studio .drop.is-over { box-shadow: var(--carve), 0 0 0 2px var(--accent2); }
body.studio .check__box, body.studio .wf__box { border-radius: 5px; }
body.studio .loom { border: none; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--bevel), var(--lift); }

/* Buttons: raised, pressed on click */
body.studio .btn, body.signin-body .btn { border: none; border-radius: var(--r-sm); background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); color: var(--accent); }
body.studio .btn:hover, body.signin-body .btn:hover { box-shadow: var(--bevel), var(--lift); transform: translateY(-1px); background: var(--face-grad); color: var(--accent); }
body.studio .btn:active, body.signin-body .btn:active { box-shadow: var(--carve); transform: translateY(1px); }
body.studio .btn--accent, body.signin-body .btn--accent, body.studio .btn--primary,
body.studio .btn--accent:hover, body.signin-body .btn--accent:hover {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 78%, white) 0%, var(--accent) 52%, color-mix(in srgb, var(--accent) 80%, black) 100%);
  color: var(--sheet);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.30), inset -1px -2px 3px rgba(0,0,0,0.35), var(--lift);
}
body.studio .btn--text, body.studio .btn--text:hover { background: none; box-shadow: none; }
body.studio .wfw__add { border: none; border-radius: var(--r-sm); background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); }
body.studio .copy { border: none; border-radius: 10px; background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); }
body.studio .tag { border-radius: 999px; padding: 4px 10px; }
body.studio .tag--hw { box-shadow: var(--lift-sm); }
body.studio .who { box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), var(--lift-sm); }

/* Task pane */
body.studio dialog.pane { border: none; border-radius: var(--r); background: var(--face-grad); box-shadow: var(--bevel), var(--lift-lg); }

/* Sign in */
body.signin-body .signin__panel { border: none; border-radius: var(--r); background: var(--face-grad); box-shadow: var(--bevel), var(--lift-lg); }

@media (max-width: 640px) {
  body.studio { --r: 18px; --r-md: 14px; }
  body.studio .tabs { padding: 6px; }
}

/* Masthead details sit left, under the title */
body.studio .mast { display: block; }
body.studio .mast__meta { justify-items: start; text-align: left; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 28px; }
body.studio .palette-strip { border: none; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--bevel), var(--lift-sm); }
body.studio .websec__note { border-left: none; background: var(--face-sunk); box-shadow: var(--carve); }

/* ---- Home: the three things, then everything else folded away ---- */
.focus { margin: 4px 0 34px; }
.focus__title { font-size: clamp(34px, 5vw, 52px); line-height: 1.02; margin-bottom: 22px; }
.focus__title em { color: var(--soft); }
.focus__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fcard {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 22px; align-items: center;
  padding: 22px 24px; border-radius: var(--r-md); background: var(--face-grad); box-shadow: var(--bevel), var(--lift);
}
.fcard__num { font-family: var(--display); font-style: italic; font-size: 44px; line-height: 1; color: var(--soft); }
.fcard__title { font-family: var(--display); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; color: var(--accent); }
.fcard__what { margin-top: 4px; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.fcard__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.fcard__list li { position: relative; padding-left: 18px; font-size: 14.5px; }
.fcard__list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 3px; box-shadow: var(--carve); background: var(--face-sunk); }
.fcard__side { display: grid; justify-items: end; gap: 10px; }
.fcard__due { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop); white-space: nowrap; }
.fcard__go { min-width: 140px; }
.fcard.is-done { background: var(--face-sunk); box-shadow: var(--carve); }
.fcard.is-done .fcard__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); }
.fcard__check { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: var(--lift-sm); }
.fcard__check::after { content: ''; position: absolute; left: 15px; top: 9px; width: 8px; height: 16px; border: solid var(--sheet); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.focus__after { margin-top: 18px; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--muted); }

details.fold { margin-top: 16px; border-radius: var(--r-md); background: var(--face-sunk); box-shadow: var(--carve); padding: 0 20px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: 'Open'; margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--gold); }
details.fold[open] > summary::after { content: 'Close'; }
.fold__title { font-family: var(--display); font-size: 22px; color: var(--accent); }
.fold__sub { font-size: 13px; color: var(--muted); }
details.fold[open] { padding-bottom: 20px; }
details.fold .col { background: var(--face-grad); box-shadow: var(--bevel), var(--lift-sm); }
.card--web .card__detail { color: var(--accent); }

@media (max-width: 640px) {
  .fcard { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; }
  .fcard__num { font-size: 30px; }
  .fcard__side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

/* ---- What and why, and one obvious way forward ---- */
.fcard__why { margin-top: 6px; font-size: 14.5px; color: var(--ink); max-width: 62ch; line-height: 1.5; }
.btn--big { padding: 16px 26px; font-size: 12px; }
.backlink { display: inline-block; margin-bottom: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--gold); }
.backlink::before { content: '\2190  '; }
.wf__actions { margin-top: 18px; padding: 22px 24px; border-radius: var(--r-md); background: var(--face-sunk); box-shadow: var(--carve); }
.wf__actions-left { display: grid; gap: 2px; }
.nextup {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label title btn" "label sub btn";
  gap: 2px 20px; align-items: center; margin: 16px 0 6px; padding: 20px 24px; text-decoration: none; color: var(--ink);
  border-radius: var(--r-md); background: var(--face-grad); box-shadow: var(--bevel), var(--lift);
}
.nextup:hover { color: var(--ink); box-shadow: var(--bevel), var(--lift-lg); }
.nextup__label { grid-area: label; font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pop); }
.nextup__title { grid-area: title; font-family: var(--display); font-size: 26px; color: var(--accent); line-height: 1.15; }
.nextup__sub { grid-area: sub; font-size: 14px; color: var(--muted); }
.nextup .btn { grid-area: btn; }
@media (max-width: 640px) {
  .nextup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "title" "sub" "btn"; }
  .nextup .btn { justify-self: start; margin-top: 10px; }
  .wf__actions .btn--big { width: 100%; white-space: normal; }
}
