/* ===========================================================================
   WAB Community — stylesheet
   Light platform: white surfaces, ink text, WAB green used as an accent for
   brand moments (active nav, headings, the member card) rather than as the
   page. Burnt orange is the action colour; crimson is destructive only.
   =========================================================================== */

/* --- New Kansas -----------------------------------------------------------
   New Kansas is a licensed font (Newglyph) and is NOT bundled with this build.
   Drop the webfont files into assets/fonts/ with these exact names and every
   heading switches over automatically. Until then the stack falls back.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "New Kansas";
  src: url("../fonts/NewKansas-Medium.woff2") format("woff2"),
       url("../fonts/NewKansas-Medium.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "New Kansas";
  src: url("../fonts/NewKansas-Bold.woff2") format("woff2"),
       url("../fonts/NewKansas-Bold.woff") format("woff");
  font-weight: 601 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --green:        #053219;
  --green-mid:    #0B4A28;
  --green-soft:   #EAF0EC;
  --cream:        #F2E5DE;
  --cream-soft:   #FBF5F2;
  --orange:       #B4491A;
  --orange-lift:  #CB5520;
  --orange-soft:  #FBEEE7;
  --crimson:      #971C25;
  --crimson-soft: #FBECEC;

  /* surfaces */
  --page:    #FFFFFF;
  --canvas:  #FAF8F7;
  --surface: #FFFFFF;
  --line:    #ECE7E3;
  --line-2:  #E0D9D4;

  /* ink */
  --ink:     #191817;
  --ink-2:   #56504B;
  --ink-3:   #8A827B;

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(25,24,23,.05), 0 8px 24px -16px rgba(25,24,23,.22);
  --shadow-lg: 0 24px 60px -30px rgba(5,50,25,.42);
  --maxw:      1220px;
  --nav-h:     62px;

  --display: "New Kansas", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { background: var(--canvas); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--green);
  margin: 0 0 .4em;
  line-height: 1.14;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(29px, 4.2vw, 44px); letter-spacing: -.03em; }
h2 { font-size: clamp(21px, 2.6vw, 29px); letter-spacing: -.026em; }
h3 { font-size: 18px; }

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.muted  { color: var(--ink-2); }
.small  { font-size: 13px; }
.mono   { font-family: var(--mono); }
.center { text-align: center; }
.hide   { display: none !important; }

/* ------------------------------------------------------------------ shell */

.shell { display: flex; min-height: 100vh; }

.rail {
  width: 244px;
  flex: 0 0 244px;
  background: var(--page);
  border-right: 1px solid var(--line);
  padding: 22px 14px 90px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.rail .brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 24px; }
