/*
 * Project Health, mockup 1: Ask.
 * The question box is the one bold thing: the typed question is set close to headline size.
 * Everything else stays quiet: one left-aligned column, lists split by hairlines inside a few
 * glass panels, and the three lens colours used the same way on every screen.
 */

:root {
  --lens-people: var(--series-2);
  --lens-science: var(--accent);
  --lens-society: var(--violet);
  --pos: var(--status-good);
  --mix: var(--series-4);
  --neg: var(--status-critical);
  /* Amber is too light for small marks on white; darken it with ink for icons and dots. */
  --mix-mark: color-mix(in srgb, var(--series-4) 72%, var(--ink));
  --people-mark: color-mix(in srgb, var(--series-2) 82%, var(--ink));

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
  --question-size: clamp(19px, 2.3vw, 26px);
}

body {
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
  min-width: 0;
}

/* Page-level grids: one column that never grows past the screen. */
.answer,
.learn,
.habits,
.manage,
.search-page,
.home-below,
.learn-col {
  grid-template-columns: minmax(0, 1fr);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

[tabindex='-1']:focus {
  outline: none;
}

mark {
  background: none;
  color: inherit;
  font-weight: var(--weight-strong);
  box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--accent) 24%, transparent);
}

/* ---------- Shared bits ---------- */

.sec-h {
  font-size: var(--text-title);
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sec-p {
  color: var(--ink-2);
  margin-top: 6px;
}

.page-head {
  display: grid;
  gap: 10px;
  padding: clamp(28px, 6vh, 56px) 0 28px;
  max-width: 62ch;
}

.page-h {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: var(--weight-display);
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  font-size: var(--text-lead);
  color: var(--ink-2);
}

.panel-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-heading);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
}

.panel-note {
  color: var(--ink-2);
  font-size: var(--text-control);
  margin-top: 4px;
}

.panel-note a {
  color: var(--accent-strong);
  font-weight: var(--weight-semibold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent-strong);
  color: #fff;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent-strong) 86%, var(--ink));
}

.btn-quiet {
  background: var(--inner);
  color: var(--accent-strong);
  border: 1px solid var(--line-strong);
}

.btn-quiet:hover {
  background: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-strong) 35%, transparent);
  text-underline-offset: 3px;
}

.link-btn:hover {
  text-decoration-color: currentColor;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}

/* Verdict pill: shape (full, half, empty) and words, colour third. */
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  color: var(--ink);
  border: 1px solid transparent;
}

.tier .ti {
  flex: none;
}

.tier-try {
  background: color-mix(in srgb, var(--status-good) 13%, white);
  border-color: color-mix(in srgb, var(--status-good) 30%, transparent);
}

.tier-try .ti {
  color: var(--status-good);
}

.tier-maybe {
  background: color-mix(in srgb, var(--series-4) 17%, white);
  border-color: color-mix(in srgb, var(--series-4) 40%, transparent);
}

.tier-maybe .ti {
  color: var(--mix-mark);
}

.tier-skip {
  background: color-mix(in srgb, var(--status-critical) 9%, white);
  border-color: color-mix(in srgb, var(--status-critical) 26%, transparent);
}

.tier-skip .ti {
  color: var(--status-critical);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.tag-sample {
  background: color-mix(in srgb, var(--status-warning) 20%, white);
  color: var(--caution-ink);
}

.tag-real {
  background: color-mix(in srgb, var(--status-good) 14%, white);
  color: color-mix(in srgb, var(--status-good) 45%, var(--ink));
}

.tag-added {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag-answer {
  background: var(--accent-strong);
  color: #fff;
}

.meter {
  display: inline-block;
  position: relative;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  overflow: hidden;
  vertical-align: middle;
}

.meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--accent);
}

.pbar {
  display: inline-flex;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  gap: 1px;
  vertical-align: middle;
  background: #fff;
}

.pbar > span {
  height: 100%;
}

.pbar .pos {
  background: var(--pos);
}

.pbar .mix {
  background: var(--mix);
}

.pbar .neg {
  background: var(--neg);
}

.pbar-lg {
  width: 100%;
  height: 14px;
  gap: 2px;
}

.pbar-md {
  width: 100%;
  max-width: 240px;
  height: 8px;
}

.effort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.pips {
  display: inline-flex;
  gap: 2px;
}

.pips span {
  width: 6px;
  height: 12px;
  border-radius: 2px;
  border: 1.5px solid var(--ink-2);
}

.pips span.on {
  background: var(--ink-2);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: var(--switcher-h, 0px);
  z-index: 20;
  background: color-mix(in srgb, white 64%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}

.bar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  font-size: 16px;
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.logo-mark circle {
  mix-blend-mode: multiply;
}

.lm-people {
  fill: color-mix(in srgb, var(--series-2) 78%, white);
}

.lm-science {
  fill: color-mix(in srgb, var(--accent) 78%, white);
}

.lm-society {
  fill: color-mix(in srgb, var(--violet) 78%, white);
}

.mini-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.mini-icon {
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--muted);
  pointer-events: none;
}

.mini-icon svg {
  width: 18px;
  height: 18px;
}

.mini-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--inner);
  font-size: var(--text-control);
}

.mini-search input::placeholder {
  color: var(--muted);
}

