:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #151626;
  --muted: #565969;
  --blue: #353bb7;
  --deep: #282d96;
  --line: #d9dae2;
  --pale: #f6f6fa;
  --serif: Baskerville, 'Baskerville Old Face', 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
a,
button,
input,
select {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
}
button {
  background: white;
  border: 1px solid var(--line);
}
button:disabled {
  cursor: default;
}
svg {
  display: block;
}
.icon,
.watch-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.wrap {
  width: min(100% - clamp(40px, 7.3vw, 116px), 1430px);
  margin-inline: auto;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 30;
  padding: 12px;
  background: white;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}
button,
a,
select {
  touch-action: manipulation;
}
main:focus {
  outline: none;
}
.masthead {
  border-bottom: 1px solid #dddded;
  background: #fff;
}
.masthead-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.brand img {
  width: 39px;
  height: 39px;
}
.masthead nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.55vw, 40px);
  font-size: 1rem;
  font-weight: 500;
}
.masthead nav > a {
  height: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
}
.masthead nav > a:hover,
.masthead nav > a[aria-current='page'] {
  color: var(--blue);
}
.masthead nav > a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.masthead nav .watch-nav {
  margin-left: 6px;
}
.watch-nav::before {
  content: '';
  width: 1px;
  height: 22px;
  background: var(--line);
  position: absolute;
  left: clamp(-25px, -1.8vw, -12px);
}
#watch-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: #eeeffb;
  border-radius: 3px;
  padding: 2px 5px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f5f5fd;
  background-image:
    linear-gradient(#dadcf34d 1px, transparent 1px),
    linear-gradient(90deg, #dadcf34d 1px, transparent 1px),
    linear-gradient(#d3d6f33b 1px, transparent 1px),
    linear-gradient(90deg, #d3d6f33b 1px, transparent 1px);
  background-size:
    15px 15px,
    15px 15px,
    75px 75px,
    75px 75px;
  border-bottom: 1px solid #dbdcef;
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(335px, 25.6vw, 405px);
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 32px 0 34px;
  width: 50%;
}
.hero h1 {
  font-size: clamp(4rem, 5.55vw, 5.8rem);
  line-height: 0.91;
  font-weight: 600;
  letter-spacing: -0.055em;
  color: #141529;
}
.hero-copy p {
  margin: 16px 0 20px;
  max-width: 555px;
  font: 400 clamp(1.18rem, 1.6vw, 1.5rem)/1.21 var(--serif);
  color: #373949;
}
.control {
  min-height: 39px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  background: white;
  border: 1px solid #b1b2c1;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
}
.control:hover,
.chip:hover,
.save-card:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f5f5ff;
}
.hero .control {
  background: #ffffffa6;
  border-color: #84859b;
}
.control .icon {
  width: 16px;
  height: 16px;
}
.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: -3%;
  width: 60%;
  background: url('assets/hero.webp') center center / auto 97% no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 92%, transparent);
}
.hero-caption {
  position: absolute;
  right: 0;
  bottom: 18px;
  font-family: var(--mono);
  font-size: 0.765rem;
  letter-spacing: 0.015em;
  color: #49496c;
}
.cross {
  position: absolute;
  width: 13px;
  height: 13px;
  color: #8284bd;
  opacity: 0.7;
}
.cross::before,
.cross::after {
  content: '';
  background: currentColor;
  position: absolute;
}
.cross::before {
  width: 100%;
  height: 1px;
  top: 6px;
}
.cross::after {
  height: 100%;
  width: 1px;
  left: 6px;
}
.cross.nw {
  top: 24px;
  left: -2%;
}
.cross.ne {
  top: 26px;
  right: 0;
}
.cross.sw {
  bottom: 25px;
  left: 44%;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.04fr) minmax(265px, 0.96fr);
  gap: clamp(23px, 2.2vw, 37px);
  align-items: start;
  padding-block: 35px 60px;
}
.section-title {
  font-size: clamp(2.05rem, 2.85vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 19px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.chip,
.select-wrap select {
  font: 500 0.875rem/1.15 var(--sans);
  border: 1px solid #c8c9d4;
  background: white;
  border-radius: 5px;
  min-height: 34px;
  padding: 6px 13px;
}
.chip[aria-pressed='true'],
.chip[aria-pressed='true']:hover,
.chip[aria-current='page'] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.feed-controls a.chip {
  display: inline-flex;
  align-items: center;
}
.select-wrap {
  display: inline-flex;
  position: relative;
  max-width: 100%;
  align-items: center;
}
.select-wrap select {
  max-width: 100%;
  color: var(--ink);
  appearance: none;
  padding-right: 32px;
}
.select-wrap .icon {
  position: absolute;
  right: 9px;
  pointer-events: none;
  height: 15px;
  width: 15px;
}
.dashboard .select-wrap select {
  width: 127px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.problem-card {
  border: 1px solid #d0d1dc;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.problem-card:hover {
  border-color: #9b9dc5;
  box-shadow: 0 3px 10px #1e204109;
}
.plate {
  border-radius: 4px;
  overflow: hidden;
  display: block;
  margin: 7px 7px 0;
  aspect-ratio: 2.95;
  background: #f2f3fb;
}
.plate > svg,
.detail-plate > svg {
  height: 100%;
  width: 100%;
}
.save-card {
  width: 29px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #bbbbca;
  border-radius: 5px;
  position: absolute;
  right: 14px;
  top: 14px;
  background: #fffffff0;
}
.save-card .icon {
  width: 16px;
  height: 16px;
}
.save-card[aria-pressed='true'] {
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
}
.save-card[aria-pressed='true'] svg {
  fill: #d8d9ff;
}
.card-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 17px 15px;
}
.field,
.micro {
  font-family: var(--mono);
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.45;
}
.field {
  color: #4149aa;
}
.problem-card[data-tone='p-vs-np'] .field,
.problem-card[data-tone='goldbach'] .field {
  color: #8f5a23;
}
.problem-card[data-tone='navier-stokes'] .field,
.problem-card[data-tone='poincare'] .field {
  color: #267669;
}
.card-text h3 {
  margin: 5px 0 6px;
  font-size: clamp(1.55rem, 1.9vw, 2rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.card-text h3 a:hover {
  color: var(--blue);
}
.card-text p {
  font-size: 1rem;
  line-height: 1.45;
  color: #545665;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 17px;
}
.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font: 500 0.81rem/1.35 var(--sans);
  border: 1px solid #d2d4de;
  padding: 2px 8px;
  border-radius: 4px;
  background: white;
  white-space: nowrap;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5567c0;
}
.status.under-review i {
  background: #ac721c;
}
.status.solved i {
  background: #28775b;
}
.year {
  font: 0.77rem var(--mono);
  color: #636571;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.year::before {
  content: '';
  width: 1px;
  height: 13px;
  background: var(--line);
}
.more-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.rail {
  border-left: 1px solid var(--line);
  padding-left: clamp(22px, 2.1vw, 34px);
}
.rail h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.75rem, 2.25vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.rail h2 .icon {
  width: 27px;
  height: 27px;
  color: var(--blue);
}
.updates {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  border-top: 1px solid #adaebd;
}
.updates li {
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--line);
}
.date {
  font: 500 0.76rem/1.4 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #545665;
}
.update-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.17;
  margin: 5px 0 5px;
}
.update-title:hover,
.source-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.byline {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #686a78;
}
.text-link,
.source-link {
  color: var(--blue);
}
.text-link {
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.source-link {
  font-size: 0.89rem;
}
.footer {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-block: 22px 30px;
  color: var(--muted);
  font-size: 0.825rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 1.2rem var(--serif);
  color: var(--ink);
}
.footer > a:last-child {
  margin-left: auto;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 14px);
  z-index: 10;
  background: #20223c;
  padding: 12px 18px;
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.16s;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.page {
  padding-block: 44px 62px;
  min-height: 67vh;
}
.page-top {
  margin-bottom: 25px;
}
.page-top h1,
.detail h1 {
  font-family: var(--serif);
  font-size: clamp(2.65rem, 4.3vw, 4.5rem);
  letter-spacing: -0.054em;
  line-height: 1.03;
}
.page-top p,
.lead {
  margin-top: 12px;
  color: var(--muted);
  max-width: 690px;
  line-height: 1.55;
}
.page .problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid #c8c9d4;
  border-radius: 5px;
  width: min(425px, 100%);
  color: var(--muted);
  background: #fff;
}
.search-box input {
  border: 0;
  min-width: 0;
  width: 100%;
  height: 41px;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}
.search-box:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.search-box input:focus {
  outline: 0;
}
.count {
  font: 0.8rem var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.empty {
  padding: 44px 22px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
.empty > .icon {
  color: var(--blue);
  margin: 0 auto 15px;
  width: 27px;
  height: 27px;
}
.empty h2,
.empty h3 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.empty p {
  margin: 9px auto 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 470px;
}
.back-link {
  display: inline-block;
  margin-bottom: 23px;
}
.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.6fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.problem-actions, .review-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.review-thread {
  display: block;
  margin-top: 5px;
}
.review-thread a, .review-sources .topic-link {
  color: var(--blue);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail h1 {
  margin: 7px 0 9px;
}
.detail-head .card-meta {
  margin: 0 0 15px;
  padding-top: 6px;
}
.detail-plate {
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  gap: clamp(30px, 5vw, 90px);
  padding-top: 29px;
}
.detail-content h2,
.news-head h2,
.timeline h2 {
  font-size: 2.05rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.detail-content p,
.event p,
.feed-note {
  line-height: 1.55;
  color: var(--muted);
}
.question {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.023em;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  margin: 9px 0 12px;
}
.detail-content section + section {
  margin-top: 30px;
}
.timeline {
  margin-top: 28px;
}
.event {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.event h3 {
  font-size: 1.48rem;
  letter-spacing: -0.02em;
  margin: 5px 0;
}
.event p {
  margin-bottom: 8px;
  font-size: 0.96rem;
}
.source-list,
.paper-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.source-list li,
.paper-list li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.paper-title {
  display: block;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.4;
  margin: 4px 0;
}
.paper-title:hover {
  color: var(--blue);
  text-decoration: underline;
}
.feed-note {
  font-size: 0.88rem;
  margin: 8px 0;
}
.feed-message {
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.feed-message .control {
  margin-top: 10px;
}
.feed-layout {
  max-width: 950px;
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.feed-controls {
  margin: 23px 0 20px;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.feed-controls .select-wrap {
  max-width: 260px;
}
.research-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.research-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.research-item .topic-link {
  display: inline-block;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 12px;
}
.research-item h3 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 5px 0;
}
.research-item p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 8px;
}
.research-item h3 a:hover,
.topic-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.detail .feed-note {
  margin-top: 7px;
}
.active-save {
  border-color: #9f9fd2;
  color: var(--blue);
}
@media (min-width: 1700px) {
  .hero-inner {
    min-height: 400px;
  }
}
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .masthead-inner {
    height: 65px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr);
    gap: 22px;
  }
  .filters {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-group {
    gap: 5px;
  }
  .chip {
    padding-inline: 10px;
  }
  .dashboard .select-wrap select {
    width: 114px;
  }
  .hero-art {
    right: -4%;
    width: 55%;
    background-size: auto 84%;
  }
  .page .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail {
    padding-left: 20px;
  }
  .card-text {
    padding: 14px;
  }
  .detail-content {
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  }
}
@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .masthead-inner {
    height: auto;
    min-height: 83px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 9px;
  }
  .brand {
    font-size: 1.58rem;
    gap: 7px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .masthead nav {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: safe space-between;
    gap: 12px;
    height: 38px;
    font-size: 0.83rem;
  }
  .masthead nav > a[aria-current='page']::after {
    bottom: 1px;
  }
  .masthead nav .watch-nav {
    margin: 0;
  }
  .watch-nav::before {
    display: none;
  }
  .watch-nav svg {
    width: 15px;
    height: 15px;
  }
  .hero-inner {
    min-height: 290px;
  }
  .hero-copy {
    width: 57%;
    padding: 23px 0;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 7.4vw, 3.8rem);
  }
  .hero-copy p {
    font: 400 1rem/1.43 var(--sans);
    margin: 12px 0 16px;
    max-width: 330px;
  }
  .hero-art {
    width: 46%;
    right: -4%;
    background-size: auto 68%;
    background-position: center 42%;
  }
  .hero-caption {
    font-size: 0.64rem;
    bottom: 15px;
  }
  .cross.nw {
    display: none;
  }
  .dashboard {
    display: block;
    padding: 26px 0 39px;
  }
  .rail {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 23px 0 0;
    margin-top: 29px;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .problem-grid {
    gap: 12px;
  }
  .hero .control {
    min-height: 36px;
  }
  .page {
    padding-block: 30px 42px;
  }
  .detail-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .detail-plate {
    display: none;
  }
  .detail-content {
    display: block;
  }
  .detail-content > aside {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 25px;
  }
  .footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer > span {
    font-size: 0.76rem;
  }
  .count {
    font-size: 0.71rem;
  }
  .rail h2 {
    font-size: 1.9rem;
  }
  .update-title {
    font-size: 1.38rem;
  }
  .feed-controls {
    flex-wrap: wrap;
  }
  .hero-caption {
    right: 0;
  }
  .detail-content h2 {
    font-size: 1.85rem;
  }
}
@media (max-width: 470px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero-inner {
    min-height: 294px;
  }
  .hero-art {
    width: 43%;
    right: -8px;
    background-position: center 79%;
    background-size: auto min(50%, 40vw);
  }
  .hero-copy {
    width: 100%;
  }
  .hero-copy p {
    max-width: 55%;
    font-size: 1rem;
  }
  .hero-caption {
    font-size: 0.59rem;
    bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 10.3vw, 3.25rem);
  }
  .cross.ne {
    top: 11px;
  }
  .cross.sw {
    display: none;
  }
  .filter-group {
    gap: 5px;
  }
  .chip {
    padding: 7px 8px;
    font-size: 0.79rem;
  }
  .filters {
    margin: 13px 0;
  }
  .dashboard .select-wrap select {
    width: 102px;
    font-size: 0.8rem;
  }
  .problem-grid,
  .page .problem-grid {
    grid-template-columns: 1fr;
  }
  .plate {
    aspect-ratio: 3.24;
  }
  .card-text h3 {
    font-size: 1.7rem;
  }
  .card-text {
    padding: 14px 15px;
  }
  .card-text p {
    font-size: 0.96rem;
  }
  .card-meta {
    padding-top: 14px;
  }
  .footer > span {
    display: none;
  }
  .search-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .watch-nav {
    gap: 4px !important;
  }
  .masthead nav {
    font-size: 0.83rem;
  }
  .feed-controls .select-wrap {
    max-width: 100%;
  }
  .hero .control {
    font-size: 0.84rem;
  }
  .research-item .topic-link {
    display: block;
    margin: 4px 0;
  }
  .toast {
    min-width: max-content;
    max-width: calc(100% - 24px);
  }
}
@media (max-width: 560px) {
  .masthead-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 36px 37px;
    gap: 2px 0;
    padding-top: 6px;
  }
  .masthead nav { display: contents; }
  .masthead .brand {
    grid-area: 1 / 1 / 2 / 7;
    font-size: clamp(1.27rem, 5.7vw, 1.58rem);
    gap: 5px;
  }
  .masthead .brand img { width: 25px; height: 25px; }
  .masthead nav > a { width: fit-content; }
  .masthead [data-nav="home"] { grid-area: 2 / 1 / 3 / 5; }
  .masthead [data-nav="problems"] { grid-area: 2 / 5 / 3 / 9; justify-self: center; }
  .masthead [data-nav="research"] { grid-area: 2 / 9 / 3 / 13; justify-self: end; }
  .masthead [data-nav="watchlist"] { grid-area: 1 / 7 / 2 / 10; justify-self: center; }
  .masthead [data-nav="discussion"] { grid-area: 1 / 10 / 2 / 13; justify-self: end; }
  .masthead .watch-nav svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
