:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f4f6f7;
  --ink: #111418;
  --graphite: #2c3137;
  --muted: #626d76;
  --line: #dce1e4;
  --blue: #174f86;
  --blue-deep: #10385f;
  --terra: #a94832;
  --green: #23634f;
  --red: #8b1f1f;
  --shadow: 0 20px 60px rgba(17, 20, 24, 0.12);
  --radius: 8px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.topbar {
  display: flex;
  min-height: 34px;
  padding: 0 clamp(18px, 4vw, 44px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar a:hover {
  color: var(--white);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 3vw, 52px);
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 44px minmax(0, max-content);
  gap: 12px;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 950;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(14px, 1.5vw, 22px);
  align-items: center;
  justify-content: flex-end;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 820;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--blue);
}

.nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px var(--blue);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.solid-button,
.ghost-button,
.icon-button,
.mode-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
  white-space: normal;
}

.solid-button,
.ghost-button {
  gap: 9px;
  padding: 0 16px;
}

.solid-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.solid-button:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.icon-button svg,
.solid-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
}

.icon-button {
  display: none;
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 730px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.compact-hero,
.compact-hero .hero-inner {
  min-height: 620px;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 730px;
  margin: 0 auto;
  padding: 96px 0 72px;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.label {
  color: var(--terra);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: 78px;
  font-weight: 950;
  line-height: 0.94;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #283039;
  font-size: 21px;
  line-height: 1.38;
}

.command {
  display: grid;
  gap: 12px;
  align-self: center;
}

.command-search {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(17, 20, 24, 0.1);
}

.command-search label {
  color: var(--terra);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.command-search div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
}

.command-search svg,
.feed-search svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.command-search input,
.feed-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.command-routes a {
  display: grid;
  gap: 18px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(17, 20, 24, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.command-routes a:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 36px rgba(17, 20, 24, 0.08);
}

.command-routes span {
  color: var(--terra);
  font-size: 12px;
  font-weight: 950;
}

.command-routes strong {
  align-self: end;
  line-height: 1.12;
}

.command-routes small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 820;
}

.hero-proofline span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.hero-proofline svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.evidence-bar {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.evidence-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.2fr);
  min-height: 92px;
}

.evidence-bar-grid > * {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.evidence-bar-grid > :last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.evidence-bar-grid strong {
  font-size: 25px;
}

.evidence-bar-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 780;
}

.evidence-bar-grid a {
  justify-content: space-between;
}

.evidence-bar-grid a:hover span {
  color: var(--white);
}

.evidence-bar-grid svg {
  width: 18px;
  height: 18px;
}

.strip,
.articles-section,
.ask-section,
.trust-section {
  background: var(--paper);
}

.strip {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.strip-grid,
.two-col,
.map-grid,
.index-grid,
.ask-grid,
.trust-grid,
.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
}

.strip h2,
.section-head h2,
.map-copy h2,
.index-grid h2,
.ask-grid h2,
.trust-grid h2,
.subscribe-grid h2 {
  margin: 8px 0 0;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.04;
}

.section {
  padding: 86px 0;
}

.page-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: end;
}

.page-hero h1,
.map-copy h1,
.index-grid h1,
.ask-grid h1 {
  margin: 8px 0 0;
  font-size: 56px;
  font-weight: 950;
  line-height: 0.98;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.section-head {
  margin-bottom: 34px;
}

.section-head p,
.map-copy p,
.index-grid p,
.ask-grid p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.method-steps,
.track-grid,
.trust-list {
  display: grid;
  gap: 16px;
}

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

.method-steps article,
.track,
.article-card,
.tool-panel,
.question-panel,
.trust-list article,
.subscribe-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.method-steps article {
  min-height: 160px;
  padding: 20px;
  border-top: 3px solid var(--ink);
}

.method-steps span,
.track span,
.article-meta,
.reader-meta span,
.score-box span,
.trust-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.method-steps p,
.track p,
.article-card p,
.score-box p,
.trust-list p,
.footer p {
  margin: 0;
  color: var(--muted);
}

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

.track {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px;
  border-top-width: 3px;
}

.track-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track > .track-top svg {
  width: 32px;
  height: 32px;
}

.track.science svg {
  color: var(--blue);
}

.track.health svg {
  color: var(--green);
}

.track.reality svg {
  color: var(--terra);
}

.track h3 {
  margin: auto 0 12px;
  padding-top: 54px;
  font-size: 29px;
  line-height: 1.06;
}

.track > strong {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}

.track > strong svg {
  width: 16px;
  height: 16px;
}

.track.science {
  border-top-color: var(--blue);
}

.track.health {
  border-top-color: var(--green);
}

.track.reality {
  border-top-color: var(--terra);
}

.home-tools {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

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

.tool-link-grid a {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tool-link-grid a:hover,
.track:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 44px rgba(17, 20, 24, 0.07);
}

.tool-link-grid svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.tool-link-grid span {
  color: var(--terra);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-link-grid strong {
  align-self: end;
  font-size: 24px;
  line-height: 1.08;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.map-section {
  color: var(--white);
  background: #111519;
}

.standalone-map {
  min-height: calc(100vh - 112px);
}

.standalone-map .container {
  max-width: 1420px;
}

.standalone-map .map-grid {
  grid-template-columns: minmax(300px, 0.44fr) minmax(720px, 1fr);
}

.standalone-map .graph-shell {
  min-height: 640px;
}

.standalone-map #knowledgeGraph {
  height: 640px;
}

.map-section .label {
  color: #ef8c70;
}

.map-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-copy .filter-row {
  margin-top: 28px;
}

.graph-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 26px;
}

.graph-search input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0 12px;
  outline: none;
}

.graph-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.graph-search input:focus {
  border-color: rgba(255, 255, 255, 0.62);
}

.graph-search .ghost-button,
.graph-overview-button,
.graph-inspector .ghost-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.graph-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.graph-result,
.graph-result-status {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-align: left;
}

.graph-result {
  display: grid;
  gap: 2px;
}

.graph-result:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.graph-result span,
.graph-result small,
.graph-result-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 820;
}

.graph-result strong {
  overflow: hidden;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-overview-button {
  margin-top: 12px;
}

.filter-button,
.mode-button {
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.filter-button small {
  color: inherit;
  opacity: 0.72;
}

.filter-button.active,
.mode-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.map-section .filter-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.map-section .filter-button.active {
  background: var(--white);
  color: var(--ink);
}

.graph-shell {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #151a1f;
  background-size: 44px 44px;
}

#knowledgeGraph {
  display: block;
  width: 100%;
  height: 540px;
  touch-action: none;
  cursor: move;
  transition: opacity 180ms ease;
}

.graph-context {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  width: min(270px, calc(100% - 190px));
  min-height: 48px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  align-items: center;
  gap: 9px;
  background: rgba(17, 21, 25, 0.78);
  box-shadow: 0 12px 30px rgba(5, 8, 10, 0.16);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.graph-context-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #ef8c70;
}

.graph-context-icon svg {
  width: 17px;
  height: 17px;
}

.graph-context-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.graph-context-copy small,
.graph-context-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-context-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-context-copy strong {
  color: var(--white);
  font-size: 12px;
  line-height: 1.25;
}

.graph-context.is-loading .graph-context-icon svg {
  animation: graph-context-spin 900ms linear infinite;
}

.graph-shell.is-loading #knowledgeGraph {
  opacity: 0.58;
}

.graph-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 21, 25, 0.82);
  backdrop-filter: blur(12px);
}