.mini-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.mini-search .instant {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 460px);
  max-height: min(70vh, 560px);
  overflow: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--wash);
}

.main-nav a[aria-current='page'] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav-search {
  display: none !important;
  width: 40px;
  justify-content: center;
  padding: 0 !important;
}

body[data-route='home'] .mini-search,
body[data-route='search'] .mini-search {
  display: none;
}

/* ---------- The question box ---------- */

.askbox {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.askbox:focus-within {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-pop);
}

.askbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 22px;
}

.askbox-icon {
  flex: none;
  color: var(--accent-strong);
  display: inline-flex;
}

.askbox-icon svg {
  width: 24px;
  height: 24px;
}

.askbox textarea {
  flex: 1 1 0;
  min-width: 0;
  resize: none;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: var(--question-size);
  font-weight: var(--weight-medium);
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--ink);
  field-sizing: content;
  min-height: calc(1.3em + 24px);
  max-height: 7.5em;
  overflow: hidden;
}

.askbox textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, white);
  font-weight: 450;
}

.askbox textarea:focus-visible {
  outline: none;
}

.ask-btn {
  flex: none;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  min-width: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 16px;
  font-weight: var(--weight-semibold);
}

.ask-btn:hover {
  background: color-mix(in srgb, var(--accent-strong) 86%, var(--ink));
}

.ask-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ask-btn-icon {
  display: none;
}

/* Instant results, inside the box */
.instant[hidden] {
  display: none;
}

.instant {
  display: grid;
  gap: 2px;
  padding: 6px 8px 8px;
}

.askbox .instant {
  border-top: 1px solid var(--line);
  margin: 0 2px;
  animation: instant-in 0.16s ease-out;
}

@keyframes instant-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.ig {
  display: grid;
  gap: 2px;
}

.ig + .ig {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.ig-h {
  padding: 10px 12px 2px;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--muted);
}

.ires {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 14px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
}

.ires:hover,
.ires:focus-visible {
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.ires:focus-visible {
  outline-offset: -2px;
}

.ires-name {
  font-weight: var(--weight-semibold);
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.ires-topic .ires-name {
  font-size: var(--text-heading);
}

.ires-sub,
.ires-where {
  grid-column: 1 / -1;
  font-size: var(--text-control);
  color: var(--ink-2);
}

.ires-where {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--text-small);
  color: var(--muted);
}

.instant-empty {
  padding: 14px 12px;
  color: var(--ink-2);
}

.instant-all {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border-top: 1px solid var(--line);
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  color: var(--accent-strong);
  text-decoration: none;
}

.instant-all:hover,
.instant-all:focus-visible {
  background: color-mix(in srgb, var(--accent) 9%, white);
}

/* ---------- Home ---------- */

.hero {
  min-height: calc(100vh - var(--switcher-h, 44px) - var(--topbar-height) - 64px);
  display: grid;
  align-items: start;
  padding: clamp(48px, 13vh, 136px) var(--gutter) 48px;
}

.hero-in {
  width: min(100%, 780px);
  margin-inline: auto;
  display: grid;
  gap: 18px;
  text-align: center;
}

.hero-h {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.04;
  text-wrap: balance;
}

.hero-sub {
  font-size: var(--text-lead);
  color: var(--ink-2);
  margin-bottom: 14px;
  text-wrap: balance;
}

.askbox-hero {
  text-align: left;
}

.askbox-hero .askbox-row {
  min-height: 78px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.chips-label {
  font-size: var(--text-control);
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--inner);
  color: var(--ink-2);
  font-size: var(--text-control);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.chip:hover {
  background: #fff;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.lens-line {
  margin: 18px auto 0;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: var(--text-control);
  line-height: 1.7;
  text-wrap: balance;
}

.lw {
  white-space: nowrap;
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.lw::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 0.02em;
}

.lw-people::before {
  background: var(--lens-people);
}

.lw-science::before {
  background: var(--lens-science);
}

.lw-society::before {
  background: var(--lens-society);
}

.home-below {
  display: grid;
  gap: 48px;
  padding-bottom: 64px;
}

.asking .sec-h,
.browse .sec-h {
  margin-bottom: 14px;
}

.asked {
  padding: 4px 0;
}

.asked-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.6fr) 150px;
  gap: 6px 28px;
  align-items: baseline;
  padding: 18px 24px;
}

.asked-row + .asked-row {
  border-top: 1px solid var(--line);
}

.asked-row:hover {
  background: color-mix(in srgb, white 40%, transparent);
}

.asked-q {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
}

.asked-q::after {
  content: '';
  position: absolute;
  inset: 0;
}

.asked-q:hover {
  color: var(--accent-strong);
}

.asked-q:focus-visible {
  outline: none;
}

.asked-q:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}

.asked-a {
  color: var(--ink-2);
}

.asked-mark {
  justify-self: end;
}

.browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.seg button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: var(--text-control);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

.seg button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}

.area-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, white 48%, transparent);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.area-strip li + li {
  border-left: 1px solid var(--line);
}

.area {
  display: grid;
  gap: 4px;
  align-content: start;
  height: 100%;
  min-height: 112px;
  padding: 14px 16px 12px;
  text-decoration: none;
}

.area:hover {
  background: color-mix(in srgb, white 70%, transparent);
}

.area:hover .area-name {
  color: var(--accent-strong);
}

