:root {
  --ink: #2a2521;
  --paper: #f3e8d2;
  --panel: #fff9ec;
  --muted: #6b6457;
  --line: #2a2521;
  --tomato: #ee5a3a;
  --amber: #f4a82c;
  --teal: #166e66;
  --grape: #6b4a9e;
  --pink: #ff8fb1;
  --green: #7fb335;
  --focus: #0047ff;
  --shadow: 7px 7px 0 #2a2521;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 18px 18px, rgba(42, 37, 33, 0.055) 1px, transparent 1.5px),
    var(--paper);
  background-size: 28px 28px;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(243, 232, 210, 0.92);
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  padding: 10px 24px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.site-header nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.hero-email-link {
  align-items: center;
  background: var(--amber);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 18px;
  min-height: 42px;
  padding: 8px 13px 8px 11px;
  text-decoration: none;
  width: fit-content;
}

.hero-email-link svg {
  flex: none;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.hero-email-link span {
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-email-link:hover {
  transform: translateY(-1px);
}

.brand-mark {
  align-items: center;
  background: var(--tomato);
  border: 2px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 22px;
  row-gap: 6px;
}

.button {
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.site-header nav a {
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 8px 0 7px;
  position: relative;
  text-decoration: none;
}

.button {
  background: var(--panel);
}

.site-header nav a:hover,
.button:hover {
  transform: translateY(-1px);
}

.site-header nav a.active {
  border-bottom-color: var(--tomato);
  color: var(--ink);
}

.site-header nav a.intranet-link {
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--panel);
  padding: 7px 11px;
}

/* Local intranet */
.intranet-hero {
  padding-bottom: 54px;
  padding-top: 72px;
}

.intranet-hero h1 {
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.88;
  margin: 10px 0 28px;
}

.intranet-hero .lead {
  max-width: 720px;
}

.local-status {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 9px;
  margin-top: 22px;
  padding: 8px 13px;
}

.local-status span {
  background: var(--green);
  border: 2px solid var(--line);
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.intranet-tools {
  border-top: 2px solid var(--line);
  padding-bottom: 70px;
  padding-top: 48px;
}

.intranet-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.intranet-card {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 390px;
  padding: 28px;
}

.litnest-card {
  border-top: 13px solid var(--tomato);
}

.journal-tool-card {
  border-top: 13px solid var(--teal);
}

.tool-monogram {
  align-items: center;
  background: var(--amber);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.journal-tool-card .tool-monogram {
  background: #a8d9cf;
}

.tool-kicker,
.eyebrow {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0;
}

.intranet-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  margin: 7px 0 14px;
}

.tool-storage {
  color: var(--muted);
  font-size: 0.88rem;
}

.intranet-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.intranet-card .button.primary {
  background: var(--tomato);
}

.intranet-card .button.secondary {
  background: #a8d9cf;
}

.intranet-note {
  padding-bottom: 42px;
  padding-top: 0;
}

.intranet-note strong {
  font-size: 1.1rem;
}

.intranet-note p {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 760px;
}

@media (max-width: 760px) {
  .intranet-grid {
    grid-template-columns: 1fr;
  }

  .intranet-card {
    min-height: 0;
  }
}

/* Journal Club */
.journal-hero {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 34px;
  padding-top: 58px;
}

.journal-hero h1 {
  font-size: clamp(4rem, 9vw, 7.6rem);
  max-width: none;
}

.journal-hero .lead {
  max-width: 700px;
}

.week-note {
  background: var(--amber);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 18px 20px;
  transform: rotate(1.2deg);
}

.week-note-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-note strong {
  font-size: 1.3rem;
  margin: 3px 0;
}

.week-note span:last-child {
  font-size: 0.82rem;
}

.journal-toolbar {
  align-items: end;
  border-bottom: 2px solid var(--line);
  border-top: 2px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  padding-bottom: 28px;
  padding-top: 28px;
}

.journal-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 8px;
}

.journal-intro p:last-child {
  margin-bottom: 0;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.topic-filter,
.shortlist-button {
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.topic-filter {
  border-radius: 999px;
  padding: 8px 13px;
}

.topic-filter:hover,
.topic-filter.active {
  background: var(--ink);
  color: var(--panel);
}

.paper-list {
  display: grid;
  gap: 20px;
}

.paper-card {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 24px;
}

.paper-card[hidden] {
  display: none;
}

.paper-number {
  color: var(--tomato);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.paper-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin: 12px 0 7px;
  max-width: 900px;
}

.paper-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
}

.paper-tag {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 3px 8px;
}

.paper-tag.tomato-tag {
  background: var(--tomato);
}

.paper-authors {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.paper-summary {
  max-width: 860px;
}

.paper-question {
  border-left: 5px solid var(--amber);
  display: grid;
  gap: 2px;
  margin: 18px 0;
  padding-left: 12px;
}

.paper-question strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.paper-links a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.shortlist-button {
  border-radius: 6px;
  padding: 8px 11px;
}

.shortlist-button[aria-pressed="true"] {
  background: var(--teal);
  color: white;
}

.journal-method {
  background: var(--teal);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  color: white;
  margin-bottom: 54px;
}

.method-grid {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
}

.method-grid h2 {
  margin-bottom: 0;
}

.method-grid > div {
  font-size: 1.05rem;
  max-width: 650px;
}

.shortlist-status {
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  margin-top: 22px;
  padding-top: 16px;
}

.no-papers {
  border: 2px dashed var(--line);
  padding: 28px;
  text-align: center;
}

/* Journal Club app prototype */
.journal-dashboard-hero,
.weekly-header,
.shortlist-header {
  padding-bottom: 30px;
  padding-top: 54px;
}

.journal-dashboard-hero {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.journal-dashboard-hero h1,
.weekly-header h1,
.shortlist-header h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  max-width: none;
}

.journal-dashboard-hero .lead {
  max-width: 720px;
}

.journal-app-nav {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
}

.journal-app-nav button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 8px 0 7px;
}

.journal-app-nav button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.journal-app-nav button.active {
  background: transparent;
  border-bottom-color: var(--tomato);
  color: var(--ink);
}

.journal-app-nav button span {
  background: var(--tomato);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  margin-left: 4px;
  min-width: 21px;
  padding: 1px 6px;
}

.journal-app-nav .language-toggle {
  border-left: 0;
  margin-left: 0;
  min-width: 0;
}

.journal-dashboard {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
  padding-top: 16px;
}

.week-feature,
.shortlist-feature,
.archive-card {
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.week-feature {
  background: var(--tomato);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
}

.week-feature:hover,
.shortlist-feature:hover,
.archive-card:hover {
  transform: translateY(-3px);
}

.week-feature-top {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.week-feature-top > span:first-child {
  display: flex;
  flex-direction: column;
}

.week-feature-top strong {
  font-size: 1.15rem;
}

.week-arrow {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.week-feature-title {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
  margin: auto 0 30px;
  max-width: 760px;
}

.week-topic-summary,
.week-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.week-topic-summary span {
  background: rgba(255, 249, 236, 0.5);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 5px 9px;
}

.week-feature-cta {
  align-self: flex-start;
  border-bottom: 2px solid currentColor;
  font-weight: 900;
  margin-top: 22px;
}

.shortlist-feature {
  background: var(--teal);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px;
}

.shortlist-feature strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: auto 0 20px;
}

.shortlist-feature > span:nth-child(3) {
  max-width: 330px;
}

.section-heading-row,
.weekly-title-row {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.prototype-label {
  background: var(--amber);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 10px;
  text-transform: uppercase;
}

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

.archive-card {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  display: grid;
  gap: 5px;
  padding: 20px;
}

.archive-card > span:first-child {
  color: var(--tomato);
  font-size: 0.8rem;
  font-weight: 900;
}

.archive-card strong {
  font-size: 1.5rem;
}

.archive-card small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.archive-topics {
  border-top: 1.5px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 10px;
  padding-top: 10px;
}

.journal-workflow {
  border-top: 2px solid var(--line);
}

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

.workflow-grid > div {
  border-left: 3px solid var(--line);
  padding-left: 14px;
}

.workflow-grid > div > strong {
  color: var(--tomato);
}

.workflow-grid h3 {
  font-size: 1.35rem;
  margin: 10px 0 5px;
}

.workflow-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-bottom: 22px;
  padding: 0;
}

.back-button:hover {
  color: var(--tomato);
}

.weekly-title-row {
  align-items: center;
}

.weekly-title-row .lead {
  max-width: 700px;
}

.week-stats {
  border-bottom: 2px solid var(--line);
  border-top: 2px solid var(--line);
  margin-top: 28px;
  padding: 14px 0;
}

.week-stats span {
  border-right: 1.5px solid var(--line);
  padding-right: 12px;
}

.weekly-browser {
  padding-top: 18px;
}

.weekly-controls {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.weekly-controls h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0;
}

.weekly-paper-list {
  display: grid;
  gap: 18px;
}

.weekly-paper {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
}

.weekly-paper-main {
  padding: 24px;
}

.weekly-paper h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  margin: 12px 0 7px;
  max-width: 950px;
}

.paper-question-preview {
  display: grid;
  gap: 3px;
  max-width: 850px;
}

.paper-question-preview strong {
  color: var(--tomato);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.paper-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.paper-primary-link {
  color: var(--ink);
  display: inline-block;
  font-weight: 900;
  margin-top: 10px;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.paper-card-actions .paper-primary-link {
  margin: 0 4px 0 0;
}

.explain-button {
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--panel);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
}

.ai-explanation {
  background: #e6efe8;
  padding: 24px;
}

.paper-reading-compare {
  border-top: 2px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.original-abstract-panel {
  background: var(--paper);
  border-right: 2px solid var(--line);
  padding: 24px;
}

.original-abstract-panel h4 {
  font-size: 1.5rem;
  margin: 6px 0 16px;
}

.original-abstract-panel > p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.paper-reading-compare .explanation-grid {
  grid-template-columns: 1fr;
}

.paper-reading-compare .discussion-cell {
  grid-column: auto;
}

.ai-explanation-heading {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
}

.ai-explanation-heading > div {
  display: flex;
  flex-direction: column;
}

.ai-explanation-heading small {
  color: var(--muted);
}

.ai-spark {
  align-items: center;
  background: var(--teal);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.ai-generate-panel {
  background: rgba(255, 249, 236, 0.78);
  border: 1.5px solid var(--line);
  padding: 18px;
}

.ai-generate-panel p {
  margin-top: 0;
}

.generate-ai-button,
.ai-language-picker button {
  background: var(--teal);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 14px;
}

.generate-ai-button:disabled,
.ai-language-picker button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ai-language-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-language-picker button {
  background: var(--paper);
  color: var(--ink);
}

.ai-language-picker button.active {
  background: var(--teal);
  color: white;
}

.ai-generate-panel .ai-error {
  color: #991b1b;
  margin: 12px 0 0;
}

.explanation-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.explanation-grid > div {
  background: rgba(255, 249, 236, 0.72);
  border: 1.5px solid var(--line);
  padding: 14px;
}

.explanation-grid dt {
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.explanation-grid dd {
  margin: 0;
}

.discussion-cell {
  background: var(--amber) !important;
  grid-column: 1 / -1;
}

.arxiv-link {
  display: inline-block;
  font-weight: 900;
  margin-top: 18px;
  text-underline-offset: 4px;
}

.paper-abstract,
.shortlist-abstract {
  background: rgba(255, 249, 236, 0.72);
  border: 1.5px solid var(--line);
  margin-top: 16px;
  padding: 12px 14px;
}

.paper-abstract summary,
.shortlist-abstract summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.paper-abstract p,
.shortlist-abstract p {
  line-height: 1.65;
  margin: 12px 0 0;
}

.archive-empty,
.shortlist-empty {
  background: var(--panel);
  border: 2px dashed var(--line);
  padding: clamp(28px, 6vw, 70px);
  text-align: center;
}

.archive-empty > span {
  color: var(--tomato);
  font-weight: 900;
}

.archive-empty h2,
.shortlist-empty h2 {
  margin: 14px auto;
  max-width: 700px;
}

.archive-empty p,
.shortlist-empty p {
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
  max-width: 590px;
}

.archive-empty .button,
.shortlist-empty .button {
  display: inline-block;
  margin-top: 12px;
}

.shortlist-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.62fr);
  padding-top: 16px;
}

.shortlist-papers {
  display: grid;
  gap: 16px;
}

.shortlist-row {
  background: var(--panel);
  border: 2px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 20px;
}

.shortlist-order {
  color: var(--tomato);
  font-size: 1.6rem;
  font-weight: 900;
}

.shortlist-row h3 {
  font-size: 1.35rem;
  margin: 7px 0;
}

.shortlist-row p {
  color: var(--muted);
  font-size: 0.9rem;
}

.shortlist-row label,
.deck-builder label {
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.shortlist-row textarea,
.deck-builder select {
  background: white;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 9px;
}

.shortlist-row label {
  text-transform: none;
}

.shortlist-source-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  margin: 0 0 16px;
  text-underline-offset: 4px;
}

.shortlist-ai {
  background: #e6efe8;
  border: 1.5px solid var(--line);
  margin: 18px 0;
  padding: 16px;
}

.shortlist-ai-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.shortlist-ai .ai-language-picker {
  margin: 0;
}

.shortlist-ai-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 0;
}

.shortlist-ai-grid > div {
  background: rgba(255, 249, 236, 0.78);
  border: 1px solid var(--line);
  padding: 10px;
}

.shortlist-ai-grid dt {
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.shortlist-ai-grid dd,
.shortlist-ai-empty {
  line-height: 1.5;
  margin: 0;
}

.shortlist-abstract {
  margin-bottom: 12px;
}

.shortlist-abstract p {
  color: var(--ink);
}

.remove-shortlist {
  align-self: start;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
}

.deck-builder {
  background: var(--amber);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 22px;
  position: sticky;
  top: 90px;
}

.deck-builder h2 {
  font-size: 2.25rem;
  margin-bottom: 2px;
}

.deck-setting {
  border-bottom: 1.5px solid var(--line);
  border-top: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
}

.deck-builder .figure-option {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  grid-template-columns: auto 1fr;
  text-transform: none;
}

.generate-deck {
  background: var(--ink);
  border: 2px solid var(--line);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px;
}

.generate-deck:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.generate-deck.demo-state {
  background: var(--teal);
}

.deck-error {
  color: #991b1b;
  font-weight: 700;
}

.deck-toolbar {
  display: grid;
  gap: 22px;
}

.deck-toolbar h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-bottom: 8px;
}

.deck-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.deck-preview {
  background: #dbe6e1;
  display: grid;
  gap: 28px;
  padding: 40px max(24px, calc((100vw - 1180px) / 2));
}

.deck-slide {
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 9px 9px 0 rgba(23, 50, 43, 0.18);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 48px);
  position: relative;
}

.deck-slide-number {
  font-size: 0.8rem;
  font-weight: 900;
  position: absolute;
  right: 28px;
  top: 24px;
}

.deck-slide h2 {
  font-size: clamp(1.25rem, 4cqw, 3.6rem);
  line-height: 1.04;
  margin: 4px 0 9px;
  max-width: 1000px;
  overflow-wrap: anywhere;
}

.deck-slide-subtitle {
  color: var(--muted);
  font-size: clamp(0.72rem, 1.65cqw, 1.3rem);
  line-height: 1.25;
  margin: 0 0 clamp(8px, 1.4cqw, 16px);
}

.deck-slide-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.deck-slide ul {
  display: grid;
  font-size: clamp(0.68rem, 1.62cqw, 1.22rem);
  gap: clamp(5px, 0.8cqw, 10px);
  line-height: 1.32;
  margin: 0;
  max-width: 980px;
  padding-left: 1.25em;
}

.deck-slide a {
  flex: 0 0 auto;
  font-size: clamp(0.65rem, 1.1cqw, 0.9rem);
  font-weight: 900;
  margin-top: clamp(5px, 0.8cqw, 10px);
}

.deck-figure-layout {
  align-items: stretch;
  display: grid;
  gap: clamp(12px, 2.2cqw, 30px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  height: 100%;
  min-height: 0;
}

.deck-figure-layout figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.deck-figure-layout img {
  background: white;
  border: 1.5px solid var(--line);
  display: block;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  width: 100%;
}

.deck-figure-layout figcaption {
  display: -webkit-box;
  font-size: clamp(0.5rem, 0.85cqw, 0.7rem);
  line-height: 1.25;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.deck-figure-layout h3 {
  font-size: clamp(0.78rem, 1.8cqw, 1.5rem);
  line-height: 1.1;
  margin: 0 0 6px;
}

.deck-figure-copy {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.deck-figure-copy > p {
  font-size: clamp(0.62rem, 1.28cqw, 1rem);
  line-height: 1.3;
  margin: 0 0 clamp(5px, 0.8cqw, 10px);
}

.deck-slide-compact {
  padding: clamp(18px, 2.8cqw, 36px);
}

.deck-slide-compact h2 {
  font-size: clamp(1.08rem, 3.25cqw, 3rem);
}

.deck-slide-compact .deck-slide-subtitle,
.deck-slide-compact .deck-figure-copy > p,
.deck-slide-compact ul {
  font-size: clamp(0.58rem, 1.25cqw, 0.96rem);
  line-height: 1.23;
}

.deck-slide-dense {
  padding: clamp(15px, 2.25cqw, 29px);
}

.deck-slide-dense h2 {
  font-size: clamp(0.95rem, 2.75cqw, 2.45rem);
}

.deck-slide-dense .deck-slide-subtitle,
.deck-slide-dense .deck-figure-copy > p,
.deck-slide-dense ul {
  font-size: clamp(0.52rem, 1.05cqw, 0.82rem);
  line-height: 1.16;
}

.deck-slide-minimal {
  padding: clamp(12px, 1.8cqw, 24px);
}

.deck-slide-minimal h2 {
  font-size: clamp(0.85rem, 2.35cqw, 2rem);
}

.deck-slide-minimal .deck-slide-subtitle,
.deck-slide-minimal .deck-figure-copy > p,
.deck-slide-minimal ul {
  font-size: clamp(0.46rem, 0.9cqw, 0.72rem);
  line-height: 1.1;
}

.deck-slide-title {
  background: var(--ink);
  color: var(--paper);
}

.deck-slide-title .deck-slide-subtitle {
  color: #dbe6e1;
}

.deck-slide-discussion {
  background: var(--amber);
}

@media print {
  @page {
    margin: 0;
    size: 13.333in 7.5in;
  }

  body {
    background: white;
  }

  .site-header,
  .site-footer,
  .deck-toolbar {
    display: none !important;
  }

  .deck-preview {
    display: block;
    padding: 0;
  }

  .deck-slide {
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    height: 7.5in;
    min-height: 0;
    page-break-after: always;
    break-after: page;
    width: 13.333in;
  }

  .deck-slide:last-child {
    page-break-after: auto;
  }

}

.export-shortlist {
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px;
}

.export-shortlist:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.deck-builder small {
  line-height: 1.45;
}

/* Journal Club access, visitor, and import views */
.gateway-hero {
  padding-bottom: 20px;
  padding-top: 64px;
  position: relative;
}

.gateway-hero h1 {
  font-size: clamp(4.2rem, 10vw, 8rem);
  margin-bottom: 24px;
  max-width: none;
}

.gateway-hero h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-bottom: 10px;
}

.gateway-language {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 8px 14px;
  position: absolute;
  right: 24px;
  top: 64px;
}

.gateway-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.entrance-card {
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  min-height: 360px;
  padding: 28px;
  text-align: left;
}

.entrance-card:hover {
  transform: translateY(-3px);
}

.visitor-entrance {
  background: var(--amber);
}

.member-entrance {
  background: var(--teal);
  color: white;
}

.entrance-icon {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.5rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 50px;
  width: 52px;
}

.entrance-card > strong {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 8px 0 16px;
}

.entrance-card > span:nth-last-child(2) {
  max-width: 520px;
}

.entrance-cta {
  border-bottom: 2px solid currentColor;
  font-weight: 900;
  margin-top: auto;
  padding-top: 25px;
  width: fit-content;
}

.login-shell {
  min-height: calc(100svh - 160px);
  padding-top: 50px;
}

.login-card {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 50px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  padding: clamp(24px, 5vw, 56px);
}

.login-card h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.login-form {
  background: var(--paper);
  border: 2px solid var(--line);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.login-form label {
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 5px;
  text-transform: uppercase;
}

.login-form input {
  background: white;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 10px;
}

.login-message {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-message.success {
  display: block;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.login-message.pending {
  display: block;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.login-message.error {
  display: block;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.visitor-header {
  padding-bottom: 6px;
  padding-top: 46px;
}

.visitor-header + .week-archive {
  padding-top: 8px;
}

.visitor-header h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

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

.category-card {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  min-height: 255px;
  padding: 20px;
  text-align: left;
}

.category-card:nth-child(1) {
  background: var(--tomato);
}

.category-card:nth-child(2) {
  background: var(--amber);
}

.category-card:nth-child(3) {
  background: #c8b2e7;
}

.category-card:nth-child(4) {
  background: #a9d0c5;
}

.category-card:hover {
  transform: translateY(-3px);
}

.category-symbol {
  font-size: 2.4rem;
  line-height: 1;
}

.category-card strong {
  font-size: 1.75rem;
  margin: 38px 0 5px;
}

.category-card > span:nth-child(3) {
  font-size: 0.85rem;
}

.category-card .entrance-cta {
  font-size: 0.82rem;
}

.import-week {
  align-items: center;
  background: var(--amber);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 20px;
  padding-top: 20px;
}

.import-week-copy {
  align-items: center;
  display: flex;
  gap: 18px;
}

.import-week-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  margin-bottom: 5px;
}

.import-week-copy p:last-child {
  margin-bottom: 0;
}

.sync-schedule {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 8px 18px;
  margin-top: 13px;
}

.sync-schedule span {
  border-left: 3px solid var(--line);
  display: grid;
  padding-left: 8px;
}

.import-icon {
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  display: flex;
  flex: none;
  font-size: 1.7rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.import-week-action {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 310px;
}

.import-button {
  background: var(--ink);
  border: 2px solid var(--line);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-width: 170px;
  padding: 11px 15px;
}

.import-week-action small {
  line-height: 1.3;
  text-align: right;
}

.week-login-banner {
  align-items: center;
  background: var(--teal);
  border: 2px solid var(--line);
  color: white;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 13px 16px;
}

.week-login-banner button {
  background: var(--amber);
  border: 2px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 7px 12px;
}

.journal-app-nav .signout-button {
  border-left: 0;
  border-radius: 0;
  margin-left: 0;
  min-width: 0;
}

.button.primary {
  background: var(--amber);
  box-shadow: var(--shadow);
}

.section-band,
.content-section,
.intro-grid {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 24px;
}

.content-section {
  scroll-margin-top: 92px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.72fr);
  min-height: 0;
  padding-bottom: 30px;
  padding-top: 34px;
}

.home-page main {
  display: flex;
}

.home-page .hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 88px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  min-height: calc(100svh - 142px);
  padding-bottom: clamp(24px, 4.5vh, 54px);
  padding-top: clamp(24px, 4.5vh, 54px);
  text-align: left;
  width: 100%;
}

.home-page .hero-copy {
  max-width: 650px;
}

.home-page .pronunciation {
  color: var(--ink);
  display: inline-block;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 800;
  margin: 18px 0 0;
  padding-top: 10px;
  position: relative;
}

.home-page .pronunciation::before {
  background: var(--tomato);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0;
  width: 72px;
}

.home-page h1 {
  font-size: clamp(4.1rem, 9vw, 7.4rem);
  line-height: 1;
  margin-bottom: 14px;
  max-width: 680px;
}

.home-page .lead {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.38vw, 1.22rem);
  max-width: 590px;
}

.page-hero {
  padding-bottom: 24px;
  padding-top: 38px;
}

.page-hero h1 {
  max-width: 900px;
}

.astro-page-hero {
  display: block;
}

.astro-page-hero .lead {
  line-height: 1.62;
  max-width: 760px;
}

.eyebrow {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.1vw, 4.55rem);
  line-height: 0.98;
  margin-bottom: 14px;
  max-width: 700px;
}

h2 {
  font-size: clamp(1.8rem, 4.1vw, 3.45rem);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  max-width: 620px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-portrait {
  aspect-ratio: 1;
  max-width: 330px;
  position: relative;
  width: 100%;
  justify-self: end;
}

.home-page .hero-portrait {
  max-width: min(38vw, 390px);
  min-width: 260px;
}

.hero-portrait img {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  position: relative;
  transform: rotate(1.5deg);
  width: 100%;
  z-index: 2;
}

.home-page .hero-portrait img {
  border-color: var(--tomato);
  border-radius: 18px;
  border-width: 3px;
  box-shadow: 10px 10px 0 var(--amber), 14px 14px 0 var(--line);
  object-fit: cover;
  transform: rotate(-1deg);
}

.portrait-shape {
  border: 2px solid var(--line);
  position: absolute;
  z-index: 1;
}

.amber-shape {
  background: var(--amber);
  border-radius: 44% 56% 42% 58%;
  height: 35%;
  left: -7%;
  top: -5%;
  transform: rotate(-12deg);
  width: 42%;
}

.pink-shape {
  background: var(--pink);
  border-radius: 38% 62% 52% 48%;
  height: 32%;
  right: -6%;
  top: 12%;
  transform: rotate(11deg);
  width: 34%;
}

.grape-shape {
  background: var(--grape);
  border-radius: 55% 45% 40% 60%;
  bottom: -6%;
  height: 27%;
  left: 17%;
  transform: rotate(8deg);
  width: 46%;
}

.intro-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 10px;
}

.home-map {
  padding-top: 20px;
}

.link-list {
  border-bottom: 2px solid var(--line);
  border-top: 2px solid var(--line);
}

.link-list a {
  align-items: baseline;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(180px, 0.45fr) minmax(0, 1fr);
  padding: 22px 0;
  text-decoration: none;
}

.link-list a + a {
  border-top: 2px solid rgba(42, 37, 33, 0.25);
}

.link-list span,
.link-list strong {
  font-weight: 800;
}

.link-list strong {
  font-size: 1.35rem;
}

.link-list em {
  color: var(--muted);
  font-style: normal;
}

.page-nav-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
  padding-top: 10px;
}

.astro-page-shell {
  align-items: start;
  display: grid;
  gap: 38px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding-top: 12px;
}

.astro-side-nav {
  border-left: 4px solid var(--tomato);
  padding-left: 16px;
  position: sticky;
  top: 82px;
}

.astro-side-nav .eyebrow {
  color: var(--muted);
  margin-bottom: 14px;
}

.astro-side-nav nav {
  display: grid;
  gap: 4px;
}

.astro-side-nav a {
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 0;
  text-decoration: none;
}

.astro-side-nav a:hover {
  border-bottom-color: var(--tomato);
}

.astro-content {
  min-width: 0;
}

.astro-content .content-section {
  max-width: none;
  padding: 0 0 52px;
}

.astro-about {
  align-items: stretch;
  border-bottom: 2px solid var(--line);
  border-top: 2px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  padding: 30px 0;
  position: relative;
}

.side-subscribe-link {
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 8px solid var(--tomato);
  box-shadow: 4px 4px 0 var(--amber);
  display: grid;
  gap: 2px;
  margin-bottom: 30px;
  padding: 12px 14px 13px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.side-subscribe-link span {
  font-size: 1.02rem;
  font-weight: 900;
}

.side-subscribe-link small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.side-subscribe-link:hover {
  border-bottom-color: var(--line);
  box-shadow: 6px 6px 0 var(--amber);
  transform: translate(-1px, -1px);
}

.astro-about-main h2 {
  max-width: 620px;
}

.astro-about-main p {
  font-size: 1.08rem;
  max-width: 610px;
}

.astro-about-notes {
  display: grid;
  gap: 14px;
  grid-template-rows: repeat(3, 1fr);
}

.astro-about-notes article {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 136px;
  padding: 20px;
  text-align: left;
}

.astro-about-notes span {
  background: var(--amber);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-width: 92px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.astro-about-notes article:nth-child(2) span {
  background: var(--pink);
}

.astro-about-notes article:nth-child(3) span {
  background: #b9ddd1;
}

.astro-about-notes p {
  align-self: center;
  margin: 0;
}

.page-nav-band a {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.route-card,
.feature-panel,
.stacked-list article,
.event-card,
.student-grid article,
.workbook-copy article {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.route-card {
  color: var(--ink);
  min-height: 250px;
  text-decoration: none;
}

.route-card h2 {
  font-size: 1.55rem;
  line-height: 1.04;
}

.card-number,
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.tomato-card {
  background: #f8c9bc;
}

.amber-card,
.amber-panel {
  background: #f9d38a;
}

.teal-card {
  background: #b9ddd1;
}

.grape-card {
  background: #d3c3ec;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 840px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin-top: 6px;
  max-width: 760px;
}

.research-layout,
.research-page-shell,
.astro-grid,
.workbook-layout,
.student-grid {
  display: grid;
  gap: 22px;
}

.research-layout {
  grid-template-columns: 0.85fr 1.15fr;
}

.research-page-hero .lead {
  line-height: 1.62;
  max-width: 760px;
}

.research-role {
  align-items: start;
  border-top: 2px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  margin-bottom: 0;
  margin-top: 18px;
  max-width: 920px;
  padding-top: 18px;
}

.research-role p {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 0;
}

.role-label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.role-chips span {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 6px 10px;
}

.research-page-shell {
  align-items: start;
  gap: 38px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding-top: 12px;
}

.research-content {
  min-width: 0;
}

.research-content .content-section {
  max-width: none;
  padding: 0 0 52px;
}

.research-card-grid,
.research-collab-list {
  display: grid;
  gap: 18px;
}

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

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

.publication-panel,
.talk-panel {
  display: grid;
  gap: 14px;
}

.research-profile-links {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  width: fit-content;
}

.research-profile-link {
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 8px;
  padding: 8px 11px 8px 9px;
  text-decoration: none;
  width: fit-content;
}

.research-profile-link .scholar-mark {
  fill: #4285f4;
  flex: none;
  height: 24px;
  width: 24px;
}

.orcid-profile-link img {
  flex: none;
  height: 24px;
  width: 24px;
}

.research-profile-link:hover {
  transform: translateY(-1px);
}

.publication-panel,
.talk-panel {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.publication-entry,
.talk-entry {
  border-bottom: 1px solid rgba(51, 40, 29, 0.18);
  padding-bottom: 16px;
}

.publication-entry:last-child,
.talk-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.publication-entry h3,
.talk-entry h3 {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin-bottom: 6px;
}

.publication-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.talk-entry p {
  margin-bottom: 0;
}

@property --drift-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --drift-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.interest-map {
  background:
    linear-gradient(90deg, rgba(36, 31, 27, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 31, 27, 0.06) 1px, transparent 1px),
    #fff8ec;
  background-size: 34px 34px;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
  position: relative;
  --interest-zoom: 1;
}

.interest-zoom-controls {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
}

.interest-zoom-controls button {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 38px;
}

.interest-zoom-controls button:hover,
.interest-zoom-controls button:focus-visible {
  transform: translateY(-1px);
}

.interest-map-lines {
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.interest-map-lines line {
  stroke: rgba(36, 31, 27, 0.42);
  stroke-linecap: round;
  stroke-width: 3;
}

.interest-node {
  align-items: center;
  aspect-ratio: 1;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--line);
  color: var(--ink);
  cursor: grab;
  display: flex;
  font: inherit;
  font-size: var(--node-font, 0.86rem);
  font-weight: 900;
  justify-content: center;
  left: var(--x);
  line-height: 1.08;
  padding: 16px;
  position: absolute;
  text-align: center;
  top: var(--y);
  touch-action: none;
  transform: translate(-50%, -50%) translate(var(--drift-x, 0), var(--drift-y, 0)) scale(calc(var(--interest-zoom, 1) * var(--active-scale, 1)));
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: var(--node-size, 120px);
  z-index: 1;
}

.node-xl {
  --node-font: 1rem;
  --node-size: clamp(142px, 15vw, 176px);
}

.node-lg {
  --node-font: 0.92rem;
  --node-size: clamp(124px, 13vw, 154px);
}

.node-md {
  --node-font: 0.84rem;
  --node-size: clamp(108px, 11vw, 136px);
}

.node-sm {
  --node-font: 0.78rem;
  --node-size: clamp(94px, 9vw, 116px);
}

.interest-node span {
  max-width: 12ch;
}

.interest-node:hover,
.interest-node:focus-visible,
.interest-node.is-dragging {
  box-shadow: 7px 7px 0 var(--line);
  --active-scale: 1.08;
}

.interest-node.is-dragging {
  animation-play-state: paused;
  cursor: grabbing;
  z-index: 2;
}

.interest-node:nth-of-type(odd) {
  animation: interestFloatA var(--float, 8s) ease-in-out infinite;
}

.interest-node:nth-of-type(even) {
  animation: interestFloatB var(--float, 8s) ease-in-out infinite;
}

@keyframes interestFloatA {
  0%,
  100% {
    --drift-x: 0px;
    --drift-y: 0px;
  }
  50% {
    --drift-x: 7px;
    --drift-y: -8px;
  }
}

@keyframes interestFloatB {
  0%,
  100% {
    --drift-x: 0px;
    --drift-y: 0px;
  }
  50% {
    --drift-x: -8px;
    --drift-y: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interest-node {
    animation: none;
  }
}

.node-primary {
  background: #f8c9bc;
}

.node-amber {
  background: #f9d38a;
}

.node-teal {
  background: #b9ddd1;
}

.node-pink {
  background: #f7cfda;
}

.node-grape {
  background: #d3c3ec;
}

.node-green {
  background: #d7e7a9;
}

.research-card-grid article,
.research-collab-list article {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.research-card-grid article:nth-child(3n + 1),
.research-collab-list article:nth-child(3n + 1) {
  background: #fff8ec;
}

.research-card-grid article:nth-child(3n + 2),
.research-collab-list article:nth-child(3n + 2) {
  background: #e9f4f1;
}

.research-card-grid article:nth-child(3n),
.research-collab-list article:nth-child(3n) {
  background: #f5edff;
}

.school-outreach-card {
  background: #e6f4c7 !important;
}

.outreach-card-media {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: 6px;
  margin: 12px auto 14px;
  object-fit: cover;
  width: min(100%, 280px);
}

.translation-card {
  grid-column: 1 / -1;
}

.translation-list {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.translation-list figure {
  background: #fff;
  border: 2px solid rgba(42, 37, 33, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
}

.translation-list img {
  aspect-ratio: 4 / 5;
  border: 2px solid var(--line);
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.book-cover-frame {
  aspect-ratio: 4 / 5;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  width: 100%;
}

.book-cover-frame img {
  aspect-ratio: auto;
  border: 0;
  border-radius: 3px;
  height: 85%;
  object-fit: contain;
  padding: 0;
  width: 85%;
}

.translation-list figcaption {
  display: grid;
  gap: 4px;
}

.translation-list span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.research-collab-list article {
  display: block;
}

.research-collab-list p {
  margin-bottom: 0;
}

.text-link {
  font-weight: 800;
}

.feature-panel {
  align-self: start;
}

.stacked-list {
  display: grid;
  gap: 16px;
}

.tag {
  background: var(--ink);
  border-radius: 999px;
  color: var(--panel);
  padding: 6px 10px;
}

.astro-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.astro-grid .feature-panel {
  grid-row: span 2;
}

.talk-list,
.student-grid ul,
.clean-list {
  margin: 0;
  padding-left: 20px;
}

.talk-list li,
.student-grid li,
.clean-list li {
  margin-bottom: 8px;
}

.event-detail-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.upcoming-feature {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
}

.speaker-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 37%, var(--panel) 0 19%, transparent 20%),
    radial-gradient(circle at 50% 88%, var(--amber) 0 42%, transparent 43%),
    linear-gradient(135deg, #f8c9bc 0 48%, #b9ddd1 48% 100%);
  border: 2px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  justify-self: end;
  max-width: 230px;
  min-width: 170px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.speaker-placeholder::before,
.speaker-placeholder::after {
  background: var(--ink);
  border-radius: 999px;
  content: "";
  position: absolute;
}

.speaker-placeholder::before {
  height: 10px;
  top: 38%;
  width: 10px;
  transform: translateX(-22px);
}

.speaker-placeholder::after {
  height: 10px;
  top: 38%;
  width: 10px;
  transform: translateX(22px);
}

.speaker-placeholder span {
  border: 3px solid var(--ink);
  border-left: 0;
  border-top: 0;
  bottom: 30%;
  height: 18px;
  position: absolute;
  transform: rotate(45deg);
  width: 18px;
}

.panelist-grid,
.committee-grid,
.sponsor-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list {
  grid-template-columns: 1fr;
}

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

.panelist-grid article,
.committee-grid article,
.sponsor-grid article,
.faq-list article,
.faq-list details {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.faq-list details {
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-list summary::marker {
  color: var(--tomato);
}

.faq-list details[open] {
  box-shadow: 5px 5px 0 var(--amber);
}

.faq-list details p {
  margin: 14px 0 0;
}

.panelist-grid strong,
.panelist-grid span {
  display: block;
}

.panelist-grid span {
  color: var(--muted);
  margin-top: 6px;
}

.table-wrap {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border-bottom: 2px solid rgba(42, 37, 33, 0.18);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9d38a;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.past-talks {
  counter-reset: talks;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.past-talks li {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 58px;
  position: relative;
}

.past-talks li::before {
  background: var(--grape);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--panel);
  content: counter(talks, decimal-leading-zero);
  counter-increment: talks;
  font-size: 0.78rem;
  font-weight: 800;
  height: 30px;
  left: 14px;
  line-height: 26px;
  position: absolute;
  text-align: center;
  top: 14px;
  width: 30px;
}

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

.career-event-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  padding: 16px;
}

.career-event-card.wide {
  grid-column: span 2;
  grid-template-columns: 1fr;
  padding: 18px;
}

.career-event-card.wide .event-poster.poster-image {
  aspect-ratio: 4 / 3;
  max-height: 560px;
}

.career-event-card.wide .event-poster img {
  object-position: center 16%;
  transform: scale(1.03);
}

.panel-card-copy {
  background: var(--panel);
  position: relative;
  z-index: 2;
}

.career-event-card h3 {
  margin: 0;
}

.career-event-card p {
  color: var(--muted);
  margin: 0;
}

.panel-bios-trigger {
  width: fit-content;
}

.panel-poster-button {
  appearance: none;
  background: var(--ink);
  cursor: zoom-in;
  font: inherit;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.panel-poster-button:hover {
  transform: translateY(-2px);
}

.panelist-bio-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.panelist-bio-list p {
  background: rgba(255, 249, 236, 0.72);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
}

.panel-bios-dialog {
  background: transparent;
  border: 0;
  max-width: min(760px, 92vw);
  padding: 0;
}

.poster-dialog {
  background: transparent;
  border: 0;
  max-width: min(760px, 94vw);
  padding: 0;
}

.panel-bios-dialog::backdrop {
  background: rgba(42, 37, 33, 0.62);
}

.poster-dialog::backdrop {
  background: rgba(42, 37, 33, 0.62);
}

.panel-bios-dialog-frame {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.poster-dialog-frame {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  position: relative;
}

.poster-dialog-frame img {
  display: block;
  height: auto;
  width: 100%;
}

.panel-bios-close {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.poster-dialog-close {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.event-poster {
  align-items: end;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: inherit;
  display: flex;
  min-height: 132px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.event-poster.poster-image {
  align-items: stretch;
  aspect-ratio: 1 / 1.414;
  background: var(--ink);
  min-height: 0;
  padding: 0;
}

.event-poster.poster-image::before,
.event-poster.poster-image::after {
  display: none;
}

.event-poster img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.075);
  width: 100%;
}

.career-event-card.wide .event-poster {
  min-height: 0;
}

.committee-table-wrap {
  box-shadow: none;
}

.committee-table {
  width: 100%;
}

.committee-table th,
.committee-table td {
  vertical-align: middle;
}

.event-poster::before,
.event-poster::after {
  border: 2px solid var(--line);
  content: "";
  position: absolute;
}

.event-poster::before {
  background: rgba(255, 249, 236, 0.85);
  height: 54%;
  right: -10%;
  top: 12%;
  transform: rotate(9deg);
  width: 54%;
}

.event-poster::after {
  background: rgba(42, 37, 33, 0.12);
  bottom: -12%;
  height: 42%;
  left: 10%;
  transform: rotate(-8deg);
  width: 58%;
}

.event-poster span {
  background: var(--ink);
  border-radius: 999px;
  color: var(--panel);
  font-weight: 800;
  padding: 8px 10px;
  position: relative;
  z-index: 2;
}

.poster-panel,
.poster-public,
.poster-switch {
  background: var(--amber);
}

.poster-cosmos,
.poster-family,
.poster-unfiltered,
.poster-consult {
  background: var(--grape);
}

.poster-route,
.poster-ai,
.poster-balance {
  background: var(--pink);
}

.poster-music,
.poster-formula,
.poster-quant {
  background: var(--teal);
}

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

.committee-heading {
  margin-top: 42px;
}

.workbook-layout {
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
}

.image-frame {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
  transform: rotate(-1deg);
}

.image-frame img {
  border: 2px solid var(--line);
  border-radius: 6px;
}

.workbook-copy {
  display: grid;
  gap: 16px;
}

.workbook-copy .button {
  justify-self: start;
}

.neurodiversity-hero {
  width: 100%;
}

.neurodiversity-hero h1 {
  max-width: 820px;
}

.single-line-title {
  font-size: clamp(2.45rem, 5.1vw, 4.55rem);
  white-space: nowrap;
}

.neuro-resource-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.neuro-resource-card {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 22px;
}

.neuro-resource-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  max-width: 520px;
}

.neuro-resource-card p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.neuro-resource-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.workbook-resource {
  background: #f8d888;
}

.illustrated-resource {
  background: #f7cfda;
}

.resource-preview {
  align-self: flex-start;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
  padding: 8px;
  transform: rotate(-1.5deg);
  width: min(230px, 72%);
}

.resource-preview img {
  border: 2px solid var(--line);
  border-radius: 6px;
  display: block;
  width: 100%;
}

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

.student-path-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-path-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  text-decoration: none;
}

.student-path-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.student-path-card p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.student-path-card .text-link {
  font-weight: 800;
  margin-top: auto;
}

.student-path-card:hover {
  transform: translateY(-2px);
}

.placeholder-panel {
  max-width: 760px;
}

.site-footer {
  align-items: center;
  border-top: 2px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 900px) {
  .shortlist-ai-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
  }

  .hero,
  .research-layout,
  .research-page-shell,
  .research-role,
  .research-card-grid,
  .translation-list,
  .research-collab-list,
  .astro-grid,
  .astro-about,
  .astro-page-hero,
  .astro-page-shell,
  .workbook-layout,
  .neuro-resource-grid,
  .student-grid,
  .student-path-grid,
  .event-detail-grid,
  .journal-hero,
  .journal-toolbar,
  .method-grid,
  .journal-dashboard-hero,
  .journal-dashboard,
  .shortlist-layout,
  .gateway-grid,
  .login-card {
    grid-template-columns: 1fr;
  }

  .journal-app-nav {
    justify-self: start;
  }

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

  .deck-builder {
    position: static;
  }

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

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

  .import-week-action {
    align-items: flex-start;
    max-width: none;
  }

  .import-week-action small {
    text-align: left;
  }

  .week-note {
    justify-self: start;
  }

  .topic-filters {
    justify-content: flex-start;
  }

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

  .panelist-grid,
  .committee-grid,
  .sponsor-grid,
  .faq-list,
  .event-gallery {
    grid-template-columns: 1fr;
  }

  .career-event-card.wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .upcoming-feature {
    grid-template-columns: 1fr;
  }

  .speaker-placeholder {
    justify-self: start;
  }

  .link-list a {
    grid-template-columns: 42px 1fr;
  }

  .link-list em {
    grid-column: 2;
  }

  .astro-side-nav {
    border-left: 0;
    border-top: 4px solid var(--tomato);
    padding-left: 0;
    padding-top: 12px;
    position: static;
  }

  .astro-side-nav nav {
    column-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .home-page .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 190px);
    text-align: center;
  }

  .home-page .hero-copy {
    max-width: 680px;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 280px;
  }

  .home-page .hero-portrait {
    justify-self: center;
    max-width: min(360px, 62vw);
  }

  .home-page .pronunciation::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-email-link {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    align-self: stretch;
    justify-content: flex-start;
    column-gap: 16px;
  }

  .site-header nav a {
    font-size: 0.9rem;
  }

  .section-band,
  .content-section,
  .intro-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .page-nav-band {
    gap: 8px;
  }

  .hero-portrait {
    max-width: 250px;
  }

  .home-page .hero {
    min-height: calc(100svh - 240px);
  }

  .home-page .hero-portrait {
    max-width: min(280px, 78vw);
    min-width: 0;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.45rem);
  }

  .single-line-title {
    font-size: 7.4vw;
  }

  .interest-map {
    min-height: 520px;
  }

  .interest-node {
    width: var(--mobile-node-size, 108px);
  }

  .node-xl {
    --mobile-node-size: 128px;
  }

  .node-lg {
    --mobile-node-size: 118px;
  }

  .node-md {
    --mobile-node-size: 108px;
  }

  .node-sm {
    --mobile-node-size: 96px;
  }

  .home-page h1 {
    font-size: clamp(3.5rem, 16vw, 4.9rem);
  }

  .journal-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .week-note {
    min-width: 0;
    width: calc(100% - 8px);
  }

  .paper-card {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .paper-number {
    font-size: 1.35rem;
  }

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

  .journal-dashboard-hero h1,
  .weekly-header h1,
  .shortlist-header h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .journal-app-nav {
    align-items: center;
    border-radius: 0;
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    width: 100%;
  }

  .journal-app-nav button {
    border-radius: 0;
    font-size: 0.9rem;
    padding: 8px 0 7px;
  }

  .journal-app-nav .language-toggle {
    border-left: 0;
    margin-left: 0;
  }

  .journal-app-nav .signout-button {
    border-left: 0;
    border-radius: 0;
    margin-left: 0;
  }

  .gateway-language {
    right: 16px;
    top: 40px;
  }

  .gateway-hero {
    padding-top: 100px;
  }

  .entrance-card {
    min-height: 320px;
    padding: 21px;
  }

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

  .category-card {
    min-height: 220px;
  }

  .week-login-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .import-week-copy {
    align-items: flex-start;
  }

  .archive-grid,
  .workflow-grid,
  .explanation-grid {
    grid-template-columns: 1fr;
  }

  .discussion-cell {
    grid-column: auto;
  }

  .week-feature,
  .shortlist-feature {
    min-height: 320px;
    padding: 20px;
  }

  .week-feature-title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .section-heading-row,
  .weekly-title-row,
  .weekly-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-paper-main,
  .ai-explanation {
    padding: 18px;
  }

  .paper-reading-compare {
    grid-template-columns: 1fr;
  }

  .original-abstract-panel {
    border-bottom: 2px solid var(--line);
    border-right: 0;
    padding: 18px;
  }

  .shortlist-row {
    grid-template-columns: 1fr;
  }

  .shortlist-order {
    font-size: 1.25rem;
  }

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