.graph-toolbar .icon-button {
  display: inline-flex;
  width: 38px;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.graph-toolbar .icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.graph-inspector {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(17, 21, 25, 0.92);
  box-shadow: 0 18px 44px rgba(5, 8, 10, 0.24);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.graph-inspector-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.graph-inspector-close {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.graph-inspector-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.graph-inspector-close svg {
  width: 16px;
  height: 16px;
}

.graph-inspector > span,
.graph-inspector-head > span {
  color: #ef8c70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.graph-inspector strong {
  display: block;
  margin-top: 8px;
  line-height: 1.16;
}

.graph-inspector p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.graph-inspector .ghost-button {
  margin-top: 12px;
}

.graph-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.graph-inspector-actions .ghost-button {
  margin-top: 12px;
}

@keyframes graph-context-spin {
  to {
    transform: rotate(1turn);
  }
}

.article-reader {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.reader-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  gap: 62px;
}

.reader-nav {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.reader-meta {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.reader-meta strong {
  font-size: 22px;
}

.reader-meta small {
  color: var(--muted);
  font-weight: 800;
}

.reader-body {
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.68;
}

.reader-body h2 {
  margin: 0 0 18px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 52px;
  font-weight: 950;
  line-height: 1.02;
}

.reader-body h3 {
  margin: 38px 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.18;
}

.reader-body p,
.reader-body li {
  color: #252b31;
}

.reader-lead {
  color: #505963;
  font-size: 22px;
}

.abstract,
.note-block,
.warning-block {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 18px;
  border-radius: var(--radius);
}

.abstract {
  border: 1px solid var(--line);
  background: var(--paper);
}

.abstract strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.note-block {
  border: 1px solid rgba(18, 63, 115, 0.22);
  border-left: 4px solid var(--blue);
  background: #f6f9fc;
}

.warning-block,
.warning-copy,
.urgent {
  border: 1px solid rgba(139, 31, 31, 0.24);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fff7f7;
  color: #611919;
}

.warning-block,
.warning-copy,
.urgent {
  padding: 14px 16px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.source-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.source-card a {
  color: var(--blue);
  font-weight: 850;
}

.source-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feed-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

#articleFilters {
  margin-bottom: 26px;
}

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

.article-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 350px;
  padding: 22px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.05);
}

.article-card.featured {
  grid-column: span 2;
  color: var(--white);
  border-color: transparent;
  background: #182b3d;
}

.article-card.featured .article-meta,
.article-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.article-card h3 {
  margin: 26px 0 12px;
  font-size: 26px;
  line-height: 1.08;
}

.article-card.featured h3 {
  font-size: 36px;
}

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

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 850;
}

.article-card.featured .tags span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.article-card button {
  justify-self: start;
  margin-top: 22px;
}

.empty {
  color: var(--muted);
  font-weight: 850;
}

.index-grid,
.ask-grid {
  align-items: start;
}

.tool-panel,
.question-panel,
.subscribe-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.tool-panel,
.question-panel {
  background: var(--paper);
}

.range-line {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.range-line span,
.field span,
.red-flags legend {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 880;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.score-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.score-box strong {
  font-size: 54px;
  line-height: 1;
}

.field,
.question-panel label {
  display: grid;
  gap: 7px;
}

.field input,
.field textarea,
.field select,
.question-panel input,
.question-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.question-panel input:focus,
.question-panel textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 63, 115, 0.12);
}

.admin-body {
  min-height: 100vh;
  background: var(--paper);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-tab {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  background: transparent;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 850;
}

.admin-tab.active {
  background: var(--ink);
  color: var(--white);
}

.admin-header > .ghost-button {
  justify-self: end;
}

.admin-main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 20, 24, 0.05);
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  padding: 26px;
}

.login-card h1,
.admin-title-row h1 {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 950;
  line-height: 1.04;
}

.admin-workspace {
  display: grid;
  gap: 24px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-title-row {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

.admin-stat {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-stat span,
.admin-list-item span,
.admin-inbox-item span,
.admin-compact-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 28px;
  font-size: 46px;
  line-height: 1;
}

.admin-stat p {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-two {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-three {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.admin-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.1;
}

.admin-two > .admin-card,
.admin-three > .admin-card,
.article-editor {
  padding: 20px;
}

.article-editor {
  display: grid;
  gap: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
}

.admin-list.compact {
  max-height: 620px;
}

.admin-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.admin-list-item.active,
.admin-list-item:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(17, 20, 24, 0.06);
}

.admin-list-item strong {
  line-height: 1.16;
}

.admin-list-item small {
  color: var(--muted);
}

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

.danger {
  color: var(--red);
}

.admin-inbox-item,
.admin-compact-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
}

.admin-inbox-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.admin-inbox-item p {
  margin: 0;
  color: var(--graphite);
}

.admin-inbox-item dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-inbox-item dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.admin-inbox-item dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-inbox-item dd {
  margin: 0;
}

.admin-inbox-item .ghost-button {
  justify-self: start;
}

.admin-compact-item strong {
  line-height: 1.15;
}

.admin-compact-item small,
.admin-empty {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .admin-header,
  .admin-two,
  .admin-three {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    justify-self: start;
    overflow-x: auto;
    max-width: 100%;
  }

  .admin-header > .ghost-button {
    justify-self: start;
  }

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

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 820;
}

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

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.coin-note {
  margin-top: 18px;
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  background: #f5f8fb;
  color: var(--graphite);
  font-weight: 780;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.red-flags {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(139, 31, 31, 0.24);
  border-radius: var(--radius);
  background: #fffafa;
}

.red-flags label,
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.red-flags input,
.consent input {
  width: auto;
  margin-top: 3px;
}

.urgent strong {
  display: block;
  margin-bottom: 4px;
}

.urgent p {
  margin: 0;
}

.trust-grid {
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 1fr);
}

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

.trust-list article {
  min-height: 220px;
  padding: 22px;
}

.trust-list h3 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.12;
}

.subscribe-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.subscribe-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  background: var(--paper);
}

.subscribe-form .status {
  grid-column: 1 / -1;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(130px, 0.55fr));
  gap: 36px;
  align-items: start;
  padding: 34px 0;
}

.footer p {
  max-width: 430px;
  margin-top: 16px;
}

.footer nav {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 780;
}

.footer nav strong {
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}

.footer a:hover {
  color: var(--blue);
}

.section-head-action {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.latest-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.home-article-grid .article-card {
  min-height: 330px;
}

.identity-section {
  color: var(--white);
  background: #151a1f;
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.3fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
}

.identity-mark {
  display: flex;
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: flex-end;
  justify-content: space-between;
}

.identity-mark span {
  font-size: 112px;
  font-weight: 950;
  line-height: 0.78;
}

.identity-mark small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.identity-section h2 {
  max-width: 850px;
  margin: 12px 0 22px;
  font-size: 48px;
  line-height: 1.04;
}

.identity-section p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 28px;
  color: var(--white);
  font-weight: 850;
}

.text-link svg {
  width: 17px;
  height: 17px;
}

.subscribe-grid {
  align-items: center;
}

.subscribe-grid > div > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.compact-subscribe {
  border-top: 1px solid var(--line);
}

.footer-notice {
  display: block;
  margin-top: 14px;
  color: var(--terra);
  font-weight: 820;
}

.footer-bottom {
  display: flex;
  min-height: 54px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.about-page-hero {
  padding: 92px 0;
  color: var(--white);
  background: #151a1f;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.58fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
}

.about-page-hero h1 {
  max-width: 850px;
  margin: 14px 0 24px;
  font-size: 68px;
  line-height: 0.98;
}

.about-page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.credential-rail {
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.credential-rail > span {
  color: var(--terra);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.credential-rail ol {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: credentials;
}

.credential-rail li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  counter-increment: credentials;
}

.credential-rail li::before {
  content: counter(credentials, decimal-leading-zero);
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 850;
}

.credential-rail strong,
.credential-rail small {
  grid-column: 2;
}

.credential-rail small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
}

.manifesto-section {
  border-bottom: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.4fr);
  gap: 54px;
}

.manifesto-number {
  display: block;
  margin-bottom: 10px;
  color: var(--line);
  font-size: 76px;
  font-weight: 950;
  line-height: 0.85;
}

.manifesto-section h2 {
  max-width: 980px;
  margin: 0;
  font-size: 46px;
  line-height: 1.07;
}

.prose-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
}

.prose-columns p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.method-section,
.roadmap-section,
.public-club-section {
  background: var(--paper);
}