.area:focus-visible {
  outline-offset: -3px;
}

.area-name {
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.area-plain {
  font-size: var(--text-small);
  color: var(--ink-2);
  line-height: 1.4;
}

.area-n {
  margin-top: auto;
  padding-top: 6px;
  font-size: var(--text-small);
  color: var(--accent-strong);
  font-weight: var(--weight-semibold);
}

/* ---------- Topic: the answer page ---------- */

.answer {
  display: grid;
  gap: 40px;
  padding-bottom: 64px;
}

.answer-head {
  display: grid;
  gap: 12px;
  padding-top: clamp(24px, 5vh, 48px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-control);
}

.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.crumbs a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.answer-q {
  max-width: 20ch;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.04;
  text-wrap: balance;
}

.answer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: var(--text-control);
  color: var(--muted);
}

/* The short answer: the most solid surface on the page. */
.short {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-pop);
  margin-top: -12px;
}

.short-h {
  font-size: var(--text-heading);
  font-weight: var(--weight-strong);
  color: var(--accent-strong);
}

.short-text {
  max-width: 62ch;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  font-weight: var(--weight-medium);
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.short-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 18px;
  gap: 18px 28px;
}

.short-facts li {
  display: grid;
  gap: 8px;
  align-content: start;
}

.sf-label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--muted);
}

.sf-val {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
}

.sf-score b {
  font-size: 22px;
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
}

.sf-score .meter {
  width: 90px;
  margin-left: 4px;
}

.sf-plain {
  font-size: var(--text-control);
  color: var(--ink-2);
}

.whatitis {
  font-size: var(--text-control);
  color: var(--ink-2);
  max-width: 80ch;
}

.whatitis strong {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

/* Lens switcher */
.lenses {
  display: grid;
  gap: 14px;
}

.lens-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border-radius: 20px;
  background: color-mix(in srgb, white 80%, transparent);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--switcher-h, 0px) + var(--topbar-height) + 8px);
  z-index: 5;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.lens-tab {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 60px;
  padding: 10px 16px 12px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  text-align: left;
  color: var(--ink-2);
}

.lens-tab:hover {
  background: color-mix(in srgb, white 60%, transparent);
  color: var(--ink);
}

.lens-tab[aria-selected='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}

.lens-tab::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.lt-people::after {
  --c: var(--lens-people);
}

.lt-science::after {
  --c: var(--lens-science);
}

.lt-society::after {
  --c: var(--lens-society);
}

.lens-tab[aria-selected='true']::after {
  background: var(--c);
}

.lt-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.lt-people .dot {
  color: var(--lens-people);
}

.lt-science .dot {
  color: var(--lens-science);
}

.lt-society .dot {
  color: var(--lens-society);
}

.lt-count {
  padding-left: 16px;
  font-size: var(--text-small);
  color: var(--muted);
}

.lens-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--c);
}

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

.lens-panel:focus-visible {
  outline-offset: 3px;
}

.lp-people {
  --c: var(--lens-people);
}

.lp-science {
  --c: var(--lens-science);
}

.lp-society {
  --c: var(--lens-society);
}

/* People */
.lens-summary {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: var(--text-control);
  font-weight: var(--weight-medium);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lg-pos .dot {
  color: var(--pos);
}

.lg-mix .dot {
  color: var(--mix-mark);
}

.lg-neg .dot {
  color: var(--neg);
}

.lg-n {
  color: var(--muted);
  font-weight: 400;
}

.claims {
  display: grid;
}

.claim {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  --sc: var(--pos);
}

.stance-mixed {
  --sc: var(--mix);
}

.stance-negative {
  --sc: var(--neg);
}

.claim-share {
  display: grid;
  align-content: start;
  gap: 2px;
}

.claim-pct {
  font-size: 24px;
  font-weight: var(--weight-strong);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.claim-say {
  font-size: var(--text-small);
  color: var(--muted);
}

.claim-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--wash);
  overflow: hidden;
}

.claim-bar span {
  display: block;
  height: 100%;
  background: var(--sc);
}

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

