/* Ember Pro theme (dark default + light). Loaded last: retunes the tokens, background, header, buttons and cards.
   Colours only through tokens so both themes keep working. */
:root{
  /* original site colours are kept (tokens.css); these helpers only style the header pills, cards and resume card */
  --em-card:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  --em-card-line:rgba(255,255,255,.08); --em-shadow:0 24px 60px rgba(0,0,0,.35);
  --em-pill:color-mix(in srgb,var(--b1) 14%,transparent); --em-pill-ink:color-mix(in srgb,var(--b1) 70%,#fff);
  --em-head:color-mix(in srgb,var(--bg) 92%,transparent);
  --display:"Inter","Segoe UI",system-ui,sans-serif;
  --body:"Inter","Segoe UI",system-ui,sans-serif;
}
:root[data-theme="light"]{
  --em-card:#ffffff; --em-card-line:var(--line); --em-shadow:0 24px 60px rgba(120,72,30,.10);
  --em-pill:#ffe9d8; --em-pill-ink:#9a3412; --em-head:rgba(255,255,255,.78);
}
h1,h2,h3,.brand{font-family:var(--display);letter-spacing:-.02em}
/* keep the bold look: Inter at 800 for page titles and the logo, 700 for section headings */
h1,.hero2 h1,.brand .b-dsa,.brand .b-vis{font-weight:800;letter-spacing:-.03em}
h2,h3{font-weight:700}
/* header: frosted bar, pill nav with a clear current item */
header.top{background:var(--em-head);box-shadow:0 0 0 100vmax var(--em-head);border-bottom:1px solid var(--em-card-line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
header.top .navlk{border-radius:999px}
header.top .navlk:hover,header.top .navlk[aria-expanded="true"],header.top .navlk[aria-current="page"]{background:var(--em-pill);color:var(--em-pill-ink)}
/* cards: glass in dark, white with soft shadow in light */
.tile,.solve-card,.card,.panel,.stage{background:var(--em-card);border-color:var(--em-card-line)}
.tile:hover,.solve-card:hover{box-shadow:var(--em-shadow)}
/* active / correct cells get a glow ring */
.cell.act,.cell.piv,[data-st="act"]{box-shadow:0 0 0 4px color-mix(in srgb,var(--b1) 20%,transparent)}
.cell.ok,[data-st="ok"]{box-shadow:0 0 0 4px color-mix(in srgb,var(--ok) 18%,transparent)}
@media (prefers-reduced-transparency:reduce){header.top{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg)}}
/* bold words in reading text stand out in ember: soft orange in dark (#ffb47e ~9:1 on bg), deep orange in light (#9a3412 ~7:1) */
:root{--em-strong:#ffb47e}
:root[data-theme="light"]{--em-strong:#9a3412}
:where(p,li,td,dd,blockquote,.tk-remember,.tk-block) :is(b,strong):not(:where(button *,a *,.btn *,.dd-txt *,.navlk *)){color:var(--em-strong);font-weight:700}
/* signed-in home: one ember resume card, no duplicate "continue" label on the button, tighter spacing */
.resume .resume-main,.resume .resume-more a{--cat:var(--b1)!important}
.resume-go{background:var(--em-card)!important;border:1px solid var(--em-card-line)!important;border-left:3px solid var(--b1)!important;border-radius:16px!important;box-shadow:var(--em-shadow)}
.resume-go:hover{border-color:color-mix(in srgb,var(--b1) 55%,var(--em-card-line))!important}
.resume-go .resume-kind{padding:4px 8px;border-radius:999px;background:var(--em-pill);color:var(--em-pill-ink)}
.resume-arrow{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--btn-pri-bg);color:var(--btn-pri-ink)!important;font-size:18px!important}
.resume-more a{background:var(--em-card);border-color:var(--em-card-line)}
#resume:not([hidden])+.hero2{padding-top:clamp(8px,2vw,20px);align-items:start}
#resume:not([hidden])+.hero2 .hero-copy{padding-top:8px}
#resume:not([hidden]){margin-bottom:calc(20px - 68px)}
@media (max-width:960px){#resume:not([hidden]){margin-bottom:0}}
