/* profiles.css — Document 06 · مدرسة دامجة: the six presentations (pn-profiles.js) and the pages
   lesson-adapt.html · exam-adapt.html · sen-cases.html, plus the small blocks pn-profiles-hook.js adds to the
   fiche, the pupil card, the parent home, the inspector, the headmaster and the data console.
   Light only. Blue = the one primary action. Solid text colours. Targets ≥ 48 px. Phones first (360/390/450). */

:root{
  --pp-ink:#161616; --pp-ink-2:#4A4A46; --pp-paper:#FFFFFF; --pp-panel:#F3F2EE; --pp-line:#D9DCE3;
  --pp-blue:#1739A8; --pp-blue-edge:#0C2470; --pp-blue-bg:#E8EEFB; --pp-green:#0B7A35; --pp-green-bg:#E3F4E8; --pp-green-ink:#0B5A27;
  --pp-amber-bg:#FBEFD9; --pp-amber-ink:#7A4A00; --pp-ruler:#FFF3B8;
}

/* ---------------- the presentation itself ---------------- */
.pp{ --pp-letter:0; --pp-word:0; --pp-line:1.7; --pp-scale:1; background:var(--pp-paper); color:var(--pp-ink); border-radius:16px; padding:20px 16px 24px; position:relative;
  font-size:calc(18px * var(--pp-scale)); line-height:var(--pp-line); }
.pp *{ letter-spacing:0; }
.pp{ overflow-wrap:anywhere; }
.pp-opening, .pp-details{ font-size:calc(17px * var(--pp-scale)); }
.pp-details{ margin-block:12px 16px; }
.pp-details > summary{ min-height:48px; }
.pp-detail-stages, .pp-references{ padding-inline-start:1.4em; }
.pp-detail-stages > li, .pp-references > li{ margin-block:0 12px; }
.pp-detail-stages p{ margin-block:4px; }
.pp .pp-txt, .pp .pp-one, .pp .pp-lines, .pp .pp-say, .pp .pp-cap{ word-spacing:var(--pp-word); }
/* Arabic letters stay joined (reading-help.html, Zorzi 2012 was Latin script): the wider space BETWEEN letters comes from a
   25 % larger face (glyph side-bearings scale with it) + word spacing .35em + line height 2.2; letter-spacing stays 0. */