.claim-text {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

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

.ct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  background: color-mix(in srgb, white 70%, transparent);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.ct-stance {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

.ct-stance .dot {
  color: var(--sc);
}

.stance-mixed .ct-stance .dot {
  color: var(--mix-mark);
}

.ct-noproof {
  border-style: dashed;
  border-color: var(--line-strong);
}

.ct-tone-strong {
  border-color: color-mix(in srgb, var(--series-4) 50%, transparent);
}

.ct-tone-extreme {
  border-color: color-mix(in srgb, var(--status-critical) 40%, transparent);
  color: color-mix(in srgb, var(--status-critical) 62%, var(--ink));
}

.ct-noise {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
  font-weight: var(--weight-semibold);
}

.claim-where {
  font-size: var(--text-small);
  color: var(--muted);
}

.noise-box {
  margin-top: 8px;
  padding: 18px 20px 4px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, var(--wash) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--line-strong);
}

.noise-box .panel-h {
  color: var(--ink-2);
}

.noise-box .claims {
  margin-top: 8px;
}

.claim.is-noise .claim-text {
  color: var(--ink-2);
  font-weight: 400;
}

.claim.is-noise .claim-pct {
  color: var(--ink-2);
}

/* Science */
.verdict {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
}

.verdict-h {
  font-size: var(--text-title);
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.verdict-p {
  max-width: 70ch;
  color: var(--ink-2);
}

.studies {
  display: grid;
}

.study {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.study-level {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ladder {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.ladder span {
  width: 8px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 16%, white);
}

.ladder span:nth-child(1) { height: 6px; }
.ladder span:nth-child(2) { height: 9px; }
.ladder span:nth-child(3) { height: 12px; }
.ladder span:nth-child(4) { height: 14px; }
.ladder span:nth-child(5) { height: 17px; }
.ladder span:nth-child(6) { height: 20px; }
.ladder span:nth-child(7) { height: 22px; }

.ladder span.on {
  background: var(--accent);
}

.study-kind {
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
}

.study-main {
  display: grid;
  gap: 8px;
}

.study-title {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.study-finding {
  color: var(--ink-2);
  max-width: 72ch;
}

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

.study-facts > div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, white 66%, transparent);
  border: 1px solid var(--line);
  font-size: var(--text-small);
}

.study-facts dt {
  color: var(--muted);
}

.study-facts dd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.study-facts .is-caution {
  background: color-mix(in srgb, var(--status-warning) 16%, white);
  border-color: color-mix(in srgb, var(--status-warning) 50%, transparent);
}

.study-facts .is-caution dd,
.study-facts .is-caution dt {
  color: var(--caution-ink);
}

.study-tags:empty {
  display: none;
}

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

/* Society */
.panel-note-top {
  font-size: var(--text-body);
}

.beliefs {
  display: grid;
  gap: 12px;
}

.belief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: color-mix(in srgb, white 60%, transparent);
}

.belief-said {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--violet) 8%, white);
  border-right: 1px solid color-mix(in srgb, var(--violet) 18%, transparent);
}

.belief-text {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--violet) 70%, var(--ink));
}

.belief-origin {
  font-size: var(--text-control);
  color: var(--ink-2);
}

.belief-origin span {
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.belief-facts {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 20px;
}

.facts-label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--accent-strong);
}

/* Voices, books, related */
.voices .sec-h,
.books .sec-h,
.related .sec-h {
  margin-bottom: 14px;
}

.voice {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 24px;
}

.voice + .voice {
  border-top: 1px solid var(--line);
}

.voice-name {
  font-weight: var(--weight-semibold);
}

.voice-kind {
  font-size: var(--text-small);
  color: var(--muted);
}

.voice-says {
  margin: 0;
  font-size: var(--text-body);
  color: var(--ink);
}

.match {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
}

.match .dot {
  transform: translateY(-1px);
}

.match-good .dot {
  color: var(--pos);
}

.match-mixed .dot {
  color: var(--mix-mark);
}

.match-bad .dot {
  color: var(--neg);
}

.book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}

.book {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 24px 4px 0;
}

.book + .book {
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.book-title cite {
  font-style: normal;
  font-size: var(--text-heading);
  font-weight: var(--weight-strong);
  letter-spacing: -0.012em;
}

.book-by {
  font-size: var(--text-small);
  color: var(--muted);
}

.book-teaches {
  margin-top: 6px;
  color: var(--ink-2);
}

.related-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 24px;
}

.related-list li + li {
  border-top: 1px solid var(--line);
}

.related-list li:hover {
  background: color-mix(in srgb, white 40%, transparent);
}

.related-q {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.related-q::after {
  content: '';
  position: absolute;
  inset: 0;
}

.related-q:hover {
  color: var(--accent-strong);
}

.related-q:focus-visible {
  outline: none;
}

.related-q:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}

.related-line {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: var(--text-control);
}

.followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 24px;
  max-width: 640px;
}

.followup label {
  font-weight: var(--weight-semibold);
}

.followup-row {
  display: flex;
  gap: 8px;
}

.followup input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--inner);
  font-size: var(--text-body);
}

.followup input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.followup .btn {
  min-height: 48px;
}

/* ---------- Search page ---------- */

.search-page {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vh, 44px) 0 64px;
}

.search-h {
  font-size: var(--text-title);
  letter-spacing: -0.02em;
}

.askbox-page {
  max-width: 820px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 4px 0 6px;
}

.fgroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.flabel {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  margin-right: 2px;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--inner);
  font-size: var(--text-control);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

.fchip:hover {
  background: #fff;
  color: var(--ink);
}

.fchip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fchip .ti {
  color: var(--muted);
}

.fchip[data-v='try'] .ti {
  color: var(--status-good);
}

.fchip[data-v='maybe'] .ti {
  color: var(--mix-mark);
}

.fchip[data-v='skip'] .ti {
  color: var(--status-critical);
}

.fchip[aria-pressed='true'] .ti {
  color: #fff;
}

.fselect {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--inner);
  font: inherit;
  font-size: var(--text-control);
  color: var(--ink);
  max-width: 100%;
}

