/* ==========================================================================
   Huda Academy website editor, version 2 (LAB mock, docs/CMS-PLAN.md)
   The rule for every screen: ONE job, a few big questions, ONE big button.
   - 20px text, buttons 64px tall, one narrow column (no side panels)
   - a screen shows one "view" at a time: list -> form -> done
   - no tabs, no previews, no warning boxes stacked up, no extra options
   - no "Stuck? Call us" footer (client 2026-10-13, removed everywhere)
   Page-specific CSS goes in a small scoped <style>; never redefine these.
   ========================================================================== */
:root{
  --paper:#F8F4EE; --paper-2:#EFE8DD; --paper-3:#E2D8C8;
  --terracotta:#A83226; --terracotta-deep:#86251B; --rose:#FFF4F1; --rose-line:#E8B9B1;
  --ink:#2E1F17; --ink-soft:#5E4E42; --cream:#F4EEE4;
  --espresso:#2C1F17; --espresso-deep:#1E150F;
  --flame-y:#FBB718; --flame-o:#E0602F;
  --ok:#2F6B3A; --ok-bg:#E6F1E4; --ok-line:#A9CDA6;
  --line:#D6C9B6; --radius:16px;
  --col:680px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 20px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:4px solid var(--flame-o);outline-offset:3px}
h1[tabindex]:focus,h2[tabindex]:focus{outline:none}
[hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}


