:root {
  --navy: #083b7c;
  --red: #d7242f;
  --white: #fff;
  --blue: var(--navy);
  --blue-dark: #052f65;
  --blue-soft: #e9f2ff;
  --red-dark: #8f1018;
  --red-soft: #fff0f1;
  --ink: #102033;
  --muted: #293b52;
  --line: #d6e0ec;
  --surface: var(--white);
  --soft: #f5f7fb;
  --app-bg: #f6f8fc;
  --app-surface: rgba(255, 255, 255, 0.94);
  --app-line: rgba(8, 59, 124, 0.1);
  --app-shadow: 0 18px 52px rgba(8, 27, 55, 0.08);
  --app-shadow-soft: 0 8px 28px rgba(8, 27, 55, 0.07);
  --app-radius: 24px;
  --app-radius-lg: 30px;
  --focus: #061a33;
  --success: #0a5d32;
  --card-border: rgba(8, 59, 124, 0.13);
  --elevation-card: 0 14px 34px rgba(12, 39, 75, 0.09);
  --elevation-hover: 0 20px 46px rgba(12, 39, 75, 0.13);
  --shadow: var(--elevation-card);
  --radius: 8px;
  --container: 1160px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 7vw, 80px) 0;
  scroll-margin-top: 86px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--blue);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 231, 241, 0.92);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  content: "";
  opacity: 0.7;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
  transition: min-height 180ms ease;
}

.site-header.is-condensed {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(12, 39, 75, 0.08);
}

.site-header.is-condensed .navbar {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--surface);
  background:
    linear-gradient(135deg, var(--blue) 0 48%, var(--red) 48% 100%);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(11, 78, 162, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-backdrop,
.nav-drawer-heading {
  display: none;
}

.nav-close {
  min-height: 40px;
  padding: 0 14px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(8, 59, 124, 0.16);
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.nav-menu .nav-mobile-cta {
  display: none;
}

@media (min-width: 768px) {
  html.is-authenticated body.app-page .app-top-title {
    display: none;
  }

  .nav-menu .nav-mobile-cta,
  .profile-menu-mobile {
    display: none;
  }
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    color 160ms ease,
    background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current] {
  color: var(--blue);
  background: var(--blue-soft);
  outline: 3px solid rgba(8, 59, 124, 0.28);
  outline-offset: 2px;
}

.nav-menu a:hover {
  transform: translateY(-1px);
}

.nav-menu a[aria-current] {
  color: var(--navy);
  background: var(--blue-soft);
  outline: 0;
}

.nav-menu a[aria-current]:focus-visible {
  outline: 3px solid rgba(8, 59, 124, 0.28);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
  border-radius: 99px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-avatar-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.profile-avatar-button:hover .profile-avatar,
.profile-avatar-button:focus-visible .profile-avatar {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(8, 59, 124, 0.22);
}

.profile-avatar-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(8, 59, 124, 0.17);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.profile-avatar-label {
  display: none;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1100;
  display: grid;
  gap: 6px;
  min-width: 224px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-hover);
}

.profile-dropdown::before {
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-top: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  content: "";
  transform: rotate(45deg);
}

.profile-dropdown-user {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-dropdown-user strong,
.profile-dropdown-user span {
  overflow-wrap: anywhere;
}

.profile-dropdown-user span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.profile-dropdown a,
.profile-dropdown button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible,
.profile-dropdown button:hover,
.profile-dropdown button:focus-visible {
  color: var(--navy);
  background: var(--blue-soft);
  outline: 3px solid rgba(8, 59, 124, 0.22);
  outline-offset: 2px;
}

.profile-menu-mobile {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(11, 78, 162, 0.22);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: var(--surface);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(11, 78, 162, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--blue);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 26px rgba(12, 39, 75, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(11, 78, 162, 0.25);
  background: var(--blue-soft);
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.button-large {
  min-width: 168px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(690px, calc(100svh - 76px));
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(64px, 8vw, 96px);
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbff 0%, var(--white) 62%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  justify-items: stretch;
}

.hero-layout > * {
  min-width: 0;
}

.hero-copy {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 720px;
  text-align: left;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 7px 12px;
  color: var(--navy);
  background: rgba(233, 242, 255, 0.72);
  border: 1px solid rgba(8, 59, 124, 0.12);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 4.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 900px;
  color: #071b33;
  font-size: clamp(2.25rem, 4.35vw, 3.45rem);
  line-height: 1.08;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 34px;
}

.hero .button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.95rem;
}

.hero .button-primary {
  background: var(--navy);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(8, 59, 124, 0.14);
}

.hero .button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(8, 59, 124, 0.16);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  background: var(--white);
  border-color: rgba(8, 59, 124, 0.28);
  box-shadow: 0 10px 24px rgba(12, 39, 75, 0.08);
}

.hero-preview {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
}

.preview-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
    var(--surface);
  border: 1px solid rgba(8, 59, 124, 0.12);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: 0 24px 70px rgba(8, 59, 124, 0.12);
}

.preview-topbar,
.preview-composer,
.preview-post,
.preview-metrics {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.preview-topbar strong,
.preview-topbar span,
.preview-composer strong,
.preview-composer span,
.preview-post strong,
.preview-post span {
  display: block;
}

.preview-kicker {
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-status {
  padding: 6px 9px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.preview-composer,
.preview-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-composer {
  padding: 14px;
}

.preview-composer span:not(.preview-avatar),
.preview-post-header span:not(.preview-avatar) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.preview-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.blue-avatar {
  background: var(--navy);
}

.preview-post {
  padding: 16px;
}

.preview-post p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.preview-tags,
.preview-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-tags {
  margin-top: 16px;
}

.preview-tags span,
.preview-metrics span {
  padding: 6px 9px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-metrics {
  justify-content: center;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(8, 59, 124, 0.06), rgba(215, 36, 47, 0.06)),
    var(--surface);
}

.action-card,
.community-panel,
.cta-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.left-heading {
  max-width: 680px;
  margin: 0;
  text-align: left;
}

.action-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(215, 36, 47, 0.24), transparent 28%),
    linear-gradient(135deg, #061a33 0%, var(--navy) 100%);
}

.action-section .section-heading h2,
.action-section .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.action-section .eyebrow {
  color: #ffb7bd;
}

.community-section {
  background:
    linear-gradient(90deg, rgba(11, 78, 162, 0.06), transparent 38%),
    linear-gradient(270deg, rgba(215, 36, 47, 0.06), transparent 42%),
    var(--surface);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.community-layout .section-heading {
  order: 2;
}

.community-panel {
  order: 1;
}

.community-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.flag-feature {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(11, 78, 162, 0.08), rgba(215, 36, 47, 0.06)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flag-feature img {
  width: 92px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(12, 39, 75, 0.14);
}

.flag-feature strong,
.flag-feature span {
  display: block;
}

.flag-feature strong {
  line-height: 1.2;
  font-weight: 900;
}

.flag-feature span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  color: #283a50;
  background: var(--soft);
  border-radius: var(--radius);
  font-weight: 800;
}

.value-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.blue-dot {
  background: var(--blue);
}

.red-dot {
  background: var(--red);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 190px;
  padding: 24px 18px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--elevation-card);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 59, 124, 0.18);
  box-shadow: var(--elevation-hover);
}

.action-card:active,
.detail-card:active,
.dashboard-card:active {
  transform: translateY(-1px) scale(0.995);
}

.action-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  transform: translateY(-2px);
}

.step-label {
  margin: 0 0 14px;
  padding: 5px 9px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(143, 16, 24, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.action-icon {
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.action-card:nth-child(even) .action-icon {
  color: var(--red);
}

.action-card h3 {
  max-width: 230px;
  font-size: 0.98rem;
}

.action-card p {
  max-width: 260px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-link-label {
  margin-top: 16px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link-label::after {
  content: " ->";
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 24%, rgba(8, 59, 124, 0.12), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(215, 36, 47, 0.11), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 76%);
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 34px;
  align-items: center;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 900;
}

.page-kicker img {
  width: 42px;
  height: 21px;
  border-radius: 4px;
  object-fit: cover;
}

.page-hero h1 {
  max-width: 780px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-summary-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
}

.summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  background: var(--soft);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 850;
}

.detail-section {
  background: var(--soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 59, 124, 0.18);
  box-shadow: var(--elevation-hover);
}

.detail-card:focus-within {
  border-color: rgba(8, 59, 124, 0.2);
  box-shadow: var(--elevation-hover);
}

.detail-card h2,
.detail-card h3 {
  font-size: 1.15rem;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-card p {
  margin: 14px 0 0;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 20px;
}

.detail-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.detail-card a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.detail-card a:hover,
.detail-card a:focus-visible {
  color: var(--red-dark);
}

.page-cta {
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.08), rgba(215, 36, 47, 0.06)),
    var(--surface);
}

.page-cta-panel {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
}

.page-cta-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.auth-section {
  min-height: calc(100dvh - 76px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 14% 20%, rgba(8, 59, 124, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(233, 242, 255, 0.72), rgba(255, 255, 255, 0.92) 45%),
    var(--white);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.auth-layout-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.auth-copy {
  display: grid;
  gap: 18px;
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.auth-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

.auth-benefits {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.auth-benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 850;
}

.auth-benefits li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  content: "";
}

.auth-form {
  align-self: center;
}

.auth-form .form-intro h1,
.auth-form .form-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  font-size: 0.9rem;
  font-weight: 850;
}

.auth-row a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.auth-row a:hover,
.auth-row a:focus-visible {
  color: var(--red-dark);
}

.account-panel {
  justify-items: start;
  text-align: left;
}

.account-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(8, 59, 124, 0.14);
  border-radius: var(--radius);
}

.account-details span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-details strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-dashboard {
  width: 100%;
  max-width: 980px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.dashboard-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(8, 59, 124, 0.2);
  box-shadow: var(--elevation-hover);
}

.dashboard-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.dashboard-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.dashboard-card small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.profile-loading-section,
.profile-error-section,
.profile-app-section {
  min-height: calc(100dvh - 76px);
  padding: clamp(20px, 4vw, 36px) 0 clamp(34px, 6vw, 58px);
  background:
    radial-gradient(circle at 10% 8%, rgba(8, 59, 124, 0.08), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f5f7fb 100%);
}

.profile-shell {
  width: min(calc(100% - 28px), 760px);
  margin-inline: auto;
}

.profile-loading-card,
.social-profile-card,
.profile-completion-card,
.profile-edit-card,
.profile-tabs-card,
.profile-alert {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 24px;
  box-shadow: var(--elevation-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.social-profile-card:hover,
.profile-completion-card:hover,
.profile-tabs-card:hover {
  box-shadow: var(--elevation-hover);
}

.profile-loading-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(28px, 8vw, 48px);
  text-align: center;
}

.profile-skeleton-card {
  justify-items: stretch;
  gap: 0;
  max-width: 760px;
  padding: 0;
  overflow: hidden;
}

.profile-skeleton-cover {
  height: clamp(82px, 18vw, 128px);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.35), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, var(--navy) 0%, #145ea8 44%, var(--red) 100%);
}

.profile-skeleton-body {
  display: grid;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 26px) 24px;
}

.profile-skeleton-avatar,
.profile-skeleton-line,
.profile-skeleton-pill {
  background: linear-gradient(90deg, #e9eef6 0%, #f7faff 50%, #e9eef6 100%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.profile-skeleton-avatar {
  width: clamp(98px, 28vw, 124px);
  height: clamp(98px, 28vw, 124px);
  margin-top: calc(clamp(42px, 10vw, 62px) * -1);
  border: 6px solid var(--white);
  border-radius: 50%;
}

.profile-skeleton-line {
  width: 52%;
  height: 16px;
  border-radius: 999px;
}

.profile-skeleton-line-wide {
  width: 72%;
  height: 24px;
}

.profile-skeleton-pill {
  width: 132px;
  height: 34px;
  border-radius: 999px;
}

.profile-loading-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.profile-loading-card h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.profile-loading-card p:not(.eyebrow) {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.profile-app-section .profile-shell {
  display: grid;
  gap: 10px;
}

.profile-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 8px;
}

.profile-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}

.profile-mini-brand span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.profile-mini-brand strong,
.profile-mini-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-mini-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.profile-app-link:hover,
.profile-app-link:focus-visible {
  background: var(--blue-soft);
  border-color: rgba(8, 59, 124, 0.24);
}

.profile-alert {
  padding: 10px 13px;
  color: var(--navy);
  background: var(--blue-soft);
  font-weight: 850;
}

.profile-alert.is-error {
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: rgba(143, 16, 24, 0.22);
}

.profile-alert.is-success {
  color: var(--success);
  background: #edf9f1;
  border-color: rgba(10, 93, 50, 0.2);
}

.social-profile-card {
  position: relative;
  overflow: hidden;
}

.profile-cover-strip {
  height: clamp(76px, 17vw, 128px);
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.38), transparent 22%),
    radial-gradient(circle at 70% 18%, rgba(41, 128, 216, 0.5), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(215, 36, 47, 0.72), transparent 30%),
    linear-gradient(135deg, #061a33 0%, var(--navy) 42%, #155da5 64%, var(--red) 100%);
}

.profile-card-main {
  display: grid;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 26px) clamp(18px, 4vw, 24px);
}

.profile-photo-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: end;
  justify-items: start;
  margin-top: calc(clamp(42px, 10vw, 62px) * -1);
}

.profile-photo-control {
  position: relative;
  grid-row: span 2;
  width: clamp(98px, 28vw, 124px);
  height: clamp(98px, 28vw, 124px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.profile-photo-control:hover {
  filter: saturate(1.06);
  transform: translateY(-2px);
}

.profile-photo-control:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  filter: saturate(1.06);
}

.profile-photo-control:disabled {
  cursor: wait;
  opacity: 0.78;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.95), rgba(215, 36, 47, 0.9)),
    var(--navy);
  border: 6px solid var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(8, 59, 124, 0.08),
    0 18px 38px rgba(12, 39, 75, 0.18);
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-badge {
  position: absolute;
  right: -3px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--navy);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(8, 59, 124, 0.22);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
}