.fclear[hidden] {
  display: none;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.results-count {
  font-size: var(--text-control);
  color: var(--ink-2);
  margin-bottom: 10px;
  font-weight: var(--weight-medium);
}

.result {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 24px;
}

.result + .result {
  border-top: 1px solid var(--line);
}

.result:hover {
  background: color-mix(in srgb, white 40%, transparent);
}

.result:first-child {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.result:last-child {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

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

.result-name {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.result-link {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
}

.result-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.result-link:hover {
  color: var(--accent-strong);
}

.result-link:focus-visible {
  outline: none;
}

.result-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}

.result-q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-medium);
}

.result-line {
  color: var(--ink-2);
  max-width: 72ch;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: var(--text-small);
  color: var(--muted);
}

.result-meta .pips span {
  height: 10px;
  width: 5px;
  border-color: var(--muted);
}

.result-meta .pips span.on {
  background: var(--muted);
}

.minilens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 600px;
  margin: 6px 0 2px;
}

.ml {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 8px 10px 2px 0;
  border-top: 2px solid var(--c);
}

.ml-people {
  --c: var(--lens-people);
}

.ml-science {
  --c: var(--lens-science);
}

.ml-society {
  --c: var(--lens-society);
}

.ml dt {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
}

.ml dd {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.ml .pbar,
.ml .meter {
  width: 100%;
  max-width: 120px;
}

.ml-val {
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

.ml-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.2;
}

.ml-none {
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.ml-dots {
  display: inline-flex;
  gap: 3px;
  height: 6px;
}

.ml-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.results.is-empty {
  padding: 8px 0;
}

.results-empty {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--ink-2);
}

.re-h {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.re-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.results-aside {
  position: sticky;
  top: calc(var(--switcher-h, 0px) + var(--topbar-height) + 20px);
  display: grid;
  gap: 8px;
  padding-top: 30px;
}

.aside-h {
  font-size: var(--text-heading);
  font-weight: var(--weight-strong);
}

.aside-h-2 {
  margin-top: 20px;
}

.aside-list {
  display: grid;
}

.aside-list a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.aside-list a:hover .al-title {
  color: var(--accent-strong);
  text-decoration: underline;
}

.al-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-control);
  line-height: 1.35;
}

.al-where {
  font-size: var(--text-small);
  color: var(--muted);
}

.aside-p {
  font-size: var(--text-control);
  color: var(--ink-2);
}

/* ---------- Learn ---------- */

.learn {
  display: grid;
  gap: 44px;
  padding-bottom: 64px;
}

.learn .page-head {
  padding-bottom: 0;
}

.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.learn-col {
  display: grid;
  gap: 36px;
}

.qa {
  padding: 24px 24px 12px;
}

.qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.qa-item {
  border-top: 1px solid var(--line);
}

.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-ask {
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.qa-plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--inner);
}

.qa-plus::before,
.qa-plus::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.18s ease;
}

.qa-plus::after {
  transform: rotate(90deg);
}

.qa-item[open] .qa-plus::after {
  transform: rotate(0deg);
}

.qa-item[open] .qa-plus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.qa-item[open] .qa-plus::before,
.qa-item[open] .qa-plus::after {
  background: #fff;
}

.qa-why {
  padding: 0 44px 18px 4px;
  color: var(--ink-2);
  font-size: var(--text-body);
  max-width: 60ch;
}

.levels .sec-p {
  margin-bottom: 14px;
}

.ladder-list {
  display: grid;
  counter-reset: none;
}

.lv {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
}

.lv-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: var(--text-control);
  font-weight: var(--weight-strong);
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.lv:nth-child(-n + 2) .lv-rank {
  background: var(--accent-strong);
  color: #fff;
}

.lv-short {
  font-weight: var(--weight-semibold);
}

.lv-name {
  font-size: var(--text-small);
  color: var(--muted);
}

.lv-plain {
  margin-top: 4px;
  font-size: var(--text-control);
  color: var(--ink-2);
}

.lv-weight {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-size: var(--text-small);
  color: var(--ink-2);
  white-space: nowrap;
  padding-top: 4px;
}

.lv-dots {
  display: inline-flex;
  gap: 3px;
}

.lv-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, white);
}

.lv-dots span.on {
  background: var(--accent);
  border-color: var(--accent);
}

.traps .sec-h {
  margin-bottom: 14px;
}

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

.trap {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.trap:nth-child(-n + 2) {
  border-top: 0;
}

.trap:nth-child(even) {
  border-left: 1px solid var(--line);
}

.trap-said {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.tag-trap {
  background: color-mix(in srgb, var(--status-critical) 10%, white);
  color: color-mix(in srgb, var(--status-critical) 70%, var(--ink));
}

.trap-real {
  color: var(--ink-2);
}

.trap-real strong {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

.pvs {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 70ch;
}

.pvs {
  padding: 0 4px;
}

.pvs-p {
  font-size: var(--text-body);
  color: var(--ink-2);
}

/* ---------- Habits ---------- */

.habits {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

.habits-head {
  padding-bottom: 4px;
}

.season {
  display: grid;
  gap: 10px;
  padding: 22px 24px 20px;
}

.season-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 10 - 2px), rgba(255, 255, 255, 0.9) calc(100% / 10 - 2px) calc(100% / 10)),
    color-mix(in srgb, var(--series-3) 14%, white);
  overflow: visible;
}

.st-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--series-3);
}

.st-mark {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  border-radius: 2px;
}

.season-labels {
  position: relative;
  height: 18px;
  font-size: var(--text-small);
  color: var(--ink-2);
}

