/* LAVI — שרים נעים עם יוסי לביא.  Public site + /admin.  RTL, mobile-first.
   Load order: w3.css → this file.  @created 2026-10-11 */

/* Heebo is declared here on purpose: /uiLib/fonts/heebo.css only defines HeeboRegular/HeeboBold/... as
   separate families, never 'Heebo'. Without this a visitor without Heebo installed (everyone but the
   developer) gets a fallback font that renders light and thin. */
@font-face { font-family: 'Heebo'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/uiLib/fonts/fonts/HeeboRegular.ttf') format('truetype'); }
@font-face { font-family: 'Heebo'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/uiLib/fonts/fonts/HeeboMedium.ttf') format('truetype'); }
@font-face { font-family: 'Heebo'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/uiLib/fonts/fonts/HeeboBold.ttf') format('truetype'); }
@font-face { font-family: 'Heebo'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('/uiLib/fonts/fonts/HeeboExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Heebo'; font-weight: 900; font-style: normal; font-display: swap;
  src: url('/uiLib/fonts/fonts/HeeboBlack.ttf') format('truetype'); }

:root {
  --navy: #1c2541;
  --navy-2: #2b3a67;
  --amber: #e8871e;
  --amber-d: #c96f10;
  --gold: #f4b942;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #222a3a;
  --muted: #5d6679;
  --line: #eadfca;
  --ok: #1f7a4a;
  --err: #b3261e;
  --r: 14px;
  --shadow: 0 6px 22px rgba(28, 37, 65, .12);
  --font: 'Heebo', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-d); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font); line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-inline-start: 1.3em; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: var(--gold); }
.brand-note { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.brand-note.big { width: 72px; height: 72px; font-size: 32px; margin: 0 auto 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.brand-text small { font-size: 13px; color: var(--gold); }
.burger { background: none; border: 0; color: #fff; font-size: 26px; padding: 8px 10px; cursor: pointer; }
.nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--navy); padding: 8px 16px 16px; flex-direction: column; box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }
.nav.open { display: flex; }
.nav a { color: #fff; text-decoration: none; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--gold); }
.nav-call { margin-top: 10px; background: var(--amber); border-radius: 999px; text-align: center; border: 0 !important; font-weight: 700 !important; }
.nav-call:hover { background: var(--amber-d); color: #fff !important; }

@media (min-width: 980px) {
  .burger { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; box-shadow: none; }
  .nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 17px; }
  .nav a.on { background: rgba(255, 255, 255, .1); }
  .nav-call { margin: 0 8px 0 0; padding: 8px 16px !important; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--amber); color: #fff; }
.btn-main:hover { background: var(--amber-d); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 20% 0%, var(--navy-2), var(--navy)); color: #fff; padding: 36px 0 44px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 9vw, 72px); font-weight: 900; margin: 0 0 4px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .5px; margin: 0 0 6px; }
.hero-sub { font-size: clamp(19px, 3.4vw, 26px); font-weight: 500; margin: 0 0 10px; }
.hero-tag { color: #d9def0; margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta.jc { justify-content: center; }
.hero-photo img { width: min(78vw, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); margin-inline: auto; }
@media (min-width: 820px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- sections ---------- */
.sec { padding: 44px 0; }
.sec.alt { background: #fff1d8; }
.sec-title { text-align: center; font-size: clamp(26px, 5vw, 36px); margin-bottom: 1em; }
.sec-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--amber); margin: 10px auto 0; }
.intro { padding-bottom: 8px; }
.lead { font-size: clamp(19px, 3vw, 23px); line-height: 1.8; color: var(--navy); text-align: center; }
.page-head { background: var(--navy); color: #fff; padding: 34px 0 30px; text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(30px, 6vw, 44px); margin: 0 0 6px; }
.page-head p { margin: 0; color: #d9def0; }

/* ---------- prose (owner text) ---------- */
.prose p { margin-bottom: .9em; }
.prose p.sub { margin: 1.2em 0 .3em; color: var(--navy); }
.prose li { margin-bottom: .35em; }
.prose a { word-break: break-word; }
.intro-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 22px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { transform: translateY(-4px); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 25%; }
.card-b { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; flex: 1; }
.more { color: var(--amber-d); font-weight: 700; }

/* ---------- services page ---------- */
.svc { display: grid; gap: 18px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 26px; scroll-margin-top: 84px; }
.svc-img img { width: 100%; max-height: 320px; object-fit: cover; object-position: center 25%; border-radius: 10px; }
.svc h2 { font-size: 28px; }
.svc-sum { color: var(--amber-d); font-weight: 600; font-size: 19px; }
@media (min-width: 820px) {
  .svc { grid-template-columns: 300px 1fr; padding: 24px; gap: 28px; }
  .svc:not(:has(.svc-img)) { grid-template-columns: 1fr; }
  .svc:nth-child(even) { grid-template-columns: 1fr 300px; }
  .svc:nth-child(even) .svc-img { order: 2; }
  .svc-img img { max-height: none; height: 100%; min-height: 220px; }
}

/* ---------- trips accordion ---------- */
.acc-i { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; box-shadow: 0 2px 8px rgba(28, 37, 65, .06); scroll-margin-top: 84px; }
.acc-i summary { list-style: none; cursor: pointer; padding: 16px 20px 16px 52px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.acc-i summary::-webkit-details-marker { display: none; }
.acc-i summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--amber); transition: transform .2s; }
.acc-i[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.acc-i[open] summary { border-bottom: 1px solid var(--line); }
.acc-t { font-weight: 800; font-size: 20px; color: var(--navy); }
.acc-s { color: var(--muted); font-size: 16px; line-height: 1.5; }
.acc-i .prose { padding: 16px 20px 6px; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 20px; }
.about-b { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 24px 8px; }
.about-b h2 { font-size: 24px; border-inline-start: 5px solid var(--amber); padding-inline-start: 12px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-b:first-child { grid-column: 1 / -1; } }

/* ---------- video / audio ---------- */
.vids { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-bottom: 26px; }
.vid { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.vid-img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow); }
.vid-img img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .25s, opacity .2s; }
.vid:hover .vid-img img { transform: scale(1.04); opacity: 1; }
.vid-img i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 58px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.vid-t { font-weight: 700; line-height: 1.35; }
.vid-s { color: var(--muted); font-size: 15px; line-height: 1.4; }
.tracks { display: grid; gap: 16px; }
.track { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.track img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.track-b { flex: 1; min-width: 0; }
.track h3 { font-size: 20px; margin-bottom: 2px; }
.track p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.track audio { width: 100%; }

/* ---------- gallery ---------- */
.shots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 22px; }
.shots.big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shots a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.shots a:hover img { transform: scale(1.06); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 24, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-body { max-width: 94vw; max-height: 88vh; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.lb-body img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lb-body iframe { width: min(94vw, 1000px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.lb-x, .lb-n, .lb-p { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lb-x { top: 14px; inset-inline-start: 14px; }
.lb-n { top: 50%; left: 12px; transform: translateY(-50%); }
.lb-p { top: 50%; right: 12px; transform: translateY(-50%); }
.lb-x:hover, .lb-n:hover, .lb-p:hover { background: rgba(255, 255, 255, .3); }
.lb.single .lb-n, .lb.single .lb-p { display: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 26px; }
.contact-card, .contact-form { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { margin-bottom: .5em; }
.plain.big li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.plain.big i { width: 22px; text-align: center; color: var(--amber); font-size: 20px; margin-top: 6px; }
.plain.big span { display: flex; flex-direction: column; line-height: 1.35; }
.plain.big small { color: var(--muted); font-size: 14px; }
.plain.big a { font-weight: 700; font-size: 20px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 16px; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
  display: block; width: 100%; margin-top: 4px; padding: 12px 14px; font: 400 17px var(--font); color: var(--ink);
  border: 1px solid #cfc6b3; border-radius: 10px; background: #fff; }
input:focus, textarea:focus { border-color: var(--amber); outline: 3px solid rgba(232, 135, 30, .25); }
textarea { resize: vertical; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; }
.notice.ok { background: #e3f4ea; color: var(--ok); border: 1px solid #b8e0c7; }
.notice.err { background: #fde8e6; color: var(--err); border: 1px solid #f3bdb8; }

/* ---------- CTA + footer ---------- */
.cta { background: linear-gradient(135deg, var(--amber), #f0a13a); color: #fff; padding: 46px 0; }
.cta h2 { color: #fff; font-size: clamp(26px, 5vw, 36px); }
.cta .btn-main { background: var(--navy); }
.cta .btn-main:hover { background: #0f1830; }
.foot { background: var(--navy); color: #d9def0; padding-top: 38px; }
.foot-grid { display: grid; gap: 24px; padding-bottom: 26px; }
.foot h3 { color: #fff; font-size: 19px; }
.foot a { color: var(--gold); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot .plain i { width: 22px; color: var(--gold); }
.foot-end { border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; padding: 14px 16px; font-size: 15px; line-height: 1.8; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1.3fr 1fr; } }

.adm-link { color: #aab3cf; text-decoration: none; white-space: nowrap; }
.adm-link:hover { color: var(--gold); }

.callfab { position: fixed; bottom: 62px; inset-inline-start: 16px; z-index: 60; width: 54px; height: 54px; display: grid; place-items: center; background: var(--amber); color: #fff; text-decoration: none; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); font-size: 22px; }
.callfab span { display: none; }
.callfab:hover { background: var(--amber-d); color: #fff; }
@media (min-width: 980px) { .callfab { display: none; } }

/* ---------- fixed bottom bar: [up][home][down] ---------- */
body:not(.adm) .foot { padding-bottom: 46px; }
.bbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 70; display: flex; justify-content: center; align-items: center; gap: 4px;
  background: var(--navy); box-shadow: 0 -2px 8px rgba(0, 0, 0, .3); padding: 3px 6px; }
.bbar a { display: grid; place-items: center; min-width: 56px; height: 40px; color: #fff; text-decoration: none; font-size: 22px; border-radius: 8px; user-select: none; }
.bbar a:hover { background: var(--navy-2); color: #fff; }
.bbar svg { display: block; }

/* ============================ ADMIN ============================ */
body.adm { background: #f3f1ec; font-size: 17px; }
.adm-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px 18px; position: sticky; top: 0; z-index: 40; }
.adm-top a { color: #fff; text-decoration: none; font-weight: 600; }
.adm-top a:hover { color: var(--gold); }
.adm-brand { font-size: 19px; }
.adm-sp { flex: 1; }
.adm-wrap { display: grid; max-width: 1240px; margin: 0 auto; }
.adm-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.adm-nav a { white-space: nowrap; color: var(--navy); text-decoration: none; padding: 9px 14px; border-radius: 10px; font-weight: 600; }
.adm-nav a i { width: 20px; color: var(--amber); }
.adm-nav a:hover { background: #fff1d8; }
.adm-nav a.on { background: var(--navy); color: #fff; }
.adm-nav a.on i { color: var(--gold); }
.badge { background: var(--err); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; }
.adm-main { padding: 22px 16px 60px; min-width: 0; }
@media (min-width: 900px) {
  .adm-wrap { grid-template-columns: 250px 1fr; gap: 0; }
  .adm-nav { flex-direction: column; overflow: visible; border-bottom: 0; border-inline-end: 1px solid var(--line); min-height: calc(100vh - 56px); padding: 16px 12px; }
  .adm-main { padding: 28px 32px 60px; }
}
.adm-main h1 { font-size: 30px; }
.adm-main h1 small { color: var(--muted); font-weight: 400; font-size: 20px; }
.adm-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.adm-h h1 { margin: 0; }
.dash { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 18px 0 30px; }
.dash-c { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; }
.dash-c:hover { border-color: var(--amber); color: var(--ink); }
.dash-c i { font-size: 30px; color: var(--amber); margin-bottom: 6px; }
.dash-c b { font-size: 20px; color: var(--navy); }
.dash-c span { color: var(--muted); font-size: 15px; }
.dash-c.hot { border-color: var(--err); }
.adm-t { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.adm-t td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.adm-t tr.new td { background: #fff7e0; font-weight: 600; }
.adm-list { display: grid; gap: 10px; margin-top: 16px; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); box-shadow: 0 2px 8px rgba(28, 37, 65, .08); padding: 10px 14px; scroll-margin-top: 80px; }
.adm-row.off { opacity: .6; background: #f1efe9; }
.adm-th img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.adm-t1 { flex: 1; min-width: 180px; display: flex; flex-direction: column; line-height: 1.35; }
.adm-t1 a { color: var(--navy); text-decoration: none; }
.adm-t1 small { color: var(--muted); }
.tag { display: inline-block; background: #e2ddd0; color: #5d5646; border-radius: 6px; padding: 0 8px; font-size: 13px; font-weight: 700; width: fit-content; }
.tag.hot { background: var(--err); color: #fff; }
.adm-act { display: flex; gap: 6px; }
.adm-act form { margin: 0; }
.adm-act button, .adm-act .ab { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid #d8d0bd; background: #fff; border-radius: 10px; cursor: pointer; color: var(--navy); text-decoration: none; font-size: 16px; }
.adm-act button:hover:not([disabled]), .adm-act .ab:hover { background: #fff1d8; border-color: var(--amber); }
.adm-act button[disabled] { opacity: .3; cursor: default; }
.adm-act .danger:hover { background: #fde8e6 !important; border-color: var(--err) !important; color: var(--err); }
.adm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 16px; }
.adm-grid .adm-row { flex-direction: column; align-items: stretch; padding: 8px; }
.adm-grid .adm-th img { width: 100%; height: 130px; }
.adm-grid .adm-act { justify-content: center; }
.adm-grid .adm-t1 { min-width: 0; }
.upbox { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; background: #fff; border: 2px dashed var(--amber); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.upbox label { flex: 1; min-width: 220px; margin: 0; }
.empty { background: #fff; border-radius: var(--r); padding: 30px; text-align: center; color: var(--muted); margin-top: 16px; }
.adm-form { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; margin-top: 16px; max-width: 860px; }
.adm-form.narrow { max-width: 460px; }
.adm-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 4px; margin: 0 0 22px; }
.adm-form legend { font-weight: 800; color: var(--navy); padding: 0 8px; font-size: 18px; }
.hint { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 14px; }
.fld { margin-bottom: 14px; }
.fld > span { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.cur { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.cur img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; }
label.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--amber); }
input[type=file] { font: 400 16px var(--font); max-width: 100%; }
.adm-save { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.msg { background: #fff; border-radius: var(--r); box-shadow: 0 2px 8px rgba(28, 37, 65, .08); padding: 14px 18px; margin-bottom: 12px; }
.msg.new { border-inline-start: 6px solid var(--amber); }
.msg header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.msg-c { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0; }
.msg-b { white-space: pre-wrap; background: #faf7ef; border-radius: 8px; padding: 10px 14px; }
.msg-a { display: flex; gap: 8px; margin: 0; }
.msg-a button { border: 1px solid #d8d0bd; background: #fff; border-radius: 8px; padding: 6px 14px; font: 600 15px var(--font); cursor: pointer; }
.msg-a .danger:hover { background: #fde8e6; color: var(--err); }
.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px; width: min(100%, 400px); text-align: center; }
.login-box label { text-align: start; }
.login-box .btn { width: 100%; }
.login-box h1 { margin-bottom: 2px; }

/* ---- admin guide ---- */
.guide { max-width: 860px; }
.guide h2 { margin-top: 1.6em; padding-top: .4em; border-top: 2px solid var(--line); font-size: 24px; }
.guide h3 { font-size: 19px; margin: 1.2em 0 .3em; }
.guide .toc { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 22px; }
.guide .toc a { display: inline-block; margin: 3px 14px 3px 0; }
.guide .ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d8d0bd; background: #fff; border-radius: 8px; color: var(--navy); vertical-align: middle; margin-inline-end: 6px; }
.guide table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin: 10px 0 16px; }
.guide td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide td:first-child { white-space: nowrap; width: 1%; }
.guide .tip { background: #fff7e0; border-inline-start: 5px solid var(--amber); border-radius: 8px; padding: 10px 16px; margin: 12px 0; }
.guide .warn { background: #fde8e6; border-inline-start: 5px solid var(--err); border-radius: 8px; padding: 10px 16px; margin: 12px 0; }
.guide code { background: #f0ece0; padding: 1px 6px; border-radius: 4px; direction: ltr; unicode-bidi: embed; }
.guide ol li, .guide ul li { margin-bottom: .4em; }
