/* Lamplight, dash: the site's look since October 17, 2026 (the founder's pick). Every rule is scoped to
   html[data-look="lamplight"], which each page sets on its <html> tag; without it the page falls back to styles.css. */

/* ============================== Both dashboards (one copy since November 16, 2026: linked right before admin-dash.css and tutor-dash.css) ============================== */
/* The dashboards are working tools, so the look is used calmly: the lamp lights the top numbers and the open
   tab; panels have a gentle depth; amber is kept for the main action and the key figures; headings are
   Caslon (the page title Caslon Display, section titles Caslon Text), the live figures Caslon Text with tabular
   lining figures, every table cell and number in a column Radio Canada with tabular figures; status colours
   keep their own meaning. Motion: only the small press and hover feedback that was already there. */
html[data-look="lamplight"] body:has(> main.dash){
  --dd-depth:inset 0 1px 0 rgba(255,226,186,.26), inset 0 0 0 1px rgba(244,182,110,.13), 0 2px 3px rgba(4,1,2,.5), 0 24px 50px -30px rgba(4,1,2,.92);
  --dd-pick:linear-gradient(180deg, rgba(255,214,170,.12), rgba(255,214,170,.03)), var(--raise-2);
  --dd-cell:rgba(255,214,170,.045);
  --dd-cell-edge:rgba(244,190,130,.24);
  /* the ground: the lamp's pool in the top right corner, fading out before the first panels below the numbers */
  background:radial-gradient(62vw 460px at 100% 0%, rgba(255,176,104,.075), rgba(255,176,104,.02) 52%, transparent 80%) no-repeat, var(--ll-base);
}

/* ---- The title and the numbers at the top ---- */
html[data-look="lamplight"] main.dash .dash-title{font-weight:400; font-size:clamp(2.125rem, 4vw, 3.125rem); line-height:1.04; letter-spacing:-0.006em;}
html[data-look="lamplight"] main.dash .signed-in-as{color:var(--ll-ink-3);}
/* The numbers sit on one lit panel, the key figure under the lamp (its light from the top right) */
html[data-look="lamplight"] main.dash .dash-nums{
  position:relative; isolation:isolate; padding:clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px); border-top:0; border-radius:24px;
  background:radial-gradient(56% 130% at 100% 0%, rgba(255,192,122,.15), rgba(255,180,110,.04) 52%, transparent 80%), var(--ll-panel-bg);
  box-shadow:var(--dd-depth);}
html[data-look="lamplight"] main.dash .dash-big-label{color:var(--ll-amber-2);}
html[data-look="lamplight"] main.dash .dash-big{color:var(--ll-paper); text-shadow:0 0 44px rgba(255,186,110,.2);}
/* The big figure in the book face (Hanken at weight 200 drew the admin's "1" as a thin stray line, lead's review).
   Caslon Text, not Display: the dashboards refresh every 5 seconds and only Caslon Text has figures of one width
   (tabular-nums), so a new figure never makes the line jump. */
html[data-look="lamplight"] main.dash .dash-big{font-family:var(--ll-serif); font-weight:400; letter-spacing:0; font-variant-numeric:lining-nums tabular-nums;}
html[data-look="lamplight"] main.dash .dash-big .cur{color:var(--ll-amber); font-weight:400;}
html[data-look="lamplight"] main.dash .dash-big .online-mark{text-shadow:none;}
html[data-look="lamplight"] main.dash .dash-big-note{color:var(--ll-ink-2);}
html[data-look="lamplight"] main.dash .dash-small::before{background:linear-gradient(180deg, rgba(244,182,110,.04), rgba(244,182,110,.34) 40%, rgba(244,182,110,.06));}
html[data-look="lamplight"] main.dash .dash-small dt{color:var(--ll-ink-2);}
html[data-look="lamplight"] main.dash .dash-small dd{color:var(--ll-paper);}
@media (max-width:720px){
  html[data-look="lamplight"] main.dash .dash-nums{padding:20px 18px 6px; border-radius:20px;}
  html[data-look="lamplight"] main.dash .dash-small > div:first-child{border-top-color:var(--ll-line);}
}

