.ap-container {
  width: min(100%, var(--ap-container, 100%));
  margin-inline: auto;
  padding-inline: var(--ap-gutter, 1rem);
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(var(--ap-columns, 12), minmax(0, 1fr));
  gap: var(--ap-gap, 1rem);
}

.ap-span-1 {
  grid-column: span 1;
}

.ap-span-2 {
  grid-column: span 2;
}

.ap-span-3 {
  grid-column: span 3;
}

.ap-span-4 {
  grid-column: span 4;
}

.ap-span-5 {
  grid-column: span 5;
}

.ap-span-6 {
  grid-column: span 6;
}

.ap-span-7 {
  grid-column: span 7;
}

.ap-span-8 {
  grid-column: span 8;
}

.ap-span-9 {
  grid-column: span 9;
}

.ap-span-10 {
  grid-column: span 10;
}

.ap-span-11 {
  grid-column: span 11;
}

.ap-span-12 {
  grid-column: span 12;
}

@media (min-width: 30rem) {
  .ap-container {
    --ap-container: 100%;
  }
  .ap-phone-wide-span-1 {
    grid-column: span 1;
  }
  .ap-phone-wide-span-2 {
    grid-column: span 2;
  }
  .ap-phone-wide-span-3 {
    grid-column: span 3;
  }
  .ap-phone-wide-span-4 {
    grid-column: span 4;
  }
  .ap-phone-wide-span-5 {
    grid-column: span 5;
  }
  .ap-phone-wide-span-6 {
    grid-column: span 6;
  }
  .ap-phone-wide-span-7 {
    grid-column: span 7;
  }
  .ap-phone-wide-span-8 {
    grid-column: span 8;
  }
  .ap-phone-wide-span-9 {
    grid-column: span 9;
  }
  .ap-phone-wide-span-10 {
    grid-column: span 10;
  }
  .ap-phone-wide-span-11 {
    grid-column: span 11;
  }
  .ap-phone-wide-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 48rem) {
  .ap-container {
    --ap-container: 46rem;
  }
  .ap-tablet-span-1 {
    grid-column: span 1;
  }
  .ap-tablet-span-2 {
    grid-column: span 2;
  }
  .ap-tablet-span-3 {
    grid-column: span 3;
  }
  .ap-tablet-span-4 {
    grid-column: span 4;
  }
  .ap-tablet-span-5 {
    grid-column: span 5;
  }
  .ap-tablet-span-6 {
    grid-column: span 6;
  }
  .ap-tablet-span-7 {
    grid-column: span 7;
  }
  .ap-tablet-span-8 {
    grid-column: span 8;
  }
  .ap-tablet-span-9 {
    grid-column: span 9;
  }
  .ap-tablet-span-10 {
    grid-column: span 10;
  }
  .ap-tablet-span-11 {
    grid-column: span 11;
  }
  .ap-tablet-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 64rem) {
  .ap-container {
    --ap-container: 62rem;
  }
  .ap-laptop-span-1 {
    grid-column: span 1;
  }
  .ap-laptop-span-2 {
    grid-column: span 2;
  }
  .ap-laptop-span-3 {
    grid-column: span 3;
  }
  .ap-laptop-span-4 {
    grid-column: span 4;
  }
  .ap-laptop-span-5 {
    grid-column: span 5;
  }
  .ap-laptop-span-6 {
    grid-column: span 6;
  }
  .ap-laptop-span-7 {
    grid-column: span 7;
  }
  .ap-laptop-span-8 {
    grid-column: span 8;
  }
  .ap-laptop-span-9 {
    grid-column: span 9;
  }
  .ap-laptop-span-10 {
    grid-column: span 10;
  }
  .ap-laptop-span-11 {
    grid-column: span 11;
  }
  .ap-laptop-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 90rem) {
  .ap-container {
    --ap-container: 86rem;
  }
  .ap-desktop-span-1 {
    grid-column: span 1;
  }
  .ap-desktop-span-2 {
    grid-column: span 2;
  }
  .ap-desktop-span-3 {
    grid-column: span 3;
  }
  .ap-desktop-span-4 {
    grid-column: span 4;
  }
  .ap-desktop-span-5 {
    grid-column: span 5;
  }
  .ap-desktop-span-6 {
    grid-column: span 6;
  }
  .ap-desktop-span-7 {
    grid-column: span 7;
  }
  .ap-desktop-span-8 {
    grid-column: span 8;
  }
  .ap-desktop-span-9 {
    grid-column: span 9;
  }
  .ap-desktop-span-10 {
    grid-column: span 10;
  }
  .ap-desktop-span-11 {
    grid-column: span 11;
  }
  .ap-desktop-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 120rem) {
  .ap-container {
    --ap-container: 112rem;
  }
  .ap-wide-span-1 {
    grid-column: span 1;
  }
  .ap-wide-span-2 {
    grid-column: span 2;
  }
  .ap-wide-span-3 {
    grid-column: span 3;
  }
  .ap-wide-span-4 {
    grid-column: span 4;
  }
  .ap-wide-span-5 {
    grid-column: span 5;
  }
  .ap-wide-span-6 {
    grid-column: span 6;
  }
  .ap-wide-span-7 {
    grid-column: span 7;
  }
  .ap-wide-span-8 {
    grid-column: span 8;
  }
  .ap-wide-span-9 {
    grid-column: span 9;
  }
  .ap-wide-span-10 {
    grid-column: span 10;
  }
  .ap-wide-span-11 {
    grid-column: span 11;
  }
  .ap-wide-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 160rem) {
  .ap-container {
    --ap-container: 142rem;
  }
  .ap-uhd-span-1 {
    grid-column: span 1;
  }
  .ap-uhd-span-2 {
    grid-column: span 2;
  }
  .ap-uhd-span-3 {
    grid-column: span 3;
  }
  .ap-uhd-span-4 {
    grid-column: span 4;
  }
  .ap-uhd-span-5 {
    grid-column: span 5;
  }
  .ap-uhd-span-6 {
    grid-column: span 6;
  }
  .ap-uhd-span-7 {
    grid-column: span 7;
  }
  .ap-uhd-span-8 {
    grid-column: span 8;
  }
  .ap-uhd-span-9 {
    grid-column: span 9;
  }
  .ap-uhd-span-10 {
    grid-column: span 10;
  }
  .ap-uhd-span-11 {
    grid-column: span 11;
  }
  .ap-uhd-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 320rem) {
  .ap-container {
    --ap-container: 200rem;
  }
  .ap-eight-k-span-1 {
    grid-column: span 1;
  }
  .ap-eight-k-span-2 {
    grid-column: span 2;
  }
  .ap-eight-k-span-3 {
    grid-column: span 3;
  }
  .ap-eight-k-span-4 {
    grid-column: span 4;
  }
  .ap-eight-k-span-5 {
    grid-column: span 5;
  }
  .ap-eight-k-span-6 {
    grid-column: span 6;
  }
  .ap-eight-k-span-7 {
    grid-column: span 7;
  }
  .ap-eight-k-span-8 {
    grid-column: span 8;
  }
  .ap-eight-k-span-9 {
    grid-column: span 9;
  }
  .ap-eight-k-span-10 {
    grid-column: span 10;
  }
  .ap-eight-k-span-11 {
    grid-column: span 11;
  }
  .ap-eight-k-span-12 {
    grid-column: span 12;
  }
}
.ap-social-grid {
  display: block;
  width: min(100%, 92rem);
  margin-inline: auto;
  padding: 1rem 0.75rem 5rem;
}

@media (min-width: 48rem) {
  .ap-social-grid {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 45.5rem);
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem 4.5rem;
  }
}
@media (min-width: 70rem) {
  .ap-social-grid {
    grid-template-columns: minmax(11.5rem, 15rem) minmax(30rem, 45.5rem) minmax(16rem, 20.5rem);
    gap: clamp(1rem, 2.2vw, 2rem);
  }
}
@media (min-width: 120rem) {
  .ap-social-grid {
    width: min(100%, 118rem);
    grid-template-columns: minmax(15rem, 20rem) minmax(34rem, 45.5rem) minmax(20rem, 26rem);
  }
}
@media (min-width: 160rem) {
  .ap-social-grid {
    width: min(100%, 142rem);
    grid-template-columns: minmax(36rem, 40rem) minmax(38rem, 45.5rem) minmax(36rem, 40rem);
    gap: 3rem;
  }
}
@media (min-width: 320rem) {
  .ap-social-grid {
    width: 200rem;
    grid-template-columns: 56rem 45.5rem 56rem;
    gap: 5rem;
  }
}
:root {
  --page: #edf5fb;
  --surface: #f9fcff;
  --surface-blue: #dcebf7;
  --surface-blue-strong: #cfe2f1;
  --ink: #28313f;
  --heading: #0b2e55;
  --muted: #536276;
  --line: #b9d0e1;
  --primary: #174f80;
  --primary-hover: #103c64;
  --focus: #a45f00;
  --danger: #9f2935;
}

html[data-theme=dark] {
  --page: #101923;
  --surface: #172635;
  --surface-blue: #20394f;
  --surface-blue-strong: #294861;
  --ink: #e7edf4;
  --heading: #d9ecfa;
  --muted: #b9c7d4;
  --line: #45657e;
  --primary: #9fc7e5;
  --primary-hover: #bdd9ec;
  --focus: #efb95b;
  --danger: #f098a1;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html[data-theme=dark] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 20rem;
  padding: 7.5rem 0 4.5rem;
  color: var(--ink);
  background: var(--page);
  font: 1rem/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--heading);
  background: var(--surface);
  border: 2px solid var(--primary);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

h2 {
  font-size: 1.05rem;
}

p {
  overflow-wrap: anywhere;
}

.eyebrow, .rail-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--page);
  background: var(--primary);
}

.button.secondary {
  color: var(--heading);
  background: transparent;
}

.button:hover {
  text-decoration: underline;
}

.icon-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  color: var(--heading);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.composer > div button, .post footer button, .post footer a, .comment-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 7.5rem;
  display: grid;
  grid-template: 3.75rem 3.25rem/1fr auto;
  gap: 0 0.5rem;
  align-items: center;
  padding: 0 0.85rem 0.5rem;
  color: var(--heading);
  background: color-mix(in srgb, var(--surface-blue) 97%, transparent);
  border-bottom: 2px solid var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  font-size: 0.96rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  border: 2px solid var(--heading);
  border-radius: 50%;
}

