:root {
  --teal: #0E2F56; --teal-2: #164170; --teal-3: #157FA6; --teal-soft: #E4F1F7;
  --sand: #F4F7FA; --sand-2: #E6EDF3; --paper: #FFFFFF; --ink: #0E2236; --muted: #586A7C; --line: #D6E0EA;
  --copper: #1A8DB5; --copper-soft: #DDF0F7; --green: #2F7D57; --green-soft: #E2F1E8; --red: #B04434; --red-soft: #F8E2DE;
  --r: 14px; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Montserrat', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.6; }
a { color: var(--teal-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* header */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo-mark { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; color: #fff; padding-bottom: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 15px; }
.logo-text span { font-size: 11.5px; opacity: .75; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav a { color: #DCEBEB; padding: 8px 11px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 9px; padding: 6px 11px; cursor: pointer; font-size: 14px; font-weight: 600; }
.menu-btn { display: none; background: transparent; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.drawer { display: none; }
@media (max-width: 99999px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .top-actions { margin-inline-start: auto; }
  .drawer.open { display: flex; flex-direction: column; background: var(--teal-2); padding: 8px 18px 16px; }
  .drawer a { color: #fff; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; }
  .drawer-acct { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); }
  .drawer-acct .btn { margin-top: 4px; background: #fff; color: var(--teal-2); border-color: #fff; font-weight: 700; }
  .top-actions .btn:not(.keep) { display: none; }
}

/* buttons, forms */
.btn { appearance: none; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); border-radius: 11px; padding: 10px 18px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none !important; min-height: 44px; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; border-radius: 9px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label.f .hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.t { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; width: 100%; font-size: 16px; }
.t:focus { outline: none; border-color: var(--teal-3); }
textarea.t { min-height: 110px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.banner { border-radius: 11px; padding: 11px 14px; font-size: 15px; }
.banner.green { background: var(--green-soft); color: #1F5A3E; }
.banner.red { background: var(--red-soft); color: #7D2A1E; }
.banner.copper { background: var(--copper-soft); color: #6E4A17; }
.banner.teal { background: var(--teal-soft); color: var(--teal); }

/* layout pieces */
main { min-height: 70vh; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-head { background: var(--teal); color: #fff; padding: 34px 0 30px; }
.page-head h1 { font-size: 32px; }
.page-head p { color: #C9DCEE; margin-top: 6px; max-width: 640px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1E5A92 0%, transparent 60%), var(--teal); color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 30px; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: 44px; line-height: 1.2; }
.hero .mark { font-family: var(--display); font-size: 92px; line-height: .9; color: #fff; }
.hero p.lead { font-size: 18.5px; color: #D6E7E7; margin-top: 12px; max-width: 560px; }
.hero .row { margin-top: 22px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(4px); }
.hero-card .eyebrow { color: #8FD3EE; }
.hero-card h3 { font-size: 21px; }
.datebox { display: inline-flex; align-items: baseline; gap: 6px; background: var(--copper); color: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 700; align-self: flex-start; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: -26px; position: relative; z-index: 2; }
.stats-band div { background: var(--paper); padding: 16px; text-align: center; }
.stats-band b { display: block; font-size: 26px; color: var(--teal); }
.stats-band span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 34px; } .hero .mark { font-size: 70px; } }

/* content cards */
.ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(1,58,65,.09); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-3) 100%); position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 22px; }
.thumb .series { position: absolute; inset-inline-start: 12px; bottom: 10px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.35); padding: 2px 9px; border-radius: 6px; }
.thumb .word { font-family: var(--display); font-size: 40px; opacity: .25; }
.ccard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ccard h3 { font-size: 17px; line-height: 1.45; }
.ccard .meta { font-size: 13.5px; color: var(--muted); margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.book-cover { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--teal) 0%, #04525A 60%, var(--teal-3) 100%); color: #fff; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.book-cover::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 10px; width: 2px; background: rgba(255,255,255,.18); }
.book-cover h3 { font-family: var(--display); font-size: 22px; line-height: 1.35; }
.book-cover .by { font-size: 13px; color: #C9DCEE; }
.book-cover .mk { font-family: var(--display); font-size: 26px; opacity: .6; align-self: flex-end; }
.list-row { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none !important; color: var(--ink); }
.list-row:hover { border-color: var(--teal-3); }
.list-row .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 20px; flex: none; }
.list-row h3 { font-size: 17.5px; }

/* item page */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.video { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--teal-soft); color: var(--teal); padding: 3px 10px; border-radius: 999px; }
.tag.copper { background: var(--copper-soft); color: #7A5320; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.gray { background: #ECECEC; color: #555; }
.tag.red { background: #FBE4E4; color: var(--red); }

/* discussion */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.av.staff { background: var(--copper); }
.bubble { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; flex: 1; }
.bubble .who { font-size: 13px; font-weight: 700; color: var(--teal-2); display: flex; gap: 8px; flex-wrap: wrap; }
.bubble .who span { font-weight: 400; color: var(--muted); }
.msg.hiddenmsg { opacity: .5; }

/* footer */
footer { background: var(--teal); color: #C9DCEE; margin-top: 40px; padding: 30px 0; font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer a { color: #fff; }
footer h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 0; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi b { font-size: 26px; color: var(--teal); display: block; }
.kpi span { font-size: 13px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.data th { background: var(--sand-2); font-size: 13px; }
.toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 15px; }
[dir="rtl"] .toast { transform: translateX(50%); }
@media (max-width: 600px) {
  .logo-text span { display: none; }
  .logo-text b { font-size: 14px; }
  .logo-mark { font-size: 28px; }
  .top .wrap { gap: 8px; }
  .top-actions .btn.small { padding: 5px 9px; font-size: 13px; }
  .lang-btn { padding: 5px 8px; font-size: 13px; }
}


/* Maan-Koris */
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
.logo-img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.logo-text b { font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.soft { color: #C9DCEE; }
.hero-mark { width: 190px; max-width: 60%; margin-bottom: 14px; }
.hero-tag { font-style: italic; color: #8FD3EE; font-size: 17px; margin-bottom: 14px; }
.mk-mark { width: 46%; max-width: 120px; opacity: .9; }
.thumb { background: var(--teal-soft); display: grid; place-items: center; }
.thumb .mk-mark { opacity: .5; }
.book-cover .mk-mark { width: 54px; align-self: flex-end; filter: brightness(0) invert(1); opacity: .6; }
.btn.copper { color: #fff; }
.proverb { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.proverb blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--teal); }
.proverb figcaption { color: var(--muted); font-style: italic; }
.shaykh-band { background: var(--teal); color: #fff; }
.shaykh-band h2 { font-size: 24px; }
.shaykh-band .list-row, .shaykh-band .ccard { background: rgba(255,255,255,.96); color: var(--ink); }
.shaykh-row { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shaykh-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid rgba(255,255,255,.25); }
.shaykh-head .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.shaykh-head .shaykh-photo { border-radius: 50%; }
@media (max-width: 760px) { .shaykh-row { grid-template-columns: 1fr; } .shaykh-row .shaykh-photo { max-width: 220px; } .shaykh-head .wrap { grid-template-columns: 84px 1fr; } }
@media (max-width: 600px) { .proverb blockquote { font-size: 20px; } .hero-mark { width: 150px; } }
.shaykh-name { font-weight: 700; color: #8FD3EE !important; font-size: 17px; }
.msg.child { margin-inline-start: 38px; }
.pk { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); margin-bottom: 4px; }
.pk-question { background: #FFF4D6; color: #7A5A00; } .pk-counter { background: #FBE4E1; color: #8A2E22; } .pk-connect { background: #E3F2E8; color: #1F6B3F; }
.linkchip { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 600; background: var(--teal-soft); padding: 4px 10px; border-radius: 10px; }
.replylink { font-size: 13px; display: inline-block; margin-top: 6px; }
.composer { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.btn.zoom { background: #2D8CFF; color: #fff; border-color: #2D8CFF; font-weight: 700; }
.av.big { overflow: hidden; width: 44px; height: 44px; font-size: 16px; }
.member-card { gap: 10px; }
.invite { background: var(--teal-soft); border-color: transparent; }
select.t { appearance: auto; }
.vfile { width: 100%; border-radius: 14px; background: #000; max-height: 70vh; }

/* header illustration */
.hero-art { aspect-ratio: 2 / 1; max-height: 520px; width: 100%; background: var(--teal) url('../header.jpg') center 35% / cover no-repeat; position: relative; }
.hero-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--teal)); }
.hero-art + .hero { padding-top: 18px; }
.hero-art + .hero .hero-mark { width: 120px; }
@media (min-width: 900px) { .hero-art { aspect-ratio: auto; height: 460px; } }

.art-quote { position: absolute; z-index: 1; left: 0; right: 0; top: 0; margin: 0 auto; max-width: 1120px; padding: 22px 18px 0; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(20px, 5.4vw, 46px); line-height: 1.2; color: #fff; text-shadow: 0 2px 14px rgba(8, 22, 44, .75), 0 1px 3px rgba(8, 22, 44, .6); max-inline-size: 1120px; }
.art-quote { width: min(100%, 1120px); }
@media (min-width: 900px) { .art-quote { padding-top: 48px; padding-right: 45%; } }
@media (max-width: 899px) { .art-quote { padding-right: 38%; } }

/* membership */
.pay-card { gap: 14px; }
.price b { font-family: var(--display); font-size: 46px; color: var(--teal); }
.price span { color: var(--muted); font-size: 18px; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16.5px; }
.btn.big { font-size: 18px; padding: 15px 20px; }
/* calendar */
.cal { gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-head h2 { font-size: 20px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 0 0; gap: 3px; font: inherit; cursor: pointer; color: var(--ink); }
.cal-day span { font-size: 14px; font-weight: 600; }
.cal-day i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); display: inline-block; }
.cal-day i.on { background: #2D8CFF; }
.cal-day.has { background: var(--teal-soft); border-color: var(--teal-3); }
.cal-day.today { outline: 2px solid var(--teal); }
.cal-day.sel { background: var(--teal); color: #fff; }
.top .logo-text span { display: none; }

/* member profiles */
.pf-cover { height: 190px; background: linear-gradient(135deg, var(--teal-2), #2A6F8F) center/cover no-repeat; }
.pf-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -54px; flex-wrap: wrap; }
.pf-av { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--paper); background: var(--sand-2); overflow: hidden; display: grid; place-items: center; font-size: 36px; font-weight: 700; color: var(--teal-2); flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.pf-av img, .pf-edit-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-edit-cover { position: relative; height: 140px; border-radius: var(--r); background: linear-gradient(135deg, var(--teal-2), #2A6F8F) center/cover no-repeat; margin-bottom: 44px; }
.pf-upbtn { position: absolute; right: 10px; top: 10px; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink); }
.pf-edit-av { position: absolute; left: 16px; bottom: -40px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--paper); background: var(--sand-2); overflow: hidden; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: var(--teal-2); cursor: pointer; }
.pf-edit-av i { position: absolute; right: 2px; bottom: 2px; font-style: normal; background: var(--paper); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.pf-edit-av span { pointer-events: none; }
@media (max-width: 600px) { .pf-cover { height: 140px; } .pf-av { width: 96px; height: 96px; } }

/* private messages */
.dm-btn { position: relative; font-size: 22px; text-decoration: none !important; padding: 2px 6px; line-height: 1; }
.dm-btn b { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.dm-list { display: flex; flex-direction: column; gap: 8px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 300px; max-height: 60vh; overflow-y: auto; }
.dm { align-self: flex-start; max-width: 80%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; white-space: pre-wrap; word-wrap: break-word; }
.dm.me { align-self: flex-end; background: var(--teal); color: #fff; border-color: var(--teal); border-radius: 14px 14px 4px 14px; }
.dm span { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.dm-compose { display: flex; gap: 8px; align-items: flex-end; }
.dm-compose .t { flex: 1; }
.pf-upbtn { color: var(--ink) !important; background: rgba(255,255,255,.95) !important; border-color: #fff !important; }

/* front page: flyer, book of the month, next meeting */
.month-block { padding: 16px 0 22px; background: var(--sand); }
.month-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.month-grid > :only-child { grid-column: 1 / -1; }
.flyer { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none !important; box-shadow: 0 6px 22px rgba(14,34,54,.10); }
.flyer img { display: block; width: 100%; height: auto; }
.flyer span { display: block; padding: 8px 12px; font-size: 13px; color: var(--muted); text-align: center; }
.meet-note { background: linear-gradient(135deg, var(--teal-2), #1D5A78); color: #fff; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.meet-note .eyebrow { color: #FFD9A8; }
.meet-note h2 { margin: 0; color: #fff; font-size: 24px; }
.meet-note p { margin: 0; line-height: 1.55; }
.meet-note .datebox { align-self: flex-start; background: rgba(255,255,255,.15); color: #fff; }
.botm { background: var(--paper); border: 2px solid var(--copper); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.botm h3 { margin: 0; font-size: 22px; }
@media (max-width: 760px) { .month-grid { grid-template-columns: 1fr; } }

/* always-visible sign in / sign out */
.btn.inout { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px 12px; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; }
.drawer-top .btn { background: #fff; color: var(--teal-2); border-color: #fff; }
@media (max-width: 1200px) { .top-actions .btn.small { padding: 5px 9px; font-size: 13px; } .top-actions { gap: 6px; } }
.top-actions .btn, .lang-btn { white-space: nowrap; }
.logo-text b { white-space: nowrap; }
@media (max-width: 430px) { .logo-text { display: none; } }
@media (min-width: 901px) { .drawer.open { max-width: 420px; margin-inline-start: auto; margin-inline-end: 0; border-radius: 0 0 0 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); position: absolute; left: 0; right: auto; z-index: 50; } }

/* My Corner */
.me-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--teal-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; text-decoration: none !important; border: 2px solid rgba(255,255,255,.7); flex: none; }
.me-btn img { width: 100%; height: 100%; object-fit: cover; }
.corner-link { font-weight: 700 !important; }
.pill { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; margin-inline-start: 4px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; overflow: hidden; }
.corner-head { background: linear-gradient(135deg, var(--teal-2), #1D5A78); color: #fff; padding: 26px 0 20px; }
.corner-head h1 { color: #fff; font-size: 26px; }
.corner-head .eyebrow { color: #FFD9A8; }
.corner-head .av.xl { border: 3px solid #fff; }
.corner-actions { margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.corner-actions .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.corner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.corner-grid .wide { grid-column: 1 / -1; }
.mini-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.mini-row .grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datechip { width: 46px; flex: none; text-align: center; background: var(--copper-soft); color: #7A5320; border-radius: 10px; padding: 4px 0; font-size: 11px; text-transform: uppercase; display: flex; flex-direction: column; line-height: 1.1; }
.datechip b { font-size: 18px; }
.newbies { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.newbie { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: inherit; text-decoration: none !important; }
.shelf { display: flex; flex-direction: column; }
.shelf-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.shelf-item .grow { flex: 1; min-width: 0; }
.shelf-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--sand-2); display: grid; place-items: center; flex: none; }
@media (max-width: 760px) { .corner-grid { grid-template-columns: 1fr; } }

/* community of readers */
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--sand-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.badge.gold { background: #FFF2D6; border-color: #E8C27A; color: #7A5320; }
.goal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.goal.done { border-color: #E8C27A; background: #FFFAEE; }
.goal-bar { height: 12px; border-radius: 999px; background: var(--sand-2); overflow: hidden; margin-top: 8px; }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--copper)); border-radius: 999px; }
.reader-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.reader-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; }
.reader-stats b { font-size: 20px; color: var(--teal-2); }
.reader-stats span { font-size: 12px; color: var(--muted); }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.post-body { display: flex; gap: 14px; align-items: flex-start; }
.post-img { width: 110px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.post-sum { white-space: pre-wrap; margin: 4px 0 0; line-height: 1.55; }
.post-sum.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: #E8A951; font-size: 18px; letter-spacing: 2px; }
.react { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; cursor: pointer; }
.react.on { background: #FDECEC; border-color: #F3B4B4; }
.post-cms { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cm { font-size: 14.5px; line-height: 1.45; }
.linkbtn { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; font-size: 14px; }
.rate button { background: none; border: 0; font-size: 34px; color: #E8A951; cursor: pointer; padding: 0 2px; }
.celebrate { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #FFF6E0, #FFFDF7); border: 1px solid #E8C27A; border-radius: var(--r); padding: 14px; color: inherit; text-decoration: none !important; }
.celebrate .trophy { margin-inline-start: auto; font-size: 32px; }
.banner.gold { background: #FFF2D6; border: 1px solid #E8C27A; color: #5E3F12; text-decoration: none !important; display: block; }
.btn.big { padding: 14px 18px; font-size: 17px; }
.confetti { position: fixed; inset: 0; z-index: 200; background: rgba(14,34,54,.45); display: grid; place-items: center; overflow: hidden; }
.confetti-box { background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center; max-width: 320px; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-size: 18px; position: relative; z-index: 2; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (max-width: 520px) { .post-img { width: 84px; } .reader-stats b { font-size: 17px; } }
.pf-head { align-items: flex-start; }
.pf-head > .stack { margin-top: 62px; }
@media (max-width: 600px) { .pf-head > .stack { margin-top: 0; } .pf-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* separate Join and Sign in */
.switch-box { display: flex; align-items: center; gap: 10px; background: var(--sand); border: 1.5px dashed var(--teal); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none !important; font-size: 15px; }
.switch-box span { flex: 1; }
.welcome-strip { padding: 14px 0 0; }
.welcome-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: 0 4px 14px rgba(14,34,54,.06); }
@media (max-width: 600px) { .welcome-box .row { width: 100%; } .welcome-box .btn { flex: 1; justify-content: center; text-align: center; } }

/* join invitation under the banner: one group photo + text */
.join-invite { padding: 22px 0 6px; }
.ji-card { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 26px rgba(14,34,54,.08); }
.ji-photo { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center; display: block; }
.ji-body { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ji-body h2 { margin: 0; font-size: 30px; color: var(--navy); }
.ji-body .btn.big { font-size: 18px; padding: 14px 22px; }
.ji-lead { margin: 0; color: #3E4C5C; font-size: 17px; line-height: 1.5; }
.ji-signin { font-size: 15px; font-weight: 700; color: var(--teal); }
@media (max-width: 760px) {
  .ji-card { grid-template-columns: 1fr; }
  .ji-photo { min-height: 0; height: auto; aspect-ratio: 16/9; }
  .ji-body { padding: 20px 18px 22px; }
  .ji-body h2 { font-size: 24px; }
  .ji-body .btn.big { width: 100%; justify-content: center; }
}
.drawer-admin { display:block; margin: 4px 0 8px; padding: 12px 14px !important; background: var(--copper, #E8A951); color: #10304F !important; border-radius: 10px; font-weight: 800; text-align: center; }