/* ---- The tabs: separate soft buttons on phones and tablets, a menu down the left on computers ---- */
/* The open tab is the site's picked state: the raised fill, the lamp's 2px edge and a little of its light */
html[data-look="lamplight"] main.dash .dash-tabs .tab-btn[aria-selected="true"]{
  background:var(--dd-pick); color:var(--ll-paper); box-shadow:inset 0 0 0 2px var(--ll-pick), 0 8px 20px -12px rgba(244,160,80,.5);}
html[data-look="lamplight"] main.dash .tab-badge{background:var(--ll-paper); color:#2A0D07;}
/* Pointing at a tab (a tablet with a mouse): a brighter brass edge, never the lamp's 2px edge of the open one */
@media (max-width:1023px) and (hover:hover) and (pointer:fine){
  html[data-look="lamplight"] main.dash .dash-tabs .tab-btn:not([aria-selected="true"]):hover{background-color:rgba(255,214,170,.11); box-shadow:inset 0 0 0 1px rgba(244,182,110,.8), var(--btn2-depth);}
}
@media (min-width:1024px){
  html[data-look="lamplight"] main.dash .dash-tabs-label{color:var(--ll-brass);}
  html[data-look="lamplight"] main.dash .dash-tabs .tab-btn{color:var(--ll-ink-2);}
  html[data-look="lamplight"] main.dash .dash-tabs .tab-btn[aria-selected="true"]{color:var(--ll-paper); box-shadow:inset 0 0 0 2px var(--ll-pick), 0 6px 16px -10px rgba(244,160,80,.45);}
}
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  html[data-look="lamplight"] main.dash .dash-tabs .tab-btn:not([aria-selected="true"]):hover{background-color:rgba(255,214,170,.07); color:var(--ll-paper);}
}

/* ---- Headings in a tab: the book face; a new part starts on a seam of light, brightest at its start ---- */
html[data-look="lamplight"] main.dash :is(.section-title, .dash-h){font-family:var(--ll-serif); font-weight:400; font-size:1.5rem; line-height:1.2; letter-spacing:-0.004em;}
html[data-look="lamplight"] main.dash .dash-h{border-top-color:transparent; background:var(--ll-seam-l) top left / 100% 1px no-repeat;}
html[data-look="lamplight"] main.dash :is(.tab-panel > .dash-h:first-child, .card > .dash-h:first-child){background:none;}
html[data-look="lamplight"] main.dash .sub-title{color:var(--ll-paper);}