.profile-photo-help {
  display: none;
  max-width: 280px;
  margin: 0 0 4px;
  padding: 8px 10px;
  color: #293c52;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(8, 27, 55, 0.1);
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1.35;
}

.profile-app-section.is-editing .profile-photo-help,
.profile-photo-wrap.is-uploading .profile-photo-help {
  display: block;
}

.profile-main-copy {
  display: grid;
  gap: 10px;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-name-row h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.8rem, 7vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.profile-handle,
.profile-bio,
.profile-meta-row {
  margin: 0;
  color: var(--muted);
}

.profile-handle {
  margin-top: 3px;
  font-size: 0.98rem;
  font-weight: 560;
}

.profile-handle.is-placeholder {
  color: #617186;
  font-size: 0.94rem;
  font-weight: 500;
}

.profile-bio {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.45;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 560;
}

.profile-connection-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(8, 59, 124, 0.12);
  border-radius: 999px;
  font-weight: 680;
}

.profile-edit-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  box-shadow: none;
}

.profile-completion-card,
.profile-edit-card,
.profile-tabs-card {
  padding: clamp(16px, 4vw, 24px);
}

.profile-completion-card {
  display: grid;
  gap: 16px;
}

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

.profile-completion-card h2,
.profile-edit-card h2,
.profile-empty-post h2 {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 680;
  line-height: 1.12;
}

.profile-completion-card p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.completion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.completion-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 0;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 620;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.08);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.completion-list li:hover {
  background: #eef5ff;
  transform: translateY(-1px);
}

.completion-list li[hidden] {
  display: none;
}

.completion-list li .completion-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #9dafc2;
  border-radius: 50%;
}

.completion-list li.is-complete {
  color: var(--success);
  background: #edf9f1;
  border-color: rgba(10, 93, 50, 0.2);
}

.completion-list li.is-complete .completion-check {
  position: relative;
  background: var(--success);
  border-color: var(--success);
}

.completion-list li.is-complete .completion-check::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.profile-edit-card {
  display: grid;
  gap: 12px;
}

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

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tabs-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  gap: 12px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 6px;
  padding: 5px;
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.08);
}

.profile-tabs button {
  min-width: 0;
  min-height: 42px;
  padding: 0 clamp(4px, 2vw, 10px);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.profile-tabs button[aria-selected="true"] {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(12, 39, 75, 0.09);
}

.profile-tabs button:hover,
.profile-tabs button:focus-visible {
  color: var(--navy);
  transform: translateY(-1px);
  outline: 3px solid rgba(8, 59, 124, 0.24);
  outline-offset: 2px;
}

.profile-tab-panels {
  min-height: 142px;
}

.profile-empty-post {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(16px, 4vw, 24px);
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.06), rgba(215, 36, 47, 0.04)),
    var(--white);
  border: 1px dashed rgba(8, 59, 124, 0.22);
  border-radius: var(--radius);
}

.profile-empty-post span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.profile-empty-post p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-about-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-about-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-about-list div:last-child {
  border-bottom: 0;
}

.profile-about-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-about-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.posts-loading-section,
.posts-member-section {
  min-height: calc(100dvh - 76px);
  padding: clamp(20px, 4vw, 36px) 0 clamp(34px, 6vw, 58px);
  background:
    radial-gradient(circle at 10% 8%, rgba(8, 59, 124, 0.08), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f5f7fb 100%);
}

.posts-shell {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 28px), 820px);
  margin-inline: auto;
}

.posts-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 8px;
}

.posts-alert,
.posts-member-card,
.posts-composer-card,
.posts-feed-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--elevation-card);
}

.posts-alert {
  padding: 10px 13px;
  color: var(--navy);
  background: var(--blue-soft);
  font-weight: 850;
}

.posts-alert.is-error {
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: rgba(143, 16, 24, 0.22);
}

.posts-alert.is-success {
  color: var(--success);
  background: #edf9f1;
  border-color: rgba(10, 93, 50, 0.2);
}

.posts-member-card,
.posts-composer-card,
.posts-feed-card {
  padding: clamp(16px, 4vw, 24px);
}

.posts-member-card h1,
.posts-composer-card h1,
.posts-composer-card h2 {
  max-width: 680px;
  font-size: clamp(2rem, 6vw, 3.05rem);
}

.posts-member-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
}

.composer-heading-row,
.feed-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.composer-heading-row h1,
.composer-heading-row h2,
.feed-heading-row h2 {
  color: var(--ink);
  line-height: 1.08;
}

.feed-heading-row h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.composer-member-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 220px;
  padding: 6px 11px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(8, 59, 124, 0.12);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posts-composer-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.composer-author {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.composer-author label {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.composer-avatar,
.feed-post-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.composer-avatar img,
.feed-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posts-composer-form textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab8c8;
  border-radius: var(--radius);
  resize: vertical;
  line-height: 1.48;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.posts-composer-form textarea:focus,
.posts-composer-form textarea:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.12);
  outline: none;
}

.posts-composer-form textarea[aria-invalid="true"] {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 4px rgba(215, 36, 47, 0.12);
}

.composer-meta-row,
.composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-media-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-media-panel:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.1);
}

.post-media-button,
.post-media-remove {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(8, 59, 124, 0.18);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.post-media-button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.post-media-button:hover,
.post-media-button:focus-within,
.post-media-remove:hover,
.post-media-remove:focus-visible {
  background: var(--blue-soft);
  outline: 3px solid rgba(8, 59, 124, 0.22);
  outline-offset: 2px;
}

.post-media-remove {
  min-height: 38px;
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: rgba(143, 16, 24, 0.18);
}

.post-media-preview {
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.post-media-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.posts-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.feed-post {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.feed-post-header strong,
.feed-post-header span {
  display: block;
}

.feed-post-header strong {
  color: var(--ink);
  line-height: 1.2;
}

.feed-post-header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.feed-post-body {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.feed-post-media {
  width: min(100%, 520px);
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.posts-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: clamp(18px, 5vw, 26px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.06), rgba(215, 36, 47, 0.04)),
    var(--white);
  border: 1px dashed rgba(8, 59, 124, 0.22);
  border-radius: var(--radius);
}

.posts-empty-state span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.posts-empty-state h2 {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.posts-empty-state p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feed-post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
}

.feed-post-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.feed-load-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.feature-hero,
.feature-control-section,
.feature-results-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.feature-hero {
  padding: clamp(44px, 8vw, 86px) 0 clamp(26px, 5vw, 48px);
}

.feature-hero-navy {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(215, 36, 47, 0.28), transparent 28%),
    linear-gradient(135deg, var(--navy), #061f45);
}

.feature-hero-navy .eyebrow,
.feature-hero-navy h1,
.feature-hero-navy p {
  color: var(--white);
}

.feature-hero-navy .feature-spotlight-card {
  color: var(--ink);
}

.feature-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: clamp(20px, 5vw, 48px);
  align-items: center;
}

.feature-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.feature-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.feature-spotlight-card,
.feature-submit-card,
.feature-state-card,
.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--elevation-card);
}

.feature-spotlight-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 26px);
}

.feature-spotlight-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.feature-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chip-row span,
.connection-pill,
.feature-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(8, 59, 124, 0.13);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-status-pill {
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: rgba(143, 16, 24, 0.18);
}

.feature-control-section {
  padding: 18px 0 12px;
}

.feature-control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.feature-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-filter-bar label,
.feature-submit-card .form-field {
  display: grid;
  gap: 6px;
}

.feature-filter-bar span,
.feature-submit-card label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.feature-filter-bar input,
.feature-filter-bar select,
.feature-submit-card input,
.feature-submit-card select,
.feature-submit-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab8c8;
  border-radius: var(--radius);
}

.feature-submit-card textarea {
  min-height: 112px;
  resize: vertical;
}

.feature-filter-bar input:focus,
.feature-filter-bar select:focus,
.feature-submit-card input:focus,
.feature-submit-card select:focus,
.feature-submit-card textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.12);
  outline: none;
}

.feature-member-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 780;
}

.feature-member-note strong,
.feature-member-note a {
  color: var(--navy);
  font-weight: 900;
}

.feature-submit-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: clamp(16px, 4vw, 24px);
}

.feature-status {
  margin: 12px 0 0;
}

.feature-results-section {
  padding: 20px 0 clamp(42px, 8vw, 76px);
}

.feature-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-skeleton-grid div {
  min-height: 190px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(90deg, #eef4fb, #ffffff, #eef4fb);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.feature-state-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(22px, 6vw, 38px);
  text-align: center;
}

.feature-state-card > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.feature-state-card p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list-events,
.feature-list-business {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-list-members {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-hover);
}

.feature-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.12;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.feature-card-topline,
.business-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feature-card-topline > span:first-child {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card-meta {
  color: var(--ink) !important;
  font-size: 0.92rem;
  font-weight: 830;
}

.business-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.business-logo,
.member-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 950;
}

.business-logo {
  width: 58px;
  height: 58px;
}

.business-logo img,
.member-avatar img,
.business-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-contact-row a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.member-avatar {
  width: 64px;
  height: 64px;
}

.member-card-body {
  display: grid;
  gap: 8px;
}

.member-card .button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.business-logo-preview {
  width: 92px;
  height: 92px;
}

.coming-soon-hero {
  background:
    radial-gradient(circle at 14% 24%, rgba(8, 59, 124, 0.1), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--white) 78%);
}

.coming-soon-card {
  align-content: start;
}

.coming-soon-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.status-pill {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 4px;
  padding: 7px 10px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(143, 16, 24, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 18px;
  align-items: stretch;
}

.empty-state-card {
  min-height: 0;
}

.empty-state-card h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}

.notify-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 36, 47, 0.9), rgba(8, 59, 124, 0.96)),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--elevation-card);
}

.notify-card strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.notify-card p {
  margin: 0;
  color: #eef5ff;
}

.notify-card .button {
  justify-self: start;
  color: var(--navy);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.cta-section {
  padding: clamp(34px, 5vw, 54px) 0;
  background:
    linear-gradient(135deg, rgba(11, 78, 162, 0.08), rgba(215, 36, 47, 0.06)),
    var(--surface);
}

.cta-panel {
  display: grid;
  justify-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.join-form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(12, 39, 75, 0.1);
}

.form-intro {
  padding-bottom: 2px;
}

.form-intro h3 {
  font-size: 1.35rem;
}

.form-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.sso-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab8c8;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.sso-button:hover,
.sso-button:focus-visible {
  border-color: rgba(8, 59, 124, 0.3);
  box-shadow: 0 10px 24px rgba(12, 39, 75, 0.08);
  transform: translateY(-1px);
}

.sso-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sso-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
}

.form-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.form-field label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab8c8;
  border-radius: var(--radius);
  padding: 10px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.45;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form-field input:focus,
.form-field input:focus-visible,
.form-field select:focus,
.form-field select:focus-visible,
.form-field textarea:focus,
.form-field textarea:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.12);
  outline: none;
}

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

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
  background: var(--blue-soft);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 4px rgba(215, 36, 47, 0.12);
}

.form-field input[data-valid="true"],
.form-field select[data-valid="true"],
.form-field textarea[data-valid="true"] {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(10, 93, 50, 0.1);
}

.terms-field {
  display: grid;
  gap: 8px;
}

.terms-control {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.terms-control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.12);
}

.terms-field input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.terms-field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.terms-field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.terms-field a,
.login-link a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.terms-field a:hover,
.terms-field a:focus-visible,
.login-link a:hover,
.login-link a:focus-visible {
  color: var(--red-dark);
  outline: 3px solid rgba(6, 26, 51, 0.26);
  outline-offset: 3px;
}

.field-error {
  grid-column: 1 / -1;
  min-height: 1.1rem;
  color: var(--red-dark);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.field-error.is-success {
  color: var(--success);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--red-dark);
}

.form-status.is-info {
  color: var(--muted);
}

.join-form .button {
  width: 100%;
}

.login-link {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding: 36px 0;
  color: #d8e7fb;
  background: #071b33;
}

body.auth-page .site-footer {
  display: none;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  color: var(--surface);
}

.site-footer p {
  margin: 10px 0 0;
  color: #b6c8de;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links:empty {
  display: none;
}

.footer-links a,
.social-links a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #d8e7fb;
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.1);
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

/* 2026 social app shell */
.app-top-title,
.app-bottom-nav {
  display: none;
}

body.app-page {
  background:
    radial-gradient(circle at 18% -8%, rgba(8, 59, 124, 0.1), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--app-bg) 34%, #f3f6fb 100%);
}

html.is-authenticated body.app-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(8, 59, 124, 0.12), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(215, 36, 47, 0.08), transparent 26%),
    var(--app-bg);
}

html.is-authenticated body.app-page .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(8, 59, 124, 0.08);
  box-shadow: 0 10px 34px rgba(8, 27, 55, 0.05);
  backdrop-filter: blur(24px) saturate(1.18);
}

html.is-authenticated body.app-page .site-header::after {
  opacity: 0;
}

html.is-authenticated body.app-page .navbar {
  position: relative;
  min-height: 64px;
}

html.is-authenticated body.app-page .brand {
  gap: 8px;
  font-size: 0.96rem;
}

html.is-authenticated body.app-page .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(8, 59, 124, 0.14);
}

html.is-authenticated body.app-page .app-top-title {
  position: absolute;
  left: 50%;
  display: none;
  max-width: min(42vw, 340px);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

html.is-authenticated body.app-page .nav-menu {
  gap: 4px;
  font-size: 0.88rem;
}

html.is-authenticated body.app-page .nav-menu a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
}

html.is-authenticated body.app-page .nav-menu a[href="/#join"],
html.is-authenticated body.app-page .nav-menu a[href="#join"] {
  display: none;
}

html.is-authenticated body.app-page .profile-menu {
  margin-left: 8px;
}

.app-notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--app-line);
  border-radius: 50%;
  box-shadow: var(--app-shadow-soft);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.app-notification-button svg {
  width: 20px;
  height: 20px;
}

