/* Parent area (5.2, 6): plain pages for a phone or a computer. */

* { box-sizing: border-box; }

/* laptops and desktops: the mouse pointer shows what a click does */
button:not(:disabled), select, input[type="file"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
body { margin: 0; font-family: system-ui, sans-serif; color: #222; background: #fafafa; }
main { max-width: 60rem; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }

/* code gate (5.2) */

.code-gate { max-width: 22rem; text-align: center; }
.code-gate form { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; text-align: left; }
.code-gate label { font-weight: 600; }
.passphrase { display: flex; gap: 0.5rem; }
.passphrase input { flex: 1; min-width: 0; min-height: 3rem; padding: 0.5rem 0.75rem; font-size: 1.2rem; border: 1px solid #888; border-radius: 0.5rem; }
.passphrase .show, .enter { font-size: 1.1rem; padding: 0.8rem; border: 1px solid #888; border-radius: 0.5rem; background: white; }
.enter { width: 100%; font-size: 1.5rem; background: #dff3e4; border-color: #1a9c3c; }
.refusal { color: #a12a1a; }
/* a child who taps ⚙ finds the way back, as the child's ⌂ (3.5.3). */
.back-home {
  display: inline-block;
  width: 5.5rem;
  height: 5.5rem;
  line-height: 5.5rem;
  font-size: 3.5rem;
  border: 3px solid #333;
  border-radius: 1rem;
  background: white;
  color: #222;
  text-decoration: none;
  margin-bottom: 1rem;
}

.parent-home a, .parent a { color: #1a4f9c; }
nav { margin-bottom: 1rem; }
section { margin: 1.5rem 0; }
h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
small { color: #777; font-weight: normal; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; background: white; }
th, td { border: 1px solid #ddd; padding: 0.3rem 0.45rem; text-align: left; vertical-align: top; }
th { background: #f0f0f0; }
.notice { color: #1a6c32; background: #e6f5ea; padding: 0.4rem 0.6rem; }
.parent .refusal { background: #fbe9e6; padding: 0.4rem 0.6rem; }
.note-small { color: #666; font-size: 0.85rem; }
form.inline { display: inline-block; margin: 0 0.6rem 0.4rem 0; }
form label { display: block; margin: 0.4rem 0; }
form.inline label { display: inline; }
textarea { width: 100%; font: inherit; }
textarea.code { font-family: ui-monospace, monospace; font-size: 0.85rem; }
button { font: inherit; padding: 0.3rem 0.7rem; }
button.current { background: #1a4f9c; color: white; }
input[type="number"] { width: 4.5rem; }
audio { height: 2rem; vertical-align: middle; }
.knowledge-point { border-left: 3px solid #ccc; padding-left: 0.8rem; }

/* 1.8.7, 1.8.14: the rich-text editors of the item form */
.rich-text-field { margin: 0.6rem 0; }
.rich-text-field > span { display: block; }
.rich-text-editor { border: 1px solid #ccc; border-radius: 0.3rem; padding: 0.4rem; background: white; }
.rich-text-block { display: flex; align-items: center; gap: 0.4rem; margin: 0.25rem 0; }
.rich-text-kind { flex: none; width: 8rem; font-size: 0.8rem; color: #666; }
.rich-text-block textarea, .rich-text-block math-field { flex: 1; font-size: 1.1rem; border: 1px solid #888; border-radius: 0.3rem; padding: 0.3rem; }
.rich-text-controls { flex: none; }
.rich-text-add button { font-size: 0.85rem; margin-right: 0.3rem; }
.rich-text-note { color: #a00; margin: 0.2rem 0; }
/* the hint's JSON, once its editor runs ("form label" would show it) */
.rich-text-source[hidden] { display: none; }
