/* ==========================================================
   BASELINE
   Single authoritative stylesheet
   Pages:
   - Home
   - Systems Directory
   - System Review
   ========================================================== */

/* ==========================================================
   Design tokens
   ========================================================== */

:root {
  --bg: #0b0b0a;
  --surface: #121210;
  --surface-raised: #171714;
  --surface-active: rgba(216, 255, 79, 0.045);

  --text: #f1eee6;
  --muted: #aaa79f;
  --faint: #74716a;

  --line: rgba(241, 238, 230, 0.12);
  --line-strong: rgba(241, 238, 230, 0.24);

  --accent: #d8ff4f;
  --accent-hover: #e3ff75;
  --accent-soft: rgba(216, 255, 79, 0.1);
  --danger-soft: rgba(255, 120, 100, 0.12);

  --max: 1240px;
  --radius: 22px;
  --header-height: 76px;
}

/* ==========================================================
   Reset
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at 72% 8%,
      rgba(216, 255, 79, 0.07),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

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

/* ==========================================================
   Shared page shell
   ========================================================== */

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

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

/* ==========================================================
   Shared header
   ========================================================== */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 10, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(11, 11, 10, 0.94);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ==========================================================
   Shared typography and controls
   ========================================================== */

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--text);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11110f;
  font-weight: 700;
}

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

/* ==========================================================
   Shared footer
   ========================================================== */

.site-footer {
  padding: 32px 0 45px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ==========================================================
   Accessibility
   ========================================================== */

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ==========================================================
   HOME PAGE
   ========================================================== */

body.home-page .hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 90px 0 100px;
}

body.home-page .hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);
  gap: clamp(50px, 8vw, 115px);
  align-items: center;
}

body.home-page .hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 790;
}

body.home-page .hero h1 span {
  display: block;
}

body.home-page .hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 238, 230, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.075em;
}

body.home-page .hero-copy {
  max-width: 670px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

body.home-page .hero-copy strong {
  color: var(--text);
  font-weight: 620;
}

body.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

body.home-page .result-actions {
  justify-content: center;
}

body.home-page .loop-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 455px);
  aspect-ratio: 1;
}

body.home-page .orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: rotate 24s linear infinite;
}

body.home-page .orbit::before,
body.home-page .orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(216, 255, 79, 0.45);
}

body.home-page .orbit::before {
  top: 13%;
  left: 13%;
}

body.home-page .orbit::after {
  right: 13%;
  bottom: 13%;
}

body.home-page .orbit-inner {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: rotate-reverse 18s linear infinite;
}

body.home-page .loop-center {
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
  box-shadow:
    inset 0 0 50px rgba(216, 255, 79, 0.035),
    0 30px 80px rgba(0, 0, 0, 0.34);
}

body.home-page .loop-center strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

body.home-page .loop-center span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.home-page .loop-label {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

body.home-page .loop-label.one {
  top: 3%;
  right: 10%;
}

body.home-page .loop-label.two {
  bottom: 3%;
  left: 8%;
}

body.home-page main > section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

body.home-page .section-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

body.home-page .section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.home-page .section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body.home-page .section-heading p {
  max-width: 690px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

body.home-page .mantra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.home-page .mantra-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.03),
      transparent 48%
    ),
    var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

body.home-page .mantra-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

body.home-page .mantra-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 740;
}

body.home-page .mantra-card blockquote {
  margin: 65px 0;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 630;
}

body.home-page .mantra-card footer {
  color: var(--muted);
  font-size: 0.95rem;
}

body.home-page .process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.home-page .process-step {
  position: relative;
  min-height: 255px;
  padding: 29px 24px;
  border-right: 1px solid var(--line);
}

body.home-page .process-step:last-child {
  border-right: 0;
}

body.home-page .process-step::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 54px;
  color: var(--faint);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

body.home-page .process-step h3 {
  margin: 0 0 11px;
  font-size: 1.13rem;
}

body.home-page .process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

body.home-page .process-step.active {
  background: var(--accent-soft);
}

body.home-page .process-step.active::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(216, 255, 79, 0.45);
}

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