/* ---- Panels, tables, notices ---- */
/* A table inside a panel takes the panel's own light instead of covering it */
html[data-look="lamplight"] :is(main.dash, dialog.modal) .card table{background:transparent;}
html[data-look="lamplight"] :is(main.dash, dialog.modal) tr.total-row > td{border-top-color:rgba(255,214,170,.6);}
@media (max-width:720px){ html[data-look="lamplight"] :is(main.dash, dialog.modal) .table-stack tr.total-row{border-top-color:rgba(255,214,170,.6);} }
/* To-do notices (the raised fill): a lit edge along the top */
html[data-look="lamplight"] main.dash .card-sage:not(.notice-warn, .needs-panel){border-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,226,186,.2), inset 0 0 0 1px rgba(244,182,110,.16), var(--ll-card-depth);}
html[data-look="lamplight"] main.dash .notice-error{background-color:#3C1214; box-shadow:inset 0 0 0 1px rgba(255,161,150,.36), var(--ll-card-depth);}
/* Pay and stat tiles: a faint lit top; the total is the key figure, on the lit fill with its label in the lamp's light
   (its number stays paper, so it is never mistaken for the warm "still to pay" figures beside it) */
html[data-look="lamplight"] main.dash .stat-card{border-color:rgba(244,182,110,.14); background-image:linear-gradient(180deg, rgba(255,214,170,.045), rgba(255,214,170,0) 62%);}
html[data-look="lamplight"] main.dash .stat-card .label{color:var(--ll-ink-2);}
html[data-look="lamplight"] main.dash :is(.stat-card.total, .card .stat-card.total){
  background:radial-gradient(90% 110% at 100% 0%, rgba(255,192,122,.15), transparent 72%), var(--dd-pick);
  border-color:rgba(255,210,154,.34); box-shadow:inset 0 1px 0 rgba(255,232,200,.22), 0 12px 28px -18px rgba(244,160,80,.4);}
html[data-look="lamplight"] main.dash .stat-card.total .label{color:var(--ll-amber-2);}
html[data-look="lamplight"] main.dash .stat-card.total .value{color:var(--ll-paper);}
/* Status tags keep their meanings; the fills are set a little deeper for the darker ground */
html[data-look="lamplight"] :is(main.dash, dialog.modal) :is(.pill.warn, .status-pending){background:#43220F; color:#F7C79B;}
html[data-look="lamplight"] :is(main.dash, dialog.modal) :is(.pill.rust, .status-late, .status-noshow, .status-error){background:#4A1518; color:#FFA99E;}
html[data-look="lamplight"] :is(main.dash, dialog.modal) .status-paid{box-shadow:inset 0 0 0 1px rgba(251,240,228,.8);}

/* ---- Windows: a dimmed page under one lit panel ---- */
html[data-look="lamplight"] dialog.modal::backdrop{background:rgba(8,2,3,.76);}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)){
  html[data-look="lamplight"] dialog.modal::backdrop{background:rgba(8,2,3,.64); -webkit-backdrop-filter:blur(6px) saturate(120%); backdrop-filter:blur(6px) saturate(120%);}
}
html[data-look="lamplight"] dialog.modal > .card{border-color:transparent;
  background:radial-gradient(70% 50% at 100% 0%, rgba(255,192,122,.1), transparent 72%), var(--ll-panel-bg);
  box-shadow:inset 0 1px 0 rgba(255,226,186,.3), inset 0 0 0 1px rgba(244,182,110,.16), 0 2px 4px rgba(4,1,2,.5), 0 34px 80px -24px rgba(0,0,0,.92);}
html[data-look="lamplight"] dialog.modal :is(h2, .stmt-title){font-family:var(--ll-serif); font-weight:400;}

/* ---- The account guard (it sits on top of the page) ---- */
html[data-look="lamplight"] .acct-guard{background:var(--ll-panel-bg);}
html[data-look="lamplight"] .acct-guard h2{font-family:var(--ll-serif); font-weight:400;}

/* ---- Reduced motion: nothing moves, not even the press ---- */
@media (prefers-reduced-motion: reduce){
  html[data-look="lamplight"] :is(main.dash, .topnav, dialog.modal) :is(.btn, .tab-btn, .month-cell, .acal-cell, .toggle-chip, .sess-chip, .cal-day, .cal-nav):active{transform:none;}
}
/* ---- Windows high contrast: no light layers; the open tab keeps a real edge ---- */
@media (forced-colors: active){
  html[data-look="lamplight"] main.dash .dash-nums{border:1px solid CanvasText; text-shadow:none;}
  html[data-look="lamplight"] main.dash .dash-big{text-shadow:none;}
  html[data-look="lamplight"] main.dash .dash-tabs .tab-btn[aria-selected="true"]{border:2px solid Highlight; background:Highlight; color:HighlightText;}
  html[data-look="lamplight"] main.dash .dash-h{border-top:1px solid CanvasText; background:none;}
  html[data-look="lamplight"] dialog.modal::backdrop{-webkit-backdrop-filter:none; backdrop-filter:none;}
}
