/* circle.css — «حلقتي» (circle.html): teacher circles, coaching cycles, lesson study. kit.css + pn-voice.css underneath.
   09-kufi: white / paper / ink, red for the one main action only, radius 0, solid text colours (no alpha on text). */
.cir-pad{ padding-top:clamp(20px,4vw,44px); padding-bottom:32px; }
.cir-head h1.long{ font-size:clamp(26px,5vw,44px); line-height:1.35; }
.cir-head .lede{ font-size:var(--t-mid); line-height:1.6; color:var(--ink-2); margin-top:12px; max-width:40ch; }
.cir-head .meta{ margin-top:10px; font-size:18px; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
.cir-sec{ margin-top:clamp(28px,5vw,52px); }
.cir-h2{ margin-bottom:12px; }
.cir-h3{ margin:24px 0 8px; }
.cir-note{ font-size:var(--t-note); color:var(--ink-3); line-height:1.6; margin-top:10px; max-width:62ch; }
.cir-lead{ font-size:19px; line-height:1.7; color:var(--ink-2); max-width:58ch; }

/* tabs: one row that scrolls on a phone, never the page */
.cir-tabs{ display:flex; flex-wrap:wrap; gap:4px; margin-top:24px; padding:4px; border-radius:var(--card-r); background:var(--panel); }
.cir-tabs a{ flex:none; display:inline-flex; align-items:center; min-height:var(--tap); padding:8px 14px; border-radius:12px; color:var(--fg-1); text-decoration:none; font:600 var(--t-small)/1.3 var(--font); }
.cir-tabs a:hover{ background:var(--paper-3); }
.cir-tabs a[aria-current="page"]{ background:var(--bg); color:var(--primary); box-shadow:0 2px 0 var(--second-edge); }

/* the two first-run choices */
.cir-start{ display:grid; gap:4px; margin-top:28px; }
@media (min-width:760px){ .cir-start{ grid-template-columns:1fr 1fr; } }
.cir-start > div{ background:var(--paper-2); padding:22px 22px 24px; display:grid; gap:12px; align-content:start; }
.cir-start b{ font:800 22px/1.4 var(--f-display); }
.cir-start p{ font-size:18px; line-height:1.65; color:var(--ink-2); }

/* rules band */
.cir-rules{ display:grid; gap:4px; margin-top:16px; }
@media (min-width:700px){ .cir-rules{ grid-template-columns:1fr 1fr; } }
.cir-rules div{ background:var(--paper-2); padding:16px 18px; display:grid; gap:6px; }
.cir-rules b{ font-weight:700; font-size:19px; }
.cir-rules span{ color:var(--ink-2); font-size:17px; line-height:1.65; }

/* practice cards */
.cir-list{ list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.cir-card{ background:var(--paper-2); padding:18px 20px; display:grid; gap:8px; min-width:0; }
.cir-card .k{ font:700 16px/1.4 var(--f-text); color:var(--ink-2); }
.cir-card h3{ overflow-wrap:anywhere; }
.cir-card .by{ font-size:17px; color:var(--ink-2); line-height:1.5; }
.cir-card .tx{ font-size:18px; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
.cir-card img{ display:block; max-width:100%; height:auto; max-height:360px; object-fit:contain; background:var(--paper); }
.cir-card .uses{ font-size:17px; line-height:1.55; color:var(--green-ink); background:var(--green-field); padding:8px 12px; justify-self:start; }
.cir-card .acts, .cir-acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; align-items:center; }
.cir-card .acts .btn, .cir-acts .btn{ min-height:52px; }
.cir-mark[aria-pressed="true"]{ background:var(--selected, #E0E2DD); color:var(--ink, #0B0B0B); }
.cir-fiche{ display:grid; gap:4px; margin-top:4px; }
.cir-fiche div{ background:var(--paper); padding:10px 14px; font-size:17px; line-height:1.6; overflow-wrap:anywhere; }
.cir-fiche b{ display:block; font-weight:700; font-size:16px; color:var(--ink-2); }

/* forms */
.cir-form{ max-width:760px; margin-top:16px; }
.cir-form .field + .field, .cir-form .field + .cir-check, .cir-form .cir-check + .field{ margin-top:20px; }
.cir-check{ display:flex; gap:12px; align-items:flex-start; background:var(--paper-2); padding:14px 16px; margin-top:16px; cursor:pointer; }
.cir-check input{ width:26px; height:26px; flex:none; margin-top:2px; accent-color:var(--ink); }
.cir-check span{ font-size:18px; line-height:1.6; }
.cir-choices{ display:grid; gap:4px; }
@media (min-width:700px){ .cir-choices{ grid-template-columns:1fr 1fr; } }
.cir-choices label{ display:flex; gap:12px; align-items:flex-start; background:var(--paper-2); padding:14px 16px; cursor:pointer; min-height:56px; }
.cir-choices input{ width:24px; height:24px; flex:none; margin-top:3px; accent-color:var(--ink); }
.cir-choices b{ display:block; font-weight:700; font-size:18px; line-height:1.4; }
.cir-choices small{ display:block; font-size:16px; line-height:1.5; color:var(--ink-2); margin-top:2px; }
.cir-choices label:has(input:checked){ box-shadow:inset 0 0 0 3px var(--ink); }
.cir-objs{ max-height:420px; overflow-y:auto; grid-template-columns:1fr!important; }
.cir-stage{ display:grid; gap:8px; background:var(--paper-2); padding:12px 14px; margin-top:8px; }
.cir-stage input, .cir-stage textarea{ width:100%; }
.cir-warn{ font-size:18px; color:var(--amber-ink); background:var(--amber-field); padding:12px 16px; line-height:1.6; margin-top:12px; }
.cir-ok{ font-size:18px; color:var(--green-ink); background:var(--green-field); padding:12px 16px; line-height:1.6; margin-top:12px; }
.cir-code{ font:800 clamp(24px,6vw,36px)/1.3 var(--f-display); letter-spacing:.04em; direction:ltr; text-align:center; background:var(--paper-2); padding:16px; margin-top:12px; overflow-wrap:anywhere; }
.cir-paste{ width:100%; min-height:120px; font:16px/1.5 ui-monospace, monospace; direction:ltr; text-align:left; }

/* members */
.cir-members{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:4px; }
.cir-members li{ background:var(--paper-2); padding:8px 14px; font-size:17px; line-height:1.4; }

/* coaching cycle: four steps */
.cir-steps{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:4px; counter-reset:st; }
.cir-steps > li{ background:var(--paper-2); padding:16px 18px; display:grid; gap:8px; min-width:0; }
.cir-steps h3 span{ font:700 16px/1.4 var(--f-text); color:var(--ink-2); margin-inline-start:8px; }
.cir-steps .d{ font-size:17px; color:var(--ink-2); line-height:1.6; }
.cir-steps .nt{ background:var(--paper); padding:10px 14px; font-size:17px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.cir-steps .nt small{ display:block; color:var(--ink-2); font-size:15px; margin-top:4px; }
.cir-prompts{ display:flex; flex-wrap:wrap; gap:6px; }
.cir-prompts button{ min-height:44px; padding:6px 12px; border:0; background:var(--paper); color:var(--ink); font:600 16px/1.3 var(--f-text); cursor:pointer; }
.cir-prompts button:hover{ background:var(--paper-3); }
.cir-due{ font-size:18px; line-height:1.6; background:var(--paper-2); padding:12px 16px; margin-top:12px; }

/* indicators table (shared with inspector pages through the same classes) */
.cir-table{ width:100%; border-collapse:collapse; margin-top:12px; font-size:17px; }
.cir-table th, .cir-table td{ text-align:start; padding:10px 12px; vertical-align:top; }
.cir-table thead th{ background:var(--selected, #E0E2DD); color:var(--ink, #0B0B0B); font-weight:700; }
.cir-table tbody tr:nth-child(odd){ background:var(--paper-2); }
.cir-table td.n{ font-feature-settings:"tnum" 1; white-space:nowrap; }
.cir-scroll{ overflow-x:auto; }
@media (max-width:480px){ .cir-table{ font-size:15px; } .cir-table th, .cir-table td{ padding:8px 6px; } }

.cir-foot{ background:var(--band); color:var(--on-ink); padding-block:28px 36px; margin-top:32px; }
.cir-foot p{ font:700 18px/1.6 var(--f-text); }
.cir-foot .sub{ margin-top:8px; font-weight:400; font-size:16px; color:var(--on-ink-2); }
.cir-foot .link{ color:inherit; }
.cir .actionbar .btn{ min-width:0; }
@media (max-width:420px){ .cir-tabs a{ padding:8px 14px; font-size:17px; } .cir-card{ padding:16px; } }
@media print{ .appbar, .cir-tabs, .cir-acts, .acts, .cir-foot, .actionbar{ display:none!important; } }

.cir :is(.cir-rules > div, .cir-check, .cir-choices label, .cir-stage, .cir-steps > li, .cir-due){ border-radius:var(--card-r); background:var(--panel); }
.cir .cir-steps > li[data-on="1"]{ background:#E4EDFF; }
