/* PIBN portal: the poster's deep green and the logo's gold on warm cream, the same on every phone. */
:root {
  --green: #0c2d24;
  --green-2: #14513d;
  --gold: #a8832a;
  --gold-soft: #f6eedb;
  --ok: #1f7a4d;
  --danger: #b3261e;
  --bg: #f7f3ea;
  --card: #fffdf8;
  --ink: #1d221f;
  --muted: #68675e;
  --line: #e6dfcf;
  --soft: #efe9db;
  --radius: 10px;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #dbe9e1; }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--green); }
.boot img { width: 120px; height: auto; border-radius: 50%; }

/* ---------- Layout ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--green); padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; }
.top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.top .brand-link img { width: 42px; height: 42px; border-radius: 50%; }
.top .t { font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.15; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.top .sp { flex: 1; }
.top .me { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 600; font-size: .78rem; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); flex: none; }
.top .me img { width: 100%; height: 100%; object-fit: cover; }
.top .adm { color: #fff; text-decoration: none; font-size: .82rem; font-weight: 500; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; white-space: nowrap; }
.top .adm:hover { border-color: #fff; }
.topnav { display: none; }
@media (min-width: 900px) {
  .topnav { display: flex; gap: 22px; margin-left: 24px; align-self: stretch; }
  .topnav a { display: flex; align-items: center; color: rgba(255,255,255,.72); text-decoration: none; font-weight: 500; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -8px; }
  .topnav a:hover { color: #fff; }
  .topnav a.on { color: #fff; border-bottom-color: var(--gold); }
  nav.bottom { display: none; }
}
@media (max-width: 599px) { .top .t { font-size: .84rem; } .top .brand-link img { width: 36px; height: 36px; } }
@media (max-width: 380px) { .top .t { display: none; } }
main { max-width: 1080px; margin: 0 auto; padding: 20px 16px calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { main { padding: 32px 24px 64px; } h1 { font-size: 1.9rem; } }
nav.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.bottom .in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
nav.bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px; font-size: .68rem; font-weight: 500; line-height: 1.1; text-align: center; color: var(--muted); text-decoration: none; }
nav.bottom a svg { width: 21px; height: 21px; stroke-width: 1.7; }
nav.bottom a.on { color: var(--green-2); }

/* ---------- Building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.card.soft { background: var(--soft); border-color: transparent; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; gap: 28px; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .76rem; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.sec-h h2 { margin: 0; }
.sec-h a, .sec-h .link-btn { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--muted); }
.sec-h a:hover { color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--gold-soft); color: #7a5d17; white-space: nowrap; }
.badge.green { background: #e3f0e8; color: var(--ok); }
.badge.grey { background: var(--soft); color: var(--muted); }
.badge.red { background: #fbe9e7; color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .8rem; color: var(--ink); text-decoration: none; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on .muted { color: rgba(255,255,255,.7); }
.chip .x { cursor: pointer; opacity: .7; }
.tabs { display: flex; gap: 22px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 0; color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: .9rem; cursor: pointer; text-decoration: none; color: var(--ink); min-height: 40px; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 11px; min-height: 32px; font-size: .82rem; border-radius: 7px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 6px; line-height: 1; }
.icon-btn:hover { color: var(--ink); background: var(--soft); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.link-btn { background: none; border: 0; color: var(--green-2); font-weight: 500; cursor: pointer; padding: 4px 0; text-decoration: none; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }

label.f, div.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-height: 40px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(20,81,61,.14); }
input:disabled { background: var(--soft); color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.form-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
legend { font-weight: 600; font-size: 1rem; margin-bottom: 12px; padding: 0; float: left; width: 100%; }
legend + * { clear: both; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.av { width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; background: var(--soft); color: var(--muted); display: grid; place-items: center; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 96px; height: 96px; font-size: 1.6rem; }
.av.sm { width: 32px; height: 32px; font-size: .72rem; }
.av.xs { width: 24px; height: 24px; font-size: .6rem; }

/* ---------- Home ---------- */
/* Hero in the poster style: deep green, big white caps, the logo in a white circle. */
.hero { background: var(--green); color: #fff; margin: -20px -16px 14px; padding: 26px 16px 22px; display: flex; align-items: center; gap: 18px; }
.hero h1 { color: #fff; font-size: 1.7rem; margin: 0 0 4px; }
.hero p { margin: 0; color: rgba(255,255,255,.8); }
.hero .kick { font-family: var(--display); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-size: .72rem; color: #d9bd74; margin-bottom: 8px; }
.hero .seal { flex: none; width: 92px; height: 92px; border-radius: 50%; background: #fff; padding: 4px; }
.hero .seal img { width: 100%; height: 100%; border-radius: 50%; }
.banner { background: var(--green); margin: -20px -16px 0; padding: 18px 16px 14px; }
.banner h1 { color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; }
.banner p { color: rgba(255,255,255,.75); margin: 2px 0 0; font-size: .88rem; }
.banner + .tabs { background: var(--green); border-bottom: 0; margin-top: 0; }
.banner + .tabs a { color: rgba(255,255,255,.7); }
.banner + .tabs a.on { color: #fff; }
.banner.solo { margin-bottom: 16px; }
@media (min-width: 900px) {
  .hero { margin: 0 0 16px; padding: 34px; border-radius: var(--radius); }
  .hero h1 { font-size: 2.3rem; }
  .hero .seal { width: 140px; height: 140px; }
  .banner { margin: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 24px 14px; }
  .banner.solo { border-radius: var(--radius); }
  .banner + .tabs { margin: 0 0 18px; padding: 0 24px; border-radius: 0 0 var(--radius) var(--radius); }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { margin: 0; padding: 12px; text-decoration: none; color: inherit; }
.stat span { display: block; font-size: .74rem; color: var(--muted); }
.stat b { font-family: var(--display); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nudge { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.meter { height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.meter > i { display: block; height: 100%; background: var(--gold); }
.install { display: flex; align-items: center; gap: 12px; }
.install img { width: 40px; height: 40px; border-radius: 9px; }
.steps { padding-left: 1.2em; margin: 0 0 10px; display: grid; gap: 8px; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: .85em; }
.approval-nudge { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; border-left: 4px solid var(--gold); }
.adm-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; }

/* ---------- Directory and profiles ---------- */
.filters { display: grid; gap: 8px; }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1fr 1fr; } }
.people { display: grid; gap: 10px; }
@media (min-width: 640px) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .people { grid-template-columns: 1fr 1fr 1fr; } }
.person { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; margin: 0; transition: border-color .15s; }
.person:hover { border-color: var(--ink); }
.person .nm { font-weight: 600; }
.person .jb { font-size: .85rem; color: var(--muted); }
.person .chips { margin-top: 8px; }
.profile-head { text-align: center; }
.profile-head .av { margin: 0 auto 12px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
dl.kv { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; } }

/* Contact QR codes */
.qr { flex: none; display: block; width: 58px; height: 58px; padding: 2px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-wrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.qr-wrap:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; border-radius: 6px; }
.qr-cta { font-size: .66rem; font-weight: 600; color: var(--green-2); text-decoration: underline; text-underline-offset: 2px; text-align: center; line-height: 1.2; max-width: 72px; }
.qr-profile .qr-cta { font-size: .9rem; max-width: none; }
.qr-profile { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; }
.qr.lg { width: 150px; height: 150px; padding: 4px; }
.qrbig { background: #fff; border-radius: 8px; padding: 10px; max-width: 320px; margin: 0 auto 10px; }
.qrbig svg { width: 100%; height: auto; display: block; }

/* ---------- Lists and tables ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .74rem; color: var(--muted); font-weight: 500; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

/* ---------- Events ---------- */
.event-date { width: 54px; flex: none; text-align: center; background: var(--green); color: #fff; border-radius: 8px; padding: 6px 0; line-height: 1.15; }
.event-date b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.event-date span { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.event-date.past { background: var(--soft); color: var(--muted); }
.event-date.past span { color: var(--muted); }
.ev-poster { flex: none; width: 66px; height: 56px; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.ev-poster img { width: 100%; height: 100%; object-fit: cover; }
.ev.cancelled h3 { text-decoration: line-through; }
.ev.draft { border-style: dashed; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; }
.rsvp button { flex: 1; }
.rsvp .on { background: var(--green); border-color: var(--green); color: #fff; }
.rsvp .on.no { background: var(--soft); border-color: var(--line); color: var(--ink); }
.guests { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; }
.guests select { width: auto; min-height: 32px; padding: 4px 8px; }
.poster-view { display: block; width: 100%; max-width: 560px; margin: 0 auto 14px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); cursor: zoom-in; }
.poster-view img { width: 100%; height: auto; }
.lightbox img { max-height: 76vh; margin: 0 auto; border-radius: 6px; }
.going { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* Planner: twelve months, each with its events or a gap to fill */
.months { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .months { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .months { grid-template-columns: repeat(3, 1fr); } }
.month { margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.month.gap { border-style: dashed; background: transparent; }
.month.now { border-color: var(--gold); }
.month h3 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.mev { display: block; text-decoration: none; color: inherit; padding: 8px 10px; border-radius: 8px; background: var(--soft); }
.mev:hover { background: var(--gold-soft); }
.mev b { display: block; font-size: .9rem; }
.tasks .list > li { padding: 8px 0; }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.task input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.task .due.late { color: var(--danger); font-weight: 600; }
.task-progress { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.task-progress .meter { flex: 1; margin: 0; }
.poster-maker { display: grid; gap: 18px; }
@media (min-width: 900px) { .poster-maker { grid-template-columns: 1fr 420px; align-items: start; } }
.poster-maker canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }

/* ---------- News ---------- */
.news { display: grid; gap: 12px; }
@media (min-width: 760px) { .news.grid2 { grid-template-columns: 1fr 1fr; } }
.story { display: flex; gap: 14px; margin: 0; text-decoration: none; color: inherit; transition: border-color .15s; }
a.story:hover { border-color: var(--ink); }
.story .thumb { width: 96px; height: 96px; flex: none; border-radius: 8px; overflow: hidden; background: var(--soft); }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story h3 { margin: 2px 0 4px; font-size: 1rem; line-height: 1.3; }
.story .meta { font-size: .76rem; color: var(--muted); }
.story.pinned { border-left: 4px solid var(--gold); }
.article-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.md h1, .md h2, .md h3 { margin-top: 1.1em; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 .75em; }
.md p:last-child { margin-bottom: 0; }

/* ---------- Sponsors and adverts ---------- */
.tier-h { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; color: var(--gold); margin: 22px 0 10px; font-weight: 700; }
.sponsors { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .sponsors { grid-template-columns: repeat(3, 1fr); } }
.sponsors.big { grid-template-columns: 1fr; }
@media (min-width: 760px) { .sponsors.big { grid-template-columns: 1fr 1fr; } }
.sponsor { margin: 0; text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .15s; }
a.sponsor:hover { border-color: var(--ink); }
.slogo { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #fff; border-radius: 6px; padding: 10px; }
.slogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slogo .ini { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--green-2); }
.sname { font-weight: 600; font-size: .92rem; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.strip a { flex: none; width: 120px; height: 68px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 8px; text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 600; text-align: center; }
.strip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ad { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; text-decoration: none; color: inherit; border-color: var(--gold); background: var(--gold-soft); position: relative; }
.ad .lab { position: absolute; top: 6px; right: 10px; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: #7a5d17; }
.ad .thumb { width: 84px; height: 84px; flex: none; border-radius: 8px; overflow: hidden; background: #fff; }
.ad .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad b { display: block; font-size: 1rem; }
.ads { display: grid; gap: 12px; }
@media (min-width: 760px) { .ads { grid-template-columns: 1fr 1fr; } }
.ads .ad { margin: 0; }

/* ---------- Committee ---------- */
.leaders { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .leaders { grid-template-columns: repeat(4, 1fr); } }
.leader { text-align: center; padding: 20px 12px; margin: 0; text-decoration: none; color: inherit; transition: border-color .15s; }
a.leader:hover { border-color: var(--ink); }
.leader .ph { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 1.4rem; font-weight: 600; border: 2px solid var(--gold); }
.leader .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader .role { font-size: .72rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.leader .who { font-weight: 600; margin-top: 2px; }

/* ---------- Admin ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button, .seg a { border: 0; background: none; padding: 6px 14px; font-weight: 500; font-size: .84rem; cursor: pointer; color: var(--muted); text-decoration: none; }
.seg > * + * { border-left: 1px solid var(--line) !important; }
.seg .on { background: var(--soft); color: var(--ink); }
.invite-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 10px 0 4px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.thumb-sm { width: 42px; height: 42px; border-radius: 6px; overflow: hidden; background: #fff; display: grid; place-items: center; flex: none; border: 1px solid var(--line); font-size: .7rem; font-weight: 700; color: var(--muted); }
.thumb-sm img { width: 100%; height: 100%; object-fit: contain; }
.waiting { border-color: var(--gold); border-left: 4px solid var(--gold); }

/* ---------- Asks, jobs, spotlight, gallery ---------- */
.ask.sorted { opacity: .72; }
.ask-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ask-replies { margin-top: 10px; border-top: 1px solid var(--line); }
.ask-replies > li { align-items: flex-start; }
.ask-replies .chip { display: inline-flex; margin-top: 4px; }
.spotlight { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; border-left: 4px solid var(--gold); }
.kick { font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .68rem; color: var(--gold); }
.hero .kick { letter-spacing: .32em; font-size: .72rem; color: #d9bd74; margin-bottom: 8px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(5, 1fr); gap: 6px; } }
.gal button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 4px; cursor: pointer; background: var(--soft); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.gal button:hover img { opacity: .88; }
.card .gal { grid-template-columns: repeat(3, 1fr); }

/* Sponsor report prints as a clean page */
@media print {
  .top, nav.bottom, .noprint, #toast { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  .stat { border: 1px solid #ccc; }
}

.update-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 64px); z-index: 70; border: 0; border-radius: 999px;
  background: var(--gold); color: #fff; font-weight: 600; font-size: .88rem; padding: 10px 18px; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------- Modal and toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(10,20,16,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { background: var(--card); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal { border-radius: 12px; } }
.modal.wide { max-width: 760px; }
.modal.xl { max-width: 1120px; }
.modal .mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal .mh h2 { margin: 0; font-size: 1.1rem; }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px; font-size: .88rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); color: #fff; }
@media (min-width: 900px) { #toast { bottom: 28px; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px;
  background: radial-gradient(circle at 80% 85%, rgba(168,131,42,.22), transparent 45%), var(--green); }
.login .box { width: 100%; max-width: 400px; }
.login .brand { text-align: center; color: #fff; margin-bottom: 20px; }
.login .brand img { width: 136px; height: 136px; margin: 0 auto 16px; border-radius: 50%; background: #fff; padding: 4px; }
.login .brand h1 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.login .brand p { color: #d9bd74; margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: .74rem; }
.login .card { padding: 22px; border: 0; }
.login .card h2 { font-size: 1.1rem; }
.install-link { display: block; margin: 14px auto 0; color: #fff; opacity: .9; font-weight: 500; }
.namelist { max-height: 46vh; overflow: auto; margin: 8px -6px 12px; }
.namelist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 500; }
.namelist button:hover { background: var(--soft); }
.pin { letter-spacing: .45em; text-align: center; font-size: 1.3rem; }