.protocol-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.protocol-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.protocol-list > li > span {
  color: var(--terra);
  font-size: 13px;
  font-weight: 950;
}

.protocol-list strong {
  font-size: 21px;
}

.protocol-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.glossary-grid > div {
  min-height: 200px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.glossary-grid dt {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.glossary-grid dd {
  margin: 30px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

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

.roadmap-grid article {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  background: var(--white);
}

.roadmap-grid article.active {
  border-top-color: var(--green);
}

.roadmap-grid span {
  color: var(--terra);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.roadmap-grid h3 {
  margin: 62px 0 12px;
  font-size: 25px;
  line-height: 1.08;
}

.roadmap-grid p {
  margin: 0;
  color: var(--muted);
}

.page-hero-copy {
  display: grid;
  gap: 22px;
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.page-facts strong {
  color: var(--ink);
}

.section-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(139, 31, 31, 0.25);
  border-left: 4px solid var(--red);
  background: #fff7f7;
  color: #611919;
  font-weight: 800;
}

.reader-map-link {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.reader-map-link svg {
  width: 17px;
  height: 17px;
}

.article-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 820;
}

.article-trustline span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.article-trustline svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.glossary-term {
  position: relative;
  border-bottom: 1px dotted var(--blue);
  color: inherit;
  cursor: help;
  font-style: normal;
}

.glossary-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  display: none;
  width: min(300px, 72vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  transform: translateX(-50%);
}

.glossary-term:hover .glossary-tooltip,
.glossary-term:focus .glossary-tooltip {
  display: block;
}

.ask-copy {
  position: sticky;
  top: 112px;
}

.ask-copy h1 {
  max-width: 560px;
}

.mode-button {
  gap: 8px;
}

.mode-button svg {
  width: 17px;
  height: 17px;
}

.route-facts {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.route-facts div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.route-facts dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.route-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.coin-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.coin-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.publication-consent {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

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

.empty-state-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--white);
}

.empty-state-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.public-question {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.public-question:last-child {
  border-bottom: 1px solid var(--line);
}

.public-question-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.public-question-meta .answered {
  color: var(--green);
}

.public-question h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.public-question p {
  margin: 0;
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.public-answer {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: var(--white);
}

.public-answer strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  text-transform: uppercase;
}

.map-capacity,
.index-principles span {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 780;
}

.map-capacity {
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
}

.map-capacity svg,
.index-principles svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.index-principles {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--graphite);
}

.legal-hero {
  background: #eef1f2;
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 108px;
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.legal-nav a:hover {
  color: var(--blue);
}

.legal-copy {
  display: grid;
  gap: 66px;
}

.legal-copy section {
  scroll-margin-top: 110px;
}

.legal-index {
  color: var(--terra);
  font-size: 12px;
  font-weight: 950;
}

.legal-copy h2 {
  margin: 8px 0 20px;
  font-size: 34px;
}

.legal-copy h3 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legal-copy p {
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.legal-emergency {
  padding: 22px;
  border: 1px solid rgba(139, 31, 31, 0.26);
  border-left: 4px solid var(--red);
  background: #fff7f7;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: min(720px, calc(100% - 40px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.cookie-banner a {
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.cookie-banner .ghost-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions .solid-button,
.cookie-actions .ghost-button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.confirmation-page {
  display: grid;
  width: min(760px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
  align-content: space-between;
}

.confirmation-page section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.confirmation-page h1 {
  margin: 10px 0 18px;
  font-size: 48px;
  line-height: 1;
}

.confirmation-page p {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(390px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 820;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .header {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 10px;
  }

  .icon-button {
    display: inline-flex;
  }

  .hero-inner,
  .strip-grid,
  .two-col,
  .map-grid,
  .standalone-map .map-grid,
  .index-grid,
  .ask-grid,
  .trust-grid,
  .subscribe-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-grid,
  .identity-grid,
  .manifesto-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .credential-rail {
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .identity-mark {
    max-width: 420px;
  }

  .legal-nav,
  .ask-copy {
    position: static;
  }

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

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

  .method-steps,
  .article-grid,
  .track-grid,
  .trust-list,
  .tool-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standalone-map .graph-shell {
    min-height: 560px;
  }

  .standalone-map #knowledgeGraph {
    height: 560px;
  }
}

@media (max-width: 820px) {
  .container,
  .hero-inner {
    width: calc(100% - 32px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 8px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand small,
  .header-actions .solid-button,
  .header-actions .ghost-button {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 700px;
  }

  .compact-hero,
  .compact-hero .hero-inner {
    min-height: 620px;
  }

  .hero > img {
    object-position: 62% center;
  }

  .hero-shade {
    background: rgba(255, 255, 255, 0.54);
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy p {
    font-size: 19px;
  }

  .method-steps,
  .article-grid,
  .track-grid,
  .trust-list,
  .tool-link-grid,
  .reader-grid,
  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .footer-grid,
  .subscribe-form,
  .glossary-grid,
  .roadmap-grid,
  .prose-columns {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
    padding: 50px 0 34px;
  }

  .command-search {
    padding: 16px;
  }

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

  .command-routes a {
    min-height: 112px;
    padding: 12px;
  }

  .command-routes small {
    display: none;
  }

  .evidence-bar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-bar-grid > * {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .about-page-hero {
    padding: 68px 0;
  }

  .about-page-hero h1,
  .identity-section h2,
  .manifesto-section h2 {
    font-size: 38px;
  }

  .manifesto-number {
    font-size: 54px;
  }

  .protocol-list li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
  }

  .public-question {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr auto;
  }

  .cookie-banner p {
    grid-column: 1 / -1;
  }

  .section {
    padding: 64px 0;
  }

  .strip h2,
  .section-head h2,
  .map-copy h2,
  .index-grid h2,
  .ask-grid h2,
  .trust-grid h2,
  .subscribe-grid h2,
  .page-hero h1,
  .map-copy h1,
  .index-grid h1,
  .ask-grid h1 {
    font-size: 34px;
  }

  .method-steps article,
  .track,
  .article-card,
  .trust-list article {
    min-height: auto;
  }

  .article-card.featured {
    grid-column: auto;
  }

  .article-card.featured h3,
  .article-card h3 {
    font-size: 25px;
  }

  .reader-nav {
    position: static;
  }

  .reader-body {
    font-size: 18px;
  }

  .reader-body h2 {
    font-size: 36px;
  }

  .range-line {
    grid-template-columns: 1fr 44px;
  }

  .range-line span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 44px;
  }

  .command-search div {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .command-search button {
    grid-column: 1 / -1;
  }

  .solid-button,
  .ghost-button {
    width: 100%;
  }

  .evidence-bar-grid {
    grid-template-columns: 1fr;
  }

  .evidence-bar-grid > * {
    border-right: 1px solid rgba(255, 255, 255, 0.13);
  }

  .identity-mark {
    min-height: 210px;
  }

  .identity-mark span {
    font-size: 88px;
  }

  .about-page-hero h1,
  .identity-section h2,
  .manifesto-section h2 {
    font-size: 32px;
  }

  .protocol-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .cookie-actions {
    flex-direction: column;
  }

  .graph-search,
  .graph-inspector-actions {
    grid-template-columns: 1fr;
  }

  .graph-shell,
  #knowledgeGraph,
  .standalone-map .graph-shell,
  .standalone-map #knowledgeGraph {
    min-height: 470px;
    height: 470px;
  }

  .graph-inspector {
    position: static;
    width: auto;
    margin: 0 12px 12px;
  }

  .graph-toolbar {
    top: 10px;
    right: 10px;
  }
}

/* Mobile reading and navigation pass */
body.article-mode .material-page-hero,
body.article-mode .articles-section,
body.article-mode .compact-subscribe,
body.article-mode #sectionNotice {
  display: none;
}

body.article-mode .article-reader {
  scroll-margin-top: 76px;
}

body.article-mode .header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: var(--reading-progress, 0%);
  height: 3px;
  background: var(--blue);
  content: "";
  transition: width 80ms linear;
}

@media (max-width: 820px) {
  html {
    overflow-x: clip;
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: clip;
    font-size: 16px;
    line-height: 1.58;
  }

  body.menu-open {
    overflow: hidden;
  }

  h1,
  h2,
  h3,
  strong {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .container,
  .hero-inner {
    width: calc(100% - 32px);
  }

  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 16px;
    gap: 12px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(17, 20, 24, 0.06);
    backdrop-filter: none;
  }

  .brand {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  #menuButton {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    border-color: #cfd5da;
  }

  .nav {
    position: fixed;
    z-index: 60;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav::before {
    margin: 0 0 12px;
    color: var(--terra);
    content: "НАВИГАЦИЯ";
    font-size: 11px;
    font-weight: 950;
  }

  .nav.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    display: flex;
    min-height: 58px;
    padding: 0 2px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
  }

  .nav a[aria-current="page"] {
    color: var(--blue);
    box-shadow: none;
  }

  .solid-button,
  .ghost-button,
  .mode-button,
  .filter-button {
    min-height: 46px;
  }

  .field input,
  .field select,
  .question-panel input,
  .graph-search input {
    min-height: 50px;
    font-size: 16px;
  }

  .field textarea,
  .question-panel textarea {
    min-height: 150px;
    font-size: 16px;
    line-height: 1.52;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head.two-col,
  .strip-grid,
  .subscribe-grid,
  .ask-grid {
    gap: 20px;
  }

  .section-head p,
  .map-copy p,
  .index-grid p,
  .ask-grid p,
  .subscribe-grid > div > p {
    font-size: 17px;
    line-height: 1.55;
  }

  .strip h2,
  .section-head h2,
  .map-copy h2,
  .index-grid h2,
  .ask-grid h2,
  .trust-grid h2,
  .subscribe-grid h2,
  .page-hero h1,
  .map-copy h1,
  .index-grid h1,
  .ask-grid h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero,
  .hero-inner,
  .compact-hero,
  .compact-hero .hero-inner {
    min-height: max(680px, calc(100svh - 104px));
  }

  .hero-inner {
    gap: 22px;
    padding: 38px 0 26px;
  }

  .hero > img {
    object-position: 62% center;
  }

  .hero-shade {
    background: rgba(255, 255, 255, 0.57);
  }

  .hero h1 {
    margin: 10px 0 13px;
    font-size: 48px;
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 18px;
    line-height: 1.45;
  }

  .hero-proofline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 20px;
    font-size: 12px;
  }

  .hero-proofline span:last-child {
    grid-column: 1 / -1;
  }

  .command-search {
    gap: 8px;
    padding: 14px;
  }

  .command-search div {
    min-height: 46px;
  }

  .command-routes {
    gap: 8px;
  }

  .command-routes a {
    min-height: 100px;
    padding: 11px;
  }

  .command-routes strong {
    font-size: 14px;
  }

  .evidence-bar-grid,
  .evidence-bar-grid:not(:empty) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-bar-grid > * {
    min-height: 72px;
    padding: 12px 14px;
  }

  .evidence-bar-grid strong {
    font-size: 21px;
  }

  .strip {
    padding: 42px 0;
  }

  .method-steps,
  .track-grid,
  .home-article-grid,
  .tool-link-grid,
  .trust-list {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: minmax(268px, 82vw);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 14px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .method-steps::-webkit-scrollbar,
  .track-grid::-webkit-scrollbar,
  .home-article-grid::-webkit-scrollbar,
  .tool-link-grid::-webkit-scrollbar,
  .trust-list::-webkit-scrollbar,
  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .method-steps > *,
  .track-grid > *,
  .home-article-grid > *,
  .tool-link-grid > *,
  .trust-list > * {
    scroll-snap-align: start;
  }

  .method-steps article {
    min-height: 150px;
  }

  .track {
    min-height: 290px;
    padding: 22px;
  }

  .track h3 {
    font-size: 27px;
  }

  .home-article-grid .article-card {
    min-height: 330px;
  }

  .tool-link-grid a {
    min-height: 190px;
    padding: 20px;
  }

  .trust-list article {
    min-height: 205px;
  }

  .material-page-hero {
    padding: 34px 0 28px;
  }

  .material-page-hero .page-hero-grid {
    gap: 17px;
  }

  .page-hero p {
    font-size: 18px;
    line-height: 1.55;
  }

  .page-hero-copy {
    gap: 14px;
  }

  .page-facts {
    gap: 7px 14px;
    font-size: 11px;
  }

  .articles-section {
    padding: 36px 0 52px;
  }

  .article-grid:not(.home-article-grid) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-card {
    min-height: auto;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(17, 20, 24, 0.045);
  }

  .article-card h3,
  .article-card.featured h3 {
    margin: 20px 0 10px;
    font-size: 24px;
    line-height: 1.12;
  }

  .article-card p {
    line-height: 1.55;
  }

  .article-card > .ghost-button {
    width: 100%;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  body.article-mode .article-reader {
    padding: 0 0 58px;
    scroll-margin-top: 64px;
  }

  body.article-mode .reader-grid {
    width: 100%;
    gap: 0;
  }

  body.article-mode .reader-nav {
    position: sticky;
    z-index: 42;
    top: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(17, 20, 24, 0.06);
    backdrop-filter: blur(14px);
  }

  body.article-mode #closeReader {
    width: auto;
    min-height: 44px;
    padding: 0 12px;
  }

  body.article-mode .reader-meta {
    display: flex;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    justify-content: center;
    align-items: center;
    gap: 5px 10px;
    background: transparent;
  }

  body.article-mode .reader-meta strong {
    font-size: 15px;
    white-space: nowrap;
  }

  body.article-mode .reader-meta small,
  body.article-mode .reader-meta span {
    font-size: 10px;
    white-space: nowrap;
  }

  body.article-mode .reader-map-link {
    display: grid;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    place-items: center;
  }

  body.article-mode .reader-map-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .reader-body {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 32px;
    font-size: 18px;
    line-height: 1.72;
  }

  .reader-body h2 {
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.04;
  }

  .reader-body h3 {
    margin: 32px 0 10px;
    font-size: 24px;
    line-height: 1.18;
  }

  .reader-lead {
    font-size: 20px;
    line-height: 1.55;
  }

  .reader-body li + li {
    margin-top: 8px;
  }

  .abstract,
  .note-block,
  .warning-block {
    margin: 24px 0;
    padding: 16px;
  }

  .article-trustline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    font-size: 11px;
  }

  .article-trustline span:last-child {
    grid-column: 1 / -1;
  }

  .ask-section {
    padding: 34px 0 48px;
  }

  .ask-copy h1 {
    margin: 8px 0 12px;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .mode-button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .route-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    border: 0;
  }

  .route-facts div {
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .route-facts dd {
    font-size: 13px;
    line-height: 1.4;
  }

  .coin-note {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .question-panel,
  .tool-panel,
  .subscribe-form {
    gap: 15px;
    padding: 18px;
  }

  .question-panel {
    background: var(--white);
    box-shadow: 0 12px 34px rgba(17, 20, 24, 0.05);
  }

  .question-panel label.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .consent,
  .red-flags label {
    min-height: 44px;
    line-height: 1.45;
  }

  .red-flags input,
  .consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    accent-color: var(--blue);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 32px 0;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer nav:last-of-type {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer nav:last-of-type strong {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: auto;
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
    gap: 8px;
    line-height: 1.45;
  }

  .standalone-map {
    min-height: auto;
    padding: 40px 0 0;
  }

  .standalone-map .map-grid {
    gap: 30px;
  }

  .map-grid > *,
  .map-copy {
    min-width: 0;
  }

  .standalone-map .map-copy h1 {
    font-size: 38px;
  }

  .map-capacity {
    margin-top: 16px;
    padding: 10px 0;
  }

  .graph-search {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 18px;
  }

  .graph-search .ghost-button {
    width: auto;
    padding: 0 14px;
  }

  .map-copy .filter-row {
    margin-top: 18px;
  }

  .graph-overview-button {
    width: 100%;
  }

  .graph-shell,
  #knowledgeGraph,
  .standalone-map .graph-shell,
  .standalone-map #knowledgeGraph {
    min-height: 520px;
    height: 520px;
  }

  .standalone-map .graph-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .graph-inspector {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 46%;
    margin: 0;
  }

  .admin-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 10px 16px;
    gap: 10px;
    background: var(--white);
    backdrop-filter: none;
  }

  .admin-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    padding: 4px;
    overflow: visible;
  }

  .admin-tab {
    min-height: 44px;
    padding: 0 8px;
  }

  .graph-toolbar .icon-button {
    width: 44px;
    min-height: 44px;
  }

  .admin-header > .ghost-button {
    grid-row: 1;
    grid-column: 2;
    width: auto;
    min-width: 44px;
    justify-self: end;
  }

  .admin-main {
    width: calc(100% - 32px);
    padding: 26px 0 58px;
  }

  .admin-title-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }

  .login-card h1,
  .admin-title-row h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.06;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 17px;
    align-items: center;
    gap: 8px 16px;
  }

  .admin-stat strong {
    margin: 0;
    font-size: 38px;
  }

  .admin-stat p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .admin-two,
  .admin-three {
    gap: 14px;
  }

  .admin-two > .admin-card,
  .admin-three > .admin-card,
  .article-editor {
    padding: 16px;
  }

  .admin-list {
    max-height: 360px;
  }

  .admin-actions .solid-button,
  .admin-actions .ghost-button {
    flex: 1 1 180px;
  }

  .cookie-banner {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    width: calc(100% - 16px);
    padding: 14px;
  }

  .cookie-banner p {
    grid-column: auto;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 43px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .evidence-bar-grid,
  .evidence-bar-grid:not(:empty) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-bar-grid > * {
    border-right: 1px solid rgba(255, 255, 255, 0.13);
  }

  .route-facts,
  .coin-note {
    display: none;
  }

  .question-panel {
    margin-top: 2px;
  }

  body.article-mode .reader-meta span {
    display: none;
  }

  body.article-mode #closeReader {
    width: auto;
  }

  .reader-body {
    width: calc(100% - 32px);
  }

  .reader-body h2 {
    font-size: 32px;
  }

  .graph-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .graph-search .ghost-button {
    grid-column: auto;
    width: 48px;
    padding: 0;
  }

  .graph-search .ghost-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .admin-header > .ghost-button {
    width: 44px;
    padding: 0;
  }

  .admin-header > .ghost-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}

/* Portal 1.5 */
.portal-account-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  place-items: center;
  background: var(--white);
  color: var(--ink);
}

.portal-account-button svg {
  width: 19px;
  height: 19px;
}

.portal-account-balance {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--white);
  border-radius: 10px;
  place-items: center;
  background: var(--terra);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.mobile-dock {
  display: none;
}

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

.reader-bookmark {
  display: inline-flex;
  width: 44px;
  min-height: 44px;
}

.reader-bookmark.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.article-community {
  margin-top: 68px;
  padding-top: 34px;
  border-top: 3px solid var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.community-loading,
.community-empty {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
}

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

.community-head h3 {
  margin: 7px 0 0;
  font-size: 30px;
}

.community-head p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.community-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.community-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.community-action:hover,
.community-action.active {
  border-color: var(--blue);
  background: #f3f7fb;
  color: var(--blue-deep);
}

.community-action svg {
  width: 19px;
  height: 19px;
}

.community-action span {
  font-size: 13px;
  font-weight: 850;
}

.community-action strong {
  font-size: 16px;
}

.community-thread {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.community-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.community-thread-head h4 {
  margin: 0;
  font-size: 22px;
}

.community-thread-head span,
.portal-count {
  display: grid;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 16px;
  place-items: center;
  background: var(--paper);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 900;
}

.community-comments {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.community-comment {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.community-avatar,
.portal-avatar {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 950;
}

.community-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.community-comment strong,
.community-comment time {
  display: inline;
  font-size: 13px;
}

.community-comment time {
  margin-left: 8px;
  color: var(--muted);
}

.community-comment p {
  margin: 7px 0 0;
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.community-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.community-form-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.community-form-row small {
  max-width: 440px;
  color: var(--muted);
}

.community-auth {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  align-items: center;
  background: var(--paper);
}

.community-auth > svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.community-auth p {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.priority-answer-option {
  padding: 14px;
  border: 1px solid rgba(23, 79, 134, 0.24);
  border-left: 4px solid var(--blue);
  background: #f4f8fb;
}

.priority-answer-option strong {
  display: block;
  color: var(--blue-deep);
}

.priority-answer-option.is-unavailable {
  border-color: var(--line);
  border-left-color: var(--muted);
  background: #f5f6f7;
  color: var(--muted);
}

.priority-answer-option.is-unavailable strong {
  color: var(--graphite);
}

.account-body {
  background: var(--paper);
}

.account-session-pending #authView,
.account-session-pending #accountView,
.account-authenticated #authView,
.account-guest #accountView {
  display: none !important;
}

.account-authenticated .account-hero {
  display: none;
}

.account-hero {
  padding: 70px 0;
  border-bottom: 1px solid #2c343b;
  background: #12171c;
  color: var(--white);
}

.account-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
}

.account-hero h1 {
  margin: 10px 0 18px;
  font-size: 58px;
  line-height: 1;
}

.account-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.account-principles {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.account-principles > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
}

.account-principles svg {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  color: #ef8c70;
}

.account-principles small {
  color: rgba(255, 255, 255, 0.58);
}

.account-entry {
  background: var(--paper);
}

.account-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(400px, 0.72fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

.account-entry-copy {
  padding-top: 24px;
}

.account-entry-copy h2 {
  margin: 10px 0 18px;
  font-size: 43px;
  line-height: 1.04;
}

.account-entry-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.account-benefits {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.account-benefits span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--graphite);
  font-weight: 820;
}

.account-benefits svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 22px 58px rgba(17, 20, 24, 0.09);
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #eef0f1;
}

.auth-switch button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--graphite);
  font-weight: 880;
}

.auth-switch button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(17, 20, 24, 0.08);
}

.auth-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.auth-form-head {
  display: flex;
  margin-bottom: 4px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form-head strong {
  color: var(--terra);
}

.auth-consent {
  font-size: 13px;
  line-height: 1.45;
}

.auth-consent a {
  color: var(--blue);
  font-weight: 850;
}

.portal-dashboard {
  background: var(--paper);
}

.portal-profile {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.portal-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}

.portal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 24px;
}

.portal-identity h1 {
  margin: 3px 0 0;
  font-size: 34px;
  line-height: 1;
}

.portal-identity p {
  margin: 5px 0 0;
  color: var(--muted);
}

.portal-profile-actions {
  display: flex;
  gap: 8px;
}

.portal-logout {
  display: inline-flex;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.portal-stat {
  display: flex;
  min-height: 144px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
  justify-content: space-between;
  background: var(--white);
}

.portal-stat span,
.portal-stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-stat strong {
  display: block;
  margin: 22px 0 6px;
  font-size: 38px;
  line-height: 1;
}

.portal-stat > svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.portal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.portal-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.portal-panel-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.portal-panel-head h2,
.exchange-copy h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.04;
}

.portal-panel-head h2 small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.portal-panel-head > svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.portal-wallet {
  color: var(--white);
  background: #17212a;
}

.portal-wallet .label {
  color: #ef8c70;
}

.portal-wallet .portal-panel-head > svg {
  color: #72a4d5;
}

.portal-panel-lead {
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: Georgia, "Times New Roman", serif;
}

.transaction-list,
.saved-list,
.account-activity-list {
  display: grid;
}

.transaction-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
}

.transaction-sign {
  display: grid;
  width: 42px;
  height: 32px;
  border-radius: 16px;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.transaction-sign.plus {
  background: rgba(69, 174, 128, 0.16);
  color: #8bd0ae;
}

.transaction-sign.minus {
  background: rgba(239, 140, 112, 0.15);
  color: #f1a089;
}

.transaction-item strong,
.transaction-item small {
  display: block;
}

.transaction-item small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
}

.saved-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 16px 34px 16px 0;
  border-top: 1px solid var(--line);
}

.saved-item > span,
.saved-item > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.saved-item > svg {
  position: absolute;
  top: 18px;
  right: 0;
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.activity-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.activity-item > svg {
  width: 18px;
  height: 18px;
  color: var(--terra);
}

.activity-item strong,
.activity-item span {
  display: block;
}

.activity-item span,
.activity-item time {
  color: var(--muted);
  font-size: 11px;
}

.portal-exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border-top: 3px solid var(--terra);
  align-items: end;
}

.exchange-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.exchange-price {
  text-align: right;
}

.exchange-price strong,
.exchange-price small {
  display: block;
}

.exchange-price strong {
  font-size: 28px;
}

.exchange-price small {
  color: var(--terra);
  font-size: 11px;
  font-weight: 850;
}

.portal-exchange .full,
.portal-exchange .status {
  grid-column: 1 / -1;
}

.portal-empty {
  color: var(--muted);
}

.portal-empty > svg {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  color: var(--blue);
}

.portal-empty a {
  color: var(--blue);
  font-weight: 850;
}

.portal-admin-grid .admin-compact-item .ghost-button {
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .account-hero-grid,
  .account-entry-grid {
    grid-template-columns: 1fr;
  }

  .account-principles {
    max-width: 680px;
  }

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

@media (max-width: 820px) {
  .portal-account-button {
    display: none;
  }

  body.has-mobile-dock {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .mobile-dock {
    position: fixed;
    z-index: 74;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(17, 20, 24, 0.08);
  }

  .mobile-dock a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 66px;
    padding: 9px 2px 7px;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-dock a::before {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 28px;
    height: 3px;
    background: transparent;
    content: "";
    transform: translateX(-50%);
  }

  .mobile-dock a[aria-current="page"] {
    color: var(--blue);
  }

  .mobile-dock a[aria-current="page"]::before {
    background: var(--blue);
  }

  .mobile-dock svg {
    width: 21px;
    height: 21px;
  }

  .has-mobile-dock .cookie-banner {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .has-mobile-dock .toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  body.article-mode .reader-nav {
    grid-template-columns: 44px minmax(0, 1fr) 96px;
  }

  body.article-mode #closeReader {
    width: 44px;
    padding: 0;
  }

  body.article-mode #closeReader span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body.article-mode .reader-toolbar-actions {
    width: 96px;
  }

  .article-community {
    margin-top: 50px;
    padding-top: 26px;
  }

  .community-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .community-head h3 {
    font-size: 27px;
  }

  .community-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .community-action {
    min-height: 64px;
    padding: 11px;
  }

  .community-form-row,
  .community-auth {
    align-items: stretch;
  }

  .community-form-row {
    flex-direction: column;
  }

  .community-auth {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .community-auth .ghost-button {
    grid-column: 1 / -1;
  }

  .account-hero {
    padding: 44px 0;
  }

  .account-hero-grid {
    gap: 34px;
  }

  .account-hero h1 {
    font-size: 39px;
  }

  .account-hero p {
    font-size: 17px;
  }

  .account-entry {
    padding: 42px 0 50px;
  }

  .account-entry-grid {
    gap: 28px;
  }

  .account-entry-copy {
    padding-top: 0;
  }

  .account-entry-copy h2 {
    font-size: 32px;
  }

  .auth-form {
    padding: 18px;
  }

  .portal-profile {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-profile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .portal-profile-actions .ghost-button {
    width: 100%;
  }

  .portal-identity h1 {
    font-size: 28px;
  }

  .portal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .portal-stat {
    min-height: 126px;
    padding: 14px;
  }

  .portal-stat strong {
    margin-top: 16px;
    font-size: 32px;
  }

  .portal-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-panel {
    padding: 18px;
  }

  .activity-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .activity-item time {
    grid-column: 2;
  }

  .admin-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mobile-dock a span {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-action span {
    font-size: 12px;
  }

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

  .portal-exchange {
    grid-template-columns: 1fr;
  }

  .exchange-price {
    text-align: left;
  }
}

/* Editorial interface refresh */
.header {
  min-height: 72px;
  border-bottom-color: #e2e6e9;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(17, 20, 24, 0.045);
}

.brand-symbol {
  background: #14191f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav a {
  position: relative;
  transition: color 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  box-shadow: none;
}

.solid-button,
.ghost-button,
.icon-button {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.solid-button {
  box-shadow: 0 7px 18px rgba(17, 20, 24, 0.12);
}

.ghost-button:hover,
.icon-button:hover {
  border-color: #b8c1c7;
  background: #f7f9fa;
}

.material-page-hero {
  background: #eef2f3;
}

.latest-section,
.articles-section {
  background: #f7f9fa;
}

.latest-section {
  border-top-color: #e3e7ea;
}

.feed-search {
  min-height: 56px;
  border-color: #d5dce0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.feed-search:focus-within {
  border-color: rgba(23, 79, 134, 0.62);
  box-shadow: 0 0 0 3px rgba(23, 79, 134, 0.1), 0 12px 30px rgba(17, 20, 24, 0.06);
}

#articleFilters {
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce2e5;
  border-radius: var(--radius);
  background: #e9edef;
}

#articleFilters .filter-button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

#articleFilters .filter-button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(17, 20, 24, 0.1);
}

.article-grid {
  gap: 18px;
  align-items: stretch;
}

.home-article-grid {
  grid-template-columns: 1.16fr 1fr 1fr;
}

.article-card {
  --card-accent: var(--blue);
  --card-wash: #e9f2f8;
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  padding: 0;
  border: 1px solid #dce2e5;
  border-top: 1px solid #dce2e5;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-card::before {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--card-accent);
  content: "";
}

.article-card-science {
  --card-accent: #175b91;
  --card-wash: #e9f2f8;
}

.article-card-health {
  --card-accent: #2b6a55;
  --card-wash: #e9f3ef;
}

.article-card-reality {
  --card-accent: #a34a35;
  --card-wash: #f7ece8;
}

.article-card-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 92px;
  padding: 17px 20px 16px 22px;
  border-bottom: 1px solid rgba(17, 20, 24, 0.08);
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-wash);
}

.article-card-section,
.article-card-proof {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 32px;
  border-radius: 5px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card-section {
  color: var(--card-accent);
}

.article-card-section svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.article-card-proof {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--graphite);
  white-space: nowrap;
}

.article-card-proof svg {
  width: 15px;
  height: 15px;
  color: var(--card-accent);
}

.article-card-sequence {
  position: absolute;
  right: 17px;
  bottom: -10px;
  color: var(--card-accent);
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
  opacity: 0.13;
}

.article-card-body {
  display: flex;
  min-width: 0;
  padding: 21px 21px 18px 23px;
  flex-direction: column;
}

.article-card-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-card h3,
.article-card.featured h3 {
  margin: 13px 0 11px;
  font-size: 25px;
  line-height: 1.08;
}

.article-card h3 a {
  outline-offset: 5px;
}

.article-card h3 a:hover {
  color: var(--card-accent);
}

.article-card p,
.article-card.featured p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.article-card-body > p {
  margin-bottom: auto;
}

.article-card .tags {
  gap: 5px;
  margin-top: 18px;
}

.article-card .tags span,
.article-card.featured .tags span {
  min-height: 25px;
  padding: 0 8px;
  border-color: #dce2e5;
  border-radius: 4px;
  background: #f3f5f6;
  color: var(--graphite);
  font-size: 11px;
}

.article-card .tags .tag-more {
  border-color: color-mix(in srgb, var(--card-accent) 22%, #dce2e5);
  background: color-mix(in srgb, var(--card-wash) 72%, white);
  color: var(--card-accent);
}

.article-card-footer {
  display: flex;
  min-height: 47px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e6eaec;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card-stats {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.article-card-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card-stats svg {
  width: 15px;
  height: 15px;
  color: var(--card-accent);
}

.article-difficulty {
  gap: 3px !important;
}

.difficulty-bar {
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: #cbd2d6;
}

.difficulty-bar.active {
  background: var(--card-accent);
}

.article-difficulty small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.article-card-open {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d9dfe2;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.article-card-open svg {
  width: 16px;
  height: 16px;
}

.article-card-open:hover {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: var(--white);
}

.article-card.featured {
  grid-column: span 2;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.45fr);
  grid-template-rows: 1fr;
  color: var(--ink);
  border-color: #d7dee2;
  background: var(--white);
}

.article-card.featured .article-card-visual {
  min-height: 100%;
  padding: 24px;
  border-right: 1px solid rgba(17, 20, 24, 0.08);
  border-bottom: 0;
  flex-direction: column;
}

.article-card.featured .article-card-proof {
  order: 3;
}

.article-card.featured .article-card-sequence {
  right: 18px;
  bottom: 8px;
  font-size: 86px;
  opacity: 0.1;
}

.article-card.featured .article-card-body {
  padding: 27px 28px 22px;
}

.article-card.featured h3 {
  font-size: 36px;
  line-height: 1.04;
}

.home-article-grid .article-card {
  min-height: 430px;
}

.insight-module {
  --insight-accent: #175b91;
  --insight-wash: #edf4f8;
  margin: 40px 0 46px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.insight-health {
  --insight-accent: #2b6a55;
  --insight-wash: #edf5f1;
}

.insight-reality {
  --insight-accent: #a34a35;
  --insight-wash: #f8efec;
}

.insight-module-head {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-module-head > span {
  color: var(--insight-accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.insight-module-head > small {
  display: inline-flex;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d9e0e3;
  border-radius: 5px;
  align-items: center;
  gap: 7px;
  background: var(--white);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.insight-module-head svg {
  width: 15px;
  height: 15px;
  color: var(--insight-accent);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  align-items: stretch;
}

.insight-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 328px;
  padding: 23px;
  border: 1px solid #d8dfe3;
  border-radius: var(--radius);
}

.insight-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--insight-accent);
  content: "";
}

.insight-card-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.insight-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 6px;
  place-items: center;
}

.insight-icon svg {
  width: 21px;
  height: 21px;
}

.insight-card-title small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-body .insight-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.insight-hypothesis {
  display: flex;
  flex-direction: column;
  border-color: #172630;
  background: #172630;
  color: var(--white);
}

.insight-hypothesis .insight-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #9fc4e0;
}

.insight-hypothesis .insight-card-title small {
  color: #9fc4e0;
}

.reader-body .insight-hypothesis h3,
.reader-body .insight-hypothesis > p {
  color: var(--white);
}

.reader-body .insight-hypothesis > p {
  margin: auto 0 0;
  padding-top: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.58;
  opacity: 0.86;
}

.insight-hypothesis .glossary-term {
  border-bottom-color: rgba(255, 255, 255, 0.58);
}

.insight-practice {
  background: var(--insight-wash);
}

.insight-practice .insight-icon {
  background: var(--white);
  color: var(--insight-accent);
  box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.08);
}

.insight-practice .insight-card-title small {
  color: var(--insight-accent);
}

.practice-list {
  display: grid;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.reader-body .practice-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 20, 24, 0.11);
  align-items: start;
}

.reader-body .practice-list li > span {
  display: grid;
  width: 30px;
  height: 27px;
  border-radius: 5px;
  place-items: center;
  background: var(--white);
  color: var(--insight-accent);
  box-shadow: inset 0 0 0 1px rgba(17, 20, 24, 0.09);
  font-size: 10px;
  font-weight: 950;
}

.reader-body .practice-list p {
  margin: 1px 0 0;
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.47;
}

@media (hover: hover) {
  .article-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 32%, #dce2e5);
    box-shadow: 0 22px 52px rgba(17, 20, 24, 0.11);
    transform: translateY(-4px);
  }

  .solid-button:hover,
  .ghost-button:hover,
  .icon-button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1120px) {
  .home-article-grid {
    grid-template-columns: 1.08fr 1fr 1fr;
  }

  .article-card.featured h3 {
    font-size: 32px;
  }
}

@media (max-width: 820px) {
  .header {
    min-height: 64px;
    background: var(--white);
    backdrop-filter: none;
  }

  .nav a::after {
    display: none;
  }

  .feed-search {
    width: 100%;
    min-height: 52px;
    box-shadow: none;
  }

  #articleFilters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  #articleFilters::-webkit-scrollbar {
    display: none;
  }

  #articleFilters .filter-button {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .home-article-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: minmax(286px, 86vw);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 15px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .article-grid:not(.home-article-grid) {
    gap: 14px;
  }

  .article-card,
  .home-article-grid .article-card {
    min-height: 400px;
  }

  .article-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .article-card.featured .article-card-visual {
    min-height: 84px;
    padding: 16px 18px 15px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 20, 24, 0.08);
    flex-direction: row;
  }

  .article-card.featured .article-card-proof {
    order: initial;
  }

  .article-card-visual {
    min-height: 84px;
    padding: 16px 18px 15px 20px;
  }

  .article-card-sequence,
  .article-card.featured .article-card-sequence {
    right: 14px;
    bottom: -7px;
    font-size: 42px;
  }

  .article-card-body,
  .article-card.featured .article-card-body {
    padding: 18px 18px 16px 20px;
  }

  .article-card h3,
  .article-card.featured h3 {
    margin: 12px 0 10px;
    font-size: 24px;
    line-height: 1.1;
  }

  .article-card p {
    line-height: 1.5;
  }

  .article-card .tags {
    margin-top: 15px;
  }

  .article-card-footer {
    margin-top: 18px;
  }

  .insight-module {
    margin: 30px 0 36px;
  }

  .insight-module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .insight-card {
    min-height: auto;
    padding: 19px;
  }

  .reader-body .insight-card h3 {
    font-size: 24px;
  }

  .reader-body .insight-hypothesis > p {
    margin-top: 26px;
    padding-top: 0;
    font-size: 18px;
    line-height: 1.55;
  }

  .practice-list {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .article-card-proof {
    padding: 0 8px;
    font-size: 10px;
  }

  .article-card-section {
    font-size: 10px;
  }

  .article-card-footer {
    gap: 8px;
  }

  .article-card-open span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .article-card-open {
    width: 44px;
    padding: 0;
  }
}

/* Account-bound question flow */
.ask-form-column {
  min-width: 0;
}

.ask-auth-gate {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 54px rgba(17, 20, 24, 0.08);
}

.ask-auth-gate::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
}

.ask-auth-mark,
.question-identity-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(23, 79, 134, 0.2);
  border-radius: 50%;
  background: #f1f6fa;
  color: var(--blue);
}

.ask-auth-mark svg {
  width: 27px;
  height: 27px;
}

.ask-auth-gate.is-loading .ask-auth-mark {
  animation: ask-access-pulse 1.4s ease-in-out infinite;
}

.ask-auth-gate h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.08;
}