body.home-page .principle {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

body.home-page .principle-index {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

body.home-page .principle h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

body.home-page .principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

body.home-page .before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

body.home-page .comparison {
  padding: clamp(32px, 5vw, 60px);
  background: var(--surface);
}

body.home-page .comparison + .comparison {
  border-left: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      rgba(216, 255, 79, 0.06),
      transparent 50%
    ),
    var(--surface);
}

body.home-page .comparison-label {
  margin: 0 0 35px;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body.home-page .comparison:last-child .comparison-label {
  color: var(--accent);
}

body.home-page .comparison ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home-page .comparison li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

body.home-page .comparison li:last-child {
  border-bottom: 0;
}

body.home-page .application-note {
  padding: clamp(35px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(216, 255, 79, 0.11),
      transparent 35%
    ),
    var(--surface);
}

body.home-page .application-note h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.3rem, 5.7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

body.home-page .application-copy {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 45px;
  margin-top: 42px;
}

body.home-page .application-copy strong {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-page .application-copy p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

body.home-page .application-copy p + p {
  margin-top: 18px;
}

body.home-page .result-band {
  text-align: center;
}

body.home-page .result-band h2 {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

body.home-page .result-band h2 span {
  color: var(--accent);
}

body.home-page .result-band > .container > p:not(.section-kicker) {
  max-width: 770px;
  margin: 35px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

body.home-page .restart-button {
  margin-top: 38px;
}

body.home-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

body.home-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   SYSTEMS DIRECTORY
   ========================================================== */

body.systems-directory-page {
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(216, 255, 79, 0.09),
      transparent 28rem
    ),
    radial-gradient(
      circle at 9% 54%,
      rgba(216, 255, 79, 0.035),
      transparent 31rem
    ),
    var(--bg);
}

body.systems-directory-page .systems-hero {
  min-height: 0;
  display: block;
  padding: clamp(72px, 8vw, 112px) 0 clamp(50px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

body.systems-directory-page .systems-hero h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.3rem, 6.5vw, 6.7rem);
  font-weight: 780;
  line-height: 0.93;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

body.systems-directory-page .systems-hero .hero-copy {
  max-width: 960px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

body.systems-directory-page .systems-directory {
  padding: clamp(36px, 5vw, 62px) 0 86px;
}

body.systems-directory-page .controls {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(210px, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
}

body.systems-directory-page .control {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  border: 1px solid rgba(241, 238, 230, 0.16);
  border-radius: 14px;
  outline: 0;
  background-color: rgba(18, 18, 16, 0.96);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 30px rgba(0, 0, 0, 0.12);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body.systems-directory-page #systemSearch {
  padding: 0 18px 0 47px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aaa79f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 19px 19px;
}

body.systems-directory-page #systemSearch::placeholder {
  color: rgba(170, 167, 159, 0.74);
  opacity: 1;
}

body.systems-directory-page #systemSearch::-webkit-search-decoration,
body.systems-directory-page #systemSearch::-webkit-search-cancel-button,
body.systems-directory-page #systemSearch::-webkit-search-results-button,
body.systems-directory-page #systemSearch::-webkit-search-results-decoration {
  appearance: none;
  -webkit-appearance: none;
}

body.systems-directory-page #categoryFilter {
  padding: 0 46px 0 18px;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%
    ),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%
    );
  background-position:
    calc(100% - 21px) 22px,
    calc(100% - 16px) 22px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

body.systems-directory-page #categoryFilter option {
  background: var(--surface);
  color: var(--text);
}

body.systems-directory-page .control:hover {
  border-color: rgba(241, 238, 230, 0.3);
  background-color: var(--surface-raised);
}

body.systems-directory-page .control:focus,
body.systems-directory-page .control:focus-visible {
  border-color: rgba(216, 255, 79, 0.72);
  outline: 0;
  background-color: var(--surface-raised);
  box-shadow:
    0 0 0 4px rgba(216, 255, 79, 0.09),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

body.systems-directory-page #systemGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.systems-directory-page .system-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  min-height: 232px;
  height: 100%;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.026),
      transparent 52%
    ),
    var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

body.systems-directory-page .system-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(216, 255, 79, 0.085),
      transparent 48%
    );
  opacity: 0;
  transition: opacity 170ms ease;
}

