/* ============================================================
   Wunpawng Edin · theme.css — shared design foundation
   ------------------------------------------------------------
   Load FIRST on every page, then page-specific CSS (style.css).
   Dedicated pages (news/videos/music/gospel/ebooks/gallery.html)
   load theme.css only.

   Fonts: Plus Jakarta Sans (UI) · Noto Sans Myanmar (မြန်မာ) ·
          Playfair Display (display headings)
   Theme: light, warm, easy on the eyes.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Myanmar:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  /* palette */
  --bg: #faf8f4;
  --bg-soft: #f1ece1;
  --card: #ffffff;
  --card-2: #f6f1e6;
  --border: #e7dfd0;
  --line: #e7dfd0;            /* alias of --border */
  --text: #20242f;
  --ink: #20242f;             /* alias of --text */
  --text-soft: #4c5168;
  --text-dim: #8b90a5;
  --muted: #8b90a5;           /* alias of --text-dim */
  --accent: #b3122e;          /* Kachin red */
  --gold: #f2b705;            /* Kachin gold */
  --red: #d6336c;
  --pink: #c2255c;
  --green: #0d6e3f;
  --yellow: #b97b06;
  --blue: #1971c2;
  /* layout */
  --radius: 16px;
  --nav-h: 64px;
  --max-w: 1240px;
  /* type */
  --font: "Plus Jakarta Sans", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Noto Sans Myanmar", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* warm ambient backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 320px at 12% -4%, rgba(178,18,46,.05), transparent 60%),
    radial-gradient(700px 380px at 88% 6%, rgba(25,113,194,.05), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(13,110,63,.05), transparent 60%),
    var(--bg);
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Display headings use the serif display face */
.hero h1, .sec-title, .cta-band h2, .page-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

/* ── Shared header (copy markup from _header.html) ─────────── */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(250,248,244,.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(120,100,70,.07);
}
.nav {
  max-width: var(--max-w); margin: 0 auto; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 2px 10px rgba(150,110,40,.35);
}
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: .2px; line-height: 1.15; }
.brand-tag { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; font-weight: 600; }

