/* ==========================================================================
   Community Association Website - public design
   Colours come from Admin > Settings > Appearance (injected as --primary and
   --accent in the page head). Everything else derives from those two.
   ========================================================================== */

:root {
  --primary: #0f6b5c;
  --accent: #f2a541;
  --primary-ink: color-mix(in srgb, var(--primary) 70%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-tint: color-mix(in srgb, var(--primary) 18%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 45%, #2a1a00);
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #18211f;
  --ink-2: #3c4845;
  --muted: #6b7774;
  --line: #e7e3da;
  --line-2: #f0ede6;
  --danger: #b42318;
  --success: #0d7a4f;
  --warning: #a15c07;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 33, 31, .04), 0 8px 24px rgba(24, 33, 31, .06);
  --shadow-lg: 0 2px 4px rgba(24, 33, 31, .04), 0 20px 48px rgba(24, 33, 31, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; border-radius: 5px;}
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 650; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-accent { background: var(--accent); border: 2px solid #050505; color: #241600; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #170e00; }
.btn-outline { border-color: currentColor; color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f2f2; color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; text-decoration: none; }
.link-arrow .icon { transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.announce { background: var(--ink); color: #fff; font-size: .9rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; text-align: center; }
.announce a { color: #fff; font-weight: 650; }
.announce--success { background: var(--success); }
.announce--warning { background: var(--accent); color: #241600; } .announce--warning a { color: #241600; }
.announce--urgent { background: var(--danger); }
.announce--info { background: var(--primary-ink); }
.announce-close { background: none; border: 0; color: inherit; cursor: pointer; opacity: .75; padding: 4px; margin-left: auto; }
.announce-close:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 1 auto; }
@media (min-width: 1181px) and (max-width: 1380px) { .main-nav a, .main-nav .nav-toggle-sub { padding: 9px 9px; font-size: .92rem; } .brand-tag { display: none; } }
.brand img { max-height: 80px; width: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent)));
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 750; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-toggle-sub {
  display: flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 999px; white-space: nowrap;
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 560;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-toggle-sub:hover, .main-nav .is-active > a, .main-nav .is-active > .nav-toggle-sub { color: var(--primary); background: var(--primary-soft); }
.has-sub { position: relative; }
.has-sub .icon { width: .9em; height: .9em; transition: transform .2s; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 180px; list-style: none; margin: 0; padding: 2px;
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  box-shadow: var(--shadow-lg);
  opacity: 0; 
  visibility: hidden; 
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.sub-menu a { border-radius: 9px; padding: 9px 12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover > .nav-toggle-sub .icon, .has-sub.open > .nav-toggle-sub .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 16px 24px 40px;
    overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; margin: 0;
    border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a, .main-nav .nav-toggle-sub { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; width: 100%; justify-content: space-between; }
  .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; background: transparent; }
  .sub-menu::before { display: none; }
  .has-sub.open .sub-menu { display: block; transform: none; }
  .has-sub:hover .sub-menu { transform: none; }
  .header-actions .hide-mobile { display: none; }
  .main-nav .nav-mobile-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-open .main-nav { top: var(--nav-top, var(--header-h)); }
}
@media (min-width: 1181px) { .nav-mobile-actions { display: none !important; } }
@media (max-width: 520px) { .brand-tag { display: none; } .container { padding: 0 18px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero-bg--default {
  background:
    radial-gradient(1000px 500px at 85% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, color-mix(in srgb, var(--primary) 50%, #fff 10%), transparent 60%),
    linear-gradient(135deg, var(--primary-ink), var(--primary));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 18, 16, .78) 0%, rgba(10, 18, 16, .45) 55%, rgba(10, 18, 16, .15) 100%);
}
.hero--plain::after { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.12)); }
.hero-inner { padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px); max-width: 720px; }
.hero h1 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.02em; margin-bottom: .35em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: var(--accent); }

/* Quick links strip that overlaps the hero */
.quick-links { position: relative; z-index: 2; margin-top: -56px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-2); transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-3px); color: var(--ink); }
.quick-card .qi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.quick-card .qi .icon { width: 22px; height: 22px; }
.quick-card strong { display: block; font-size: 1rem; }
.quick-card span { font-size: .86rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } .quick-links { margin-top: -40px; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--primary-soft), var(--bg));
  border-bottom: 1px solid var(--line-2);
}
.page-banner .container { padding-top: 56px; padding-bottom: 48px; }
.page-banner h1 { font-family: var(--font-display); font-weight: 600; margin-bottom: .2em; }
.page-banner p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 14px; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.sub-nav a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.sub-nav a:hover, .sub-nav a.is-current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 8vw, 46px) 0; background: #fff222; padding-bottom: 10px solid #050505; padding-top: 10px solid #050505;}
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-tint { background: var(--primary-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s, border-color .22s;
}
a.card, .card-link { text-decoration: none; color: inherit; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--primary-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-hover:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.card-media .placeholder .icon { width: 44px; height: 44px; opacity: .55; }
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--ink-2); font-size: .95rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { margin-top: auto; padding-top: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-bottom: .6em; }
.panel-tint { background: var(--primary-soft); border-color: var(--primary-tint); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--primary-soft); color: var(--primary);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-danger { background: #fdecec; color: var(--danger); }
.badge-success { background: #e4f4ec; color: var(--success); }
.card-media .badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); }

/* Events */
.date-badge {
  flex: none; width: 64px; text-align: center; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); line-height: 1;
}
.date-badge .m { display: block; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 6px 0; text-transform: uppercase; }
.date-badge .d { display: block; font-size: 1.6rem; font-weight: 800; padding: 8px 0 3px; color: var(--ink); }
.date-badge .y { display: block; font-size: .7rem; color: var(--muted); padding-bottom: 7px; }
.event-row {
  display: flex; gap: 20px; align-items: center; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.event-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.event-row + .event-row { margin-top: 14px; }
.event-row h3 { margin: 0 0 4px; font-size: 1.12rem; }
.event-row .card-meta { margin: 0; }
.event-row .go { margin-left: auto; color: var(--primary); flex: none; }
.event-row.is-past { opacity: .7; }
.event-row.is-past .date-badge .m { background: var(--muted); }
@media (max-width: 600px) { .event-row .go { display: none; } .event-row { align-items: flex-start; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stat span { color: rgba(255,255,255,.75); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.band {
  background:
    radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary-ink), var(--primary));
  color: #fff;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--accent); }
.band p { color: rgba(255,255,255,.85); }

/* Call to action */
.cta {
  border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background:
    radial-gradient(500px 260px at 100% 100%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary), var(--primary-ink));
  color: #fff; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; font-family: var(--font-display); font-weight: 600; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* About */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillar .pi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--primary-soft); color: var(--primary); }
.pillar:nth-child(2) .pi { background: var(--accent-soft); color: var(--accent-ink); }
.pillar .pi .icon { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: .5em; }
.pillar .prose { font-size: .98rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* People */
.person { text-align: center; padding: 30px 24px; }
.person .avatar { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--primary-tint); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--primary-soft); }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .avatar .initials { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.person h3 { margin-bottom: 2px; font-size: 1.15rem; }
.person .role { color: var(--primary); font-weight: 650; font-size: .92rem; margin-bottom: 12px; }
.person .bio { font-size: .92rem; color: var(--ink-2); text-align: left; }
.person .bio p:last-child { margin: 0; }

/* Sponsors */
.sponsor-tier + .sponsor-tier { margin-top: 48px; }
.sponsor-tier h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; }
.sponsor-tier h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sponsor-tier--platinum .sponsor-grid, .sponsor-tier--gold .sponsor-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sponsor { padding: 24px; text-align: center; align-items: center; }
.sponsor .logo { height: 96px; display: grid; place-items: center; margin-bottom: 14px; width: 100%; }
.sponsor .logo img { max-height: 96px; max-width: 80%; width: auto; object-fit: contain; }
.sponsor .logo .initials { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.sponsor p { font-size: .9rem; color: var(--ink-2); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logo-strip a, .logo-strip span { display: block; opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; color: var(--ink-2); font-weight: 750; text-decoration: none; }
.logo-strip a:hover { opacity: 1; filter: none; }
.logo-strip img { max-height: 54px; max-width: 160px; width: auto; }

/* Documents */
.doc-group + .doc-group { margin-top: 40px; }
.doc-group h2 { font-size: 1.3rem; }
.doc-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.doc { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.doc + .doc { border-top: 1px solid var(--line-2); }
.doc .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.doc .fi.pdf { background: #fdecec; color: #b42318; }
.doc .fi.doc, .doc .fi.docx, .doc .fi.odt { background: #e8f0fd; color: #1d4ed8; }
.doc .fi.xls, .doc .fi.xlsx, .doc .fi.csv, .doc .fi.ods { background: #e4f4ec; color: #0d7a4f; }
.doc .info { min-width: 0; flex: 1; }
.doc .info strong { display: block; }
.doc .info .muted { font-size: .84rem; }
.doc .btn { flex: none; }
@media (max-width: 560px) { .doc { flex-wrap: wrap; } .doc .btn { width: 100%; } }

/* Gallery */
.album-card .card-media { aspect-ratio: 4/3; }
.album-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--primary-tint); position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid figcaption { position: absolute; inset: auto 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .82rem; opacity: 0; transition: opacity .2s; }
.photo-grid a:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 11, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #eee; font-size: .92rem; padding: 0 60px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 50px; } }

/* Videos */
.video-thumb { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s, opacity .3s; }
.card-hover:hover .video-thumb img { transform: scale(1.04); opacity: 1; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; }
.card-hover:hover .video-thumb .play span { transform: scale(1.08); }
.video-thumb .play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.video-thumb .placeholder-dark { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-ink), #111); }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Donations */
.progress { height: 12px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--accent))); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.progress-meta strong { color: var(--ink); }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.amounts label { margin: 0; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts span { display: block; text-align: center; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 750; font-size: 1.05rem; cursor: pointer; background: var(--surface); transition: all .15s; }
.amounts input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.amounts input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); }
.method-list { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.method input { margin-top: 4px; accent-color: var(--primary); }
.method strong { display: block; }
.method small { color: var(--muted); }
.pay-box { border: 1px dashed var(--primary); background: var(--primary-soft); border-radius: 14px; padding: 18px 20px; }
.pay-box + .pay-box { margin-top: 12px; }
.pay-box h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.pay-box pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; display: inline-block; }
.donor-list { list-style: none; padding: 0; margin: 0; }
.donor-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .94rem; }
.donor-list li:last-child { border: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 620; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; margin: 6px 0 0; }
.field-help { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field-captcha { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.field-captcha input { max-width: 200px; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.captcha-img { border-radius: 8px; border: 1px solid var(--border, #ddd); background: #fff; display: block; }
.field-captcha-img input { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 16px; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding-top: 64px; padding-bottom: 64px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 2rem; font-family: var(--font-display); font-weight: 600; margin-bottom: .2em; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .95rem; color: var(--muted); }

/* ---------- Alerts ---------- */
.alerts { margin: 20px auto 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; font-size: .95rem; border: 1px solid; }
.alert .icon { margin-top: 3px; }
.alert-success { background: #e9f6ef; border-color: #bfe5d0; color: #0b5c3b; }
.alert-error { background: #fdeeee; border-color: #f5c9c6; color: #8a1f1f; }
.alert-info { background: var(--primary-soft); border-color: var(--primary-tint); color: var(--primary-ink); }
.alert-warning { background: #fff6e5; border-color: #f6dcaa; color: #7a4705; }

/* ---------- Prose (rich text) ---------- */
.prose { color: #000000; font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--primary); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); font-style: italic; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--primary-soft); }
.prose a { font-weight: 560; }
.article-hero img { width: 100%; border-radius: 20px; aspect-ratio: 16/8; object-fit: cover; margin-bottom: 36px; box-shadow: var(--shadow); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.info-list li:last-child { border: 0; }
.info-list .icon { color: var(--primary); margin-top: 4px; }
.info-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Tabs (account) ---------- */
/* v1.20: the links wrap onto a 2nd or 3rd row instead of scrolling sideways (easier on phones) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a { padding: 5px 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border: 1px solid var(--line); border-radius: 1px; background: var(--surface); white-space: nowrap; line-height: 1.2; }
.tabs a:hover { border-color: var(--primary); color: var(--primary); }
.tabs a.is-current { color: #fff; background: var(--primary); border-color: var(--primary); }
@media (max-width: 480px) { .tabs { gap: 6px; } .tabs a { padding: 8px 12px; font-size: .9rem; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fcfbf8; }
.table tr:last-child td { border-bottom: 0; }

.member-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; flex-direction: row; }
.member-card .avatar-sm { width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--primary-tint); display: grid; place-items: center; color: var(--primary); font-weight: 800; overflow: hidden; }
.member-card .avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.member-card p { font-size: .9rem; margin: 4px 0 0; color: var(--ink-2); }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty .icon { width: 44px; height: 44px; color: var(--primary); opacity: .6; margin: 0 auto 12px; display: block; }
.empty h3 { color: var(--ink); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-weight: 650; padding: 0 10px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.filters a.is-current, .filters a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input { flex: 1; }
.error-page { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.error-page .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: #121a18; color: rgba(255,255,255,.72); margin-top: 0; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(var(--fcols, 5), minmax(0, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.footer-col li { font-size: .92rem; }
.footer-col h4 a { color: #fff; }
.footer-contact-row { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 20px; }
.footer-contact-row .footer-contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.footer-contact-row .footer-contact li { margin: 0; align-items: flex-start; }
.footer-main h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-tag { color: rgba(255,255,255,.55); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.5); }
@media (max-width: 1180px) { .footer-main { grid-template-columns: repeat(var(--fcols, 5), minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } .footer-contact-row .footer-contact { justify-content: flex-start; } }
@media (max-width: 900px) { .footer-main { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 48px; } .footer-contact-row .footer-contact { flex-direction: column; } }

/* Reveal-on-scroll (progressive enhancement; see app.js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .announce, .btn, .sub-nav { display: none !important; }
  body { background: #fff; }
}

/* Email protection: reversed text shown the right way round (only until app.js rebuilds the address) */
.eml-r { unicode-bidi: bidi-override; direction: rtl; }
.eml-r i { font-style: normal; }
.eml-a::before { content: "\0040"; }
.eml-d::before { content: "\002E"; }

/* Profile form: individual / organization */
.profile-type { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-type legend { font-weight: 650; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.choice input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }
.choice small { color: var(--muted); }
.profile-h { font-size: 1.05rem; margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.profile-part .profile-h { border-top: 0; padding-top: 0; margin-top: 4px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 600px) { .profile-type { grid-template-columns: 1fr; } }
/* Without JavaScript both halves of the form are shown with their headings. */
.js [data-show-when][hidden] { display: none !important; }

/* Public directory */
.dir-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.dir-letters a, .dir-letters span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--ink-2); }
.dir-letters span { opacity: .35; }
.dir-letters a:hover { border-color: var(--primary); color: var(--primary); }
.dir-group { margin-bottom: 32px; }
.dir-group h2 { font-size: 1.3rem; color: var(--primary); border-bottom: 2px solid #050505; padding-bottom: 6px; margin-bottom: 10px; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.dir-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px; display: flex; gap: 8px; align-items: center; }
.dir-list .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; flex: none; font-size: .9rem; }
.dir-list strong { display: block; line-height: 1.3; }
.dir-list .muted { font-size: .86rem; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.level-card { padding: 26px; }
.level-card .price { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; line-height: 1.1; }
.level-card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Profile form: show only the fields for the chosen account type (no JavaScript needed). */
.profile-form:has(input[name="account_type"][value="individual"]:checked) .pf-organization,
.profile-form:has(input[name="account_type"][value="organization"]:checked) .pf-individual { display: none !important; }

/* Membership page: join form inside each level card */
.level-card { display: flex; flex-direction: column; }
.join-form { margin-top: auto; padding-top: 18px; }
.join-options { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.join-options .check { font-size: .92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pay-options { border: 0; padding: 0; display: grid; gap: 10px; }
.pay-options legend { font-weight: 650; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.plan-note { display: flex; gap: 8px; align-items: flex-start; background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; }
.plan-note .icon { flex: none; margin-top: 2px; }
.plan-card { display: grid; gap: 6px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.freq-options { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.freq-options label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .93rem; background: var(--surface); }
.freq-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.freq-options input { accent-color: var(--primary); }

/* ---------- Polls ---------- */
.list-h { font-size: 1.35rem; margin: 0 0 18px; }
.poll-card .badge .icon { width: .95em; height: .95em; vertical-align: -2px; }
.poll-options { display: grid; gap: 10px; margin: 18px 0 22px; }
.poll-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.poll-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.poll-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.poll-option.is-off { opacity: .55; cursor: not-allowed; }
.poll-option input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.poll-option img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.poll-option span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.poll-option small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.result-row { margin: 0 0 16px; }
.result-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 6px; }
.result-num { color: var(--muted); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-bar { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.result-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .6s ease; }
.result-row.is-elected .result-bar span { background: var(--accent); }
img.rounded { border-radius: 18px; width: 100%; height: auto; }

/* ---------- Raffles ---------- */
.raffle-price { margin: 4px 0 10px; color: var(--muted); }
.raffle-price strong { color: var(--primary); font-size: 1.3rem; }
.raffle-price-big { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; margin-bottom: 10px; }
.raffle-price-big small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.raffle-total { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.prize-list { display: grid; gap: 12px; margin: 16px 0 8px; }
.prize { display: grid; grid-template-columns: 110px auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prize img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.prize:not(:has(img)) { grid-template-columns: 110px 1fr; }
.prize-place { font-weight: 800; color: var(--accent-ink, var(--primary)); background: var(--accent-soft, var(--primary-soft)); border-radius: 999px; padding: 8px 12px; text-align: center; font-size: .9rem; }
.prize h3 { margin: 0 0 4px; font-size: 1.1rem; }
.prize .winner { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: inline-flex; gap: 8px; align-items: center; }
.prize.has-winner { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.hash { font-size: .78rem; word-break: break-all; background: color-mix(in srgb, var(--line) 50%, transparent); padding: 2px 6px; border-radius: 6px; }
.ticket-numbers { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.9; word-spacing: 6px; margin: 10px 0; }
.order-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft, var(--primary-soft)); color: var(--accent-ink, var(--primary)); display: grid; place-items: center; margin: 0 auto 18px; }
.ticket-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ticket-chip { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: 1px; padding: 8px 14px; border: 2px dashed var(--primary); border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
@media (max-width: 600px) {
  .prize, .prize:not(:has(img)) { grid-template-columns: 1fr; }
  .prize-place { justify-self: start; }
}

/* ---------- Charity shop & auctions ---------- */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.shop-filters > * { width: auto; margin: 0; }
.shop-filters input[type=search] { flex: 1 1 240px; }
.shop-filters select { flex: 0 1 200px; }
.shop-filters select, .shop-filters input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shop-card h3 { font-size: 1.02rem; margin: 10px 0 4px; }
.shop-card .card-media { position: relative; aspect-ratio: 4 / 3; }
.shop-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card.is-sold img { filter: grayscale(.8); opacity: .7; }
.sold-flag { position: absolute; top: 12px; left: 12px; background: #1b2422; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.shop-price { font-weight: 800; color: var(--primary); font-size: 1.15rem; margin: 2px 0 0; }
.shop-price small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.shop-price.big { font-size: 2.1rem; letter-spacing: -.02em; margin: 10px 0 6px; }
.shop-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.shop-gallery .main-pic { display: block; border-radius: 18px; overflow: hidden; background: var(--primary-soft); aspect-ratio: 4 / 3; }
.shop-gallery .main-pic img { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery .main-pic.placeholder { display: grid; place-items: center; color: var(--primary); }
.shop-gallery .main-pic.placeholder .icon { width: 64px; height: 64px; }
.shop-gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.shop-gallery .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.add-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.add-cart .qty { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.add-cart .qty input { width: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart-item span { display: flex; flex-direction: column; } .cart-item small { color: var(--muted); }
.table td.n, .table th.n { text-align: right; white-space: nowrap; }
dl.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; }
dl.totals dd { margin: 0; text-align: right; font-weight: 600; } dl.totals .total { font-size: 1.2rem; font-weight: 800; color: var(--primary); border-top: 1px solid var(--line); padding-top: 8px; }
dl.totals dd small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.bid-box { margin-top: 14px; }
.bid-row { display: flex; gap: 8px; margin: 6px 0; }
.bid-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.15rem; font-weight: 700; }
.bid-form label { font-weight: 650; font-size: .92rem; }
.countdown { font-weight: 700; color: var(--accent-ink); display: flex; gap: 8px; align-items: center; }
.bid-table tr.is-mine td { background: var(--primary-soft); font-weight: 650; }
@media (max-width: 860px) { .shop-item { grid-template-columns: 1fr; gap: 28px; } }

/* Mid-size screens: the full menu fits only without the site name next to the logo. */
/* Desktop header: logo + site name (wrapping onto two lines if needed); the tagline only where there is room. */
@media (min-width: 1181px) {
  .site-header .container.header-inner { max-width: max(var(--container), min(1440px, 100vw)); }
  .site-header .brand-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; max-width: 175px; font-size: .98rem; }
  .site-header .brand-tag { display: none; }
}
@media (min-width: 1500px) { .site-header .brand-name { max-width: 260px; } }
.site-header .brand { min-width: 0; } .site-header .brand-mark, .site-header .brand img { flex: none; }
@media (min-width: 1181px) and (max-width: 1380px) {
  .main-nav a, .main-nav .nav-toggle-sub { padding: 9px 7px; font-size: .9rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding-left: 11px; padding-right: 11px; }
  .header-actions .btn-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Event tickets ---- */
.ticket-types { display: grid; gap: 10px; margin-bottom: 12px; }
.ticket-type { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.ticket-type:has(select option:checked:not([value="0"])) { border-color: var(--primary); background: var(--primary-soft); }
.ticket-type > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-type small { color: var(--muted); font-size: .82rem; }
.ticket-type .tt-price { font-weight: 700; color: var(--primary); }
.ticket-type .tt-left { color: var(--accent-ink, #8a5300); font-weight: 600; }
.ticket-type .tt-who .icon { width: 12px; height: 12px; vertical-align: -1px; }
.ticket-type select { width: 70px; padding: 8px; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 10px; margin: 4px 0 16px; }
.ticket-total strong { font-size: 1.3rem; }
.e-tickets { display: grid; gap: 18px; margin-top: 26px; }
.e-ticket { display: grid; grid-template-columns: 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm, 0 4px 18px rgba(0,0,0,.06)); break-inside: avoid; page-break-inside: avoid; }
.e-ticket-main { padding: 22px 24px; border-right: 2px dashed var(--line); position: relative; }
.e-ticket-main h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 6px 0 10px; }
.e-ticket-main p { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; }
.e-ticket-main .icon { width: 16px; height: 16px; color: var(--primary); }
.e-ticket-type { margin-top: 10px !important; }
.e-ticket-qr { padding: 18px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; }
.e-ticket-qr svg { width: 150px; height: 150px; display: block; }
.e-ticket-qr code { font-size: 1.05rem; letter-spacing: .08em; font-weight: 700; color: #1b2422; }
.e-ticket.is-used { opacity: .6; }
@media (max-width: 560px) {
  .e-ticket { grid-template-columns: 1fr; }
  .e-ticket-main { border-right: 0; border-bottom: 2px dashed var(--line); }
}
.checkin-card h1 { font-family: var(--font-display); font-weight: 600; margin: 8px 0; }
.checkin-icon { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--primary-soft); color: var(--primary); }
.checkin-icon .icon { width: 48px; height: 48px; }
.checkin-card.is-ok .checkin-icon { background: #dff3e7; color: #0b6640; }
.checkin-card.is-warn .checkin-icon { background: #fff1d6; color: #8a5300; }
.checkin-card.is-bad .checkin-icon { background: #fdeaea; color: #a1231a; }
.checkin-card.is-ok { border-top: 6px solid #12a150; }
.checkin-card.is-warn { border-top: 6px solid #e2a100; }
.checkin-card.is-bad { border-top: 6px solid #d1372b; }
.checkin-code code { font-size: 1.5rem; letter-spacing: .1em; font-weight: 700; }

/* ---- Volunteering ---- */
.vol-summary { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.vol-summary > div { display: flex; flex-direction: column; }
.shift-day { font-size: 1.05rem; margin: 26px 0 10px; color: var(--muted); font-weight: 600; }
.shift-list { display: grid; gap: 10px; }
.shift { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.shift.is-mine { border-color: var(--primary); background: var(--primary-soft); }
.shift-time, .shift-info { display: flex; flex-direction: column; gap: 2px; }
.shift-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .shift { grid-template-columns: 1fr; } .shift-act { justify-content: flex-start; } }
.stat-panel { display: flex; flex-direction: column; gap: 4px; }
.stat-panel strong { font-size: 2rem; font-family: var(--font-display); line-height: 1.1; }

@media print {
  .no-print { display: none !important; }
  .ticket-page .form-card { box-shadow: none; border: 0; padding: 0; }
  .ticket-page .section { padding: 0; }
  .e-ticket { box-shadow: none; }
}

/* ---- Sponsors directory ---- */
.dir-orgs li { align-items: flex-start; }
.dir-orgs li > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dir-orgs .dot-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 10px; }
.dir-orgs .icon { width: 13px; height: 13px; vertical-align: -2px; }
.dir-orgs a { overflow-wrap: anywhere; }
.tier-badge { align-self: flex-start; font-size: .72rem; }
.sponsor-search { display: flex; gap: 10px; flex-wrap: wrap; }
.sponsor-search input[type=search] { flex: 1 1 260px; }
.sponsor-search select { flex: 0 1 260px; }
.sponsor-search { max-width: 760px; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); background: transparent; } .cta .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-brand .brand-name { white-space: normal; overflow: visible; }

/* ---------- Discussion forum (v1.14) ---------- */
.forum-cats, .forum-topics { display: grid; gap: 12px; }
.forum-cat, .forum-topic { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid #050505; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.forum-topic { grid-template-columns: 1fr auto 150px; }
.forum-cat:hover, .forum-topic:hover { border-color: var(--primary-tint); box-shadow: var(--shadow); }
.forum-cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.forum-cat-main strong, .forum-topic-main strong { font-size: 1.08rem; }
.forum-cat-main small, .forum-topic-main small, .forum-topic-last small { display: block; color: var(--muted); margin-top: 3px; }
.forum-latest { font-size: .85rem; }
.forum-cat-stats, .forum-topic-stats { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.forum-cat-stats strong, .forum-topic-stats strong { color: var(--ink); }
.forum-topic-last { font-size: .9rem; text-align: right; }
.forum-topic .badge, .forum-toolbar .badge { margin-right: 4px; vertical-align: middle; }
.forum-topic.is-hidden, .forum-post.is-hidden { opacity: .6; border-style: dashed; }
.forum-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.forum-mod, .forum-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.forum-mod form, .forum-actions form { margin: 0; }
.forum-posts { display: grid; gap: 16px; margin-bottom: 24px; }
.forum-post { display: grid; grid-template-columns: 170px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.forum-post:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.forum-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 14px; background: var(--primary-soft); border-right: 1px solid var(--line); }
.forum-author img, .forum-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.forum-avatar { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.5rem; }
.forum-author small { color: var(--muted); font-size: .8rem; }
.forum-body { padding: 20px 24px; min-width: 0; }
.forum-body .prose { overflow-wrap: anywhere; }
.forum-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.forum-meta a { color: inherit; }
.forum-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.forum-reply { margin-top: 8px; }
.forum-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.forum-recent small { display: block; color: var(--muted); }
@media (max-width: 720px) {
  .forum-cat { grid-template-columns: auto 1fr; }
  .forum-cat-stats { grid-column: 2; }
  .forum-topic { grid-template-columns: 1fr; gap: 8px; }
  .forum-topic-last { text-align: left; }
  .forum-post { grid-template-columns: 1fr; }
  .forum-author { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .forum-author img, .forum-avatar { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ---------- Mobile money payment page (v1.15) ---------- */
.momo-card { max-width: 560px; margin: 0 auto; }
.momo-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin: 0 0 .4em; }
.momo-head { text-align: center; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.momo-logos { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.momo-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: .85rem; letter-spacing: .01em; }
.momo-mtn { background: #ffcb05; color: #00283c; }
.momo-airtel { background: #e40000; color: #fff; text-transform: lowercase; }
.momo-amount { margin: 0 0 4px; }
.momo-amount span { display: block; color: var(--muted); font-size: .9rem; }
.momo-amount strong { font-size: 2rem; letter-spacing: -.01em; }
.momo-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.momo-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.momo-input span { display: grid; place-items: center; padding: 0 12px; background: var(--primary-soft); color: var(--ink-2); font-weight: 600; border-right: 1px solid var(--line); }
.momo-input input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; font-size: 1.15rem; letter-spacing: .03em; padding: 12px; outline: none; background: transparent; }
.momo-form .btn-lg { width: 100%; justify-content: center; }
.momo-wait { text-align: center; }
.momo-phone { position: relative; width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.momo-phone .icon { width: 36px; height: 36px; }
.momo-pulse { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--primary); opacity: 0; animation: momo-pulse 1.8s ease-out infinite; }
@keyframes momo-pulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .momo-pulse { animation: none; opacity: .4; } }
.momo-steps { text-align: left; max-width: 380px; margin: 18px auto; padding-left: 1.3em; display: grid; gap: 6px; }
.momo-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }

/* ---------- Board, staff & teams with sub-groups (v1.16) ---------- */
.person-loc { color: var(--muted); font-size: .88rem; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.person-loc .icon { width: 14px; height: 14px; }
.team-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.team-jump a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.team-jump a:hover { border-color: var(--primary); color: var(--primary); }
.team-group { margin: 44px 0 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.team-group:first-child { margin-top: 0; }
.team-depth-1 { padding-bottom: 10px; border-bottom: 2px solid var(--primary-tint); }
.team-depth-1 .team-heading { font-size: 1.7rem; margin: 0; }
.team-depth-2 { margin-top: 30px; padding-left: 14px; border-left: 4px solid var(--accent); }
.team-depth-2 .team-heading { font-size: 1.3rem; margin: 0; }
.team-depth-3 { margin-top: 24px; padding-left: 14px; border-left: 3px solid var(--line); }
.team-depth-3 .team-heading { font-size: 1.1rem; margin: 0; }
.team-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.team-loc .icon { width: 14px; height: 14px; }
.team-desc { margin: 6px 0 0; max-width: 70ch; }
.team-people { margin-bottom: 8px; }

/* ---------- Bank transfer page (v1.17) ---------- */
.bank-card { max-width: 640px; margin: 0 auto; }
.bank-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin: 0 0 .4em; }
.bank-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-bottom: 8px; }
.bank-steps { padding-left: 1.3em; display: grid; gap: 22px; margin: 18px 0; }
.bank-steps > li > strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.bank-details { margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.bank-details > div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); align-items: center; }
.bank-details > div:last-child { border-bottom: 0; }
.bank-details dt { color: var(--muted); font-size: .9rem; }
.bank-details dd { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; overflow-wrap: anywhere; }
.bank-details dd span { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.bank-details .bank-ref { background: var(--accent-soft); }
@media (max-width: 520px) { .bank-details > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer: ways to pay (v1.17) ---------- */
.footer-payments { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer-payments-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.55); }
.footer-payments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.88); font-size: .84rem; font-weight: 600; line-height: 1.2; }
/* v1.19.1: every method has a square icon, at most 40 × 40 */
.pay-tile { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #fff; color: var(--primary); display: grid; place-items: center; overflow: hidden; }
.pay-tile-svg { width: 40px; height: 40px; display: block; }
.pay-tile img { width: 40px; height: 40px; object-fit: contain; display: block; padding: 3px; }
@media (max-width: 560px) { .footer-payments { justify-content: flex-start; } }

/* ---------- Home page card sections (v1.17) ---------- */
.hc-grid { display: grid; gap: 20px; grid-template-columns: repeat(var(--hc, 3), minmax(0, 1fr)); }
.hc-cols-1 { --hc: 1; } .hc-cols-2 { --hc: 2; } .hc-cols-3 { --hc: 3; } .hc-cols-4 { --hc: 4; }
@media (max-width: 980px) { .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hc-grid { grid-template-columns: 1fr; } }
.hc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; height: 100%; }
.hc-img { display: block; aspect-ratio: 16 / 10; background: var(--primary-soft); overflow: hidden; }
.hc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 20px 20px 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.hc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.hc-body strong { font-size: 1.08rem; line-height: 1.3; }
.hc-meta { color: var(--primary); font-weight: 600; font-size: .88rem; }
.hc-text { color: var(--muted); font-size: .92rem; }
.hc-round { align-items: center; text-align: center; padding-top: 24px; }
.hc-round .hc-img { width: 120px; height: 120px; aspect-ratio: 1; border-radius: 50%; }
.hc-initials { display: grid !important; place-items: center; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-link { color: inherit; text-decoration: none; display: block; border-radius: var(--radius-sm); transition: transform .15s; }
.stat-link:hover, .stat-link:focus-visible { transform: translateY(-2px); }
.stat-link:hover span, .stat-link:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Person pages and linked team headings (v1.18) ---------- */
.person h3 .person-link { color: inherit; text-decoration: none; }
.person h3 .person-link:hover { color: var(--primary); text-decoration: underline; }
.team-heading a { color: inherit; text-decoration: none; }
.team-heading a:hover { color: var(--primary); }
.person-page { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; padding: 32px; }
.person-page-photo img, .person-page-photo .initials { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 3.5rem; font-weight: 700; }
.person-page-body h2 { margin: 0; }
.person-page-body .role { color: var(--primary); font-weight: 600; margin: 4px 0 12px; }
.person-facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; color: var(--muted); }
.person-facts li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.person-facts .icon { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .person-page { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .person-page-photo { justify-self: center; }
  .person-page-photo img, .person-page-photo .initials { width: 160px; height: 160px; }
  .person-facts li { justify-content: center; }
}
.pillar-link { color: inherit; text-decoration: none; } .pillar-link:hover { color: var(--primary); text-decoration: underline; }
/* Section tabs on phones (v1.20): compact buttons that wrap onto more rows – no sideways scrolling */
@media (max-width: 720px) {
  .sub-nav { flex-wrap: wrap; gap: 6px; }
  .sub-nav a { padding: 7px 12px; font-size: .88rem; }
}

/* ---- Banner adverts (v1.19) ---- */
.ad-wrap { display: flex; justify-content: center; padding: 28px 20px; }
.ad-wrap--listing { padding: 28px 20px 0; }
.ad-wrap--listing + .section { padding-top: 36px; }
.ad-wrap--content { padding: 8px 20px 40px; }
.ad-wrap--footer { padding: 8px 20px 36px; }
.ad { width: 100%; max-width: var(--ad-w); margin: 0; text-align: center; }
.ad > a { display: block; line-height: 0; border-radius: 4px; overflow: hidden; outline-offset: 3px; }
.ad img { display: block; width: 100%; height: auto; aspect-ratio: var(--ad-ratio); object-fit: contain; background: rgba(0,0,0,.03); }
.ad-label { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b7280); text-align: right; }
.ad-label a { color: inherit; text-decoration: underline; text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) {
  .ad--leaderboard.ad--has-mobile { max-width: 320px; }
  .ad--leaderboard.ad--has-mobile img { aspect-ratio: 320/50; }
  .ad-wrap { padding-left: 16px; padding-right: 16px; }
}
@media print { .ad-wrap { display: none; } }

/* Advertise page and the advertiser's pages */
.ad-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0 8px; }
.ad-size { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 18px; background: var(--surface, #fff); }
.ad-size h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ad-size .ad-mock { display: grid; place-items: center; margin: 12px 0; border: 2px dashed var(--line, #d1d5db); border-radius: 6px; color: var(--muted, #6b7280); font-size: .8rem; max-width: 100%; }
.ad-price-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.ad-price-table th, .ad-price-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e7eb); text-align: left; }
.ad-list { display: grid; gap: 14px; }
.ad-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 14px; background: var(--surface, #fff); }
.ad-item img { width: 100%; height: auto; border-radius: 4px; }
.ad-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ad-progress { height: 6px; border-radius: 3px; background: var(--line, #e5e7eb); overflow: hidden; margin: 6px 0; max-width: 260px; }
.ad-progress span { display: block; height: 100%; background: var(--primary); }
.ad-preview { border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 14px; background: rgba(0,0,0,.02); margin-bottom: 18px; }
.ad-preview img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ad-chart { width: 100%; height: 120px; color: var(--primary); display: block; }
.ad-total { font-size: 1.5rem; font-weight: 700; }
.ad-stat-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 10px 0 16px; }
.ad-stat-row div strong { display: block; font-size: 1.4rem; }
@media (max-width: 720px) { .ad-item { grid-template-columns: 1fr; } }

/* Email confirmation page (v1.19) */
.verify-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; }
.auth-card .verify-icon + h1 { text-align: center; }

/* ---- Organization chart (v1.19) ---- */
.org-scroll { overflow-x: auto; padding-bottom: 20px; padding-bottom: 30px; -webkit-overflow-scrolling: touch; background: #050505;}
.org-tree { display: inline-block; min-width: 100%; text-align: center; }
.org-tree .org-level { display: flex; justify-content: center; margin: 0; padding: 10px 0 0; position: relative; list-style: none; }
.org-tree > .org-level { padding-top: 0; }
.org-tree .org-node { position: relative; padding: 22px 8px 0; list-style: none; display: flex; flex-direction: column; align-items: center; }
.org-tree > .org-level > .org-node { padding-top: 0; }
/* connectors: a line up from each box, joined by a line across */
.org-tree .org-node::before, .org-tree .org-node::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid var(--line); }
.org-tree .org-node::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.org-tree .org-node:only-child::before, .org-tree .org-node:only-child::after { display: none; }
.org-tree .org-node:only-child { padding-top: 22px; }
.org-tree .org-node:only-child::after { display: block; border-top: 0; left: 50%; width: 0; }
.org-tree .org-node:first-child::before, .org-tree .org-node:last-child::after { border: 0 none; }
.org-tree .org-node:last-child::before { border-right: 2px solid var(--line); border-radius: 0 6px 0 0; }
.org-tree .org-node:first-child::after { border-radius: 6px 0 0 0; }
.org-tree > .org-level > .org-node::before, .org-tree > .org-level > .org-node::after { display: none !important; }
.org-tree > .org-level > .org-node:only-child { padding-top: 25px; }
.org-tree .org-level .org-level::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--line); }
.org-box { width: 210px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 12px; padding: 14px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.org-box--group { border-top-color: var(--accent); }
.org-box--position { border-top-color: var(--muted); background: var(--line-2); }
.org-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.org-initials { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.org-name { font-weight: 700; line-height: 1.25; color: var(--ink, inherit); text-decoration: none; }
a.org-name:hover { text-decoration: underline; }
.org-title { font-size: .85rem; color: var(--primary); font-weight: 600; }
.org-note { font-size: .78rem; color: var(--muted); }
.org-members { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); width: 100%; text-align: left; font-size: .8rem; display: grid; gap: 4px; }
.org-members a { font-weight: 600; }
.org-members span { display: block; color: var(--muted); font-size: .74rem; }
.org-more { font-size: .78rem; margin-top: 4px; }
.org-hint { display: none; }
@media (max-width: 720px) {
  /* Phones: an indented list with a line showing who reports to whom. */
  .org-tree { display: block; text-align: left; }
  .org-tree .org-level { display: block; padding: 0 0 0 18px; margin-left: 10px; border-left: 2px solid var(--line); }
  .org-tree > .org-level { padding-left: 0; margin-left: 0; border-left: 0; }
  .org-tree .org-node { display: block; padding: 10px 0 0 0; }
  .org-tree .org-node::before { display: block !important; content: ''; position: absolute; left: -20px; right: auto; top: 34px; width: 18px; height: 0; border-top: 2px solid var(--line); border-right: 0; border-radius: 0; }
  .org-tree .org-node::after, .org-tree .org-level .org-level::before { display: none !important; }
  .org-tree > .org-level > .org-node::before { display: none !important; }
  .org-box { width: auto; max-width: 420px; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; column-gap: 12px; }
  .org-photo { width: 48px; height: 48px; margin: 0; }
  .org-box .org-name { flex: 1 1 60%; }
  .org-box .org-title, .org-box .org-note, .org-box .org-members { flex-basis: 100%; }
}
@media (min-width: 721px) { .org-hint { display: block; } }

/* ---- Member posts (v1.20) ---- */
.post-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.post-option { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.post-option:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.post-option strong { color: var(--primary); }
.post-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.post-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.post-preview-img img { max-width: 260px; height: auto; border-radius: 8px; display: block; margin: 0 0 8px; }
.post-sent .post-field { padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-sent .post-field:last-child { border-bottom: 0; }
.post-sent .post-field > span { display: block; margin-bottom: 4px; }

/* ---- Membership benefits (v1.20.1; clearer layout v1.20.2) ---- */
.container-wide { max-width: 1440px; }
.benefits-intro { max-width: 760px; }
.benefits-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 6px 0 18px; }
.benefits-tools[hidden] { display: none; }
.benefits-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.benefits-pick legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.benefit-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 7px; border: 1px solid var(--line); border-radius: 1px; background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.benefit-chip input { accent-color: var(--primary); margin: 0; }
.benefit-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink, var(--ink)); }
.benefit-chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.benefits-view { display: inline-flex; gap: 6px; flex: none; }
.benefits-view .btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.benefits-view .btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Side by side: real column widths; scrolls sideways when there are many membership types */
.benefits-scrollbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.benefits-scrollbar[hidden] { display: block !important; overflow-x: scroll;}
.benefits-hint .icon { vertical-align: -3px; color: var(--primary); }
.benefits-arrows { display: inline-flex; gap: 6px; flex: none; }
.benefits-arrows .btn { padding: .4em .85em; line-height: 1; }
.benefits-arrows .btn:disabled { opacity: .35; cursor: default; transform: none; }
.benefits-table-wrap { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: auto; max-height: max(420px, calc(100vh - 140px)); overscroll-behavior-x: contain; scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--primary) 55%, transparent) var(--primary-soft); }
.benefits-table-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.benefits-table-wrap::-webkit-scrollbar { height: 25px; width: 25px; }
.benefits-table-wrap::-webkit-scrollbar-track { background: var(--primary-soft); }
.benefits-table-wrap::-webkit-scrollbar-corner { background: var(--primary-soft); }
.benefits-table-wrap::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 55%, transparent); border-radius: 8px; border: 2px solid var(--primary-soft); }
.benefits-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.benefits-table th, .benefits-table td { width: 250px; min-width: 230px; padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; line-height: 1.45; }
.benefits-table td + td, .benefits-table th + th, .benefits-table th + td { border-left: 1px solid var(--line); }
/* The header row (membership names) stays in place while scrolling down inside the table */
.benefits-table thead th { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--ink); box-shadow: 0 6px 10px -8px rgba(0,0,0,.25); }
.benefits-table tbody tr:last-child th, .benefits-table tbody tr:last-child td { border-bottom: 0; }
.benefits-table tbody tr:nth-child(even) td, .benefits-table tbody tr:nth-child(even) .benefit-first { background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.benefits-table td.is-off { color: var(--muted); }
/* The first column ("You can post") stays in place while scrolling sideways */
.benefits-table .benefit-first { position: sticky; left: 0; z-index: 2; width: 210px; min-width: 190px; background: var(--surface); box-shadow: 6px 0 10px -8px rgba(0,0,0,.25); }
.benefits-table thead .benefit-first { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); z-index: 4; }
.benefits-table tbody .benefit-first { font-weight: 700; }
.benefit-name { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.benefit-fee { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); margin-top: 3px; }
.benefit-module { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.benefit-yes { color: var(--ink); font-weight: 600; display: flex; gap: 7px; align-items: flex-start; }
.benefit-yes .icon { color: var(--primary); flex: none; margin-top: 3px; }
.benefit-extra { list-style: none; margin: 8px 0 0; padding: 0 0 0 25px; display: grid; gap: 3px; font-size: .84rem; color: var(--muted); }
.benefit-extra li::before { content: "· "; }
.benefit-no { color: var(--muted); font-size: 1.1rem; }
.benefits [data-col].is-hidden { display: none; }

/* One card per membership type */
.benefits-cards { display: none; }
.benefits.view-cards .benefits-table-box { display: none; }
.benefits.view-cards .benefits-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.benefit-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.benefit-card h3 { margin: 0; font-size: 1.15rem; }
.benefit-card > ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.benefit-card > ul > li { padding: 10px 0; border-top: 1px solid var(--line); }
.benefit-card li strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.benefit-card li.is-off { opacity: .55; }
.benefit-card .benefit-extra { padding-left: 25px; margin-top: 4px; gap: 1px; }
@media (max-width: 860px) {
  .benefits-table-box, .benefits-view { display: none !important; }
  .benefits-cards, .benefits.view-cards .benefits-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .benefits-pick { gap: 6px; }
  .benefits-pick legend { margin-bottom: 6px; }
  .benefit-chip { padding: 5px 11px; font-size: .8rem; gap: 6px; }
  .benefits-pick .btn-sm { padding: .4em .85em; font-size: .8rem; }
  .benefit-card { padding: 16px 18px; }
}

/* "Log in as this user" bar (v1.20.1) */
.impersonation-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 9px 16px; background: #7a2e0e; color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.impersonation-bar .icon { vertical-align: -3px; }
.impersonation-bar .imp-note { font-weight: 400; opacity: .9; }
.impersonation-bar form { margin: 0; }
.impersonation-bar button { background: #fff; color: #7a2e0e; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }

/* ---- Activity rewards: points, stars & badges (v1.21) ---- */
.reward-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rstar { width: 16px; height: 16px; fill: #e4e2dc; stroke: none; flex: none; }
.rstar.is-on { fill: #f2b01e; filter: drop-shadow(0 1px 0 rgba(160,100,0,.35)); }
.reward-stars.is-large { gap: 4px; }
.reward-stars.is-large .rstar { width: 30px; height: 30px; }
.reward-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.reward-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 5px; font-size: .85rem; font-weight: 700; background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line); white-space: nowrap; }
.reward-badge svg { width: 26px; height: 26px; flex: none; }
.reward-badge.is-small { font-size: .76rem; padding: 2px 9px 2px 3px; }
.reward-badge.is-small svg { width: 20px; height: 20px; }
.reward-badge .ribbon, .rmini-medal .ribbon { fill: var(--b-ribbon); }
.reward-badge .disc, .rmini-medal .disc { fill: var(--b-disc); stroke: var(--b-edge); stroke-width: 1.2; }
.reward-badge .shine, .rmini-medal .shine { fill: rgba(255,255,255,.85); }
.tier-1 { --b-bg: #fbefe4; --b-ink: #7a4318; --b-line: #ecc9a6; --b-disc: #cd7f32; --b-edge: #9a5b1e; --b-ribbon: #c0392b; }
.tier-2 { --b-bg: #f1f3f5; --b-ink: #4a5560; --b-line: #d5dbe0; --b-disc: #b8c1ca; --b-edge: #85919c; --b-ribbon: #2e6fb5; }
.tier-3 { --b-bg: #fdf5d9; --b-ink: #7a5a00; --b-line: #f0dc93; --b-disc: #f2c230; --b-edge: #b88a00; --b-ribbon: #1e8a5a; }
.tier-4 { --b-bg: #eef3f7; --b-ink: #33505f; --b-line: #cfdde6; --b-disc: #dfe9ef; --b-edge: #7f9aab; --b-ribbon: #6b4fa0; }
.tier-5 { --b-bg: #e8f6fb; --b-ink: #0d5a78; --b-line: #b7e1f0; --b-disc: #7fd3f0; --b-edge: #2b93bd; --b-ribbon: #c2185b; }
.reward-badge-more { font-size: .8rem; color: var(--muted); align-self: center; }

/* Summary card (profile, My points) */
.reward-card { display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: center; }
.reward-total { text-align: center; padding: 14px 22px; border-radius: 14px; background: var(--primary-soft); border: 1px solid var(--primary-tint); }
.reward-total strong { display: block; font-size: 2.3rem; line-height: 1; color: var(--primary-ink, var(--primary)); }
.reward-total span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.reward-row { min-width: 0; }
.reward-progress { height: 8px; border-radius: 99px; background: #eceae4; overflow: hidden; margin: 10px 0 8px; max-width: 360px; }
.reward-progress span { display: block; height: 100%; background: linear-gradient(90deg, #f5c84b, #f2a541); border-radius: inherit; }
.reward-next { margin: 0; font-size: .9rem; color: var(--muted); }
.reward-badges-wrap { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.reward-card .reward-badges-wrap h3 { font-size: 1rem; margin: 0 0 10px; }

/* Forum: next to the author's name */
.reward-mini { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.reward-mini:hover { border-color: #f2b01e; }
.reward-mini .rstar { width: 14px; height: 14px; }
.reward-mini .sep { color: var(--muted); font-weight: 400; }
.rmini-medal { display: inline-flex; align-items: center; }
.rmini-medal svg { width: 18px; height: 18px; }
.rmini-medal b { font-size: .72rem; margin-left: 1px; }

/* Top contributors */
.reward-me { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 28px; padding: 16px 22px; }
.reward-me strong { margin-right: 10px; }
.reward-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.reward-layout > div > h2 { font-size: 1.4rem; margin-top: 0; line-height: 1.25; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.leaderboard li { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.leaderboard li.is-top-1 { border-color: #f2c230; background: linear-gradient(90deg, #fffaeb, var(--surface) 60%); }
.leaderboard li.is-top-2 { border-color: #c9d1d8; }
.leaderboard li.is-top-3 { border-color: #e2b48a; }
.lb-rank { font-weight: 800; font-size: 1.05rem; color: var(--muted); text-align: center; }
.is-top .lb-rank { color: var(--ink); }
.lb-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.lb-main { min-width: 0; display: grid; gap: 4px; }
.lb-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name:hover { color: var(--primary); text-decoration: underline; }
.lb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lb-points { text-align: right; line-height: 1.1; }
.lb-points strong { display: block; font-size: 1.25rem; }
.lb-points span { font-size: .75rem; color: var(--muted); }
.reward-how-h { font-size: .92rem; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.reward-how { border: 1px solid var(--line-2, var(--line)); border-radius: 10px; overflow: hidden; }
.reward-how td { padding: 8px 12px; }
.reward-example { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reward-tiers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.reward-tiers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Public profile */
.reward-profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.reward-person { text-align: center; }
.reward-profile .reward-person h2 { font-size: 1.35rem; margin: 12px 0 2px; line-height: 1.25; }
.reward-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 2.4rem; font-weight: 700; box-shadow: 0 0 0 6px var(--primary-soft); }
.reward-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.reward-rank { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 14px 0; }
.reward-rank span { color: var(--muted); font-size: .9rem; }
.reward-rank strong { font-size: 1.6rem; }
.reward-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.reward-recent li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reward-recent li:last-child { border-bottom: 0; }
.reward-plus { font-weight: 800; color: #1e8a5a; min-width: 42px; }
.reward-account .panel { margin-bottom: 20px; }
@media (max-width: 960px) {
  .reward-layout, .reward-profile { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .reward-card { grid-template-columns: 1fr; }
  .reward-stars.is-large .rstar { width: 24px; height: 24px; }
  .leaderboard li { grid-template-columns: 26px 40px minmax(0, 1fr); padding: 10px 12px; gap: 10px; }
  .lb-avatar { width: 40px; height: 40px; }
  .lb-points { grid-column: 3; text-align: left; }
  .lb-points strong { display: inline; font-size: 1.05rem; }
}

/* ---- Chat between members (v1.22) ---- */
.chat-nav { position: relative; }
.chat-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #d64545; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.chat-count[hidden] { display: none; }
.chat-section { padding-top: 28px; }
.chat-app { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: min(78vh, 760px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.chat-section .chat-list-head h1 { font-size: 1.3rem; margin: 0; }
.chat-allow { padding: 0 16px 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.chat-allow .icon { vertical-align: -3px; color: var(--primary); }
.chat-convs { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.chat-convs a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.chat-convs a:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.chat-convs li.is-active a { background: var(--primary-soft); }
.chat-conv-main { min-width: 0; display: grid; gap: 2px; }
.chat-conv-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-last { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-convs li.is-unread .chat-conv-last { color: var(--ink); font-weight: 600; }
.chat-conv-time { font-size: .75rem; color: var(--muted); display: grid; justify-items: end; gap: 6px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #d64545; }
.chat-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.chat-staff { font-size: .7rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.chat-none { padding: 16px; }
.chat-pref { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .85rem; }
.chat-pref .check { font-size: .85rem; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-empty { margin: auto; text-align: center; padding: 30px; max-width: 420px; }
.chat-empty > .icon { width: 44px; height: 44px; color: var(--primary); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head-main { display: grid; min-width: 0; flex: 1; }
.chat-head-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back { display: none; font-size: 1.4rem; text-decoration: none; color: var(--ink); padding: 0 4px; }
.chat-menu { position: relative; }
.chat-menu summary { list-style: none; cursor: pointer; font-weight: 800; }
.chat-menu summary::-webkit-details-marker { display: none; }
.chat-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; display: grid; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.chat-menu-pop textarea { width: 100%; margin: 6px 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--primary) 2%, var(--surface)); }
.chat-day { text-align: center; margin: 10px 0 4px; }
.chat-day span { font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 560px); }
.chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg.is-mine .chat-bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 16px 16px 4px 16px; }
.chat-msg.is-mine .chat-bubble a { color: #fff; }
.chat-time { font-size: .7rem; color: var(--muted); margin: 2px 4px 0; }
.chat-seen { font-size: .7rem; color: var(--primary); font-weight: 700; margin: 0 4px; }
.chat-note { text-align: center; font-size: .85rem; color: var(--muted); margin: 8px auto; max-width: 440px; }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-compose textarea { resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; line-height: 1.35; }
.chat-compose .btn { border-radius: 22px; height: 44px; }
.chat-error { grid-column: 1 / -1; margin: 0; color: #b42318; }
.chat-error[hidden] { display: none; }
.chat-left { margin: -6px 16px 10px; }
.chat-blocked { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff8e6; }
.chat-blocked p { margin: 0; }
.chat-search { display: flex; gap: 10px; margin: 8px 0; }
.chat-search input { flex: 1; min-width: 0; }
.chat-people { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.chat-people li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (max-width: 760px) {
  .chat-section { padding-top: 12px; }
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 150px); min-height: 460px; border-radius: 12px; }
  .chat-app.has-conv .chat-list { display: none; }
  .chat-app:not(.has-conv) .chat-thread { display: none; }
  .chat-list { border-right: 0; }
  .chat-back { display: block; }
  .chat-msg { max-width: 88%; }
  .chat-compose .btn-lbl { display: none; }
  .chat-menu-pop { width: min(300px, calc(100vw - 48px)); }
}

/* ---- Classifieds (v1.23) ------------------------------------------------------------------ */
.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cl-fee-note { margin-left: auto; }
.cl-safety { border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--line)); background: color-mix(in srgb, var(--warning) 7%, var(--surface)); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.cl-safety h2 { font-size: 1rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; color: var(--warning); }
.cl-safety .icon { color: var(--warning); }
.cl-safety-body { font-size: .9rem; color: var(--ink-2); }
.cl-safety-compact summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.cl-safety-compact summary::-webkit-details-marker { display: none; }
.cl-safety-compact summary span { color: var(--ink-2); font-size: .9rem; }
.cl-safety-compact[open] .cl-safety-body { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cl-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.cl-cats-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 14px; }
.cl-cats-box summary { cursor: pointer; }
.cl-cats ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cl-cats ul ul { margin: 2px 0 6px 12px; border-left: 2px solid var(--line-2); padding-left: 8px; }
.cl-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.cl-cats a:hover, .cl-cats a.is-current { background: var(--primary-soft); color: var(--primary); }
.cl-count { color: var(--muted); font-size: .8rem; }
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cl-filters input[type=search] { flex: 1 1 220px; }
.cl-filters input[type=number] { width: 110px; }
.cl-filters input[type=text] { width: 150px; }
.cl-card .card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.cl-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.cl-card .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.cl-card h3 { font-size: 1rem; margin: 2px 0 6px; line-height: 1.3; }
.cl-card h3 a { color: var(--ink); text-decoration: none; }
.cl-card.is-sold img { filter: grayscale(.7); opacity: .8; }
.cl-price { font-weight: 800; color: var(--primary-ink); margin: 0; }
.cl-price-lg { font-size: 1.6rem; }
.cl-type { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .75rem; padding: 4px 9px; border-radius: 999px; }
.cl-type-free { background: var(--success); color: #fff; }
.cl-type-wanted { background: var(--primary); color: #fff; }
.cl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.cl-photo-main { position: relative; margin: 0; background: var(--line-2); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.cl-photo-main img { width: 100%; height: 100%; object-fit: contain; }
.cl-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cl-thumb { width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.cl-thumb.is-current { border-color: var(--primary); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-facts { margin: 18px 0; }
.cl-meta { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; color: var(--ink-2); font-size: .93rem; }
.cl-meta li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl-desc { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.cl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: flex-start; }
.cl-tools .btn.is-on { background: var(--primary-soft); }
.cl-report form { display: grid; gap: 6px; margin-top: 8px; min-width: min(320px, 100%); }
.cl-report summary { list-style: none; }
.cl-report summary::-webkit-details-marker { display: none; }
.cl-seller { display: grid; gap: 12px; margin-bottom: 16px; }
.cl-seller-head { display: flex; gap: 12px; align-items: center; }
.cl-seller-head > div { display: grid; }
.cl-contact { display: grid; gap: 8px; }
.cl-contact textarea { width: 100%; }
[data-word-count].is-over, .chat-words.is-over { color: var(--danger); font-weight: 600; }
.btn-block { width: 100%; justify-content: center; }
.cl-mine-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cl-mine-actions form { margin: 0; }
.cl-mine .ad-item { grid-template-columns: 140px 1fr auto; }
.cl-noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--line-2); border-radius: 6px; color: var(--muted); }
.cl-st-active { background: color-mix(in srgb, var(--success) 15%, #fff); color: var(--success); }
.cl-st-pending_payment, .cl-st-pending_review { background: color-mix(in srgb, var(--warning) 15%, #fff); color: var(--warning); }
.cl-st-removed, .cl-st-rejected { background: color-mix(in srgb, var(--danger) 12%, #fff); color: var(--danger); }
.cl-types { display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; padding: 0; }
.cl-types legend, .cl-contact-opts legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.cl-contact-opts { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.cl-edit-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cl-edit-photo { display: grid; gap: 4px; width: 110px; font-size: .85rem; }
.cl-edit-photo img { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; }
.cl-saved.is-gone { opacity: .6; }
.cl-saved form { margin-top: 6px; }
.chat-about { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-size: .9rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .cl-layout, .cl-detail { grid-template-columns: 1fr; }
  .cl-cats-box:not([open]) { padding-bottom: 12px; }
  .cl-fee-note { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .cl-mine .ad-item { grid-template-columns: 90px 1fr; }
  .cl-mine .ad-item > div:last-child { grid-column: 1 / -1; text-align: left !important; }
  .cl-filters input[type=number], .cl-filters input[type=text], .cl-filters select { flex: 1 1 45%; width: auto; }
}
/* Classifieds extras (v1.23) */
.cl-feat { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 4px; align-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .75rem; padding: 4px 9px; border-radius: 999px; }
.cl-feat .icon { width: 14px; height: 14px; }
.cl-feat-inline { position: static; vertical-align: middle; font-size: .8rem; }
.cl-card.is-featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.cl-featured { background: var(--accent-soft); border-radius: var(--radius); padding: 14px; margin: 0 0 22px; }
.cl-featured h2 { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.cl-stars { color: #d5d0c4; letter-spacing: 1px; white-space: nowrap; }
.cl-stars .on { color: #e8a317; }
.cl-stars .half { background: linear-gradient(90deg, #e8a317 50%, #d5d0c4 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-rating-big { font-size: 1.1rem; }
.cl-rating-big strong { font-size: 2rem; margin-right: 6px; }
.cl-dist { display: grid; gap: 3px; font-size: .82rem; margin-bottom: 10px; }
.cl-dist > div { display: grid; grid-template-columns: 28px 1fr 28px; gap: 6px; align-items: center; }
.cl-dist-bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.cl-dist-bar span { display: block; height: 100%; background: #e8a317; }
.cl-review { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
.cl-reply { background: var(--line-2); border-radius: 8px; padding: 8px 10px; margin: 4px 0 0; }
.cl-rate form { display: grid; gap: 8px; }
.cl-star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.cl-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-star-input label { font-size: 1.9rem; line-height: 1; color: #d5d0c4; cursor: pointer; }
.cl-star-input input:checked ~ label, .cl-star-input label:hover, .cl-star-input label:hover ~ label { color: #e8a317; }
.cl-star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.cl-geo-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.is-error { border-color: var(--danger); color: var(--danger); }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; }
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cl-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 2px; }
.cl-kpi span { color: var(--muted); font-size: .85rem; }
.cl-kpi strong { font-size: 1.7rem; line-height: 1.2; }
.cl-kpi small { color: var(--ink-2); }
.cl-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 160px; border-bottom: 1px solid var(--line); }
.cl-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.cl-bar span { display: block; width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 0; }
.cl-bar i { position: absolute; left: 50%; bottom: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.cl-chart-axis { display: flex; justify-content: space-between; margin-top: 12px; }
.cl-legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.cl-legend-v { background: var(--primary); }
.cl-legend-c { background: var(--accent); border-radius: 50%; }
.cl-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; margin-bottom: 12px; }
.cl-filters > * { width: 100%; margin: 0; min-width: 0; }
.cl-filters input[type=search] { grid-column: 1 / -1; }
.cl-filters select, .cl-filters input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.cl-filters input[type=number], .cl-filters input[type=text] { width: 100%; }
.cl-filters .btn { justify-content: center; }
.cl-featured h2 { font-size: 1.05rem; font-family: var(--font); font-weight: 700; }
.cl-featured h2 .icon { width: 18px; height: 18px; color: var(--accent-ink); }
@media (max-width: 600px) { .cl-filters { grid-template-columns: 1fr 1fr; } }
.cl-section h2.h4, .cl-detail-main h2.h4 { font-size: 1.3rem; margin: 22px 0 8px; }
.cl-seller h2.h5, .cl-rate h2.h5, .panel h2.h5 { font-size: 1.05rem; font-family: var(--font); margin: 0 0 10px; }

/* ---- v1.24: two-step sign-in, privacy ---------------------------------------------------- */
.tfa-code { font-size: 1.5rem; letter-spacing: .25em; font-family: ui-monospace, Menlo, monospace; text-align: center; max-width: 220px; }
.tfa-qr { margin: 12px 0; display: block; width: max-content; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.tfa-qr svg { width: 200px; height: 200px; display: block; }
.tfa-secret { word-break: break-all; font-size: .95rem; }
.tfa-steps { padding-left: 20px; display: grid; gap: 14px; }
.tfa-confirm, .tfa-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tfa-inline input[type=password] { flex: 1 1 220px; }
.tfa-code-list { columns: 2; font-size: 1.1rem; padding-left: 24px; }
.tfa-code-list code { letter-spacing: .05em; }
.tfa-codes { border: 2px solid var(--accent); }
.tfa-devices { list-style: none; padding: 0; display: grid; gap: 6px; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(.92); color: #fff; }
@media print { .tfa-codes { border: 0; } }

/* ---- v1.25: certificates, notifications ---- */
.cert-panel { border-left: 4px solid var(--accent); }
.cert-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.push-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- v1.26: albums shown as pictures with their name along the bottom ---- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.album-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 30px; }
.album-link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.album-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.album-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); box-shadow: var(--shadow); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.album-link:hover .album-tile img, .album-pick:hover .album-tile img { transform: scale(1.04); }
.album-tile-ph { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 28px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-ink)); }
.album-tile-ph .icon { width: 40px; height: 40px; opacity: .55; }
.album-tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; color: #fff; font-weight: 700; line-height: 1.25; font-size: 1.02rem;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.45) 60%, rgba(0,0,0,0)); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.album-tile-name small { display: block; font-weight: 500; font-size: .8rem; opacity: .9; margin-top: 2px; }
.album-grid-sm .album-tile-name { font-size: .92rem; padding: 20px 10px 8px; }
.album-link.is-current .album-tile { box-shadow: 0 0 0 3px var(--primary), var(--shadow); }
.album-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.album-pick { position: relative; display: block; cursor: pointer; border-radius: var(--radius); }
.album-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.album-pick .album-tile { aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.album-pick .album-tile-name { font-size: .9rem; padding: 20px 10px 8px; }
.album-pick input:checked + .album-tile { box-shadow: 0 0 0 3px var(--primary), 0 6px 16px rgba(0,0,0,.15); }
.album-pick input:checked + .album-tile::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.album-pick input:focus-visible + .album-tile { outline: 3px solid var(--primary-tint); outline-offset: 3px; }
.album-picker-one { grid-template-columns: minmax(150px, 220px); }
.media-post-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.media-cats-title, h2.h4.media-cats-title { margin: 0 0 14px; font-size: 1.15rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
@media (max-width: 480px) { .album-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .album-picker { grid-template-columns: 1fr 1fr; } .album-tile-name { font-size: .9rem; padding: 20px 10px 8px; } }
.cl-pick-group { border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; background: var(--surface); }
.cl-pick-group > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; cursor: pointer; font-weight: 700; }
.cl-pick-group > summary::-webkit-details-marker { display: none; }
.cl-pick-group > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.cl-pick-group[open] > summary::after { transform: rotate(180deg); }
.cl-pick-group > summary img, .cl-pick-ph { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.cl-pick-ph { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-ink)); }
.cl-pick-ph .icon { width: 20px; height: 20px; }
.cl-pick-group .album-picker { padding: 0 12px 12px; margin: 0; }
.cl-cat-tiles { margin: 18px 0 24px; }

/* v1.26.2: directories */
.dir-list .dir-thumb { width: 45px; height: 45px; max-width: 45px; max-height: 45px; border-radius: 50%; object-fit: cover; padding: 0; }
.dir-list .dir-desig { display: block; font-size: .88rem; }
.member-card .dir-desig { margin: 2px 0 6px; }
.dir-chat { margin-top: 8px; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