.ask-grid .ask-auth-gate p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.ask-auth-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ask-auth-points span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 760;
}

.ask-auth-points svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.ask-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.question-panel {
  background: var(--white);
  box-shadow: 0 20px 54px rgba(17, 20, 24, 0.07);
}

.case-fields {
  display: grid;
  gap: 22px;
  padding: 4px 0 2px;
}

.case-fields .red-flags {
  padding: 18px;
}

.case-fields .red-flags-review {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid rgba(139, 31, 31, 0.14);
  font-weight: 800;
}

.case-fields .priority-answer-option {
  gap: 12px;
  margin-top: 4px;
  padding: 17px 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 79, 134, 0.07);
}

.case-fields .priority-answer-option input {
  margin-top: 4px;
}

.question-panel label.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  line-height: 1.48;
  cursor: pointer;
}

.question-panel label.consent > input[type="checkbox"] {
  grid-column: 1;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.question-panel label.consent > span {
  grid-column: 2;
  min-width: 0;
}

.question-panel label.emergency-consent {
  padding: 2px 0;
}

.question-panel .red-flags label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.question-panel .red-flags label > input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.question-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.question-identity-mark {
  width: 46px;
  height: 46px;
}

.question-identity-mark svg {
  width: 22px;
  height: 22px;
}

.question-identity-copy {
  display: grid;
  min-width: 0;
}

.question-identity-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.question-identity-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-identity-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-identity-actions,
.question-identity-balance,
.identity-profile-link {
  display: flex;
  align-items: center;
}

.question-identity-actions {
  gap: 12px;
}

.question-identity-balance {
  gap: 5px;
  color: var(--blue);
  font-size: 14px;
}

.question-identity-balance svg,
.identity-profile-link svg {
  width: 16px;
  height: 16px;
}

.identity-profile-link {
  gap: 6px;
  min-height: 38px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--graphite);
  font-size: 13px;
  font-weight: 850;
}

