/* The teacher's pages (7 Nov 2026; teacher_web.py, class_web.py): the front door, her details, her steps, her classes.
   Words never under 16 px, buttons at least 48 px, one thing to do at a time. */
.tw, .cls { --tw-felt: #2f6b4f; --tw-card: #fffaf0; --tw-line: #e6d8bd; --tw-ink: #2b2418; --tw-soft: #5a4e3a;
  --tw-ok: #1a7a44; --tw-warn-bg: #fbe7e2; --tw-warn: #7a2418;
  max-width: 64rem; margin: 0 auto; padding: 1.5rem 16px 8rem; font-size: 18px; color: var(--tw-ink); }   /* room under the floating game bar */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tw, :root:not([data-theme="light"]) .cls, :root:not([data-theme="light"]) .ts {
    --tw-card: #2c241a; --tw-line: #4a3d2a; --tw-ink: #f2ece0; --tw-soft: #cfc3ad; --tw-warn-bg: #4a2620; --tw-warn: #f6c9bf; --tw-ok: #7fd3a0; }
}
:root[data-theme="dark"] .tw, :root[data-theme="dark"] .cls, :root[data-theme="dark"] .ts {
  --tw-card: #2c241a; --tw-line: #4a3d2a; --tw-ink: #f2ece0; --tw-soft: #cfc3ad; --tw-warn-bg: #4a2620; --tw-warn: #f6c9bf; --tw-ok: #7fd3a0; }
.tw h1, .cls h1 { text-wrap: balance; margin: .2rem 0 .5rem; }
.tw .lead, .cls .lead { max-width: 62ch; }
.tw .button, .cls .button, .ts .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.tw-big { font-size: 20px !important; min-height: 56px !important; padding: 0 1.6rem !important; }
.tw-fine, .tw-help, .cls-help { color: var(--tw-soft); font-size: 16px; font-weight: 400; }
.tw-help, .cls-help { display: block; }
.tw-back { margin: 0 0 .5rem; }
.tw-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.tw-card { padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--tw-card); border: 1px solid var(--tw-line); }
.tw-card h3 { margin: .6rem 0 .3rem; }
.tw-card p { margin: 0; }
.tw-steps li { margin: .5rem 0; max-width: 66ch; }
.tw-faq details { padding: .6rem 0; border-bottom: 1px solid var(--tw-line); }
.tw-faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.tw-form { display: grid; gap: 1.1rem; max-width: 36rem; }
.tw-form label, .cls-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; }
.tw-form input[type=text], .tw-form textarea, .cls-form input, .cls-form textarea, .cls-form select {
  font: inherit; font-size: 18px; font-weight: 400; padding: .55rem .7rem; min-height: 48px; border-radius: 10px;
  border: 1px solid #c9b996; background: #fff; color: #2b2418; max-width: 100%; }
.tw-check { flex-direction: row !important; align-items: center; gap: .6rem !important; min-height: 44px; }
.tw-check input { width: 24px; height: 24px; flex: none; }
.tw-problem, .cls-problem { padding: .6rem 1rem; border-radius: 10px; background: var(--tw-warn-bg); color: var(--tw-warn); }

/* her steps, on the teaching page */
.ts { --tw-felt: #2f6b4f; --tw-card: #fffaf0; --tw-line: #e6d8bd; --tw-ink: #2b2418; --tw-soft: #5a4e3a; --tw-ok: #1a7a44;
  margin: 1rem 0 2rem; font-size: 18px; }
.ts-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ts-step { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; padding: .8rem 1rem; border-radius: 14px;
  background: var(--tw-card); border: 1px solid var(--tw-line); }
.ts-step.next { border: 2px solid var(--tw-felt); box-shadow: 0 4px 14px rgba(30, 24, 12, .12); }
.ts-step.done { opacity: .85; }
.ts-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #e9dfc8;
  color: #2b2418; font-weight: 700; }
.ts-step.done .ts-mark { background: var(--tw-ok); color: #fff; }
.ts-step.next .ts-mark { background: var(--tw-felt); color: #fff; }
.ts-body h3 { margin: 0 0 .2rem; font-size: 19px; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ts-body p { margin: 0 0 .5rem; max-width: 64ch; }
.ts-opt { font-weight: 400; color: var(--tw-soft); font-size: 16px; }
.ts-done { font-size: 15px; font-weight: 700; color: var(--tw-ok); }
.ts-now { font-size: 15px; font-weight: 700; color: #fff; background: var(--tw-felt); border-radius: 999px; padding: .1rem .6rem; }
.ts-step.done .ts-body p { display: none; }
.ts-help { color: var(--tw-soft); font-size: 16px; }
.teach-welcome { padding: .9rem 1.1rem; border-radius: 14px; background: #e8f4ec; color: #1d4d33; font-size: 18px; }

/* classes */
.cls-eyebrow { margin: 0; font-weight: 700; color: var(--tw-soft); font-size: 16px; letter-spacing: .02em; }
.cls-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cls-actions form { margin: 0; }
.cls-share { padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--tw-card); border: 2px solid var(--tw-felt); margin: 1rem 0; }
.cls-share h2 { margin-top: 0; }
.cls-code { font-size: 44px; font-weight: 800; letter-spacing: .14em; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.cls-code-sm { letter-spacing: .1em; font-size: 20px; }
.cls-cards { list-style: none; padding: 0; display: grid; gap: .8rem; }
.cls-card, .cls-session, .cls-hw, .cls-welcome, .cls-done, .cls-join { padding: 1rem 1.2rem; border-radius: 14px;
  background: var(--tw-card); border: 1px solid var(--tw-line); }
.cls-card h2, .cls-session h3, .cls-hw h3 { margin: 0 0 .3rem; }
.cls-card p, .cls-session p, .cls-hw p { margin: .2rem 0 .5rem; }
.cls-sessions { list-style: none; padding: 0; display: grid; gap: .8rem; }
.cls-sent { color: var(--tw-ok); font-weight: 700; font-size: 16px; }
.cls-table-wrap { overflow-x: auto; }
.cls-table { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.cls-table th, .cls-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--tw-line); vertical-align: top; }
.cls-empty { padding: 1rem 1.2rem; border-radius: 14px; border: 1px dashed var(--tw-line); }
.cls-form { display: grid; gap: 1.1rem; max-width: 38rem; margin: .5rem 0 1rem; }
.cls-form textarea { width: 100%; }
.cls-find { grid-template-columns: 1fr; max-width: 24rem; }
.cls-find input { font-size: 26px !important; letter-spacing: .12em; text-transform: uppercase; }
.cls-stats { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); margin: 1rem 0; }
.cls-stats div { padding: .8rem 1rem; border-radius: 14px; background: var(--tw-card); border: 1px solid var(--tw-line); display: grid; gap: .2rem; }
.cls-stats strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.cls-stats span { color: var(--tw-soft); font-size: 16px; }
.cls-tasks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.cls-tasks li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; }
.cls-tasks.big li { padding: .9rem 1rem; border-radius: 14px; background: var(--tw-card); border: 1px solid var(--tw-line); }
.cls-tasks.big h2 { margin: 0 0 .3rem; font-size: 20px; }
.cls-tasks.big p { margin: 0 0 .5rem; }
.cls-tick { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e9dfc8; color: #2b2418; font-weight: 700; }
.cls-tasks li.done .cls-tick { background: var(--tw-ok); color: #fff; }
.cls-task-kind { margin: 0; font-size: 15px; font-weight: 700; color: var(--tw-soft); text-transform: uppercase; letter-spacing: .05em; }
.cls-teacher { font-style: italic; max-width: 60ch; }
.cls-plan li { margin: .4rem 0; }
.cls-certs { list-style: none; padding: 0; display: grid; gap: .4rem; }
.cls-invite-box { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; padding: 1.2rem; border: 2px solid var(--tw-line); border-radius: 16px; }
.cls-invite-qr svg { width: 220px; height: 220px; max-width: 100%; }
.cls-invite-addr { font-size: 24px; font-weight: 700; word-break: break-all; }
.cls-cert-page { max-width: 60rem; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.cls-cert { text-align: center; padding: 3rem 2rem; border: 10px double #2f6b4f; border-radius: 6px; background: #fffdf6; color: #2b2418; }
.cls-cert-school { font-size: 22px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.4rem; color: #2f6b4f; font-weight: 700; }
.cls-cert-small { font-size: 18px; margin: .3rem 0; }
.cls-cert-name { font-size: 46px; margin: .4rem 0; font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
.cls-cert-class { font-size: 28px; margin: .4rem 0; font-weight: 700; text-wrap: balance; }
.cls-cert-tiles { justify-content: center; margin: 1.4rem auto; }
.cls-cert-sign { margin: 1.6rem auto 0; display: inline-block; border-top: 2px solid #2b2418; padding-top: .4rem; min-width: 16rem; }
.cls-cert-teacher { font-size: 24px; margin: 0; font-family: Georgia, "Times New Roman", serif; }
.cls-cert-code { margin-top: 2rem; font-size: 14px; color: #5a4e3a; }
@media print {
  .cls-noprint, header.site, .site-header, nav, footer, .feedback-tab { display: none !important; }
  .cls-cert-page { padding: 0; }
}

/* the teacher's guide */
.tg-toc ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tg-part { margin: 2.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--tw-line); }
.tg-part h2 { display: flex; align-items: center; gap: .6rem; }
.tg-part .sb-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tw-felt); color: #fff; font-size: 18px; flex: none; }
.tg-why { font-size: 19px; max-width: 64ch; }
.tg-where { padding: .6rem .9rem; border-radius: 10px; background: var(--tw-card); border: 1px solid var(--tw-line); max-width: 64ch; }
.tg-steps li { margin: .5rem 0; max-width: 66ch; }
.tg-shot { margin: 1rem 0; }
.tg-shot img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--tw-line); box-shadow: 0 6px 18px rgba(30, 24, 12, .12); }
.tg-shot figcaption { color: var(--tw-soft); font-size: 16px; margin-top: .3rem; }
.tg-video { width: 100%; max-width: 48rem; border-radius: 12px; margin: .6rem 0; background: #000; }
.tg-notes { padding: .8rem 1rem; border-radius: 12px; background: #eef5f0; color: #1d3b2b; max-width: 64ch; }
.tg-notes h3 { margin: 0 0 .3rem; font-size: 17px; }

/* the front door: pictures of the product, one line each (7 Nov) */
.tw-shots { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); margin: 1.5rem 0; }
.tw-shot { margin: 0; display: grid; gap: .5rem; }
.tw-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px;
  border: 1px solid var(--tw-line); box-shadow: 0 8px 22px rgba(30, 24, 12, .14); }
.tw-shot figcaption { font-size: 19px; font-weight: 600; }
.tw-three { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding-left: 1.4rem; font-size: 20px; }

/* the class page, as pictures (7 Nov) */
.cls-wide { max-width: 76rem; }
.cls-badge { display: inline-block; padding: .2rem .8rem; border-radius: 999px; background: #e8f4ec; color: #1d4d33; font-weight: 700; }
.cls-joincard { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: 18px;
  background: var(--tw-card); border: 2px solid var(--tw-felt); margin: 1rem 0 1.6rem; }
.cls-qr svg { width: 150px; height: 150px; display: block; }
.cls-addr { font-size: 18px; color: var(--tw-soft); margin: 0 0 .6rem; word-break: break-all; }
.cls-strip { list-style: none; padding: .2rem 0 .6rem; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
@media (max-width: 700px) { .cls-strip { grid-auto-flow: row; } }
.cls-scard { display: grid; gap: .5rem; align-content: start; padding: .9rem; border-radius: 16px; background: var(--tw-card);
  border: 1px solid var(--tw-line); border-top: 6px solid #c9b996; }
.cls-scard.sent { border-top-color: var(--tw-ok); }
.cls-scard h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.cls-scard form { margin: 0; }
.cls-scard .button { width: 100%; justify-content: center; }
.cls-snum { margin: 0; font-weight: 800; font-size: 15px; color: var(--tw-soft); }
.cls-scard.sent .cls-snum { color: var(--tw-ok); }
.cls-count { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 999px; background: var(--tw-felt);
  color: #fff; font-size: 17px; padding: 0 .5rem; vertical-align: middle; }
.cls-people { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
.cls-person a { display: grid; gap: .45rem; padding: .9rem 1rem; border-radius: 16px; background: var(--tw-card); border: 1px solid var(--tw-line);
  color: var(--tw-ink); text-decoration: none; }
.cls-person a:hover, .cls-person a:focus-visible { border-color: var(--tw-felt); box-shadow: 0 6px 18px rgba(30, 24, 12, .12); }
.cls-avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tw-felt); color: #fff;
  font-weight: 800; font-size: 20px; }
.cls-unpaid { font-size: 15px; font-weight: 700; color: var(--tw-warn); }
.cls-bar { display: grid; grid-template-columns: 6.5rem 1fr 2.6rem; gap: .4rem; align-items: center; font-size: 15px; }
.cls-bar-label { color: var(--tw-soft); }
.cls-bar-track { height: 10px; border-radius: 999px; background: #e9dfc8; overflow: hidden; }
.cls-bar-fill { display: block; height: 100%; background: var(--tw-ok); border-radius: 999px; }
.cls-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.cls-games { font-size: 15px; color: var(--tw-soft); }
.cls-finish { margin: 1.8rem 0; padding: 1rem 1.2rem; border-radius: 16px; background: var(--tw-card); border: 1px solid var(--tw-line); }
.cls-finish h2 { margin-top: 0; }
.cls-details { margin: 1rem 0; }
.cls-remove { margin-top: 2rem; }
.cls-danger { color: #8a2a1c; font-size: 16px; text-decoration: underline; background: none; border: 0; cursor: pointer; min-height: 44px; }
.cls-details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* after the course is finished: each student with what she was sent (9 Nov) */
.cls-sent-list { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .6rem; }
.cls-sent-list li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cls-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.tg-big { display: block; font-size: 15px; font-weight: 400; color: #6b5f4a; }

/* the front door's pictures are close-ups now (9 Nov: whole screens shrunk to a thumbnail could not be read), each
   in its own shape, never cropped */
.tw-shots { align-items: start; }
.tw-shot img { aspect-ratio: auto; height: auto; max-height: 24rem; object-fit: contain; background: #fffaf0; }

/* 9 Nov, round two: a long unbroken class name wraps; the students' table on the teaching page scrolls inside itself */
.cls-card h2, .cls-card p, .cls h1 { overflow-wrap: anywhere; }
.teach table { display: block; max-width: 100%; overflow-x: auto; }