.app-notification-button > span {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.app-notification-button:hover,
.app-notification-button:focus-visible {
  background: var(--blue-soft);
  box-shadow: var(--app-shadow);
  transform: translateY(-1px);
}

html.is-authenticated body.app-page .site-footer {
  display: none;
}

body.app-page .site-footer {
  display: none;
}

html.is-authenticated body.authenticated-shell:not(.legal-page):not(.auth-page):not(.public-page) .site-footer {
  display: none;
}

html.is-authenticated body.app-page main {
  min-height: calc(100dvh - 64px);
}

html.is-authenticated body.authenticated-shell:not(.legal-page):not(.auth-page):not(.public-page) .member-ready-card {
  max-width: 560px;
  margin-inline: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    var(--white);
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow);
}

html.is-authenticated body.authenticated-shell:not(.legal-page):not(.auth-page):not(.public-page) .cta-section {
  padding: clamp(24px, 5vw, 42px) 0 110px;
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 59, 124, 0.1), transparent 32%),
    var(--app-bg);
}

html.is-authenticated body.app-page .page-actions {
  gap: 10px;
}

html.is-authenticated body.app-page .button,
html.is-authenticated body.app-page button,
html.is-authenticated body.app-page .profile-app-link {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

html.is-authenticated body.app-page .button:active,
html.is-authenticated body.app-page button:active {
  transform: scale(0.98);
}

html.is-authenticated body.app-page .posts-loading-section,
html.is-authenticated body.app-page .posts-member-section,
html.is-authenticated body.app-page .profile-loading-section,
html.is-authenticated body.app-page .profile-error-section,
html.is-authenticated body.app-page .profile-app-section,
html.is-authenticated body.app-page .feature-hero,
html.is-authenticated body.app-page .feature-control-section,
html.is-authenticated body.app-page .feature-results-section,
html.is-authenticated body.app-page .community-groups-section,
html.is-authenticated body.account-page .auth-section {
  background: transparent;
}

html.is-authenticated body.app-page .posts-loading-section,
html.is-authenticated body.app-page .posts-member-section,
html.is-authenticated body.app-page .profile-loading-section,
html.is-authenticated body.app-page .profile-error-section,
html.is-authenticated body.app-page .profile-app-section {
  min-height: auto;
  padding: 18px 0 92px;
}

html.is-authenticated body.app-page .feature-hero {
  padding: clamp(28px, 5vw, 52px) 0 16px;
}

html.is-authenticated body.app-page .feature-control-section {
  padding: 16px 0 8px;
}

html.is-authenticated body.app-page .feature-results-section {
  padding: 18px 0 96px;
}

html.is-authenticated body.app-page .posts-shell,
html.is-authenticated body.app-page .profile-shell {
  width: min(calc(100% - 32px), 760px);
  gap: 14px;
}

html.is-authenticated body.app-page .posts-app-bar,
html.is-authenticated body.app-page .profile-app-bar {
  display: none;
}

html.is-authenticated body.app-page .posts-alert,
html.is-authenticated body.app-page .posts-member-card,
html.is-authenticated body.app-page .posts-composer-card,
html.is-authenticated body.app-page .posts-feed-card,
html.is-authenticated body.app-page .social-profile-card,
html.is-authenticated body.app-page .profile-completion-card,
html.is-authenticated body.app-page .profile-edit-card,
html.is-authenticated body.app-page .profile-tabs-card,
html.is-authenticated body.app-page .feature-spotlight-card,
html.is-authenticated body.app-page .feature-submit-card,
html.is-authenticated body.app-page .feature-state-card,
html.is-authenticated body.app-page .feature-card,
html.is-authenticated body.app-page .community-group-card,
html.is-authenticated body.account-page .page-cta-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-soft);
}

html.is-authenticated body.app-page .posts-composer-card,
html.is-authenticated body.app-page .posts-feed-card,
html.is-authenticated body.app-page .social-profile-card {
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow);
}

html.is-authenticated body.app-page .posts-composer-card {
  padding: clamp(16px, 3vw, 22px);
}

html.is-authenticated body.app-page .composer-heading-row {
  align-items: center;
}

html.is-authenticated body.app-page .composer-heading-row h1 {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html.is-authenticated body.app-page .composer-heading-row h2 {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html.is-authenticated body.app-page .composer-member-pill {
  color: var(--red-dark);
  background: rgba(215, 36, 47, 0.08);
  border-color: rgba(215, 36, 47, 0.14);
}

html.is-authenticated body.app-page .composer-avatar,
html.is-authenticated body.app-page .feed-post-avatar {
  width: 48px;
  height: 48px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

html.is-authenticated body.app-page .posts-composer-form textarea {
  min-height: 112px;
  padding: 14px 16px;
  background: #f7f9fd;
  border-color: rgba(8, 59, 124, 0.1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
}

html.is-authenticated body.app-page .post-media-panel {
  background: rgba(248, 251, 255, 0.86);
  border-color: rgba(8, 59, 124, 0.1);
  border-radius: 22px;
}

html.is-authenticated body.app-page .post-media-button,
html.is-authenticated body.app-page .post-media-remove {
  box-shadow: none;
}

html.is-authenticated body.app-page .feed-post {
  gap: 13px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(8, 59, 124, 0.1);
  border-radius: 0;
}

html.is-authenticated body.app-page .feed-post:last-child {
  border-bottom: 0;
}

html.is-authenticated body.app-page .feed-post-header {
  align-items: flex-start;
}

html.is-authenticated body.app-page .feed-post-header strong {
  font-size: 1rem;
  font-weight: 600;
}

html.is-authenticated body.app-page .feed-post-body {
  padding-left: 59px;
  font-size: 1.02rem;
  line-height: 1.5;
}

html.is-authenticated body.app-page .feed-post-media {
  width: calc(100% - 59px);
  margin-left: 59px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(8, 27, 55, 0.08);
}

.feed-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 59px;
}

.feed-post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  color: #40546f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 880;
  cursor: pointer;
}

.feed-post-actions button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  border-radius: 50%;
  font-size: 0.9rem;
}

.feed-post-actions button strong {
  font-weight: 600;
}

.feed-post-actions button:hover,
.feed-post-actions button:focus-visible,
.feed-post-actions button.is-active {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.07);
  border-color: rgba(8, 59, 124, 0.12);
}

.feed-post-actions button.is-active span {
  color: var(--white);
  background: var(--red);
}

html.is-authenticated body.app-page .feed-post-stats {
  padding-left: 59px;
}

html.is-authenticated body.app-page .feed-post-stats span {
  min-height: 26px;
  background: transparent;
  border-color: transparent;
  padding: 0;
}

html.is-authenticated body.app-page .posts-empty-state,
html.is-authenticated body.app-page .profile-empty-post {
  border: 1px solid rgba(8, 59, 124, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.06), rgba(215, 36, 47, 0.045)),
    rgba(255, 255, 255, 0.84);
}

html.is-authenticated body.profile-page .profile-cover-strip {
  height: clamp(92px, 20vw, 150px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #061a33 0%, var(--navy) 48%, var(--red) 100%);
}

html.is-authenticated body.profile-page .profile-card-main {
  padding: 0 clamp(18px, 4vw, 28px) clamp(20px, 4vw, 26px);
}

html.is-authenticated body.profile-page .profile-photo {
  border-width: 6px;
  box-shadow: 0 18px 42px rgba(8, 27, 55, 0.18);
}

html.is-authenticated body.profile-page .profile-name-row h1 {
  font-size: clamp(1.85rem, 6vw, 2.55rem);
  line-height: 1.1;
}

html.is-authenticated body.profile-page .profile-tabs {
  padding: 4px;
  background: rgba(8, 59, 124, 0.06);
  border-color: rgba(8, 59, 124, 0.09);
}

html.is-authenticated body.profile-page .profile-tabs button[aria-selected="true"] {
  box-shadow: 0 10px 24px rgba(8, 27, 55, 0.09);
}

html.is-authenticated body.feed-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(8, 59, 124, 0.08), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(215, 36, 47, 0.06), transparent 30%),
    var(--app-bg);
}

html.is-authenticated body.feed-page .posts-home-section {
  min-height: auto;
  padding: 22px 0 104px;
  background: transparent;
}

.posts-home-shell {
  display: grid;
  grid-template-columns: minmax(156px, 184px) minmax(0, 620px) minmax(220px, 280px);
  justify-content: center;
  gap: 24px;
  align-items: start;
  width: min(calc(100% - 40px), 1160px);
  margin-inline: auto;
}

.posts-center-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.posts-left-rail,
.posts-right-rail {
  position: sticky;
  top: 88px;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.rail-card,
.posts-inline-widget {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(10, 14, 20, 0.08),
    0 10px 28px rgba(8, 27, 55, 0.05);
  backdrop-filter: blur(18px) saturate(1.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.rail-card:hover,
.posts-inline-widget:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(10, 14, 20, 0.1),
    0 14px 34px rgba(8, 27, 55, 0.07);
}

.posts-profile-rail-card {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.rail-avatar,
.rail-mini-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-weight: 760;
}

.rail-avatar {
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(8, 27, 55, 0.14);
}

.rail-avatar img,
.rail-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posts-profile-rail-card strong,
.rail-event strong,
.rail-suggestion strong,
.posts-inline-widget strong {
  color: var(--ink);
  font-weight: 680;
  line-height: 1.2;
}

.posts-profile-rail-card > span:not(.rail-avatar),
.rail-event span,
.rail-suggestion span,
.rail-news-copy,
.posts-progress-widget p,
.posts-inline-widget p {
  margin: 0;
  color: #40536d;
  font-size: 0.92rem;
  font-weight: 450;
  line-height: 1.42;
}

.rail-card-link,
.rail-card-header a,
.posts-inline-widget a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 680;
}

.rail-card-link:hover,
.rail-card-link:focus-visible,
.rail-card-header a:hover,
.rail-card-header a:focus-visible,
.posts-inline-widget a:hover,
.posts-inline-widget a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.posts-nav-rail {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.posts-nav-rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #40536d;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 620;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.posts-nav-rail a:hover,
.posts-nav-rail a:focus-visible,
.posts-nav-rail a[aria-current] {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  transform: translateX(2px);
}

.rail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rail-card-header span {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rail-card-header strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 720;
}

.rail-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(8, 59, 124, 0.09);
  border-radius: 999px;
}

.rail-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--navy);
  border-radius: inherit;
  transition: width 240ms ease;
}

.rail-checklist {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 10px 0 2px;
  list-style: none;
}

.rail-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #40536d;
  font-size: 0.9rem;
  font-weight: 560;
}

.rail-checklist li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
}

.rail-event,
.rail-suggestion {
  display: grid;
  gap: 5px;
}

.rail-suggestion {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(8, 59, 124, 0.08);
}

.rail-suggestion:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.rail-mini-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
}

.rail-mini-avatar-red {
  background: var(--navy);
}

.rail-date-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.feed-filter-row {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: none;
}

.feed-filter-row::-webkit-scrollbar {
  display: none;
}

.feed-filter-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  color: #40536d;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.feed-filter-row button:hover,
.feed-filter-row button:focus-visible,
.feed-filter-row button.is-active {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  box-shadow: none;
}

.feed-filter-row button:active {
  transform: scale(0.98);
}

html.is-authenticated body.feed-page .posts-alert,
html.is-authenticated body.feed-page .posts-composer-card,
html.is-authenticated body.feed-page .posts-feed-card {
  border: 0;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(10, 14, 20, 0.08),
    0 10px 30px rgba(8, 27, 55, 0.045);
  backdrop-filter: blur(18px) saturate(1.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

html.is-authenticated body.feed-page .posts-composer-card:hover,
html.is-authenticated body.feed-page .posts-feed-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(10, 14, 20, 0.1),
    0 14px 38px rgba(8, 27, 55, 0.065);
}

html.is-authenticated body.feed-page .posts-composer-card h1 {
  font-weight: 600;
}

html.is-authenticated body.feed-page .feed-heading-row h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

html.is-authenticated body.feed-page .composer-author label {
  font-weight: 500;
}

html.is-authenticated body.feed-page .feed-post {
  transition:
    background 180ms ease,
    transform 180ms ease;
}

html.is-authenticated body.feed-page .feed-post:hover {
  background: rgba(8, 59, 124, 0.025);
}

html.is-authenticated body.feed-page .feed-post-header strong {
  font-weight: 500;
}

html.is-authenticated body.feed-page .feed-post-actions button {
  font-weight: 500;
}

.posts-inline-widget {
  display: none;
}

.posts-welcome-strip {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 10px;
  animation: feed-rise-in 260ms ease both;
}

.posts-welcome-strip h1 {
  margin: 0;
  color: #0a0e14;
  font-size: clamp(2.3rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.posts-welcome-strip p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #5b626e;
  font-weight: 400;
}

.posts-welcome-strip button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: #5b626e;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}

.posts-welcome-strip button:hover,
.posts-welcome-strip button:focus-visible {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
}

.composer-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composer-type-row button {
  min-height: 36px;
  padding: 0 13px;
  color: #5b626e;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(10, 14, 20, 0.08);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.composer-type-row button:hover,
.composer-type-row button:focus-visible,
.composer-type-row button.is-active {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.16);
}

.feed-caught-up {
  margin: 14px 0 0;
  padding: 14px 16px;
  color: #5b626e;
  text-align: center;
  background: rgba(8, 59, 124, 0.045);
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 400;
}

@keyframes feed-rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.posts-home-shell-skeleton .rail-card,
.posts-home-shell-skeleton .posts-composer-card,
.posts-home-shell-skeleton .posts-feed-card {
  overflow: hidden;
}

.skeleton-card span {
  display: block;
}

.skeleton-avatar,
.skeleton-line,
.skeleton-pill,
.skeleton-composer,
.skeleton-post {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(8, 59, 124, 0.08), rgba(255, 255, 255, 0.86), rgba(8, 59, 124, 0.08));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.skeleton-line {
  width: 68%;
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
}

.skeleton-line-wide {
  width: 88%;
}

.skeleton-pill {
  width: 48%;
  height: 32px;
  margin-top: 14px;
  border-radius: 999px;
}

.skeleton-composer {
  height: 132px;
  margin-top: 18px;
  border-radius: 24px;
}

.skeleton-post {
  height: 132px;
  margin-top: 14px;
  border-radius: 24px;
}

.skeleton-post:first-child {
  margin-top: 0;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

/* Threads-style conversation UI */
body.feed-page .thread-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
}

body.feed-page .thread-avatar-column {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  min-width: 0;
}

body.feed-page .thread-avatar {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(8, 27, 55, 0.1);
}

body.feed-page .thread-line {
  width: 2px;
  min-height: 100%;
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(8, 59, 124, 0.14), rgba(8, 59, 124, 0.03));
  border-radius: 999px;
}

body.feed-page .thread-content {
  min-width: 0;
}

body.feed-page .thread-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

body.feed-page .thread-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

body.feed-page .thread-author-line strong {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}

body.feed-page .thread-author-line span {
  color: #52627a;
  font-size: 0.86rem;
  font-weight: 500;
}

body.feed-page .thread-post-link {
  display: block;
  color: inherit;
  border-radius: 18px;
}

body.feed-page .thread-post-link:hover .feed-post-body,
body.feed-page .thread-post-link:focus-visible .feed-post-body {
  color: var(--navy);
}

body.feed-page .thread-post-link:focus-visible {
  outline: 3px solid rgba(8, 59, 124, 0.28);
  outline-offset: 4px;
}

html.is-authenticated body.feed-page .thread-post .feed-post-body,
body.feed-page .thread-post .feed-post-body {
  margin: 0;
  padding-left: 0;
  width: 100%;
  color: #142238;
  font-size: 0.99rem;
  line-height: 1.5;
}

html.is-authenticated body.feed-page .thread-post .feed-post-media,
body.feed-page .thread-post .feed-post-media {
  width: min(100%, 560px);
  margin: 10px 0 0;
  border-color: rgba(8, 59, 124, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(8, 27, 55, 0.08);
}

html.is-authenticated body.feed-page .thread-action-row,
body.feed-page .thread-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  margin-top: 9px;
  padding-left: 0;
}

body.feed-page .thread-action-row button {
  min-height: 38px;
  padding: 0 9px;
  color: #42536b;
  background: transparent;
}

body.feed-page .thread-action-row button strong {
  font-weight: 560;
}

body.feed-page .thread-action-row button em {
  color: inherit;
  font-style: normal;
  font-weight: 620;
}

body.feed-page .thread-action-row button[data-post-action="share"] em,
body.feed-page .thread-action-row button[data-thread-action="share"] em,
body.feed-page .thread-action-row button[data-thread-action="share-reply"] em {
  display: none;
}

body.feed-page .thread-action-row button.is-active[data-post-action="like"] span,
body.feed-page .thread-action-row button.is-active[data-thread-action="like"] span,
body.feed-page .thread-action-row button.is-active[data-thread-action="reply-like"] span {
  color: var(--white);
  background: var(--red);
}

html.is-authenticated body.feed-page .thread-post .feed-post-stats,
body.feed-page .thread-post .feed-post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
  padding-left: 0;
  color: #52627a;
  font-size: 0.84rem;
  font-weight: 520;
}

