/*
 * The Peacock look (Roni 2026-11-18), shared by every page. Built from Roni's "Peacock" design system
 * (claude.ai/artifact/8wP7UTsdshwHLjkaKW3D81 = the printed menus) and the canvas he approved
 * ("Yes, closer", claude.ai/artifact/XSyRRuZWnWLFjF6XR1SHWz):
 *   white paper, one ink, teal as the only accent; the real wordmark and circle mark (brand/), never the
 *   name typed in a heavy font ("not so heavy"); Miriam Libre for titles and rows, Heebo for the rest;
 *   rows joined to their value by a dotted leader like the menu's prices; square corners, thin rules.
 *
 * Every page links this file AFTER its own <style>, so these rules win over the page's older ones at equal
 * specificity. The pages keep their own layout; this file only changes how it looks.
 */

:root{
  --ink:#221e1a; --muted:#5c564f; --line:#e6e2dc; --rule:#221e1a; --field-line:#cfc8bf;
  --bg:#ffffff; --card:#ffffff; --tint:#f4f1ec; --press:#f4f1ec;
  --brand:#2f5d5a; --brand-ink:#ffffff; --accent:#2f5d5a;
  --serif:"Miriam Libre","Heebo","Noto Sans Hebrew",Arial,sans-serif;
  --sans:"Heebo","Assistant","Noto Sans Hebrew","SF Hebrew","Arial Hebrew",system-ui,-apple-system,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{
    --ink:#f2eee8; --muted:#b5ada3; --line:#2f2a25; --rule:#f2eee8; --field-line:#4a433c;
    --bg:#171513; --card:#171513; --tint:#221f1b; --press:#221f1b;
    --brand:#86b8b2; --brand-ink:#171513; --accent:#86b8b2;
  }
}

body{font-family:var(--sans);background:var(--bg);color:var(--ink)}
h1,h2,h3,.lead,.q,.verdict,.score .pct{font-family:var(--serif)}
.lead{font-weight:700}

/* ---------- the top of every page: circle mark, title, a heavy rule ---------- */
.topbar{border-bottom:1.5px solid var(--rule);padding-bottom:12px;margin-bottom:16px}
.topbar h1{font-family:var(--serif);font-size:1.35rem;font-weight:700;letter-spacing:0}
.mark{background:url(/brand/mark.svg) center/contain no-repeat !important;border-radius:50%;
      width:34px;height:34px;transform:scaleX(-1)}   /* on Hebrew pages the peacock faces into the page */
.mark svg,.mark .peacock{display:none !important}   /* the page's own inline peacock would draw a second, offset bird on top */
.wordmark{display:block;height:28px;width:auto}
@media (prefers-color-scheme:dark){ .mark,.wordmark{filter:invert(1)} }