.season-labels span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.sl-today {
  transform: translateX(-50%);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.sl-66 {
  transform: translateX(-100%);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.season-note {
  max-width: 80ch;
  color: var(--ink);
}

.season-note .tag {
  margin-right: 6px;
  vertical-align: 1px;
}

.season-src {
  font-size: var(--text-small);
  color: var(--muted);
}

.habits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 20px;
  align-items: start;
}

.tracker-wrap {
  padding: 20px 0 16px;
  min-width: 0;
}

.tracker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 24px 10px;
}

.tracker-scroll {
  position: relative; /* clips the hidden labels inside the table too */
  overflow-x: auto;
  padding: 0 24px 6px 0;
}

.tracker-scroll:focus-visible {
  outline-offset: -2px;
}

.tracker {
  border-collapse: separate;
  border-spacing: 0;
}

.tracker th,
.tracker td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.tracker thead th {
  height: 44px;
  vertical-align: bottom;
  padding-bottom: 6px;
  font-size: 11.5px;
  font-weight: var(--weight-medium);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tracker .h-name {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 196px;
  min-width: 196px;
  padding: 8px 14px 8px 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 1px 0 0 var(--line);
}

.tracker thead .h-name {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
}

.tracker tbody .h-name {
  border-top: 1px solid var(--line);
}

.hn {
  display: block;
  font-weight: var(--weight-semibold);
  font-size: var(--text-control);
  color: var(--ink);
  line-height: 1.3;
}

.hn-from {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-small);
  color: var(--muted);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.hn-from:hover {
  color: var(--accent-strong);
}

.tracker td.d {
  width: 25px;
  min-width: 25px;
  height: 52px;
  border-top: 1px solid var(--line);
}

.tracker th.d {
  width: 25px;
  min-width: 25px;
}

.tracker .wk {
  box-shadow: inset 1px 0 0 var(--line-strong);
}

.cell {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  vertical-align: middle;
}

.cell.kept {
  background: var(--series-3);
}

.cell.missed {
  border: 1.5px solid var(--line-strong);
  background: color-mix(in srgb, white 50%, transparent);
}

.tracker .d-today {
  width: 52px;
  min-width: 52px;
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.tracker thead .d-today {
  border-radius: 12px 12px 0 0;
  color: var(--accent-strong);
  font-weight: var(--weight-semibold);
}

.today-label {
  display: block;
  font-size: 11px;
  font-weight: var(--weight-strong);
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.tick input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
}

.tick-box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--accent-strong);
  background: #fff;
  color: transparent;
  transition: background 0.12s ease;
}

.tick input:checked + .tick-box {
  background: var(--series-3);
  border-color: color-mix(in srgb, var(--series-3) 70%, var(--ink));
  color: #fff;
}

.tick input:focus-visible + .tick-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tick:hover .tick-box {
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.tick:hover input:checked + .tick-box {
  background: var(--series-3);
}

.tracker .h-pct {
  min-width: 56px;
  padding: 0 0 0 10px;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  text-align: right;
}

.tracker tbody .h-pct {
  border-top: 1px solid var(--line);
}

.tracker-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 24px 0;
  font-size: var(--text-small);
  color: var(--ink-2);
}

.tracker-key .cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-left: 6px;
}

.tracker-key .cell:first-child {
  margin-left: 0;
}

.key-note {
  margin-left: 12px;
  color: var(--muted);
}

.score {
  display: grid;
  gap: 4px;
  padding: 22px 22px 20px;
}

.score-big {
  font-size: 56px;
  font-weight: var(--weight-display);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.score-sub {
  font-size: var(--text-control);
  color: var(--ink-2);
}

.rules {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-control);
  color: var(--ink-2);
}

.rules li {
  padding-left: 16px;
  position: relative;
}

.rules li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--series-3);
}

.company {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}

.teams,
.board,
.popular {
  padding: 20px 22px;
  display: grid;
  gap: 10px;
}

.team-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.tm-rank {
  font-size: var(--text-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tm-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-control);
}

.tm-people {
  margin-left: 8px;
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--muted);
}

.tm-bar {
  grid-column: 2;
  grid-row: 2;
  height: 6px;
  border-radius: 999px;
  background: var(--wash);
  overflow: hidden;
}

.tm-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.tm-score {
  grid-row: 1 / 3;
  grid-column: 3;
  font-weight: var(--weight-semibold);
  font-size: var(--text-control);
}

.lb {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-control);
}

.lb th,
.lb td {
  padding: 9px 6px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.lb thead th {
  border-top: 0;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--muted);
}

.lb .num {
  text-align: right;
}

.lb tbody th {
  font-weight: var(--weight-semibold);
}

.lb .rank {
  color: var(--muted);
  width: 24px;
}

.lb tr.is-me td,
.lb tr.is-me th {
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.lb tr.is-me th {
  color: var(--accent-strong);
}

.score-cell {
  white-space: nowrap;
}

.lb-bar {
  display: inline-block;
  width: 44px;
  height: 5px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--wash);
  overflow: hidden;
  vertical-align: middle;
}

