/* Amalgam V1 — shared styles for the new screens (sign-in, landing, class overlay, join screen,
   Publishers page, pickers, PDF buttons). Every value here is copied from the existing pages:
   Teacher Edition (warm paper, Source Serif 4, navy/green pills), Student Edition (butter, Andika,
   rounded 22px cards, green pill with drop shadow) and Console (slate, IBM Plex). No new palette. */

/* ---------- Teacher Edition vocabulary ---------- */
.am-paper { margin:0; min-height:100vh; background:oklch(0.945 0.006 85); -webkit-font-smoothing:antialiased; color:oklch(0.22 0.01 70); font:400 15px/1.5 'Source Serif 4',Georgia,serif; }
.am-header { position:sticky; top:0; z-index:30; background:oklch(0.995 0.008 85); border-bottom:1px solid oklch(0.90 0.015 80); }
.am-header-in { max-width:1160px; margin:0 auto; display:flex; align-items:center; gap:18px; padding:14px 32px; }
.am-mark { width:42px; height:42px; flex:none; border:1px solid oklch(0.84 0.02 70); border-radius:12px; background:oklch(0.975 0.01 70); display:grid; place-items:center; }
.am-mark svg { width:30px; height:22px; }
.am-title { font:600 17px/1.1 'Source Serif 4',Georgia,serif; color:oklch(0.24 0.01 70); }
.am-sub { font:400 12.5px/1.2 'Source Serif 4',Georgia,serif; color:oklch(0.50 0.01 70); }
/* "Powered by Reading Ready" (Katie, Nov 12 2026): directly under "Amalgam" in the header, regular weight, about 12 px,
   the header's secondary color (AA), no logo, no link. Pages: /signin, the district's Reports, the publisher and teacher
   welcome pages, the Teacher Edition header. */
.am-powered { font:400 12px/1.3 'Source Serif 4',Georgia,serif; color:oklch(0.50 0.01 70); overflow-wrap:anywhere; }
.am-wrap { max-width:1100px; margin:0 auto; padding:32px 32px 64px; display:flex; flex-direction:column; gap:20px; }
.am-card { background:oklch(0.995 0.008 85); border:1px solid oklch(0.90 0.015 80); border-radius:20px; padding:36px 40px; }
.am-card.tight { padding:24px 26px; }
.am-kicker { font:400 15px/1 'Source Serif 4',Georgia,serif; color:oklch(0.50 0.02 70); }
.am-h1 { font:600 44px/1.08 'Source Serif 4',Georgia,serif; letter-spacing:-0.02em; margin:10px 0 0; color:oklch(0.22 0.01 70); text-wrap:balance; }
.am-h2 { font:600 21px/1.2 'Source Serif 4',Georgia,serif; margin:0; color:oklch(0.22 0.01 70); }
.am-body { font:400 15px/1.5 'Source Serif 4',Georgia,serif; color:oklch(0.46 0.01 70); }
.am-mono { font:400 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:0.14em; text-transform:uppercase; color:oklch(0.50 0.02 70); }
/* Rows like "Today's lesson" and "Also in this unit" */
.am-row { display:flex; align-items:center; gap:16px; padding:16px 18px; border:1px solid oklch(0.90 0.015 80); border-radius:14px; background:oklch(0.985 0.006 85); text-decoration:none; color:inherit; }
.am-row:hover { border-color:oklch(0.80 0.03 80); }
.am-row b { display:block; font:600 17px/1.25 'Source Serif 4',Georgia,serif; color:oklch(0.22 0.01 70); }
.am-row span.am-sub { display:block; margin-top:3px; font-size:13.5px; }
.am-chip { display:inline-block; font:400 13.5px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; padding:8px 12px; border-radius:16px; background:oklch(0.955 0.012 80); color:oklch(0.36 0.01 70); white-space:nowrap; }
/* Buttons: navy "Start lesson" pill, green soft pill, plain ghost pill */
.am-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; font:600 19px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; height:64px; padding:0 30px; border-radius:32px; border:none; background:oklch(0.30 0.05 255); color:#fff; cursor:pointer; box-shadow:0 4px 0 oklch(0.22 0.05 255); text-decoration:none; }
.am-btn:hover { background:oklch(0.36 0.07 255); }
.am-btn:disabled { opacity:.6; cursor:default; }
.am-btn.sm { font-size:15px; height:46px; padding:0 22px; border-radius:23px; box-shadow:0 3px 0 oklch(0.22 0.05 255); }
.am-ghost { display:inline-flex; align-items:center; justify-content:center; font:600 14.5px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; height:46px; padding:0 20px; border-radius:23px; border:1px solid oklch(0.84 0.02 70); background:transparent; color:oklch(0.36 0.01 70); cursor:pointer; text-decoration:none; }
.am-field { display:block; width:100%; box-sizing:border-box; font:400 17px/1.3 'Source Serif 4',Georgia,serif; padding:14px 16px; border:1px solid oklch(0.84 0.02 70); border-radius:12px; background:oklch(0.985 0.006 85); color:oklch(0.22 0.01 70); }
.am-field:focus { outline:2px solid oklch(0.80 0.08 150); outline-offset:1px; }
.am-label { display:block; font:600 15px/1.2 'Source Serif 4',Georgia,serif; color:oklch(0.24 0.01 70); margin:0 0 8px; }
/* The "How a lesson works" green note and the peach correction banner */
.am-note { background:oklch(0.975 0.02 150); border:1px solid oklch(0.85 0.06 150); border-radius:20px; padding:18px 20px; color:oklch(0.30 0.06 150); }
.am-warn { background:oklch(0.97 0.03 50); border:1px solid oklch(0.86 0.06 50); border-radius:14px; padding:14px 16px; color:oklch(0.42 0.10 40); }
/* Unit picker = the Teacher Edition's Unit 1–5 segmented control */