.brand strong {
  color: var(--primary);
}

.site-search {
  grid-area: 2/1/3/3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.75rem;
  padding-left: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent);
}

.site-search > i {
  width: 1.15rem;
  text-align: center;
}

.site-search input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.site-search button {
  align-self: stretch;
  padding-inline: 0.8rem;
  color: var(--page);
  background: var(--primary);
  border: 0;
  cursor: pointer;
}

.account-menu {
  position: relative;
  justify-self: end;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.4rem;
  color: var(--heading);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--surface);
  background: var(--primary);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.avatar.large {
  width: 5rem;
  height: 5rem;
  font-size: 1.15rem;
}

.account-name {
  display: none;
  text-align: left;
  line-height: 1.15;
}

.account-name small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.account-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(19rem, 100vw - 1.5rem);
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.account-popover[hidden] {
  display: none;
}

.account-popover a, .account-popover > button {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.account-popover a:hover, .account-popover > button:hover {
  background: var(--surface-blue);
}

.account-summary {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.4rem 0.7rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.account-summary div {
  min-width: 0;
}

.account-summary small {
  display: block;
  color: var(--muted);
}

.theme-row {
  justify-content: space-between;
}

.switch {
  position: relative;
  width: 2.2rem;
  height: 1.25rem;
  background: var(--line);
  border-radius: 99px;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 0.875rem;
  height: 0.875rem;
  background: var(--surface);
  border-radius: 50%;
}

.theme-row[aria-checked=true] .switch {
  background: var(--primary);
}

.theme-row[aria-checked=true] .switch::after {
  left: 1.125rem;
}

.guest-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.35rem;
}

.guest-actions .button {
  min-height: 2.35rem;
  padding-inline: 0.65rem;
}

.left-rail {
  --sidebar-stack-gap: 11.2px;
  display: grid;
  align-self: start;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  gap: 0.7rem;
  height: max-content;
  margin-bottom: 1rem;
}

.left-rail-navigation {
  min-width: 0;
  height: max-content;
  align-self: start;
}

.left-rail .rail-label, .standards-note {
  display: none;
}

.left-rail nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.left-rail nav a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.55rem;
  padding: 0.35rem 0.15rem;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.left-rail nav a:hover {
  background: var(--surface-blue);
}

.left-rail nav a.active {
  color: var(--heading);
  background: var(--surface-blue-strong);
  border-bottom-color: var(--primary);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--surface);
  background: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
}

.content-column {
  min-width: 0;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-heading__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.composer, .post, .profile-card, .feature-row, .listing, .side-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.composer > button {
  padding: 0.6rem 1rem;
  color: var(--muted);
  text-align: left;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 99px;
}

.composer > div {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
}

.composer > div button, .post footer button, .post footer a {
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  color: var(--heading);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.post {
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}

.post > header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0.95rem 0.65rem;
}

.post > header div {
  min-width: 0;
}

.post h2 {
  margin: 0;
  font-size: 0.95rem;
}

.post > header p {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.post > header .icon-button {
  margin-left: auto;
}

.verified {
  color: var(--primary);
}

.post-body {
  padding: 0.35rem 1rem 1rem;
}

.post-body > p {
  margin: 0;
}

.post > footer {
  padding: 0.6rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.post > footer div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.post-menu {
  position: relative;
  margin-left: auto;
}

.post-menu summary {
  display: grid;
  place-items: center;
  list-style: none;
}

.post-menu summary::-webkit-details-marker {
  display: none;
}

.post-menu > div {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.25rem);
  right: 0;
  width: 10rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0.35rem 1rem rgba(5, 18, 30, 0.16);
}

.post-menu button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.4rem 0.55rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.post-menu button:hover {
  background: var(--surface-blue);
}

.media-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  min-height: 12rem;
  margin-top: 1rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  text-align: center;
}

.media-preview i {
  font-size: 2.5rem;
}

.media-preview.video {
  background: var(--surface-blue-strong);
}

.post-comments {
  padding: 0.85rem 1rem 1rem;
  background: color-mix(in srgb, var(--surface-blue) 38%, var(--surface));
  border-top: 1px solid var(--line);
}

.post-comments > h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.comment:first-of-type {
  border-top: 0;
}

.comment--depth-2 {
  margin-left: 1.5rem;
}

.comment--depth-3 {
  margin-left: 3rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--line);
}

.comment .avatar, .comment-composer .avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.65rem;
}

.comment header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: baseline;
}

.comment header strong {
  color: var(--heading);
  font-size: 0.86rem;
}

.comment header span {
  color: var(--muted);
  font-size: 0.72rem;
}

.comment-depth-label {
  font-weight: 750;
}

.comment p {
  margin: 0.18rem 0;
  font-size: 0.88rem;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.comment-actions button {
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.comment-composer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.55rem;
}

.comment-composer > button {
  min-height: 2.25rem;
  padding: 0.4rem 0.8rem;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
}

.event-embed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

.event-embed time, .listing time {
  display: grid;
  place-items: center;
  width: 3.1rem;
  min-height: 3.1rem;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line);
  line-height: 1;
}

.event-embed time b, .listing time b {
  font-size: 0.65rem;
}

.event-embed time span, .listing time span {
  font-size: 1.25rem;
  font-weight: 800;
}

.event-embed h3 {
  margin: 0;
  font-size: 1rem;
}

.event-embed p:last-child {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.event-embed .button {
  grid-column: 1/-1;
}

.right-rail {
  --sidebar-stack-gap: 13.6px;
  display: none;
  align-self: start;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  height: max-content;
}

.right-rail > * {
  align-self: start;
  height: max-content;
}

.side-card {
  padding: 1rem;
  background: var(--surface-blue);
}

.side-card h2 {
  margin: 0 0 0.45rem;
}

.side-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.support-card {
  border-top: 3px solid var(--primary);
}

.support-card .button {
  width: 100%;
}

.support-card small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.affiliate-card {
  border-top: 3px solid var(--primary);
}

.affiliate-card .affiliate-label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.45rem;
  color: var(--heading);
}