/* ---------- surfaces and controls: square, thin lines ---------- */
.card{border-radius:0;box-shadow:none;border:1px solid var(--line)}
.btn{border-radius:0;font-weight:700}
.btn:not(.ghost):not(.danger){background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn.ghost{border-color:var(--rule);color:var(--ink)}
.field,.name,.pinbox,.row input,.row button{border-radius:0}
.field{border-color:var(--field-line)}
.field:focus{outline:2px solid var(--accent);outline-offset:1px}
.err,.why,.toast,.newbie,.bot .ln.warn,.mini,.thumb,.photos a,.hist .pic,.file .ic,.file .more,.rate button{border-radius:3px}
.tag,.chip,.chipbtn,.pick,.again{border-radius:3px}
.sheet .panel{border-radius:0}
.bar,.meter{border-radius:0}
.intro,.empty,.deck,.weak,.sum .q,.fnums .q,.frow,.fform,.quiz,.opt,.tile,.group,.fault,.swipe,.file{border-radius:0}
.clopen{border-radius:0}

/* ---------- the menu row: name · · · · · value (home, and anywhere a list reads like the menu) ---------- */
.msec{font-family:var(--serif);font-size:1.05rem;font-weight:700;color:var(--accent);margin:24px 0 0}
.msec:first-child{margin-top:4px}
.mrow{display:flex;align-items:baseline;gap:8px;width:100%;min-height:48px;padding:13px 0 5px;
      background:none;border:0;color:var(--ink);text-decoration:none;text-align:start;font:inherit;cursor:pointer;
      -webkit-tap-highlight-color:transparent}
.mrow .rt{font-family:var(--serif);font-size:1.13rem;line-height:1.3}
.mrow .dots{flex:1 1 16px;min-width:16px;border-bottom:1px dotted currentColor;transform:translateY(-5px)}
.mrow .rv{flex:0 0 auto;font-size:.86rem;color:var(--muted);white-space:nowrap}
.mrow .rv.on{color:var(--ink)}
.mrow .rv.ok{color:var(--ink);font-weight:500}
.mrow:active .rt,.mrow:hover .rt{color:var(--muted)}
.mrow:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mrow-m{color:var(--muted);font-size:.8rem;margin:0 0 4px}
.badge{flex:0 0 auto;font-size:.75rem;font-weight:700;background:var(--ink);color:var(--bg);padding:1px 8px;border-radius:3px}
.mfoot{border-top:1px solid var(--rule);margin-top:30px;padding-top:9px;display:flex;justify-content:space-between;
       gap:12px;font-size:.66rem;letter-spacing:.06em;color:var(--muted)}

/* ---------- home ---------- */
.hero{padding:18px 0 22px}
.hero .wordmark{height:40px;margin:0 auto}
.hero-s{font-weight:300}

/* ---------- checklists ---------- */
.dept{font-family:var(--serif);font-size:1rem;font-weight:700;color:var(--accent);margin:20px 0 0}
.tile{border:0;border-bottom:1px solid var(--line);background:transparent;padding:14px 0;margin-top:0}
.tile .t{font-family:var(--serif);font-weight:700}
.tile .bar,.prog .bar{height:4px;background:var(--line)}
.sec h2{font-family:var(--serif);font-size:1rem;font-weight:700;color:var(--accent);margin:0 0 2px}
.task{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:12px 2px;margin-top:0}
.task .txt{font-family:var(--serif);font-size:1.02rem}
.task .box{border-radius:0;border:1.5px solid var(--ink)}
.task[aria-checked="true"]{background:transparent}
.task[aria-checked="true"] .box{background:var(--ink);border-color:var(--ink);color:var(--bg)}
/* today's special tasks keep their edge and label (Roni 2026-11-16); only the edge's inside gets room */
.special .task{padding-inline-start:10px}
.group{border:1px solid var(--line);background:transparent}
.group .task,.group .task[aria-checked="true"]{background:transparent}

/* ---------- faults ---------- */
.fault{border:0;border-bottom:1px solid var(--line);background:var(--bg);padding:13px 2px;margin-top:0}
.swipe{margin-top:0}

/* ---------- quizzes and cards to practise ---------- */
.opt{border-color:var(--field-line)}
.bar i{background:var(--accent)}

/* checklists: the list of lists as menu rows, on the paper rather than in a box */
#s-lists > .card,#s-list > .card{border:0;padding:0;background:transparent}
.tile .t{display:flex;align-items:baseline;gap:8px;flex-wrap:nowrap}
.tile .t .tn{font-family:var(--serif);font-weight:400;font-size:1.13rem}
.tile .t .dots{flex:1 1 16px;min-width:16px;border-bottom:1px dotted currentColor;transform:translateY(-5px)}
.tile .t .tv{flex:0 0 auto;font-family:var(--sans);font-weight:400;font-size:.9rem;font-variant-numeric:tabular-nums}
.tile .t .tag{flex:0 0 auto}
.tile .m{font-size:.8rem}
.tile .bar{margin-top:8px}

/* faults: the section labels read like the menu's section titles; the fault itself in the row font */
.label{font-family:var(--serif);font-size:1rem;font-weight:700;color:var(--accent)}
.fault .x{font-family:var(--serif);font-size:1.05rem}

/* the rest of the boxes: square like the menu; chat bubbles keep a hint of a corner */
.person,.cllist,.clform,.as{border-radius:0}
.me,.bot{border-radius:3px}
.bot{font-family:var(--serif)}

/* ---------- home: four big buttons (Roni 2026-11-18: "easy to see and press and then they direct the user onwards") ---------- */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px}
.tile4{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:148px;padding:16px 16px 14px;
       border:1.5px solid var(--rule);background:var(--bg);color:var(--ink);text-decoration:none;text-align:start;
       font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative}
.tile4:active{background:var(--press)}
.tile4:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tile4 .ic{width:30px;height:30px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:auto}
.tile4 .ti{font-family:var(--serif);font-size:1.4rem;font-weight:700;line-height:1.15;margin-top:18px}
.tile4 .ts{font-size:.8rem;color:var(--muted);line-height:1.3}
.tile4 .ts.on{color:var(--ink)}
.tile4 .badge{position:absolute;top:14px;inset-inline-end:14px}

/* ---------- a page under home: a back link, a title, big list buttons ---------- */
.backlink{background:none;border:0;padding:6px 0;min-height:44px;color:var(--muted);font:inherit;font-size:.92rem;cursor:pointer}
.pageh{font-family:var(--serif);font-size:1.6rem;font-weight:700;margin:2px 0 12px}
.lbtn{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 14px;margin-top:10px;
      border:1px solid var(--rule);background:var(--bg);color:var(--ink);text-decoration:none;text-align:start;
      font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lbtn:active{background:var(--press)}
.lbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lbtn .lt{flex:1 1 auto;min-width:0;font-family:var(--serif);font-size:1.12rem;font-weight:700;line-height:1.3}
.lbtn .lm{display:block;font-family:var(--sans);font-size:.8rem;font-weight:400;color:var(--muted);margin-top:2px}
.lbtn .st{flex:0 0 auto;font-size:.82rem;color:var(--muted);white-space:nowrap}
.lbtn .st.ok{color:var(--ink);font-weight:500}
.lbtn .chev{flex:0 0 auto;font-size:1.4rem;line-height:1;color:var(--muted)}