.pp-head{ margin-bottom:16px; }
.pp-kicker{ margin:0; font-size:15px; color:var(--pp-ink-2); }
.pp-title{ margin:4px 0 8px; font-size:calc(22px * var(--pp-scale)); line-height:1.4; font-weight:600; }
.pp-obj{ margin:0; font-size:calc(16px * var(--pp-scale)); color:var(--pp-ink-2); }
.pp-obj b{ font-weight:600; color:var(--pp-ink); margin-inline-end:6px; }
.pp-pic{ width:36px; height:36px; flex:none; color:var(--pp-blue); }
.pp-pic--xl{ width:96px; height:96px; display:block; margin:8px auto 12px; }
.pp-pic--s{ width:22px; height:22px; vertical-align:-5px; margin-inline-end:6px; }
.pp-steps{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.pp-step{ background:var(--pp-panel); border-radius:16px; padding:14px 16px; }
.pp-step h4{ margin:0 0 6px; font-size:calc(17px * var(--pp-scale)); font-weight:600; }
.pp-txt{ margin:0; }
.pp-say{ margin:8px 0 0; font-size:calc(16px * var(--pp-scale)); color:var(--pp-ink-2); }
/* calm */
.pp-still, .pp-still *{ animation:none !important; transition:none !important; }
.pp-sched{ list-style:none; margin:0 0 16px; padding:0; display:flex; gap:8px; overflow-x:auto; }
.pp-sched li{ flex:1 1 0; min-width:64px; background:var(--pp-panel); border-radius:14px; padding:8px 6px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:15px; border:2px solid transparent; }
.pp-sched li .pp-sw{ color:var(--pp-ink-2); font-size:14px; }
.pp-sched li b{ font-weight:600; font-size:15px; line-height:1.3; }
.pp-sched li.now{ border-color:var(--pp-blue); background:var(--pp-blue-bg); }
.pp-sched li.done{ background:var(--pp-green-bg); }
.pp-screen{ background:var(--pp-panel); border-radius:16px; padding:20px 16px; text-align:center; min-height:220px; }
.pp-one{ margin:0; font-size:calc(22px * var(--pp-scale)); line-height:1.7; }
.pp-count{ text-align:center; margin:10px 0; color:var(--pp-ink-2); font-size:16px; }
.pp-nav{ display:flex; gap:10px; flex-direction:row; }
.pp-nav .ui-btn{ flex:1; min-height:54px; }
.pp-break{ width:100%; margin-top:10px; min-height:54px; }
.pp-rest{ background:var(--pp-green-bg); color:var(--pp-green-ink); border-radius:16px; padding:24px 16px; text-align:center; margin-top:10px; }
.pp-rest p{ font-size:20px; margin:0 0 14px; }
/* short steps */
.pp-prog{ margin:0 0 14px; }
.pp-check{ margin:14px 0 0; background:var(--pp-amber-bg); color:var(--pp-amber-ink); border-radius:12px; padding:10px 12px; text-align:start; font-size:17px; }
.pp-timer{ display:flex; align-items:center; gap:10px; margin:12px 0; color:var(--pp-ink-2); font-size:16px; }
.pp-ring{ width:22px; height:22px; border-radius:50%; border:3px solid var(--pp-line); border-top-color:var(--pp-blue); flex:none; }
/* reading */
.pp-tools{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px; }
.pp-tools .ui-btn{ min-height:48px; flex:1 1 140px; }
.pp-lines{ display:flex; flex-direction:column; gap:4px; }
.pp-line{ display:block; padding:2px 4px; border-radius:6px; }
.pp-w.on{ background:var(--pp-ruler); }
.pp-ruler{ position:absolute; inset-inline:8px; height:44px; top:0; background:var(--pp-ruler); border-radius:8px; mix-blend-mode:multiply; pointer-events:none; }
/* concrete */
.pp-qrow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.pp-qty{ display:inline-flex; flex-direction:column; align-items:flex-start; gap:4px; background:var(--pp-paper); border-radius:12px; padding:8px 10px; border:2px solid var(--pp-line); }
.pp-qn{ font-size:20px; font-weight:600; }
.pp-qv{ display:flex; flex-wrap:wrap; gap:3px; max-width:220px; align-items:flex-end; direction:ltr; }
.pp-qv i{ display:block; box-shadow:inset 0 0 0 40px var(--pp-blue); border-radius:2px; }
.pp-qv .q-h{ width:26px; height:26px; }
.pp-qv .q-t{ width:6px; height:26px; }
.pp-qv .q-u{ width:8px; height:8px; border-radius:50%; box-shadow:inset 0 0 0 40px var(--pp-green); }
.pp-example{ margin-top:14px; background:var(--pp-blue-bg); border-radius:16px; padding:14px 16px; }
.pp-example h4{ margin:0 0 8px; font-weight:600; }
.pp-example ol{ list-style:none; margin:8px 0 0; padding:0; display:grid; gap:8px; }
.pp-example li{ display:flex; gap:10px; align-items:flex-start; }
.pp-n{ flex:none; width:30px; height:30px; border-radius:50%; box-shadow:inset 0 0 0 40px var(--pp-blue); color:#FFFFFF; display:grid; place-items:center; font-size:16px; font-weight:600; }
/* visual */
.pp-contrast{ background:#FFFFFF; color:#000000; }
.pp-contrast .pp-step{ background:#FFFFFF; border:3px solid #000000; }
.pp-contrast .pp-obj, .pp-contrast .pp-kicker, .pp-contrast .pp-say{ color:#000000; }
.pp-signal{ float:inline-end; margin-inline-start:8px; }
.pp-signal .pp-pic{ width:44px; height:44px; color:#000000; }
.pp-cap{ margin:10px 0 0; background:#FFF3B8; color:#000000; border-radius:10px; padding:8px 10px; font-size:calc(16px * var(--pp-scale)); }

/* ---------------- pages ---------------- */
body.pp-page{ background:#FFFFFF; color:var(--pp-ink); }
.pp-wrap{ max-width:720px; margin:0 auto; padding:0 16px 96px; }
.pp-h1{ font-size:26px; line-height:1.35; font-weight:600; margin:16px 0 4px; }
.pp-sub{ margin:0 0 16px; color:var(--pp-ink-2); font-size:16px; }
.pp-h2{ font-size:20px; font-weight:600; margin:28px 0 10px; }
.pp-seg{ display:flex; gap:8px; overflow-x:auto; padding:2px 0 8px; scrollbar-width:none; }
.pp-seg::-webkit-scrollbar{ display:none; }
.pp-seg button{ flex:none; min-height:48px; padding:8px 14px; border-radius:16px; border:2px solid var(--pp-line); background:#FFFFFF; color:var(--pp-ink); font:inherit; font-size:16px; font-weight:500; cursor:pointer; }
.pp-seg button[aria-pressed="true"]{ border-color:var(--pp-blue); background:var(--pp-blue-bg); color:var(--pp-blue-edge); font-weight:600; }
.pp-line1{ margin:6px 0 12px; color:var(--pp-ink-2); font-size:16px; }
.pp-frame{ border:2px solid var(--pp-line); border-radius:20px; overflow:hidden; }
.pp-status{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; font-size:16px; margin:12px 0; }
.pp-status.is-draft{ background:var(--pp-panel); color:var(--pp-ink-2); }
.pp-status.is-pending{ background:var(--pp-amber-bg); color:var(--pp-amber-ink); }
.pp-status.is-validated{ background:var(--pp-green-bg); color:var(--pp-green-ink); }
.pp-status.is-changes{ background:var(--pp-amber-bg); color:var(--pp-amber-ink); }
.pp-dot{ width:10px; height:10px; border-radius:50%; background:currentColor; flex:none; }
.pp-actions{ display:grid; gap:10px; margin:16px 0; }
.pp-actions .ui-btn, .pp-actions .btn{ width:100%; min-height:54px; }
.pp-rows{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.pp-row{ display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 14px; border-radius:16px; background:var(--pp-panel); color:inherit; text-decoration:none; }
.pp-row b{ display:block; font-weight:600; }
.pp-row small{ display:block; color:var(--pp-ink-2); font-size:16px; }
.pp-row .pp-grow{ flex:1; min-width:0; }
.pp-note{ color:var(--pp-ink-2); font-size:16px; }
.pp-qr{ display:flex; flex-direction:column; align-items:center; gap:10px; background:var(--pp-panel); border-radius:16px; padding:16px; }
.pp-qr canvas, .pp-qr img, .pp-qr svg{ width:200px; height:200px; background:#FFFFFF; padding:8px; border-radius:12px; }
.pp-link{ width:100%; font:inherit; font-size:15px; direction:ltr; padding:12px; border-radius:12px; border:2px solid var(--pp-line); background:#FFFFFF; color:var(--pp-ink); }
.pp-compare{ display:grid; gap:12px; }
.pp-compare h3{ margin:0 0 6px; font-size:17px; font-weight:600; }
@media (min-width:900px){ .pp-compare{ grid-template-columns:1fr 1fr; } .pp-ba{ display:none; } }
@media (max-width:899px){ .pp-compare[data-show="after"] > section:first-child, .pp-compare[data-show="before"] > section:last-child{ display:none; } }
.pp-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:15px; background:var(--pp-panel); color:var(--pp-ink-2); }
.pp-chip.ok{ background:var(--pp-green-bg); color:var(--pp-green-ink); }
.pp-chip.wait{ background:var(--pp-amber-bg); color:var(--pp-amber-ink); }
textarea.pp-input{ width:100%; min-height:96px; font:inherit; font-size:17px; padding:12px; border-radius:16px; border:2px solid var(--pp-line); }
textarea.pp-input:focus{ outline:none; border-color:var(--pp-blue); box-shadow:0 0 0 4px var(--pp-blue-bg); }

/* projection on the class computer: the lesson only, very large */
body.pp-project .appbar, body.pp-project .pp-chrome{ display:none !important; }
body.pp-project .pp-wrap{ max-width:none; padding:24px 4vw; }
body.pp-project .pp{ font-size:calc(30px * var(--pp-scale)); border:0; }
body.pp-project .pp-title{ font-size:calc(40px * var(--pp-scale)); }
body.pp-project .pp-one{ font-size:calc(40px * var(--pp-scale)); }
.pp-exit{ position:fixed; inset-block-start:12px; inset-inline-end:12px; z-index:5; }

/* ---------------- the blocks the hook adds to existing screens ---------------- */
.pp-card{ background:var(--pp-panel); border-radius:16px; padding:16px; margin:16px 0; }
.pp-card h2, .pp-card h3{ margin:0 0 6px; font-size:19px; font-weight:600; }
.pp-card p{ margin:0 0 10px; }
.pp-card .pp-seg{ margin-top:6px; }
.pp-card .ui-btn, .pp-card .btn{ min-height:54px; }
.pp-inline{ display:flex; gap:8px; flex-wrap:wrap; }
.pp-inline > *{ flex:1 1 160px; }
.pp-tag-ok{ color:var(--pp-green-ink); font-weight:500; }

/* ---------------- exceptional measures + cases ---------------- */
.sen-filter{ display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; }
.sen-filter button{ flex:none; min-height:48px; padding:6px 12px; border-radius:16px; border:2px solid var(--pp-line); background:#FFFFFF; font:inherit; font-size:15px; cursor:pointer; color:var(--pp-ink); }
.sen-filter button[aria-pressed="true"]{ border-color:var(--pp-blue); background:var(--pp-blue-bg); color:var(--pp-blue-edge); font-weight:600; }
.sen-year{ list-style:none; margin:0; padding:0; position:relative; }
.sen-year > li{ position:relative; padding:0 28px 18px 0; }
.sen-year > li::before{ content:""; position:absolute; inset-inline-start:auto; right:7px; top:8px; bottom:-8px; width:2px; background:var(--pp-line); }
.sen-year > li:last-child::before{ display:none; }
.sen-year > li::after{ content:""; position:absolute; right:0; top:6px; width:16px; height:16px; border-radius:50%; background:#FFFFFF; border:3px solid var(--pp-blue); box-sizing:border-box; }
.sen-year > li.is-done::after{ box-shadow:inset 0 0 0 20px var(--pp-blue); }
.sen-year h3{ margin:0; font-size:17px; font-weight:600; }
.sen-year time{ color:var(--pp-ink-2); font-size:15px; }
.sen-year ul{ margin:6px 0 0; padding-inline-start:18px; }
.sen-year p{ margin:6px 0 0; }
.sen-form{ display:grid; gap:8px; }
.sen-form fieldset{ border:0; margin:0 0 8px; padding:0; }
.sen-form legend{ font-weight:600; margin-bottom:6px; }
.sen-check{ display:flex; align-items:center; gap:10px; min-height:48px; padding:6px 10px; border-radius:12px; background:#FFFFFF; }
.sen-check input{ width:24px; height:24px; accent-color:var(--pp-blue); flex:none; }
.sen-roles{ display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; }
.sen-roles a{ flex:none; min-height:48px; display:inline-flex; align-items:center; padding:0 14px; border-radius:16px; border:2px solid var(--pp-line); text-decoration:none; color:var(--pp-ink); }
.sen-roles a[aria-current="page"]{ border-color:var(--pp-blue); background:var(--pp-blue-bg); color:var(--pp-blue-edge); font-weight:600; }

/* ---------------- the adapted exam (screen + A4) ---------------- */
.ex-paper{ background:#FFFFFF; border:2px solid var(--pp-line); border-radius:16px; padding:18px 16px; }
.ex-head{ display:grid; grid-template-columns:1fr; gap:2px; border-bottom:2px solid #161616; padding-bottom:10px; margin-bottom:14px; font-size:16px; }
.ex-head b{ font-weight:600; }
.ex-meta{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:16px; }
.ex-text{ background:var(--pp-panel); border-radius:12px; padding:12px 14px; font-size:20px; line-height:2.1; word-spacing:.25em; }
.ex-item{ margin:18px 0; page-break-inside:avoid; }
.ex-q{ font-size:20px; line-height:1.9; margin:0 0 4px; }
.ex-verb{ font-weight:600; color:var(--pp-blue-edge); display:block; font-size:17px; }
.ex-crit{ font-size:14px; color:var(--pp-ink-2); }
.ex-opts{ display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; }
.ex-opts span{ min-width:96px; text-align:center; padding:10px 16px; border:2px solid #161616; border-radius:12px; font-size:20px; }
.ex-opts.is-circle span{ border-radius:999px; border-style:dashed; }
.ex-match{ display:grid; grid-template-columns:1fr 64px 1fr; gap:10px 0; align-items:center; margin-top:10px; }
.ex-match span{ padding:10px 12px; border:2px solid #161616; border-radius:12px; font-size:19px; text-align:center; }
.ex-match i{ display:block; width:12px; height:12px; border-radius:50%; box-shadow:inset 0 0 0 20px #161616; margin:auto; }
.ex-oral{ margin-top:8px; padding:10px 12px; border:2px dashed #161616; border-radius:12px; font-size:17px; }
.ex-score{ display:flex; gap:8px; margin-top:8px; }
.ex-score button{ flex:1; min-height:48px; border-radius:14px; border:2px solid var(--pp-line); background:#FFFFFF; font:inherit; font-size:16px; cursor:pointer; color:var(--pp-ink); }
.ex-score button[aria-pressed="true"]{ border-color:var(--pp-blue); background:var(--pp-blue-bg); color:var(--pp-blue-edge); font-weight:600; }
.ex-table{ width:100%; border-collapse:collapse; font-size:16px; }
.ex-table th, .ex-table td{ padding:10px 6px; border-bottom:1px solid var(--pp-line); text-align:start; }
.ex-table th{ font-weight:600; }
.ex-script{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.ex-script li{ background:var(--pp-panel); border-radius:14px; padding:12px 14px; }
.ex-script b{ font-weight:600; }
@media print{
  @page{ size:A4; margin:14mm; }
  body *{ visibility:hidden; }
  .ex-print, .ex-print *{ visibility:visible; }
  .ex-print{ position:absolute; inset:0 0 auto 0; border:0; padding:0; }
  .ex-score, .no-print{ display:none !important; }
  .ex-text, .ex-q, .ex-opts span, .ex-match span{ font-size:16pt; }
}