body.systems-directory-page .system-card:hover,
body.systems-directory-page .system-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(216, 255, 79, 0.58);
  background-color: var(--surface-raised);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  outline: 0;
}

body.systems-directory-page .system-card:hover::before,
body.systems-directory-page .system-card:focus-visible::before {
  opacity: 1;
}

body.systems-directory-page .system-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

body.systems-directory-page .card-category {
  display: block;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

body.systems-directory-page .system-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.24rem, 1.55vw, 1.55rem);
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

body.systems-directory-page .system-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

body.systems-directory-page #systemGrid .empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}

body.systems-directory-page #systemGrid .empty-state h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.4rem;
}

body.systems-directory-page #systemGrid .empty-state p {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================
   SYSTEM REVIEW
   ========================================================== */

body.review-page {
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(216, 255, 79, 0.065),
      transparent 30rem
    ),
    var(--bg);
}

body.review-page #reviewRoot {
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.review-page .review-hero {
  width: 100%;
  padding: clamp(64px, 8vw, 104px) 0 clamp(42px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}

body.review-page .review-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.review-page .review-hero .eyebrow {
  order: 1;
  margin-bottom: 14px;
}

body.review-page .review-hero h1 {
  order: 2;
  max-width: 1100px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

body.review-page .review-description,
body.review-page .review-summary {
  order: 3;
  max-width: 840px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

body.review-page .baseline-read-all-button {
  order: 4;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 38px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

body.review-page .baseline-read-all-button:hover,
body.review-page .baseline-read-all-button:focus-visible,
body.review-page .baseline-read-all-button.is-speaking {
  color: var(--text);
}

body.review-page .baseline-read-all-icon,
body.review-page .baseline-read-all-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: inherit;
}

body.review-page .review-layout {
  display: block;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: 0 0 96px;
}

body.review-page .review-content {
  width: 100%;
  min-width: 0;
}

body.review-page .baseline-clean-section {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: transparent;
  scroll-margin-top: 92px;
}

body.review-page .baseline-clean-section:last-of-type {
  border-bottom: 1px solid var(--line);
}

body.review-page .baseline-clean-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.review-page .baseline-clean-row-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
}

body.review-page .baseline-clean-row-button:hover,
body.review-page .baseline-clean-row-button:focus-visible {
  color: var(--text);
}

body.review-page .baseline-clean-toggle {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  color: currentColor;
  font-size: 22px;
  font-weight: 350;
  line-height: 1;
  text-align: center;
}

body.review-page .baseline-clean-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.review-page .baseline-clean-number {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

body.review-page .baseline-clean-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.review-page .baseline-clean-speaker {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

body.review-page .baseline-clean-speaker:hover,
body.review-page .baseline-clean-speaker:focus-visible,
body.review-page .baseline-clean-speaker.is-speaking {
  color: var(--text);
}

body.review-page .baseline-clean-speaker svg,
body.review-page .baseline-clean-speaker svg * {
  width: 17px;
  height: 17px;
  color: inherit;
}

body.review-page .baseline-clean-body {
  display: none;
  width: 100%;
  min-width: 0;
  padding: 4px 0 44px;
}

body.review-page
  .baseline-clean-section.is-open
  > .baseline-clean-body {
  display: block;
}

body.review-page
  .baseline-clean-section.baseline-reading-section {
  background:
    linear-gradient(
      90deg,
      rgba(216, 255, 79, 0.04),
      transparent 74%
    );
}

body.review-page .baseline-clean-body > h2 {
  max-width: 1050px;
  margin: 10px 0 28px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

body.review-page .item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin: 0;
}

body.review-page .item {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}

body.review-page .item strong {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
}

body.review-page .item strong a {
  color: inherit;
  text-decoration: none;
}

body.review-page .item strong a:hover,
body.review-page .item strong a:focus-visible {
  color: var(--accent);
}

body.review-page .item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

body.review-page .item p + p {
  margin-top: 10px;
}

body.review-page .simple-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.review-page .item .simple-list {
  margin-top: 18px;
}

body.review-page .simple-list > li {
  display: block;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text);
  overflow-wrap: anywhere;
}

body.review-page .limit-type {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

body.review-page #baseline-loop {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.review-page .loop-box {
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

body.review-page .loop-box + .loop-box {
  margin-top: 14px;
}

body.review-page .loop-box h3 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 1.45rem;
}

body.review-page .loop-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

body.review-page .empty-state {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

body.review-page .empty-state p {
  margin: 0;
}

/* ==========================================================
   Review system navigation
   Separate from the real site footer
   ========================================================== */

body.review-page .review-system-nav {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(120px, 170px)
    minmax(0, 1fr);
  width: 100%;
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}

body.review-page .review-system-nav > a,
body.review-page .review-system-nav > span {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 740;
  text-decoration: none;
}

body.review-page .review-system-nav > :last-child {
  border-right: 0;
}

body.review-page .review-system-nav-previous {
  justify-content: flex-start;
}

body.review-page .review-system-nav-all {
  justify-content: center;
  text-align: center;
}

body.review-page .review-system-nav-next {
  justify-content: flex-end;
  text-align: right;
}

body.review-page .review-system-nav > a:hover,
body.review-page .review-system-nav > a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

body.review-page .review-system-nav .is-disabled {
  color: var(--faint);
  cursor: default;
}

/* ==========================================================
   Hide obsolete review structures
   ========================================================== */

body.review-page .review-nav,
body.review-page .baseline-section-strip,
body.review-page .baseline-section-strip-list,
body.review-page .baseline-system-continuation,
body.review-page .baseline-mobile-system-nav,
body.review-page .baseline-review-footer,
body.review-page .baseline-systems-modal,
body.review-page .baseline-unified-marker,
body.review-page .baseline-review-section-marker,
body.review-page .section-reader-marker,
body.review-page .baseline-section-toggle,
body.review-page .baseline-accordion-toggle,
body.review-page .section-reader-button,
body.review-page .baseline-unified-speaker {
  display: none !important;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1080px) {
  body.systems-directory-page #systemGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  body.home-page .hero {
    padding-top: 62px;
  }

  body.home-page .hero-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .loop-visual {
    justify-self: center;
    width: min(85vw, 430px);
    margin-top: 35px;
  }

  body.home-page .mantra-grid,
  body.home-page .before-after,
  body.home-page .application-copy {
    grid-template-columns: 1fr;
  }

  body.home-page .comparison + .comparison {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.home-page .process {
    grid-template-columns: 1fr 1fr;
  }

  body.home-page .process-step {
    border-bottom: 1px solid var(--line);
  }

  body.home-page .process-step:nth-child(2n) {
    border-right: 0;
  }

  body.home-page .process-step:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  body.home-page .principles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body.systems-directory-page .controls {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(180px, 1fr);
  }

  body.systems-directory-page #systemGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.systems-directory-page .system-card {
    min-height: 210px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  body.home-page .hero {
    min-height: auto;
    padding: 68px 0 90px;
  }

  body.home-page .hero h1 {
    font-size: clamp(3.5rem, 20vw, 6rem);
  }

  body.home-page main > section {
    padding: 88px 0;
  }

  body.home-page .mantra-card {
    min-height: 440px;
  }

  body.home-page .process,
  body.home-page .principles-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .process-step,
  body.home-page .process-step:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.home-page .process-step:last-child {
    grid-column: auto;
  }

  body.systems-directory-page .systems-hero {
    padding: 48px 0 38px;
  }

  body.systems-directory-page .systems-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 0.95;
  }

  body.systems-directory-page .systems-hero .hero-copy {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.65;
  }

  body.systems-directory-page .systems-directory {
    padding-top: 28px;
  }

  body.systems-directory-page .controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.systems-directory-page #systemGrid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
  }

  body.systems-directory-page .system-card {
    min-height: 0;
    padding: 20px;
  }

  body.review-page .review-hero {
    padding: 46px 0 36px;
  }

  body.review-page .review-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  body.review-page .review-description,
  body.review-page .review-summary {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.65;
  }

  body.review-page .review-layout {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 74px;
  }

  body.review-page .baseline-clean-marker,
  body.review-page .baseline-clean-row-button {
    min-height: 60px;
  }

  body.review-page .baseline-clean-row-button {
    padding: 14px 0;
  }

  body.review-page .baseline-clean-label {
    font-size: 0.69rem;
    letter-spacing: 0.1em;
  }

  body.review-page .baseline-clean-body {
    padding-bottom: 34px;
  }

  body.review-page .baseline-clean-body > h2 {
    margin: 8px 0 22px;
    font-size: clamp(31px, 10vw, 48px);
  }

  body.review-page .item {
    padding: 17px;
  }

  body.review-page .review-system-nav {
    grid-template-columns:
      minmax(0, 1fr)
      auto
      minmax(0, 1fr);
    border-radius: 16px;
  }

  body.review-page .review-system-nav > a,
  body.review-page .review-system-nav > span {
    min-height: 58px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

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

@media (max-width: 390px) {
  body.review-page .baseline-clean-label {
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  body.review-page .review-system-nav-previous span:nth-child(2),
  body.review-page .review-system-nav-next span:first-child {
    display: none;
  }
}

/* ==========================================================
   Motion
   ========================================================== */

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.home-page .orbit,
  body.home-page .orbit-inner {
    animation: none;
  }

  body.home-page .reveal {
    opacity: 1;
    transform: none;
  }

  body.systems-directory-page .system-card:hover,
  body.systems-directory-page .system-card:focus-visible {
    transform: none;
  }
}

/* ==========================================================================
   Baseline pathway directory and pathway review
   ========================================================================== */

.pathway-directory-stats,
.pathway-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pathway-directory-stats span,
.pathway-review-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.pathway-directory-stats strong,
.pathway-review-meta strong {
  color: #ffffff;
  font-weight: 700;
}

.pathway-controls {
  grid-template-columns:
    minmax(15rem, 1.5fr)
    minmax(12rem, 1fr)
    minmax(12rem, 1fr);
}

.pathway-results-summary {
  min-height: 1.5rem;
  margin: 1rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

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

.pathway-card,
.pathway-status-card,
.pathway-connected-system-card,
.pathway-next-actions-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );
}

.pathway-card {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  padding: 1.3rem;
}

.pathway-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

.pathway-card .eyebrow {
  margin: 0;
}

.pathway-card h2 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.13;
}

.pathway-card h2 a,
.pathway-flow-step h3 a,
.pathway-connected-system-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pathway-card h2 a:hover,
.pathway-flow-step h3 a:hover,
.pathway-connected-system-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pathway-system-count {
  flex: 0 0 auto;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  white-space: nowrap;
}

.pathway-card-summary {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.62;
}

.pathway-card-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.pathway-system-chip {
  display: inline-flex;
  padding: 0.36rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  line-height: 1.2;
}

.pathway-more-chip {
  color: rgba(255, 255, 255, 0.48);
}

.pathway-card-link,
.pathway-step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 1.15rem;
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.pathway-card-link:hover,
.pathway-step-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pathway-status-card {
  grid-column: 1 / -1;
  padding: 2rem;
}

.pathway-status-card h2 {
  margin-top: 0.5rem;
}

.pathway-error-card {
  border-color: rgba(255, 120, 120, 0.28);
}

.pathway-review-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
}

.pathway-review-breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.pathway-review-summary {
  max-width: 61rem;
}

.pathway-review-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.pathway-review-section + .pathway-review-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pathway-section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.pathway-section-heading h2 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.pathway-section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.pathway-flow {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pathway-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-bottom: 1.2rem;
}

.pathway-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.8rem;
  bottom: -0.1rem;
  left: 1.38rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.pathway-step-marker {
  position: relative;
  z-index: 1;
}

.pathway-step-marker span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #11110f;
  color: #ffffff;
  font-weight: 750;
}