/* ---------- Student Edition vocabulary (child screens) ---------- */
.am-butter { margin:0; background:oklch(0.972 0.03 95); -webkit-font-smoothing:antialiased; }
.am-kid-card { background:oklch(0.995 0.004 90); border:2px solid oklch(0.90 0.03 85); border-radius:22px; padding:60px 64px 44px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.am-kid-small { font-family:Andika,sans-serif; font-size:20px; line-height:1.2; color:oklch(0.48 0.03 260); }
.am-kid-h1 { font-family:Andika,sans-serif; font-weight:700; font-size:58px; line-height:1.05; margin:8px 0 0; color:oklch(0.26 0.03 260); text-wrap:balance; }
.am-kid-say { font-family:Andika,sans-serif; font-size:21px; line-height:1.3; color:oklch(0.44 0.03 260); }
.am-tile { font-family:Andika,sans-serif; font-size:44px; line-height:1; width:78px; height:78px; display:grid; place-items:center; border-radius:16px; background:oklch(0.95 0.05 150); border:2px solid oklch(0.82 0.08 150); color:oklch(0.30 0.08 150); box-sizing:border-box; text-transform:uppercase; }
.am-tile.empty { background:oklch(0.995 0.004 90); border-color:oklch(0.90 0.03 85); color:oklch(0.70 0.03 85); }
.am-go { font-family:Andika,sans-serif; font-weight:700; font-size:28px; line-height:1; height:72px; padding:0 44px; border-radius:36px; border:none; background:oklch(0.56 0.13 150); color:#fff; cursor:pointer; box-shadow:0 4px 0 oklch(0.42 0.11 150); }
.am-go:disabled { background:oklch(0.86 0.04 150); box-shadow:0 4px 0 oklch(0.78 0.05 150); cursor:default; }
.am-back { font-family:Andika,sans-serif; font-weight:700; font-size:24px; line-height:1; height:64px; padding:0 34px; border-radius:32px; cursor:pointer; white-space:nowrap; border:2px solid oklch(0.90 0.03 85); background:oklch(0.995 0.004 90); color:oklch(0.48 0.03 260); }
.am-foot { margin-top:44px; padding-top:18px; border-top:1px solid oklch(0.92 0.02 90); display:flex; align-items:center; justify-content:center; gap:10px; width:100%; font:400 11px/1.4 'Source Serif 4',Georgia,serif; color:oklch(0.54 0.02 80); }

/* ---------- Console vocabulary (operator pages) ---------- */
.am-slate { margin:0; min-height:100vh; background:oklch(0.975 0.009 258); color:oklch(0.24 0.012 258); font:400 14px/1.5 'IBM Plex Sans',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
.am-slate-head { position:sticky; top:0; z-index:30; background:oklch(0.21 0.022 258); border-bottom:1px solid oklch(0.14 0.02 258); color:oklch(0.95 0.006 258); }
.am-slate-chip { font:500 10px/1 'IBM Plex Mono',ui-monospace,Menlo,monospace; letter-spacing:0.14em; text-transform:uppercase; padding:4px 7px; border:1px solid oklch(0.38 0.025 258); border-radius:2px; color:oklch(0.80 0.03 258); }
.am-slate-card { background:oklch(0.995 0.006 258); border:1px solid oklch(0.88 0.01 258); border-radius:3px; padding:20px 22px; }
.am-slate-h { font:600 15px/1.3 'IBM Plex Sans',system-ui,sans-serif; margin:0; color:oklch(0.22 0.012 258); }
.am-slate-mono { font:400 11px/1.5 'IBM Plex Mono',ui-monospace,Menlo,monospace; color:oklch(0.50 0.02 258); }
.am-sbtn { font:500 12.5px/1 'IBM Plex Sans',system-ui,sans-serif; min-height:44px; box-sizing:border-box; padding:10px 16px; border:1px solid oklch(0.24 0.012 258); border-radius:2px; background:oklch(0.24 0.012 258); color:oklch(0.98 0.008 258); cursor:pointer; }
.am-sbtn.ghost { background:oklch(0.995 0.006 258); color:oklch(0.24 0.012 258); border-color:oklch(0.84 0.012 258); }
.am-sbtn.danger { background:oklch(0.995 0.006 258); color:oklch(0.50 0.15 30); border-color:oklch(0.82 0.05 30); }
.am-sin { font:400 13px/1.3 'IBM Plex Sans',system-ui,sans-serif; min-height:44px; padding:8px 10px; border:1px solid oklch(0.84 0.012 258); border-radius:2px; background:oklch(0.995 0.006 258); color:oklch(0.24 0.012 258); box-sizing:border-box; }
.am-stable { width:100%; border-collapse:collapse; }
.am-stable th { text-align:left; font:500 10.5px/1 'IBM Plex Mono',ui-monospace,Menlo,monospace; letter-spacing:0.08em; text-transform:uppercase; color:oklch(0.50 0.02 258); padding:10px 8px; border-bottom:1px solid oklch(0.88 0.008 258); }
.am-stable td { padding:10px 8px; border-bottom:1px solid oklch(0.93 0.006 258); vertical-align:middle; }
.am-pill { display:inline-block; font:500 10.5px/1 'IBM Plex Mono',ui-monospace,Menlo,monospace; letter-spacing:0.06em; text-transform:uppercase; padding:5px 7px; border-radius:2px; }
.am-pill.ok { background:oklch(0.95 0.04 150); color:oklch(0.38 0.10 150); }
.am-pill.warn { background:oklch(0.96 0.04 70); color:oklch(0.48 0.10 60); }
.am-pill.off { background:oklch(0.95 0.006 258); color:oklch(0.50 0.02 258); }

/* ---------- Floating controls: same box as the editions' Demo / Review toggle ---------- */
.am-float { position:fixed; z-index:90; display:flex; align-items:center; gap:2px; padding:3px; border-radius:26px; background:oklch(0.99 0.004 85); border:1px solid oklch(0.88 0.008 80); box-shadow:0 2px 8px oklch(0.30 0.02 80 / 0.12); }
.am-float button { font:500 12px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; height:44px; min-width:44px; padding:0 16px; border-radius:22px; border:none; cursor:pointer; background:transparent; color:oklch(0.40 0.01 70); display:inline-flex; align-items:center; gap:7px; }
.am-float button.on { background:oklch(0.26 0.03 255); color:#fff; }
/* The child's Join class chip: a 44px tap target like every other child button (Katie, Oct 27 2026). */
.am-float[data-amalgam="join-chip"] { border-radius:26px; }
.am-float[data-amalgam="join-chip"] button { height:44px; min-width:44px; padding:0 18px; border-radius:22px; font-size:15px; }
@media (max-width: 600px) { .am-float[data-amalgam="join-chip"] { top:10px !important; right:12px !important; } }
.am-dot { width:7px; height:7px; border-radius:50%; background:oklch(0.62 0.15 150); display:inline-block; }
.am-dot.off { background:oklch(0.75 0.01 70); }
/* Modal on the editions: dim backdrop + Teacher card */
.am-modal { position:fixed; inset:0; z-index:95; background:oklch(0.25 0.02 70 / 0.35); display:flex; align-items:center; justify-content:center; padding:24px 16px; box-sizing:border-box; }
.am-modal > .am-card { width:100%; max-width:760px; max-height:calc(100vh - 48px); overflow:auto; box-sizing:border-box; }
.am-code { display:flex; gap:10px; flex-wrap:wrap; }
.am-code .am-tile { width:64px; height:72px; font-size:40px; }
.am-avatar { width:44px; height:44px; flex:none; border-radius:14px; background:oklch(0.97 0.02 90); border:2px solid oklch(0.90 0.03 85); display:grid; place-items:center; overflow:hidden; box-sizing:border-box; }
.am-avatar svg { width:82%; height:82%; }   /* fits its box: 36 px in the usual 44 px box, all of it in the 24 px class chip (Nov 16 2026) */

/* ---------- Publisher Portal vocabulary (copied from the Portal's Units / Waiting on you cards) ---------- */
.am-pcard { background:oklch(0.995 0.002 85); border:1px solid oklch(0.88 0.008 80); border-radius:6px; overflow:hidden; color:oklch(0.24 0.008 70); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; }
.am-pcard-h { padding:14px 20px; border-bottom:1px solid oklch(0.91 0.006 80); font:400 10.5px/1 ui-monospace,Menlo,monospace; letter-spacing:0.14em; text-transform:uppercase; color:oklch(0.54 0.01 75); display:flex; align-items:center; gap:12px; }
.am-prow { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:14px; align-items:center; padding:13px 20px; border-top:1px solid oklch(0.94 0.005 80); }
.am-pletters { font-family:Andika,sans-serif; font-size:14px; letter-spacing:0.08em; color:oklch(0.40 0.05 150); margin-top:4px; }
.am-pbody { font:400 12.5px/1.45 'Source Serif 4',Georgia,serif; color:oklch(0.48 0.01 70); }
.am-pchip { font:400 11.5px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; padding:6px 10px; border-radius:12px; white-space:nowrap; background:oklch(0.955 0.005 85); color:oklch(0.50 0.01 70); }
.am-pchip.ok { background:oklch(0.95 0.035 150); color:oklch(0.34 0.08 150); }
.am-pbtn { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid oklch(0.90 0.006 80); border-radius:4px; background:oklch(0.985 0.004 85); cursor:pointer; font:500 12.5px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; color:oklch(0.28 0.01 70); text-decoration:none; white-space:nowrap; }
.am-pbtn:hover { border-color:oklch(0.70 0.04 255); }
.am-pbtn.primary { background:oklch(0.30 0.05 255); border-color:oklch(0.30 0.05 255); color:#fff; }
.am-pin { font:400 13px/1.3 'Helvetica Neue',Helvetica,Arial,sans-serif; padding:9px 11px; border:1px solid oklch(0.86 0.008 80); border-radius:4px; background:#fff; color:oklch(0.24 0.008 70); box-sizing:border-box; }
/* Any control that can't be used looks it (Oct 31 2026): lighter, no pointer; the page also says why, in words. */
button:disabled, select:disabled, input:disabled, .am-pbtn:disabled, .am-pbtn[aria-disabled=true] { opacity:.5; cursor:not-allowed; }
.am-why { font:400 13px/1.4 'Source Serif 4',Georgia,serif; color:oklch(0.45 0.01 70); margin:6px 0 0; }
/* Definitions (Nov 9 2026): no (i) icon. The label itself has a faint dotted underline; hover, tap or keyboard focus
   shows its definition. The tap area is at least 44 px tall without changing the look. One style for every page. */
.am-def { display:inline; position:relative; }
/* A definition never breaks its sentence (Nov 10 2026): browsers hold a <details> element's hidden part in a block box of
   its own, which forced a line break after the label; it flows inline instead (the pop-up stays hidden until opened). */
.am-def::details-content { display:contents; }
.am-def > summary { display:inline; list-style:none; cursor:help; position:relative; text-decoration:underline dotted; text-decoration-thickness:1px;
  text-decoration-color:color-mix(in oklch, currentColor 45%, transparent); text-underline-offset:3px; }
.am-def > summary::before { content:''; position:absolute; left:0; right:0; top:50%; height:44px; min-width:44px; transform:translateY(-50%); }
.am-def > summary::-webkit-details-marker { display:none; }
.am-def > summary::marker { content:''; }
.am-def > summary:focus-visible { outline:3px solid oklch(0.55 0.12 255); outline-offset:2px; border-radius:2px; }
.am-def[open] > summary { text-decoration-color:currentColor; }
.am-def-pop { position:absolute; z-index:60; top:calc(100% + 8px); left:0; width:min(340px,80vw); box-sizing:border-box; padding:12px 14px; border-radius:10px; background:#fffdf8; border:1px solid oklch(0.82 0.02 80); box-shadow:0 6px 20px rgba(40,36,30,0.18); font:400 14px/1.45 'Source Serif 4',Georgia,serif; color:oklch(0.26 0.01 70); white-space:normal; text-align:left; text-transform:none; letter-spacing:0; }
.am-def:not([open]) > .am-def-pop { display:none; }
.am-meanings { margin:10px 0 0; display:grid; gap:12px; }
.am-meanings dt { font:700 15px/1.3 'Source Serif 4',Georgia,serif; color:oklch(0.22 0.01 70); }
.am-meanings dd { margin:3px 0 0; font:400 14.5px/1.5 'Source Serif 4',Georgia,serif; color:oklch(0.32 0.01 70); max-width:80ch; }
.am-meanings dd span { color:oklch(0.45 0.01 70); }
/* Phones (morning batch, Nov 12 2026): a wide operator table scrolls inside its own box, never the page. */
@media (max-width:640px) { .am-stable { display:block; max-width:100%; overflow-x:auto; } }