.affiliate-card .affiliate-disclosure {
  margin-top: 0.8rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.affiliate-links {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.affiliate-links a {
  display: block;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  line-height: 1.35;
}

.text-link {
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 750;
}

.right-rail--profile {
  display: grid;
  gap: 0.85rem;
}

.profile-safety-card {
  border-top: 3px solid var(--primary);
}

.profile-safety-card h2 {
  font-size: 1rem;
}

.profile-safety-card > .button {
  width: 100%;
}

.profile-safety-card > .form-note {
  margin-top: 0.7rem;
}

.sidebar-blocked-user-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.sidebar-blocked-user-list article {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.sidebar-blocked-user-list strong, .sidebar-blocked-user-list span {
  display: block;
  overflow-wrap: anywhere;
}

.sidebar-blocked-user-list span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.sidebar-blocked-user-list form, .sidebar-blocked-user-list .button {
  width: 100%;
}

.feed-ad, .wall-ad-set, .wall-ad-set > div {
  width: 100%;
}

.feed-ad {
  display: grid;
  place-items: center;
  margin: 0 0 1rem;
}

.wall-ad-set__leaderboard {
  display: none;
}

.wall-ad-set .house-ad {
  width: 100%;
}

.house-ad {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  max-width: 100%;
  color: #fff;
  background: #09182b;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  box-shadow: 0 0.25rem 1rem rgba(5, 18, 30, 0.14);
}

.house-ad:hover .house-ad__cta {
  text-decoration: underline;
}

.house-ad:focus-visible {
  outline-color: var(--focus);
}

.house-ad__label {
  position: absolute;
  z-index: 4;
  top: 0.35rem;
  right: 0.4rem;
  padding: 0.08rem 0.3rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.64);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.house-ad__art {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-ad__copy, .house-ad__cta {
  z-index: 2;
}

.house-ad__copy {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.house-ad__name {
  font-size: clamp(0.86rem, 2.6vw, 1.12rem);
  line-height: 1.05;
}

.house-ad__tagline {
  font-size: clamp(0.82rem, 2.2vw, 1.02rem);
  font-weight: 800;
  line-height: 1.15;
}

.house-ad__detail {
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.92;
}

.house-ad__cta {
  align-self: center;
  justify-self: end;
  padding: 0.38rem 0.58rem;
  color: #061421;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.house-ad--hgc {
  color: #fff9df;
  background: linear-gradient(135deg, #1c0909, #741313);
  border-color: #c8a96a;
}

.house-ad--hgc .house-ad__art {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.house-ad--hgc .house-ad__cta {
  color: #431010;
  background: #fff3c4;
}

.house-ad--phronesis {
  background: linear-gradient(145deg, #09072a, #123b75);
  border-color: #77b8ff;
}

.house-ad--phronesis .house-ad__art {
  object-position: 50% 48%;
}

.house-ad--phronesis .house-ad__cta {
  color: #081b37;
  background: #d9efff;
}

.house-ad--friday {
  background: #092143;
}

.house-ad--friday::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 17, 36, 0.94), rgba(5, 17, 36, 0.68));
}

.house-ad--friday .house-ad__art {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.house-ad--friday .house-ad__cta {
  color: #092143;
  background: #dffaff;
}

.house-ad--mighty {
  color: #fff;
  background: linear-gradient(145deg, #111, #40311d);
  border-color: #d6b77b;
}

.house-ad--mighty .house-ad__art {
  background: #0b0b0b;
}

.house-ad--mighty .house-ad__cta {
  color: #19130a;
  background: #f1dba9;
}

.house-ad--dandy {
  color: #132b3d;
  background: linear-gradient(145deg, #f8f5ec, #acd3df);
  border-color: #5b8091;
}

.house-ad--dandy .house-ad__cta {
  color: #fff;
  background: #173f56;
}

.house-ad--dandy .house-ad__label {
  color: #fff;
}

.house-ad--square {
  width: 18.75rem;
  aspect-ratio: 1;
  grid-template: 42% 1fr auto/1fr;
  padding: 1rem;
}

.house-ad--square .house-ad__art {
  width: 5rem;
  height: 5rem;
  margin-top: 0.6rem;
}

.house-ad--square .house-ad__copy {
  align-content: start;
}

.house-ad--square .house-ad__cta {
  justify-self: start;
}

.house-ad--medium-rectangle {
  width: 18.75rem;
  aspect-ratio: 300/250;
  grid-template: 42% 1fr auto/1fr;
  padding: 1rem;
}

.house-ad--medium-rectangle .house-ad__art {
  width: 5rem;
  height: 5rem;
  margin-top: 0.6rem;
  border-radius: 0.5rem;
}

.house-ad--medium-rectangle .house-ad__copy {
  align-content: start;
}

.house-ad--medium-rectangle .house-ad__cta {
  justify-self: start;
}

.house-ad--leaderboard {
  width: 45.5rem;
  aspect-ratio: 728/90;
  grid-template-columns: minmax(4.5rem, 14%) 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 1rem;
}

.house-ad--leaderboard .house-ad__art {
  width: 4rem;
  height: 4rem;
  border-radius: 0.35rem;
}

.house-ad--leaderboard .house-ad__detail {
  display: none;
}

.house-ad--mobile-banner {
  width: 20rem;
  aspect-ratio: 320/50;
  grid-template-columns: 2.45rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0.45rem;
}

.house-ad--mobile-banner .house-ad__art {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.25rem;
}

.house-ad--mobile-banner .house-ad__copy {
  gap: 0.05rem;
}

.house-ad--mobile-banner .house-ad__name {
  font-size: 0.65rem;
}

.house-ad--mobile-banner .house-ad__tagline {
  font-size: 0.7rem;
  line-height: 1.05;
}

.house-ad--mobile-banner .house-ad__detail {
  display: none;
}

.house-ad--mobile-banner .house-ad__cta {
  padding: 0.25rem 0.35rem;
  font-size: 0.58rem;
  white-space: nowrap;
}

.house-ad--wide-skyscraper {
  width: 10rem;
  aspect-ratio: 160/600;
  grid-template-rows: 10rem 1fr auto;
  gap: 1rem;
  padding: 1rem 0.75rem 1.25rem;
  text-align: center;
}

.house-ad--wide-skyscraper .house-ad__art {
  width: 7.2rem;
  height: 7.2rem;
  align-self: end;
  justify-self: center;
  border-radius: 0.55rem;
}

.house-ad--wide-skyscraper .house-ad__copy {
  align-content: start;
  gap: 0.65rem;
}

.house-ad--wide-skyscraper .house-ad__name {
  font-size: 1rem;
}

.house-ad--wide-skyscraper .house-ad__tagline {
  font-size: 1.1rem;
}

.house-ad--wide-skyscraper .house-ad__detail {
  font-size: 0.78rem;
}

.house-ad--wide-skyscraper .house-ad__cta {
  justify-self: stretch;
}

.house-ad--hgc .house-ad__art {
  border-radius: 0;
  object-fit: contain;
}

.house-ad--friday.house-ad--medium-rectangle, .house-ad--friday.house-ad--wide-skyscraper {
  grid-template-rows: 1fr auto;
}

.house-ad--friday.house-ad--medium-rectangle .house-ad__art, .house-ad--friday.house-ad--wide-skyscraper .house-ad__art {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

.house-ad--friday.house-ad--medium-rectangle .house-ad__copy, .house-ad--friday.house-ad--wide-skyscraper .house-ad__copy {
  align-content: center;
}

.house-ad--friday.house-ad--leaderboard .house-ad__art, .house-ad--friday.house-ad--mobile-banner .house-ad__art {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.house-ad--friday.house-ad--leaderboard .house-ad__copy {
  grid-column: 1/3;
}

.house-ad--friday.house-ad--leaderboard .house-ad__cta {
  grid-column: 3;
}

.house-ad--friday.house-ad--mobile-banner .house-ad__copy {
  grid-column: 1/-1;
}

.library-intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.ad-size-group {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ad-size-group > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.ad-size-group h2 {
  margin: 0;
}

.ad-size-group header span, .ad-preview-grid figcaption {
  color: var(--muted);
  font-size: 0.78rem;
}

.ad-preview-grid {
  display: grid;
  gap: 1.25rem;
}

.ad-preview-grid figure {
  min-width: 0;
  margin: 0;
}

.ad-preview-stage {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1rem;
  overflow: auto;
  background: repeating-linear-gradient(45deg, var(--surface-blue), var(--surface-blue) 0.75rem, var(--surface) 0.75rem, var(--surface) 1.5rem);
  border: 1px solid var(--line);
}

.ad-preview-grid figcaption {
  margin-top: 0.4rem;
  font-weight: 750;
}

.ad-preview-grid--wide-skyscraper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ad-preview-grid--wide-skyscraper .ad-preview-stage {
  align-items: start;
  min-height: 38rem;
}

.profile-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.profile-card--expanded {
  padding: 0 0 1rem;
  overflow: hidden;
}

.profile-cover {
  position: relative;
  min-height: clamp(8rem, 22vw, 13rem);
  background: linear-gradient(135deg, var(--primary), var(--surface-blue-strong) 62%, var(--surface));
  border-bottom: 1px solid var(--line);
}

.profile-cover::after {
  content: "Action-Party US";
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  color: var(--surface);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 850;
  opacity: 0.8;
}

.profile-cover .button {
  position: absolute;
  z-index: 1;
  right: 0.75rem;
  top: 0.75rem;
  color: #fff;
  background: rgba(5, 18, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.85);
}

.profile-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: end;
  padding: 0 1rem;
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin-top: -2.25rem;
  border: 0.25rem solid var(--surface);
  font-size: 1.15rem;
}

.profile-identity {
  min-width: 0;
  padding-top: 0.75rem;
}

.profile-identity h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.profile-identity p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.profile-overview > .button {
  grid-column: 1/-1;
}

.profile-bio {
  margin: 0.85rem 1rem 0.65rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-inline: 1rem;
}

.badges span {
  padding: 0.2rem 0.5rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 1rem 0;
  border-top: 1px solid var(--line);
}

.profile-stats div {
  display: grid;
  gap: 0.05rem;
  padding: 0.7rem 0.3rem 0;
  text-align: center;
}

.profile-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-stats dd {
  order: -1;
  margin: 0;
  color: var(--heading);
  font-weight: 850;
}

.profile-dashboard {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-about, .profile-membership, .media-library, .profile-details-panel {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-heading h2, .profile-about h2, .profile-membership h2, .media-library h2, .profile-details-panel h2 {
  margin: 0;
}

.profile-about dl, .profile-details-panel dl {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
}

.profile-about dl div, .profile-details-panel dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1fr;
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.profile-about dt, .profile-details-panel dt {
  color: var(--muted);
}

.profile-about dd, .profile-details-panel dd {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
}

.profile-about dt i {
  width: 1.1rem;
  text-align: center;
}

.profile-membership {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

.profile-membership p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-filters button span {
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-activity[hidden], [data-profile-panel][hidden] {
  display: none;
}

.media-library, .profile-details-panel {
  margin-bottom: 1rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.media-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  min-height: 8rem;
  padding: 0.7rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  text-align: center;
}

.media-tile i {
  font-size: 2rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.feature-row h2 {
  margin: 0 0 0.35rem;
}

.feature-row p {
  margin: 0;
}

.feature-action {
  display: grid;
  gap: 0.35rem;
}

.feature-action span {
  color: var(--muted);
  font-size: 0.8rem;
}

.page-status {
  display: block;
  min-height: 1.4rem;
  margin-bottom: 1rem;
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: 750;
}

/* Keep profile badges and the edit action together without an oversized control. */
.profile-badge-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.65rem 1rem 0;
}

.profile-badge-actions .badges {
  min-width: 0;
  padding-inline: 0;
}

.profile-edit-button {
  align-self: end;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
}

.role-summary, .community-roles {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.role-summary > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.18rem 0.42rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.member-badge--verified {
  color: #0b4a79;
  background: #d9efff;
  border-color: #6daed6;
}

.member-badge--paid {
  color: #63380a;
  background: #fff1cf;
  border-color: #d49a43;
}

.member-badge--system-admin {
  color: #fff;
  background: #651b2a;
  border-color: #42101b;
}

.member-badge--admin, .member-badge--event-admin, .member-badge--group-admin {
  color: #fff;
  background: #174f80;
  border-color: #0f3c64;
}

.member-badge--moderator {
  color: #fff;
  background: #46586c;
  border-color: #304154;
}

html[data-theme=dark] .member-badge--verified {
  color: #d9efff;
  background: #173f5d;
}

html[data-theme=dark] .member-badge--paid {
  color: #ffe9b1;
  background: #574015;
}

.community-role-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.community-role-list article {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
}

.community-role-list strong {
  color: var(--heading);
}

.community-role-list p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.community-role-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: -1px 0 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.community-role-bar > div {
  display: grid;
  gap: 0.15rem;
}

.community-role-bar strong {
  color: var(--heading);
}

.community-role-bar span {
  color: var(--muted);
  font-size: 0.8rem;
}

.filters {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.filters button {
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.filters button.active {
  color: var(--heading);
  border-bottom-color: var(--primary);
}

.listing-stack {
  display: grid;
  gap: 0.75rem;
}

.listing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
}

.listing h2 {
  margin: 0;
}

.listing p {
  margin: 0.2rem 0;
}

.listing small {
  color: var(--muted);
}

.listing .button {
  grid-column: 1/-1;
}

.group-mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  color: var(--surface);
  background: var(--primary);
  font-weight: 800;
}

.site-footer {
  position: fixed;
  z-index: 40;
  inset: auto 0 0;
  min-height: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: #0b2e55;
  border-top: 2px solid #174f80;
  font-size: 0.75rem;
}

.site-footer > span:first-child {
  flex: 1 0 100%;
  text-align: center;
}

.alert-status {
  display: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.site-footer nav button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-footer nav button:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill--draft {
  background: #fff4c7;
  border-color: #ad8332;
  color: #5c410b;
}

html[data-theme=dark] .status-pill--draft {
  background: #4e3b13;
  color: #ffdda0;
}

.manager-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  color: var(--heading);
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

.manager-notice i {
  margin-top: 0.25rem;
}

.manager-notice p {
  margin: 0;
}

.manager-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.manager-summary article {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.manager-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.manager-summary strong {
  color: var(--heading);
  font-size: 1.25rem;
}

.manager-panel {
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.manager-panel > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-blue);
  border-bottom: 1px solid var(--line);
}

.manager-panel > header h2 {
  margin: 0;
}

.campaign-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.campaign-form > fieldset {
  min-width: 0;
  padding: 1rem;
  margin: 0;
  border: 1px solid var(--line);
}

.campaign-form > fieldset > legend {
  padding: 0 0.35rem;
  color: var(--heading);
  font-weight: 850;
}

.campaign-form > fieldset > legend span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.35rem;
  color: var(--surface);
  background: var(--primary);
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 750;
}

.form-grid input, .form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.form-grid input[type=file] {
  padding: 0.42rem;
}

.choice-group {
  min-width: 0;
  padding: 0.75rem;
  margin: 1rem 0 0;
  border: 1px solid var(--line);
}

.choice-group legend {
  padding: 0 0.3rem;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.campaign-form .choice {
  min-height: 2.5rem;
  padding: 0.4rem 0.55rem;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.campaign-form .form-note {
  display: flex;
  gap: 0.45rem;
  align-items: start;
  margin-top: 0.85rem;
}

.verification-row, .payment-gate {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  margin-top: 1rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
}

.verification-row p, .payment-gate p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.review-checklist span {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.policy-choice {
  align-items: start !important;
  min-height: auto !important;
  background: transparent !important;
  border: 0 !important;
}

.payment-gate .button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.campaign-form > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.manager-status {
  min-height: 1.4rem;
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: 750;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  text-align: center;
}

.empty-state i {
  color: var(--primary);
  font-size: 2rem;
}

.empty-state h3, .empty-state p {
  margin: 0;
}

.empty-state p {
  max-width: 34rem;
  color: var(--muted);
}

.admin-preview summary {
  padding: 1rem;
  color: var(--heading);
  background: var(--surface-blue);
  font-weight: 800;
  cursor: pointer;
}

.admin-preview__body {
  padding: 1rem;
}

.admin-preview__body > p {
  margin-top: 0;
  color: var(--muted);
}

.review-queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.review-queue span {
  padding: 0.6rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
  font-size: 0.82rem;
}

.settings-modal {
  width: min(44rem, 100% - 1.5rem);
  max-height: min(90vh, 52rem);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.settings-modal::backdrop {
  background: rgba(5, 18, 30, 0.65);
}

.settings-modal form {
  max-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.settings-modal form > header, .settings-modal form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-blue);
}

.settings-modal h2 {
  margin: 0;
}

.settings-modal form > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.settings-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
}

.settings-body > label:not(.choice), .settings-panel > label:not(.choice), .settings-panel .form-grid label, .image-upload-grid label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.settings-body input[type=text], .settings-body input[type=email], .settings-body input[type=password], .settings-body input[type=url], .settings-body input[type=tel], .settings-body input[type=date], .settings-body input[type=file], .settings-body select, .settings-body textarea {
  width: 100%;
  padding: 0.6rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.settings-body fieldset {
  min-width: 0;
  border: 1px solid var(--line);
}

.settings-body small, .settings-panel small {
  color: var(--muted);
  font-weight: 400;
}

.choice {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.required-label, .optional-label {
  justify-self: start;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.required-label {
  color: var(--danger);
}

.birth-date-summary {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.birth-date-summary .text-link {
  justify-self: start;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.calculated-age {
  font-size: 1.1rem;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.settings-tabs button {
  min-height: 2.5rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.settings-tabs button.active {
  color: var(--heading);
  border-bottom-color: var(--primary);
}

.settings-panel {
  display: grid;
  gap: 0.85rem;
}

.settings-panel h3 {
  margin: 0;
}

.settings-panel[hidden] {
  display: none;
}

.image-upload-grid {
  display: grid;
  gap: 0.75rem;
}

.optional-details {
  border: 1px solid var(--line);
}

.optional-details summary {
  padding: 0.7rem;
  color: var(--heading);
  background: var(--surface-blue);
  font-weight: 750;
  cursor: pointer;
}

.optional-details > div, .optional-details > p {
  margin: 0.8rem;
}

.security-setting, .current-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
}

.security-setting p, .current-plan p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-status, .membership-status {
  min-height: 1.4rem;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 750;
}

.superadmin-modal {
  width: min(48rem, 100% - 1.5rem);
}

.superadmin-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  color: var(--heading);
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

.superadmin-identity h3, .superadmin-identity p {
  margin: 0;
}

.superadmin-identity p {
  color: var(--muted);
  font-size: 0.85rem;
}

.superadmin-shortcuts {
  display: grid;
  gap: 0.65rem;
}

.superadmin-shortcuts > a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  text-decoration: none;
}

.superadmin-shortcuts > a:hover, .superadmin-shortcuts > a:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.superadmin-shortcuts > a > i:first-child {
  color: var(--primary);
  font-size: 1.15rem;
  text-align: center;
}

.superadmin-shortcuts span {
  display: grid;
  gap: 0.2rem;
}

.superadmin-shortcuts strong {
  color: var(--heading);
}

.superadmin-shortcuts small {
  line-height: 1.35;
}

.auth-column {
  max-width: 48rem;
  width: 100%;
  justify-self: center;
}

.auth-card, .member-help, .registration-form {
  background: var(--surface);
  border: 1px solid var(--line);
}

.auth-card {
  max-width: 38rem;
  margin-inline: auto;
}

.auth-card__header {
  padding: 1.25rem 1.25rem 0;
}

.auth-card__header h1 {
  margin-bottom: 0.35rem;
}

.auth-card__header p:last-child {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.auth-form > label, .member-help form, .registration-form .form-grid label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-form input, .member-help input, .registration-form input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.password-field {
  position: relative;
  display: flex;
}

.password-field input {
  padding-right: 3rem;
}

.password-field button {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2.75rem;
  color: var(--heading);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.auth-form__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.auth-form__row .choice {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-form__row .choice input {
  width: auto;
  min-height: auto;
}

.auth-submit {
  width: 100%;
}

.auth-status {
  display: block;
  min-height: 1.4rem;
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-blue);
  border-top: 1px solid var(--line);
}

.member-help {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.member-help h2 {
  margin: 0;
}

.member-help p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.member-help form {
  grid-template-columns: 1fr;
}

.registration-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.registration-form > fieldset {
  min-width: 0;
  padding: 1rem;
  margin: 0;
  border: 1px solid var(--line);
}

.registration-form > fieldset > legend {
  padding: 0 0.35rem;
  color: var(--heading);
  font-weight: 850;
}

.registration-form > fieldset > legend span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.35rem;
  color: var(--surface);
  background: var(--primary);
  font-size: 0.78rem;
}

.registration-form .form-grid small {
  color: var(--muted);
  font-weight: 400;
}

.registration-form input[type=checkbox], .registration-form input[type=radio] {
  width: auto;
  min-height: auto;
}

.membership-options {
  display: grid;
  gap: 0.65rem;
}

.membership-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.membership-option > input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  width: auto;
  min-height: auto;
}

.membership-option > span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  min-height: 6.5rem;
  padding: 0.85rem 0.85rem 0.85rem 2.4rem;
  background: var(--page);
  border: 1px solid var(--line);
}

.membership-option strong {
  color: var(--heading);
}

.membership-option small {
  grid-column: 1/-1;
  color: var(--muted);
  line-height: 1.4;
}

.membership-option b {
  color: var(--heading);
  font-size: 0.8rem;
}

.membership-option > input:checked + span {
  background: var(--surface-blue);
  border: 2px solid var(--primary);
}

.agreement-list {
  display: grid;
  gap: 0.8rem;
}

.agreement-list .choice {
  align-items: start;
}

.registration-form > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.current-plan .avatar {
  font-size: 1rem;
}

.verification-request {
  display: flex;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem;
  margin-top: 0.75rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
  cursor: pointer;
}

.verification-request > input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
}

.verification-request > span {
  display: grid;
  gap: 0.2rem;
}

.verification-request strong {
  color: var(--heading);
}

.verification-request small {
  color: var(--muted);
  line-height: 1.4;
}

.member-directory-controls {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.member-directory-controls label {
  min-width: 0;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding-left: 0.75rem;
  color: var(--heading);
  background: var(--page);
  border: 1px solid var(--line);
}

.directory-search input {
  min-width: 0;
  flex: 1;
  min-height: 2.6rem;
  padding: 0.5rem 0.65rem 0.5rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.member-directory-controls select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.directory-summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.directory-summary strong {
  color: var(--heading);
}

.member-directory {
  display: grid;
  gap: 0.75rem;
}

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 0.8rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.member-card[hidden] {
  display: none;
}

.member-card__image-link {
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.member-card__avatar {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 0.9rem;
}

.member-card__identity {
  min-width: 0;
}

.member-card h2 {
  margin: 0;
}

.member-card__identity h2 a {
  color: var(--heading);
}

.member-card__identity p, .member-card > p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.member-card > .badge-legend, .member-card > p, .member-card > .button {
  grid-column: 1/-1;
}

.member-card > .badge-legend {
  margin: 0;
}

.member-card > .button {
  justify-self: start;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1/-1;
}

.profile-cover--member {
  background: linear-gradient(135deg, #11385d, #7ba7c7 58%, #dcebf7);
}

.profile-cover--member::after {
  content: "Community in action";
}

.member-safety-modal fieldset {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
}

.visibility-choice {
  align-items: start;
  padding: 0.55rem 0;
}

.visibility-choice > input {
  margin-top: 0.25rem;
}

.visibility-choice > span {
  display: grid;
  gap: 0.15rem;
}

.visibility-choice strong {
  color: var(--heading);
}

.privacy-empty {
  background: var(--surface);
  border: 1px solid var(--line);
}

.identity-choices {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.public-disclosures > div {
  display: grid;
  gap: 0.85rem;
}

.public-disclosures fieldset {
  margin: 0;
}

.public-disclosures > div > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.member-badge--identity {
  background: var(--surface-blue);
  border-color: var(--primary);
  color: var(--heading);
}

.public-disclosure-card {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.public-disclosure-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.public-disclosure-card dl div {
  padding: 0.7rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
}

.public-disclosure-card dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.public-disclosure-card dd {
  margin: 0.2rem 0 0;
  color: var(--heading);
  font-weight: 800;
}

.member-badge--official {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--surface);
}

.share-actions, .share-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.share-actions .button, .share-destinations .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  text-align: center;
  text-decoration: none;
}

.share-status {
  min-height: 1.4rem;
  color: var(--heading);
  font-size: 0.85rem;
}

.support-modal .settings-body > p:first-child {
  margin: 0;
}

.support-recipient {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
}

.support-recipient span {
  color: var(--muted);
}

.support-choices, .amount-options {
  display: grid;
  gap: 0.65rem;
}

.support-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amount-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-status {
  min-height: 1.4rem;
  color: var(--heading);
  font-size: 0.85rem;
}

.settings-body input[type=date], .settings-body input[type=number] {
  width: 100%;
  padding: 0.6rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.calculated-age {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.6rem;
  color: var(--heading);
  background: var(--surface-blue);
  border-left: 3px solid var(--primary);
  font-weight: 800;
}

.avatar-image {
  object-fit: cover;
}

.profile-cover--uploaded {
  width: 100%;
  max-width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.profile-cover--uploaded::after {
  display: none;
}

.site-flashes {
  position: relative;
  z-index: 35;
  display: grid;
  gap: 0.4rem;
  width: min(48rem, 100% - 1.5rem);
  margin: 0.75rem auto 0;
}

.site-flash {
  padding: 0.7rem 0.85rem;
  margin: 0;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
}

.site-flash--error {
  border-left-color: var(--danger);
}

.site-flash--success {
  border-left-color: #2e7d55;
}

.popover-form {
  margin: 0;
}

.account-popover .popover-form button {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.account-popover .popover-form button:hover {
  background: var(--surface-blue);
}

.user-info-card {
  display: none;
  align-self: start;
  height: max-content;
  padding: 0.75rem;
  margin-top: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.user-info-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.user-info-card h2, .user-info-card p {
  margin: 0;
}

.user-info-card h2 {
  font-size: 0.9rem;
}

.user-info-card__identity p:last-child, .user-info-card--compact > p:last-of-type {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.user-info-card .badges {
  margin: 0.6rem 0;
}

.user-info-card .text-link {
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-sidebar-card {
  display: none;
  line-height: 1.35;
}

.profile-sidebar-card > p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.sidebar-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.4rem;
}

.sidebar-card-heading .icon-button {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  min-height: 1.8rem;
}

.profile-sidebar-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
}

.profile-sidebar-card dl div {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.profile-sidebar-card dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-sidebar-card dd {
  margin: 0.12rem 0 0;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profile-sidebar-card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.left-rail--profile .profile-sidebar-card {
  display: block;
}

.entity-rail-card {
  display: block;
  align-self: start;
  min-width: 0;
  height: max-content;
  padding: 0.8rem;
  margin-top: 0.7rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.entity-rail-card h1, .entity-rail-card h2, .entity-rail-card h3, .entity-rail-card p {
  margin-top: 0;
}

.entity-rail-card h1 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.entity-rail-card h2 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.entity-rail-card h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 0.82rem;
}

.entity-rail-card p, .entity-rail-card address, .entity-rail-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.entity-rail-card address {
  font-style: normal;
}

.entity-identity-card {
  padding: 0 0 0.8rem;
}

.entity-identity-card > :not(.entity-rail-cover) {
  margin-right: 0.8rem;
  margin-left: 0.8rem;
}

.entity-rail-cover {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  aspect-ratio: 16/7;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--surface-blue-strong));
  border-bottom: 1px solid var(--line);
}

.entity-rail-cover--uploaded {
  background-position: center;
  background-size: cover;
}

.entity-rail-cover--icon {
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: 2rem;
}

.entity-rail-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin-top: -0.9rem;
}

.entity-rail-identity .avatar {
  width: 3rem;
  height: 3rem;
  border: 0.2rem solid var(--surface);
}

.entity-rail-identity p, .entity-rail-title p {
  margin-bottom: 0;
}

.entity-rail-title {
  margin-top: 0.75rem;
}

.entity-rail-badges, .entity-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.entity-rail-badges span {
  padding: 0.18rem 0.4rem;
  color: var(--heading);
  background: var(--surface-blue);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 750;
}

.entity-rail-actions .button, .entity-rail-card > .button, .entity-rail-card form > .button {
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}

.entity-details {
  display: grid;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}

.entity-details div {
  display: grid;
  gap: 0.12rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.entity-details dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.entity-details dd {
  margin: 0;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.entity-related-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.entity-related-item span {
  color: var(--muted);
  font-size: 0.7rem;
}

.entity-rail-card--warning {
  border-left: 4px solid var(--accent);
}

.entity-rail-card .management-row {
  display: grid;
  align-items: stretch;
}

.entity-rail-card .management-row form, .entity-rail-card .event-status-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.entity-rail-card .inline-admin-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.entity-rail-card input, .entity-rail-card select, .entity-rail-card textarea, .rail-form input, .rail-form select {
  width: 100%;
  min-width: 0;
}

.left-rail > [data-sidebar-card-id] {
  align-self: start;
  height: max-content;
  margin-top: 0;
}

[data-sidebar-card-id] {
  position: relative;
}

.sidebar-sort-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.15rem;
  min-height: 1.8rem;
  margin: -0.35rem -0.35rem 0.35rem;
}

.sidebar-sort-controls button {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.sidebar-sort-controls button:hover {
  color: var(--heading);
  background: var(--surface-blue-strong);
  border-color: var(--line);
}

.sidebar-sort-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.sidebar-drag-handle {
  cursor: grab !important;
}

.sidebar-drag-handle:active {
  cursor: grabbing !important;
}

[data-sidebar-card-id].is-dragging {
  opacity: 0.55;
  outline: 2px dashed var(--primary);
  outline-offset: -0.2rem;
}

.sidebar-drop-slot {
  min-width: 0;
  min-height: 5rem;
  align-self: stretch;
  background: color-mix(in srgb, var(--surface-blue-strong) 70%, transparent);
  border: 2px dashed var(--primary);
}

.entity-identity-card > .sidebar-sort-controls {
  margin: 0;
  padding: 0.35rem 0.45rem 0;
}

.rail-form {
  display: grid;
  gap: 0.5rem;
}

.rail-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 750;
}

.wall-heading {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
}

.wall-heading h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.wall-heading .eyebrow {
  margin-bottom: 0.15rem;
}

.blocked-user-list, .admin-list, .notification-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.blocked-user-list article, .admin-list article, .notification-list article {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.blocked-user-list span, .admin-list p, .notification-list p, .notification-list small {
  display: block;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.notification-list article.is-unread {
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

@media (min-width: 48rem) {
  body {
    padding-top: 4.5rem;
  }
  .site-header {
    height: 4.5rem;
    grid-template: 1fr/minmax(230px, 1fr) minmax(280px, 620px) minmax(110px, 1fr);
    gap: 1rem;
    padding: 0 1.25rem;
  }
  .site-search {
    grid-area: auto;
  }
  .account-name {
    display: grid;
  }
  .left-rail {
    position: sticky;
    top: 5.75rem;
    align-self: start;
    height: max-content;
    margin: 0;
    overflow: visible;
  }
  .left-rail .rail-label, .standards-note {
    display: block;
  }
  .left-rail nav {
    display: grid;
    grid-template-columns: 1fr;
  }
  .left-rail nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0.45rem 0.6rem;
    border: 0;
    border-left: 3px solid transparent;
    font-size: 1.55rem;
    line-height: 1;
    text-align: left;
  }
  .left-rail nav a.active {
    border-left-color: var(--primary);
  }
  .standards-note {
    padding: 0.8rem;
    margin-top: 1.5rem;
    background: var(--surface-blue);
    border-top: 3px solid var(--primary);
  }
  .standards-note h2 {
    margin: 0;
    font-size: 0.9rem;
  }
  .standards-note p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
  }
  .profile-overview {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .profile-overview > .button {
    grid-column: auto;
  }
  .profile-dashboard {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .profile-membership {
    align-content: center;
  }
  .image-upload-grid, .membership-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-help {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .member-help form {
    grid-template-columns: 1fr auto;
  }
  .member-directory-controls {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.35fr) auto;
  }
  .member-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-card > .button {
    align-self: end;
  }
  .feature-row {
    grid-template-columns: 1fr auto;
  }
  .listing {
    grid-template-columns: auto 1fr auto;
  }
  .listing .button, .event-embed .button {
    grid-column: auto;
  }
  .amount-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .site-footer {
    min-height: 3.15rem;
    justify-content: space-between;
    padding-inline: 1.5rem;
  }
  .site-footer > span:first-child, .alert-status {
    display: flex;
  }
  .alert-status {
    align-items: center;
    gap: 0.4rem;
  }
}
@media (min-width: 48rem) {
  .wall-ad-set__leaderboard {
    display: block;
  }
  .wall-ad-set__mobile {
    display: none;
  }
}
@media (min-width: 48rem) {
  .user-info-card, .profile-sidebar-card {
    display: block;
  }
  .left-rail--profile {
    padding-right: 0.25rem;
  }
  .site-footer > span:first-child {
    flex: 0 1 auto;
    text-align: left;
  }
}
@media (min-width: 48rem) {
  .left-rail--associated {
    position: static;
    align-self: start;
  }
  .left-rail--associated .standards-note {
    margin-top: 0.8rem;
  }
  .left-rail--associated .entity-rail-card {
    display: block;
  }
}
@media (min-width: 48rem) and (max-width: 69.999rem) {
  .right-rail--profile {
    grid-column: 2;
  }
}
@media (min-width: 70rem) {
  .right-rail {
    position: sticky;
    top: 5.75rem;
    display: grid;
    gap: 0.85rem;
  }
  .right-rail > .house-ad {
    width: min(100%, 18.75rem);
    justify-self: center;
  }
  .right-rail--profile {
    grid-column: auto;
  }
}
/* Keep both sidebars in the same document scroll as the content wall. */
@media (min-width: 48rem) {
  .left-rail {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    scrollbar-width: auto;
  }
}
@media (min-width: 70rem) {
  .right-rail {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    scrollbar-width: auto;
  }
}
@media (min-width: 48rem) {
  .manager-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .verification-row, .payment-gate {
    grid-template-columns: 1fr auto;
  }
  .review-queue {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 32rem) {
  .house-ad--leaderboard {
    min-height: 6.25rem;
    aspect-ratio: auto;
    grid-template-columns: 3.5rem 1fr;
    padding: 0.65rem;
  }
  .house-ad--leaderboard .house-ad__art {
    width: 3.25rem;
    height: 3.25rem;
  }
  .house-ad--leaderboard .house-ad__cta {
    position: absolute;
    right: 0.55rem;
    bottom: 0.45rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.62rem;
  }
  .ad-preview-grid--wide-skyscraper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 32rem) {
  .left-rail nav a {
    font-size: 0.68rem;
    white-space: normal;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .page-heading__actions {
    justify-content: flex-start;
  }
  .page-heading__actions .button {
    flex: 1 1 100%;
  }
}
@media (min-width: 120rem) {
  body {
    font-size: 1.05rem;
  }
  .site-header, .site-footer {
    padding-inline: 5vw;
  }
}
@media (min-width: 160rem) {
  body {
    font-size: 1.1rem;
  }
  .site-header, .site-footer {
    padding-inline: 8vw;
  }
  .left-rail, .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    column-gap: 0.85rem;
    align-items: start;
  }
  .left-rail.is-masonry-grid, .right-rail.is-masonry-grid {
    grid-auto-rows: 1px;
    row-gap: 0;
  }
  .left-rail > .left-rail-navigation, .left-rail > .user-info-card, .left-rail > .profile-sidebar-card, .left-rail > .entity-rail-card, .right-rail > * {
    min-width: 0;
    align-self: start;
    height: max-content;
  }
  .right-rail > .house-ad {
    width: min(100%, 18.75rem);
  }
}
@media (min-width: 320rem) {
  body {
    font-size: 1.25rem;
    padding-top: 5.5rem;
  }
  .site-header {
    height: 5.5rem;
  }
}
/* Posts and comments application */
.composer--active {
  align-items: start;
}

.composer--active > form {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.composer--active > form > label {
  color: var(--heading);
  font-weight: 850;
}

.composer--active textarea, .composer--active input, .composer--active select, .comment-form textarea, .inline-edit textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.composer-fields {
  display: grid;
  gap: 0.65rem;
}

.composer-fields label {
  display: grid;
  gap: 0.25rem;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 750;
}

.composer--active > form > .button {
  justify-self: end;
}

.composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.composer-tool {
  position: relative;
}

.composer-tool__button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--heading);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.composer-tool__button:hover, .composer-tool__button[aria-expanded=true], .composer-tool__button.has-value {
  color: var(--primary);
  background: var(--surface-blue);
  border-color: var(--line);
}

.composer-tool__button.has-value::after {
  position: absolute;
  right: 0.12rem;
  bottom: 0.12rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--primary);
  border: 2px solid var(--surface);
  border-radius: 50%;
  content: "";
}

.composer-popover {
  position: absolute;
  z-index: 40;
  left: 0;
  bottom: calc(100% + 0.55rem);
  display: grid;
  gap: 0.65rem;
  width: min(22rem, 100vw - 3rem);
  padding: 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0.75rem 2rem rgba(5, 18, 30, 0.2);
}

.composer-popover[hidden] {
  display: none;
}

.composer-popover strong {
  color: var(--heading);
}

.composer-popover label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 750;
}

.composer-popover--image {
  width: min(28rem, 100vw - 3rem);
}

.composer-submit {
  margin-left: auto;
}

.composer-popover--card {
  top: calc(100% + 0.55rem);
  bottom: auto;
  width: min(32rem, 100vw - 3rem);
  max-height: min(70dvh, 36rem);
  overflow-y: auto;
}

.post-card-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.composer-popover .post-card-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem;
  align-items: end;
  min-height: 5.25rem;
  padding: 0.55rem;
  overflow: hidden;
  color: var(--post-card-color, var(--heading));
  background: var(--post-card-bg, var(--surface-blue));
  border: 2px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--post-card-font, inherit);
  font-weight: var(--post-card-weight, 800);
  letter-spacing: var(--post-card-letter-spacing, normal);
  cursor: pointer;
}

.post-card-choice input {
  align-self: start;
  margin: 0;
  accent-color: var(--primary);
}

.post-card-choice:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--surface);
}

.post-card-choice:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.post-card-choice--plain {
  --post-card-bg: var(--surface-blue);
  --post-card-color: var(--heading);
}

.post-card-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.composer-popover__done {
  justify-self: end;
}

.post-card-preview, .post-body--card {
  color: var(--post-card-color);
  background: var(--post-card-bg);
  font-family: var(--post-card-font);
  font-weight: var(--post-card-weight, 800);
  letter-spacing: var(--post-card-letter-spacing, normal);
}

.composer--active textarea.post-card-preview {
  min-height: 10rem;
  padding: 1.25rem;
  color: var(--post-card-color);
  background: var(--post-card-bg);
  border-color: transparent;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.22;
  text-align: center;
}

.post-body--card {
  display: grid;
  place-items: center;
  min-height: clamp(15rem, 42vw, 24rem);
  padding: clamp(1.5rem, 6vw, 3.5rem);
}

.post-body--card > p {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.45rem);
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}

.post-body--card .inline-edit {
  width: 100%;
  padding: 1rem;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
}

.post-body--card .inline-edit[hidden] {
  display: none;
}

.post-card--civic-navy {
  --post-card-bg: linear-gradient(135deg,#071c33,#123e65);
  --post-card-color: #fff;
  --post-card-font: Georgia,"Times New Roman",serif;
}

.post-card--action-red {
  --post-card-bg: linear-gradient(135deg,#68151f,#971d2b);
  --post-card-color: #fff;
  --post-card-font: "Arial Rounded MT Bold",Arial,sans-serif;
}

.post-card--gold-standard {
  --post-card-bg: linear-gradient(135deg,#f2c94c,#fff1b8);
  --post-card-color: #182b43;
  --post-card-font: Rockwell,"Roboto Slab",Georgia,serif;
}

.post-card--liberty-blue {
  --post-card-bg: linear-gradient(135deg,#083b66,#075985);
  --post-card-color: #fff;
  --post-card-font: "Trebuchet MS",Arial,sans-serif;
}

.post-card--constitution {
  --post-card-bg: linear-gradient(135deg,#e9d2a4,#fff8e8);
  --post-card-color: #382815;
  --post-card-font: Baskerville,Georgia,serif;
  --post-card-letter-spacing: .015em;
}

.post-card--prairie-green {
  --post-card-bg: linear-gradient(135deg,#123f30,#246246);
  --post-card-color: #fff;
  --post-card-font: Candara,Calibri,sans-serif;
}

.post-card--sunrise {
  --post-card-bg: linear-gradient(135deg,#6f2137,#9b382c);
  --post-card-color: #fff;
  --post-card-font: Garamond,Georgia,serif;
}

.post-card--forward-purple {
  --post-card-bg: linear-gradient(135deg,#35205f,#613581);
  --post-card-color: #fff;
  --post-card-font: "Century Gothic",Arial,sans-serif;
}

.post-card--chalkboard {
  --post-card-bg: linear-gradient(135deg,#143633,#0c2927);
  --post-card-color: #fff;
  --post-card-font: "Segoe Print","Bradley Hand",cursive;
}

.post-card--newsroom {
  --post-card-bg: linear-gradient(135deg,#111827,#374151);
  --post-card-color: #fff;
  --post-card-font: Georgia,"Times New Roman",serif;
  --post-card-letter-spacing: .025em;
}

.post-card--community {
  --post-card-bg: linear-gradient(135deg,#064d70,#0c687c);
  --post-card-color: #fff;
  --post-card-font: Verdana,Geneva,sans-serif;
}

.post-card--unity {
  --post-card-bg: linear-gradient(135deg,#173b67 0%,#3c3158 50%,#762234 100%);
  --post-card-color: #fff;
  --post-card-font: Impact,"Arial Black",sans-serif;
  --post-card-letter-spacing: .025em;
}

.verification-gate {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
}

.verification-gate > i {
  color: var(--primary);
  font-size: 1.7rem;
}

.verification-gate h2, .verification-gate p {
  margin: 0;
}

.verification-gate p {
  color: var(--muted);
  font-size: 0.85rem;
}

.verification-gate form {
  grid-column: 1/-1;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 42rem;
  margin-top: 1rem;
  object-fit: contain;
  background: var(--surface-blue);
}

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  margin-top: 1rem;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  margin-top: 1rem;
  color: var(--heading);
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
  text-decoration: none;
}

.link-card span {
  min-width: 0;
  display: grid;
}

.link-card small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-edit {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
}

.inline-edit[hidden] {
  display: none;
}

.inline-edit > div {
  display: flex;
  gap: 0.5rem;
}

.inline-edit label {
  display: grid;
  gap: 0.25rem;
  color: var(--heading);
  font-weight: 750;
}

.reaction-picker {
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.reaction-picker.is-open {
  display: grid !important;
}

.reaction-picker button {
  min-width: 0;
  flex-direction: column;
  font-size: 0.7rem;
}

.reaction-picker button[aria-pressed=true] {
  color: var(--surface);
  background: var(--primary);
}

.reaction-picker button span:first-child {
  font-size: 1.1rem;
}

.comment-actions form {
  display: inline;
}

.comment-actions form button {
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.comment .reaction-picker {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.comment .reaction-picker button span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  margin-top: 0.7rem;
}

.interaction-notice {
  padding-top: 0.65rem;
  margin: 0.65rem 0 0;
  border-top: 1px solid var(--line);
}

.post-isolation-page {
  min-height: 24rem;
}

.post-isolation-dialog {
  width: min(52rem, 100% - 1.5rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  box-shadow: 0 1rem 3rem rgba(5, 18, 30, 0.35);
}

.post-isolation-dialog::backdrop {
  background: rgba(5, 18, 30, 0.72);
}

.post-isolation-dialog > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.post-isolation-dialog > header h2, .post-isolation-dialog > header p {
  margin: 0;
}

.post-isolation-dialog > .post {
  margin: 0;
  border: 0;
}

.post-isolation-dialog .post-comments {
  max-height: 42vh;
  overflow-y: auto;
}

.dialog-fallback {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.post-isolation-dialog[open] + .dialog-fallback {
  display: none;
}

@media (min-width: 48rem) {
  .composer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .verification-gate {
    grid-template-columns: auto 1fr auto;
  }
  .verification-gate form {
    grid-column: auto;
  }
  .reaction-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 32rem) {
  .composer {
    grid-template-columns: 1fr;
  }
  .composer > .avatar {
    display: none;
  }
  .composer-toolbar {
    position: relative;
    grid-column: 1;
  }
  .composer-tool {
    position: static;
  }
  .composer-popover {
    inset: auto 0 calc(100% + 0.55rem);
    width: auto;
  }
  .composer-popover--card {
    position: fixed;
    z-index: 60;
    inset: 7.75rem 0.75rem 0.75rem;
    width: auto;
    max-height: none;
  }
  .post-card-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .composer-submit {
    flex: 1 1 auto;
  }
}
/* Events application */
.event-directory {
  display: grid;
  gap: 1rem;
}

.event-card, .event-hero, .event-info-grid > article, .event-participation, .event-management {
  background: var(--surface);
  border: 1px solid var(--line);
}

.event-card {
  overflow: hidden;
}

.event-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-card > img, .event-card__image-link > img, .event-card__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.event-card__image-link > img {
  display: block;
}

.event-card__cover, .event-hero__cover {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, var(--surface-blue-strong), var(--surface-blue));
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.event-card__body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.event-card__body h2, .event-card__body p {
  margin: 0;
}

.event-card__body h2 a {
  color: var(--heading);
}

.event-card__body > small, .event-card__meta {
  color: var(--muted);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
}

.event-date {
  color: var(--heading);
  font-weight: 750;
}

.status-pill--pending_approval, .status-pill--draft {
  background: #fff4d6;
}

.status-pill--published {
  background: #dff6e8;
}

.status-pill--rejected, .status-pill--cancelled {
  background: #fde5e5;
}

.status-pill--completed {
  background: var(--surface-blue);
}

.event-modal {
  width: min(58rem, 100% - 1.5rem);
}

.event-modal .settings-body > label, .event-modal fieldset > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.event-modal input[type=datetime-local], .event-modal input[type=number] {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.event-modal fieldset {
  display: grid;
  gap: 0.8rem;
}

.event-modal legend {
  color: var(--heading);
  font-weight: 850;
}

.event-wall-card > header {
  align-items: flex-start;
}

.event-wall-card > header > .status-pill {
  margin-left: auto;
}

.event-wall-icon {
  color: var(--surface);
  background: var(--primary);
}

.event-wall-cover {
  display: block;
  width: calc(100% + 2rem);
  max-height: 26rem;
  margin: -0.35rem -1rem 1rem;
  object-fit: cover;
}

.event-wall-card .eyebrow {
  margin: 0 0 0.25rem;
}

.event-wall-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.event-wall-title a {
  color: var(--heading);
}

.event-wall-detail {
  margin: 0.3rem 0;
  color: var(--heading);
  font-weight: 700;
}

.event-wall-detail i {
  width: 1.15rem;
  color: var(--primary);
  text-align: center;
}

.event-wall-card .post-body > p:last-child {
  margin-top: 0.75rem;
}

.event-wall-card footer .event-wall-action {
  color: var(--heading);
  font-weight: 800;
}

.event-detail {
  display: grid;
  gap: 1rem;
}

.event-hero {
  overflow: hidden;
}

.event-hero > img, .event-hero__cover {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 28rem;
  object-fit: cover;
}

.event-hero__body {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.event-hero__body h1, .event-hero__body p {
  margin: 0;
}

.event-actions, .event-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.event-info-grid {
  display: grid;
  gap: 1rem;
}

.event-info-grid > article, .event-participation, .event-management {
  padding: 1rem;
}

.event-info-grid h2, .event-info-grid h3, .event-management h2, .event-participation h2 {
  margin-top: 0;
}

.event-info-grid address {
  color: var(--ink);
  font-style: normal;
  line-height: 1.55;
}

.event-participation {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  border-left: 4px solid var(--primary);
}

.event-participation p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.event-participation form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.event-participation select, .inline-admin-form input, .inline-admin-form select, .event-review-form textarea {
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.management-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.management-row > div {
  display: grid;
  gap: 0.15rem;
}

.management-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.management-row form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.inline-admin-form {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.inline-admin-form label, .event-review-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--heading);
  font-weight: 750;
}

.event-conversation-heading {
  margin-top: 0.5rem;
}

.event-review-queue article {
  align-items: start;
}

.event-review-form {
  display: grid;
  gap: 0.5rem;
  min-width: min(100%, 20rem);
}

.event-review-form textarea {
  width: 100%;
  min-height: 5rem;
}

.event-review-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 48rem) {
  .event-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-participation {
    grid-template-columns: 1fr auto;
  }
  .inline-admin-form {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.45fr) auto;
    align-items: end;
  }
  .event-hero {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) 1.2fr;
  }
  .event-hero > img, .event-hero__cover {
    height: 100%;
    min-height: 18rem;
    aspect-ratio: auto;
  }
}
@media (min-width: 48rem) {
  .entity-rail-card .inline-admin-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
/* Groups application */
.group-directory {
  display: grid;
  gap: 1rem;
}

.group-card, .group-hero, .group-about, .group-membership-action, .group-events, .group-review-panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.group-card {
  display: grid;
  grid-template-columns: 5rem 1fr;
  overflow: hidden;
}

.group-card__icon, .group-hero__icon {
  display: grid;
  place-items: center;
  color: var(--surface);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 2rem;
}

.group-card__icon {
  text-decoration: none;
}

.group-card__body {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.group-card__body h2, .group-card__body p {
  margin: 0;
}

.group-card__body h2 a {
  color: var(--heading);
}

.group-card__body small {
  color: var(--muted);
}

.group-modal {
  width: min(50rem, 100% - 1.5rem);
}

.group-modal .settings-body > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.group-detail {
  display: grid;
  gap: 1rem;
}

.group-hero {
  display: grid;
  grid-template-columns: 6rem 1fr;
  overflow: hidden;
}

.group-hero > div {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.group-hero h1, .group-hero p {
  margin: 0;
}

.group-about {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.group-about h2, .group-about h3 {
  margin-top: 0;
}

.group-membership-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 4px solid var(--primary);
}

.group-membership-action h2, .group-membership-action p {
  margin: 0.15rem 0;
}

.group-events, .group-review-panel {
  padding: 1rem;
}

.group-events > .section-heading, .group-review-panel h2 {
  margin-top: 0;
}

.group-review-queue article {
  align-items: start;
}

@media (min-width: 48rem) {
  .group-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-hero {
    grid-template-columns: 9rem 1fr;
  }
  .group-hero__icon {
    font-size: 3rem;
  }
}
.group-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-hero {
  display: block;
}

.group-hero > .group-hero__cover {
  display: block;
  min-height: clamp(8rem, 22vw, 14rem);
  padding: 0;
  background: linear-gradient(135deg, var(--primary), var(--surface-blue-strong) 62%, var(--surface));
}

.group-hero__cover img {
  display: block;
  width: 100%;
  height: clamp(8rem, 22vw, 14rem);
  object-fit: cover;
}

.group-hero > .group-hero__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.group-hero__profile {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-top: -2.25rem;
  overflow: hidden;
  color: var(--surface);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 0.25rem solid var(--surface);
  font-size: 2rem;
}

.group-hero__profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-hero__copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding-top: 0.85rem;
}

.group-hero__copy h1, .group-hero__copy p {
  margin: 0;
}

@media (min-width: 48rem) {
  .group-hero {
    display: block;
  }
  .group-hero__content {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
  .group-hero__profile {
    width: 8rem;
    height: 8rem;
    margin-top: -3.5rem;
    font-size: 3rem;
  }
}
/* Pages application */
.page-directory {
  display: grid;
  gap: 1rem;
}

.page-card, .page-about, .page-review-panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.page-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  overflow: hidden;
}

.page-card__icon {
  display: grid;
  place-items: center;
  align-self: start;
  width: 5rem;
  height: 5rem;
  color: var(--surface);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 2rem;
  text-decoration: none;
}

.page-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-card__body {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 1rem;
}

.page-card__body h2, .page-card__body p {
  margin: 0;
}

.page-card__body h2 a {
  color: var(--heading);
}

.page-card__body small {
  color: var(--muted);
}

.page-detail {
  display: grid;
  gap: 1rem;
}

.managed-page-profile {
  margin-bottom: 0;
}

.managed-page-cover::after {
  content: "";
}

.page-avatar {
  border-radius: 0.5rem;
}

.page-about, .page-review-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.page-about h2, .page-about h3, .page-review-panel h2 {
  margin-top: 0;
}

.page-details {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.page-details div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.4fr) 1fr;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.page-details dt {
  color: var(--muted);
}

.page-details dd {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.page-modal {
  width: min(56rem, 100% - 1.5rem);
}

.page-modal .settings-body > label, .page-modal fieldset > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 700;
}

.page-modal fieldset {
  display: grid;
  gap: 0.8rem;
}

.page-modal legend {
  color: var(--heading);
  font-weight: 850;
}

.page-review-queue article {
  align-items: start;
}

.member-card__image-link:focus-visible, .event-card__image-link:focus-visible, .group-card__icon:focus-visible, .page-card__icon:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

@media (min-width: 48rem) {
  .page-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Member chat */
.messages-page {
  align-self: start;
  align-content: start;
  height: max-content;
}

.messages-page, .chat-page {
  display: grid;
  gap: 1rem;
}

.chat-create-grid {
  display: grid;
  gap: 1rem;
}

.chat-create-card, .conversation-card, .chat-header, .chat-thread, .chat-composer {
  background: var(--surface);
  border: 1px solid var(--line);
}

.chat-create-card > summary {
  padding: 1rem;
  color: var(--heading);
  font-weight: 850;
  cursor: pointer;
}

.chat-create-card > summary i {
  width: 1.5rem;
  color: var(--primary);
}

.chat-create-card > form, .chat-manage-form, .chat-report form {
  display: grid;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.chat-empty-friends {
  display: grid;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.chat-empty-friends p {
  margin: 0;
  color: var(--muted);
}

.chat-empty-friends .button {
  justify-self: start;
}

.chat-create-card label, .chat-manage-form label, .chat-report label, .chat-composer label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 750;
}

.chat-create-card input, .chat-create-card select, .chat-create-card textarea, .chat-manage-form input, .chat-report select, .chat-report textarea, .chat-composer textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.chat-create-card small {
  color: var(--muted);
  font-weight: 500;
}

.conversation-list {
  display: grid;
  gap: 0.65rem;
}

.conversation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.conversation-card:hover, .conversation-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0.35rem 1rem rgba(5, 18, 30, 0.1);
}

.conversation-card.is-unread {
  border-left: 4px solid var(--primary);
}

.conversation-card__icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--surface);
  background: var(--primary);
  border-radius: 50%;
}

.conversation-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.conversation-card__body strong {
  color: var(--heading);
}

.conversation-card__body small, .conversation-card__body > span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-badge {
  display: grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  color: #fff;
  background: var(--primary);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 850;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}

.chat-header h1, .chat-header p {
  margin: 0;
}

.chat-thread {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.chat-message {
  width: min(85%, 38rem);
  padding: 0.8rem;
  background: var(--surface-blue);
  border: 1px solid var(--line);
}

.chat-message--self {
  justify-self: end;
  background: var(--surface-blue-strong);
  border-left: 4px solid var(--primary);
}

.chat-message > header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.chat-message > header .avatar {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.72rem;
}

.chat-message > header div {
  display: grid;
}

.chat-message > header small, .chat-review-note {
  color: var(--muted);
}

.chat-message > p {
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.chat-message > footer {
  min-height: 1.5rem;
}

.chat-message > footer form {
  display: inline;
}

.chat-message > footer button {
  padding: 0.2rem;
  border: 0;
  background: transparent;
}

.chat-report > summary {
  color: var(--muted);
  cursor: pointer;
}

.chat-report form {
  padding: 0.7rem 0 0;
}

.chat-composer {
  position: sticky;
  bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 1rem;
  box-shadow: 0 -0.35rem 1rem rgba(5, 18, 30, 0.06);
}

.chat-composer label {
  grid-column: 1/-1;
}

.chat-participants {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.chat-participants li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.chat-participants .avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.65rem;
}

.chat-participants span {
  display: grid;
  min-width: 0;
}

.chat-participants small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-manage-form {
  padding: 0.75rem 0 0;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.report-evidence {
  padding: 0.75rem;
  margin-top: 0.65rem;
  background: var(--surface-blue);
  border-left: 4px solid var(--primary);
}

.report-evidence p {
  white-space: pre-wrap;
}

@media (min-width: 48rem) {
  .chat-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conversation-card {
    padding: 1.1rem;
  }
}
@media (max-width: 32rem) {
  .chat-header {
    flex-direction: column;
  }
  .chat-message {
    width: 94%;
  }
  .chat-composer {
    position: static;
    grid-template-columns: 1fr;
  }
  .chat-composer label {
    grid-column: auto;
  }
}
/* Friends and community invitations */
.friends-page {
  align-self: start;
  align-content: start;
  height: max-content;
}

.friends-page {
  display: grid;
  gap: 1rem;
}

.friend-request-card, .connection-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.friend-request-card {
  padding: 1rem;
}

.friend-request-card h2 {
  margin-top: 0;
}

.friend-request-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}

.friend-request-card label {
  display: grid;
  flex: 1 1 15rem;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 750;
}

.friend-request-card input {
  width: 100%;
  padding: 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.connection-grid {
  display: grid;
  gap: 0.75rem;
}

.connection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

.connection-card > .avatar {
  width: 2.8rem;
  height: 2.8rem;
}

.connection-card h3, .connection-card p {
  margin: 0;
}

.connection-card h3 a {
  color: var(--heading);
}

.connection-card p {
  color: var(--muted);
}

.connection-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.connection-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.friend-status {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--heading);
  font-weight: 800;
}

.entity-invite {
  padding-top: 0.65rem;
  margin-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.entity-invite > summary {
  color: var(--heading);
  font-weight: 850;
  cursor: pointer;
}

.entity-invite > summary i {
  color: var(--primary);
}

.entity-invite > form {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.7rem;
}

.entity-invite fieldset {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
}

.entity-invite legend {
  color: var(--heading);
  font-weight: 800;
}

.entity-invite > form > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-weight: 750;
}

.entity-invite input[type=text], .entity-invite input:not([type]) {
  width: 100%;
  min-width: 0;
  padding: 0.6rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.friend-picker {
  display: grid;
  gap: 0.45rem;
  max-height: 14rem;
  overflow-y: auto;
}

.friend-picker .choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem;
  background: var(--surface-blue);
}

.friend-picker .choice span {
  display: grid;
  min-width: 0;
}

.friend-picker small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-rail-actions form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 48rem) {
  .connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connection-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .connection-actions {
    grid-column: auto;
    justify-content: end;
  }
}
/* Live enrollment and advertising styles retained in the Sass source. */
.status-pill--approved {
  color: #174d2f;
  background: #dff6e8;
  border-color: #78b68d;
}

.status-pill--rejected {
  color: #721f26;
  background: #fde5e5;
  border-color: #ce858a;
}

html[data-theme=dark] .status-pill--approved {
  color: #dff6e8;
  background: #174d2f;
}

html[data-theme=dark] .status-pill--rejected {
  color: #fde5e5;
  background: #61242a;
}

.creative-upload-layout {
  display: grid;
  gap: 1rem;
}

.creative-preview {
  min-width: 0;
  padding: 0.75rem;
  background: var(--surface-blue);
  border: 1px solid var(--line);
}

.creative-preview__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creative-preview__stage {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  max-height: 32rem;
  min-height: 10rem;
  margin-inline: auto;
  overflow: hidden;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--page), var(--page) 0.75rem, var(--surface) 0.75rem, var(--surface) 1.5rem);
  border: 1px dashed var(--line);
  text-align: center;
}

.creative-preview__stage i {
  font-size: 2rem;
}

.creative-preview__stage p {
  margin: 0.45rem;
  font-size: 0.82rem;
}

.creative-preview__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.creative-preview__status {
  display: block;
  min-height: 1.35rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.creative-preview--ready {
  border-color: #4f8d67;
}

.creative-preview--ready .creative-preview__status {
  color: #28623d;
}

.creative-preview--invalid {
  border-color: var(--danger);
}

.creative-preview--invalid .creative-preview__status {
  color: var(--danger);
}

.campaign-list {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.campaign-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 0.8rem;
  background: var(--page);
  border: 1px solid var(--line);
}

.campaign-card__creative {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 0.65rem;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--surface-blue), var(--surface-blue) 0.75rem, var(--surface) 0.75rem, var(--surface) 1.5rem);
  border: 1px solid var(--line);
}

.campaign-card__creative img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 18rem;
}

.campaign-card__body {
  min-width: 0;
}

.campaign-card__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: start;
}

.campaign-card__heading h3 {
  margin: 0;
}

.campaign-card__body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.campaign-card__body dl div {
  min-width: 0;
  padding: 0.55rem;
  background: var(--surface-blue);
}

.campaign-card__body dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.campaign-card__body dd {
  margin: 0.15rem 0 0;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.campaign-card__placements {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 64rem) {
  .creative-upload-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
    align-items: start;
  }
  .campaign-card {
    grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (forced-colors: active) {
  .brand img, .side-card, .post, .composer, .listing, .feature-row {
    border: 1px solid ButtonText;
  }
}
/* Administrative form spacing */
.campaign-form > label {
  display: grid;
  gap: 0.3rem;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 750;
}

.campaign-form > label textarea {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

#country-blocks > p {
  margin: 0;
  padding-inline: 1rem;
}

#country-blocks > header + p {
  padding-top: 1rem;
}

#country-blocks > p + p {
  padding-top: 0.75rem;
}

/* Firefox-stable short-post card preview */
.composer--active textarea.post-card-preview {
  height: clamp(15rem, 42vw, 24rem);
  min-height: 15rem;
  max-height: 24rem;
  overflow-y: auto;
  resize: none;
}

/* Policy and standards pages */
.legal-document {
  padding: clamp(1rem, 2vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
}

.legal-document__header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-document__header h1 {
  margin-bottom: 0.35rem;
}

.legal-document__header > p:not(.eyebrow) {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.legal-draft-notice {
  padding: 0.85rem 1rem;
  margin: 1rem 0 0;
  color: var(--heading);
  background: var(--surface-blue);
  border-left: 4px solid var(--warning);
}

.legal-document section {
  scroll-margin-top: 6rem;
}

.legal-document section + section {
  padding-top: 0.8rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
}

.legal-document h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}

.legal-document p {
  margin: 0.55rem 0;
}

.legal-document ul {
  padding-left: 1.3rem;
}

.legal-document li + li {
  margin-top: 0.35rem;
}

.legal-document address {
  font-style: normal;
}

/* Universal 44px interactive target floor. */
:where(a[href],
button,
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
select,
textarea,
summary,
label[for],
label:has(input[type=checkbox]),
label:has(input[type=radio]),
[role=button],
[role=link],
[role=menuitem],
[role=option],
[role=tab],
[contenteditable=true],
[tabindex]:not([tabindex="-1"])) {
  min-inline-size: 44px !important;
  min-block-size: 44px !important;
}

:where(a[href],
label[for],
label:has(input[type=checkbox]),
label:has(input[type=radio]),
[role=button],
[role=link],
[role=menuitem],
[role=option],
[role=tab],
[contenteditable=true]) {
  display: inline-flex;
  align-items: center;
}

:where(input[type=checkbox], input[type=radio]) {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  flex: 0 0 auto;
}

/* Live-only mobile navigation enhancement. */
.mobile-nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.mobile-nav-toggle[aria-expanded=true] {
  color: var(--surface);
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 47.999rem) {
  .js .site-header {
    grid-template: 3.75rem 3.25rem/minmax(0, 1fr) auto auto;
  }
  .js .site-search {
    grid-area: 2/1/3/4;
  }
  .js .mobile-nav-toggle {
    display: grid;
  }
  .js .left-rail-navigation {
    position: fixed;
    z-index: 45;
    inset: 7.5rem 0 auto;
    display: none;
    max-height: calc(100dvh - 7.5rem);
    padding: 0.85rem;
    overflow-y: auto;
    color: var(--ink);
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0.75rem 1.5rem rgba(5, 18, 30, 0.2);
  }
  .js .left-rail-navigation.is-open {
    display: block;
  }
  .js .left-rail-navigation .rail-label {
    display: block;
    margin-bottom: 0.55rem;
  }
  .js .left-rail-navigation nav {
    grid-template-columns: 1fr;
  }
  .js .left-rail-navigation nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-left: 3px solid transparent;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
  }
  .js .left-rail-navigation nav a.active {
    border-left-color: var(--primary);
  }
  .js .left-rail-navigation .nav-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  body.mobile-nav-open::before {
    position: fixed;
    z-index: 44;
    inset: 7.5rem 0 0;
    background: rgba(5, 18, 30, 0.55);
    content: "";
  }
}
@media (max-width: 24rem) {
  .js .brand > span {
    display: none;
  }
}
