@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("/static/fonts/EuclidCircularA-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("/static/fonts/EuclidCircularA-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("/static/fonts/EuclidCircularA-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #02050b;
  --panel: #070b14;
  --card: #0b111d;
  --line: #1b2435;
  --text: #f2f4f8;
  --muted: #b6bfcd;
  --accent: #e92f2b;
  --accent-soft: #e92f2b;
  --radius: 18px;
}

body.local-env {
  --bg: #0b1f45;
  --panel: #102a57;
  --card: #133164;
}

body.local-env .topbar,
body.local-env .panel-top,
body.local-env .panel-filter,
body.local-env .panel-feed {
  background: #0e2855;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Euclid Circular A", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: #050912;
  border-bottom: 1px solid #111827;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding-top: 16px;
}

.logo-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
}

.logo {
  width: min(460px, 86vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.logo-small {
  width: min(165px, 39vw);
  touch-action: manipulation;
}

.topbar-admin-link {
  font-size: 0.95rem;
  white-space: nowrap;
}

.topbar-user-btn {
  background: transparent;
  border: 0;
  color: #d4deef;
  padding: 0;
  font-size: 0.95rem;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.topbar-user-btn:hover,
.topbar-user-btn:focus-visible {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #e92f2b;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.topbar-user-link {
  color: #e6eefc;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #2f456b;
  background: linear-gradient(180deg, rgba(13, 24, 44, 0.9), rgba(10, 18, 33, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.topbar-user-link:hover,
.topbar-user-link:focus-visible {
  color: #ffffff;
  text-decoration: none;
  border-color: #3b5784;
  background: linear-gradient(180deg, rgba(17, 31, 55, 0.95), rgba(12, 23, 41, 0.95));
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.topbar-nav-link {
  color: #b8c4d8;
  text-decoration: none;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  padding: 0;
  line-height: 1;
  transition: color 120ms ease, opacity 120ms ease;
  opacity: 0.92;
}

.topbar-nav-link:hover,
.topbar-nav-link:focus-visible {
  color: #eef4ff;
  opacity: 1;
}

.topbar-nav-link.is-active {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: #e92f2b;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.topbar-menu-wrap {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.topbar-menu-btn {
  border: 0;
  background: transparent;
  color: #d4deef;
  padding: 0;
  font-size: 0.95rem;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.topbar-menu-btn:hover,
.topbar-menu-btn:focus-visible {
  color: #ffffff;
}

.topbar-menu-label {
  line-height: 1;
}

.topbar-menu-caret {
  display: inline-block;
  font-size: 0.8rem;
  transform: translateY(1px);
  transition: transform 120ms ease;
}

.topbar-menu-btn[aria-expanded="true"] .topbar-menu-caret {
  transform: translateY(1px) rotate(180deg);
}

.topbar-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a3954;
  background: rgba(7, 14, 25, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
  z-index: 1300;
  backdrop-filter: blur(6px);
}

.topbar-menu-panel[hidden] {
  display: none !important;
}

.topbar-menu-link {
  color: #c7d2e5;
  text-decoration: none;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.topbar-menu-link:hover,
.topbar-menu-link:focus-visible {
  color: #ffffff;
}

.topbar-menu-link.is-active {
  color: #ffffff;
}

.user-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.6);
  z-index: 1200;
}

.user-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  background: #060d19;
  border-left: 1px solid #1d2a40;
  z-index: 1210;
  transform: translateX(102%);
  transition: transform 180ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 18px;
}

.user-panel.open {
  transform: translateX(0);
}

body.user-panel-open {
  overflow: hidden;
  height: 100dvh;
  overscroll-behavior: none;
}

.user-panel-close {
  border: 0;
  background: transparent;
  color: #dbe4f5;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  position: absolute;
  right: 0;
  top: 0;
  transform: none;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.user-panel-section {
  border: 1px solid #1f2e47;
  border-radius: 14px;
  background: #0b1423;
  padding: 14px 12px;
  margin-top: 12px;
}

.user-panel-head {
  position: relative;
  display: block;
  min-height: 30px;
  padding-right: 38px;
  margin-bottom: 6px;
}

.user-panel-head h3 {
  margin: 0;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: #cfdaee;
  font-size: 0.86rem;
}

.auth-form input {
  width: 100%;
  background: #0f1726;
  border: 1px solid #2a3650;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-actions .btn,
.auth-actions .auth-signup-btn {
  min-height: 44px;
  padding: 11px 22px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-signup-btn {
  background: #121d30;
  color: #e2eaf8;
}

.auth-links {
  margin-top: -2px;
  margin-bottom: 12px;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: #8f9bb0;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: 0.82rem;
  padding: 0;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: #ffffff;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  border: 1px solid #2a3854;
  border-radius: 10px;
  padding: 10px;
  background: #0f1828;
}

.saved-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.saved-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #2c3e5d;
  background: #0a1322;
}

.saved-main {
  min-width: 0;
  flex: 1 1 auto;
}

.saved-remove-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.saved-remove-btn:hover,
.saved-remove-btn:focus-visible {
  opacity: 1;
}

.saved-remove-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.saved-item h4 {
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.saved-item .meta {
  font-size: 0.8rem;
}

.digest-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.account-email-small {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #9eb0ca;
}

.profile-nav {
  display: grid;
  gap: 2px;
}

.profile-nav-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #dfe7f6;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: none;
}

.profile-nav-item:hover,
.profile-nav-item:focus-visible {
  color: #ffffff;
}

.profile-nav-link {
  display: inline-block;
}

.profile-nav-link[hidden],
.profile-nav-item[hidden] {
  display: none !important;
}

.profile-nav-item-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.profile-switch { position:relative; display:inline-flex; align-items:center; gap:10px; user-select:none; cursor:pointer; }
.profile-switch input { position:absolute; opacity:0; width:0; height:0; }
.profile-switch-track { width:42px; height:24px; border-radius:999px; border:1px solid #2c3850; background:#111a2a; position:relative; }
.profile-switch-track::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#dfe6f3; transition:transform 160ms ease; }
.profile-switch input:checked + .profile-switch-track { background:#e92f2b; border-color:#e92f2b; }
.profile-switch input:checked + .profile-switch-track::after { transform:translateX(18px); background:#fff; }
.profile-switch input:disabled + .profile-switch-track { opacity: 0.55; }
.profile-switch.tiny-toggle .profile-switch-track { width:42px; height:24px; }
.profile-switch.tiny-toggle .profile-switch-track::after { width:16px; height:16px; top:3px; left:3px; }
.profile-switch.tiny-toggle input:checked + .profile-switch-track::after { transform:translateX(18px); }
.profile-switch.tiny-toggle { transform: translateY(1px); }

.profile-nav-item-row span {
  font-size: 1rem;
  font-weight: 500;
  color: #dfe7f6;
}

.profile-detail-content {
  margin-top: 10px;
}

.saved-list-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #cfd9eb;
}

.profile-separator {
  margin-top: 6px;
  border-top: 1px solid #22324d;
}

.logo-beta-badge {
  display: none;
  margin-top: 3px;
  margin-left: -1px;
  vertical-align: super;
}

.env-badge-local {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  color: #ffd58a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.28em;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #e92f2b;
  background: #e92f2b;
  color: #fff;
  font-size: calc(0.42em - 2pt);
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  margin-left: 6px;
}

/* Keep topbar logo badge hidden by default; only opt in for mobile swipe mode. */
.beta-badge.logo-beta-badge {
  display: none;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.panel-title h1 {
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.btn {
  border: 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn.topbar-user-btn {
  box-shadow: none;
}

.btn.topbar-user-btn:hover,
.btn.topbar-user-btn:focus-visible {
  background: transparent;
  color: #ffffff;
}

.panel {
  background: var(--panel);
  border-top: 1px solid #0f1827;
  padding: 28px 0;
}

.panel-title {
  background: transparent;
  border-top: 0;
  padding: 22px 0 12px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.panel-top {
  background: #040810;
  padding: 10px 0;
}

.panel-filter {
  background: #050b16;
  padding: 10px 0;
}

.panel-feed {
  padding-top: 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.filter-left .chips {
  margin: 0;
}

.filter-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aeb8c9;
  font-weight: 600;
}

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

.toggle-wrap {
  display: inline-flex;
  border: 1px solid #293447;
  border-radius: 999px;
  overflow: hidden;
}

.toggle {
  border: 0;
  color: #c5ccda;
  background: transparent;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.toggle.active {
  background: #fff;
  color: #0d1320;
}

.meta,
.muted {
  color: var(--muted);
}

.card {
  background: #020710;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  text-align: center;
}

h3 {
  margin: 10px 0;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.two-col {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.chip {
  background: #0f1726;
  color: #d9dfeb;
  border: 1px solid #2a3650;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  background: #fff;
  color: #111827;
}

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

.digest-form input {
  flex: 1;
  min-width: 230px;
  background: #0f1726;
  border: 1px solid #2a3650;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}

.pagination-segmented {
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #38507a;
  background: #0b1a3a;
  box-shadow: inset 0 0 0 1px rgba(72, 97, 142, 0.28);
  flex-wrap: nowrap;
}

.btn-page {
  padding: 8px 14px;
  font-size: 0.92rem;
}

.btn-page-segmented {
  min-width: 56px;
  padding: 8px 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #eaf0ff;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.btn-page-segmented:hover:not(:disabled),
.btn-page-segmented:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.btn-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.swipe-coach,
.swipe-pull-hint {
  display: none;
}

.swipe-intro-overlay {
  display: none;
}

body.mobile-swipe-active .swipe-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: rgba(3, 8, 16, 0.5);
  backdrop-filter: blur(2px);
}

body.mobile-swipe-active .swipe-intro-overlay.visible {
  display: flex;
}

body.mobile-swipe-active .swipe-intro-card {
  width: min(360px, 94%);
  border-radius: 14px;
  border: 1px solid #35507c;
  background: linear-gradient(180deg, rgba(12, 25, 50, 0.5), rgba(8, 17, 34, 0.5));
  padding: 16px 14px 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  text-align: center;
}

body.mobile-swipe-active .swipe-intro-card p {
  margin: 0;
  color: #dbe7ff;
  font-size: 0.9rem;
  line-height: 1.35;
}

body.mobile-swipe-active .swipe-intro-card .btn {
  margin-top: 12px;
  min-width: 72px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.news-card {
  background: linear-gradient(180deg, #0d1422, #090e18);
  border: 1px solid #1d293d;
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  height: 100%;
  transition: transform 110ms ease, filter 110ms ease, box-shadow 110ms ease, border-color 110ms ease;
}

/* Prevent accidental text selection on feed cards (especially during swipe gestures). */
.news-card,
.news-card * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.news-card.card-pressing {
  transform: scale(0.975);
  border-color: #3a4f74;
  filter: brightness(0.9) saturate(1.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 4px 12px rgba(0, 0, 0, 0.34);
}

.news-card.focus-target {
  border-color: #f2483d;
  box-shadow: 0 0 0 2px rgba(242, 72, 61, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ad-card {
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1422, #090e18);
}

.ad-card-source {
  color: #e92f2b;
}

.ad-image-wrap {
  margin: 0 -12px;
  border-bottom: 1px solid #1d293d;
  background: #070f1d;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
}

.ad-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-image-link-disabled {
  cursor: default;
}

.ad-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #070f1d;
}

.ad-card-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #070f1d;
}

.ad-audio-toggle {
  position: static;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c7d2e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.ad-audio-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.ad-audio-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-date {
  visibility: hidden;
}

.news-image-wrap {
  margin: 0 -12px 0;
  border-bottom: 1px solid #1d293d;
  background: #0a0f19;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Ad cards use portrait creatives (900x1350); override the default 16:9 article image box. */
.news-image-wrap.ad-image-wrap {
  aspect-ratio: 2 / 3;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 6px;
}

.news-card-top,
.news-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.source {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.new-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #e92f2b;
  border: 1px solid #e92f2b;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.2;
}

.title,
.summary,
.why,
.date,
.read {
  margin: 0;
}

.title {
  font-size: 1.05rem;
  line-height: 1.28;
  min-height: 2.56em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  text-decoration: underline;
}

.summary,
.date {
  color: #b4bfd0;
}

.summary {
  font-size: 0.92rem;
  line-height: 1.42;
  min-height: 5.68em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow: clip;
  contain: paint;
}

.why {
  font-size: 0.92rem;
  color: #cbd5e5;
  line-height: 1.45;
  min-height: 5.8em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow: clip;
  contain: paint;
}

.why-label {
  font-family: "Euclid Circular A", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #f1f5ff;
  margin-right: 6px;
}

.why-text {
  color: #b9c4d6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: #121c2d;
  border: 1px solid #2b3951;
  color: #d6deea;
  font-size: 0.74rem;
  font-weight: 700;
}

.read {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.news-card-bottom {
  margin-top: auto;
  align-items: center;
}

.save-article-btn {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-color: #465f89;
  color: #e4ecfa;
  margin-left: auto;
}

.save-article-btn.saved {
  background: #e92f2b;
  border-color: #e92f2b;
  color: #fff;
}

.news-card.image-only-card {
  padding: 0;
  gap: 0;
}

.news-card.image-only-card .news-card-top,
.news-card.image-only-card .title,
.news-card.image-only-card .summary,
.news-card.image-only-card .why,
.news-card.image-only-card .tags,
.news-card.image-only-card .news-card-bottom {
  display: none;
}

.news-card.image-only-card .news-image-wrap {
  margin: 0;
  border-bottom: 0;
  aspect-ratio: 3 / 4;
  background: #050a14;
}

.news-card.image-only-card .news-image {
  object-fit: contain;
  background: #050a14;
}

.panel-about {
  text-align: center;
  padding-top: 22px;
  padding-bottom: 36px;
}

.panel-about h2 {
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
}

.fine-print {
  margin-top: 20px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8c98ad;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.digest-card {
  max-width: 760px;
}

.site-footer {
  border-top: 1px solid #18253b;
  background: #040a14;
}

.site-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-footer-copy {
  margin: 0;
  color: #9fb0c9;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-footer-link {
  color: #c6d2e5;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #e92f2b;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer-link.is-active {
  color: #ffffff;
}

.legal-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
}

.legal-title {
  margin: 0 0 18px;
  text-align: left;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-card h2 {
  margin: 28px 0 12px;
  text-align: left;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.legal-card p {
  margin: 0 0 12px;
  color: #c6d2e5;
  line-height: 1.62;
}

.legal-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #c6d2e5;
  line-height: 1.6;
}

.about-page .panel {
  padding-top: 62px;
  padding-bottom: 62px;
  border-top: 0;
}

.about-page main {
  background:
    radial-gradient(1200px 560px at 10% -8%, rgba(233, 47, 43, 0.09), transparent 58%),
    radial-gradient(980px 440px at 92% 12%, rgba(57, 84, 125, 0.2), transparent 65%),
    linear-gradient(180deg, #040915 0%, #030712 100%);
}

.about-page .about-hero-panel {
  padding-top: 92px;
  padding-bottom: 34px;
}

.about-page .about-hero-panel + .about-band {
  padding-top: 40px;
}

.about-page .about-hero-panel .container {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
}

.about-page .about-hero-panel .container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: transparent;
  z-index: -2;
}

.about-page .about-hero-panel .container::after {
  content: "";
  position: absolute;
  top: 3%;
  right: 0.8%;
  width: 53%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-image:
    radial-gradient(circle at 98% 98%, rgba(4, 9, 21, 0.62) 0%, rgba(4, 9, 21, 0.34) 15%, rgba(4, 9, 21, 0) 40%),
    radial-gradient(circle at 2% 50%, rgba(4, 9, 21, 0.9) 0%, rgba(4, 9, 21, 0.58) 30%, rgba(4, 9, 21, 0.18) 56%, rgba(4, 9, 21, 0) 88%),
    linear-gradient(180deg, rgba(4, 9, 21, 0.14) 0%, rgba(4, 9, 21, 0.3) 100%),
    url("/static/img/about-hero-nano.jpg");
  background-size: cover, cover, cover, auto 122%;
  background-position: center, left center, center, 78% center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  border-radius: 22px;
  opacity: 0.92;
  filter: saturate(1.05) contrast(1.06);
  z-index: -1;
  pointer-events: none;
}

.about-page h1 {
  margin-top: 0;
  margin-bottom: 22px;
  text-align: left;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  font-size: clamp(2.85rem, 4.7vw, 3.97rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: none;
}

.about-page .about-kicker {
  margin: 0 0 14px;
  color: #d0dae9;
  font-family: "Euclid Circular A", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-page .about-subhead {
  max-width: 68ch;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.66;
  color: #c8d3e5;
}

.about-page .about-subhead-secondary {
  margin-top: 22px;
}

.about-page .about-hero-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: min(68ch, 62%);
}

.about-page .about-cta-wrap {
  margin-top: 56px;
  margin-bottom: 0;
}

.about-page .btn {
  text-decoration: none;
  letter-spacing: 0.01em;
}

.about-page .chip {
  background: linear-gradient(180deg, #0e1728, #0b1422);
  border-color: #2f4061;
  color: #dce6f6;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.about-page .about-band.about-band-muted {
  background: linear-gradient(180deg, #060d1a 0%, #050b16 100%);
  border-top: 0;
  border-bottom: 0;
}

.about-page .about-band.about-band-plain {
  background: transparent;
  border-top: 0;
}

.about-section-title {
  text-align: left;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-weight: 500;
  margin-bottom: 34px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
  line-height: 1.1;
}

.about-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 3px;
  height: 0.95em;
  border-radius: 3px;
  background: #e92f2b;
}

.about-subsection-title {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.1;
  color: #e9eef8;
  letter-spacing: -0.01em;
  text-transform: none;
}

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

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

.about-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-page .about-card {
  border: 1px solid #243754;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.88) 0%, rgba(8, 15, 28, 0.9) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 30px 30px 32px;
}

.panel-about-contact .about-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 24px;
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-about-contact .about-grid-two {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr);
  align-items: stretch;
  gap: 24px;
}

.panel-about-contact .about-cta-wrap {
  margin-top: 26px;
  margin-bottom: 24px;
}

.panel-about-contact {
  position: relative;
}

.panel-about-contact .container {
  position: relative;
}

.panel-about-contact .container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 180px;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.panel-about-contact .about-section-title,
.panel-about-contact .about-grid-two,
.panel-about-contact .about-contact-closing {
  position: relative;
  z-index: 1;
}

.about-next-steps {
  margin-top: 10px;
  padding: 16px 0 0;
  border-top: 1px solid #2b3e60;
  border-radius: 0;
  background: transparent;
}

.about-next-steps-title {
  margin: 0 0 10px;
  color: #dce6f6;
  font-size: 0.86rem;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-next-steps ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #c3cfdf;
  line-height: 1.5;
}

.about-next-steps li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
}

.about-next-steps li:last-child {
  margin-bottom: 0;
}

.about-next-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(233, 47, 43, 0.9);
  box-shadow: 0 0 0 2px rgba(233, 47, 43, 0.2);
}

.about-service-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: start;
}

.about-service-art {
  width: 52px;
  height: 52px;
  display: block;
  margin-top: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(233, 47, 43, 0.42);
  background: linear-gradient(180deg, rgba(233, 47, 43, 0.1), rgba(233, 47, 43, 0.03));
}

.about-service-content h3 {
  margin: 0 0 8px;
}

.about-service-content p {
  margin: 0;
  color: #bac6da;
  line-height: 1.55;
}

.about-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #c1cbdb;
  line-height: 1.62;
}

.about-contact-form {
  display: grid;
  gap: 12px;
  height: 100%;
}

.about-field {
  position: relative;
}

.about-field input,
.about-field textarea {
  width: 100%;
  background: #0f1726;
  border: 1px solid #2a3650;
  color: #fff;
  border-radius: 10px;
  padding: 17px 12px 9px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.about-field textarea {
  min-height: 94px;
  resize: vertical;
}

.about-field:hover input,
.about-field:hover textarea {
  border-color: #334a70;
  background: #111b2d;
}

.about-field input:focus,
.about-field textarea:focus {
  outline: none;
  border-color: #3f5d8e;
  box-shadow: 0 0 0 2px rgba(63, 93, 142, 0.18), inset 0 0 0 1px rgba(108, 143, 196, 0.12);
}

.about-field label {
  position: absolute;
  left: 12px;
  top: 13px;
  color: #b7c5dc;
  font-size: 0.9rem;
  line-height: 1;
  pointer-events: none;
  transition: transform 140ms ease, color 140ms ease, font-size 140ms ease;
}

.about-field input:focus + label,
.about-field input:not(:placeholder-shown) + label,
.about-field textarea:focus + label,
.about-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-7px);
  color: #d4deef;
  font-size: 0.72rem;
}

.about-form-helper {
  margin: -2px 0 0;
  font-size: 0.79rem;
  color: #99a9c3;
}

.about-contact-submit {
  margin-top: 6px;
  margin-bottom: 24px;
  width: 100%;
  justify-content: center;
}

#aboutContactMsg {
  margin: 4px 0 0;
  min-height: 0;
}

#aboutContactMsg:empty {
  display: none;
}

.panel-about-contact .about-cta-wrap .btn-secondary-contact {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  background: linear-gradient(120deg, #f63734, #e92f2b);
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(233, 47, 43, 0.2);
}

.panel-about-contact .about-cta-wrap .btn-secondary-contact:hover,
.panel-about-contact .about-cta-wrap .btn-secondary-contact:focus-visible {
  background: linear-gradient(120deg, #ff433f, #ef3733);
  color: #ffffff;
}

.panel-about-contact .btn-secondary-form {
  background: #111d31;
  border: 1px solid #395179;
  color: #f4f7ff;
  box-shadow: none;
}

.panel-about-contact .btn-secondary-form:hover,
.panel-about-contact .btn-secondary-form:focus-visible {
  background: #17253d;
  border-color: #466390;
}

.about-contact-closing {
  margin: 18px 0 0;
  text-align: center;
  color: #a9b8cf;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.about-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.go-top-btn {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  z-index: 1200;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  background: #e92f2b;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0;
  pointer-events: none;
}

.go-top-btn.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-inner {
    padding-top: 12px;
  }

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

  .about-page .panel {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .about-page .about-hero-panel {
    padding-top: 76px;
    padding-bottom: 30px;
  }

  .about-page .about-hero-panel + .about-band {
    padding-top: 34px;
  }

  .about-page .about-hero-panel .container {
    min-height: 560px;
  }

  .about-page .about-hero-panel .container::after {
    top: 4%;
    right: 0.8%;
    width: 51%;
    background-size: cover, cover, cover, auto 128%;
    background-position: center, left center, center, 74% center;
  }

  .about-page .about-hero-card {
    max-width: min(66ch, 64%);
  }
}

@media (max-width: 640px) {
  .logo-beta-badge {
    align-items: center;
    justify-content: center;
    min-height: 1.34em;
    padding: 0 6px;
    border-radius: 0;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    letter-spacing: 0.07em;
    font-size: calc(0.52em - 2pt);
    font-style: italic;
  }

  body.mobile-swipe-active .logo-beta-badge {
    display: inline-flex;
    line-height: 1;
  }

  html.preload-mobile-swipe body {
    background: #050912;
  }

  html.preload-mobile-swipe .topbar {
    background: #050912;
    border-bottom: 0;
  }

  html.preload-mobile-swipe .logo-small {
    width: min(132px, 31vw);
  }

  .logo-small {
    width: min(132px, 31vw);
  }

  html.preload-mobile-swipe .panel-about,
  html.preload-mobile-swipe .panel-filter,
  html.preload-mobile-swipe .panel-title {
    display: none;
  }

  html.preload-mobile-swipe .panel-feed {
    background: #050912;
    border-top: 0;
    padding-top: 0;
  }

  body {
    background: #050912;
  }

  .topbar {
    background: #050912;
    border-bottom: 0;
  }

  .topbar-inner {
    display: flex;
    gap: 8px;
    min-height: 78px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-right {
    margin-left: auto;
    order: 2;
  }

  .topbar-nav {
    display: none;
  }

  .topbar-inner {
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
  }

  .topbar-menu-wrap {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
  }

  .topbar-menu-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #31486f;
    background: linear-gradient(180deg, rgba(12, 23, 42, 0.74), rgba(9, 17, 31, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-size: 0.84rem;
  }

  .topbar-menu-btn:hover,
  .topbar-menu-btn:focus-visible {
    border-color: #39537f;
    background: linear-gradient(180deg, rgba(17, 31, 55, 0.94), rgba(11, 22, 40, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 16px rgba(0, 0, 0, 0.26);
  }

  .topbar-menu-panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 7px);
    min-width: 128px;
    padding: 9px 11px;
    border-radius: 12px;
    border-color: #304464;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.98), rgba(6, 13, 24, 0.98));
  }

  .topbar-right {
    margin-left: auto;
    order: 3;
    min-width: max-content;
  }

  .panel,
  .panel-top,
  .panel-filter,
  .panel-feed {
    background: #050912;
    border-top: 0;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .pagination-segmented {
    justify-content: center;
  }

  .pagination {
    justify-content: center;
  }

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

  .about-grid-two,
  .about-grid-three {
    grid-template-columns: 1fr;
  }

  .panel-about-contact .about-grid-two {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-page .panel {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .about-page .about-hero-panel {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .about-page .about-hero-panel + .about-band {
    padding-top: 30px;
  }

  .about-page .about-hero-panel .container {
    min-height: 0;
    display: block;
  }

  .about-page .about-hero-panel .container::before,
  .about-page .about-hero-panel .container::after {
    display: none;
  }

  .about-page h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.08;
    max-width: none;
    width: 100%;
  }


  .about-page .about-subhead {
    max-width: none;
    width: 100%;
  }

  .about-page .about-hero-card {
    max-width: none;
    width: 100%;
  }

  .about-section-title {
    padding-left: 11px;
    margin-bottom: 26px;
  }

  .about-service-card {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .about-service-art {
    width: 46px;
    height: 46px;
    padding: 7px;
  }

  .go-top-btn {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .site-footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.mobile-swipe-active {
    background: #050912;
    overflow: hidden;
    height: 100dvh;
    overscroll-behavior: none;
  }

  body.mobile-swipe-active .panel-about {
    display: none;
  }

  body.mobile-swipe-active .panel-filter {
    display: none;
  }

  body.mobile-swipe-active .panel-title {
    display: none;
  }

  body.mobile-swipe-active .panel-feed {
    border-top: none !important;
    background: #050912;
    padding-top: 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  body.user-panel-open {
    overflow: hidden;
    height: 100dvh;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.user-panel-open .user-panel {
    width: 92vw;
    max-width: 420px;
    height: 100dvh;
    max-height: 100dvh;
  }

  body.mobile-swipe-active .panel-feed .container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: var(--swipe-available-height, 68dvh);
    min-height: 380px;
    overflow: hidden;
    background: #050912;
  }

  body.mobile-swipe-active .swipe-coach {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%) translateY(-6px);
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #344a6d;
    background: rgba(10, 24, 48, 0.92);
    color: #eaf0ff;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  body.mobile-swipe-active .swipe-intro-overlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(3, 8, 16, 0.5);
    backdrop-filter: blur(2px);
  }

  body.mobile-swipe-active .swipe-intro-overlay.visible {
    display: flex;
  }

  body.mobile-swipe-active .swipe-intro-card {
    width: min(360px, 94%);
    border-radius: 14px;
    border: 1px solid #35507c;
    background: linear-gradient(180deg, rgba(12, 25, 50, 0.5), rgba(8, 17, 34, 0.5));
    padding: 16px 14px 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    text-align: center;
  }

  body.mobile-swipe-active .swipe-intro-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
  }

  body.mobile-swipe-active .swipe-intro-card p {
    margin: 0;
    color: #dbe7ff;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  body.mobile-swipe-active .swipe-intro-card .btn {
    margin-top: 12px;
    min-width: 72px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  body.mobile-swipe-active .swipe-coach.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  body.mobile-swipe-active .swipe-pull-hint {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%) translateY(-4px);
    z-index: 10;
    display: block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #3a5379;
    background: rgba(12, 27, 52, 0.94);
    color: #f3f7ff;
    font-family: "Space Grotesk", "Euclid Circular A", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease;
  }

  body.mobile-swipe-active .swipe-pull-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  body.mobile-swipe-active .swipe-pull-hint.armed {
    border-color: #e92f2b;
    color: #ffffff;
  }

  body.mobile-swipe-active .feed {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  body.mobile-swipe-active .news-card {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translateX(0) rotate(0deg);
    transition: transform 180ms ease;
    will-change: transform;
  }

  body.mobile-swipe-active .news-card.swipe-active-card {
    position: relative;
    z-index: 2;
  }

  body.mobile-swipe-active .news-card.swipe-preview-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(22%) rotate(0.9deg);
    box-shadow: 0 10px 28px rgba(1, 6, 18, 0.42);
  }

  body.mobile-swipe-active .swipe-preview-title {
    display: block;
    color: #f2f6ff;
    line-height: 1.25;
  }

  body.mobile-swipe-active .news-card.swipe-exit-left {
    transform: translateX(-118%) rotate(-1.2deg);
  }

  body.mobile-swipe-active .news-card.swipe-exit-right {
    transform: translateX(118%) rotate(1.2deg);
  }

  body.mobile-swipe-active .news-card.swipe-enter-left {
    transform: translateX(-8%) rotate(-0.9deg);
  }

  body.mobile-swipe-active .news-card.swipe-enter-right {
    transform: translateX(8%) rotate(0.9deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal,
  .about-reveal.in-view {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  body.mobile-swipe-active .news-card {
    transition: none;
  }
}
