/* Shared design language — sticker-sheet poster, Karantina + Lunasima */
:root{
  --sky:#2B95D6; --sky-deep:#0E5C98; --sky-soft:#DCEEFA;
  --ink:#0A2F52; --ink-2:#4A6680; --paper:#F6F3EC; --sticker:#FFFDF7; --white:#FFFFFF;
  --candle:#FFC53D; --candle-deep:#E8A300; --danger:#C2412F; --ok:#1B7F52;
  --line:#D9D2C2; --ring:7px;
  --display:"Karantina","Arial Narrow","Assistant",sans-serif;
  --body:"Lunasima","Assistant","Segoe UI",Arial,sans-serif;
  --hand:"Gveret Levin","Karantina",cursive;
  --lift:0 3px 0 rgba(10,47,82,.28), 0 10px 22px rgba(4,35,60,.18);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
body{font-family:var(--body); color:var(--ink); font-size:17px; line-height:1.55;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px)}
body.blue{background:
  radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.4px) 0 0/14px 14px,
  linear-gradient(170deg,var(--sky) 0%,var(--sky-deep) 78%) fixed, var(--sky-deep); min-height:100vh}
body.desk{background:var(--paper); min-height:100vh}
.wrap{max-width:1180px; margin:0 auto; padding-inline:16px; padding-block:18px 60px}
.wrap.narrow{max-width:760px}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--candle); outline-offset:3px}
h1,h2,h3{font-family:var(--display); font-weight:700; margin:0; line-height:.95}
a{color:var(--sky-deep)}

.panel{background:var(--sticker); border-radius:22px; padding:20px; box-shadow:var(--lift);
  outline:1.5px dashed rgba(10,47,82,.16); outline-offset:-8px}
body.desk .panel{box-shadow:0 2px 0 var(--line), 0 10px 24px rgba(10,47,82,.08)}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row > *{flex:1 1 180px}
label.f{display:flex; flex-direction:column; gap:5px; font-weight:700; font-size:15px}
label.f .hint{font-weight:400; color:var(--ink-2); font-size:14px}
.req{color:var(--danger)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],select,textarea{
  width:100%; border:1.5px solid var(--line); background:var(--white); border-radius:14px; padding:12px 14px; min-height:48px}
input:focus,select:focus,textarea:focus{border-color:var(--sky); outline:none; box-shadow:0 0 0 3px rgba(43,149,214,.18)}
textarea{min-height:76px}

.btn{border:0; border-radius:999px; padding:12px 24px; font-weight:700; min-height:48px; position:relative;
  background:var(--ink); color:var(--sticker); display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 3px 0 rgba(10,47,82,.35); outline:1.5px dashed rgba(255,255,255,.35); outline-offset:-6px;
  transition:transform .15s ease, box-shadow .15s ease}
.btn:hover{transform:translateY(-2px) rotate(-1.5deg); box-shadow:0 5px 0 rgba(10,47,82,.35)}
.btn:active{transform:translateY(1px); box-shadow:0 1px 0 rgba(10,47,82,.35)}
.btn.primary{background:var(--candle); color:var(--ink); outline-color:rgba(10,47,82,.3); box-shadow:0 3px 0 var(--candle-deep)}
.btn.primary:hover{box-shadow:0 5px 0 var(--candle-deep)}
.btn.ghost{background:var(--white); color:var(--ink); outline-color:rgba(10,47,82,.22); box-shadow:0 3px 0 var(--line)}
.btn.danger{background:var(--white); color:var(--danger); outline-color:rgba(194,65,47,.35); box-shadow:0 3px 0 #EBCFC9}
.btn.sm{min-height:38px; padding:6px 16px; font-size:15px}
.btn:disabled{opacity:.55; cursor:progress; transform:none}
.linkbtn{background:none; border:0; padding:0; color:var(--sky-deep); font-weight:700; text-decoration:underline;
  text-decoration-style:wavy; text-decoration-color:rgba(14,92,152,.45); text-underline-offset:4px}
.chip{display:inline-flex; align-items:center; gap:7px; border-radius:999px; padding:9px 15px; background:var(--white);
  box-shadow:inset 0 0 0 1.5px var(--line); font-weight:700; font-size:15px; cursor:pointer; user-select:none}
.chip input{margin:0; accent-color:var(--sky-deep); width:17px; height:17px}
.err{color:var(--danger); font-weight:700; min-height:1.4em}
.ok{color:var(--ok); font-weight:700}
.muted{color:var(--ink-2)}
.tag{display:inline-block; font-size:13px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--sky-soft); color:var(--sky-deep)}

.toast{position:fixed; bottom:calc(20px + env(safe-area-inset-bottom,0px)); inset-inline:16px; margin:auto; max-width:460px;
  background:var(--candle); color:var(--ink); padding:14px 18px; border-radius:999px; font-weight:700; text-align:center; z-index:60;
  box-shadow:0 3px 0 var(--candle-deep), 0 14px 30px rgba(0,0,0,.25); outline:1.5px dashed rgba(10,47,82,.3); outline-offset:-6px}

dialog{border:0; border-radius:24px; padding:0; width:min(680px,calc(100vw - 24px)); max-height:calc(100dvh - 24px);
  color:var(--ink); background:var(--sticker)}
dialog::backdrop{background:rgba(6,30,52,.6); backdrop-filter:blur(3px)}
.dlg{padding:22px; display:flex; flex-direction:column; gap:14px}
.dlg h3{font-size:46px; padding-inline-end:44px}
.dlg .close{position:absolute; inset-inline-end:12px; top:12px; background:var(--white); border:0; width:42px; height:42px;
  border-radius:50%; font-size:24px; box-shadow:0 2px 0 var(--line), inset 0 0 0 1.5px var(--line)}
.actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center}

table{width:100%; border-collapse:collapse; font-size:15px}
th,td{text-align:start; padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap}
th{font-family:var(--display); font-size:22px; font-weight:700}
td.num,th.num{font-variant-numeric:tabular-nums; text-align:end}
.tablewrap{overflow-x:auto}

.credit{text-align:center; font-size:14px; margin-top:44px; line-height:1.7}
body.blue .credit{color:rgba(255,255,255,.85)} body.blue .credit a{color:var(--candle)}
body.desk .credit{color:var(--ink-2)}
.credit .rights{opacity:.75; font-size:13px}

/* brand: the small-tree mark is a sticker, the name is set in the handwriting face */
.brand{display:inline-flex; align-items:center; gap:.32em; font-family:var(--hand); font-weight:400; font-size:40px;
  line-height:1; color:inherit; text-decoration:none; letter-spacing:.01em}
.brand img{width:1.1em; height:1.1em; border-radius:24%; box-shadow:0 0 0 .06em var(--white), 0 .08em 0 .06em rgba(10,47,82,.28)}
.brand.lg{font-size:clamp(46px,7vw,68px)}
.brandfoot{display:inline-flex; align-items:center; gap:6px; font-family:var(--hand); font-weight:400; font-size:24px;
  line-height:1; text-decoration:none; margin-bottom:4px}
.brandfoot img{border-radius:24%; box-shadow:0 0 0 1.5px var(--white)}
body.blue .credit a.brandfoot{color:var(--white)}
body.desk .credit a.brandfoot{color:var(--ink)}
@media (prefers-reduced-motion:reduce){ .btn{transition:none} }