.identity-profile-link:hover {
  color: var(--blue);
}

@keyframes ask-access-pulse {
  50% {
    border-color: rgba(23, 79, 134, 0.5);
    background: #e8f1f8;
  }
}

@media (max-width: 820px) {
  .ask-auth-gate {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .ask-auth-mark {
    width: 48px;
    height: 48px;
  }

  .ask-auth-gate h2 {
    font-size: 27px;
  }

  .question-identity {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .question-identity-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .identity-profile-link {
    min-height: 32px;
  }

  .case-fields {
    gap: 19px;
    padding-top: 2px;
  }

  .case-fields .red-flags {
    padding: 16px;
  }

  .case-fields .priority-answer-option {
    margin-top: 3px;
    padding: 15px 16px;
  }
}

@media (max-width: 520px) {
  .ask-auth-gate {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 22px 20px;
  }

  .ask-auth-gate h2 {
    font-size: 25px;
  }

  .ask-auth-points {
    margin-top: 18px;
    padding-top: 17px;
  }

  .ask-auth-points span {
    align-items: flex-start;
    font-size: 13px;
  }

  .ask-auth-points svg {
    margin-top: 1px;
  }

  .ask-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .ask-auth-actions a {
    width: 100%;
  }

  .question-identity-copy strong,
  .question-identity-copy span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Compact mobile page ending */
@media (max-width: 820px) {
  .subscribe-section.section {
    padding: 38px 0;
  }

  .subscribe-grid {
    gap: 20px;
  }

  .subscribe-grid h2 {
    max-width: 560px;
    margin-top: 6px;
    font-size: 31px;
    line-height: 1.08;
  }

  .subscribe-grid > div > p {
    margin-top: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
  }

  .subscribe-form {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 9px;
    border-color: #d5dce0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(17, 20, 24, 0.05);
  }

  .subscribe-form .field {
    gap: 0;
  }

  .subscribe-form .field > span,
  .subscribe-form .solid-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .subscribe-form .field input {
    min-height: 48px;
    border: 0;
    background: var(--paper);
  }

  .subscribe-form .solid-button {
    width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .subscribe-form .status {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 2px 4px 1px;
    font-size: 12px;
    line-height: 1.4;
  }

  .subscribe-form .status:empty {
    display: none;
  }

  .footer {
    background: #f8fafb;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 25px 0 14px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-grid > div:first-child > p,
  .footer nav[aria-label="Футер: материалы"],
  .footer nav[aria-label="Футер: инструменты"] {
    display: none;
  }

  .footer .brand {
    grid-template-columns: 38px minmax(0, max-content);
    gap: 10px;
  }

  .footer .brand-symbol {
    width: 38px;
    height: 38px;
    background: var(--graphite);
  }

  .footer .brand strong {
    font-size: 16px;
  }

  .footer-notice {
    margin-top: 11px;
    color: var(--terra);
    font-size: 11px;
    line-height: 1.4;
  }

  .footer nav[aria-label="Футер: проект"] {
    display: grid;
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 18px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .footer nav[aria-label="Футер: проект"] strong {
    display: none;
  }

  .footer nav[aria-label="Футер: проект"] a {
    display: flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    border-bottom: 1px solid rgba(220, 225, 228, 0.74);
    color: var(--graphite);
    font-size: 12px;
    font-weight: 780;
  }

  .footer-bottom {
    min-height: auto;
    padding: 11px 0 calc(13px + env(safe-area-inset-bottom));
    border-top: 0;
    flex-direction: row;
    color: #7a838a;
    font-size: 11px;
    line-height: 1.3;
  }

  .footer-bottom span:last-child {
    display: none;
  }

  body.has-mobile-dock {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mobile-dock {
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -7px 24px rgba(17, 20, 24, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a {
    min-height: 60px;
    padding: 7px 2px 6px;
    gap: 2px;
    font-size: 9px;
  }

  .mobile-dock a::before {
    width: 20px;
    height: 2px;
  }

  .mobile-dock svg {
    width: 20px;
    height: 20px;
  }

  .has-mobile-dock .cookie-banner {
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 20px);
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 20, 24, 0.97);
    box-shadow: 0 12px 38px rgba(17, 20, 24, 0.24);
    backdrop-filter: blur(18px);
  }

  .cookie-banner p {
    grid-column: auto;
    font-size: 12px;
    line-height: 1.45;
  }

  .cookie-banner p a {
    margin-left: 3px;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

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

  .cookie-actions .solid-button,
  .cookie-actions .ghost-button {
    width: 100%;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .has-mobile-dock .toast {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .subscribe-section.section {
    padding: 30px 0;
  }

  .subscribe-grid {
    gap: 16px;
  }

  .subscribe-grid h2 {
    font-size: 27px;
  }

  .subscribe-grid > div > p {
    display: none;
  }

  .footer nav[aria-label="Футер: проект"] {
    gap: 0 14px;
  }
}

/* Mobile knowledge graph */
@media (max-width: 820px) {
  .standalone-map {
    padding-top: 30px;
  }

  .standalone-map .map-grid {
    gap: 22px;
  }

  .standalone-map .map-copy h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .standalone-map .map-copy > p {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
  }

  .map-copy .filter-row {
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .map-copy .filter-button {
    flex: 0 0 auto;
  }

  .graph-overview-button {
    width: max-content;
    max-width: 100%;
  }

  .graph-shell,
  #knowledgeGraph,
  .standalone-map .graph-shell,
  .standalone-map #knowledgeGraph {
    min-height: 520px;
    height: clamp(520px, 68svh, 620px);
  }

  .standalone-map .graph-shell {
    overflow: hidden;
    border-top-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .graph-context {
    top: 10px;
    left: 10px;
    width: min(250px, calc(100% - 82px));
    min-height: 46px;
    padding: 6px 9px 6px 6px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .graph-context-icon {
    width: 32px;
    height: 32px;
  }

  .graph-toolbar {
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
  }

  .graph-toolbar .icon-button {
    width: 38px;
    min-height: 38px;
  }

  .graph-inspector {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: none;
    width: auto;
    max-height: 154px;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(15, 19, 23, 0.96);
    box-shadow: 0 18px 44px rgba(5, 8, 10, 0.34);
    backdrop-filter: blur(18px);
  }

  .graph-inspector.is-selection {
    display: block;
    animation: graph-inspector-in 180ms ease-out both;
  }

  .graph-inspector strong {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .graph-inspector-detail {
    display: none;
  }

  .graph-inspector .ghost-button {
    min-height: 40px;
    margin-top: 9px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .graph-inspector-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .graph-inspector-actions .ghost-button {
    margin-top: 9px;
  }
}

@media (max-width: 520px) {
  .standalone-map {
    padding-top: 24px;
  }

  .standalone-map .map-copy h1 {
    font-size: 34px;
  }

  .standalone-map .map-copy > p,
  .standalone-map .map-capacity {
    display: none;
  }

  .standalone-map .graph-search {
    margin-top: 16px;
  }

  .graph-overview-button {
    width: max-content;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .ask-auth-gate.is-loading .ask-auth-mark {
    animation: none;
  }
}

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