.rail .brand img { width: 56px; height: auto; flex: none; }
.rail .brand span {
  font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; color: var(--green);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.navlink {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.navlink:hover { background: var(--canvas); color: var(--ink); }
.navlink.on { background: var(--green); color: #fff; font-weight: 600; }
.navlink .ic { width: 20px; display: flex; align-items: center; justify-content: center; }
.navlink .dot {
  margin-left: auto; background: var(--orange); color: #fff;
  border-radius: 20px; font-size: 11px; padding: 1px 7px;
  font-family: var(--mono); line-height: 1.5;
}

.main { flex: 1; min-width: 0; padding: 26px 24px 120px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 640px; margin: 0 auto; }

.topbar { display: none; }
.bottomnav { display: none; }

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card + .card { margin-top: 14px; }

.card.dark, .paper-card {
  background: var(--green);
  color: var(--cream);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card.dark h1, .card.dark h2, .card.dark h3 { color: var(--cream); }
.card.dark .eyebrow, .card.dark .muted { color: rgba(242,229,222,.72); }

.grid { display: grid; gap: 14px; align-items: start; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 12px; }

/* ----------------------------------------------------------------- inputs */

label.f { display: block; margin-bottom: 14px; }
label.f > span {
  display: block; margin-bottom: 7px;
  font-family: var(--body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .05em; color: var(--ink-2);
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--page);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
textarea { resize: vertical; min-height: 92px; }

select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A827B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
  padding-right: 34px;
}
input[type=file] {
  padding: 10px; background: var(--canvas);
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); width: 100%;
}

.card.dark input, .card.dark select, .card.dark textarea {
  background: rgba(0,0,0,.24); border-color: rgba(242,229,222,.22); color: var(--cream);
}
.card.dark label.f > span { color: rgba(242,229,222,.6); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  background: var(--orange);
  color: #fff;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--orange-lift); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--canvas); }
.btn.green { background: var(--green); }
.btn.green:hover { background: var(--green-mid); }
.btn.danger { background: var(--crimson); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card.dark .btn.ghost, .wabcard .btn.ghost { border-color: rgba(242,229,222,.34); color: var(--cream); }
.card.dark .btn.cream, .wabcard .btn.cream { background: var(--cream); color: var(--green); }

/* ------------------------------------------------------------------ chips */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
}
.chip.on      { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }
.chip.orange  { background: var(--orange-soft); border-color: #F0D5C6; color: var(--orange); }
.chip.crimson { background: var(--crimson-soft); border-color: #F0D2D4; color: var(--crimson); }
.chip.green   { background: var(--green-soft); border-color: #D5E2D9; color: var(--green); }
.card.dark .chip, .wabcard .chip { background: rgba(242,229,222,.12); border-color: rgba(242,229,222,.2); color: var(--cream); }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; }

/* ------------------------------------------------------------------ flash */

.flash { margin-bottom: 14px; }
.flash div {
  padding: 11px 15px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  color: var(--ink);
  margin-bottom: 8px; font-size: 14px;
}
.flash div.err { border-left-color: var(--crimson); background: var(--crimson-soft); }

/* ---------------------------------------------------------------- avatars */

.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--green-soft); }
.av.s28 { width: 28px; height: 28px; }
.av.s40 { width: 40px; height: 40px; }
.av.s48 { width: 48px; height: 48px; }
.av.s56 { width: 56px; height: 56px; }
.av.s96 { width: 96px; height: 96px; }
.av.s128{ width: 128px; height: 128px; }

.av-ph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); color: var(--green); background: var(--green-soft);
}
.av-ph.s28 { font-size: 12px; } .av-ph.s40 { font-size: 16px; } .av-ph.s48 { font-size: 19px; }
.av-ph.s56 { font-size: 21px; } .av-ph.s96 { font-size: 36px; } .av-ph.s128 { font-size: 46px; }

.story-ring { padding: 2.5px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--crimson)); display: inline-block; }
.story-ring .av { border: 2px solid var(--page); }

/* ------------------------------------------------------------- WAB CUP -- */

.cup { display: block; }
.cup .liquid { transition: transform .9s cubic-bezier(.22,1,.36,1); }
.cup-wrap { display: flex; align-items: center; gap: 16px; }
.cup-meta .n { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--green); letter-spacing: -.03em; }
.cup-meta .n small { font-size: 16px; color: var(--ink-3); }
.card.dark .cup-meta .n, .wabcard .cup-meta .n { color: var(--cream); }

.pips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.pip { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); }
.pip.on { background: var(--orange); border-color: var(--orange); }
.card.dark .pip { border-color: rgba(242,229,222,.4); }

/* --------------------------------------------------------------- progress */

.bar { height: 7px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .6s ease; }
.card.dark .bar, .wabcard .bar { background: rgba(0,0,0,.28); }

/* ------------------------------------------------------------------ posts */

.post {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.post .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post .head .who { font-weight: 600; font-size: 14px; }
.post .head .sub { font-size: 11.5px; color: var(--ink-3); }
.post .media { background: var(--canvas); }
.post .media img, .post .media video { width: 100%; max-height: 640px; object-fit: cover; }
.post .body { padding: 12px 14px 15px; }
.post .acts { display: flex; gap: 16px; align-items: center; margin-bottom: 9px; }
.post .acts button, .post .acts a {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-2); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center;
}
.post .acts button:hover { color: var(--ink); }
.post .acts .liked { color: var(--crimson); }
.post .cap { font-size: 14.5px; }
.post .cap a.tag { color: var(--orange); font-weight: 500; }

.tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--canvas); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .ov {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px;
  background: rgba(5,50,25,.6); color: #fff; opacity: 0; transition: opacity .18s; font-size: 13px;
}
.tile:hover .ov { opacity: 1; }
.tile .badge { position: absolute; top: 7px; right: 7px; }
.tilegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* --------------------------------------------------------------- stories */

