/* Page styles for nuvelith: only what sits inside a demo and the design kit lacks.
   Colours come from tokens.css and the kit's --u-* interface tokens. */

/* Demo product colours: the made-up cake and shirt, used nowhere else. */
:root {
  --demo-vanilla: #ead9b4;
  --demo-chocolate: #6b4a36;
  --demo-raspberry: #b8415a;
  --demo-pistachio: #9bb074;
  --demo-sand: #d8c9ac;
  --demo-white: #f6f5f1;
}


/* Section pieces */
.facts { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.facts > li { padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.stack-5 > * + * { margin-top: var(--s-5); }
.tab-panels { margin-block: var(--s-5); min-height: 104px; }
.tab-panels p { max-width: 56ch; }
.statement__facts { margin-top: auto; }
.quote__panel { --p-h: 264px; height: var(--p-h); }
@media (min-width: 1024px) { .section .frame--split { --ratio: 110%; } }
.card--form { padding: var(--s-7); background: var(--bg); border: 0; }

#cakes .panel, #paperwork .panel { --p-h: 336px; }

.compare { display: grid; margin-top: var(--s-7); }
.compare > .grid { align-items: center; min-height: 48px; padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.compare__head { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.compare [role="rowheader"] { font-weight: 500; }

/* Hero: the order card that plays over the staff app window */
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.hero__art { --action: var(--p-ink); --ink: var(--p-ink); }
.hero__art > .ly-piece--main { --fx-bg: var(--p-paper); --fx-surface: color-mix(in oklab, var(--p-ink) 5%, var(--p-paper)); --fx-ink: var(--p-ink); --fx-muted: var(--p-muted); --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); }
.hero__art > .ly-piece--main .ui-win { width: 100%; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); z-index: 2; width: 300px; }
.note-card { padding: var(--s-4); font: 400 13px/20px var(--font-text); color: var(--p-ink); background: var(--p-paper); border-radius: var(--r-md); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 8%, transparent), 0 16px 40px -16px color-mix(in oklab, var(--p-ink) 45%, transparent); }
.note-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-2); font-size: 14px; }
.note-card b { font-weight: 500; }
.note-card__chip { padding: 2px var(--s-2); font-size: 12px; font-weight: 500; color: var(--p-accent-ink); background: var(--p-accent); border-radius: var(--r-sm); }
.note-card__line { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-2); border-top: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent); }
.note-card__line i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; font: 500 12px/1 var(--font-text); color: var(--p-ink); background: color-mix(in oklab, var(--p-ink) 9%, var(--p-paper)); border-radius: 50%; }
.note-card__line i.is-new { color: var(--p-accent-ink); background: var(--p-accent); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 272px; } }

/* The order screen of the staff app scene */
.order-screen .pa__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-4); padding: 14px var(--s-5); border-bottom: 1px solid var(--line); }
.order-screen .pa__row:last-child { border-bottom: 0; }
.order-screen .pa__row--action { display: flex; flex-wrap: wrap; }
.order-screen__head { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; font-weight: 500; }
.order-screen small { font-size: 13px; font-weight: 400; color: var(--muted); }
.order-screen__from { font-size: 13px; color: var(--muted); }
.order-screen__from b { display: block; font-weight: 500; color: var(--ink); }
.order-screen .qty { font-size: 13px; color: var(--muted); }
.order-screen .amt { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.order-screen__total { font-size: 15px; font-weight: 500; }
.order-screen__state { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 13px; color: var(--muted); white-space: nowrap; }
.order-screen__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Demo interface pieces, drawn with the kit's interface tokens */
.d-lines { display: grid; margin: 0; font-size: 13px; line-height: 20px; }
.d-lines > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-2); border-bottom: 1px solid var(--u-line); }
.d-lines dd { margin: 0; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.d-lines__total { font-weight: 500; }
.d-bar .ui-btn { height: 44px; padding-inline: var(--s-5); cursor: pointer; border: 0; font-family: inherit; }
.d-bar span.ui-btn { cursor: default; }

.frame > .stage > .d-screen.at-rise { --fit-max: 548px; --ax: 40px; --ay: 40px; }
.d-lines--pad { padding: var(--s-2) var(--s-4) 0; }
.d-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--u-line); border-bottom: 1px solid var(--u-line); }
.d-figures > div { display: grid; gap: var(--s-1); padding: var(--s-4); background: var(--u-bg); }
.d-figures dt { font-size: 12px; line-height: 16px; color: var(--u-muted); }
.d-figures dd { margin: 0; font: 500 20px/28px var(--font-mono); letter-spacing: -0.02em; }
.d-figures .is-result dd { color: var(--u-accent-text); }
.d-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: var(--s-3); height: 96px; padding: var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--u-line); }
.d-bars > i { height: calc(var(--k) * 100%); border-radius: var(--u-r3) var(--u-r3) 0 0; background: var(--u-fill-3); }
.d-bars > i.is-on { background: var(--u-accent); }
.d-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--u-line); }
.d-bar__text { font-size: 13px; line-height: 20px; }
.d-bar__text b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