/* Home button */
.btn-home {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 24px; padding: 8px 18px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; flex-shrink: 0; transition: .15s;
}
.btn-home:hover { border-color: var(--accent); color: var(--accent); }
.btn-home.active { background: var(--text); border-color: var(--text); color: #fff; }

/* Header search bar */
.search {
  display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: 24px; padding: 6px 6px 6px 14px;
  box-shadow: 0 1px 4px rgba(120,100,70,.06); min-width: 0;
}
.search input {
  background: transparent; border: 0; outline: 0; color: var(--text);
  font-size: 14px; width: 170px; min-width: 0; font-family: inherit;
}
.search input::placeholder { color: var(--text-dim); }
.search button {
  background: var(--accent); border: 0; color: #fff; font-weight: 700;
  border-radius: 18px; padding: 7px 16px; font-size: 13px; white-space: nowrap;
  transition: .15s;
}
.search button:hover { filter: brightness(1.1); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Language switcher */
.lang-switch {
  display: flex; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.lang-switch button { background: transparent; border: 0; color: var(--text-dim); padding: 7px 10px; }
.lang-switch button.on { background: var(--gold); color: #20242f; }
.lang-switch button:disabled { opacity: .45; cursor: default; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 7px 26px 7px 12px; cursor: pointer; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-switch select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Buttons */
.btn {
  border: 0; border-radius: 24px; font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; white-space: nowrap; flex-shrink: 0; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-upload {
  background: linear-gradient(135deg, var(--accent), #e8590c); color: #fff;
  box-shadow: 0 3px 12px rgba(179,18,46,.28);
}
.btn-upload:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-signin { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-signin:hover { border-color: var(--text-dim); }
.btn-ghost { background: var(--card); border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-hero { padding: 14px 30px; font-size: 16px; border-radius: 30px; }

/* Auth-aware user chip */
.user-chip {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 6px 6px 6px 14px;
}
.user-chip #userChipName { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.user-chip a { color: var(--green); font-weight: 700; }
.user-chip a:hover { text-decoration: underline; }
.user-chip .linklike {
  background: none; border: 0; padding: 6px 10px; cursor: pointer;
  color: var(--text-dim); font-size: 13px; font-weight: 600; border-radius: 16px;
}
.user-chip .linklike:hover { color: var(--text); background: rgba(0,0,0,.05); }
.user-chip[hidden] { display: none; }
/* .btn's inline-flex would override the hidden attribute otherwise */
.btn[hidden] { display: none; }

.hamburger {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 20px; padding: 6px 12px;
}
/* Sub-pages use Home button + hamburger dropdown instead of inline nav links */
body.page-nav .hamburger { display: block; }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px; padding: 10px 20px 16px;
  border-bottom: 1px solid var(--border); background: rgba(250,248,244,.97);
}
.mobile-menu a { padding: 11px 6px; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.06); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }   /* dropdown works on desktop too (sub-page nav) */

/* Mobile search icon (replaces the Upload button on phones — Upload lives in the ☰ menu) */
.btn-icon-search {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 18px; padding: 6px 11px;
  cursor: pointer; flex-shrink: 0;
}
/* Notification bell (upload approve/reject) */
.notif-wrap { position: relative; flex-shrink: 0; }
.btn-icon-bell {
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 18px; padding: 6px 11px;
  cursor: pointer; position: relative;
}
.nbadge {
  position: absolute; top: -6px; right: -6px; background: #c92a2a; color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nbadge[hidden] { display: none; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 86vw;
  max-height: 380px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15); z-index: 70; padding: 8px;
}
.notif-panel[hidden] { display: none; }
.notif-item { padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.notif-item.unread { background: rgba(179,18,46,.07); }
.notif-item .nt { font-weight: 700; }
.notif-item .nd { color: var(--muted); font-size: 12px; margin-top: 2px; }
/* ── Content edit modal (owner/admin text edit) ── */
.edit-ov { position: fixed; inset: 0; z-index: 9500; background: rgba(20,16,10,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.edit-ov[hidden] { display: none; }
.edit-card { background: var(--card); border-radius: 18px; max-width: 560px; width: 100%;
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.edit-card h3 { margin: 0 0 6px; font-size: 18px; }
.edit-card label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: var(--muted); }
.edit-card input[type=text], .edit-card textarea { width: 100%; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px;
  background: var(--bg); color: var(--text); box-sizing: border-box; }
.edit-card textarea { min-height: 140px; resize: vertical; }
.edit-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.edit-actions .btn-save { background: var(--accent, #b3122e); color: #fff; border: none;
  border-radius: 10px; padding: 9px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.edit-actions .btn-cancel { background: transparent; border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 20px; font: inherit; cursor: pointer; color: var(--text); }
.edit-err { color: #c92a2a; font-size: 13px; margin-top: 10px; min-height: 18px; }
.btn-edit { background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.btn-edit:hover { border-color: var(--accent, #b3122e); }

/* ── Shared footer ─────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0 90px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.fbrand p { color: var(--text-dim); font-size: 14px; margin-top: 10px; max-width: 300px; }
footer h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); font-family: var(--font); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
footer ul a { color: var(--text-dim); font-size: 14px; }
footer ul a:hover { color: var(--accent); }
.fbottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13px;
}
.kachin-strip {
  height: 8px;
  background: repeating-linear-gradient(90deg, #b3122e 0 34px, #0d6e3f 34px 68px, #f2b705 68px 102px, #1a1a1a 102px 136px);
}

/* ── Sections ──────────────────────────────────────────────── */
section.block { padding: 44px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.sec-title { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sec-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sec-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.sec-link { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.sec-link:hover { color: var(--accent); }

/* Category link cards (home → dedicated pages) */
.cats { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-card {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 22px;
  font-weight: 700; font-size: 15px; transition: .15s;
  box-shadow: 0 2px 8px rgba(120,100,70,.05);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(179,18,46,.12); }
.cat-card .ico { font-size: 22px; }
.cat-card small { display: block; font-weight: 500; color: var(--text-dim); font-size: 12px; }
.cat-card .go { margin-left: 6px; color: var(--text-dim); font-weight: 800; }
.cat-card:hover .go { color: var(--accent); }

/* ── Video cards (YouTube-style) ───────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .15s; box-shadow: 0 2px 10px rgba(120,100,70,.06);
}
.vcard:hover { transform: translateY(-3px); border-color: #d5c9b2; box-shadow: 0 14px 30px rgba(120,100,70,.14); }
.vthumb { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vthumb .play {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(20,16,10,.55);
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: .15s;
}
.vcard:hover .play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.vdur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px;
}
.vbadge {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 8px; letter-spacing: .4px;
}
.vbody { padding: 13px 15px 15px; }
.vtitle {
  font-weight: 700; font-size: 14.5px; line-height: 1.4; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vmeta { color: var(--text-dim); font-size: 12.5px; }
/* warm gradient thumbs — Kachin textile inspired */
.g1 { background: linear-gradient(135deg, #d6336c, #8f1d3f); }
.g2 { background: linear-gradient(135deg, #2b8a5a, #0d6e3f); }
.g3 { background: linear-gradient(135deg, #d9a404, #8a5c06); }
.g4 { background: linear-gradient(135deg, #4d7fc4, #27407c); }
.g5 { background: linear-gradient(135deg, #b45a8d, #6d1f4d); }
.g6 { background: linear-gradient(135deg, #3aa7b8, #0f5e6e); }
.g7 { background: linear-gradient(135deg, #8a68b8, #50307c); }
.g8 { background: linear-gradient(135deg, #d08a4e, #7c4a12); }

/* ── Music tracks ──────────────────────────────────────────── */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px 12px 12px;
  transition: .15s; box-shadow: 0 2px 8px rgba(120,100,70,.05);
}
.track:hover { border-color: #d5c9b2; }
.track.playing { border-color: var(--green); background: #eef7f0; }
.tplay {
  width: 46px; height: 46px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: linear-gradient(135deg, #2b8a5a, #1971c2); color: #fff;
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.tcover { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; }
.tinfo { min-width: 0; }
.tinfo .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tinfo .a { color: var(--text-dim); font-size: 13px; }
.tdur { margin-left: auto; color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.teq { display: none; align-items: flex-end; gap: 3px; height: 20px; margin-left: 6px; }
.track.playing .teq { display: inline-flex; }
.teq i { width: 4px; background: var(--green); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.teq i:nth-child(2) { animation-delay: .2s; } .teq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 20px; } }

/* Bottom persistent player */
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
  backdrop-filter: blur(14px); transform: translateY(110%); transition: .25s;
  box-shadow: 0 -6px 24px rgba(120,100,70,.1);
}
.playerbar.show { transform: none; }
.playerbar .in {
  max-width: var(--max-w); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.pcover { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.ptitle { font-weight: 700; font-size: 14px; } .partist { font-size: 12px; color: var(--text-dim); }
.pplay {
  width: 42px; height: 42px; border-radius: 50%; border: 0; margin-left: auto;
  background: var(--gold); color: #20242f; font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.pnote { font-size: 11.5px; color: var(--text-dim); }

/* ── Hymn compact rows ─────────────────────────────────────── */
#hymns[hidden] { display: none; }
.hymn-tabs {
  display: flex; background: #edf1e8; border-radius: 999px;
  padding: 6px; gap: 6px; margin-bottom: 14px;
}
.hymn-tab {
  flex: 1; border: 0; background: transparent; border-radius: 999px;
  padding: 12px 10px; font-weight: 700; font-size: 16px; color: #6b7461; transition: .15s;
}
.hymn-tab.on { background: #8a9b7e; color: #fff; box-shadow: 0 3px 10px rgba(90,110,80,.35); }
.music-tabs {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px;
  padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.music-tabs .hymn-tab {
  flex: 0 0 auto; white-space: nowrap; padding: 10px 18px; font-size: 15px;
  border: 1px solid var(--border);
}
.music-tabs .hymn-tab .cnt { opacity: .65; font-weight: 600; font-size: 13px; margin-left: 6px; }
.music-tabs:empty { display: none; }
.hymn-search {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 13px 20px;
  margin-bottom: 14px; box-shadow: 0 2px 8px rgba(120,100,70,.06);
}
.hymn-search-ico { color: #9aa091; flex-shrink: 0; }
.hymn-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text); min-width: 0; font-family: inherit;
}
.hymn-search input::placeholder { color: #a8ada0; }
.hymn-list { display: flex; flex-direction: column; gap: 10px; }
.hymn-row {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #ece4d2; border-radius: 16px;
  padding: 13px 16px 13px 20px; text-align: left; width: 100%;
  box-shadow: 0 2px 8px rgba(120,100,70,.05); transition: .12s;
}
.hymn-row::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 5px; border-radius: 0 5px 5px 0; background: #8a9b7e;
}
.hymn-row:active { transform: scale(.985); }
.hymn-num {
  width: 52px; height: 52px; border-radius: 50%; background: #f1f0ea;
  color: #4d9b5f; font-weight: 800; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.hymn-title {
  flex: 1; font-weight: 700; font-size: 16px; letter-spacing: .3px;
  color: var(--text); min-width: 0; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hymn-play { color: #4d9b5f; font-size: 25px; line-height: 1; flex-shrink: 0; }
.hymn-pdf {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 10px; font-size: 17px; padding: 6px 9px; flex-shrink: 0; line-height: 1;
}
.hymn-pdf-none { opacity: .32; }

/* ── Photo gallery ─────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard {
  position: relative; border: 0; padding: 0; cursor: pointer;
  border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(120,100,70,.08);
}
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pcard:hover img { transform: scale(1.05); }
.pcap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  font-size: 13px; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
}
.lightbox {
  position: fixed; inset: 0; z-index: 9990; background: rgba(12,10,8,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 84vh; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lb-cap {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 15px; font-weight: 600;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; border-radius: 50%;
  width: 46px; height: 46px; font-size: 22px; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ── Dedicated page chrome (Part B pages) ──────────────────── */
.page-hero {
  padding: 44px 0 8px;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; margin-bottom: 8px; }
.page-hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { color: var(--text-soft); font-size: 16px; max-width: 640px; }
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin: 22px 0;
}
.toolbar .search { flex: 1; min-width: 220px; max-width: 520px; }
.toolbar .search input { width: 100%; }
.empty-state {
  color: var(--muted); padding: 34px 20px; text-align: center;
  border: 1.5px dashed var(--border); border-radius: 14px; font-size: 15px;
}

/* ── Forms ─────────────────────────────────────────────────── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=search], .field textarea, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 12px; font-size: 15px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid rgba(179,18,46,.35); border-color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .search input { width: 120px; }
}
@media (max-width: 960px) {
  .nav-right .btn-signin, .nav-right .user-chip { display: none; }
  .nav-right .search { display: none; }   /* hero search stays on mobile */
  .nav > .search { display: none; }       /* home header search — hero search stays */
  .nav-right .page-search, .nav-right .hsearch, .nav-right .esearch { display: none; }  /* sub-page header searches */
  .nav-right .btn-upload, .nav-right .btn-up { display: none; }  /* Upload lives in the ☰ menu on phones */
  .btn-icon-search { display: inline-flex; align-items: center; justify-content: center; }
  /* Tapping 🔍 reveals the page's own header search as a dropdown row */
  header.search-open .nav > .search,
  header.search-open .nav-right .page-search,
  header.search-open .nav-right .hsearch,
  header.search-open .nav-right .esearch {
    display: flex; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; z-index: 60;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); gap: 8px;
  }
  header.search-open .nav > .search input,
  header.search-open .nav-right .page-search input,
  header.search-open .nav-right .hsearch input,
  header.search-open .nav-right .esearch input { flex: 1; width: auto; min-width: 0; }
  .hamburger { display: block; }
  .nav-right .lang-switch { display: none; }
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .track { padding: 10px 12px 10px 8px; gap: 12px; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex; }
  .btn-home span.lbl { display: none; }  /* icon-only Home on small screens */
  .btn-home { padding: 9px 12px; }
}
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .brand-tag { display: none; }   /* name only on tiny screens */
  .brand-name { font-size: 16px; }
  .nav-right .btn-upload { font-size: 0; padding: 10px 13px; }
  .nav-right .btn-upload::before { content: "＋"; font-size: 18px; }
  .vthumb { height: 110px; }
  .fgrid { grid-template-columns: 1fr; }
  .hymn-num { width: 46px; height: 46px; font-size: 16px; }
  .hymn-title { font-size: 15px; }
  .hymn-row { padding: 11px 14px 11px 18px; gap: 12px; }
  .cats { gap: 10px; }
  .cat-card { padding: 12px 16px; font-size: 14px; }
}

/* Hero tagline band (under hero image) */
.hero-tagline {
  text-align: center;
  padding: 28px 20px 8px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-tagline .ht-line1 {
  font-family: "Playfair Display", "Noto Sans Myanmar", serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  background: linear-gradient(90deg, #b3122e, #f2b705, #1a7a3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .3px;
}
.hero-tagline .ht-kicker {
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.hero-tagline .ht-lead {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

/* Full-width hero with overlaid title (home page) */
.hero-full {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/assets/hero-manau.jpg") center 30%/cover no-repeat;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  margin-top: 6px;
}
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 40%, rgba(0,0,0,.28));
  pointer-events: none;
}
.hero-full .hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  line-height: 1.15;
  transform: translateY(-26px);
}
.hero-full .ht-wunpawng {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(38px, 7vw, 72px);
  background: linear-gradient(180deg, #e3322c 20%, #f2b705 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero-full .ht-jp {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 44px);
  color: #2e9e4f;
  text-shadow: 0 2px 12px rgba(0,0,0,.35), 0 1px 2px rgba(255,255,255,.4);
}
.hero-full .ht-lib {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 36px);
  letter-spacing: 2px;
  color: #1f6fd6;
  text-shadow: 0 2px 12px rgba(0,0,0,.35), 0 1px 2px rgba(255,255,255,.4);
}
.hero-full .caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  background: rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Side-by-side section pairs on home */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.duo .block { margin-bottom: 0; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
}

/* Hero overlaid title: stronger readability over busy image */
.hero-full .hero-title {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 55%, transparent 75%);
  border-radius: 24px;
  padding: 36px 48px;
}
.hero-full .ht-wunpawng {
  -webkit-text-stroke: 1px rgba(120,10,10,.55);
  text-shadow: 0 3px 0 rgba(90,5,5,.6), 0 6px 24px rgba(0,0,0,.55);
}
.hero-full .ht-jp {
  -webkit-text-stroke: .8px rgba(10,60,20,.5);
  text-shadow: 0 3px 0 rgba(10,60,20,.55), 0 6px 20px rgba(0,0,0,.55);
}
.hero-full .ht-lib {
  -webkit-text-stroke: .8px rgba(10,40,90,.5);
  text-shadow: 0 3px 0 rgba(10,40,90,.55), 0 6px 20px rgba(0,0,0,.55);
}

/* Kachin-flag title: single text, top half red / bottom half green, stroked + drop shadow */
.hero-full .ht-wunpawng {
  background: linear-gradient(180deg, #e3322c 50%, #2fae56 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(0,0,0,.55);
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 8px 28px rgba(0,0,0,.65);
}

/* Hero background slideshow (layers built by js/hero-slideshow.js) */
.hero-full .hero-slides,
.hero-full .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-full .hero-slides {
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}
.hero-full .hero-slide {
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2.8s ease-in-out;
}
.hero-full .hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-slide { transition: none; }
}

/* Hero title lifted + Jinghpaw tagline (2026-10-14; tagline moved down
   2026-10-29; white divider line above tagline removed 2026-10-29 v2) */
.hero-full .hero-title {
  transform: translateY(-46px);
}
.hero-full .ht-tagline {
  margin: 44px auto 0;
  max-width: 660px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2.4vw, 20px);
  line-height: 1.5;
  color: #fff;
  -webkit-text-stroke: .5px rgba(255,255,255,.85);
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.85);
}
/* Hero title white stroke (2026-10-29 v2): thin white outline on the three
   title lines (Wunpawng Edin / Hpaji Sawk Gindai / KACHIN EDEN LIBRARY)
   so they stay legible over busy photos, especially on phones */
.hero-full .ht-wunpawng {
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}
.hero-full .ht-jp {
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}
.hero-full .ht-lib {
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}

/* Dedicated pages: narrower content column than home */
.wrap.narrow { max-width: 1080px; }

/* Kill stray horizontal scrollbar */
html, body { overflow-x: clip; }

/* Footer creator + contact credit (2026-10-29) */
.fcredit { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 14px; }
footer .fcredit a { color: var(--blue); font-weight: 700; }
footer .fcredit a:hover { color: var(--accent); }