.pathway-step-content {
  padding: 1.1rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.025);
}

.pathway-step-label {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pathway-step-content h3 {
  margin: 0;
  font-size: 1.35rem;
}

.pathway-step-content > p:not(.pathway-step-label) {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.pathway-system-library {
  background: rgba(255, 255, 255, 0.015);
}

.pathway-connected-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pathway-connected-system-card {
  position: relative;
  min-height: 15rem;
  padding: 1.25rem;
}

.pathway-connected-system-order {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  font-weight: 700;
}

.pathway-connected-system-card h3 {
  margin: 0.8rem 2.3rem 0.7rem 0;
  font-size: 1.3rem;
}

.pathway-connected-system-card > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.58;
}

.pathway-next-actions-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.pathway-next-actions-card h2 {
  margin: 0.45rem 0 0.7rem;
}

.pathway-next-actions-card p:last-child {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.64);
}

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

  .pathway-controls {
    grid-template-columns: 1fr 1fr;
  }

  .pathway-controls #pathwaySearch {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .pathway-grid,
  .pathway-connected-system-grid,
  .pathway-controls {
    grid-template-columns: 1fr;
  }

  .pathway-controls #pathwaySearch {
    grid-column: auto;
  }

  .pathway-card {
    min-height: auto;
  }

  .pathway-flow-step {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .pathway-flow-step:not(:last-child)::before {
    left: 1.14rem;
  }

  .pathway-step-marker span {
    width: 2.3rem;
    height: 2.3rem;
  }

  .pathway-next-actions-card {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================================
   Baseline population directory and population review
   ========================================================================== */

.population-directory-stats,
.population-review-meta,
.population-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.population-directory-stats,
.population-review-meta {
  margin-top: 1.5rem;
}

.population-directory-stats span,
.population-review-meta span,
.population-card-counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.population-directory-stats strong,
.population-review-meta strong,
.population-card-counts strong {
  color: #fff;
}

.population-controls {
  grid-template-columns:
    minmax(15rem, 1.5fr)
    minmax(11rem, 1fr)
    minmax(11rem, 1fr)
    minmax(10rem, 0.8fr);
}

.population-results-summary {
  min-height: 1.5rem;
  margin: 1rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.population-grid,
.population-system-grid,
.population-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.population-card,
.population-status-card,
.population-system-card,
.population-pathway-card,
.population-note-card,
.population-next-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );
}

.population-card {
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: 1.25rem;
}

.population-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.population-card-header,
.population-pathway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.population-card .eyebrow,
.population-pathway-card .eyebrow {
  margin: 0;
}

.population-scope-badge,
.population-match-score {
  flex: 0 0 auto;
  padding: 0.35rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.population-card h2,
.population-system-card h3,
.population-pathway-card h3 {
  margin: 0.9rem 0 0.7rem;
}

.population-card h2 a,
.population-system-card h3 a,
.population-pathway-card h3 a {
  color: inherit;
  text-decoration: none;
}

.population-card h2 a:hover,
.population-system-card h3 a:hover,
.population-pathway-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.population-age-line {
  margin: -0.25rem 0 0.7rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.population-card-summary,
.population-system-card > p,
.population-pathway-card > p {
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.58;
}

.population-card-counts {
  margin-top: auto;
  padding-top: 1rem;
}

.population-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 1rem;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.population-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.population-status-card {
  grid-column: 1 / -1;
  padding: 2rem;
}

.population-error-card {
  border-color: rgba(255, 120, 120, 0.28);
}

.population-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.87rem;
}

.population-breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.population-review-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.population-review-section +
.population-review-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.population-pathways-section {
  background: rgba(255, 255, 255, 0.014);
}

.population-section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.population-section-heading h2 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.population-section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
}

.population-system-card,
.population-pathway-card {
  position: relative;
  min-height: 15rem;
  padding: 1.2rem;
}

.population-card-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
}

.population-shared-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.population-shared-systems span {
  padding: 0.35rem 0.48rem;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.population-note-card {
  max-width: 52rem;
  padding: 1.5rem;
}

.population-note-card > p:last-child {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.population-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.population-next-card h2 {
  margin: 0.4rem 0 0;
}

@media (max-width: 1050px) {
  .population-controls {
    grid-template-columns: 1fr 1fr;
  }

  .population-controls #populationSearch {
    grid-column: 1 / -1;
  }

  .population-grid,
  .population-system-grid,
  .population-pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .population-controls,
  .population-grid,
  .population-system-grid,
  .population-pathway-grid {
    grid-template-columns: 1fr;
  }

  .population-controls #populationSearch {
    grid-column: auto;
  }

  .population-card {
    min-height: auto;
  }

  .population-next-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