/* Floor plan */
.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4); background: var(--u-fill); }
.plan__zone { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--u-muted); }
.plan__t { display: grid; place-items: center; height: 56px; padding: 0; font: 500 13px/1 var(--font-mono); color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-line-2); border-radius: var(--u-r3); }
button.plan__t { cursor: pointer; }
.plan__t--round { border-radius: 28px; }
.plan__t--wide { grid-column: span 2; }
.plan__t.is-taken { color: var(--u-soft); background: var(--u-fill-3); border-color: transparent; }
.plan__t.is-on { color: var(--u-accent-ink); background: var(--u-accent); border-color: var(--u-accent); }

/* Menu at the table */
.d-menu { display: grid; margin: 0; padding: 0 var(--s-4); list-style: none; font-size: 13px; line-height: 20px; }
.d-menu > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--u-line); }
.d-menu__name { display: grid; font-weight: 500; }
.d-menu__name small { font-size: 12px; font-weight: 400; color: var(--u-muted); }
.d-menu__price { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.d-menu .ui-btn { height: 44px; min-width: 56px; cursor: pointer; font-family: inherit; }
.d-menu--more > li { grid-template-columns: minmax(0, 1fr) auto; }

/* Kitchen tickets */
.d-tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4); background: var(--u-fill); }
.d-ticket { display: grid; align-content: start; gap: var(--s-1); min-height: 148px; padding: var(--s-3) var(--s-4); font: 400 13px/20px var(--font-text); color: var(--u-ink); text-align: left; background: var(--u-bg); border: 1px solid var(--u-line-2); border-radius: var(--u-r2); cursor: pointer; }
.d-ticket__head { display: flex; justify-content: space-between; font-weight: 500; }
.d-ticket__head time { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--u-muted); }
.d-ticket__note { color: var(--u-muted); }
.d-ticket .ui-chip { justify-self: start; margin-top: var(--s-2); font-style: normal; }
.d-ticket[data-state="done"] { background: var(--u-fill-2); }

/* Cake designer */
.d-designer { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.d-designer__draw { display: grid; place-items: end center; padding: var(--s-5) var(--s-4) var(--s-6); background: var(--u-fill); border-right: 1px solid var(--u-line); }
.d-designer__opts { display: grid; align-content: start; }
.d-opt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--u-line); font-size: 13px; line-height: 20px; }
.d-opt__label { flex: 0 0 72px; color: var(--u-muted); }
.d-opt--plain { padding-block: var(--s-3); }
.d-pick { height: 44px; min-width: 44px; padding: 0 var(--s-4); font: 500 13px/1 var(--font-text); color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-line-2); border-radius: var(--u-r3); cursor: pointer; }
.d-pick.is-on { color: var(--u-bg); background: var(--u-ink); border-color: var(--u-ink); }

.cake { display: grid; justify-items: center; width: 176px; }
.cake__tier { display: block; height: 52px; border-radius: 8px 8px 4px 4px; background: linear-gradient(to bottom, var(--sponge) 0 38%, var(--filling) 38% 52%, var(--sponge) 52% 100%); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-ink) 14%, transparent); --sponge: var(--demo-vanilla); --filling: var(--demo-raspberry); }
.cake__tier:nth-child(1) { width: 44%; }
.cake__tier:nth-child(2) { width: 68%; }
.cake__tier:nth-child(3) { width: 92%; }
.cake__tier[hidden] { display: none; }
.cake__tier[data-sponge="chocolate"] { --sponge: var(--demo-chocolate); }
.cake__tier[data-filling="pistachio"] { --filling: var(--demo-pistachio); }
.cake__plate { display: block; width: 100%; height: 6px; margin-top: 2px; border-radius: 3px; background: var(--u-fill-3); }