/* ---------- top bar (injected) ---------- */
.bar{position:relative;background:linear-gradient(180deg,#33241B,var(--espresso-deep));color:var(--cream)}
.noise{position:absolute;inset:0;pointer-events:none;opacity:.035;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>")}
.bar__in{position:relative;max-width:1040px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-height:52px}
.brand .mark{height:50px;width:auto}
.bar__side{margin-left:auto;display:flex;gap:8px}
.bar__btn{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 16px;border-radius:12px;border:1px solid rgba(244,238,228,.35);color:var(--cream);text-decoration:none;font-size:17px;background:transparent}
.bar__btn:hover{background:rgba(244,238,228,.1)}
.bar__btn svg{width:22px;height:22px}
.flamebar{height:4px;background:linear-gradient(90deg,var(--flame-y),#F49830 30%,var(--flame-o) 62%,var(--terracotta))}

/* ---------- page ---------- */
main{max-width:var(--col);margin:0 auto;padding:28px 20px 64px}
main.wide{max-width:1040px}
h1,h2{font-family:"Cormorant Garamond",Georgia,serif;font-weight:700;line-height:1.1;margin:0}
h1{font-size:46px}
h2{font-size:34px}
p{margin:0}
.lead{font-size:21px;color:var(--ink-soft);margin-top:8px}
.head{margin-bottom:28px}
.back{display:inline-flex;align-items:center;gap:6px;min-height:52px;margin-bottom:4px;color:var(--terracotta-deep);font-weight:600;text-decoration:none;font-size:19px}
.back svg{width:24px;height:24px}
.back:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- buttons: ONE .btn--main per view ---------- */
.btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:68px;padding:0 24px;border-radius:14px;border:2px solid transparent;cursor:pointer;font-weight:600;font-size:22px;text-decoration:none;text-align:center;line-height:1.2}
.btn svg{width:26px;height:26px;flex:none}
.btn--main{background:var(--terracotta);color:#fff}
.btn--main:hover{background:var(--terracotta-deep)}
.btn--plain{background:#fff;color:var(--ink);border-color:var(--line)}
.btn--plain:hover{border-color:var(--ink-soft)}
.btn--small{display:inline-flex;width:auto;min-height:52px;font-size:18px;padding:0 20px}
/* Remove-type buttons are solid red with white words (client 2026-10-13: "you should be able to see it") */
.btn--danger,.btn--plain.btn--danger{color:#fff;border-color:var(--terracotta);background:var(--terracotta)}
.btn--danger:hover,.btn--plain.btn--danger:hover{background:var(--terracotta-deep);border-color:var(--terracotta-deep)}
.cancel{display:flex;justify-content:center;margin-top:10px}
.cancel a,.cancel button{min-height:52px;display:inline-flex;align-items:center;padding:0 16px;background:none;border:0;color:var(--ink-soft);font-size:19px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}

/* ---------- "on the website now" ---------- */
.now{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding:20px 22px;border-radius:var(--radius);background:#fff;border:2px solid var(--line);margin-bottom:24px}
.now__body{flex:1 1 260px;min-width:0}
.now__label{font-size:15px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ok)}
.now__title{font-size:22px;font-weight:600;line-height:1.3;margin-top:2px}
.now--alert{background:var(--rose);border-color:var(--rose-line)}
.now--alert .now__label{color:var(--terracotta-deep)}
.now__title b{font-weight:700}
.now__msg{font-size:19px;line-height:1.4;margin-top:4px;color:var(--ink)}
/* a problem from the publish service, above the button that was pressed */
.pub-err{flex:1 1 100%;margin:0 0 14px;padding:14px 18px;border-radius:14px;background:var(--rose);border:2px solid var(--rose-line);color:var(--terracotta-deep);font-size:18px;font-weight:600}
.pub-err p{margin:0}
.pub-err .btn{margin-top:12px;color:var(--terracotta-deep);border-color:var(--terracotta)}
.btn[aria-busy=true]{opacity:.75;cursor:progress}

/* ---------- simple list ---------- */
.list{display:grid;gap:12px;margin-top:28px}
.list__title{font-size:17px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);margin:32px 0 -16px}
.item{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:18px 20px;background:#fff;border:2px solid var(--line);border-radius:var(--radius)}
.item__ico{flex:none;width:56px;height:56px;border-radius:12px;display:grid;place-items:center;background:var(--paper-2);color:var(--terracotta-deep);font-size:13px;font-weight:700}
.item__ico svg{width:30px;height:30px}
.item__body{flex:1 1 200px;min-width:0}
.item__title{font-size:21px;font-weight:600;line-height:1.3}
.item__meta{font-size:17px;color:var(--ink-soft)}
.item .btn--small{flex:none}
.more{margin-top:16px}  /* a small 'Show all' button under a list */

/* ---------- form ---------- */
.form{display:grid;gap:30px}
.q label.q__label,.q .q__label{display:block;font-size:22px;font-weight:600;line-height:1.3;margin-bottom:10px}
.q__opt{font-weight:500;font-size:17px;color:var(--ink-soft)}
.q__hint{font-size:17px;color:var(--ink-soft);margin:-4px 0 10px}
.field{width:100%;min-height:64px;border:2px solid var(--line);border-radius:14px;padding:12px 18px;font-size:21px;background:#fff}
.field:focus{border-color:var(--ink);outline:none;box-shadow:0 0 0 4px rgba(224,96,47,.3)}
.field--area{min-height:170px;resize:vertical;line-height:1.5}
select.field{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%232E1F17' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l7 7 7-7'/></svg>");background-repeat:no-repeat;background-position:right 16px center;padding-right:56px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pair label{display:block;font-size:18px;font-weight:600;margin-bottom:6px}
@media (max-width:520px){.pair{grid-template-columns:1fr}}

/* big choice cards */
.choices{display:grid;gap:12px}
.choices--2{grid-template-columns:1fr 1fr}
@media (max-width:520px){.choices--2{grid-template-columns:1fr}}
.choice{display:flex;align-items:center;gap:16px;min-height:72px;padding:14px 20px;border:2px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;font-size:21px;font-weight:600;line-height:1.3}
.choice:hover{border-color:var(--ink-soft)}
.choice input{flex:none;width:28px;height:28px;margin:0;accent-color:var(--terracotta)}
.choice small{display:block;font-size:17px;font-weight:400;color:var(--ink-soft)}
.choice:has(input:checked){border-color:var(--terracotta);background:var(--rose);box-shadow:inset 0 0 0 1px var(--terracotta)}

/* file box */
.drop{position:relative;display:block;border:3px dashed var(--line);border-radius:18px;padding:34px 20px;text-align:center;cursor:pointer;background:#fff}
.drop:hover,.drop.is-over{border-color:var(--terracotta);background:var(--rose)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.drop svg{width:48px;height:48px;color:var(--terracotta)}
.drop b{display:block;font-size:22px;margin-top:8px;word-break:break-word}
.drop span{display:block;font-size:17px;color:var(--ink-soft);margin-top:2px}
.drop.has-file{border-style:solid;border-color:var(--ok);background:var(--ok-bg)}
.drop.has-file svg{color:var(--ok)}

/* one short note, at most one per view */
.note{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border-radius:14px;background:var(--paper-2);font-size:18px;color:var(--ink-soft)}
.note svg{flex:none;width:24px;height:24px;margin-top:2px;color:var(--ink-soft)}

/* ---------- done view ---------- */
.done{text-align:center;padding:30px 0 10px}
.done__tick{width:96px;height:96px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:var(--ok-bg);color:var(--ok)}
.done__tick svg{width:52px;height:52px}
.done .lead{margin-bottom:30px}
.done h2 ~ .btn{margin-top:30px} /* also when a hidden note sits between them (announcement) */
.done .btn + .btn{margin-top:12px}

/* ---------- home tiles ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:150px;padding:20px 16px;border-radius:20px;background:#fff;border:2px solid var(--line);text-decoration:none;color:inherit;text-align:center;font-size:21px;font-weight:600;line-height:1.25}
.tile:hover{border-color:var(--ink-soft);box-shadow:0 14px 30px -22px rgba(44,31,23,.5)}
.tile__ico{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;background:var(--paper-2);color:var(--terracotta-deep)}
.tile__ico svg{width:34px;height:34px}
.tile--urgent{background:var(--rose);border-color:var(--rose-line)}
.tile--urgent .tile__ico{background:var(--terracotta);color:#fff}
.tiles + h2,.home-sec{margin-top:44px}
.home-sec h2{margin-bottom:16px}
@media (max-width:520px){.tiles{grid-template-columns:1fr 1fr;gap:12px}.tile{min-height:132px;font-size:19px}}

/* ---------- confirm + toast ---------- */
.confirm{border:0;border-radius:20px;padding:0;max-width:520px;width:calc(100% - 32px);box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.confirm::backdrop{background:rgba(30,21,15,.55)}
.confirm__in{padding:30px 26px;display:grid;gap:12px}
.confirm h2{font-size:32px}
.confirm p{color:var(--ink-soft);margin-bottom:8px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--espresso);color:var(--cream);padding:16px 24px;border-radius:14px;font-size:19px;max-width:calc(100% - 32px);z-index:10;text-align:center;pointer-events:none}

@media (max-width:860px){h1{font-size:40px}}
@media (max-width:520px){
  main{padding:20px 16px 48px}
  .bar__btn span{display:none}
  h1{font-size:36px}
}

/* ---------- version 2.1 additions (client, 2026-10-13) ----------
   - grey example text: every text box shows "Ex: ..." as a placeholder and starts EMPTY
   - picture boxes show the chosen picture
   - multi-step tasks say "Step 1 of 3"
   - .paper is the read-only look of a finished newsletter or job, shown before publishing */
::placeholder{color:#9A8B7E;opacity:1}
.step{font-size:17px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--terracotta-deep);margin-bottom:6px}
.drop__pic{display:none;max-height:220px;max-width:100%;margin:0 auto 10px;border-radius:10px;object-fit:contain}
.drop.has-pic .drop__pic{display:block}
.drop.has-pic svg{display:none}
.drop--small{padding:22px 16px}
.addmore{margin-top:-10px}
.story{display:grid;gap:22px;padding:22px;border:2px solid var(--line);border-radius:18px;background:#fff}
.story__n{font-size:17px;font-weight:700;color:var(--ink-soft)}

/* the finished piece, as families will see it */
.paper{background:#fff;border:2px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:24px}
.paper__cover{height:200px;background:linear-gradient(135deg,#C9783F,var(--terracotta));display:grid;place-items:center;color:#fff}
.paper__cover img{width:100%;height:100%;object-fit:cover}
.paper__cover svg{width:56px;height:56px;opacity:.85}
.paper__in{padding:22px 24px;display:grid;gap:14px}
.paper__kick{font-size:14px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--terracotta)}
.paper__title{font-family:"Cormorant Garamond",Georgia,serif;font-size:32px;font-weight:700;line-height:1.1}
.paper h3{font-size:20px;margin:6px 0 0}
.paper p{font-size:18px;color:var(--ink-soft)}
.paper__logo{background:var(--paper-2);color:var(--terracotta-deep)}
.paper__logo img{width:auto;height:110px;object-fit:contain}

/* ---------- the writer: a page built from parts (newsletter step 2) ----------
   Parts: Heading, Writing, Picture, List. New parts go to the end, in writing order.
   Each part says what it is, and has three plain buttons: Up, Down, Remove.
   Removing shows "Undo" for a few seconds instead of asking first. */
.writer{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.blk{background:#fff;border:2px solid var(--line);border-radius:16px;padding:14px 16px 18px}
.blk:focus-within{border-color:var(--ink-soft)}
.blk__bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.blk__kind{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--terracotta-deep)}
.blk__kind svg{width:22px;height:22px}
.blk__tools{margin-left:auto;display:flex;gap:6px}
.blk__btn{display:inline-flex;align-items:center;gap:4px;min-height:48px;padding:0 12px;border-radius:10px;border:2px solid var(--line);background:#fff;font-size:16px;font-weight:600;color:var(--ink-soft);cursor:pointer}
.blk__btn:hover{border-color:var(--ink-soft);color:var(--ink)}
.blk__btn svg{width:18px;height:18px}
.blk__btn--del{color:#fff;border-color:var(--terracotta);background:var(--terracotta)}
.blk__btn--del:hover{color:#fff;background:var(--terracotta-deep);border-color:var(--terracotta-deep)}
.blk__btn:disabled{opacity:.35;cursor:default}
.blk .field{border-color:var(--paper-3)}
.blk--heading .field{font-size:26px;font-weight:700;font-family:"Cormorant Garamond",Georgia,serif;min-height:60px}
.blk--writing .field{min-height:160px;line-height:1.6;resize:vertical}
.blk--list .field{min-height:130px;resize:vertical}
.blk__cap{margin-top:10px}
.blk__hint{font-size:16px;color:var(--ink-soft);margin:-2px 0 8px}
.adder{margin-top:6px;padding:18px;border-radius:18px;border:3px dashed var(--line);background:var(--paper)}
.adder__label{font-size:19px;font-weight:700;margin-bottom:12px;text-align:center}
.adder__row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.adder .btn{flex-direction:column;gap:6px;min-height:92px;font-size:19px;padding:10px}
.adder .btn svg{width:30px;height:30px;color:var(--terracotta-deep)}
@media (max-width:620px){.adder__row{grid-template-columns:1fr 1fr}}
.undo-bar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:16px;background:var(--espresso);color:var(--cream);padding:10px 12px 10px 22px;border-radius:14px;font-size:19px;z-index:11;max-width:calc(100% - 32px)}
.undo-bar button{min-height:48px;padding:0 18px;border-radius:10px;border:0;background:var(--flame-y);color:var(--espresso);font-weight:700;font-size:18px;cursor:pointer}
/* the finished newsletter: parts in order */
.paper figure{margin:6px 0}
.paper figure > img,.paper__pic{width:100%;border-radius:10px;display:block}
.paper__pic{height:180px;background:linear-gradient(135deg,#D9A35E,#B5523A)}
.paper figcaption{font-size:15px;color:var(--ink-soft);margin-top:6px}
.paper ul{margin:0;padding-inline-start:22px;font-size:18px;color:var(--ink-soft)}
.paper h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:26px;color:var(--ink)}
/* one column that never grows past the page: a long word or address wraps instead of widening the whole
   newsletter (2026-10-28), as the published page does (assets/css/newsletter.css) */
.paper__body{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.paper{overflow-wrap:anywhere}
/* drag handle, picture sizes (newsletter writer, client 2026-10-13: "drag and drop, not up and down") */
.blk__grip{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0 16px 0 10px;border-radius:10px;border:2px solid var(--ink-soft);background:var(--paper-2);font-size:17px;font-weight:700;color:var(--ink);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.blk__grip svg{width:20px;height:20px}
.blk__grip:hover{border-color:var(--ink-soft);color:var(--ink)}
.blk__bar .blk__btn--del{margin-left:auto}
/* moving a part (client 2026-10-13: the first drag and drop was poor). While a part is held every
   part folds to one short row, so the whole newsletter fits on the screen. The held part leaves a
   dashed space where it will land, a copy follows the pointer, and the others slide out of the way. */
.blk__mini{display:none}
.writer.is-sorting{gap:10px}
.writer.is-sorting .blk{padding:8px 12px}
.writer.is-sorting .blk > :not(.blk__mini){display:none}
.writer.is-sorting .blk__mini,.drag-ghost .blk__mini{display:flex;align-items:center;gap:14px;min-height:56px}
.blk__mini .blk__kind{flex:none;width:118px}
.blk__mini-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:19px;color:var(--ink)}
.blk__mini-text.is-empty{color:#9A8B7E;font-style:italic}
.blk__mini-pic{flex:none;width:76px;height:48px;border-radius:6px;object-fit:cover;background:var(--paper-3)}
.blk__mini-grip{flex:none;display:grid;place-items:center;width:40px;height:40px;color:var(--ink-soft)}
.blk__mini-grip svg{width:22px;height:22px}
.blk.is-placeholder{background:var(--rose);border:3px dashed var(--terracotta)}
.blk.is-placeholder .blk__mini{visibility:hidden}
.drag-ghost{position:fixed;left:0;top:0;z-index:30;pointer-events:none;margin:0;background:#fff;border:2px solid var(--terracotta);border-radius:16px;padding:8px 12px;
  box-shadow:0 22px 44px -14px rgba(44,31,23,.55);will-change:transform}
.drag-ghost .blk__mini-grip{color:var(--terracotta)}
.writer .blk{transition:border-color .25s,box-shadow .25s}
.writer .blk.is-dropped{border-color:var(--ok);box-shadow:0 0 0 4px rgba(47,107,58,.25);transition:none}
body.is-dragging-part,body.is-dragging-part *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
@media (max-width:520px){.blk__mini .blk__kind{width:auto}.blk__mini .blk__kind span{display:none}.blk__mini-pic{width:60px;height:40px}}
.paper figure.is-small{width:45%;margin-left:auto;margin-right:auto}
.paper figure.is-medium{width:70%;margin-left:auto;margin-right:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* list part with real bullets while typing; caption label (client 2026-10-13) */
.blk__ul{position:relative;margin:0;padding:12px 18px 12px 46px;min-height:120px;list-style:disc;line-height:1.6}
.blk__ul li{padding-left:4px;margin:2px 0}
.blk__ul li::marker{color:var(--terracotta)}
.blk__ul.is-empty::before{content:attr(data-placeholder);position:absolute;left:46px;top:12px;color:#9A8B7E;pointer-events:none}
.blk__ul:focus{border-color:var(--ink);outline:none;box-shadow:0 0 0 4px rgba(224,96,47,.3)}
.blk__label{display:block;margin-top:12px;font-size:18px;font-weight:600}
.blk__label .field{margin-top:6px;font-weight:400}
/* step 3: the newsletter as its own web page. Wider than the editor column, a hero with the cover
   picture behind the title (dark overlay = two-stop gradient + noise, never a flat dark), body at 75% */
.paper.np{width:min(1200px,calc(100vw - 48px));position:relative;left:50%;transform:translateX(-50%);border-radius:16px;border:1px solid var(--line);box-shadow:0 24px 50px -30px rgba(44,31,23,.5);background:#FBF8F3}
.np__hero{position:relative;min-height:360px;display:flex;align-items:flex-end;background:linear-gradient(135deg,#C9783F,var(--terracotta)) center/cover no-repeat}
.np__hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,21,15,.15) 0%,rgba(30,21,15,.45) 45%,rgba(30,21,15,.82) 100%)}
.np__hero .noise{z-index:1}
.np__hero-in{position:relative;z-index:2;width:75%;margin:0 auto;padding:40px 0}
.np__kick{font-size:15px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--flame-y)}
.np__title{font-family:"Cormorant Garamond",Georgia,serif;font-size:56px;font-weight:700;line-height:1.05;color:#fff;margin-top:8px}
.np__body{width:75%;margin:0 auto;padding:40px 0 56px}
.np__body h3{font-size:34px;margin-top:10px}
.np__body p,.np__body ul{font-size:19px;line-height:1.7;color:var(--ink)}
@media (max-width:620px){.np__hero{min-height:260px}.np__hero-in,.np__body{width:auto;margin:0 20px}.np__title{font-size:40px}}
@media (max-width:620px){.paper.np{width:calc(100vw - 20px)}}

/* ---------- step 3, the real page edge to edge (client: "wall to wall, not a panel") ---------- */
.paper.np{width:calc(100vw - var(--sbw,0px));left:50%;transform:translateX(-50%);border:0;border-radius:0;box-shadow:none;background:#FBF8F3;margin-top:28px}
.np__hero{min-height:440px;overflow:hidden}
.np__hero::after{z-index:1}
.np__hero .noise{z-index:2}
.np__media{position:absolute;inset:0;z-index:0;overflow:hidden}
.np__hero-in{z-index:3;width:75%;padding:56px 0}
/* pictures in the newsletter body: drawn by editorPic.paint(), the same as the editor previews */
.np__pic{position:relative;overflow:hidden;border-radius:10px;width:100%;margin:0 auto;background:var(--paper-2)}
figure.is-wide .np__pic{aspect-ratio:16/9}
figure.is-square .np__pic{aspect-ratio:1/1;max-width:80vh}
figure.is-whole .np__pic{aspect-ratio:var(--ar,1.5);max-width:calc(80vh * var(--ar,1.5))}
.np__title{font-size:64px}
.np__body{width:75%}
@media (max-width:620px){.np__hero{min-height:300px}.np__title{font-size:42px}.np__hero-in,.np__body{width:auto;margin:0 20px}}
@media (min-width:621px){.np__hero{min-height:0;aspect-ratio:1440/560}}

/* ---------- the picture tool (editor.js, "THE PICTURE TOOL"; client 2026-10-13) ----------
   Empty: one big "Add a picture" box. Chosen: the picture once, choices as cards that show
   THEIR picture, then the picture ONCE: a phone-style crop frame when trimming, otherwise the
   picture as it will look. No Undo bar and no "How families will see it" (client 2026-10-13). */
.pic{display:block}
.pic__add{position:relative;display:block;border:3px dashed var(--line);border-radius:18px;padding:30px 20px;text-align:center;cursor:pointer;background:#fff}
.pic__add:hover,.pic.is-over .pic__add{border-color:var(--terracotta);background:var(--rose)}
.pic__add:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(224,96,47,.3)}
.pic__file{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.pic__add svg{width:48px;height:48px;color:var(--terracotta)}
.pic__add b{display:block;font-size:22px;margin-top:6px}
.pic__add span{display:block;font-size:17px;color:var(--ink-soft);margin-top:2px}
.pic__touch{display:none!important}
@media (pointer:coarse){.pic__touch{display:block!important}.pic__mouse{display:none!important}}
.pic.is-loading{cursor:progress}
.pic.is-loading .pic__add,.pic.is-loading .pic__set{opacity:.55}
.pic__err{margin-top:10px;padding:14px 18px;border-radius:14px;background:var(--rose);border:2px solid var(--rose-line);color:var(--terracotta-deep);font-size:18px;font-weight:600}
.pic__set{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:18px;border:2px solid var(--line);border-radius:18px;background:#fff}
.pic.is-over .pic__set{border-color:var(--terracotta);background:var(--rose)}
.pic__set button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 16px;border-radius:12px;border:2px solid var(--line);background:#fff;font-size:17px;font-weight:600;color:var(--ink);cursor:pointer;line-height:1.2}
.pic__set button:hover{border-color:var(--ink-soft)}
.pic__set button:disabled{opacity:.4;cursor:default;border-color:var(--line)}
.pic__set button svg{width:22px;height:22px;flex:none}
.pic__bar{display:flex;flex-wrap:wrap;gap:8px}
.pic__set .pic__out{color:#fff;border-color:var(--terracotta);background:var(--terracotta)}
.pic__set .pic__out:hover{background:var(--terracotta-deep);border-color:var(--terracotta-deep)}
.pic__ask{font-size:20px;font-weight:700;margin-top:8px}
.pic__how{font-size:17px;color:var(--ink-soft);margin-top:-6px}
.pic__note{font-size:17px;color:var(--ink-soft)}

/* choice cards: each one shows the person's own picture that way */
.pic__opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pic__opts--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pic__set .pic__opt{position:relative;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:12px 10px 14px;border-radius:14px;text-align:center}
.pic__opt b{font-size:19px;margin-top:6px}
.pic__opt small{font-size:15px;font-weight:400;color:var(--ink-soft);line-height:1.3}
.pic__set .pic__opt[aria-pressed="true"]{border-color:var(--terracotta);background:var(--rose);box-shadow:inset 0 0 0 1px var(--terracotta)}
.pic__opt[aria-pressed="true"]::after{content:"";position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:var(--terracotta) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center/18px no-repeat}
.pic__thumb{position:relative;display:block;height:96px;max-width:100%;overflow:hidden;border-radius:8px;background:var(--paper-3)}
@media (max-width:620px){.pic__opts--3{gap:8px}.pic__opts--3 .pic__thumb{height:64px}.pic__opts--3 small{display:none}.pic__opt b{font-size:17px}}

/* the crop screen: the whole picture, a frame on it, the outside darkened (like a phone's crop) */
.pic__stage{position:relative;overflow:hidden;padding:16px;border-radius:14px;background:linear-gradient(180deg,#2A1E16,#1A120D)}
.pic__canvas{position:relative;margin:0 auto;aspect-ratio:var(--ar,1.5);width:min(100%,calc(400px * var(--ar,1.5)))}
.pic__whole{position:absolute;inset:0;overflow:hidden}
.pic__frame{position:absolute;box-shadow:0 0 0 200vmax rgba(18,12,8,.66);outline:3px solid #fff;cursor:move;touch-action:none;z-index:1}
.pic__frame:focus-visible{outline:4px solid var(--flame-y)}
.pic__frame.is-moving{outline-color:var(--flame-y)}
.pic__phone{position:absolute;border:2px dashed rgba(255,255,255,.95);pointer-events:none}
.pic__phone::after{content:"Phone";position:absolute;left:4px;top:2px;font-size:13px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.pic__h{position:absolute;width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid var(--terracotta);touch-action:none;z-index:2}
.pic__h::before{content:"";position:absolute;inset:-12px}
.pic__h[data-h="tl"]{left:-14px;top:-14px;cursor:nwse-resize}
.pic__h[data-h="br"]{right:-14px;bottom:-14px;cursor:nwse-resize}
.pic__h[data-h="tr"]{right:-14px;top:-14px;cursor:nesw-resize}
.pic__h[data-h="bl"]{left:-14px;bottom:-14px;cursor:nesw-resize}
.pic__zoom{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

/* How big? a little page with a bar that wide */
.pic__sizes{display:flex;flex-wrap:wrap;gap:8px}
.pic__sizes i{display:block;width:34px;height:24px;border-radius:4px;border:2px solid currentColor;position:relative;opacity:.8}
.pic__sizes i::after{content:"";position:absolute;left:50%;top:4px;bottom:4px;width:calc(var(--w) - 6px);max-width:calc(100% - 4px);transform:translateX(-50%);background:currentColor;border-radius:2px}
.pic__set .pic__sizes button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}

.pic__warn{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:12px;background:#FFF6E0;border:2px solid #EBCB7A;font-size:17px}
.pic__warn svg{flex:none;width:24px;height:24px;color:#9A6A00;margin-top:1px}

/* not trimming: the picture once, as it will look */
.pic__show{margin-top:4px}
.pic__show--small{max-width:280px}
.pic__box{position:relative;overflow:hidden;width:100%;margin:0 auto;border-radius:10px;background:linear-gradient(135deg,#C9783F,var(--terracotta));container-type:inline-size}
.pic__box--natural{aspect-ratio:var(--ar,1.5)}

/* what paint() puts in a box: on the previews AND the finished page */
.pic-img,.pic-fill{position:absolute;display:block;max-width:none;pointer-events:none;user-select:none;-webkit-user-drag:none}
.pic-fill{display:none;filter:blur(18px) brightness(.72) saturate(1.1);scale:1.15}
.is-all > .pic-fill{display:block}
.is-all > .pic-img{z-index:1}
/* inside a newsletter part the part is already the box: no box in a box */
.blk .pic__set{border:0;padding:0;background:none}
/* a tall photo at full width would fill several screens: keep it no taller than the page shows it */
.blk .pic__box--natural{max-width:calc(440px * var(--ar,1.5))}
/* on a phone the cover is the same shape as the "On a phone" preview at every phone width, so the
   dashed Phone line in the editor is exactly what families see (Codex audit 2026-10-13) */
@media (max-width:620px){.np__hero{min-height:0;aspect-ratio:390/300}.np__hero-in{padding:28px 0}}

/* ---------- step 3 of the newsletter: one page, the buttons always in view (client 2026-10-13:
   "page-ception", and Publish needed scrolling). The website's own header is NOT drawn in the
   preview: the editor's bar is the only header. The two buttons ride along at the bottom. ---------- */
.dock{position:sticky;bottom:0;z-index:5;margin:0 calc(50% - 50vw + var(--sbw,0px) / 2);padding:14px 20px calc(14px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#FBF8F3,var(--paper));border-top:2px solid var(--line);box-shadow:0 -14px 30px -18px rgba(44,31,23,.45)}
.dock__in{max-width:var(--col);margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.dock .btn--main{flex:1 1 auto}
.dock .cancel{margin-top:0;flex:none}
@media (max-width:520px){.dock{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.dock__in{flex-direction:column;align-items:stretch;gap:2px}.dock .btn--main{min-height:60px}.dock .cancel button{min-height:48px;width:100%;justify-content:center}}
.paper.np{margin-top:20px}
/* the strip is the last thing on the screen: no empty band under it at the end */
main:has(> [data-view=check]:not([hidden])){padding-bottom:0}

/* ---------- sign-in (auth.js, docs/CMS-AUTH-PLAN.md) ---------- */
/* until Clerk says who is signed in, a screen shows nothing (the sign-in page keeps its heading) */
html.auth-wait body:not(.p-signin) main,html.auth-wait .bar__side{visibility:hidden}
html.auth-wait .signin{visibility:hidden}
html.auth-failed main{display:none}
html.auth-failed .bar__side{visibility:hidden}
.auth-fail{max-width:520px;margin:0 auto;padding:48px 20px;text-align:center}
.auth-fail .lead{margin-bottom:28px}
.signin{min-height:320px}

/* THE ONE-FILE SCREENS (edit/file-screen.js: handbook, fees, calendar, lunch menu; 2026-10-26). The file
   on the website now, by name, opens in a new tab; the bin is the announcements screen's icon button,
   its word kept for screen readers and for "Publishing…", its hover label in ::after. */
.p-file .now{flex-wrap:nowrap}
.p-file .now__body{min-width:0}
.p-file .now__title{overflow-wrap:anywhere}
.p-file .now__file{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.p-file .now__file:hover{color:var(--terracotta-deep)}
.p-file .now__file:focus-visible{outline:3px solid var(--terracotta);outline-offset:3px;border-radius:4px}
.p-file .now__file svg{width:18px;height:18px;margin-left:6px;vertical-align:-2px}
.p-file .now--none .now__label{color:var(--ink-soft)}
.p-file .ibtn{position:relative;flex:none;width:48px;height:48px;padding:0;border-radius:12px;border:2px solid var(--line);background:#fff;color:var(--ink-soft);font-size:0;cursor:pointer;display:grid;place-items:center;margin-left:auto;transition:border-color .15s,background-color .15s,color .15s}
.p-file .ibtn[hidden]{display:none}
.p-file .ibtn::before{content:"";width:24px;height:24px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.p-file .ibtn--bin{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/><path d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/><path d='M10 11v6'/><path d='M14 11v6'/></svg>")}
@media (hover:hover){ .p-file .ibtn--bin:hover{border-color:var(--terracotta);background:var(--rose);color:var(--terracotta-deep)} }
.p-file .ibtn:focus-visible{outline:3px solid var(--terracotta);outline-offset:2px}
.p-file .ibtn::after{content:attr(data-tip);position:absolute;right:0;bottom:calc(100% + 8px);z-index:5;white-space:nowrap;font-size:15px;font-weight:600;line-height:1;color:#fff;background:var(--ink);border-radius:8px;padding:8px 11px;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s}
@media (hover:hover){ .p-file .ibtn:hover::after{opacity:1;transform:none} }
.p-file .ibtn:focus-visible::after{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){ .p-file .ibtn::after{transition:none} }
.p-file .file-err{margin-top:12px}
.p-file .btn[disabled]{opacity:.55;cursor:not-allowed}
.list__none{font-size:19px;color:var(--ink-soft);padding:18px 20px;border:2px dashed var(--line);border-radius:var(--radius);margin:0}
.list__none[hidden]{display:none}
/* a change saved but not on the website yet (the git route takes about 2 minutes): editor.js pendingNote() */
.pending-note,.busy-note{margin:0 0 18px;padding:12px 16px;border-radius:12px;background:var(--ok-bg);border:2px solid var(--ok);font-size:17px;font-weight:600;color:var(--ink)}