body.feed-page .thread-post .feed-post-stats a,
body.feed-page .thread-post .feed-post-stats span {
  min-height: 0;
  padding: 0;
  color: #52627a;
  background: transparent;
  border: 0;
}

body.feed-page .thread-post .feed-post-stats a:hover,
body.feed-page .thread-post .feed-post-stats a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  outline: none;
}

.thread-detail-main {
  min-height: calc(100dvh - 64px);
  background:
    linear-gradient(180deg, rgba(8, 59, 124, 0.045), transparent 230px),
    #f6f8fc;
}

.thread-detail-section {
  padding: clamp(12px, 3vw, 24px) 0 clamp(26px, 6vw, 54px);
}

.thread-detail-shell {
  width: min(calc(100% - 22px), 760px);
  margin-inline: auto;
}

.thread-detail-topbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px;
  padding: 8px 0;
  background: rgba(246, 248, 252, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
}

.thread-detail-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.thread-back-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 59, 124, 0.08);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(8, 27, 55, 0.08);
  font-size: 1.15rem;
  font-weight: 700;
}

.thread-detail-card,
.reply-composer-card,
.reply-login-card,
.thread-replies-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 59, 124, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(8, 27, 55, 0.065);
}

.thread-detail-card {
  padding: clamp(16px, 4vw, 22px);
}

.thread-root-card {
  margin-bottom: 10px;
}

.thread-root-card .thread-line {
  min-height: 42px;
}

.reply-composer-card,
.reply-login-card {
  margin-top: 10px;
  padding: clamp(12px, 3vw, 16px);
}

.reply-composer-form {
  display: grid;
  gap: 10px;
}

.reply-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.06);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
}

.reply-target button {
  min-height: 32px;
  color: var(--red-dark);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.reply-composer-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.reply-composer-avatar {
  width: 42px;
  height: 42px;
}

.reply-composer-avatar-inner,
.reply-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reply-input-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.reply-input-stack textarea {
  width: 100%;
  min-height: 46px;
  max-height: 220px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f9fbfe;
  border: 1px solid rgba(8, 59, 124, 0.12);
  border-radius: 18px;
  line-height: 1.45;
  resize: none;
}

.reply-input-stack textarea:focus,
.reply-input-stack textarea:focus-visible {
  border-color: rgba(8, 59, 124, 0.42);
  box-shadow: 0 0 0 4px rgba(8, 59, 124, 0.11);
  outline: 0;
}

.reply-composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #52627a;
  font-size: 0.78rem;
}

.reply-media-button,
.reply-composer-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.06);
  border: 1px solid rgba(8, 59, 124, 0.09);
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
}

.reply-composer-tools button {
  color: var(--red-dark);
  background: var(--red-soft);
}

.reply-media-preview {
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid rgba(8, 59, 124, 0.08);
  border-radius: 18px;
}

.reply-media-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.reply-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reply-submit-row .button {
  min-height: 42px;
  padding-inline: 18px;
}

.reply-login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reply-login-card p {
  margin: 0;
  color: #33435a;
  font-weight: 560;
}

.thread-replies-section {
  margin-top: 10px;
  padding: clamp(14px, 3vw, 18px);
}

.thread-replies-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.thread-replies-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.thread-replies-heading span {
  color: #52627a;
  font-size: 0.86rem;
  font-weight: 600;
}

.thread-replies-list {
  display: grid;
}

.reply-item {
  padding: 14px 0 14px calc(var(--thread-depth, 0) * 22px);
  border-bottom: 1px solid rgba(8, 59, 124, 0.08);
}

.reply-item:last-child {
  border-bottom: 0;
}

.reply-item .thread-line {
  background: rgba(8, 59, 124, 0.1);
}

.empty-replies-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 10px 12px;
  text-align: center;
}

.empty-replies-state span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.empty-replies-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.empty-replies-state p {
  max-width: 360px;
  margin: 0;
  color: #52627a;
  line-height: 1.45;
}

.thread-error-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