/* Stock list */
.d-stock__list { display: grid; margin: 0; padding: 0 var(--s-4); list-style: none; font-size: 13px; line-height: 20px; }
.d-stock__list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px auto; align-items: center; gap: var(--s-2); min-height: 56px; border-bottom: 1px solid var(--u-line); }
.d-stock__list > li[aria-hidden] { grid-template-columns: minmax(0, 1fr) 32px; padding-right: 52px; }
.d-stock__list b { font: 500 12px/1 var(--font-mono); text-align: center; }
.d-stock__list li.is-out > span { color: var(--u-muted); text-decoration: line-through; }
.d-step { width: 44px; height: 44px; padding: 0; font: 400 16px/1 var(--font-text); color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-line-2); border-radius: var(--u-r3); cursor: pointer; }
.d-invoice { padding: var(--s-4); }
.d-invoice > .ui-head { padding: 0 0 var(--s-3); }

/* Shirt design studio */
.d-studio__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.d-studio__tools { display: grid; align-content: start; border-left: 1px solid var(--u-line); }
.d-field { padding: var(--s-3) var(--s-4) var(--s-1); font-size: 12px; line-height: 16px; color: var(--u-muted); }
.d-input { height: 44px; margin: 0 var(--s-4) var(--s-3); padding: 0 var(--s-3); font: 400 16px/1 var(--font-text); color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-line-2); border-radius: var(--u-r3); min-width: 0; }
.d-studio__tools > .d-opt:first-of-type { border-top: 1px solid var(--u-line); }
.d-swatch { width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.d-swatch::before { content: ""; display: block; width: 28px; height: 28px; margin: auto; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-ink) 18%, transparent); }
.d-swatch.is-on::before { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-ink) 18%, transparent), 0 0 0 2px var(--u-bg), 0 0 0 4px var(--u-ink); }
.d-swatch[data-shirt-colour="sand"], .shirt[data-colour="sand"] { --swatch: var(--demo-sand); }
.d-swatch[data-shirt-colour="ink"], .shirt[data-colour="ink"] { --swatch: var(--p-ink); }
.d-swatch[data-shirt-colour="blue"], .shirt[data-colour="blue"] { --swatch: var(--p-accent); }
.d-swatch[data-shirt-colour="white"], .shirt[data-colour="white"] { --swatch: var(--demo-white); }

.shirt { position: relative; display: grid; place-items: center; padding: var(--s-5); background: var(--u-fill); --swatch: var(--demo-sand); }
.shirt svg { display: block; width: 100%; height: auto; }
.shirt__body { fill: var(--swatch); stroke: color-mix(in oklab, var(--u-ink) 22%, transparent); stroke-width: 1.5; }
.shirt__print { position: absolute; left: 30%; right: 30%; top: 40%; font: 500 15px/1.15 var(--font-display); letter-spacing: -0.02em; text-align: center; color: var(--u-ink); overflow-wrap: anywhere; }
.shirt[data-colour="ink"] .shirt__print, .shirt[data-colour="blue"] .shirt__print { color: var(--demo-white); }

@media (max-width: 639px) {
  .frame > .stage > .d-screen.at-rise { --ax: 16px; --ay: 16px; }
  #cakes .panel { --p-h: 264px; }
  #cakes .card:first-child .panel { --p-h: 400px; }
  #paperwork .panel { --p-h: 352px; }
  .section .frame--split:has(.d-screen) { --ratio: 135%; }
  #shop .frame--split { --ratio: 165%; }
  .d-designer { grid-template-columns: minmax(0, 1fr); }
  .d-designer__draw { display: none; }
  .d-studio__body { grid-template-columns: minmax(0, 1fr); }
  .d-studio__tools { border-left: 0; }
  .shirt { padding: var(--s-3) var(--s-8); }
}