.lb-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.pop-list li {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pop {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  min-height: 24px;
}

.pop:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* ---------- Manage ---------- */

.manage {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

.manage .page-head {
  padding-bottom: 0;
}

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

.stat {
  display: grid;
  gap: 2px;
  padding: 14px 24px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat dt {
  font-size: var(--text-small);
  color: var(--ink-2);
  font-weight: var(--weight-medium);
}

.stat dd {
  font-size: var(--text-stat);
  font-weight: var(--weight-strong);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat:last-child dd {
  color: var(--accent-strong);
}

.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}

.queue,
.editor {
  padding: 22px 24px;
}

.queue-head,
.editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.queue-n {
  font-size: var(--text-small);
  color: var(--muted);
}

.qi {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.qi-item {
  font-weight: var(--weight-semibold);
  font-size: var(--text-control);
  line-height: 1.4;
}

.qi-topic {
  font-size: var(--text-small);
  color: var(--muted);
}

.qi.is-done .qi-item {
  color: var(--muted);
  text-decoration: line-through;
}

.qi .btn[aria-pressed='true'] {
  background: color-mix(in srgb, var(--status-good) 14%, white);
  color: color-mix(in srgb, var(--status-good) 40%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--status-good) 35%, transparent);
}

.editor-head .sec-h {
  font-size: 20px;
}

.edit-form {
  display: grid;
  gap: 8px;
}

.ef {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.ef legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-size: var(--text-heading);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
}

.ef-label,
.ef-field label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
}

.ef-text,
.ef-field input[type='text'],
.ef-field input[type='number'],
.ef-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: var(--text-body);
  color: var(--ink);
}

.ef-text {
  resize: vertical;
  line-height: 1.5;
}

.ef-text:focus-visible,
.ef-field input:focus-visible,
.ef-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.ef-hint {
  font-size: var(--text-small);
  color: var(--muted);
}

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

.ef-field {
  display: grid;
  gap: 5px;
  align-content: start;
}

.ef-wide {
  grid-column: 1 / -1;
}

.ef-check {
  grid-column: 1 / -1;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: var(--text-control) !important;
  color: var(--ink) !important;
  font-weight: var(--weight-medium) !important;
  cursor: pointer;
}

.checkline input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-strong);
}

.ef-error {
  font-size: var(--text-control);
  color: color-mix(in srgb, var(--status-critical) 75%, var(--ink));
  font-weight: var(--weight-semibold);
}

.ef .btn-quiet {
  justify-self: start;
}

.draft-studies {
  display: grid;
  margin-top: 4px;
}

.ds,
.ds-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line-strong);
  font-size: var(--text-control);
}

.ds-empty {
  color: var(--muted);
  display: block;
}

.ds-title {
  font-weight: var(--weight-semibold);
}

.ds-meta {
  grid-column: 1;
  font-size: var(--text-small);
  color: var(--ink-2);
}

.ds .link-btn {
  grid-column: 2;
  grid-row: 1 / 3;
}

.tone-list {
  display: grid;
}

.tone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.tone-claim {
  font-size: var(--text-control);
  font-weight: var(--weight-medium);
}

.tone-proof {
  display: block;
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.tone-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.tone-opt {
  position: relative;
}

.tone-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.tone-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

.tone-opt input:checked + span {
  background: #fff;
  color: var(--ink);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}

.tone-opt input[value='extreme']:checked + span {
  color: color-mix(in srgb, var(--status-critical) 70%, var(--ink));
}

.tone-opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.tone-noise {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
}

.tone-noise[hidden] {
  display: none;
}

.ef-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ef-saved {
  flex-basis: 100%;
  font-size: var(--text-control);
  font-weight: var(--weight-semibold);
  color: color-mix(in srgb, var(--status-good) 45%, var(--ink));
}

.ef-saved:empty {
  display: none;
}

/* ---------- Drawer ---------- */

.drawer {
  padding: 0;
  border: 0;
  margin: var(--switcher-h, 0px) 0 0 auto;
  width: min(480px, 100vw);
  max-width: none;
  height: calc(100dvh - var(--switcher-h, 0px));
  max-height: none;
  background: transparent;
  color: var(--ink);
}

.drawer::backdrop {
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.drawer[open] {
  animation: drawer-in 0.2s ease-out;
}

@keyframes drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.drawer-in {
  height: 100%;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 28px 32px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-left: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-pop);
}

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

.drawer-area {
  font-size: var(--text-control);
  color: var(--muted);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--inner);
  color: var(--ink-2);
}

.icon-btn:hover {
  background: #fff;
  color: var(--ink);
}

