@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/rubik-hebrew-400-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/rubik-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/rubik-hebrew-500-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/rubik-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/rubik-hebrew-700-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/rubik-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:900;font-display:swap;src:url(/static/fonts/rubik-hebrew-900-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:900;font-display:swap;src:url(/static/fonts/rubik-latin-900-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1d2626;
  --muted: #5d6b6b;
  --line: #e2ddd2;
  --brand: #0f3d3e;
  --accent: #e8743b;
  --accent-ink: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 61, 62, .06), 0 8px 24px rgba(15, 61, 62, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif; font-size: 19px; line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header */
header.site { background: var(--brand); color: #fff; padding: 36px 0 30px; margin-bottom: 28px; }
header.site h1 { margin: 0; font-size: clamp(26px, 5vw, 40px); font-weight: 700; letter-spacing: -.01em; }
header.site h1 a { text-decoration: none; }
header.site .sub { margin: 8px 0 0; max-width: 720px; color: #cfe3e0; font-size: 17px; white-space: pre-line; }
header.site.small { padding: 16px 0; margin-bottom: 20px; }
header.site.small h1 { font-size: 22px; }

/* grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; padding-bottom: 48px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; scroll-margin-top: 16px; }
.card.focused { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); outline: 3px solid var(--accent); }
.card.focused .player { aspect-ratio: auto; max-height: 72vh; }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.player { background: #0b1414; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.player.portrait { aspect-ratio: 4 / 5; }
.player video { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; display: block; background: #0b1414; }
.body { padding: 16px 18px 18px; }
.body h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.text { margin: 0 0 14px; white-space: pre-line; color: #2d3838; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions.primary { margin-bottom: 10px; }
.actions.primary .btn { flex: 1 1 140px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.main { background: var(--accent); color: var(--accent-ink); }
.btn.main.ready { background: #1f8a4c; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #f7f5ef; }
.btn.small { min-height: 36px; padding: 6px 11px; font-size: 14px; }
.btn.light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.light:hover { background: rgba(255,255,255,.1); }
.btn.danger { background: #fff; color: #b3261e; border-color: #f0c7c3; }
.social .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; color: #fff; }
.btn.wa { background: #1fa855; }
.btn.fb { background: #1877f2; }
.btn.x { background: #111; }
.btn.tg { background: #229ed9; }
.social .btn.ghost { color: var(--ink); }
.hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #1d2626; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px);
  transition: opacity .2s ease, transform .2s ease; z-index: 50; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .card.focused { display: block; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  header.site { padding: 26px 0 22px; margin-bottom: 18px; }
}


/* ---------- senior-friendly public page ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.focus-wrap { max-width: 760px; margin: 0 auto 36px; }
.card.focused { display: block; outline: 4px solid var(--accent); }
.card.focused .player { max-height: none; }
.badge { font-size: 16px; padding: 6px 14px; }
.player { position: relative; }
.bigplay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, .18); border: 0; cursor: pointer; color: #fff; font: inherit; -webkit-tap-highlight-color: transparent;
}
.bigplay .circle {
  width: 96px; height: 96px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border: 4px solid #fff;
}
.bigplay .circle svg { width: 48px; height: 48px; margin-right: -6px; }
.bigplay .lbl { font-size: 22px; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); background: rgba(0,0,0,.45); padding: 2px 14px; border-radius: 10px; }
.card.playing .bigplay { display: none; }
.body { padding: 18px 20px 22px; }
.body h2 { font-size: 23px; margin: 16px 0 8px; }
.text { font-size: 20px; line-height: 1.65; color: #1f2a2a; margin-bottom: 18px; }
.btn.playbtn { width: 100%; min-height: 58px; font-size: 21px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 14px; }
.btn.playbtn svg { width: 26px; height: 26px; }
.btn.big { min-height: 58px; font-size: 20px; font-weight: 700; border-radius: 14px; padding: 10px 18px; }
.btn.big svg { width: 24px; height: 24px; }

.steps { background: #fbf7ef; border: 2px solid #eadfcb; border-radius: 16px; padding: 16px 16px 6px; }
.steps h3 { margin: 0 0 12px; font-size: 21px; color: var(--brand); }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; }
.steps .num {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin-top: 2px;
}
.steps .step { flex: 1; min-width: 0; }
.steps .step p { margin: 4px 0 8px; font-size: 19px; }
.btn.copybtn { width: 100%; background: #fff; color: var(--ink); border: 2px solid var(--brand); }
.btn.copybtn.done { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.nets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nets .btn { color: #fff; }
.more { margin-top: 10px; }
.more summary { cursor: pointer; font-size: 18px; color: var(--brand); text-decoration: underline; padding: 6px 0; list-style-position: inside; }
.more-grid { display: grid; gap: 8px; margin-top: 8px; }
.more-grid .btn { min-height: 50px; font-size: 17px; justify-content: center; }
.more-grid .btn.x, .more-grid .btn.tg { color: #fff; }
.paste-hint { line-height: 1.6; }
.btn.allbtn { display: flex; margin: 18px auto 0; max-width: 420px; background: var(--brand); color: #fff; }

/* instruction window */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 20, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.modal[hidden] { display: none; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 20px; padding: 22px 20px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
.m-title { margin: 0 0 12px; font-size: 24px; color: var(--brand); }
.m-steps { margin: 0 0 10px; padding-inline-start: 26px; font-size: 20px; line-height: 1.6; }
.m-steps li { margin-bottom: 8px; }
.m-steps .ok { color: #1f8a4c; font-weight: 700; }
.m-status { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.sheet .btn { width: 100%; margin-bottom: 8px; }
.sheet .btn.main:disabled { opacity: .7; }
body.modal-open { overflow: hidden; }
@media (min-width: 700px) { .modal { align-items: center; } }

.toast { font-size: 18px; padding: 14px 20px; bottom: 28px; line-height: 1.5; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .bigplay .circle { width: 84px; height: 84px; }
}

/* ---------- admin ---------- */
body.admin { font-size: 16px; }
.admin-main { display: grid; gap: 20px; padding-bottom: 60px; max-width: 900px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; }
.admin label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.admin input[type=text], .admin input[type=password], .admin input[type=url], .admin textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fffefb;
}
.admin textarea { resize: vertical; }
.admin input:focus, .admin textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
label.file { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; }
label.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-label { background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 500; }
.file-name { color: var(--ink); font-size: 14px; }
.progress { position: relative; height: 26px; background: #efe9dd; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.error { color: #b3261e; }
.row { display: flex; align-items: center; }
.row.between, .wrap.row { justify-content: space-between; }
.gap { gap: 8px; }
.wrap-row { flex-wrap: wrap; }
.admin-list { display: grid; gap: 14px; }
.item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.item .thumb img, .item .thumb .ph { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; background: #0b1414; display: block; }
.item label { margin-bottom: 8px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: #e2f3e8; color: #1f6b3d; }
.tag.wait { background: #fff1d6; color: #8a5a00; }
.tag.err { background: #fde7e5; color: #b3261e; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .panel { width: 100%; max-width: 360px; }
.login h1 { margin: 0 0 16px; font-size: 22px; }
.login .btn { width: 100%; }
@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; }
  .item .thumb img, .item .thumb .ph { width: 100%; height: 180px; }
}

.warn { color: #8a5a00; background: #fff1d6; border-radius: 8px; padding: 4px 10px; margin: 6px 0; font-size: 14px; }

/* ---------- subjects (public) ---------- */
.home { padding-bottom: 48px; }
.pick { font-size: 28px; margin: 4px 0 18px; color: var(--brand); }
.subjects { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.subject {
  display: flex; align-items: stretch; gap: 0; min-height: 140px; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 3px solid transparent;
  transition: transform .08s ease, border-color .15s ease;
}
.subject:hover { border-color: var(--accent); }
.subject:active { transform: scale(.98); }
.s-img { flex: none; width: 140px; background: #0b1414 center / cover no-repeat; }
.s-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.s-name { font-size: 24px; font-weight: 700; line-height: 1.3; }
.s-desc { font-size: 17px; color: var(--muted); }
.s-count { font-size: 18px; font-weight: 700; color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.15); margin: -28px 0 24px; }
.topbar-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.btn.backbtn { background: var(--accent); color: #fff; min-height: 50px; font-size: 19px; font-weight: 700; border-radius: 12px; padding: 8px 16px; }
.t-name { color: #fff; font-size: 19px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-title { font-size: 26px; margin: 8px 0 6px; color: var(--brand); }
.list-desc { margin: 0 0 18px; color: var(--muted); font-size: 19px; }
.grid + .more-subjects, .focus-wrap + .more-subjects { margin-top: 10px; }
.more-subjects { padding: 8px 0 48px; }
.more-subjects .allbtn { margin-top: 22px; }
@media (max-width: 760px) {
  .subjects { grid-template-columns: 1fr; }
  .s-img { width: 110px; }
  .topbar { margin-top: -18px; }
}

/* ---------- subjects / sorting (admin) ---------- */
.admin select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fffefb; color: var(--ink); }
.admin label.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.admin label.inline select { width: auto; margin: 0; }
.list-tools { margin-bottom: 14px; }
.item { position: relative; grid-template-columns: 34px 120px 1fr; }
.handle { cursor: grab; border: 1px dashed var(--line); background: #f7f5ef; border-radius: 8px; font-size: 22px; color: var(--muted); padding: 0; min-height: 44px; touch-action: none; }
.handle:active { cursor: grabbing; }
.dragging { opacity: .45; }
.subject-list { display: grid; gap: 10px; margin-bottom: 14px; }
.subj { display: grid; grid-template-columns: 34px minmax(120px, 1fr) minmax(120px, 2fr) auto auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.subj input { margin: 0 !important; }
.add-subject input { flex: 1 1 200px; width: auto !important; margin: 0 !important; }
@media (max-width: 560px) {
  .item { grid-template-columns: 34px 1fr; }
  .item .fields { grid-column: 1 / -1; }
  .subj { grid-template-columns: 34px 1fr; }
  .subj > *:not(.handle):not(.s-name-in) { grid-column: 1 / -1; }
}
.sum { display: none; font-size: 15px; }
.sum .tag { background: #eef3f2; color: var(--brand); margin-inline-start: 6px; }
.admin-list.compact { gap: 6px; }
.admin-list.compact .item { padding: 8px; grid-template-columns: 34px 64px 1fr; align-items: center; }
.admin-list.compact .item .thumb img, .admin-list.compact .item .thumb .ph { width: 64px; height: 64px; }
.admin-list.compact .item:not(.open) .fields > *:not(.row):not(.sum) { display: none; }
.admin-list.compact .item:not(.open) .fields > .row.gap { display: none; }
.admin-list.compact .item:not(.open) .sum { display: block; margin-top: 2px; cursor: pointer; }
.admin-list.compact .item.open { align-items: start; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,116,59,.25); }
.expand { display: none; }
.admin-list.compact .expand { display: inline-flex; }
.head-right { display: flex; gap: 8px; align-items: center; }

/* pictures */
/* a "mat" around the picture, so it reads as a picture and not as the site's own text */
.picture {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: #dcd3c2; padding: 44px 18px 22px; border-bottom: 3px solid #c9bda6;
}
.picture img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; object-fit: contain;
  background: #fff; border: 1px solid #b9ab92; border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 10px 26px rgba(0,0,0,.18);
}
.pic-label {
  position: absolute; top: 10px; right: 14px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.card.focused .picture { padding-top: 64px; }
.card.focused .pic-label { top: 14px; right: auto; left: 14px; }

.nets .btn.ghost { color: var(--ink); background: #fff; border: 2px solid var(--line); font-size: 18px; }
.nets .btn.x, .nets .btn.tg { color: #fff; }
.nets .wide { grid-column: 1 / -1; }
.nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nets .btn { min-width: 0; padding: 8px 10px; text-align: center; }
.nets .btn.ghost { font-size: 17px; gap: 6px; }
.nets .btn.ghost svg { width: 20px; height: 20px; }

/* ---------- statistics page ---------- */
.stats-main { display: grid; gap: 18px; padding-bottom: 48px; max-width: 1100px; }
.period { font-size: 16px; }
.period .btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.t-num { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.t-lbl { font-size: 15px; color: var(--muted); margin-top: 4px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e7e1d6; stroke-width: 1; }
.chart .axis { fill: #6b7777; font-size: 12px; font-family: inherit; }
.chart .hit { fill: transparent; }
.chart .fill { fill: #1f6f6f; }
.chart .bar:hover .fill { fill: #0f3d3e; }
.chart .tip { position: absolute; top: 0; width: 170px; background: #1d2626; color: #fff; font-size: 13px; padding: 8px 10px; border-radius: 8px; pointer-events: none; text-align: center; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.hb-track { height: 14px; background: #f1ece2; border-radius: 4px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: #1f6f6f; border-radius: 4px; }
.hb-val { font-weight: 700; min-width: 48px; text-align: left; }
.hb-val small { font-weight: 400; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.stable { width: 100%; border-collapse: collapse; font-size: 14px; }
.stable th, .stable td { padding: 8px 6px; border-bottom: 1px solid #eee7da; text-align: center; white-space: nowrap; }
.stable th.name, .stable td.name { text-align: right; white-space: normal; min-width: 220px; }
.stable th button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; padding: 4px; }
.stable th button.on { text-decoration: underline; }
.stable td.strong { font-weight: 700; font-size: 15px; }
.stable .zero { color: #c5bcab; }
.vrow { display: flex; gap: 10px; align-items: center; }
.vrow img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.vrow small { color: var(--muted); }

/* ---------- menu, footer, contact & copyright pages ---------- */
header.site .wrap { position: relative; }
.menu { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.menu a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 500; padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; }
.menu a:hover { background: rgba(255,255,255,.12); }
.site-foot { background: #e9e3d6; color: #3d4747; padding: 22px 0 28px; margin-top: 24px; font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 8px; }
.foot-links a { color: var(--brand); font-weight: 500; }
.site-foot p { margin: 0; color: var(--muted); font-size: 14px; }
.source { margin: -8px 0 16px; font-size: 15px; color: var(--muted); }
.report { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.page { padding-bottom: 32px; }
.page-panel { max-width: 720px; margin: 0 auto; padding: 24px; font-size: 18px; }
.page-panel h2 { margin: 0 0 10px; font-size: 26px; color: var(--brand); }
.page-panel .lead { margin: 0 0 18px; }
.prose h3 { margin: 22px 0 6px; font-size: 21px; }
.prose p { line-height: 1.7; }
.cform label { display: block; margin-bottom: 14px; font-size: 17px; color: var(--ink); }
.cform input[type=text], .cform select, .cform textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-size: 18px;
  border: 2px solid var(--line); border-radius: 12px; background: #fffefb; color: var(--ink);
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.cform .types { border: 0; padding: 0; margin: 0 0 14px; }
.cform legend { font-size: 17px; margin-bottom: 8px; }
.cform .radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.cform .radio input { width: 22px; height: 22px; accent-color: var(--brand); }
.cform .radio:has(input:checked) { border-color: var(--brand); background: #eef3f2; }
.cform .btn { width: 100%; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cform { position: relative; }
.cform select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 760px) { .menu { justify-content: flex-start; } }

/* admin: requests */
.badge-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.req-list { display: grid; gap: 12px; }
.req { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.req.remove { border-color: #f0c7c3; background: #fffaf9; }
.req.done { opacity: .7; }
.req p { margin: 8px 0; }
.req-msg { white-space: pre-line; background: #faf8f3; border-radius: 8px; padding: 10px; }
.tag { background: #eef3f2; color: var(--brand); }

/* suggest box + contact form types */
.suggest { margin: 28px 0 8px; background: #fff; border: 3px dashed var(--accent); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.suggest .sg-text { flex: 1 1 320px; }
.suggest h2 { margin: 0 0 6px; font-size: 23px; color: var(--brand); }
.suggest p { margin: 0; font-size: 18px; line-height: 1.6; }
.suggest .btn { flex: 0 1 300px; }
.hint-s { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.cform .filepick input[type=file] { display: block; margin-top: 6px; font-size: 16px; width: 100%; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; background: #fffefb; }
.only-suggest { background: #fbf7ef; border: 2px solid #eadfcb; border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 14px; }
.lbl-other, .req-remove { display: none; }
.opt { color: var(--muted); }
/* show/hide by the chosen type (older browsers just show everything) */
.cform:has(input[value=suggest]:checked) .not-suggest { display: none; }
.cform:has(input[value=general]:checked) .only-suggest, .cform:has(input[value=remove]:checked) .only-suggest { display: none; }
.cform:has(input[value=general]:checked) .lbl-suggest, .cform:has(input[value=remove]:checked) .lbl-suggest { display: none; }
.cform:has(input[value=general]:checked) .lbl-other, .cform:has(input[value=remove]:checked) .lbl-other { display: inline; }
.cform:has(input[value=remove]:checked) .opt { display: none; }
.cform:has(input[value=remove]:checked) .req-remove { display: inline; color: #b3261e; }
.req.suggest-r { border-color: #b9d8cf; background: #f6fbf9; }
.req-link a { word-break: break-all; }
