/* The application page — the look he approved on the mockup (design/registration-mock.html, 12 November 2026:
   "this is good"): the school's seal on deep teal, the seal's gold as a rule and a ring (never a fill),
   serif headings, a cream page. A phone first; on a computer the same column, centred. */
:root{--brand:#14524f;--brand-soft:#e6efee;--gold:#b8862b;--gold-soft:#fbf6ea;--cream:#faf8f3;--panel:#fff;--line:#dcd8cb;
  --ink:#1b1e24;--ink-2:#52514e;--ink-3:#77766f;--warn-bg:#fff4e2;--warn-line:#e8c489;--warn-ink:#6b4a12;--bad:#a3261d;--bad-soft:#fdecea;color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#out{max-width:520px;margin:0 auto;min-height:100vh;background:var(--cream)}
.quiet{color:var(--ink-2);text-align:center;padding:60px 20px}

.top{background:radial-gradient(120% 140% at 0% 0%,#1f706b 0%,#14524f 45%,#0d3d3a 100%);color:#fff;padding:14px 16px 13px;
  border-bottom:3px solid var(--gold);position:sticky;top:0;z-index:5;overflow:hidden}
.top::after{content:'';position:absolute;right:-46px;top:-46px;width:150px;height:150px;border-radius:50%;border:1.5px solid #ffffff26;
  box-shadow:0 0 0 16px #ffffff0d,0 0 0 34px #ffffff08;pointer-events:none}
.top .row{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.top .row img{width:34px;height:34px;flex:none}
.top .nm{font:700 15px/1.2 Georgia,"Times New Roman",serif}
.bar{height:6px;background:#ffffff33;border-radius:3px;margin-top:9px;overflow:hidden;position:relative;z-index:1}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#e3c078,#b8862b);border-radius:3px;transition:width .25s}
.step{font-size:12px;opacity:.92;margin-top:5px;display:flex;justify-content:space-between;gap:10px;position:relative;z-index:1}
.hero{background:radial-gradient(130% 120% at 50% 0%,#1f706b 0%,#14524f 50%,#0d3d3a 100%);color:#fff;text-align:center;padding:26px 20px 30px;
  border-bottom:3px solid var(--gold);border-radius:0 0 50% 50%/0 0 26px 26px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;left:50%;top:-70px;width:300px;height:300px;margin-left:-150px;border-radius:50%;
  border:1.5px solid #ffffff1f;box-shadow:0 0 0 22px #ffffff0a,0 0 0 48px #ffffff06}
.hero img{width:92px;height:92px;position:relative}
.hero .he{font:700 22px/1.2 Georgia,serif;margin-top:8px;position:relative}
.hero .en{font-size:13px;letter-spacing:.14em;text-transform:uppercase;opacity:.85;position:relative}
.hero .yr{display:inline-block;margin-top:12px;border:1.5px solid #e3c078;color:#f4e3bd;border-radius:999px;padding:5px 16px;
  font:700 13px/1.2 Georgia,serif;letter-spacing:.04em;position:relative}

.body{padding:18px 16px 28px}
h2{font:700 22px/1.25 Georgia,"Times New Roman",serif;color:var(--brand);margin:0 0 6px;display:flex;align-items:center;gap:9px}
h2 .n{width:30px;height:30px;border-radius:50%;border:2px solid var(--gold);color:var(--gold);font:700 14px/26px Georgia,serif;text-align:center;flex:none;background:#fff}
h3{font:700 16px/1.3 Georgia,serif;color:var(--brand);margin:16px 0 8px;padding-top:12px;border-top:1px solid var(--line);flex-basis:100%}
.fields h3:first-child{border-top:0;padding-top:0;margin-top:0}
.sub{color:var(--ink-2);font-size:15px;margin:0 0 13px}.sub.dark{color:var(--ink)}
.dotsrow{display:flex;gap:5px;margin:2px 0 12px}.dotsrow i{width:8px;height:8px;border-radius:50%;background:var(--line)}.dotsrow i.on{background:var(--gold)}
.card{background:var(--panel);border:1px solid #e9e5d8;border-radius:16px;padding:15px;margin:0 0 12px;box-shadow:0 1px 2px #1b1e240a,0 6px 18px #14524f0f}
.card.lead{border-left:4px solid var(--gold)}
.fields{display:flex;flex-wrap:wrap;gap:0 10px}
.f{flex:1 1 100%;min-width:0;margin:0 0 13px}.f.half{flex:1 1 calc(50% - 5px)}
label{display:block;font-size:14px;font-weight:600;color:var(--ink-2);margin:0 0 5px}
label i{font-weight:400;font-style:normal;color:var(--ink-3)}
.in{display:block;width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit;font-size:16px;min-height:48px}
textarea.in{resize:vertical;line-height:1.45}
select.in{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--brand) 50%),linear-gradient(135deg,var(--brand) 50%,transparent 50%);
  background-position:calc(100% - 18px) 21px,calc(100% - 12px) 21px;background-size:6px 6px;background-repeat:no-repeat;padding-right:34px}
.in:focus-visible,button:focus-visible,.pick:focus-within{outline:3px solid #14524f55;outline-offset:1px}
.f.miss > label,.f.miss .chk span{color:var(--bad)}
.f.miss .in,.f.miss .seg button,.f.miss .scale button,.f.miss .sig,.f.miss .pick{border-color:var(--bad);background:var(--bad-soft)}
.note{font-size:13.5px;color:var(--ink-3);margin:6px 0 0}.note.dark{color:var(--ink-2)}.note.bad{color:var(--bad);font-weight:600}
.note.calc{flex-basis:100%;margin:-6px 0 12px}
.info{flex-basis:100%;font-size:15px;color:var(--ink);margin:0 0 11px}.info a{color:var(--brand);font-weight:700}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.seg button{min-height:48px;border-radius:11px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
.seg button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.chk{display:flex;gap:10px;align-items:flex-start;font-weight:600;color:var(--ink);cursor:pointer;margin:0}
.chk input{width:22px;height:22px;flex:none;accent-color:var(--brand);margin:1px 0 0}
.multi{display:grid;gap:10px}
.warn{flex-basis:100%;background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-ink);border-radius:12px;padding:12px 14px;font-size:15px;margin:0 0 13px}
.warn b{display:block;margin-bottom:3px}.warn .chk{margin-top:9px;color:var(--warn-ink)}.warn .chk input{accent-color:var(--warn-ink)}
.gap{display:block;width:100%;text-align:left;margin-top:8px;padding:10px 12px;border-radius:10px;border:1px solid var(--warn-line);background:#fff;color:var(--warn-ink);font:inherit;font-weight:600;cursor:pointer}
.sib{display:grid;grid-template-columns:1.2fr .8fr 1.3fr auto;gap:6px;margin-bottom:6px}.sib .in{padding:9px 8px;font-size:15px;min-height:42px}
/* a row's own ✕ (17 Nov 2026) */
.sib .delrow{width:38px;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink-3);font:700 15px system-ui;cursor:pointer}
.sib .delrow:hover{color:var(--bad);border-color:var(--bad)}
/* the Hebrew keyboard under a Hebrew-letters box (17 Nov 2026) */
.hekbd{flex:1 1 100%;margin:-4px 0 4px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#f3f0e6;display:grid;gap:5px}
.hekrow{display:flex;gap:4px;justify-content:center}
.hekbd button{flex:1 1 0;max-width:46px;min-height:42px;border:1px solid #d8d3c3;border-radius:8px;background:#fff;color:var(--ink);
  font:600 19px/1 "Frank Ruhl Libre","Times New Roman",serif;cursor:pointer;padding:0}
.hekbd button.wide{max-width:64px;font:700 15px system-ui}
.hekbd button.space{max-width:none;flex:3 1 0;font:600 14px system-ui;color:var(--ink-3)}
.hekbd button.done{background:var(--brand);border-color:var(--brand);color:#fff}
/* the test page's child / son / student highlighter (17 Nov 2026) */
mark.wordmark{background:#ffe27a;color:inherit;border-radius:3px;padding:0 2px;box-shadow:0 0 0 1px #e0b400}
.testbar .tbtn.on{background:#5c5124;color:#fff;border-color:#5c5124}
/* a page with no step list (the thank-you, the teacher's evaluation): one centred column on a computer (17 Nov 2026,
   his: "the design needs to be fixed because it looks like it's built for phone, not for computer") */
@media (min-width: 960px) {
  .solo{max-width:760px;margin:28px auto 48px;background:#fff;border:1px solid #e9e5d8;border-radius:18px;overflow:hidden}
  .solo .body{padding:32px 40px 36px}
  .solo h2{font-size:28px}
  .solo .card{padding:22px 26px}
  .solo .foot{justify-content:flex-end}
  .solo .foot .btn{flex:0 0 260px}
  .solo .saved{text-align:right}
}
.add,.clear{background:none;border:0;padding:6px 0;color:var(--brand);font:inherit;font-weight:700;font-size:14.5px;cursor:pointer}
.clear{display:block;margin-left:auto}
.state{font:italic 17px/1.6 Georgia,serif;color:var(--ink);margin:0 0 14px;padding-left:14px;border-left:3px solid var(--gold);flex-basis:100%}
.state.plain{font-style:normal}
.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 0 6px}
.scale button{aspect-ratio:1;max-width:62px;width:100%;margin:0 auto;border-radius:50%;border:1px solid var(--line);background:#fff;font:700 18px/1 system-ui;color:var(--ink);cursor:pointer}
.scale button.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--gold)}
.ends{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-3)}
.file .have{display:flex;align-items:center;gap:10px;margin-bottom:8px;color:#006300;font-weight:700}
.file .have img{width:64px;height:64px;object-fit:cover;border-radius:9px;border:2px solid #fff;box-shadow:0 0 0 1.5px var(--gold)}
.file .have em{font-style:normal;font-size:12px;border:1px solid var(--line);border-radius:6px;padding:2px 7px;color:var(--ink-2)}
.pick{display:block;text-align:center;border:1px solid var(--line);border-radius:11px;padding:13px;color:var(--brand);font-weight:700;background:#fff;cursor:pointer;margin:0;position:relative}
.pick input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.pick.busy{opacity:.6;pointer-events:none}.pick.busy::after{content:' · uploading…';font-weight:400}
.sig{border:1.5px dashed var(--gold);border-radius:12px;background:var(--gold-soft);position:relative;height:150px;overflow:hidden}
.sig canvas,.sig img{width:100%;height:100%;display:block;touch-action:none}.sig img{object-fit:contain}
.sig small{position:absolute;left:12px;bottom:7px;color:var(--ink-3);font-size:12px;pointer-events:none}
.sig.kept{border-style:solid}
.amt{flex-basis:100%;display:flex;justify-content:space-between;align-items:baseline;background:var(--gold-soft);border:1px solid #ead9b0;border-radius:11px;padding:12px 14px;margin:0 0 13px;font-weight:600}
.amt b{font-size:20px;font-variant-numeric:tabular-nums}
.kv{margin:0 0 4px}
.saved{font-size:13px;color:var(--ink-3);text-align:center;min-height:20px;margin:4px 0 8px}.saved.bad{color:var(--bad);font-weight:600}
.foot{display:flex;gap:9px;align-items:center}
.btn{flex:1;display:block;width:100%;background:linear-gradient(180deg,#1a6460,#14524f);color:#fff;border:0;border-radius:14px;padding:15px;text-align:center;
  font:700 16px/1.2 system-ui;box-shadow:0 4px 12px #14524f40;cursor:pointer}
.btn::after{content:'  →'}.btn.send::after{content:''}
.btn:disabled{opacity:.5;box-shadow:none;cursor:default}
.card .btn{margin-top:12px}
.back{background:none;border:0;color:var(--brand);font:700 16px/1 system-ui;padding:15px 12px;cursor:pointer}
.thanks{text-align:center;padding:14px 0 16px}
.thanks .ring{width:86px;height:86px;border-radius:50%;margin:0 auto 10px;border:3px solid var(--gold);display:grid;place-items:center;background:#fff;box-shadow:0 0 0 8px var(--gold-soft)}
.thanks .ring svg{width:40px;height:40px}
.thanks b{display:block;font:700 22px/1.25 Georgia,serif;color:var(--brand)}
.thanks span{color:var(--ink-2);font-size:15px}
ol.steps{list-style:none;padding:0;margin:0;counter-reset:s;color:var(--ink-2);font-size:15px}
ol.steps li{counter-increment:s;display:flex;gap:10px;margin-bottom:10px}
ol.steps li::before{content:counter(s);width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font:700 12.5px/24px system-ui;text-align:center;flex:none}
@media (prefers-reduced-motion:reduce){.bar i{transition:none}}

/* not immunized: the form stops (12 Nov 2026) */
.warn.stop{line-height:1.5}
.warn.stop .btn{margin-top:12px;text-decoration:none}
.warn.stop .stopagain{display:block;width:100%;margin-top:10px;text-align:center}
.warn.stop .stopsay{display:block;margin-top:8px;font-weight:700}

/* Hebrew letters only (12 Nov 2026) */
.heno{display:block;margin-top:5px;font-size:13.5px;font-weight:700;color:var(--bad);line-height:1.3}
.heno[hidden]{display:none}
.in.henot{border-color:var(--bad);background:var(--bad-soft)}

/* the two Hebrew birthdays (12 Nov 2026) */
.seg.hebday button{min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 6px;font-size:18px}
.seg.hebday button small{font:500 12.5px/1.2 system-ui;opacity:.8}

/* take a photo / choose one (12 Nov 2026) */
.picks{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.picks .pick{padding:13px 6px}

.fhint{display:block;margin-top:5px;font-size:13.5px;color:var(--muted,#6b7a78);line-height:1.3}

/* a brother or sister half written (12 Nov 2026) */
.in.need{border-color:var(--bad);background:var(--bad-soft)}

/* the registration fee, by card, on the last page (16 Nov 2026 — the mockup he approved) */
.card.fee{border-left:4px solid var(--gold)}
.card.fee h3{border-top:0;padding-top:0;margin:0 0 9px}
.card.fee .amt{margin-bottom:12px}
.cardbox{border:1px dashed #cfc9b6;border-radius:13px;padding:12px;background:#fdfcf9;min-height:64px}
.cardbox .fields .f:last-child,.cardbox .fields .f.half:nth-last-child(-n+2){margin-bottom:0}
.in.mockcard{color:#9a988f}
.paidnow{color:#006300;font-weight:700;margin:2px 0 4px}
.card.paidc{display:flex;gap:11px;align-items:center;border-left:4px solid var(--gold)}
.card.paidc .tick{width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;flex:none}
.card.paidc .note{display:block;margin:2px 0 0}
/* the code, on a test application (16 Nov 2026) */
.codebox{margin-top:6px}.codebox .add{padding:4px 0}
.coderow{display:flex;gap:8px;margin-top:6px}.coderow .in{flex:1;text-transform:uppercase}
.tbtn{border:1px solid var(--brand);background:#fff;color:var(--brand);border-radius:11px;padding:0 16px;font:700 15px system-ui;cursor:pointer;min-height:48px}
.tbtn:disabled{opacity:.5}
/* "Suggest a change to this page", on a test application (16 Nov 2026 — the mockup he approved) */
.card.suggest{border-left:4px solid #5c5124;margin-top:6px}
.card.suggest label{font:700 15px/1.3 Georgia,serif;color:#5c5124}
.card.suggest .tbtn{width:100%;margin-top:8px}
/* the test application's fill bar (16 Nov 2026 — the mockup he approved): fixed to the foot of the screen */
.fillbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fffdf4;border-top:2px solid #5c5124;box-shadow:0 -6px 18px #0002;
  padding:10px max(14px,env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px))}
.fillbar .fillq{display:flex;align-items:center;gap:8px;color:#5c5124;font-weight:700;font-size:14px;margin:0 auto 8px;max-width:520px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fillbar .fillrow{display:flex;gap:8px;max-width:520px;margin:0 auto}
.fillbar .btn{text-align:left;padding:13px 14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fillbar .tbtn{font-size:18px}
body:has(.fillbar:not([hidden])) #out{padding-bottom:120px}
/* ON A COMPUTER (16 Nov 2026 — "look what applications look like on pc … not just stretch this one"; the mockup he
   approved): the header across the top with the year; the steps down the left, ✓ when complete, the page beside them.
   On a phone the step list and the year are hidden and nothing else changes. */
.rail,.topyr{display:none}
@media (min-width: 960px) {
  body{background:#efece3}
  #out{max-width:none;background:transparent}
  .top{position:static;padding:0}
  .top::after{display:none}
  .top .row{max-width:1120px;margin:0 auto;padding:16px 32px;gap:14px}
  .top .row img{width:44px;height:44px}
  .top .nm{font-size:20px}
  .top .bar,.top .step{display:none}
  .topyr{display:block;margin-left:auto}
  .topyr i{font-style:normal;border:1.5px solid #e3c078;color:#f4e3bd;border-radius:999px;padding:4px 14px;font:700 13px/1.4 Georgia,serif}
  .desk{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;padding:28px 32px 48px}
  .rail{display:block;position:sticky;top:20px;align-self:start;background:#fff;border:1px solid #e9e5d8;border-radius:16px;padding:18px 16px}
  .rail h4{margin:0 0 4px;font:700 12px system-ui;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
  .rail .pct{font:700 15px system-ui;color:var(--brand);margin:0 0 8px}
  .rail .pbar{height:6px;border-radius:3px;background:#ece8db;overflow:hidden;margin-bottom:12px}
  .rail .pbar i{display:block;height:100%;background:linear-gradient(90deg,#e3c078,#b8862b)}
  .rail ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
  .rail li button{display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:7px 8px;border:0;border-radius:9px;background:none;
    font:500 14.5px/1.25 system-ui;color:var(--ink-2);cursor:pointer}
  .rail li button:hover{background:#f5f2e9}
  .rail li b{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;font:700 11px system-ui;border:1.5px solid #d6d1c2;color:var(--ink-3);background:#fff}
  .rail li .done{color:var(--ink)}
  .rail li .done b{background:var(--brand);border-color:var(--brand);color:#fff}
  .rail li .now{background:var(--brand-soft);color:var(--brand);font-weight:700}
  .rail li .now b{border-color:var(--gold);color:var(--gold)}
  .rail .help{margin:12px 0 0;padding-top:10px;border-top:1px solid #ece8db;font:13.5px/1.45 system-ui;color:var(--ink-3)}
  .rail .help + .help{border-top:0;padding-top:0;margin-top:6px}
  .main{min-width:0}
  .main .body{padding:0;max-width:720px}
  .main h2{font-size:28px;margin-bottom:14px}
  .main .card{padding:24px 26px}
  .main .fields{gap:0 20px}
  .main .fields .f.half{flex:1 1 calc(50% - 10px)}
  .main .foot{justify-content:flex-end}
  .main .foot .btn{flex:0 0 240px}
  .main .saved{text-align:right}
  .fillbar .fillq,.fillbar .fillrow{max-width:720px}
}
/* the line at the top of every page of a test application, with Fill this page (16 Nov 2026) */
.testbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#faf6e6;border:1px dashed #5c5124;
  border-radius:12px;padding:10px 12px;margin:0 0 12px;color:#5c5124;font-weight:600;font-size:14.5px}
.testbar .tbtn{min-height:40px}
/* the test page (16 Nov 2026) */
.testtag{font:700 11px system-ui;background:#5c5124;color:#fff;border-radius:6px;padding:2px 7px;letter-spacing:.06em;vertical-align:2px}
.made{border-left:4px solid var(--gold)}.made .btn{text-decoration:none;margin-top:12px}
.made ul{margin:6px 0 0;padding-left:18px;color:var(--ink-2);font-size:14px}