.drawer-h {
  font-size: 28px;
  font-weight: var(--weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.drawer-line {
  font-size: var(--text-lead);
  color: var(--ink-2);
}

.drawer-verdict {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--wash);
}

.drawer-verdict p {
  font-size: var(--text-control);
  color: var(--ink-2);
}

.drawer-facts {
  display: grid;
}

.df {
  display: grid;
  gap: 6px;
  padding: 14px 0 14px 14px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.df-people {
  border-left-color: var(--lens-people);
}

.df-science {
  border-left-color: var(--lens-science);
}

.df-society {
  border-left-color: var(--lens-society);
}

.df dt {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
}

.df dd {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.df-val b {
  font-size: 24px;
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
}

.df .meter {
  width: 100%;
  max-width: 240px;
  height: 8px;
}

.df-sub {
  font-size: var(--text-control);
  color: var(--ink-2);
}

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

.df-goals a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-size: var(--text-control);
  text-decoration: none;
  color: var(--ink);
}

.df-goals a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.drawer-coming {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  font-size: var(--text-control);
  color: var(--ink-2);
}

.drawer .btn-quiet {
  justify-self: start;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, white 40%, transparent);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0 22px;
  font-size: var(--text-small);
}

.sample-line {
  color: var(--caution-ink);
}

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

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
  .area-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .area-strip li:nth-child(3n + 1) {
    border-left: 0;
  }

  .area-strip li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

  .board {
    grid-column: 1 / -1;
    grid-row: 1;
  }

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

  .voice .match {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .results-layout,
  .learn-grid,
  .habits-grid,
  .manage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-aside {
    position: static;
    padding-top: 0;
  }

  .score {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: 18px;
  }

  .score .sec-h,
  .score .rules {
    grid-column: 1 / -1;
  }

  .score-big {
    grid-row: 2;
  }

  .score-sub {
    grid-row: 2;
    padding-bottom: 6px;
  }

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

  .asked-a {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .asked-mark {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 56px;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .bar {
    gap: 8px;
  }

  .mini-search {
    display: none;
  }

  .nav-search {
    display: inline-flex !important;
  }

  body[data-route='home'] .nav-search,
  body[data-route='search'] .nav-search {
    display: none !important;
  }

  .main-nav a {
    padding: 0 10px;
  }

  .lens-tabs {
    top: calc(var(--switcher-h, 0px) + 6px);
  }

  .results-aside {
    position: static;
  }

  .short-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .study {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .study-level {
    grid-auto-flow: column;
    justify-content: start;
    align-items: end;
    gap: 10px;
  }

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

  .belief-said {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--violet) 18%, transparent);
  }

  .voice {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 18px;
  }

  .voice .match {
    grid-column: auto;
  }

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

  .book,
  .book + .book {
    padding: 14px 0;
    border-left: 0;
  }

  .book + .book {
    border-top: 1px solid var(--line-strong);
  }

  .related-list li,
  .asked-row,
  .result {
    padding: 16px 18px;
  }

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

  .trap:nth-child(even) {
    border-left: 0;
  }

  .trap:nth-child(2) {
    border-top: 1px solid var(--line);
  }

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

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .tone-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tone-seg {
    justify-self: start;
  }

  .tone-opt span {
    min-height: 40px;
  }

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

  .area-strip li:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .area-strip li:nth-child(-n + 2) {
    border-top: 0;
  }

  .area-strip li:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .drawer {
    margin: auto 0 0;
    width: 100vw;
    height: auto;
    max-height: calc(100dvh - var(--switcher-h, 0px) - 24px);
  }

  .drawer-in {
    border-left: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: calc(100dvh - var(--switcher-h, 0px) - 24px);
    padding: 16px 20px 28px;
  }

  @keyframes drawer-in {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }
}

@media (max-width: 560px) {
  :root {
    --question-size: 18px;
  }

  .askbox-row {
    padding: 8px 8px 8px 16px;
    gap: 10px;
  }

  .askbox-icon svg {
    width: 20px;
    height: 20px;
  }

  .askbox textarea {
    padding: 10px 0;
    min-height: calc(2.6em + 20px);
  }

  .ask-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 14px;
  }

  .ask-btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ask-btn-icon {
    display: inline-flex;
  }

  .askbox-hero .askbox-row {
    min-height: 0;
  }

  .hero {
    padding-top: 40px;
    min-height: 0;
  }

  .hero-in {
    gap: 14px;
  }

  .chips {
    justify-content: flex-start;
  }

  .chips-label {
    flex-basis: 100%;
    text-align: left;
  }

  .lens-line {
    text-align: left;
    margin-left: 0;
  }

  .hero-in {
    text-align: left;
  }

  .lens-tab {
    padding: 10px 10px 12px;
  }

  .lens-tab::after {
    left: 10px;
    right: 10px;
  }

  .lt-name {
    font-size: var(--text-control);
    align-items: flex-start;
    gap: 6px;
    line-height: 1.25;
  }

  .lt-name .dot {
    margin-top: 4px;
  }

  .lt-count {
    padding-left: 14px;
  }

  .minilens {
    gap: 10px;
  }

  .area {
    min-height: 0;
  }

  .area-plain {
    display: none;
  }

  .tracker .h-name {
    width: 136px;
    min-width: 136px;
    padding-left: 16px;
  }

  .hn-from {
    display: none;
  }

  .tracker-head,
  .tracker-key {
    padding-left: 16px;
    padding-right: 16px;
  }

  .season,
  .qa,
  .queue,
  .editor,
  .teams,
  .board,
  .popular {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lb .rank {
    display: none;
  }

  .lb th:first-child {
    display: none;
  }

  .stat {
    padding: 12px 16px;
  }

  .stat dd {
    font-size: 26px;
  }

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

  .lv-weight {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .qa-why {
    padding-right: 4px;
  }

  .claim {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .claim-share {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 8px;
  }

  .claim-pct {
    font-size: 20px;
  }

  .claim-bar {
    width: 64px;
    margin-top: 0;
  }

  .footer-in {
    padding-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 15px;
    gap: 7px;
  }

  .logo-mark {
    width: 22px;
  }

  .main-nav a {
    padding: 0 7px;
    font-size: 13px;
  }

  .nav-search {
    width: 36px !important;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 14px;
    gap: 6px;
  }

  .main-nav a {
    padding: 0 6px;
  }
}