.storystrip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; -webkit-overflow-scrolling: touch; }
.storystrip::-webkit-scrollbar { display: none; }
.storystrip .s { text-align: center; width: 70px; flex: none; }
.storystrip .s .nm { font-size: 11px; color: var(--ink-2); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- member card -- */

.wabcard {
  background: var(--green);
  color: var(--cream);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.wabcard::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  background: rgba(242,229,222,.05);
}
.wabcard h2 { color: var(--cream); }
.wabcard .eyebrow { color: rgba(242,229,222,.6); }
.wabcard .small.muted, .wabcard .muted { color: rgba(242,229,222,.72); }
.wabcard .id { font-family: var(--mono); font-size: 15px; letter-spacing: .18em; color: #E7A57F; }
.wabcard .qrbox { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; }

/* ------------------------------------------------------------- rewards -- */

.coupon {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius); padding: 16px 18px;
  position: relative; overflow: hidden;
}
.coupon.spent { opacity: .6; border-left-color: var(--line-2); }
.coupon .code { font-family: var(--mono); font-size: 20px; letter-spacing: .18em; color: var(--crimson); font-weight: 700; }
.coupon .terms { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.coupon .perf { display: none; }

/* ---------------------------------------------------------------- tables */

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; padding: 9px 10px;
  font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--canvas); }
.tblscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ kpis */

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .lbl { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi .val { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; margin-top: 6px; color: var(--green); letter-spacing: -.03em; }
.kpi .sub { font-size: 12px; color: var(--ink-2); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.spark i { flex: 1; background: var(--orange); border-radius: 3px 3px 0 0; min-height: 2px; }

/* ----------------------------------------------------------------- empty */

.empty { text-align: center; padding: 52px 20px; color: var(--ink-2); }
.empty .big { font-family: var(--display); font-weight: 600; font-size: 23px; color: var(--green); margin-bottom: 8px; letter-spacing: -.02em; }

/* ------------------------------------------------------------- scan page */

.scanbox { background: #000; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scanbox .reticle {
  position: absolute; inset: 18%;
  border: 2px solid rgba(255,255,255,.9); border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(5,50,25,.4);
}
.scanresult { border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.scanresult.ok  { background: var(--green-soft); border-color: #CFE0D5; }
.scanresult.bad { background: var(--crimson-soft); border-color: #F0D2D4; }
.scanresult h3 { color: var(--green); }
.scanresult.bad h3 { color: var(--crimson); }

/* ----------------------------------------------------------------- login */

.split { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }

.split .left {
  background: var(--green); color: var(--cream);
  padding: 44px 48px; display: flex; flex-direction: column; gap: 34px;
  justify-content: space-between; position: relative; overflow: hidden;
}
/* a soft warm wash so the panel is not a flat block of green */
.split .left::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(180,73,26,.30), transparent 62%),
    radial-gradient(560px 420px at -12% 108%, rgba(242,229,222,.10), transparent 60%);
  pointer-events: none;
}
.split .left > * { position: relative; z-index: 1; }
.split .left h1, .split .left h2 { color: var(--cream); }
.split .left .eyebrow { color: rgba(242,229,222,.55); }
.split .left .muted { color: rgba(242,229,222,.74); }
.split .left .mark { width: 132px; height: auto; }
.split .left h1 { font-size: clamp(32px, 3.6vw, 48px); max-width: 15ch; line-height: 1.08; text-wrap: balance; }

/* the product, shown rather than described */
.authdemo { display: flex; flex-direction: column; gap: 22px; }
.minicard {
  background: rgba(242,229,222,.09);
  border: 1px solid rgba(242,229,222,.16);
  border-radius: 16px; padding: 18px; max-width: 380px;
  backdrop-filter: blur(6px);
}
.minicard .nm { font-family: var(--display); font-weight: 600; font-size: 19px; margin-top: 4px; }
.minicard .wid { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; color: #E7A57F; margin-top: 3px; }
.minicard .qrmock { background: #fff; padding: 6px; border-radius: 9px; line-height: 0; }
.minicard .qrmock svg { width: 68px; height: 68px; display: block; }

.authpoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; max-width: 380px; }
.authpoints li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; color: rgba(242,229,222,.9);
}
.authpoints li span {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242,229,222,.11); color: var(--cream);
}

.authstats { display: flex; gap: 32px; flex-wrap: wrap; }
.authstats div { display: flex; flex-direction: column; }
.authstats strong { font-family: var(--display); font-weight: 600; font-size: 27px; letter-spacing: -.02em; }
.authstats span { font-size: 12px; color: rgba(242,229,222,.6); }

.split .right {
  background: var(--page); padding: 46px 44px;
  display: flex; align-items: center; justify-content: center;
}
.split .right .box { width: 100%; max-width: 400px; }
.split .right .mark { width: 92px; height: auto; margin-bottom: 22px; }

.authdiv {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px; color: var(--ink-3); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.authdiv::before, .authdiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.facewall { display: flex; align-items: center; margin-top: 18px; }
.facewall .av { margin-right: -11px; border: 2px solid var(--page); }
.facewall span { margin-left: 22px; }

.invitebox {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: var(--orange-soft); border: 1px solid #F0D5C6;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px;
}

.authlinks { margin-top: 20px; font-size: 13.5px; color: var(--ink-2); }
.authlinks a { color: var(--orange); font-weight: 600; }

/* ------------------------------------------------------------------ chat */

.chatwrap {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  height: calc(100vh - 150px); min-height: 520px;
}
.chatlist { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.chatlist .hd { padding: 16px 16px 10px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.threadrow { display: flex; gap: 11px; padding: 11px 16px; align-items: center; border-bottom: 1px solid var(--line); }
.threadrow:hover { background: var(--canvas); }
.threadrow.on { background: var(--green-soft); }
.threadrow .tx { min-width: 0; flex: 1; }
.threadrow .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threadrow .pv { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threadrow.unread .pv { color: var(--ink); font-weight: 500; }
.threadrow .badge { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }

.chatmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }
.chathead {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); flex: none;
}
.chathead .back { display: none; }

.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px; -webkit-overflow-scrolling: touch; }
.msgs .daysep { text-align: center; margin: 14px 0; }
.msgs .daysep span { background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; padding: 3px 12px; border-radius: 999px; }

.bubble {
  max-width: min(74%, 520px); margin-bottom: 9px; padding: 9px 13px;
  border-radius: 18px; font-size: 14.5px; line-height: 1.45;
  word-wrap: break-word; overflow-wrap: anywhere;
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble.them { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me   { background: var(--green); color: var(--cream); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble img  { border-radius: 12px; margin: -2px 0 4px; max-height: 320px; object-fit: cover; }
.bubble .t   { font-size: 10.5px; opacity: .6; margin-top: 3px; text-align: right; font-family: var(--mono); }
.bubble.pending { opacity: .55; }

.composer {
  display: flex; gap: 9px; align-items: flex-end; padding: 11px 14px;
  background: var(--surface); border-top: 1px solid var(--line); flex: none;
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
}
.composer textarea {
  flex: 1; min-height: 42px; max-height: 140px; resize: none;
  border-radius: 22px; padding: 10px 16px; background: var(--canvas);
}
.composer .send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; flex: none;
  background: var(--orange); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.composer .attach {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--page); color: var(--ink-2); cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.composer input[type=file] { display: none; }
.attachname { font-size: 12px; color: var(--orange); padding: 0 16px 8px; }

/* an open conversation fills the viewport on tablet/desktop too, so the header
   and the message box stay put and only the message list scrolls.
   (mobile <=760px already does this via its own rules further down) */
@media (min-width: 761px) {
  body.chatting { overflow: hidden; }
  body.chatting .main { height: 100vh; padding: 22px 24px; display: flex; }
  body.chatting .wrap {
    height: 100%; width: 100%; max-width: 1100px; margin: auto;
    display: flex; flex-direction: column;
  }
  body.chatting .chatwrap { flex: 1; height: auto; min-height: 0; margin: 0; }
}

/* ----------------------------------------------------------------- admin */

body.admin .rail { background: var(--green); border-right: 0; }
body.admin .rail .brand span { color: var(--cream); }
body.admin .rail .brand img { }
body.admin .rail .eyebrow { color: rgba(242,229,222,.55); }
body.admin .rail .navlink { color: rgba(242,229,222,.8); }
body.admin .rail .navlink:hover { background: rgba(242,229,222,.09); color: var(--cream); }
body.admin .rail .navlink.on { background: var(--cream); color: var(--green); }

.togglerow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.togglerow:last-child { border-bottom: 0; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background .18s; }
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- store */

.storebar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--green); color: var(--cream);
  position: sticky; top: 0; z-index: 20;
}
.storebar img { width: 54px; height: auto; flex: none; }
.storebar .eyebrow { color: rgba(242,229,222,.6); }
.storebar .name { font-family: var(--display); font-size: 18px; }
.storebar nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.storebar nav a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: rgba(242,229,222,.8); }
.storebar nav a.on { background: var(--cream); color: var(--green); font-weight: 600; }
body.store select { background-color: var(--page); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .chatwrap { grid-template-columns: 1fr; }
  .chatwrap.has-thread .chatlist { display: none; }
  .chatwrap:not(.has-thread) .chatmain { display: none; }
  .chathead .back { display: inline-flex; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split .left { padding: 30px 24px 34px; gap: 24px; }
  .split .left h1 { font-size: 31px; }
  .split .left .mark { width: 96px; }
  .authdemo { display: none; }
  .split .right { padding: 30px 22px 44px; }
  .split .right .mark { display: none; }
}

@media (max-width: 900px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rail { display: none; }
  .main { padding: 12px 14px calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); }

  /* native-app chrome */
  .topbar {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .topbar img.mark { width: 48px; height: auto; flex: none; }
  .topbar .t { font-family: var(--display); font-size: 17px; color: var(--green); }
  .topbar .sp { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }

  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a {
    flex: 1; text-align: center; padding: 4px 0; color: var(--ink-3);
    font-size: 10px; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    transition: color .15s, transform .1s;
  }
  .bottomnav a.on { color: var(--green); font-weight: 600; }
  .bottomnav a:active { transform: scale(.94); }
  .bottomnav a .dot {
    position: absolute; top: 1px; left: 50%; margin-left: 6px;
    min-width: 8px; height: 8px; background: var(--orange); border-radius: 99px;
  }

  body.admin .topbar { background: var(--green); border-bottom: 0; }
  body.admin .topbar .t { color: var(--cream); }
  body.admin .topbar img.mark { }
  body.admin .topbar .sp { color: rgba(242,229,222,.8); }

  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kpi .val { font-size: 26px; }
  h1 { font-size: 26px; }
  .tilegrid { gap: 4px; }
  .card { padding: 15px; border-radius: 14px; }

  .wabcard .spread { flex-direction: column; align-items: stretch; }
  .wabcard .qrbox { align-self: center; margin-top: 16px; }

  /* a thread should behave like a chat app, not a web page */
  .chatwrap {
    height: calc(100vh - var(--nav-h) - 58px - env(safe-area-inset-bottom));
    border: 0; border-radius: 0; margin: -12px -14px 0; min-height: 0;
  }
  /* a thread takes the whole screen — the page chrome would be a second header */
  body.chatting .bottomnav { display: none; }
  body.chatting .topbar { display: none; }
  body.chatting .main { padding: 0; }
  body.chatting .chatwrap {
    margin: 0; height: 100vh; height: 100dvh;
  }
  body.chatting .chathead { padding-top: calc(12px + env(safe-area-inset-top)); }
  .bubble { max-width: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

@media print {
  .rail, .bottomnav, .topbar, .storebar, .noprint { display: none !important; }
  body { background: #fff !important; }
  .wabcard, .coupon { box-shadow: none; border: 1px solid #ddd; }
}

/* ===========================================================================
   Additions — story stage, typing indicator, counted badges, attachments,
   compression notes, and a mobile-friendly profile header.
   =========================================================================== */

/* ------------------------------------------------------- story viewer --- */
/* A full-bleed dark stage. It sets its own colours rather than inheriting the
   light theme, which is what left the close button black-on-black. */

body.stage { background: #0B0F0C; color: #F2E5DE; }
html:has(body.stage) { background: #0B0F0C; }

.storystage {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.storyinner { width: 100%; max-width: 440px; }

.storybar { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.storybar .av { background: rgba(242,229,222,.14); }
.storybar .av-ph { background: rgba(242,229,222,.14); color: #F2E5DE; }
.storybar .who { font-weight: 600; color: #F2E5DE; font-size: 14.5px; }
.storybar .when { font-size: 12px; color: rgba(242,229,222,.6); }
.storyclose {
  margin-left: auto; width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(242,229,222,.12);
  color: #F2E5DE; font-size: 24px; line-height: 1;
}
.storyclose:hover { background: rgba(242,229,222,.22); }

.storymedia {
  border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}
.storymedia img, .storymedia video { width: 100%; max-height: 74vh; object-fit: contain; display: block; }

.storycap { color: #F2E5DE; margin: 14px 2px 0; font-size: 15px; }
.storyfoot { display: flex; gap: 18px; margin-top: 16px; padding: 0 2px; }
.storyfoot a { color: rgba(242,229,222,.72); font-size: 13.5px; }
.storyfoot a:hover { color: #F2E5DE; }

/* ---------------------------------------------------- typing indicator -- */

.typing { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 9px; }
.typing .bubble.dots {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 12px 14px; margin: 0; max-width: none;
}
.typing .bubble.dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3); display: block;
  animation: typedot 1.25s infinite ease-in-out;
}
.typing .bubble.dots span:nth-child(2) { animation-delay: .16s; }
.typing .bubble.dots span:nth-child(3) { animation-delay: .32s; }
@keyframes typedot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

/* ------------------------------------------------------ counted badges -- */

.navlink .dot { min-width: 20px; text-align: center; }

.bellwrap { position: relative; display: inline-flex; }
.bellwrap .dot {
  position: absolute; top: -5px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  border: 2px solid var(--page);
}

/* the mobile tab bar shows the number, not just a dot */
@media (max-width: 760px) {
  .bottomnav a .dot {
    top: 0; left: 50%; margin-left: 3px;
    min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--orange); color: #fff; border-radius: 99px;
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
    border: 2px solid var(--page);
  }
  .bellwrap .dot { border-color: transparent; }
}

/* ---------------------------------------------------- chat attachment --- */

.attachname {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: var(--surface); border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 12.5px;
}
.attachname img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.attachname .x {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--page);
  color: var(--ink-2); cursor: pointer; font-size: 17px; line-height: 1;
}
.attachname .x:hover { background: var(--canvas); color: var(--ink); }

/* --------------------------------------------------- compression note --- */

.imgnote {
  font-size: 12.5px; color: var(--orange); font-weight: 500;
  margin: -8px 0 14px;
}

/* ------------------------------------------------------ profile header -- */

.profileacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profileacts form { margin: 0; }

@media (max-width: 640px) {
  /* stack the header so the buttons get real width instead of squeezing
     next to the name and a 128px avatar */
  .profilehead { flex-wrap: wrap; }
  .profileacts { width: 100%; margin-top: 14px; }
  .profileacts > * { flex: 1 1 0; min-width: 0; }
  .profileacts .btn { width: 100%; padding: 10px 12px; }
  .profileacts form { flex: 1 1 0; }

  .card > .row.wrap-row > .av.s128,
  .card > .row.wrap-row > .av-ph.s128 { width: 82px; height: 82px; font-size: 32px; }
  .card > .row.wrap-row { gap: 14px; }
}

/* --------------------------------------------------------- smoothness --- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .card, .post, .btn, .chip, .threadrow, .navlink, .tile { transition: all .16s ease; }
  .btn:active, .chip:active { transform: scale(.985); }
}
.msgs { scroll-behavior: smooth; }
/* only real photography gets a placeholder tint — never logos or icons */
.post .media img, .tile img, .prodcard .cv img, .bubble img { background: var(--canvas); }

/* ----------------------------------------------- double-tap to like ----- */

.post .media { position: relative; }
[data-dtap] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* without this, mobile browsers reserve the second tap for zoom and the
     like never registers */
  touch-action: manipulation;
}
[data-dtap] img, [data-dtap] video { pointer-events: none; }

.heartburst {
  position: absolute;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  pointer-events: none;
  z-index: 3;
  animation: burst .9s cubic-bezier(.18,.89,.32,1.28) forwards;
}
.heartburst svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 3px 14px rgba(0,0,0,.45)); }

@keyframes burst {
  0%   { opacity: 0; transform: scale(.2) rotate(-14deg); }
  18%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
  34%  { transform: scale(.94) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.28) translateY(-22px); }
}

/* the heart button answers the double tap too */
.post .acts button.pop .ico { animation: heartpop .32s ease-out; display: inline-block; }
@keyframes heartpop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .heartburst { animation: burstplain .6s linear forwards; }
  @keyframes burstplain { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
}

/* --------------------------------------------- empty, follow-only feed -- */

.startcard { text-align: center; padding: 40px 24px; }
.startcard .ic {
  width: 62px; height: 62px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}

/* ------------------------------------------------------- permission UI -- */

.permgroup { margin-bottom: 14px; }
.permgroup .ttl {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink3, var(--ink-3)); margin-bottom: 6px;
}
.permrow {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 7px 9px; border-radius: 9px; cursor: pointer;
}
.permrow:hover { background: var(--canvas); }
.permrow input { width: auto; margin-top: 2px; flex: none; accent-color: var(--green); }
.permrow b { display: block; font-size: 13.5px; font-weight: 600; }
.permrow em { display: block; font-size: 11.5px; color: var(--ink-3); font-style: normal; line-height: 1.4; }

/* -------------------------------------------------------- install prompt */

.installbar {
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  background: var(--green); color: var(--cream);
  border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  animation: slideup .28s ease-out;
}
@keyframes slideup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.installbar img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.installbar div { flex: 1; min-width: 0; }
.installbar strong { display: block; font-size: 14px; }
.installbar span { display: block; font-size: 12px; color: rgba(242,229,222,.72); line-height: 1.35; }
.installbar .installx {
  background: none; border: 0; color: rgba(242,229,222,.6);
  font-size: 21px; line-height: 1; cursor: pointer; padding: 0 2px; flex: none;
}
@media (min-width: 761px) { .installbar { left: auto; right: 20px; bottom: 20px; max-width: 380px; } }
@media (max-width: 760px)  { .installbar { bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------- reviews -- */

.stars { color: var(--orange); letter-spacing: 2px; font-size: 15px; }

.ratepick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate {
  border: 1px solid var(--line-2); background: var(--page); border-radius: 14px;
  padding: 12px 4px; cursor: pointer; transition: all .15s; text-align: center; display: block;
}
.rate:hover { border-color: var(--orange); }
.rate .n { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--green); }
.rate .l { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.rate.on, .rate:has(input:checked) { background: var(--green); border-color: var(--green); }
.rate.on .n, .rate.on .l, .rate:has(input:checked) .n, .rate:has(input:checked) .l { color: var(--cream); }

/* ------------------------------------------------------------ otp entry -- */

.otpbox {
  font-family: var(--mono); font-size: 26px; letter-spacing: 12px;
  text-align: center; padding: 14px 10px;
}
.otpbox::placeholder { letter-spacing: 12px; color: var(--line-2); }

/* ---------------------------------------------------- radio option cards */

.payopt {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border: 1px solid var(--line-2);
  border-radius: 12px; margin-bottom: 9px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.payopt:hover { border-color: var(--ink-3); }
.payopt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.payopt input { width: auto; margin: 3px 0 0; flex: none; accent-color: var(--green); }
.payopt span { display: block; }
.payopt b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.payopt em { display: block; font-size: 12.5px; color: var(--ink-3); font-style: normal; line-height: 1.45; }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--orange); font-weight: 600; font-size: 12.5px;
}
.linkbtn:hover { text-decoration: underline; }

/* --------------------------------------------------------- overflow menu */

.rowmenu { position: relative; display: inline-block; }
.rowmenu summary {
  list-style: none; cursor: pointer; user-select: none;
  letter-spacing: 1px; line-height: 1;
}
.rowmenu summary::-webkit-details-marker { display: none; }
.rowmenu .sheet {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 190px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.sheetbtn {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; background: none; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sheet form:last-child .sheetbtn, .sheet > a:last-child { border-bottom: 0; }
.sheetbtn:hover { background: var(--canvas); }
.sheetbtn.danger { color: var(--crimson); }
.sheetbtn.danger:hover { background: var(--crimson-soft); }

@media (max-width: 760px) {
  /* on a phone the menu is easier to hit as a sheet at the bottom, over a
     dimmed page so it does not look glued on top of the composer */
  .rowmenu[open] summary::after {
    content: ""; position: fixed; inset: 0; z-index: 55;
    background: rgba(25,24,23,.4);
    animation: fadein .16s ease-out;
  }
  .rowmenu[open] .sheet {
    position: fixed; left: 12px; right: 12px; top: auto; z-index: 56;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-width: 0; border-radius: 16px;
    animation: slideup .2s ease-out;
  }
  .sheetbtn { padding: 15px 18px; font-size: 15px; }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }


/* ===========================================================================
   Events, shared albums, and announcements.
   =========================================================================== */

/* -------------------------------------------------- the feed's event strip */

.evstrip { margin-bottom: 16px; }
.evstrip .eyebrow { margin: 0; }
.evrow {
  display: flex; gap: 11px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.evrow::-webkit-scrollbar { display: none; }

.evmini {
  flex: 0 0 152px; display: flex; flex-direction: column; gap: 6px;
  color: var(--ink);
}
.evmini .sh {
  height: 86px; border-radius: 12px; background: var(--green-soft) center/cover no-repeat;
  border: 1px solid var(--line); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.evmini .nm {
  font-weight: 600; font-size: 13.5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.evmini .mt { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.evmini:hover .sh { border-color: var(--line-2); }

/* -------------------------------------------------------------- event list */

.evlist { display: grid; gap: 14px; margin-bottom: 26px; }

.evcard {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink);
  transition: border-color .15s, transform .12s;
}
.evcard:hover { border-color: var(--line-2); }
.evcard:active { transform: scale(.995); }
.evcard .cover {
  background: var(--green-soft) center/cover no-repeat; min-height: 132px;
  display: flex; align-items: center; justify-content: center; color: var(--green);
  position: relative;
}
.evcard .cover .chip { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); }
.evcard .tx { padding: 15px 17px; min-width: 0; }
.evcard .nm { font-family: var(--display); font-size: 18px; color: var(--green); line-height: 1.25; }

@media (max-width: 620px) {
  .evcard { grid-template-columns: 1fr; }
  .evcard .cover { min-height: 148px; }
}

/* ------------------------------------------------------------- event page */

.evhero {
  border-radius: var(--radius); overflow: hidden; margin: 12px 0 16px;
  background: var(--green) center/cover no-repeat; color: var(--cream);
  min-height: 210px; display: flex; align-items: flex-end;
}
.evhero .in {
  width: 100%; padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(5,50,25,.92), rgba(5,50,25,.35) 62%, rgba(5,50,25,.06));
}
.evhero h1 { margin: 6px 0 0; color: var(--cream); font-size: 27px; line-height: 1.15; }
.evhero .mt { font-size: 13.5px; color: rgba(242,229,222,.82); margin-top: 6px; }
.evhero .chip { background: rgba(255,255,255,.9); color: var(--green); border-color: transparent; }

.addphotos { margin-bottom: 14px; padding: 15px 16px; }
.addphotos > summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
}
.addphotos > summary::-webkit-details-marker { display: none; }
.addphotos > summary .ic {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.addphotos[open] > summary { margin-bottom: 2px; }
.addphotos[open] > summary .btn { opacity: .45; }

/* ---------------------------------------------------------------- album -- */

.evgrid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.evshot {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; position: relative;
}
.evshot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--green-soft); }
.evshot .chip { position: absolute; left: 9px; top: 9px; background: rgba(255,255,255,.93); }
.evshot.pending img { opacity: .62; }
.evshot figcaption {
  padding: 9px 11px 11px; font-size: 12.5px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 3px;
}
.evshot figcaption a { font-weight: 600; color: var(--ink); }
.evshot figcaption .cap {
  color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.evshot figcaption button.small { color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; }
.evshot figcaption button.small:hover { color: var(--crimson); }
.evgrid.admin { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

@media (max-width: 520px) {
  .evgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .evshot figcaption { padding: 8px 9px 10px; font-size: 12px; }
  .evhero h1 { font-size: 22px; }
}

/* -------------------------------------------------------- announcements -- */

.post.official { border-color: #D5E2D9; box-shadow: 0 0 0 1px rgba(5,50,25,.05); }
.post.official .head { background: var(--green-soft); }

.offbadge {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  background: var(--green); color: var(--cream);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  padding: 2px 6px; border-radius: 99px;
}
