/* Japan Bangla Hub — stylesheet */
:root {
  --paper: #f6f3ec;
  --surface: #ffffff;
  --ink: #16232c;
  --ink-2: #33424c;
  --muted: #5f6c75;
  --line: #e2dccf;
  --line-2: #efe9dd;
  --green: #0b5d3b;
  --green-2: #0f7a4e;
  --green-deep: #073f28;
  --green-soft: #e4f0e8;
  --red: #c8102e;
  --red-soft: #fbe9ec;
  --gold: #a87a22;
  --gold-soft: #f8efd9;
  --amber-soft: #fff6dc;
  --fb: #1462d1;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(22, 35, 44, .05), 0 4px 14px rgba(22, 35, 44, .04);
  /* Official Noto family: Latin, Bangla and Japanese each render in their own official typeface. */
  --font: "Noto Sans", "Noto Sans Bengali", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-head: "Noto Sans", "Noto Sans Bengali", "Noto Sans JP", system-ui, sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.7 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h2 { font-size: 1.3rem; }
:lang(ja), [lang="ja"] { font-family: var(--font-ja); }
body.lang-ja { font-family: "Noto Sans", var(--font-ja); line-height: 1.8; }
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3 { font-family: "Noto Sans", var(--font-ja); letter-spacing: .01em; }
body.lang-en { line-height: 1.6; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid rgba(15, 122, 78, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ja { font-family: var(--font-ja); font-weight: 400; font-size: .8em; }
.inline { display: inline; }

/* ---------- Header ---------- */
.announce { background: var(--green-deep); color: #e8f3ec; font-size: .9rem; padding: 7px 0; text-align: center; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: space-between; }
.nav-main { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.nav-main a { display: block; padding: 8px 9px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-main a:hover { background: var(--line-2); color: var(--ink); }
.nav-main a.is-active { color: var(--green); background: var(--green-soft); }
.nav-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 40px; margin-left: auto; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.count-red { background: var(--red); }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav.is-open { display: flex; }
  .nav-main { flex-direction: column; white-space: normal; }
  .nav-main a { padding: 11px 10px; font-size: 1.02rem; }
  .nav-user { flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .97rem/1.2 var(--font); padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: #0f52b5; color: #fff; }
.btn-danger { background: var(--surface); color: var(--red); border-color: #efb4be; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn-lg { padding: 13px 24px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 12px; font-size: .96rem; }
.flash-success { background: var(--green-soft); border-color: #a9d3b9; color: #0b4a30; }
.flash-error { background: var(--red-soft); border-color: #f0b8c2; color: #8a0c22; }
.flash-info { background: var(--amber-soft); border-color: #ecd9a1; color: #5f4a10; }
.verify-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--red); opacity: .055; right: -140px; top: -160px; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.22; margin-bottom: 18px; }
.hero h1 span { color: var(--green); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.hero-search { display: flex; gap: 8px; margin-top: 26px; background: var(--paper); border: 1px solid var(--line); padding: 8px; border-radius: 12px; }
.hero-search input, .hero-search select { border: 0; background: transparent; font: inherit; padding: 8px 10px; min-width: 0; color: var(--ink); }
.hero-search { align-items: center; }
.hero-search input { flex: 1.4; }
.hs-ico { width: 20px; height: 20px; color: var(--muted); margin-left: 8px; flex-shrink: 0; }
.hero-search select { flex: 1; border-left: 1px solid var(--line); border-radius: 0; }
.hero-search input:focus, .hero-search select:focus { outline: none; }
.hero-search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(15, 122, 78, .14); }
.hero-hint { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.hero-panel { background: var(--green); color: #fff; border-radius: 16px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: start; position: relative; }
.hero-panel::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--red); right: 24px; top: -24px; box-shadow: 0 0 0 7px var(--surface); }
.stat b { display: block; font-family: "Noto Sans", var(--font-head); font-size: 2.2rem; line-height: 1.1; font-weight: 700; }
.stat span { font-size: .92rem; color: #cfe7d8; }
.hero-panel .btn { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: 0; border-top: 1px solid var(--line); }
}

.featured { margin-top: 26px; }
.featured-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid #ead7a8; border-radius: var(--radius); padding: 16px 22px; }
.featured-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); border-right: 1px solid #e3cc93; padding-right: 20px; }
.featured-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.featured p { margin: 2px 0 0; }

/* ---------- Sections ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 8px; } }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 32px; margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { margin: 0; }
.head-with-action { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Region map */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.region h3 { font-size: .95rem; margin-bottom: 8px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.region ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pref-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: .84rem; text-decoration: none; color: var(--muted); background: var(--paper); border: 1px solid var(--line-2); }
.pref-chip span:empty { display: none; }
.pref-chip.has { color: var(--green-deep); background: var(--green-soft); border-color: #c4dfcd; font-weight: 500; }
.pref-chip.has span { background: var(--green); color: #fff; border-radius: 10px; padding: 0 6px; font-size: .74rem; line-height: 18px; }
.pref-chip:hover { border-color: var(--green-2); color: var(--green); }
@media (max-width: 960px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .region-grid { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); text-decoration: underline; }

.avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: #fff; font-family: var(--font-head); }
.avatar-sm { width: 34px; height: 34px; font-size: .9rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.9rem; }
.tone-0 { background: #0b5d3b; } .tone-1 { background: #8a5a1c; } .tone-2 { background: #2f5a7a; }
.tone-3 { background: #7a2f45; } .tone-4 { background: #4b5c2a; } .tone-5 { background: #5a4580; }

.person-card { display: flex; flex-direction: column; gap: 12px; }
.person-head { display: flex; gap: 12px; align-items: center; }
.person-id h3 { margin: 0; }
.person-meta { font-size: .87rem; color: var(--muted); }
.person-inst { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 500; }
.person-inst a { color: var(--ink); text-decoration: none; }
.person-inst a:hover { color: var(--green); text-decoration: underline; }
.person-help { font-size: .88rem; margin: 0; color: var(--ink-2); }
.person-help span { color: var(--muted); }
.person-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }

.tag { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 4px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-language { background: #e6eef6; color: #244d73; }
.tag-senmon { background: #f3eadf; color: #74481a; }
.tag-university { background: var(--green-soft); color: var(--green-deep); }
.tag-work { background: #ece8f5; color: #4b3a78; }
.tag-job { background: #e6eef6; color: #244d73; }
.tag-don { background: var(--red-soft); color: #8a0c22; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.badge-verified { border-color: #9fcfb2; color: var(--green-deep); background: var(--green-soft); }
.badge-verified::before { content: "✓ "; }
.badge-gold { border-color: #e2c57d; color: #7a5612; background: var(--gold-soft); }
.badge-silver { border-color: #cdd3d8; color: #4a5560; background: #f1f3f5; }
.badge-bronze { border-color: #e2c3a5; color: #7a4a1f; background: #faf0e6; }
.score { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 20px; padding: 1px 9px; }
.score-lg { font-size: 1.05rem; padding: 4px 14px; }

.job-card h3, .donation-card h3 { margin: 10px 0 8px; }
.job-top, .donation-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; gap: 4px; margin: 0; font-size: .9rem; }
.facts div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line-2); padding: 3px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.pay { font-weight: 700; color: var(--green); }
.donation-card { border-top: 3px solid var(--red); }
.donation-card.cat-mosque { border-top-color: var(--green); }
.donation-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; border-top: 1px solid var(--line-2); padding-top: 10px; }

.mosque-head { display: flex; gap: 12px; align-items: flex-start; }
.mosque-head h3 { margin: 0 0 2px; }
.mosque-icon { width: 28px; height: 28px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.prayer-mini { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: .84rem; text-align: center; }
.prayer-mini th { font-weight: 500; color: var(--muted); padding: 3px 2px; font-size: .78rem; }
.prayer-mini td { font-weight: 700; padding: 5px 2px; background: var(--paper); font-variant-numeric: tabular-nums; }
.mosque-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; margin-top: 10px; }
.fresh { font-size: .78rem; padding: 1px 8px; border-radius: 20px; }
.fresh::before { content: "●"; margin-right: 4px; }
.fresh-fresh { color: var(--green-deep); background: var(--green-soft); }
.fresh-aging { color: #6d5410; background: var(--amber-soft); }
.fresh-stale { color: #8a0c22; background: var(--red-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }

.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-rows li > div { min-width: 0; }
.leader-mini { list-style: none; margin: 0; padding: 0; }
.leader-mini li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.leader-mini li > div { flex: 1; }
.rank { font-family: var(--font-head); font-weight: 700; color: var(--muted); width: 26px; text-align: center; font-size: 1.1rem; }

.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-title { color: var(--muted); font-size: 1.02rem; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 14px 18px; margin: 28px 0; font-size: .95rem; }
.note-bd { border-left-color: var(--red); }
.note-warn { border-top: 3px solid var(--gold); }

/* How it works */
.how { margin-bottom: 20px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: .92rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.f-field { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.f-field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.f-grow { flex: 1; min-width: 220px; }
.f-actions { display: flex; gap: 8px; }
.f-check { display: flex; align-items: flex-start; gap: 8px; font-size: .94rem; cursor: pointer; padding: 8px 0; }
.f-check input { margin-top: 5px; accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=month], input:not([type]), select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #d3cbb9; border-radius: var(--radius-sm); padding: 9px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(15, 122, 78, .14); }
.result-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.sort a { color: var(--muted); }
.sort a.is-on { color: var(--green); font-weight: 600; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.chips a { padding: 6px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.chips a.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.chip-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.donate-warn { margin-bottom: 18px; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager a.is-current { background: var(--green); color: #fff; border-color: var(--green); }
.pager-gap { padding: 6px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { background: var(--paper); font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { white-space: nowrap; }
.table .actions .btn, .table .actions form { margin: 2px; }
.table tr.is-dim td { opacity: .55; }
.diff tr.is-changed td, .diff tr.is-changed th { background: #fff8de; }
.diff th { width: 22%; color: var(--muted); font-weight: 500; }

/* ---------- Detail pages ---------- */
.detail { padding-top: 22px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main h1 { margin: 10px 0 8px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin: 0 0 6px; }
.kv { margin: 18px 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }
.prose h2 { font-size: 1.1rem; margin-top: 22px; }
.contact-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0 12px; }
.contact-box .btn { margin-bottom: 8px; }
.h-sm { font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mini-links { list-style: none; padding: 0; margin: 0; }
.mini-links li { padding: 7px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mini-links li:last-child { border-bottom: 0; }
.thanks-list { list-style: none; padding: 0; margin: 14px 0 0; }
.thanks-list li { padding: 10px 0; border-top: 1px solid var(--line-2); }
.thanks-list p { margin: 0 0 2px; font-size: .94rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 3px 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.report summary { cursor: pointer; font-size: .86rem; color: var(--muted); padding: 6px 2px; }
.report form { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }

.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0; }
.prayer { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-align: center; padding: 12px 6px; }
.prayer span { display: block; font-size: .82rem; color: var(--muted); }
.prayer b { font-size: 1.3rem; font-variant-numeric: tabular-nums; font-family: var(--font-head); }
.prayer-jumuah { background: var(--green-soft); border-color: #c4dfcd; }
.prayer-jumuah b { font-size: .98rem; }
@media (max-width: 640px) { .prayer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Leaderboard ---------- */
.leaderboard { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.leaderboard li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.leaderboard li:last-child { border-bottom: 0; }
.lb-body { flex: 1; min-width: 0; }
.leaderboard .top .rank { color: #fff; border-radius: 50%; height: 30px; width: 30px; display: grid; place-items: center; font-size: .95rem; }
.leaderboard .top-1 .rank { background: #b8892a; }
.leaderboard .top-2 .rank { background: #8d98a2; }
.leaderboard .top-3 .rank { background: #a8693a; }
.filters-inline { margin-bottom: 14px; }

/* ---------- Forms ---------- */
.form-page { max-width: 860px; padding-top: 24px; }
.form-page > h1 { margin-top: 4px; }
.form { margin-bottom: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; padding: 0; margin-bottom: 8px; width: 100%; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.f-row { margin-bottom: 14px; }
.f-row > label, .f-row > .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 5px; }
.f-row em { color: var(--red); font-style: normal; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 10px; }
.f-times input { text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .f-cols { grid-template-columns: 1fr; } .f-times { grid-template-columns: repeat(3, 1fr); } }
.hint { font-size: .83rem; color: var(--muted); margin: 5px 0 0; }
.f-err { color: var(--red); font-size: .86rem; margin: 5px 0 0; font-weight: 500; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red); }
.has-err.f-check { color: var(--red); }
.radio-group { display: flex; flex-direction: column; gap: 0; }
.radio-group .f-check { padding: 4px 0; }
.f-agree { background: var(--paper); border-radius: var(--radius-sm); padding: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 10px; }
.danger-zone { border-color: #efc3cb; }

.auth { display: flex; justify-content: center; padding: 48px 20px 64px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: .93rem; }

/* ---------- Dashboard ---------- */
.dash { padding-top: 28px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.big-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold); margin: 0 0 6px; line-height: 1; }
.action-list { list-style: none; padding: 0; margin: 0; }
.action-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.action-list li > a { font-weight: 600; }
.action-list span { font-size: .85rem; color: var(--muted); }
.status { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.st-pending { background: var(--amber-soft); color: #6d5410; }
.st-approved { background: var(--green-soft); color: var(--green-deep); }
.st-rejected { background: var(--red-soft); color: #8a0c22; }
p.status { display: block; border-radius: var(--radius-sm); padding: 8px 12px; font-size: .88rem; white-space: normal; }

/* ---------- Admin ---------- */
.admin-nav { background: var(--ink); }
.admin-nav .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { color: #c7d0d6; text-decoration: none; padding: 11px 13px; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: #fff; }
.admin-nav a.is-active { color: #fff; border-bottom-color: var(--red); }
.admin { padding-top: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 8px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.stat-card span { font-size: .88rem; color: var(--muted); }
.stat-card.tone-warn { border-color: #ead7a8; background: var(--amber-soft); }
.stat-card.tone-danger { border-color: #efc3cb; background: var(--red-soft); }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.review-head h1 { margin: 8px 0 0; }
.quick-notes { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.quick-notes .link-btn { text-align: left; font-size: .82rem; }

/* ---------- Static pages ---------- */
.prose-page { max-width: 780px; padding-top: 40px; padding-bottom: 20px; }
.prose-page h2 { margin-top: 32px; }
.prose-page ol { padding-left: 1.3em; }
.prose-page ol li { margin-bottom: 8px; }
.empty-page { text-align: center; padding: 80px 20px; }
.big-404 { font-family: var(--font-head); font-size: 5rem; color: var(--red); margin: 0; line-height: 1; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #c9dfd1; margin-top: 64px; font-size: .93rem; }
.site-footer a { color: #e6f2ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand { font-family: var(--font-head); font-size: 1.25rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 22px; font-size: .84rem; color: #9fc0ab; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media print {
  .site-header, .site-footer, .announce, .admin-nav, .report { display: none; }
  body { background: #fff; }
}

/* ================= v2 additions ================= */
.topbar { background: var(--green-deep); color: #cfe3d6; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-tag { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-tag i, .eyebrow i, .alt i { font-style: normal; opacity: .5; margin: 0 .5em; }
.lang-switch { display: flex; gap: 2px; flex-shrink: 0; }
.lang-switch a { color: #e6f2ea; text-decoration: none; padding: 4px 10px; border-radius: 4px; font-weight: 500; }
.lang-switch a:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch a.is-on { background: #fff; color: var(--green-deep); }
@media (max-width: 640px) { .topbar-tag { display: none; } .topbar-inner { justify-content: center; } }

.brand-text small { font-family: var(--font-ja); letter-spacing: .04em; }
.search-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.search-btn:hover { color: var(--green); border-color: var(--green-2); }
.search-btn svg { width: 18px; height: 18px; }
.search-btn-mobile { display: none; }
@media (max-width: 1180px) { .search-btn-mobile { display: inline-grid; margin-left: auto; } .nav-toggle { margin-left: 8px; } .nav-user .search-btn { display: none; } }

.alt { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; margin-top: 2px; }
h1 + .alt { margin: -4px 0 10px; font-size: .9rem; }
.eyebrow .alt { display: inline; color: inherit; font-size: inherit; margin: 0; }
.eyebrow .alt::before { content: "·"; opacity: .5; margin: 0 .5em; }
.section-head .alt { margin-top: 0; }

.hero-privacy { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: #cfe7d8; display: flex; gap: 6px; align-items: center; }
.hero-privacy svg { width: 15px; height: 15px; flex-shrink: 0; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; position: relative; }
.quick-card::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--green); opacity: .6; }
.quick-card:hover { border-color: var(--green-2); transform: translateY(-1px); color: var(--ink); }
.quick-card b { font-size: 1.05rem; }
.quick-card > span:last-child { font-size: .86rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr 1fr; } }

.school-mini { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.school-mini:hover { border-color: var(--green-2); color: var(--ink); }
.school-mini strong { font-size: 1.02rem; line-height: 1.35; }
.ja-name { font-family: var(--font-ja); color: var(--muted); font-size: .86rem; }
.ja-name-lg { font-family: var(--font-ja); color: var(--ink-2); font-size: 1.1rem; margin: -4px 0 6px; }
.school-mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; margin-top: auto; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 8px; }

.stars { display: inline-flex; gap: 1px; vertical-align: -1px; }
.stars i { font-style: normal; color: #d8d1c0; font-size: .95em; line-height: 1; }
.stars i.on { color: #d99a1e; }
.stars-num { font-size: .82rem; color: var(--ink-2); }
.person-rating { margin-left: auto; white-space: nowrap; font-size: .9rem; }

.star-input { border: 0; padding: 0; margin: 4px 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; color: #d8d1c0; cursor: pointer; padding: 0 2px; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #d99a1e; }
.star-input input:focus-visible + label { outline: 2px solid var(--green-2); border-radius: 4px; }

.school-hero { display: grid; grid-template-columns: 1fr 260px; gap: 24px; margin-bottom: 24px; align-items: start; }
.school-hero h1 { margin: 10px 0 6px; }
.school-stats { display: grid; gap: 10px; }
.stat-box { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; }
.stat-box b { display: block; font-size: 1.9rem; line-height: 1.1; font-family: "Noto Sans", var(--font); }
.stat-box span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .school-hero { grid-template-columns: 1fr; } }
.rating-dist { margin-bottom: 14px; display: grid; gap: 6px; }
.rd-row { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; font-size: .88rem; }
.rd-bar { height: 8px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.rd-fill { display: block; height: 100%; background: #d99a1e; border-radius: 6px; }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }
.review { margin-bottom: 12px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review p { margin-bottom: 6px; }

.ico-lock { width: 14px; height: 14px; vertical-align: -2px; }
.hidden-val { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .9rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 20px; padding: 1px 10px; }
.lock { color: var(--muted); }
.avatar-hidden { background: #8a959d; }
.avatar-hidden .ico-lock { width: 45%; height: 45%; }
.access-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.access-box p { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; }

.privacy-intro { display: flex; gap: 16px; margin-bottom: 18px; background: #f2f8f4; border-color: #c4dfcd; }
.pi-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.pi-ico svg { width: 20px; height: 20px; }
.privacy-intro p { margin-bottom: 6px; }
.vis-legend { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.vis-legend li { display: flex; gap: 8px; align-items: baseline; }
.vis-ico { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vis-public { background: #1f9d55; } .vis-members { background: #d99a1e; } .vis-private { background: #8a959d; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.label-row label { margin: 0; font-weight: 600; font-size: .93rem; }
.label-row-fs { margin: -2px 0 10px; }
.vis-select { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 2px 4px 2px 10px; font-size: .8rem; }
.vis-select select { border: 0; background: transparent; padding: 3px 4px; font-size: .8rem; width: auto; box-shadow: none; color: var(--ink-2); font-weight: 500; }
.privacy-summary { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 3px; }
.privacy-summary li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line-2); padding: 3px 0; }
.privacy-summary span { color: var(--muted); }
.privacy-summary b { font-weight: 500; text-align: right; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.req-list p { margin: 4px 0 0; }
.btn-row-sm { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.radio-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.search-page { max-width: 760px; margin-top: 16px; background: var(--surface); }
.search-tips { max-width: 760px; }
.footer-tri { display: flex; flex-direction: column; font-size: .82rem; color: #9fc0ab; margin-bottom: 10px; }
.form-page .card + .card { margin-top: 16px; }
.prayer-mini th { white-space: nowrap; letter-spacing: -.02em; }
body.lang-ja .prayer-mini th, body.lang-en .prayer-mini th { font-size: .66rem; }

/* ================= Interactive Japan map ================= */
.jmap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .jmap { grid-template-columns: 1fr; } }
.jmap-stage { background: linear-gradient(180deg, #eaf3f8 0%, #f4f9fb 100%); border: 1px solid #d6e5ee; border-radius: 14px; padding: 14px; position: relative; }
.jmap-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.jl-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 .8rem/1.2 var(--font); padding: 5px 10px; border-radius: 20px; border: 1px solid #cfdde6; background: rgba(255,255,255,.85); color: var(--ink-2); cursor: pointer; }
.jl-chip:hover { border-color: var(--green-2); }
.jl-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.jl-chip .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.jmap-svgwrap { position: relative; }
.jmap-svg { width: 100%; height: auto; display: block; max-height: 640px; }
.jmap-inset { fill: rgba(255,255,255,.55); stroke: #b9cfdc; stroke-width: 1.5; stroke-dasharray: 5 4; }
.jmap-inset-label { font: 600 15px var(--font); fill: #6b8798; }
path.jp { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; cursor: pointer; transition: fill .15s, opacity .15s, filter .15s; opacity: .62; outline: none; }
path.jp.has { opacity: 1; }
path.jp:hover, path.jp:focus-visible { filter: brightness(.9) saturate(1.25); opacity: 1; }
path.jp.is-sel { stroke: var(--red); stroke-width: 3; opacity: 1; filter: saturate(1.3); }
path.jp.dim, .jdot.dim { opacity: .15; }
.r-hokkaido { fill: #8fb8de; background: #8fb8de; } .r-tohoku { fill: #94cfa9; background: #94cfa9; }
.r-kanto { fill: #f2b37a; background: #f2b37a; } .r-chubu { fill: #c3aee0; background: #c3aee0; }
.r-kansai { fill: #f19fa6; background: #f19fa6; } .r-chugoku { fill: #e6cf6e; background: #e6cf6e; }
.r-shikoku { fill: #84cfc9; background: #84cfc9; } .r-kyushu { fill: #d7ae86; background: #d7ae86; }
.jdot { cursor: pointer; transition: opacity .15s; }
.jdot circle { fill: var(--red); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.jdot text { fill: #fff; font: 700 13px "Noto Sans", sans-serif; text-anchor: middle; pointer-events: none; }
.jdot:hover circle { fill: #a00d25; }
.jmap-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .82rem; padding: 5px 10px; border-radius: 6px; white-space: nowrap; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.jmap-hint { margin: 6px 4px 0; color: #5d7a8a; }
.jmap-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 90px; min-height: 300px; }
@media (max-width: 900px) { .jmap-panel { position: static; } }
.jp-title { font-size: 1.45rem; margin: 6px 0 2px; }
.jp-ja { font-family: var(--font-ja); color: var(--muted); margin: 0 0 12px; }
.jp-head { display: flex; justify-content: space-between; align-items: center; }
.jp-close { border: 0; background: var(--paper); width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.jp-region { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 20px; color: var(--ink); }
.jp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.jp-stats > div { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.jp-stats b { display: block; font: 700 1.55rem/1.1 "Noto Sans", var(--font); color: var(--green-deep); }
.jp-stats span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.jp-sub { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 14px 0 6px; font-family: var(--font); }
.jp-list, .jp-rank { list-style: none; margin: 0; padding: 0; }
.jp-list li, .jp-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.jp-list li span, .jp-rank li span { color: var(--muted); white-space: nowrap; font-size: .85rem; }
.jp-rank { counter-reset: jr; }
.jp-rank li::before { counter-increment: jr; content: counter(jr); width: 20px; color: var(--muted); font-weight: 600; font-size: .82rem; }
.jp-rank li .link-btn { flex: 1; text-align: left; text-decoration: none; font-weight: 500; }
.jp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.btn-light-red { background: var(--red-soft); color: #8a0c22; border-color: #f0c1c9; }
.jp-empty { margin-top: 10px; }
.pref-list-toggle { margin-top: 14px; }
.pref-list-toggle summary { cursor: pointer; color: var(--green); font-weight: 500; font-size: .92rem; padding: 6px 0; }
.pref-list-toggle .region-grid { margin-top: 10px; }

/* ================= v4: smart search, photos, places, sharing ================= */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.section-sm { margin-top: 22px; }
.detail-main > .card + .card, .detail-main > .gallery + .card, .detail-main > .card + .share-box { margin-top: 16px; }

/* What the search understood */
.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 0; color: var(--muted); }
.understood b { font-weight: 600; background: var(--green-soft); color: var(--green-deep); border-radius: 99px; padding: 2px 10px; font-size: .84rem; }

/* Search suggestions */
.has-suggest { position: relative; }
.hero-search.has-suggest, .hero-search .has-suggest { position: relative; }
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(22, 35, 44, .14); overflow: hidden; min-width: 260px; }
.suggest a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); line-height: 1.4; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--green-soft); }
.suggest .sg-type { grid-row: span 2; align-self: center; font-size: .7rem; font-weight: 600; color: var(--green-deep); background: var(--line-2); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.suggest b { font-weight: 600; font-size: .95rem; }
.suggest small { color: var(--muted); font-size: .8rem; }

/* Share box */
.share-box { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.share-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 12px; }
.share-title svg { width: 18px; height: 18px; color: var(--green); }
.share-title span { font-weight: 400; color: var(--muted); font-size: .85rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 .88rem/1.2 var(--font); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.sh-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.sh-native { background: var(--green); border-color: var(--green); color: #fff; }
.sh-native:hover { background: var(--green-2); color: #fff; }
.sh-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.sh-fb:hover { background: #0f63d1; color: #fff; }
.sh-ms { background: #0a7cff; border-color: #0a7cff; color: #fff; }
.sh-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.sh-wa:hover { background: #178a45; color: #fff; }
.sh-line { background: #06c755; border-color: #06c755; color: #fff; }
.sh-line:hover { background: #05a547; color: #fff; }
.share-post { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.share-post summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--green-deep); }
.share-text { width: 100%; margin: 10px 0 8px; font: .9rem/1.6 var(--font); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--paper); color: var(--ink); resize: vertical; }
.share-steps { margin: 10px 0 4px; padding-left: 20px; color: var(--ink-2); }
.share-toast { margin: 10px 0 0; background: var(--green-deep); color: #fff; border-radius: var(--radius-sm); padding: 8px 12px; font-size: .9rem; }
.share-side .sh-btn { padding: 7px 11px; font-size: .84rem; }
.share-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px 24px; align-items: start; }
.share-wide .share-title { grid-column: 1; margin: 6px 0 0; font-size: 1.1rem; }
.share-wide .share-btns { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.share-wide .share-post, .share-wide .share-toast { grid-column: 1 / -1; }
@media (max-width: 800px) { .share-wide { display: block; } .share-wide .share-btns { justify-content: flex-start; } .share-wide .share-title { margin-bottom: 12px; } }

/* Photo gallery + lightbox */
.gallery { display: grid; gap: 6px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.gallery .g-item { display: block; position: relative; background: var(--line-2); overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery .g-item:hover img { transform: scale(1.03); }
.g-1 { grid-template-columns: 1fr; }
.g-1 .g-item { aspect-ratio: 16 / 9; max-height: 440px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-2 .g-item { aspect-ratio: 4 / 3; }
.g-3, .g-4 { grid-template-columns: 2fr 1fr; grid-auto-rows: 160px; }
.g-3 .g-main, .g-4 .g-main { grid-row: span 2; }
.g-4 .g-main { grid-row: span 3; }
.g-4 { grid-auto-rows: 120px; }
.g-3 .g-item:nth-child(n+4), .g-4 .g-item:nth-child(n+5) { display: none; }
@media (max-width: 600px) { .g-3, .g-4 { grid-auto-rows: 100px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 18, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* Photos on cards */
.school-mini.has-photo { padding-top: 0; overflow: hidden; }
.school-mini .card-photo { display: block; width: calc(100% + 40px); margin: 0 -20px 6px; height: 140px; object-fit: cover; }
.mosque-card.has-photo { padding-top: 0; overflow: hidden; }
.mosque-photo { display: block; margin: 0 -20px 12px; height: 140px; }
.mosque-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Tourist places */
.tag-place { background: #fdeee0; color: #8a4b12; }
.place-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.place-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #cfe3d6, #f3e3c3); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-noimg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .5), transparent 60%); }
.place-cat { position: absolute; left: 10px; bottom: 10px; background: rgba(22, 35, 44, .78); color: #fff; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.place-body { padding: 14px 16px 16px; }
.place-body h3 { font-size: 1.05rem; margin: 0 0 2px; }
.place-body h3 a { color: var(--ink); text-decoration: none; }
.place-body h3 a:hover { color: var(--green); }
.place-body .ja-name { margin: 0; }
.place-body .muted { margin: 2px 0 8px; }
.season-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.season { font-size: .74rem; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: var(--line-2); color: var(--ink-2); }
.s-spring.season { background: #fde4ec; color: #9b2c55; }
.s-summer.season { background: #dff1f7; color: #17617a; }
.s-autumn.season { background: #fbe6d4; color: #93420f; }
.s-winter.season { background: #e7ecf7; color: #33467a; }
.s-all.season { background: var(--green-soft); color: var(--green-deep); }
.season.is-now { box-shadow: inset 0 0 0 1.5px currentColor; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.season-tabs a { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.season-tabs a b { font-size: .7rem; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.season-tabs a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.season-tabs a.s-spring:not(.is-on):hover { background: #fde4ec; }
.season-tabs a.s-summer:not(.is-on):hover { background: #dff1f7; }
.season-tabs a.s-autumn:not(.is-on):hover { background: #fbe6d4; }
.season-tabs a.s-winter:not(.is-on):hover { background: #e7ecf7; }
.season-now { margin: 0 0 14px; color: var(--ink-2); }
.best-time { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; }
.best-time .h-sm { margin-bottom: 8px; }
.best-time p { margin: 8px 0 0; }
.best-time .good { color: var(--green-deep); font-weight: 600; }
.thumb-links { list-style: none; margin: 0; padding: 0; }
.thumb-links a { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.thumb-links li:last-child a { border-bottom: 0; }
.thumb-links img, .tl-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--line-2); display: block; }
.thumb-links span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.thumb-links small { font-weight: 400; color: var(--muted); }

/* Photo upload */
.photo-field .hint { margin-top: 0; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.pp-item { display: flex; flex-direction: column; gap: 4px; width: 118px; font-size: .82rem; }
.pp-item img { width: 118px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.pp-item span { display: flex; align-items: center; gap: 5px; }
.pp-del img { opacity: .55; outline: 2px solid var(--red); }
.upload-box { display: flex; align-items: center; gap: 14px; border: 2px dashed #c9c0ad; border-radius: var(--radius); padding: 18px; background: var(--paper); cursor: pointer; color: var(--ink-2); }
.upload-box:hover, .photo-field .f-row:focus-within .upload-box { border-color: var(--green-2); background: var(--green-soft); }
.upload-box svg { width: 34px; height: 34px; color: var(--green); flex-shrink: 0; }
.upload-box span { display: flex; flex-direction: column; }
.upload-box small { color: var(--muted); }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-preview figure { margin: 0; width: 92px; height: 70px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview .f-err { width: 100%; }
.season-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sp-item { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 10px; cursor: pointer; background: var(--surface); font-size: .92rem; }
.sp-item input { accent-color: var(--green); width: 16px; height: 16px; }
.sp-item:has(input:checked) { border-color: var(--green-2); background: var(--green-soft); }
fieldset.has-err .season-pick .sp-item { border-color: #efb4be; }
.review-photos { margin-top: 16px; }
.photo-field .upload-box { display: flex; flex-direction: row; font-weight: 400; }
.g-2 .g-item { aspect-ratio: auto; height: clamp(170px, 26vw, 320px); }
.g-1 .g-item { max-height: 400px; }
.add-search { max-width: 720px; margin: 18px 0 20px; }
.add-found { margin-bottom: 22px; }
.add-found-h { margin: 14px 0 4px; color: var(--muted); text-transform: none; }
.add-found .mini-links li { align-items: center; }
.add-found .mini-links .btn { margin-left: auto; }
.add-step { margin: 8px 0 12px; }
.add-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border-left: 4px solid var(--green); }
.add-card b { font-size: 1.08rem; color: var(--green-deep); }
.add-card span { font-size: .9rem; color: var(--muted); }
.add-card:hover { border-color: var(--green-2); background: var(--green-soft); color: var(--ink); }
.quick-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 18px; }
.quick-add span { color: var(--muted); }
.quick-add a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); text-decoration: none; font-weight: 600; }
.quick-add a:hover { border-color: var(--green-2); background: var(--green-soft); }

/* ================= v5: logo, site reviews, seasons ================= */
.brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.brand-text .bm-b { color: #d21034; }
.brand-text .bm-h { color: var(--green); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 9px; background: #fbf8f1; }
/* Site reviews */
.testi-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testi-grid { grid-template-columns: 1fr; } }
.testi { display: flex; flex-direction: column; gap: 10px; position: relative; }
.testi::before { content: "“"; position: absolute; right: 16px; top: -6px; font: 700 64px/1 Georgia, serif; color: var(--green-soft); }
.testi-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-help { background: var(--gold-soft); color: #6b4c12; }
.testi blockquote { margin: 0; font-size: .97rem; color: var(--ink-2); flex: 1; }
.testi-by { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line-2); }
.testi-by span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.testi-by small { color: var(--muted); font-size: .8rem; }
.testi-summary { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ts-score { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ts-score b { font-size: 2.6rem; line-height: 1; }
.ts-score span { color: var(--muted); font-size: .88rem; }
.testi-summary .rating-dist { flex: 1; min-width: 240px; border: 0; box-shadow: none; padding: 0; margin: 0; }
.testi-avg { margin: -6px 0 14px; }
/* Season strip ("এখন জাপানে") */
.season-strip { position: relative; overflow: hidden; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.ss-spring { background: linear-gradient(120deg, #fde4ec 0%, #fff4f7 55%, #f5f9ef 100%); }
.ss-summer { background: linear-gradient(120deg, #d9f0f8 0%, #f2fbfd 55%, #fff6dc 100%); }
.ss-autumn { background: linear-gradient(120deg, #fbe1cc 0%, #fff4ea 55%, #f8efd9 100%); }
.ss-winter { background: linear-gradient(120deg, #e3ecf8 0%, #f5f9fe 55%, #eef3f2 100%); }
.season-strip::after { position: absolute; right: -10px; top: -18px; font-size: 150px; opacity: .10; pointer-events: none; line-height: 1; }
.ss-spring::after { content: "🌸"; } .ss-summer::after { content: "🎆"; } .ss-autumn::after { content: "🍁"; } .ss-winter::after { content: "❄"; }
.ss-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 12px; }
.ss-head h2 { margin: 0; font-size: 1.3rem; }
.ss-head h2 small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.ss-date { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .88rem; color: var(--ink-2); }
.ss-date span::before { content: "·"; margin-right: 10px; color: var(--muted); }
.ss-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; position: relative; z-index: 1; }
@media (max-width: 820px) { .ss-cols { grid-template-columns: 1fr; } }
.ss-col { background: rgba(255, 255, 255, .78); border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius); padding: 12px 14px; backdrop-filter: blur(2px); }
.ss-col h3 { font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; }
.ss-col ul { list-style: none; margin: 0; padding: 0; }
.ss-col li + li { border-top: 1px solid var(--line-2); }
.ss-col a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; text-decoration: none; color: var(--ink); }
.ss-col a:hover b { color: var(--green); }
.ss-col a > span:last-child { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ss-col b { font-size: .95rem; font-weight: 700; }
.ss-col small { color: var(--ink-2); font-size: .82rem; }
.ss-ic { font-size: 1.4rem; line-height: 1.2; flex-shrink: 0; width: 1.6em; text-align: center; }
.ss-days { flex-shrink: 0; width: 46px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 0; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.ss-days b { display: block; font-size: 1.05rem; color: var(--ink); }
.ssk-islam b, .ssk-islam .ss-days b { color: #0a6b45; }
.ssk-sakura b { color: #b8295f; }
.ssk-koyo b { color: #b4461b; }
.ssk-event b { color: #6b3fa0; }
.ss-more { margin: 12px 0 0; position: relative; z-index: 1; }
.ss-more .btn-light { border: 1px solid var(--line); }

/* Season page */
.season-head { border-bottom: 1px solid var(--line); }
.season-head .ss-date { margin: 4px 0 10px; }
.season-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.season-jump a { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; text-decoration: none; font-weight: 600; }
.sn-card { display: flex; flex-direction: column; gap: 4px; }
.sn-card h3 { font-size: 1.05rem; margin: 0; }
.sn-ic { font-size: 2rem; margin: 0; line-height: 1.1; }
.sn-links { display: flex; gap: 14px; margin-top: auto; }
.timeline { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li { display: grid; grid-template-columns: 96px 34px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); align-items: start; }
.timeline li:last-child { border-bottom: 0; }
.tl-when { display: flex; flex-direction: column; line-height: 1.3; }
.tl-when small { color: var(--muted); font-size: .78rem; }
.tl-dot { font-size: 1.3rem; text-align: center; }
.tl-body { display: flex; flex-direction: column; line-height: 1.45; }
.tl-body small { color: var(--ink-2); font-size: .86rem; }
.tl-body a { color: inherit; }
.season-map-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .season-map-grid { grid-template-columns: 1fr; } }
.smap { width: 100%; height: auto; display: block; }
.smap path { stroke: #fff; stroke-width: 1.2; }
.smap-inset { fill: #f7f9fb; stroke: #c9d2da; stroke-dasharray: 4 4; }
.smap-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.smap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.smap-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sk-later { fill: #f1e9e1; background: #f1e9e1; } .sk-soon { fill: #fbd3df; background: #fbd3df; } .sk-bloom { fill: #f59ab5; background: #f59ab5; }
.sk-full { fill: #e2457a; background: #e2457a; } .sk-falling { fill: #c9a6b4; background: #c9a6b4; }
.sk-w0 { fill: #a63c78; background: #a63c78; } .sk-w1 { fill: #e2457a; background: #e2457a; } .sk-w2 { fill: #ee6f95; background: #ee6f95; }
.sk-w3 { fill: #f59ab5; background: #f59ab5; } .sk-w4 { fill: #f8bccd; background: #f8bccd; } .sk-w5 { fill: #fbd8e2; background: #fbd8e2; } .sk-w6 { fill: #fdebf0; background: #fdebf0; }
.kk-later { fill: #efe9dd; background: #efe9dd; } .kk-soon { fill: #f6c27e; background: #f6c27e; } .kk-now { fill: #d4521d; background: #d4521d; } .kk-none { fill: #e3e3e3; background: #e3e3e3; }
.kk-w1 { fill: #a83a16; background: #a83a16; } .kk-w2 { fill: #d4521d; background: #d4521d; } .kk-w3 { fill: #ea8a3d; background: #ea8a3d; }
.kk-w4 { fill: #f2ae63; background: #f2ae63; } .kk-w5 { fill: #f7d29a; background: #f7d29a; }
.sk-list { max-height: 640px; overflow: auto; }
.h-xs { font-size: .82rem; color: var(--muted); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.sk-rows { list-style: none; margin: 0; padding: 0; }
.sk-rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.chip-st { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; color: #fff; }
.chip-st.sk-soon, .chip-st.kk-soon { color: #6b3a1a; }
.chip-st.sk-soon { color: #8a2a4c; }
.ev-card h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.ev-date { margin: 0; color: #6b3fa0; }
.hol-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hol-list li { display: grid; grid-template-columns: 120px 52px 1fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.hol-list li:last-child { border-bottom: 0; }
.hol-list li.is-today { background: var(--green-soft); }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .year-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .year-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .year-grid { grid-template-columns: 1fr; } }
.ym { padding: 14px; }
.ym h3 { font-size: 1rem; margin: 0 0 6px; }
.ym ul { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.ym li { padding: 3px 0; }
.ym.is-now { border-color: var(--green-2); box-shadow: 0 0 0 2px rgba(15, 122, 78, .18); }
.season-src { margin-top: 18px; }

/* ---------- v5.2 Questions & answers ---------- */
.qa { margin-top: 18px; }
.qa-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.qa-n { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 0 9px; font-size: .8rem; }
.qa-intro { margin: 0 0 12px; }
.qa-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: #fff; resize: vertical; min-height: 64px; }
.qa-form textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(15, 122, 78, .15); }
.qa-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.qa-form-foot .btn { flex: none; }
.qa-login { margin: 4px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qa-empty { margin: 14px 0 0; }
.qa-item { border-top: 1px solid var(--line-2); padding: 16px 0 6px; margin-top: 14px; scroll-margin-top: 90px; }
.qa-item:target, .qa-r:target { background: var(--amber-soft); border-radius: var(--radius-sm); }
.qa-meta { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.qa-who { min-width: 0; }
.qa-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; }
.qa-r .qa-av { width: 24px; height: 24px; font-size: .72rem; background: var(--gold); }
.qa-body { margin: 6px 0 4px 39px; white-space: normal; overflow-wrap: anywhere; }
.qa-r .qa-body { margin-left: 33px; }
.qa-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 0 7px; border-radius: 999px; vertical-align: 1px; margin-left: 4px; }
.qa-b-admin { background: var(--red-soft); color: var(--red); }
.qa-b-owner { background: var(--green-soft); color: var(--green); }
.qa-b-here { background: var(--gold-soft); color: var(--gold); }
.qa-tools { display: flex; gap: 14px; margin: 0 0 4px 39px; }
.qa-r .qa-tools { margin-left: 33px; }
.qa-tools form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--red); }
.qa-replies { margin: 6px 0 0 39px; padding-left: 14px; border-left: 3px solid var(--line-2); }
.qa-r { padding: 8px 0 2px; }
.qa-wait { color: var(--gold); margin: 4px 0; }
.qa-reply { margin: 6px 0 4px; }
.qa-reply summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .9rem; list-style: none; display: inline-block; }
.qa-reply summary::-webkit-details-marker { display: none; }
.qa-reply[open] summary { margin-bottom: 8px; }
.qa-more > summary { cursor: pointer; color: var(--green); font-weight: 600; margin-top: 16px; }
.qa-open-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.qa-open-card:hover { border-color: var(--green-2); color: var(--ink); }
.qa-open-cta { color: var(--green); font-weight: 600; }
@media (max-width: 600px) {
  .qa-body, .qa-tools { margin-left: 0; }
  .qa-r .qa-body, .qa-r .qa-tools { margin-left: 0; }
  .qa-replies { margin-left: 6px; padding-left: 10px; }
  .qa-form-foot { flex-direction: column; align-items: stretch; }
}

/* ---------- v5.3 Clean, simple layout ---------- */
/* Home: six category tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 26px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tile-ic { font-size: 1.7rem; line-height: 1.2; margin-bottom: 4px; }
.tile b { font-size: .98rem; line-height: 1.3; }
.tile small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .tiles { gap: 8px; margin-top: 18px; }
  .tile { padding: 12px 4px 10px; }
  .tile small { display: none; }
  .tile b { font-size: .88rem; }
}
/* Fewer cards on phones: the full list is one tap away ("সব …") */
@media (max-width: 600px) {
  .m-2 > :nth-child(n+3), .m-3 > :nth-child(n+4) { display: none; }
}
/* Calmer spacing between home sections */
.section { margin-top: 44px; }
@media (max-width: 600px) { .section { margin-top: 32px; } }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 1.3rem; }
@media (max-width: 600px) { .section-head h2 { font-size: 1.12rem; } }
/* Helpers + reviews side by side */
.featured-line { background: var(--gold-soft); border: 1px solid #ead7a8; border-radius: var(--radius-sm); padding: 8px 12px; margin: 0 0 10px; font-size: .92rem; }
.testi-stack { display: grid; gap: 12px; }
/* "How it works" — one slim row */
.steps-slim { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
.steps-slim li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; }
.steps-slim b { flex: none; width: 30px; height: 30px; font-size: .95rem; margin: 0; }
.steps-slim span { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.steps-slim strong { display: block; color: var(--ink); font-size: .95rem; }
@media (max-width: 900px) { .steps-slim { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-slim { grid-template-columns: 1fr; } .steps-slim li { padding: 10px 12px; } }
/* Season strip: lighter, smaller */
.season-strip { padding: 16px 0 12px; border-top: 1px solid var(--line); }
.season-strip::after { font-size: 110px; opacity: .08; }
.ss-head { margin-bottom: 8px; }
.ss-head h2 { font-size: 1.12rem; }
.ss-col { padding: 8px 12px; }
.ss-col a { padding: 6px 2px; }
.ss-ic { font-size: 1.2rem; }
.ss-more { margin: 8px 0 0; font-size: .9rem; font-weight: 600; }
@media (max-width: 600px) {
  .ss-date span { display: none; }
  .ss-col small { display: none; }
  .ss-col li:nth-child(n+3) { display: none; }
  .ss-col h3 { margin-bottom: 2px; }
}
/* Hero: the flag dot overlapped the stats card on phones */
@media (max-width: 600px) { .hero-panel::after { display: none; } }
/* Q&A: quieter tools */
.qa-tools .linkish { font-size: .74rem; opacity: .75; }
.qa-tools .linkish:hover { opacity: 1; }
/* Hero on phones: tidy search box, compact stats */
@media (max-width: 600px) {
  .hero-grid { gap: 20px; padding-top: 26px; padding-bottom: 30px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
  .lead { font-size: .98rem; }
  .hero-search { display: grid; grid-template-columns: auto 1fr; gap: 0; padding: 6px; margin-top: 18px; }
  .hs-ico { grid-column: 1; grid-row: 1; margin: 0 2px 0 8px; }
  .hero-search input { grid-column: 2; grid-row: 1; padding: 10px 8px; }
  .hero-search select { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 10px; }
  .hero-search .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
  .hero-panel { grid-template-columns: repeat(4, 1fr); gap: 12px 8px; padding: 16px 14px; border-radius: 12px; }
  .hero-panel .stat b { font-size: 1.4rem; }
  .hero-panel .stat span { display: block; font-size: .7rem; line-height: 1.3; }
  .hero-privacy { grid-column: 1 / -1; font-size: .78rem; margin: 0; }
}
.tiles + .season-strip, .tiles ~ .season-strip { margin-top: 30px; }

/* ---------- v5.4 Halal food ---------- */
.tiles { grid-template-columns: repeat(8, 1fr); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 6px; } .tile { padding: 10px 2px 8px; } .tile-ic { font-size: 1.45rem; } .tile b { font-size: .78rem; } }
.halal-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.halal-photo img { display: block; width: 100%; height: 160px; object-fit: cover; }
.halal-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.halal-body h3 { margin: 4px 0 0; font-size: 1.05rem; }
.halal-body h3 a { color: var(--ink); text-decoration: none; }
.halal-body h3 a:hover { color: var(--green); }
.halal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hk, .ho { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.hk-shop { background: #e6f1fb; color: #1d5fa8; }
.hk-restaurant { background: #fdeee2; color: #a8541d; }
.hk-both { background: var(--green-soft); color: var(--green); }
.ho { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.halal-spec { color: var(--ink-2); margin: 4px 0 0; }
.halal-foot { display: flex; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: 8px; border-top: 1px solid var(--line-2); }
.pk-yes { color: var(--green); font-weight: 600; }
.pk-no { color: var(--red); }
.verified-owner { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; vertical-align: 2px; }
.verified-owner-lg { font-size: .76rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; }
.halal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.halal-facts > div { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.halal-facts span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.halal-facts b { font-size: .98rem; }
.halal-facts small { font-size: .82rem; color: var(--ink-2); }
.halal-facts .pk-yes { border-color: #bfe0cc; background: var(--green-soft); }
.halal-facts .pk-no { border-color: #f1c6cf; background: var(--red-soft); color: var(--ink); }
@media (max-width: 600px) { .halal-facts { grid-template-columns: 1fr; } }
.halal-services { display: flex; flex-wrap: wrap; gap: 6px; }
.halal-services span { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: #7a5a17; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface); height: 100%; box-sizing: border-box; }
.choice small { color: var(--muted); font-size: .8rem; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15, 122, 78, .25); }
@media (max-width: 600px) { .choice-cards { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; margin-top: 6px; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.f-label { display: block; font-weight: 600; margin-bottom: 4px; }
.copy-row { display: flex; gap: 6px; margin: 8px 0; }
.copy-src { flex: 1; min-width: 0; font-size: .8rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.small-gap { gap: 6px; }
.narrow { max-width: 620px; }
.claim-card h1 { margin: 6px 0 2px; }
.claim-steps { padding-left: 20px; }
.claim-steps li { margin: 4px 0; }

/* ---------- v5.5 Sayonara sale ---------- */
.ls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .ls-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .ls-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.ls-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ls-card:hover { border-color: var(--green-2); transform: translateY(-2px); color: var(--ink); }
.ls-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper); }
.ls-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-noimg { display: grid; place-items: center; height: 100%; font-size: 2.6rem; opacity: .55; }
.ls-kind { position: absolute; left: 8px; top: 8px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.ls-kind.is-inline { position: static; display: inline-block; }
.ls-k-free { background: #fdeef1; color: var(--red); }
.ls-k-sell { background: #e6f1fb; color: #1d5fa8; }
.ls-k-room { background: var(--green-soft); color: var(--green); }
.ls-k-seek { background: var(--gold-soft); color: #7a5a17; }
.ls-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.ls-title { font-size: .98rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ls-price { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ls-price.is-free { color: var(--red); }
.ls-price-lg { font-size: 1.5rem; margin: 0 0 8px; }
.ls-meta { font-size: .76rem; color: var(--muted); }
@media (max-width: 700px) { .ls-body { padding: 8px 10px 10px; } .ls-title { font-size: .9rem; } .ls-price { font-size: .95rem; } }
.ls-detail h1 { margin: 8px 0 4px; }
.ls-note { font-size: 1.02rem; background: var(--paper); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 12px; }
.ls-howto { background: var(--green-soft); color: var(--green); border-radius: var(--radius-sm); padding: 8px 12px; }
.ls-owner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ls-owner form { margin: 0; }
.ls-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-mini .ls-title { font-size: .82rem; }
.ls-mini .ls-meta { display: none; }
.choice-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .choice-4 { grid-template-columns: 1fr 1fr; } .choice-4 .choice small { display: none; } }
.ls-more { margin: 4px 0 12px; }
.ls-more summary { cursor: pointer; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.char-count { display: block; text-align: right; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.char-count.is-near { color: var(--red); }
