/* ==========================================================================
   Awakening Camp — design system
   Dawn palette: night ink fading to a saffron horizon.
   ========================================================================== */

:root {
  --ink: #1D1838;
  --ink-2: #3A3360;
  --muted: #6B6585;
  --faint: #9A94B3;
  --line: #E6E1F0;
  --line-2: #D6CFE8;
  --paper: #F6F4FA;
  --surface: #FFFFFF;
  --iris: #5B4BDB;
  --iris-d: #4636B8;
  --iris-t: #EEEBFB;
  --saffron: #F2A93B;
  --saffron-d: #A8650A;
  --saffron-t: #FDF1DC;
  --sage: #2F7D6A;
  --rose: #C2416B;
  --dawn: linear-gradient(180deg, #1D1838 0%, #33296E 42%, #8A4E9E 74%, #E99A46 100%);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-card: 16px;
  --r-ctl: 999px;
  --shadow: 0 1px 2px rgba(29, 24, 56, .06), 0 6px 24px -12px rgba(29, 24, 56, .18);
  --top: 64px;
  --shell: 1240px;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body {
  font-family: var(--sans) !important;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); }
a { color: var(--iris-d); text-decoration: none; }
a:hover { color: var(--iris); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--iris) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 10px; color: #fff; }
main#main { min-height: 60vh; }
.serif { font-family: var(--serif); }

/* ---------- buttons, chips, badges ---------- */
.btn {
  --bg: var(--iris); --fg: #fff; --bd: var(--iris);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 11px 20px; border-radius: var(--r-ctl);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { --bg: var(--iris-d); --bd: var(--iris-d); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--iris-t); --fg: var(--iris-d); --bd: var(--iris-t); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--light:hover { --bg: var(--saffron-t); --fg: var(--ink); --bd: var(--saffron-t); }
.btn--sun { --bg: var(--saffron); --fg: var(--ink); --bd: var(--saffron); }
.btn--sun:hover { --bg: #F6BD62; --fg: var(--ink); --bd: #F6BD62; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn--outline-light:hover { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: #fff; }
.btn--follow.is-on { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--follow.is-on:hover { --bg: #FBEAEE; --fg: var(--rose); --bd: #F3C9D4; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px;
}
.icon-btn:hover { background: var(--iris-t); color: var(--iris-d); }
.link-btn { border: 0; background: none; padding: 0; font: 600 13px var(--sans); color: var(--muted); cursor: pointer; }
.link-btn:hover, .link-btn.is-on { color: var(--rose); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--iris); color: var(--iris-d); }
.chip.is-on, .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff;
  font: 700 11px/18px var(--sans); text-align: center; position: absolute; top: 2px; right: 0;
}
.badge[hidden] { display: none; }

/* ---------- avatars ---------- */
.awa-avatar { width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; object-fit: cover; flex: none; background: var(--iris-t); display: inline-block; }
.awa-avatar--ini {
  display: inline-grid; place-items: center; color: #fff; font-weight: 600; letter-spacing: .02em;
  font-size: calc(var(--s, 44px) * .38);
  background: linear-gradient(150deg, hsl(var(--h) 45% 46%), hsl(calc(var(--h) + 40) 55% 62%));
}

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: var(--shell); margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__word { font: 500 22px/1 var(--serif); letter-spacing: -.01em; }
.brand__word span { color: var(--muted); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__word span { color: #C9C2F2; }

.search { position: relative; flex: 1; max-width: 420px; }
.search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; }
.search input {
  width: 100%; height: 40px; border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--paper);
  padding: 0 16px 0 38px; font: 15px var(--sans); color: var(--ink);
}
.search input:focus { outline: none; background: #fff; border-color: var(--iris); box-shadow: 0 0 0 4px var(--iris-t); }
.search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow: auto;
}
.search__results h3 { font: 600 12px var(--sans); color: var(--faint); margin: 8px 10px 4px; }
.search__results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.search__results a:hover, .search__results a.is-active { background: var(--paper); }
.search__results small { display: block; color: var(--muted); font-size: 12px; }
.search__results .awa-avatar { --s: 32px; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav__link { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--ink-2); font-weight: 500; font-size: 15px; }
.topnav__link:hover, .topnav__link[aria-current] { background: var(--paper); color: var(--ink); }
.topnav__login { margin-left: 6px; }
.topnav__icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 18px; }
.topnav__icon:hover { background: var(--paper); color: var(--ink); }
.topnav__icon[aria-current] { color: var(--iris); }

.menu { position: relative; margin-left: 6px; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 10;
}
.menu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.menu__panel a i { width: 18px; color: var(--muted); }
.menu__panel a:hover { background: var(--paper); }
.menu__panel a:first-child { flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.menu__panel small { color: var(--muted); }

/* mobile tab bar */
.tabbar { display: none; }

/* ---------- shell (3 columns) ---------- */
.shell {
  max-width: var(--shell); margin: 0 auto; padding: 24px 20px 64px;
  display: grid; grid-template-columns: 232px minmax(0, 1fr) 320px; gap: 28px; align-items: start;
}
.shell--two { grid-template-columns: 232px minmax(0, 1fr); }
.shell--hub { grid-template-columns: minmax(0, 1fr) 340px; }
.shell--wide { grid-template-columns: minmax(0, 1fr); }
.shell > * { min-width: 0; }
.shell > .rail, .shell > .side { position: sticky; top: calc(var(--top) + 20px); }
.rail .btn { color: var(--fg); }
.rail .btn:hover { background: var(--bg); }
.col { min-width: 0; display: grid; gap: 16px; align-content: start; }
.col--narrow { max-width: 640px; width: 100%; }

.rail ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.rail a { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 16px; }
.rail a i { width: 20px; text-align: center; color: var(--muted); font-size: 17px; }
.rail a:hover { background: #fff; color: var(--ink); }
.rail a[aria-current] { background: #fff; color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
.rail a[aria-current] i { color: var(--iris); }
.rail .badge { position: static; margin-left: auto; }
.rail__join { background: #fff; border-radius: var(--r-card); padding: 18px; border: 1px solid var(--line); display: grid; gap: 10px; }
.rail__join p { margin: 0 0 4px; color: var(--ink-2); font-size: 15px; }

.side { display: grid; gap: 16px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: grid; gap: 12px; }
.widget > * { min-width: 0; }
.widget h2 { font: 600 17px var(--sans); margin: 0; }
.widget__more { font-size: 14px; font-weight: 600; }
.side__foot { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 6px; }
.side__foot a { color: var(--muted); }

.person { display: flex; align-items: center; gap: 10px; }
.person__link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--ink); }
.person__link span { min-width: 0; }
.person__link strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__link small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.event-row { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.event-row__date { flex: none; width: 46px; height: 50px; border-radius: 12px; background: var(--saffron-t); color: var(--saffron-d); display: grid; place-content: center; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.1; }
.event-row__date b { font: 600 19px var(--serif); color: var(--ink); }
.event-row strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.event-row small { color: var(--muted); font-size: 13px; }
.event-row:hover strong { color: var(--iris-d); }

.mini-group { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.mini-group__dot { width: 40px; height: 40px; border-radius: 12px; flex: none; background: linear-gradient(150deg, hsl(var(--h) 50% 40%), hsl(calc(var(--h) + 50) 60% 66%)); }
.mini-group strong { display: block; font-size: 15px; font-weight: 600; }
.mini-group small { color: var(--muted); font-size: 13px; }

/* ---------- section header in the center column ---------- */
.colhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 0; }
.colhead h1 { font: 400 32px/1.15 var(--serif); margin: 0; letter-spacing: -.01em; }
.colhead p { margin: 6px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: 1; text-align: center; padding: 8px 14px; border-radius: var(--r-ctl); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border: 0; background: none; }
.tabs a:hover { color: var(--ink); }
.tabs [aria-current], .tabs .is-on { background: var(--ink); color: #fff; }

/* ---------- composer ---------- */
.composer { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.composer__main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.composer textarea {
  width: 100%; border: 0; resize: none; font: 17px/1.5 var(--sans); color: var(--ink); padding: 8px 0; min-height: 48px; background: transparent;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--faint); }
.composer__tools { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.composer__tools .btn { margin-left: auto; }
.composer__where { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 6px 12px; font: 500 14px var(--sans); color: var(--ink-2); background: var(--paper); max-width: 200px; }
.composer__count { font-size: 13px; color: var(--faint); }
.composer__preview { position: relative; }
.composer__preview img { max-height: 320px; border-radius: 12px; }
.composer__preview .icon-btn { position: absolute; top: 8px; left: 8px; background: rgba(29,24,56,.7); color: #fff; }
.composer label.icon-btn { margin: 0; }

/* ---------- post card ---------- */
.feed { display: grid; gap: 14px; }
.post { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px 8px; }
.post.is-new { animation: postIn .5s ease both; }
@keyframes postIn { from { opacity: 0; transform: translateY(-6px); } }
.post__head { display: flex; gap: 12px; align-items: flex-start; }
.post__who { min-width: 0; flex: 1; line-height: 1.3; }
.post__name { font-weight: 650; color: var(--ink); font-size: 16px; }
.post__name:hover { color: var(--iris-d); }
.post__meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 14px; color: var(--muted); }
.post__time { color: var(--muted); }
.post__time:hover { color: var(--ink); text-decoration: underline; }
.post__place i { margin-right: 4px; font-size: 11px; }
.post__group { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--sage); }
.post__group i { font-size: 11px; }
.post__menu { margin: -6px -8px 0 0; }
.post__body { margin: 12px 0 4px; font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.post--full .post__body { font-size: 19px; }
.post__body.is-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.post__more { font-size: 14px; font-weight: 600; }
.post__rsvp { margin: 12px 0 4px; color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 18px; }
.awa-tag, .awa-mention { font-weight: 600; color: var(--iris-d); }
.post__image { display: block; margin: 12px -18px 0; background: var(--paper); }
.post__image img { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.post__event { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--saffron-t); color: var(--ink); }
.post__event img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.post__event span { display: grid; gap: 2px; }
.post__event strong { font: 500 18px/1.25 var(--serif); }
.post__event small { color: var(--saffron-d); font-weight: 600; font-size: 13px; }
.post__bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.post__reactions { position: relative; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.react-btn, .bar-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: var(--r-ctl);
  border: 0; background: none; color: var(--muted); font: 600 14px var(--sans); cursor: pointer;
}
.react-btn:hover, .bar-btn:hover { background: var(--paper); color: var(--ink); }
.react-btn.is-on { color: var(--rose); }
.react-btn__icon { font-size: 17px; line-height: 1; }
.react-sum { display: inline-flex; align-items: center; gap: 1px; font-size: 15px; }
.react-sum b { font: 600 13px var(--sans); color: var(--muted); margin-left: 6px; }
.picker {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 40px); gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow);
}
.picker button { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; font-size: 22px; cursor: pointer; transition: transform .12s; }
.picker button:hover, .picker button:focus-visible { background: var(--paper); transform: scale(1.18); }
.picker button.is-on { background: var(--iris-t); }
.post__replies { border-top: 1px solid var(--line); margin-top: 6px; padding: 12px 0 8px; display: grid; gap: 12px; }

/* replies */
.reply { display: flex; gap: 10px; align-items: flex-start; }
.reply__bubble { flex: 1; min-width: 0; }
.reply__head { font-size: 14px; }
.reply__head a { font-weight: 650; color: var(--ink); }
.reply__head time { color: var(--faint); margin-left: 6px; font-size: 13px; }
.reply__text { background: var(--paper); border-radius: 4px 14px 14px 14px; padding: 8px 12px; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.reply__actions { display: flex; gap: 14px; padding: 4px 4px 0; }
.reply-form { display: flex; gap: 10px; align-items: flex-end; }
.reply-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; font: 15px/1.4 var(--sans); resize: none; min-height: 38px; max-height: 160px; background: #fff; }
.reply-form textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-t); }
.reply-login { margin: 0; color: var(--muted); font-size: 15px; }

.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-card); padding: 36px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font: 400 22px var(--serif); margin-bottom: 6px; }
.feed-more { margin-top: 2px; }
.loading { text-align: center; color: var(--faint); padding: 16px; }

/* ---------- page head (directories, hubs) ---------- */
.pagehead { background: var(--dawn); color: #fff; position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; right: 8%; bottom: -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(251,227,166,.9), rgba(242,169,59,.45) 34%, rgba(242,169,59,0) 66%); pointer-events: none; }
.pagehead__in { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; padding: 44px 20px 48px; }
.pagehead h1 { color: #fff; font: 300 clamp(34px, 5vw, 54px)/1.08 var(--serif); letter-spacing: -.015em; margin: 8px 0 12px; max-width: 18ch; }
.pagehead p { color: rgba(255,255,255,.84); font-size: 18px; max-width: 62ch; margin: 0 0 20px; }
.pagehead .awa-crumbs a, .pagehead .awa-crumbs li { color: rgba(255,255,255,.75); }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.awa-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.awa-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.awa-crumbs a { color: var(--muted); }

/* ---------- groups ---------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.group-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.group-card__link { display: grid; color: var(--ink); height: 100%; grid-template-rows: auto 1fr; }
.group-card__cover { display: block; height: 92px; background: linear-gradient(150deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 60) 60% 66%)); }
.group-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.group-card__body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.group-card strong { font: 500 19px/1.25 var(--serif); }
.group-card small { color: var(--muted); font-size: 14px; }
.group-card__stats { font-size: 13px; color: var(--faint); font-weight: 500; }
.group-card:hover strong { color: var(--iris-d); }

.ghead { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ghead__cover { height: 170px; background: linear-gradient(150deg, hsl(var(--h) 45% 30%), hsl(calc(var(--h) + 60) 60% 64%)); }
.ghead__cover img { width: 100%; height: 100%; object-fit: cover; }
.ghead__body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.ghead h1 { font: 400 32px/1.15 var(--serif); margin: 0; }
.ghead__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.ghead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.facepile { display: flex; }
.facepile > * { margin-left: -8px; border: 2px solid #fff; border-radius: 50%; }
.facepile > *:first-child { margin-left: 0; }

/* ---------- profile ---------- */
.prof { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.prof__cover { height: 180px; background: var(--dawn); position: relative; }
.prof__cover::after { content: ""; position: absolute; left: 50%; bottom: -40px; width: 220px; height: 220px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(246,207,122,.6), transparent 60%); }
.prof__body { padding: 0 22px 20px; position: relative; }
.prof__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -52px; position: relative; z-index: 1; }
.prof__top .awa-avatar { border: 4px solid #fff; box-shadow: var(--shadow); }
.prof__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 4px; }
.prof h1 { font: 400 32px/1.15 var(--serif); margin: 14px 0 0; }
.prof__handle { color: var(--muted); }
.prof__one { font: italic 300 20px/1.4 var(--serif); color: var(--ink-2); margin: 10px 0 0; }
.prof__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.prof__facts i { margin-right: 6px; }
.prof__stats { display: flex; gap: 22px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.prof__stats b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.prof__mutual { font-size: 13px; background: var(--paper); color: var(--ink-2); padding: 3px 10px; border-radius: var(--r-ctl); margin-left: 8px; vertical-align: middle; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card h2 { font: 400 22px var(--serif); margin: 0 0 10px; }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ---------- people directory ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 16px 16px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.pcard a.pcard__link { display: grid; gap: 6px; justify-items: center; color: var(--ink); }
.pcard strong { font-weight: 650; font-size: 16px; }
.pcard small { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__place { font-size: 12px; color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search], .filters select { height: 40px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 14px; font: 15px var(--sans); background: #fff; color: var(--ink); }

/* ---------- notifications ---------- */
.notes { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.note:last-child { border-bottom: 0; }
.note:hover { background: var(--paper); color: var(--ink); }
.note.is-unread { background: var(--iris-t); }
.note__text { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.note time { display: block; color: var(--faint); font-size: 13px; margin-top: 2px; }

/* ---------- messages ---------- */
.dm { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; height: calc(100vh - var(--top) - 48px); min-height: 480px; }
.dm__list { border-right: 1px solid var(--line); overflow: auto; }
.dm__list h1 { font: 400 26px var(--serif); margin: 0; padding: 18px 18px 10px; }
.dm__conv { display: flex; gap: 12px; align-items: center; padding: 12px 18px; color: var(--ink); }
.dm__conv:hover { background: var(--paper); color: var(--ink); }
.dm__conv[aria-current] { background: var(--iris-t); }
.dm__conv > span:not(.awa-avatar) { min-width: 0; flex: 1; }
.dm__conv strong { display: block; font-weight: 600; }
.dm__conv small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm__conv.has-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--iris); margin-left: 8px; vertical-align: middle; }
.dm__thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.dm__head { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dm__head a { color: var(--ink); font-weight: 650; }
.dm__msgs { overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #fff, var(--paper)); }
.msg { max-width: 72%; padding: 9px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-self: flex-start; font-size: 15px; overflow-wrap: anywhere; }
.msg.is-mine { align-self: flex-end; background: var(--iris); color: #fff; border-color: var(--iris); }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.dm__form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.dm__form textarea { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px; resize: none; font: 15px var(--sans); max-height: 140px; }
.dm__empty { display: grid; place-content: center; text-align: center; padding: 40px; color: var(--muted); }
.dm__empty strong { font: 400 24px var(--serif); color: var(--ink); display: block; margin-bottom: 6px; }

/* ---------- landing ---------- */
.hero { background: var(--dawn); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero__sun {
  position: absolute; z-index: -1; left: 72%; bottom: 0; width: min(760px, 90vw); aspect-ratio: 1; transform: translate(-50%, 50%);
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FBE3A6 0%, #F2A93B 34%, rgba(242,169,59,.35) 52%, rgba(242,169,59,0) 70%);
  animation: sunrise 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes sunrise { from { transform: translate(-50%, 85%); opacity: .3; } }
.hero__horizon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.35); }
.hero__in { max-width: var(--shell); margin: 0 auto; padding: 72px 20px 96px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font: 300 clamp(42px, 6.4vw, 84px)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 22px; }
.hero__lede { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 34em; margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__proof { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.8); font-size: 15px; }
.hero__proof .facepile > * { border-color: #3A2E6E; }
.hero__stack { display: grid; gap: 12px; transform: rotate(-1.5deg); }
.hero__stack .post { box-shadow: 0 30px 60px -30px rgba(10, 5, 30, .6); border: 0; pointer-events: none; }
.hero__stack .post:nth-child(2) { transform: translateX(28px) rotate(2deg); }
.hero__stack .post__bar { display: none; }

.band { max-width: var(--shell); margin: 0 auto; padding: 72px 20px; }
.band--tight { padding-top: 24px; }
.band__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.band__head h2 { font: 300 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); margin: 0; letter-spacing: -.015em; max-width: 20ch; }
.band__head p { color: var(--muted); max-width: 52ch; margin: 10px 0 0; font-size: 17px; }
.band__head a { font-weight: 600; white-space: nowrap; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.pillar { background: #fff; padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.pillar i { font-size: 22px; color: var(--iris); }
.pillar h3 { font: 500 21px/1.25 var(--serif); margin: 4px 0 0; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.pillar a { font-weight: 600; font-size: 15px; margin-top: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 14px; }
.list-card h3 { font: 500 22px var(--serif); margin: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.topic { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink); }
.topic strong { font: 500 19px var(--serif); }
.topic small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.topic:hover { border-color: var(--iris); color: var(--ink); }
.topic:hover strong { color: var(--iris-d); }

.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.place { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); display: grid; grid-template-rows: auto 1fr; }
.place__img { aspect-ratio: 16/10; background: var(--iris-t); }
.place__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place__body { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.place strong { font: 500 18px/1.25 var(--serif); }
.place small { color: var(--muted); font-size: 13px; }
.place:hover { color: var(--ink); }
.place:hover strong { color: var(--iris-d); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font: 500 19px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.closing { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 560px; height: 560px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(242,169,59,.55), transparent 62%); }
.closing > * { position: relative; }
.closing h2 { color: #fff; font: 300 clamp(30px, 4vw, 48px)/1.1 var(--serif); margin: 0 0 12px; }
.closing p { color: rgba(255,255,255,.8); max-width: 48ch; margin: 0 auto 24px; font-size: 18px; }

/* topic hub */
.hub-intro { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 70ch; }
.hub-intro p { margin: 0 0 1em; }
.hub-intro h2 { font: 400 26px var(--serif); color: var(--ink); margin: 1.4em 0 .5em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.74); margin-top: 40px; }
.foot__in { max-width: var(--shell); margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.foot__brand p { margin: 16px 0 18px; font-size: 15px; }
.foot__apps { display: flex; gap: 8px; flex-wrap: wrap; }
.foot__apps a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-ctl); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 14px; font-weight: 600; }
.foot__apps a:hover { background: rgba(255,255,255,.08); color: #fff; }
.foot__social { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.foot__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.8); font-size: 17px; }
.foot__social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.foot__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.foot__cols h2 { color: #fff; font: 600 15px var(--sans); margin: 0 0 12px; }
.foot__cols a { display: block; color: rgba(255,255,255,.7); font-size: 14px; padding: 4px 0; }
.foot__cols a:hover { color: #F6CF7A; }
.foot__base { border-top: 1px solid rgba(255,255,255,.1); max-width: var(--shell); margin: 0 auto; padding: 18px 20px 28px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- modal + toast ---------- */
/* dialog.modal: undo Bootstrap's .modal (display:none, full-screen box) for native dialogs */
dialog.modal { position: fixed; inset: 0; margin: auto; display: none; height: auto; max-height: calc(100vh - 32px); overflow: auto; z-index: auto; border: 0; border-radius: 20px; padding: 0; width: min(600px, calc(100vw - 24px)); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(10,5,30,.55); }
dialog.modal[open] { display: block; }
.modal::backdrop { background: rgba(29,24,56,.55); backdrop-filter: blur(3px); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0 20px; }
.modal__head h2 { font: 400 22px var(--serif); margin: 0; }
.modal .composer { border: 0; }
.modal form.stack { padding: 16px 20px 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: 15px var(--sans); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-t); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 3000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-ctl); font-weight: 500; font-size: 15px; transition: .25s;
  max-width: calc(100vw - 32px);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast--danger, .toast--error { background: var(--rose); }

/* ---------- notifications prompt (stays until notifications are on) ---------- */
.notify-bar { position: sticky; top: var(--top); z-index: 1020; background: linear-gradient(90deg, #2C2652, #5B4BDB 55%, #8A4E9E); color: #fff; box-shadow: 0 6px 20px -10px rgba(29,24,56,.6); }
.notify-bar[hidden] { display: none; }
.notify-bar__in { max-width: var(--shell); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.notify-bar__bell { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-size: 19px; animation: bellRing 2.6s ease-in-out 1s 3; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.notify-bar__text { margin: 0; flex: 1; font-size: 15.5px; line-height: 1.4; color: rgba(255,255,255,.88); }
.notify-bar__text strong { color: #fff; font-size: 16.5px; margin-right: 6px; }
.notify-bar .btn { flex: none; }
.notify-bar__min { color: rgba(255,255,255,.75); flex: none; }
.notify-bar__min:hover { background: rgba(255,255,255,.12); color: #fff; }
.notify-bar.is-mini .notify-bar__in { padding: 6px 20px; }
.notify-bar.is-mini .notify-bar__bell { width: 30px; height: 30px; font-size: 14px; }
.notify-bar.is-mini [data-n=text] { display: none; }
.notify-bar.is-mini .btn { padding: 7px 14px; font-size: 14px; }
.notify-bar.is-mini .notify-bar__min i { transform: rotate(180deg); }
.notify-card { display: flex; gap: 18px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 22px 24px; position: relative; overflow: hidden; }
.notify-card[hidden] { display: none; }
.notify-card::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,59,.55), transparent 65%); pointer-events: none; }
.notify-card > * { position: relative; z-index: 1; }
.notify-card__bell { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-size: 24px; }
.notify-card h2 { color: #fff; font: 400 26px/1.2 var(--serif); margin: 2px 0 6px; }
.notify-card p { color: rgba(255,255,255,.82); margin: 0 0 16px; max-width: 52ch; }
.rail__push { margin-top: 10px; }
.rail__push[hidden] { display: none; }
body.has-notify-bar .shell > .rail, body.has-notify-bar .shell > .side { top: calc(var(--top) + 90px); }
@media (max-width: 780px) {
  .notify-bar__in { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .notify-bar__text { flex-basis: calc(100% - 100px); font-size: 14px; }
  .notify-bar .btn { flex: 1; }
  .notify-bar.is-mini .notify-bar__in { flex-wrap: nowrap; }
  .notify-card { flex-direction: column; padding: 20px; }
}

/* ---------- reaction burst ---------- */
.react-btn.is-pop .react-btn__icon { animation: reactPop .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes reactPop { 0% { transform: scale(.6); } 45% { transform: scale(1.45) rotate(-8deg); } 70% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
.burst { position: fixed; z-index: 3000; width: 0; height: 0; pointer-events: none; }
.burst__ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rose); opacity: .8; animation: burstRing .55s ease-out both; }
@keyframes burstRing { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.burst__p { position: absolute; left: -11px; top: -13px; font-size: 22px; line-height: 1; animation: burstFly .95s cubic-bezier(.15,.7,.3,1) both; }
@keyframes burstFly {
  0% { transform: translate(0, 0) scale(.2); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(var(--sc)); opacity: 0; }
}
.reply__actions .link-btn.is-pop i { animation: reactPop .5s cubic-bezier(.3,1.6,.5,1) both; }

/* ---------- auth (log in / sign up / reset) ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.auth__art { position: relative; overflow: hidden; background: var(--dawn); display: flex; align-items: flex-end; padding: 56px; }
.auth__sun { position: absolute; left: 50%; bottom: -260px; width: 620px; height: 620px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #FBE3A6 0%, #F2A93B 32%, rgba(242,169,59,.35) 52%, rgba(242,169,59,0) 70%); animation: sunrise 2.4s cubic-bezier(.2,.7,.2,1) both; }
.auth__quote { position: relative; color: #fff; max-width: 30ch; margin-bottom: 18vh; }
.auth__quote p { font: 300 clamp(26px, 2.6vw, 36px)/1.25 var(--serif); margin: 0 0 22px; }
.auth__faces { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 15px; }
.auth__faces .facepile > * { border-color: #3A2E6E; }
.auth__panel { display: grid; place-items: center; padding: 40px 20px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__card h1 { font: 400 38px/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.auth__sub { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.auth__form { display: grid; gap: 18px; }
.auth__form .field input { height: 48px; font-size: 16px; background: #fff; }
.auth__form .field label { display: flex; justify-content: space-between; align-items: baseline; }
.auth__forgot { font-weight: 500; font-size: 14px; }
.auth__pw { position: relative; }
.auth__pw input { padding-right: 48px !important; }
.auth__pw .icon-btn { position: absolute; right: 5px; top: 5px; }
.auth__prefix { display: flex; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.auth__prefix span { display: grid; place-items: center; padding: 0 0 0 14px; color: var(--faint); font-size: 15px; }
.auth__prefix input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; }
.auth__prefix:focus-within { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-t); }
.auth__hint { color: var(--faint); font-size: 13px; }
.auth__meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.auth__meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.auth__check { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.auth__check input { width: 18px; height: 18px; accent-color: var(--iris); }
.auth__error { background: #FBEAEE; color: var(--rose); border: 1px solid #F3C9D4; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 500; }
.auth__error p { margin: 0; }
.auth__fine { color: var(--faint); font-size: 13px; text-align: center; margin: 0; }
.auth__alt { text-align: center; margin: 24px 0 0; color: var(--muted); }
.auth__alt a { font-weight: 600; }
body.is-auth .foot { margin-top: 0; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__art { min-height: 170px; padding: 28px 20px; align-items: center; }
  .auth__quote { margin: 0; }
  .auth__quote p { font-size: 22px; margin-bottom: 12px; }
  .auth__sun { width: 380px; height: 380px; bottom: -230px; }
  .auth__panel { padding: 28px 16px 48px; }
}

/* ---------- legacy pages: quiet the old chrome ---------- */
.floating-action-buttons, .navbar-awakening { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .shell > .side { display: none; }
  .shell--hub { grid-template-columns: minmax(0, 1fr); }
  .shell--hub > .side { display: grid; position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding: 56px 20px 72px; }
  .hero__stack { display: none; }
  .hero__sun { left: 80%; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; gap: 32px; }
  .topnav__link:not(.topnav__login) { display: none; }
}
@media (max-width: 780px) {
  :root { --top: 58px; }
  body { padding-bottom: 70px; }
  .topbar__in { gap: 12px; padding: 0 14px; }
  .brand__word { font-size: 19px; }
  .brand__word span { display: none; }
  .search { max-width: none; }
  .is-member .topnav__icon { display: none; }
  .shell, .shell--two, .shell--hub { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 96px; gap: 14px; }
  .shell > .rail { display: none; }
  .post { padding: 14px 14px 6px; border-radius: 14px; }
  .post__image { margin: 12px -14px 0; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center;
  }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 10px; border: 0; background: none; }
  .tabbar a i { font-size: 19px; }
  .tabbar a[aria-current] { color: var(--iris); }
  .tabbar__post { width: 48px; height: 48px; border-radius: 50% !important; background: var(--iris) !important; color: #fff !important; font-size: 19px !important; place-items: center; box-shadow: 0 8px 20px -8px var(--iris); }
  .tabbar .badge { top: 0; right: 4px; }
  .dm { grid-template-columns: 1fr; height: calc(100vh - var(--top) - 110px); }
  .dm.has-thread .dm__list { display: none; }
  .dm:not(.has-thread) .dm__thread { display: none; }
  .pagehead__in { padding: 32px 16px 36px; }
  .band { padding: 48px 16px; }
  .band__head { flex-direction: column; align-items: flex-start; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .closing { padding: 40px 22px; border-radius: 18px; }
  .prof__top { flex-direction: column; align-items: flex-start; }
  .prof__actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .topnav__login { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero__lede { font-size: 18px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