@media (max-width: 767px) {
  .thread-detail-main {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .thread-detail-section {
    padding-top: 8px;
  }

  .thread-detail-shell {
    width: min(calc(100% - 18px), 620px);
  }

  .thread-detail-topbar {
    top: 62px;
  }

  body.feed-page .thread-post {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
  }

  body.feed-page .thread-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
  }

  body.feed-page .thread-author-line span {
    font-size: 0.76rem;
  }

  html.is-authenticated body.feed-page .thread-post .feed-post-body,
  body.feed-page .thread-post .feed-post-body {
    margin-left: 0;
    font-size: 0.94rem;
  }

  html.is-authenticated body.feed-page .thread-action-row,
  body.feed-page .thread-action-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: 0;
    width: 100%;
  }

  .reply-item .thread-action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.feed-page .thread-action-row button {
    justify-content: center;
    min-height: 38px;
    padding: 0 3px;
    font-size: 0.68rem;
  }

  body.feed-page .thread-action-row button span {
    width: 20px;
    height: 20px;
  }

  .thread-detail-card,
  .reply-composer-card,
  .reply-login-card,
  .thread-replies-section {
    border-radius: 20px;
  }

  .reply-login-card,
  .reply-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-submit-row .button,
  .reply-login-card .button {
    width: 100%;
  }

  .reply-composer-tools span {
    flex-basis: 100%;
  }

  .reply-item {
    padding-left: calc(var(--thread-depth, 0) * 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-avatar,
  .skeleton-line,
  .skeleton-pill,
  .skeleton-composer,
  .skeleton-post {
    animation: none;
  }

  .posts-welcome-strip {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .posts-home-shell {
    grid-template-columns: minmax(150px, 184px) minmax(0, 620px);
    max-width: 860px;
  }

  .posts-right-rail {
    display: none;
  }
}

.community-groups-section {
  padding: 18px 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.compact-heading {
  max-width: 680px;
  margin-bottom: 18px;
}

.compact-heading h2 {
  max-width: 680px;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.community-group-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.community-group-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 250px;
  padding: 16px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.community-group-card:hover,
.community-group-card:focus-within {
  border-color: rgba(8, 59, 124, 0.18);
  box-shadow: var(--app-shadow);
  transform: translateY(-2px);
}

.community-group-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #235ba5);
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 28px rgba(8, 59, 124, 0.14);
}

.community-group-icon.red {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  box-shadow: 0 12px 28px rgba(215, 36, 47, 0.14);
}

.community-group-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.community-group-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.community-group-card small {
  display: inline-flex;
  margin-top: 10px;
  color: var(--navy);
  font-weight: 900;
}

.community-group-card .button {
  justify-self: start;
  min-height: 44px;
  border-radius: 999px;
}

.community-group-card .button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

html.is-authenticated body.app-page .feature-hero h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
}

html.is-authenticated body.app-page .feature-hero p:not(.eyebrow) {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

html.is-authenticated body.app-page .feature-filter-bar input,
html.is-authenticated body.app-page .feature-filter-bar select,
html.is-authenticated body.app-page .feature-submit-card input,
html.is-authenticated body.app-page .feature-submit-card select,
html.is-authenticated body.app-page .feature-submit-card textarea {
  border-color: rgba(8, 59, 124, 0.12);
  border-radius: 16px;
}

html.is-authenticated body.app-page .feature-card {
  border-radius: 22px;
}

html.is-authenticated body.app-page .feature-card:hover {
  box-shadow: var(--app-shadow);
}

html.is-authenticated body.account-page .auth-section {
  min-height: calc(100dvh - 64px);
  padding: 24px 0 94px;
}

html.is-authenticated body.account-page .account-dashboard {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--app-radius-lg);
}

html.is-authenticated body.account-page .account-dashboard h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html.is-authenticated body.account-page .dashboard-grid {
  gap: 12px;
}

html.is-authenticated body.account-page .dashboard-card {
  min-height: 0;
  border-radius: 22px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .community-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-group-card {
    min-height: 220px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-copy {
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-preview {
    width: min(100%, 520px);
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-layout .section-heading,
  .community-panel {
    order: initial;
  }

  .page-hero-layout,
  .auth-layout,
  .detail-grid,
  .empty-state-grid,
  .feature-hero-layout,
  .feature-control-layout {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    justify-items: center;
    text-align: center;
  }

  .auth-copy p:not(.eyebrow) {
    margin-inline: auto;
  }

  .auth-benefits {
    justify-self: stretch;
    width: min(100%, 520px);
    margin-inline: auto;
    text-align: left;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-list-events,
  .feature-list-business,
  .feature-list-members,
  .feature-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html.is-authenticated body.app-page,
  html.is-authenticated body.authenticated-shell:not(.legal-page):not(.auth-page):not(.public-page) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  html.is-authenticated body.app-page .navbar {
    min-height: 62px;
  }

  html.is-authenticated body.app-page .app-top-title {
    display: inline-flex;
    max-width: 42vw;
    font-size: 0.92rem;
  }

  html.is-authenticated body.app-page .app-notification-button {
    display: none;
  }

  html.is-authenticated body.app-page .profile-menu:not(.profile-menu-mobile) {
    display: none;
  }

  .app-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 990;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 26px;
    box-shadow: 0 16px 46px rgba(8, 27, 55, 0.18);
    backdrop-filter: blur(24px) saturate(1.2);
  }

  .app-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 3px 5px;
    color: #485d75;
    border-radius: 20px;
    font-size: clamp(0.54rem, 2.5vw, 0.66rem);
    font-weight: 650;
    line-height: 1.05;
    transition:
      transform 160ms ease,
      background 160ms ease,
      color 160ms ease;
  }

  .app-bottom-nav a span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--navy);
    background: rgba(8, 59, 124, 0.08);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 720;
  }

  .app-bottom-nav a strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-bottom-nav a.is-active,
  .app-bottom-nav a:hover,
  .app-bottom-nav a:focus-visible {
    color: var(--navy);
    background: rgba(8, 59, 124, 0.08);
  }

  .app-bottom-nav a.is-active span {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--red));
  }

  .app-bottom-nav a:active {
    transform: scale(0.96);
  }

  html.is-authenticated body.app-page .posts-loading-section,
  html.is-authenticated body.app-page .posts-member-section,
  html.is-authenticated body.app-page .profile-loading-section,
  html.is-authenticated body.app-page .profile-error-section,
  html.is-authenticated body.app-page .profile-app-section {
    padding: 12px 0 18px;
  }

  html.is-authenticated body.app-page .posts-shell,
  html.is-authenticated body.app-page .profile-shell {
    width: min(calc(100% - 20px), 760px);
  }

  html.is-authenticated body.app-page .feed-post-body,
  html.is-authenticated body.app-page .feed-post-actions,
  html.is-authenticated body.app-page .feed-post-stats,
  html.is-authenticated body.app-page .feed-post-media {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .community-group-grid {
    grid-template-columns: 1fr;
  }

  .community-group-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    min-height: 0;
  }

  .community-group-card .button {
    justify-self: end;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 54px 0;
  }

  .site-header {
    position: sticky;
  }

  .navbar {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 1160;
  }

  .nav-cta {
    display: none;
  }

  .nav-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: block;
    background: rgba(6, 26, 51, 0.76);
    backdrop-filter: blur(6px);
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1120;
    display: grid;
    align-content: start;
    gap: 10px;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-left: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    clip-path: inset(0 0 0 100%);
    transform: translateX(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      clip-path 220ms ease,
      transform 220ms ease,
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .nav-drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
  }

  .nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 650;
  }

  .nav-menu .nav-mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
  }

  .profile-menu-mobile {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .profile-menu-mobile .profile-avatar-button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 8px;
    background: var(--blue-soft);
    border: 1px solid rgba(8, 59, 124, 0.16);
    border-radius: var(--radius);
  }

  .profile-menu-mobile .profile-avatar-label {
    display: inline;
    color: var(--ink);
    font-weight: 700;
  }

  .profile-menu-mobile .profile-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .profile-menu-mobile .profile-dropdown::before {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.nav-open .nav-menu {
    clip-path: inset(0);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
    padding-bottom: 74px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-preview {
    width: 100%;
  }

  .feature-hero {
    padding-top: 34px;
  }

  .feature-filter-bar,
  .feature-list-events,
  .feature-list-business,
  .feature-list-members,
  .feature-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .feature-member-note {
    align-items: flex-start;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-grid,
  .account-details {
    grid-template-columns: 1fr;
  }

  .action-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    min-height: 96px;
    text-align: left;
  }

  .action-icon {
    grid-row: 1 / span 4;
    margin: 0;
  }

  .action-card h3 {
    max-width: none;
  }

  .action-card p {
    grid-column: 2;
  }

  .step-label {
    grid-column: 2;
    margin: 0 0 4px;
  }

  .card-link-label {
    grid-column: 2;
    margin-top: 8px;
  }

  .page-actions {
    width: 100%;
  }

  .page-summary-card,
  .detail-card,
  .page-cta-panel,
  .auth-form {
    padding: 20px;
  }

  .profile-app-section {
    padding-top: 18px;
  }

  .profile-shell {
    width: min(calc(100% - 20px), 760px);
  }

  .profile-app-bar {
    padding-inline: 2px;
  }

  .profile-card-main {
    gap: 14px;
  }

  .profile-name-row {
    display: grid;
    gap: 12px;
  }

  .profile-edit-button,
  .profile-form-actions .button {
    width: 100%;
  }

  .completion-list {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    border-radius: var(--radius);
  }

  .profile-tabs button {
    min-width: 0;
    padding-inline: 4px;
    font-size: 0.92rem;
  }

  .profile-about-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-section {
    padding: 30px 0;
  }

  .cta-panel {
    padding: 0;
  }

  .cta-panel,
  .join-form {
    min-width: 0;
  }

  .footer-links,
  .social-links {
    display: grid;
  }
}

@media (max-width: 420px) {
  .app-bottom-nav {
    right: 8px;
    left: 8px;
    border-radius: 24px;
  }

  .app-bottom-nav a {
    min-height: 50px;
    font-size: 0.64rem;
  }

  .community-group-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .community-group-card .button {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .community-group-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-subtitle,
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .location-pill {
    max-width: 100%;
    font-size: 0.82rem;
  }

  .flag-feature {
    grid-template-columns: 1fr;
  }

  .join-form {
    padding: 16px;
  }

  .auth-section {
    align-items: start;
  }

  .auth-copy h1 {
    font-size: clamp(2.05rem, 12vw, 2.85rem);
  }

  .auth-benefits li {
    font-size: 0.96rem;
  }

  .profile-mini-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .profile-app-link {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .profile-card-main,
  .profile-completion-card,
  .profile-edit-card,
  .profile-tabs-card {
    padding-inline: 14px;
  }

  .profile-photo-help {
    font-size: 0.8rem;
  }

  .profile-meta-row {
    display: grid;
    gap: 6px;
  }

  .feature-card,
  .feature-submit-card {
    padding: 14px;
  }

  .member-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .member-avatar {
    width: 54px;
    height: 54px;
  }

}

@media (max-width: 900px) {
  html.is-authenticated body.feed-page .posts-home-section {
    padding: 14px 0 98px;
  }

  .posts-home-shell {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
    width: min(calc(100% - 24px), 620px);
  }

  .posts-left-rail,
  .posts-right-rail {
    display: none;
  }

  .posts-inline-widget {
    display: grid;
    gap: 8px;
    margin: 4px 0;
  }
}

@media (max-width: 767px) {
  html.is-authenticated body.feed-page .posts-home-section {
    padding: 10px 0 104px;
  }

  html.is-authenticated body.feed-page .posts-home-shell {
    width: min(calc(100% - 20px), 620px);
    gap: 12px;
  }

  .posts-welcome-strip {
    align-items: flex-start;
    padding: 2px 2px 4px;
  }

  .posts-welcome-strip h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .posts-welcome-strip p:not(.eyebrow) {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .posts-welcome-strip button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card,
  html.is-authenticated body.feed-page .rail-card,
  html.is-authenticated body.feed-page .posts-inline-widget {
    border-radius: 18px;
  }

  html.is-authenticated body.feed-page .posts-composer-card {
    padding: 13px;
  }

  .composer-heading-row {
    display: grid;
    gap: 6px;
  }

  html.is-authenticated body.feed-page .composer-heading-row h1 {
    font-size: clamp(1.28rem, 6vw, 1.55rem);
  }

  .composer-member-pill {
    justify-self: start;
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.78rem;
  }

  .composer-type-row,
  .feed-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .composer-type-row button,
  .feed-filter-row button {
    min-height: 44px;
  }

  html.is-authenticated body.feed-page .posts-composer-form {
    gap: 8px;
    margin-top: 10px;
  }

  html.is-authenticated body.feed-page .composer-author {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  html.is-authenticated body.feed-page .composer-avatar,
  html.is-authenticated body.feed-page .feed-post-avatar {
    width: 38px;
    height: 38px;
  }

  html.is-authenticated body.feed-page .composer-author label {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  html.is-authenticated body.feed-page .posts-composer-form textarea {
    min-height: 82px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  html.is-authenticated body.feed-page .post-media-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px;
    border-radius: 16px;
  }

  html.is-authenticated body.feed-page .post-media-button {
    min-height: 40px;
    padding-inline: 10px;
  }

  html.is-authenticated body.feed-page .post-media-panel .form-hint {
    flex: 1 1 160px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  html.is-authenticated body.feed-page .composer-actions .button {
    min-height: 44px;
  }
}

@media (prefers-color-scheme: dark) {
  html.is-authenticated body.feed-page {
    color: #e9edf2;
    background:
      radial-gradient(circle at 10% 0%, rgba(8, 59, 124, 0.22), transparent 30%),
      #0d0f12;
  }

  html.is-authenticated body.feed-page .site-header,
  html.is-authenticated body.feed-page .app-bottom-nav,
  html.is-authenticated body.feed-page .rail-card,
  html.is-authenticated body.feed-page .posts-inline-widget,
  html.is-authenticated body.feed-page .posts-alert,
  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card {
    background: rgba(21, 24, 29, 0.9);
    box-shadow: inset 0 0 0 1px rgba(233, 237, 242, 0.08);
  }

  html.is-authenticated body.feed-page .brand,
  html.is-authenticated body.feed-page .posts-welcome-strip h1,
  html.is-authenticated body.feed-page .composer-heading-row h1,
  html.is-authenticated body.feed-page .feed-heading-row h2,
  html.is-authenticated body.feed-page .posts-profile-rail-card strong,
  html.is-authenticated body.feed-page .rail-card-header span,
  html.is-authenticated body.feed-page .rail-event strong,
  html.is-authenticated body.feed-page .rail-suggestion strong,
  html.is-authenticated body.feed-page .feed-post-header strong,
  html.is-authenticated body.feed-page .feed-post-body {
    color: #e9edf2;
  }

  html.is-authenticated body.feed-page .posts-welcome-strip p:not(.eyebrow),
  html.is-authenticated body.feed-page .posts-profile-rail-card > span:not(.rail-avatar),
  html.is-authenticated body.feed-page .rail-event span,
  html.is-authenticated body.feed-page .rail-suggestion span,
  html.is-authenticated body.feed-page .rail-news-copy,
  html.is-authenticated body.feed-page .posts-progress-widget p,
  html.is-authenticated body.feed-page .posts-inline-widget p,
  html.is-authenticated body.feed-page .feed-post-header span,
  html.is-authenticated body.feed-page .feed-post-stats,
  html.is-authenticated body.feed-page .feed-caught-up,
  html.is-authenticated body.feed-page .form-hint {
    color: #aeb7c3;
  }

  html.is-authenticated body.feed-page .posts-composer-form textarea,
  html.is-authenticated body.feed-page .post-media-panel {
    color: #e9edf2;
    background: #15181d;
    border-color: rgba(233, 237, 242, 0.1);
  }

  html.is-authenticated body.feed-page .feed-post {
    border-color: rgba(233, 237, 242, 0.08);
  }

  html.is-authenticated body.feed-page .feed-post:hover,
  html.is-authenticated body.feed-page .feed-filter-row button:hover,
  html.is-authenticated body.feed-page .feed-filter-row button:focus-visible,
  html.is-authenticated body.feed-page .feed-filter-row button.is-active,
  html.is-authenticated body.feed-page .composer-type-row button:hover,
  html.is-authenticated body.feed-page .composer-type-row button:focus-visible,
  html.is-authenticated body.feed-page .composer-type-row button.is-active {
    background: rgba(120, 165, 225, 0.12);
  }

  html.is-authenticated body.feed-page .feed-filter-row button,
  html.is-authenticated body.feed-page .composer-type-row button,
  html.is-authenticated body.feed-page .feed-post-actions button {
    color: #aeb7c3;
  }

  html.is-authenticated body.feed-page .feed-filter-row button.is-active,
  html.is-authenticated body.feed-page .composer-type-row button.is-active,
  html.is-authenticated body.feed-page .feed-post-actions button:hover,
  html.is-authenticated body.feed-page .feed-post-actions button:focus-visible,
  html.is-authenticated body.feed-page .feed-post-actions button.is-active {
    color: #78a5e1;
  }
}

/* 8.5 feed polish pass */
html.is-authenticated body.feed-page .posts-center-column {
  gap: 12px;
}

html.is-authenticated body.feed-page .posts-composer-card,
html.is-authenticated body.feed-page .posts-feed-card {
  background: rgba(255, 255, 255, 0.95);
}

html.is-authenticated body.feed-page .posts-feed-card {
  padding: clamp(14px, 3vw, 20px);
}

html.is-authenticated body.feed-page .feed-heading-row {
  align-items: center;
}

html.is-authenticated body.feed-page .feed-heading-row > div {
  min-width: 0;
}

html.is-authenticated body.feed-page .feed-heading-row h2 {
  max-width: 100%;
  overflow-wrap: normal;
}

html.is-authenticated body.feed-page .feed-heading-row .button {
  min-height: 38px;
  padding-inline: 14px;
  border-color: rgba(8, 59, 124, 0.12);
  box-shadow: none;
}

html.is-authenticated body.feed-page .feed-filter-row {
  position: sticky;
  top: 64px;
  z-index: 8;
  margin: 2px 0;
  padding: 5px;
  background: rgba(246, 248, 252, 0.86);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.1);
}

html.is-authenticated body.feed-page .posts-list {
  gap: 0;
  margin-top: 8px;
}

html.is-authenticated body.feed-page .feed-post {
  padding: 17px 0;
}

html.is-authenticated body.feed-page .feed-post-body {
  max-width: 64ch;
}

html.is-authenticated body.feed-page .feed-post-actions button {
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

html.is-authenticated body.feed-page .feed-post-actions button:active {
  transform: scale(0.94);
}

@media (max-width: 767px) {
  html.is-authenticated body.feed-page {
    background:
      linear-gradient(180deg, rgba(8, 59, 124, 0.045), transparent 210px),
      #f5f7fb;
  }

  html.is-authenticated body.feed-page .posts-home-section {
    padding-top: 0;
  }

  html.is-authenticated body.feed-page .posts-home-shell {
    width: min(100%, 620px);
    gap: 10px;
  }

  .posts-welcome-strip {
    align-items: center;
    gap: 10px;
    padding: 10px 12px 8px;
  }

  .posts-welcome-strip .eyebrow {
    display: none;
  }

  .posts-welcome-strip h1 {
    font-size: clamp(1.38rem, 6.2vw, 1.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .posts-welcome-strip p:not(.eyebrow) {
    margin-top: 3px;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .posts-welcome-strip button {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    color: #5b626e;
    font-size: 0.74rem;
  }

  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card {
    width: min(calc(100% - 18px), 620px);
    margin-inline: auto;
    border-radius: 20px;
    box-shadow:
      inset 0 0 0 1px rgba(10, 14, 20, 0.075),
      0 10px 28px rgba(8, 27, 55, 0.055);
  }

  html.is-authenticated body.feed-page .posts-composer-card {
    padding: 12px;
  }

  html.is-authenticated body.feed-page .posts-composer-card .eyebrow {
    display: none;
  }

  html.is-authenticated body.feed-page .composer-heading-row h1 {
    font-size: clamp(1.12rem, 5.2vw, 1.34rem);
    line-height: 1.15;
  }

  html.is-authenticated body.feed-page .composer-member-pill {
    display: none;
  }

  html.is-authenticated body.feed-page .posts-composer-form {
    gap: 7px;
    margin-top: 8px;
  }

  html.is-authenticated body.feed-page .composer-author {
    align-items: center;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  html.is-authenticated body.feed-page .composer-avatar,
  html.is-authenticated body.feed-page .feed-post-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
  }

  html.is-authenticated body.feed-page .composer-author label {
    color: #27364a;
    font-size: 0.78rem;
    font-weight: 500;
  }

  html.is-authenticated body.feed-page .posts-composer-form textarea {
    min-height: 76px;
    padding: 10px 11px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  html.is-authenticated body.feed-page .composer-meta-row {
    min-height: 20px;
    font-size: 0.78rem;
  }

  html.is-authenticated body.feed-page .composer-type-row {
    gap: 6px;
  }

  html.is-authenticated body.feed-page .composer-type-row button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  html.is-authenticated body.feed-page .post-media-panel {
    min-height: 42px;
    padding: 6px 8px;
  }

  html.is-authenticated body.feed-page .post-media-button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 0.86rem;
  }

  html.is-authenticated body.feed-page .post-media-button span {
    width: 22px;
    height: 22px;
  }

  html.is-authenticated body.feed-page .post-media-panel .form-hint {
    flex-basis: 128px;
    font-size: 0.7rem;
  }

  html.is-authenticated body.feed-page .composer-actions .button {
    min-height: 42px;
    border-radius: 13px;
    font-size: 0.9rem;
  }

  html.is-authenticated body.feed-page .feed-filter-row {
    top: 62px;
    width: min(calc(100% - 18px), 620px);
    margin: 0 auto;
    padding: 5px;
  }

  html.is-authenticated body.feed-page .feed-filter-row button {
    flex: 1 1 0;
    min-height: 36px;
    padding-inline: 6px;
    font-size: 0.8rem;
  }

  html.is-authenticated body.feed-page .feed-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  html.is-authenticated body.feed-page .feed-heading-row .eyebrow {
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }

  html.is-authenticated body.feed-page .feed-heading-row h2 {
    font-size: 1.18rem;
    line-height: 1.12;
    white-space: nowrap;
  }

  html.is-authenticated body.feed-page .feed-heading-row .button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  html.is-authenticated body.feed-page .feed-post {
    gap: 9px;
    padding: 15px 0;
  }

  html.is-authenticated body.feed-page .feed-post-header {
    gap: 9px;
  }

  html.is-authenticated body.feed-page .feed-post-header strong {
    font-size: 0.92rem;
  }

  html.is-authenticated body.feed-page .feed-post-header span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  html.is-authenticated body.feed-page .feed-post-body,
  html.is-authenticated body.feed-page .feed-post-actions,
  html.is-authenticated body.feed-page .feed-post-stats,
  html.is-authenticated body.feed-page .feed-post-media {
    margin-left: 43px;
    padding-left: 0;
    width: calc(100% - 43px);
  }

  html.is-authenticated body.feed-page .feed-post-body {
    font-size: 0.94rem;
    line-height: 1.54;
  }

  html.is-authenticated body.feed-page .feed-post-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  html.is-authenticated body.feed-page .feed-post-actions button {
    justify-content: center;
    min-height: 36px;
    padding: 0 4px;
    font-size: 0.7rem;
  }

  html.is-authenticated body.feed-page .feed-post-actions button span {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }

  html.is-authenticated body.feed-page .feed-post-stats {
    gap: 10px;
    font-size: 0.76rem;
  }

  html.is-authenticated body.feed-page .feed-caught-up {
    margin-top: 10px;
    padding: 11px 12px;
    font-size: 0.78rem;
    border-radius: 14px;
  }

  html.is-authenticated body.feed-page .posts-inline-widget {
    width: calc(100% - 43px);
    margin-left: 43px;
    padding: 12px;
    border-radius: 16px;
  }
}

/* 9/10 feed and profile finish pass */
@media (min-width: 768px) {
  html.is-authenticated body.app-page .app-top-title {
    display: none !important;
  }

  html.is-authenticated body.app-page .nav-menu {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.6vw, 18px);
    min-width: 0;
    transform: none;
  }

  html.is-authenticated body.app-page .nav-menu > a:not(.nav-mobile-cta) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    min-height: 44px;
    padding: 0 10px;
  }

  html.is-authenticated body.app-page .nav-menu .nav-mobile-cta {
    display: none !important;
  }
}

.posts-composer-card h2 {
  max-width: 680px;
  font-size: clamp(1.5rem, 4vw, 2.05rem);
}

.composer-heading-row h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

html.is-authenticated body.app-page .composer-heading-row h2 {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html.is-authenticated body.feed-page .posts-welcome-strip h1 {
  font-weight: 700;
}

html.is-authenticated body.feed-page .eyebrow,
html.is-authenticated body.profile-page .eyebrow {
  font-weight: 700;
}

html.is-authenticated body.feed-page .composer-member-pill,
html.is-authenticated body.feed-page .post-media-button,
html.is-authenticated body.feed-page .post-media-remove,
html.is-authenticated body.feed-page .posts-empty-state h2,
html.is-authenticated body.feed-page .rail-card-header span,
html.is-authenticated body.feed-page .rail-card-header strong,
html.is-authenticated body.feed-page .rail-event strong,
html.is-authenticated body.feed-page .rail-suggestion strong,
html.is-authenticated body.profile-page .profile-tabs button,
html.is-authenticated body.profile-page .profile-completion-card h2 {
  font-weight: 600;
}

html.is-authenticated body.feed-page .feed-post-actions button,
html.is-authenticated body.feed-page .feed-post-actions button strong,
html.is-authenticated body.feed-page .composer-type-row button,
html.is-authenticated body.feed-page .feed-filter-row button {
  font-weight: 500;
}

html.is-authenticated body.feed-page .posts-alert,
html.is-authenticated body.feed-page .posts-composer-card,
html.is-authenticated body.feed-page .posts-feed-card {
  border: 0;
  box-shadow: 0 14px 36px rgba(8, 27, 55, 0.065);
}

html.is-authenticated body.feed-page .posts-composer-card:hover,
html.is-authenticated body.feed-page .posts-feed-card:hover,
html.is-authenticated body.feed-page .posts-composer-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(8, 27, 55, 0.09);
}

html.is-authenticated body.feed-page .rail-card,
html.is-authenticated body.feed-page .posts-inline-widget {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(10, 14, 20, 0.08);
}

html.is-authenticated body.feed-page .posts-composer-card,
html.is-authenticated body.feed-page .posts-feed-card,
html.is-authenticated body.feed-page .rail-card,
html.is-authenticated body.feed-page .posts-inline-widget,
html.is-authenticated body.feed-page .feed-post,
html.is-authenticated body.feed-page .feed-filter-row button,
html.is-authenticated body.feed-page .composer-type-row button,
html.is-authenticated body.feed-page .feed-post-actions button,
html.is-authenticated body.feed-page .post-media-button,
html.is-authenticated body.feed-page .post-media-remove,
html.is-authenticated body.feed-page .posts-welcome-strip button,
html.is-authenticated body.profile-page .profile-tabs button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

html.is-authenticated body.feed-page :is(button, a, textarea, input, select):focus-visible,
html.is-authenticated body.profile-page :is(button, a, textarea, input, select):focus-visible {
  outline: 3px solid rgba(8, 59, 124, 0.34);
  outline-offset: 3px;
}

html.is-authenticated body.feed-page .composer-type-row button,
html.is-authenticated body.feed-page .feed-filter-row button,
html.is-authenticated body.feed-page .post-media-button,
html.is-authenticated body.feed-page .post-media-remove,
html.is-authenticated body.feed-page .posts-welcome-strip button,
html.is-authenticated body.feed-page .feed-heading-row .button,
html.is-authenticated body.feed-page .feed-post-actions button,
html.is-authenticated body.profile-page .profile-tabs button {
  min-height: 44px;
}

html.is-authenticated body.feed-page .feed-filter-row button {
  position: relative;
}

html.is-authenticated body.feed-page .feed-filter-row button::after {
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 2px;
  content: "";
  background: transparent;
  border-radius: 999px;
  transform: scaleX(0.4);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

html.is-authenticated body.feed-page .feed-filter-row button.is-active::after {
  background: var(--navy);
  opacity: 1;
  transform: scaleX(1);
}

html.is-authenticated body.feed-page .feed-post-actions button:active,
html.is-authenticated body.feed-page .composer-type-row button:active,
html.is-authenticated body.feed-page .feed-filter-row button:active,
html.is-authenticated body.feed-page .button:active {
  transform: scale(0.96);
}

html.is-authenticated body.feed-page .feed-post-actions button.is-active {
  animation: reaction-pop 150ms ease;
}

@keyframes reaction-pop {
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 767px) {
  html.is-authenticated body.feed-page .composer-heading-row h2 {
    font-size: clamp(1.12rem, 5.2vw, 1.34rem);
    line-height: 1.15;
  }

  html.is-authenticated body.feed-page .posts-welcome-strip button,
  html.is-authenticated body.feed-page .composer-type-row button,
  html.is-authenticated body.feed-page .post-media-button,
  html.is-authenticated body.feed-page .composer-actions .button,
  html.is-authenticated body.feed-page .feed-filter-row button,
  html.is-authenticated body.feed-page .feed-heading-row .button,
  html.is-authenticated body.feed-page .feed-post-actions button {
    min-height: 44px;
  }

  html.is-authenticated body.feed-page .feed-post-actions {
    gap: 6px;
  }

  html.is-authenticated body.feed-page .feed-post-actions button {
    padding: 0 5px;
    font-size: 0.72rem;
  }
}

@media (prefers-color-scheme: dark) {
  html.is-authenticated body.feed-page .composer-heading-row h2 {
    color: #e9edf2;
  }

  html.is-authenticated body.feed-page .posts-alert,
  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  }

  html.is-authenticated body.feed-page .rail-card,
  html.is-authenticated body.feed-page .posts-inline-widget {
    box-shadow: inset 0 0 0 1px rgba(233, 237, 242, 0.08);
  }
}

/* Premium 2026 home feed: clean app shell, compact composer, native ads */
html.is-authenticated body.feed-page {
  color: #0b1f3a;
  background:
    linear-gradient(180deg, rgba(8, 59, 124, 0.045), transparent 220px),
    #f7f9fc;
}

html.is-authenticated body.feed-page .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(8, 59, 124, 0.1);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(1.15);
}

html.is-authenticated body.feed-page .brand,
html.is-authenticated body.feed-page .app-top-title {
  color: #081f3f;
}

html.is-authenticated body.feed-page .nav-toggle {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 59, 124, 0.14);
  box-shadow: 0 10px 28px rgba(8, 27, 55, 0.08);
}

html.is-authenticated body.feed-page .nav-toggle span {
  background: #081f3f;
}

html.is-authenticated body.feed-page .posts-home-shell {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 10px;
  width: min(calc(100% - 24px), 720px);
}

html.is-authenticated body.feed-page .posts-left-rail,
html.is-authenticated body.feed-page .posts-right-rail,
html.is-authenticated body.feed-page .posts-welcome-strip {
  display: none !important;
}

html.is-authenticated body.feed-page .posts-center-column {
  gap: 10px;
  min-width: 0;
}

html.is-authenticated body.feed-page .posts-alert,
html.is-authenticated body.feed-page .posts-composer-card,
html.is-authenticated body.feed-page .posts-feed-card {
  color: #0b1f3a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 59, 124, 0.1);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(8, 27, 55, 0.045);
  backdrop-filter: none;
}

html.is-authenticated body.feed-page .posts-composer-card:hover,
html.is-authenticated body.feed-page .posts-feed-card:hover,
html.is-authenticated body.feed-page .posts-composer-card:focus-within {
  transform: none;
  box-shadow: 0 12px 32px rgba(8, 27, 55, 0.065);
}

html.is-authenticated body.feed-page .posts-composer-card {
  padding: 12px;
}

html.is-authenticated body.feed-page .composer-heading-row {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.is-authenticated body.feed-page .posts-composer-form {
  gap: 9px;
  margin-top: 0;
}

html.is-authenticated body.feed-page .composer-author {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

html.is-authenticated body.feed-page .composer-avatar,
html.is-authenticated body.feed-page .feed-post-avatar {
  width: 38px;
  height: 38px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
}

html.is-authenticated body.feed-page .composer-author label {
  color: #23374f;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.28;
}

html.is-authenticated body.feed-page .posts-composer-form textarea {
  min-height: 76px;
  height: 76px;
  padding: 12px 13px;
  color: #0b1f3a;
  background: #ffffff;
  border: 1px solid #d6e0eb;
  border-radius: 17px;
  box-shadow: none;
  font-size: 0.95rem;
}

html.is-authenticated body.feed-page .posts-composer-form textarea::placeholder {
  color: #66768a;
  opacity: 1;
}

html.is-authenticated body.feed-page .composer-meta-row,
html.is-authenticated body.feed-page .form-hint {
  color: #4b5f75;
}

html.is-authenticated body.feed-page .composer-type-row,
html.is-authenticated body.feed-page .feed-filter-row {
  gap: 6px;
}

html.is-authenticated body.feed-page .composer-type-row button,
html.is-authenticated body.feed-page .feed-filter-row button {
  min-height: 44px;
  color: #33465d;
  background: #ffffff;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.1);
}

html.is-authenticated body.feed-page .composer-type-row button:hover,
html.is-authenticated body.feed-page .composer-type-row button:focus-visible,
html.is-authenticated body.feed-page .composer-type-row button.is-active,
html.is-authenticated body.feed-page .feed-filter-row button:hover,
html.is-authenticated body.feed-page .feed-filter-row button:focus-visible,
html.is-authenticated body.feed-page .feed-filter-row button.is-active {
  color: #083b7c;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.18);
}

html.is-authenticated body.feed-page .post-media-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  padding: 7px 8px;
  color: #33465d;
  background: #ffffff;
  border: 1px solid #d8e2ed;
  border-radius: 17px;
  box-shadow: none;
}

html.is-authenticated body.feed-page .post-media-button {
  min-height: 44px;
  padding-inline: 11px;
  color: #083b7c;
  background: #f4f8ff;
  border: 1px solid rgba(8, 59, 124, 0.14);
  box-shadow: none;
  font-weight: 650;
}

html.is-authenticated body.feed-page .post-media-button span {
  width: 22px;
  height: 22px;
  background: #083b7c;
}

html.is-authenticated body.feed-page .composer-actions .button {
  min-height: 44px;
  border-radius: 14px;
}

html.is-authenticated body.feed-page .posts-feed-card {
  padding: 12px;
}

html.is-authenticated body.feed-page .feed-heading-row h2 {
  color: #0b1f3a;
  font-size: 1.2rem;
  font-weight: 650;
}

html.is-authenticated body.feed-page .feed-heading-row .button {
  min-height: 44px;
}

html.is-authenticated body.feed-page .feed-filter-row {
  display: flex;
  width: min(calc(100% - 18px), 620px);
  margin: 0 auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(8, 59, 124, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(8, 27, 55, 0.035);
  backdrop-filter: blur(16px);
}

html.is-authenticated body.feed-page .feed-filter-row button {
  flex: 1 1 0;
  min-height: 40px;
  font-size: 0.84rem;
}

.feed-post-space {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 5px;
  padding: 0 9px;
  color: #083b7c;
  background: rgba(8, 59, 124, 0.07);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

html.is-authenticated body.feed-page .posts-list {
  gap: 0;
  margin-top: 8px;
}

html.is-authenticated body.feed-page .feed-post {
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(8, 59, 124, 0.09);
}

html.is-authenticated body.feed-page .feed-post-header strong {
  color: #0b1f3a;
  font-weight: 650;
}

html.is-authenticated body.feed-page .feed-post-header span {
  color: #52667d;
}

html.is-authenticated body.feed-page .feed-post-body {
  color: #122843;
  font-size: 0.98rem;
  line-height: 1.48;
}

html.is-authenticated body.feed-page .feed-post-actions {
  gap: 5px;
}

html.is-authenticated body.feed-page .feed-post-actions button {
  min-height: 44px;
  color: #42576e;
  background: transparent;
}

html.is-authenticated body.feed-page .feed-post-actions button span {
  color: #083b7c;
  background: rgba(8, 59, 124, 0.07);
}

html.is-authenticated body.feed-page .feed-post-stats span {
  color: #40566e;
  background: rgba(8, 59, 124, 0.055);
}

html.is-authenticated body.feed-page .posts-empty-state h2,
html.is-authenticated body.feed-page .posts-empty-state p,
html.is-authenticated body.feed-page .feed-caught-up {
  color: #33465d;
}

.feed-ad-card {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 13px;
  color: #0b1f3a;
  background:
    linear-gradient(135deg, rgba(8, 59, 124, 0.045), rgba(215, 36, 47, 0.035)),
    #ffffff;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.09);
}

.feed-ad-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #52667d;
  font-size: 0.76rem;
  font-weight: 650;
}

.feed-ad-topline span {
  color: #8f1018;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-ad-card strong {
  color: #0b1f3a;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.feed-ad-card p {
  margin: 0;
  color: #33465d;
  font-size: 0.9rem;
  line-height: 1.42;
}

.feed-ad-card a {
  justify-self: start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #083b7c;
  background: #eef5ff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.posts-sponsored-rail {
  display: grid;
  gap: 10px;
}

.posts-sponsored-rail .rail-card-header {
  margin-bottom: 0;
}

.posts-sponsored-rail .feed-ad-card {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(8, 59, 124, 0.09);
}

.posts-sponsored-rail .feed-ad-topline {
  align-items: flex-start;
  gap: 8px;
}

.posts-sponsored-rail .feed-ad-topline small {
  text-align: right;
}

.posts-sponsored-rail .feed-ad-card strong {
  font-size: 0.96rem;
}

.posts-sponsored-rail .feed-ad-card p {
  font-size: 0.84rem;
  line-height: 1.38;
}

.posts-sponsored-rail .feed-ad-card a {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.feature-filter-bar.is-disabled {
  opacity: 0.72;
}

.people-filter-context {
  margin: 10px 0 0;
  color: #40566e;
  font-size: 0.92rem;
  font-weight: 500;
}

.feature-empty-actions {
  justify-content: center;
  margin-top: 6px;
}

.community-join-status {
  margin-top: 14px;
}

.app-bottom-nav a span svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 767px) {
  html.is-authenticated body.feed-page .posts-home-section {
    padding-top: 8px;
  }

  html.is-authenticated body.feed-page .posts-home-shell {
    width: min(100%, 640px);
    gap: 8px;
  }

  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card {
    width: min(calc(100% - 18px), 620px);
    margin-inline: auto;
    border-radius: 21px;
    box-shadow: 0 8px 22px rgba(8, 27, 55, 0.045);
  }

  html.is-authenticated body.feed-page .posts-composer-card {
    padding: 10px;
  }

  html.is-authenticated body.feed-page .posts-composer-form textarea {
    min-height: 68px;
    height: 68px;
    padding: 10px 11px;
    border-radius: 15px;
  }

  html.is-authenticated body.feed-page .composer-author {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  html.is-authenticated body.feed-page .composer-avatar,
  html.is-authenticated body.feed-page .feed-post-avatar {
    width: 34px;
    height: 34px;
  }

  html.is-authenticated body.feed-page .composer-author label {
    font-size: 0.8rem;
  }

  html.is-authenticated body.feed-page .post-media-panel {
    min-height: 40px;
    padding: 6px;
  }

  html.is-authenticated body.feed-page .post-media-button {
    min-height: 44px;
  }

  html.is-authenticated body.feed-page .feed-filter-row {
    top: 62px;
    width: min(calc(100% - 18px), 620px);
    margin-inline: auto;
  }

  html.is-authenticated body.feed-page .feed-filter-row button {
    min-height: 44px;
    font-size: 0.8rem;
  }

  html.is-authenticated body.feed-page .feed-heading-row {
    gap: 8px;
  }

  html.is-authenticated body.feed-page .feed-heading-row h2 {
    font-size: 1.12rem;
  }

  html.is-authenticated body.feed-page .feed-heading-row .button {
    min-height: 44px;
  }

  html.is-authenticated body.feed-page .feed-post {
    padding: 12px 0;
  }

  html.is-authenticated body.feed-page .feed-post-body,
  html.is-authenticated body.feed-page .feed-post-actions,
  html.is-authenticated body.feed-page .feed-post-stats,
  html.is-authenticated body.feed-page .feed-post-media,
  html.is-authenticated body.feed-page .posts-inline-widget {
    margin-left: 43px;
    width: calc(100% - 43px);
  }

  html.is-authenticated body.feed-page .feed-post-actions button {
    min-height: 44px;
    font-size: 0.68rem;
  }

  .feed-ad-card {
    padding: 12px;
  }

  .app-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(8, 59, 124, 0.08);
    box-shadow: 0 14px 38px rgba(8, 27, 55, 0.14);
  }

  .app-bottom-nav a {
    color: #40566e;
    font-size: clamp(0.55rem, 2.45vw, 0.65rem);
  }

  .app-bottom-nav a span {
    color: #083b7c;
    background: transparent;
  }

  .app-bottom-nav a.is-active,
  .app-bottom-nav a:hover,
  .app-bottom-nav a:focus-visible {
    color: #083b7c;
    background: rgba(8, 59, 124, 0.07);
  }

  .app-bottom-nav a.is-active span {
    color: #ffffff;
    background: linear-gradient(135deg, #083b7c, #d7242f);
  }
}

@media (prefers-color-scheme: dark) {
  html.is-authenticated body.feed-page,
  html.is-authenticated body.feed-page .site-header,
  html.is-authenticated body.feed-page .app-bottom-nav,
  html.is-authenticated body.feed-page .posts-alert,
  html.is-authenticated body.feed-page .posts-composer-card,
  html.is-authenticated body.feed-page .posts-feed-card,
  html.is-authenticated body.feed-page .post-media-panel,
  html.is-authenticated body.feed-page .posts-composer-form textarea {
    color: #0b1f3a;
    background-color: #ffffff;
  }

  html.is-authenticated body.feed-page {
    background:
      linear-gradient(180deg, rgba(8, 59, 124, 0.045), transparent 220px),
      #f7f9fc;
  }
}

/* Feed refinement: desktop sidebar, readable secondary text, and separated post cards. */
html.is-authenticated body.feed-page {
  --feed-muted: #4b5563;
  --feed-muted-soft: #505b68;
  --feed-card-border: rgba(8, 59, 124, 0.12);
  --feed-card-shadow: 0 10px 28px rgba(8, 27, 55, 0.055);
  --feed-focus-ring: #083b7c;
}

html.is-authenticated body.feed-page .posts-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post {
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--feed-card-border);
  border-radius: 22px;
  box-shadow: var(--feed-card-shadow);
}

html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post:hover,
html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post:focus-within {
  background: #ffffff;
  border-color: rgba(8, 59, 124, 0.2);
  box-shadow: 0 14px 34px rgba(8, 27, 55, 0.075);
  transform: translateY(-1px);
}

html.is-authenticated body.feed-page .thread-author-line span,
html.is-authenticated body.feed-page .feed-post-header span,
html.is-authenticated body.feed-page .composer-member-pill,
html.is-authenticated body.feed-page .form-hint,
html.is-authenticated body.feed-page .feed-ad-topline,
html.is-authenticated body.feed-page .rail-card p,
html.is-authenticated body.feed-page .rail-card-header span,
html.is-authenticated body.feed-page .rail-event span:not(.rail-date-chip),
html.is-authenticated body.feed-page .rail-suggestion div span,
html.is-authenticated body.feed-page .rail-news-copy,
html.is-authenticated body.feed-page .posts-empty-state p,
html.is-authenticated body.feed-page .feed-caught-up {
  color: var(--feed-muted);
}

html.is-authenticated body.feed-page .posts-composer-form textarea::placeholder {
  color: var(--feed-muted-soft);
  opacity: 1;
}

html.is-authenticated body.feed-page .thread-action-row button:focus-visible,
html.is-authenticated body.feed-page .feed-post-space:focus-visible,
html.is-authenticated body.feed-page .feed-ad-card a:focus-visible,
html.is-authenticated body.feed-page .posts-right-rail a:focus-visible,
html.is-authenticated body.feed-page .posts-left-rail a:focus-visible {
  outline: 2px solid var(--feed-focus-ring);
  outline-offset: 2px;
}

html.is-authenticated body.feed-page .post-media-button:focus-visible,
html.is-authenticated body.feed-page .post-media-panel:has(input:focus-visible) .post-media-button,
html.is-authenticated body.feed-page .composer-type-row button:focus-visible,
html.is-authenticated body.feed-page .feed-filter-row button:focus-visible {
  outline: 2px solid var(--feed-focus-ring);
  outline-offset: 2px;
}

html.is-authenticated body.feed-page .thread-action-row button:hover,
html.is-authenticated body.feed-page .thread-action-row button:focus-visible {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.065);
}

/* Ultra-compact feed composer: keep posting fast without crowding the feed. */
html.is-authenticated body.feed-page .posts-composer-card {
  padding: 9px 11px 10px;
  border-radius: 20px;
}

html.is-authenticated body.feed-page .posts-composer-form {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 8px;
}

html.is-authenticated body.feed-page .composer-author {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

html.is-authenticated body.feed-page .composer-author label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.is-authenticated body.feed-page .composer-avatar {
  width: 32px;
  height: 32px;
}

html.is-authenticated body.feed-page .posts-composer-form textarea {
  grid-column: 2 / 4;
  grid-row: 1;
  min-height: 46px;
  height: 46px;
  padding: 10px 12px;
  border-radius: 15px;
  font-size: 0.94rem;
  line-height: 1.2;
}

html.is-authenticated body.feed-page .composer-meta-row {
  grid-column: 2 / 4;
  grid-row: 2;
  min-height: 0;
  margin-top: -1px;
  font-size: 0.72rem;
  line-height: 1;
}

html.is-authenticated body.feed-page .composer-control-row {
  grid-column: 2 / 4;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html.is-authenticated body.feed-page .composer-type-row {
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
}

html.is-authenticated body.feed-page .composer-type-row button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

html.is-authenticated body.feed-page .post-media-panel {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  padding: 0;
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

html.is-authenticated body.feed-page .post-media-preview:not([hidden]) {
  flex-basis: 100%;
  width: min(220px, 100%);
  margin-top: 4px;
}

html.is-authenticated body.feed-page .post-media-preview img {
  max-height: 140px;
}

html.is-authenticated body.feed-page .post-attach-button,
html.is-authenticated body.feed-page .post-media-button,
html.is-authenticated body.feed-page .post-link-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
}

html.is-authenticated body.feed-page .post-attach-button svg,
html.is-authenticated body.feed-page .post-link-button svg {
  width: 17px;
  height: 17px;
}

html.is-authenticated body.feed-page .composer-actions {
  flex: 0 0 auto;
  align-self: center;
}

html.is-authenticated body.feed-page .composer-actions .button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 12px;
}

html.is-authenticated body.feed-page .composer-actions .form-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  html.is-authenticated body.feed-page .posts-home-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 720px);
  }

  html.is-authenticated body.feed-page .posts-left-rail,
  html.is-authenticated body.feed-page .posts-right-rail {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  html.is-authenticated body.feed-page .posts-home-section {
    padding-top: 24px;
  }

  html.is-authenticated body.feed-page .posts-home-shell {
    display: grid;
    grid-template-columns: minmax(0, 640px) 320px;
    align-items: start;
    justify-content: center;
    gap: 28px;
    width: min(calc(100% - 48px), 1040px);
  }

  html.is-authenticated body.feed-page .posts-right-rail {
    position: sticky;
    top: calc(68px + 16px);
    display: grid !important;
    gap: 12px;
  }

  html.is-authenticated body.feed-page .posts-list > .posts-inline-widget.feed-ad-card {
    display: none;
  }

  html.is-authenticated body.feed-page .posts-left-rail {
    display: none !important;
  }

  html.is-authenticated body.feed-page .posts-center-column {
    width: 100%;
  }
}

@media (min-width: 1240px) {
  html.is-authenticated body.feed-page .posts-home-shell {
    grid-template-columns: minmax(0, 640px) 320px;
    width: min(calc(100% - 56px), 1040px);
  }

  html.is-authenticated body.feed-page .posts-left-rail {
    display: none !important;
  }
}

html.is-authenticated body.feed-page .posts-right-rail .rail-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--feed-card-border);
  border-radius: 22px;
  box-shadow: var(--feed-card-shadow);
}

html.is-authenticated body.feed-page .rail-space-list {
  display: grid;
  gap: 4px;
}

html.is-authenticated body.feed-page .rail-space-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  color: #0b1f3a;
  text-decoration: none;
  border-radius: 16px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

html.is-authenticated body.feed-page .rail-space-link:hover,
html.is-authenticated body.feed-page .rail-space-link:focus-visible {
  background: rgba(8, 59, 124, 0.06);
  transform: translateX(2px);
}

html.is-authenticated body.feed-page .rail-space-link strong {
  display: block;
  color: #0b1f3a;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
}

html.is-authenticated body.feed-page .rail-space-link small {
  display: block;
  margin-top: 2px;
  color: var(--feed-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

html.is-authenticated body.feed-page .rail-space-link em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.08);
  border: 1px solid rgba(8, 59, 124, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 720;
}

/* Compact premium attachment controls and post-detail spacing. */
html.is-authenticated body.feed-page .post-media-panel {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  color: var(--feed-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.is-authenticated body.feed-page .post-media-panel:focus-within {
  box-shadow: none;
}

html.is-authenticated body.feed-page .post-attach-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(8, 59, 124, 0.14);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(8, 27, 55, 0.045);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.post-detail-page .reply-attach-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(8, 59, 124, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(8, 27, 55, 0.045);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

html.is-authenticated body.feed-page .post-attach-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-detail-page .reply-attach-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-authenticated body.feed-page .post-attach-button:hover,
html.is-authenticated body.feed-page .post-attach-button:focus-visible,
html.is-authenticated body.feed-page .post-media-panel:has(input:focus-visible) .post-media-button,
.post-detail-page .reply-attach-button:hover,
.post-detail-page .reply-attach-button:focus-visible,
.post-detail-page .reply-composer-tools:has(input:focus-visible) .reply-media-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(8, 27, 55, 0.14);
  transform: translateY(-1px);
  outline: 2px solid rgba(8, 59, 124, 0.28);
  outline-offset: 2px;
}

html.is-authenticated body.feed-page .post-media-panel .field-error:empty,
.post-detail-page .reply-input-stack .field-error:empty,
.post-detail-page .reply-submit-row .form-status:empty {
  display: none;
}

.post-detail-page .thread-detail-section {
  padding: 8px 0 30px;
}

.post-detail-page .thread-detail-shell {
  width: min(calc(100% - 24px), 720px);
}

.post-detail-page .thread-detail-topbar {
  margin: 0 0 8px;
  padding: 6px 0;
}

.post-detail-page .thread-detail-card,
.post-detail-page .reply-composer-card,
.post-detail-page .reply-login-card,
.post-detail-page .thread-replies-section {
  border-color: rgba(8, 59, 124, 0.07);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(8, 27, 55, 0.055);
}

.post-detail-page .thread-detail-card {
  padding: clamp(14px, 2.4vw, 18px);
}

.post-detail-page .thread-root-card,
.post-detail-page .reply-composer-card,
.post-detail-page .thread-replies-section {
  margin-top: 8px;
  margin-bottom: 0;
}

.post-detail-page .reply-composer-card {
  padding: 7px 9px;
}

.post-detail-page .reply-composer-form,
.post-detail-page .reply-input-stack {
  gap: 3px;
}

.post-detail-page .reply-composer-row {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
}

.post-detail-page .reply-composer-avatar {
  width: 32px;
  height: 32px;
}

.post-detail-page .reply-input-stack textarea {
  min-height: 38px;
  padding: 8px 10px;
  color: #102033;
  background: #ffffff;
  border-color: rgba(8, 59, 124, 0.14);
  border-radius: 16px;
  font-size: 0.98rem;
}

.post-detail-page .reply-composer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
}

.post-detail-page .reply-composer-tools {
  gap: 6px;
  min-height: 38px;
  color: var(--feed-muted, #4b5563);
}

.post-detail-page .reply-attach-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.post-detail-page .reply-composer-tools button[data-reply-media-remove] {
  min-height: 38px;
  padding: 0 11px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(143, 16, 24, 0.14);
  border-radius: 999px;
}

.post-detail-page .reply-submit-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

.post-detail-page .reply-submit-row .form-status {
  min-height: 0;
  margin-right: auto;
  color: #056333;
  font-size: 0.88rem;
  font-weight: 750;
}

.post-detail-page .reply-submit-row .button {
  width: auto;
  min-width: 72px;
  min-height: 38px;
  padding-inline: 15px;
  border-radius: 12px;
}

.post-detail-page .thread-replies-section {
  padding: 14px 16px;
}

.post-detail-page .reply-item {
  padding-top: 9px;
  padding-bottom: 9px;
}

.post-detail-page .reply-item .thread-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.post-detail-page .reply-item .thread-action-row button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  min-height: 30px;
  padding: 0;
  color: #42536b;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 560;
}

.post-detail-page .reply-item .thread-action-row button span {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  color: currentColor;
  background: transparent;
  border-radius: 0;
  font-size: 0.94rem;
}

.post-detail-page .reply-item .thread-action-row button strong {
  font-weight: 560;
}

.post-detail-page .reply-item .thread-action-row button em {
  font-style: normal;
  font-weight: 650;
}

.post-detail-page .reply-item .thread-action-row button:hover,
.post-detail-page .reply-item .thread-action-row button:focus-visible {
  color: var(--navy);
  background: transparent;
  outline: 2px solid rgba(8, 59, 124, 0.28);
  outline-offset: 3px;
}

.post-detail-page .reply-item .thread-action-row button.is-active {
  color: var(--red);
  background: transparent;
}

.post-detail-page .reply-item .thread-action-row button.is-active span {
  color: currentColor;
  background: transparent;
}

@media (max-width: 767px) {
  .post-detail-page .thread-detail-shell {
    width: min(calc(100% - 18px), 620px);
  }

  .post-detail-page .thread-detail-card,
  .post-detail-page .reply-composer-card,
  .post-detail-page .reply-login-card,
  .post-detail-page .thread-replies-section {
    border-radius: 20px;
  }

  .post-detail-page .reply-submit-row {
    align-items: center;
    flex-direction: row;
  }

  .post-detail-page .reply-submit-row .button {
    width: auto;
  }

  .post-detail-page .reply-composer-action-row {
    gap: 8px;
  }

  .post-detail-page .reply-attach-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }

  .post-detail-page .reply-item .thread-action-row {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
  }
}

/* Facebook-inspired comment pattern, adapted to AloTCI branding. */
.post-detail-page .comments-section {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
}

.post-detail-page .comments-overview {
  display: grid;
  gap: 0;
}

.post-detail-page .comments-engagement-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  color: #4b5563;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(8, 59, 124, 0.08);
}

.post-detail-page .comments-engagement-row [data-replies-count] {
  margin-left: auto;
}

.post-detail-page .comments-reactions {
  display: inline-flex;
  align-items: center;
  padding-left: 2px;
}

.post-detail-page .comments-reactions span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: -3px;
  color: #ffffff;
  background: var(--navy);
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 0.52rem;
}

.post-detail-page .comments-reactions span:last-child {
  background: var(--red);
}

.post-detail-page .comments-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-height: 38px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(8, 59, 124, 0.08);
}

.post-detail-page .comments-primary-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.post-detail-page .comments-primary-actions button:hover,
.post-detail-page .comments-primary-actions button:focus-visible {
  color: var(--navy);
  background: rgba(8, 59, 124, 0.06);
  outline: 2px solid rgba(8, 59, 124, 0.24);
  outline-offset: 2px;
}

.post-detail-page .comments-primary-actions button.is-active {
  color: var(--navy);
}

.post-detail-page .comments-primary-actions button em {
  display: none;
}

.post-detail-page .comments-sort-row {
  display: flex;
  justify-content: flex-start;
  padding: 4px 0 0;
}

.post-detail-page .comments-sort-row button {
  min-height: 26px;
  padding: 0;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.post-detail-page .comments-sort-row button:hover,
.post-detail-page .comments-sort-row button:focus-visible {
  color: var(--navy);
  outline: 2px solid rgba(8, 59, 124, 0.24);
  outline-offset: 3px;
}

.post-detail-page .thread-replies-list {
  gap: 0;
}

.post-detail-page .comment-content {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.post-detail-page .reply-item {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 5px;
  padding: 2px 0;
  border-bottom: 0;
}

.post-detail-page .comment-thread-branch {
  display: grid;
  gap: 0;
  position: relative;
}

.post-detail-page .comment-child-list {
  display: grid;
  gap: 0;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 2px solid #dbe2ec;
}

.post-detail-page .comment-child-list.is-nested {
  margin-left: 13px;
  padding-left: 13px;
  border-left: 2px solid #dbe2ec;
}

.post-detail-page .comment-child-list.is-nested .comment-child-list.is-nested {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.post-detail-page .comment-child-list > .comment-thread-branch::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -16px;
  width: 11px;
  height: 10px;
  border-bottom: 2px solid #dbe2ec;
  border-left: 2px solid #dbe2ec;
  border-bottom-left-radius: 9px;
  pointer-events: none;
}

.post-detail-page .comment-child-list.is-nested .comment-child-list.is-nested > .comment-thread-branch::before {
  display: none;
}

.post-detail-page .comment-child-list[hidden] {
  display: none;
}

.post-detail-page .comment-replies-toggle-row {
  display: flex;
  min-height: 21px;
  margin: -2px 0 1px 15px;
  padding-left: 15px;
  border-left: 2px solid #dbe2ec;
}

.post-detail-page .comment-replies-toggle {
  min-height: 21px;
  padding: 0;
  color: #5a6472;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.post-detail-page .comment-replies-toggle:hover,
.post-detail-page .comment-replies-toggle:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  outline: 2px solid rgba(8, 59, 124, 0.22);
  outline-offset: 3px;
}

.post-detail-page .reply-item .thread-avatar-column {
  display: block;
}

.post-detail-page .reply-item .thread-avatar {
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.post-detail-page .reply-item .thread-line {
  display: none;
}

.post-detail-page .comment-bubble {
  max-width: min(100%, 590px);
  padding: 5px 9px;
  color: #111827;
  background: #f0f2f5;
  border-radius: 13px;
}

.post-detail-page .comment-bubble strong {
  display: block;
  margin-bottom: 1px;
  color: #102033;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.12;
}

.post-detail-page .comment-bubble .feed-post-body {
  margin: 0;
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.28;
}

.post-detail-page .comment-media {
  width: min(100%, 360px);
  margin-top: 8px;
  border-radius: 12px;
}

.post-detail-page .comment-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 9px;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
}

.post-detail-page .comment-meta-row > span {
  white-space: nowrap;
}

.post-detail-page .comment-action-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  width: auto;
  margin: 0;
}

.post-detail-page .comment-action-row button,
.post-detail-page .reply-item .comment-action-row button {
  min-height: 22px;
  padding: 0;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 750;
}

.post-detail-page .comment-action-row button span {
  display: none;
}

.post-detail-page .comment-action-row button strong {
  font-weight: inherit;
}

.post-detail-page .comment-action-row button em {
  display: none;
}

.post-detail-page .comment-action-row button:hover,
.post-detail-page .comment-action-row button:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  background: transparent;
  outline: 2px solid rgba(8, 59, 124, 0.22);
  outline-offset: 3px;
}

.post-detail-page .comment-action-row button.is-active {
  color: var(--red);
}

@media (max-width: 767px) {
  .post-detail-page .comments-section {
    padding: 8px 9px 10px;
  }

  .post-detail-page .comments-primary-actions {
    gap: 2px;
  }

  .post-detail-page .comments-primary-actions button {
    gap: 5px;
    font-size: 0.82rem;
  }

  .post-detail-page .reply-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .post-detail-page .comment-child-list {
    margin-left: 14px;
    padding-left: 13px;
  }

  .post-detail-page .comment-replies-toggle-row {
    margin-left: 14px;
    padding-left: 13px;
  }

  .post-detail-page .comment-bubble {
    padding: 6px 10px;
  }
}

@media (max-width: 767px) {
  html.is-authenticated body.feed-page .posts-list {
    gap: 10px;
  }

  html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post {
    width: min(calc(100% - 18px), 620px);
    margin-inline: auto;
    padding: 12px;
    border-radius: 20px;
  }

  html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post .feed-post-body,
  html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post .feed-post-actions,
  html.is-authenticated body.feed-page .posts-list > .feed-post.thread-post .feed-post-media {
    width: 100%;
    margin-left: 0;
  }
}

/* Real community spaces */
.community-group-card h3 a,
.community-group-icon {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.community-group-card h3 a:hover,
.community-group-card h3 a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a.community-group-icon:hover,
a.community-group-icon:focus-visible {
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(8, 59, 124, 0.2);
}

.community-group-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.community-view-space {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--navy);
  background: rgba(8, 59, 124, 0.07);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.community-view-space:hover,
.community-view-space:focus-visible {
  color: var(--navy);
  background: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-join-status {
  color: var(--navy);
  font-weight: 760;
}

.space-detail-section {
  min-height: calc(100dvh - 76px);
  padding: clamp(18px, 4vw, 36px) 0 104px;
  background:
    radial-gradient(circle at 14% 0%, rgba(8, 59, 124, 0.08), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(215, 36, 47, 0.06), transparent 28%),
    var(--app-bg);
}

.space-shell {
  display: grid;
  gap: 14px;
  width: min(calc(100% - 28px), 760px);
  margin-inline: auto;
}

.space-hero-card,
.space-feed-card {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 59, 124, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(8, 27, 55, 0.065);
}

.space-hero-card {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 4vw, 24px);
}

.space-back-link {
  justify-self: start;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 760;
}

.space-back-link::before {
  content: "< ";
}

.space-back-link:hover,
.space-back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.space-hero-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.space-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(8, 27, 55, 0.16);
  font-size: 0.9rem;
  font-weight: 850;
}

.space-hero-card h1 {
  max-width: none;
  color: #0b1f3a;
  font-size: clamp(2rem, 7vw, 3.3rem);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.space-hero-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #33465d;
  font-size: 1rem;
  line-height: 1.5;
}

.space-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.space-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 720;
}

.space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.space-actions .button.is-active,
.space-actions .button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.space-status {
  min-height: 0;
}

.space-skeleton-grid {
  grid-template-columns: minmax(0, 1fr);
}

.space-page .space-feed-card {
  padding: clamp(14px, 3vw, 20px);
}

.space-page .posts-empty-state .button {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .community-group-actions {
    justify-content: flex-end;
  }

  .space-hero-main {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .space-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .space-actions .button {
    flex: 1 1 150px;
  }
}

@media (max-width: 420px) {
  .community-group-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .community-group-actions .button,
  .community-view-space {
    flex: 1 1 100%;
    justify-content: center;
  }

  .space-hero-main {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
