@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700;900&display=swap");

:root {
  --paper: #f4f8ff;
  --paper-deep: #e7eefb;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --ink: #0f1c38;
  --muted: #5e6f90;
  --line: #d5e0f2;
  --line-soft: #e6edf9;
  --green: #1682ff;
  --green-bright: #4aa2ff;
  --orange: #f4517d;
  --orange-soft: #ffe4ee;
  --violet: #6f5df0;
  --amber: #f5a60c;
  --shadow: 0 24px 70px rgba(39, 71, 130, 0.13);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 540px at 86% -10%, rgba(111, 93, 240, 0.11), transparent 62%),
    radial-gradient(780px 480px at -8% 8%, rgba(22, 130, 255, 0.09), transparent 56%),
    radial-gradient(1100px 700px at 50% 118%, rgba(244, 81, 125, 0.08), transparent 64%),
    var(--paper);
  background-attachment: fixed;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(22, 130, 255, 0.24);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 255px 1fr minmax(230px, 310px);
  align-items: center;
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(233, 238, 233, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #f5f8f4;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

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

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand small,
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 3px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--ink);
}

.desktop-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.global-search svg {
  width: 18px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.global-search input::placeholder {
  color: #7e8b82;
}

.app-main {
  width: min(var(--content), calc(100% - 56px));
  min-height: calc(100vh - 77px);
  margin: 0 auto;
  padding: 48px 0 88px;
}

.mobile-nav {
  display: none;
}

.mono-label {
  margin: 0;
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
  gap: 0 52px;
}

.dashboard-lead {
  min-height: 330px;
  padding: 24px 0 46px;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.dashboard-lead h1,
.page-intro h1,
.reader-header h1 {
  margin: 22px 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.dashboard-lead h1 {
  max-width: 780px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.12;
}

.lead-copy {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.primary-link .arrow-icon {
  transition: transform 180ms ease;
}

.primary-link:hover .arrow-icon,
.article-row:hover .arrow-icon,
.plan-list a:hover .arrow-icon,
.roadmap-item:hover .arrow-icon {
  transform: translateX(5px);
}

.today-panel {
  align-self: start;
  min-height: 330px;
  padding: 24px 28px;
  border-top: 4px solid var(--orange);
  background: var(--green);
  color: #f4f7f2;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.today-panel .mono-label {
  color: #c6d7cc;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7815f;
  box-shadow: 0 0 0 5px rgba(231, 129, 95, 0.14);
}

.today-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 20px;
}

.today-number strong {
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
}

.today-number span {
  color: #c6d7cc;
}

.today-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.today-panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.today-panel dt {
  color: #b8cabf;
  font-size: 13px;
}

.today-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-block: 1px solid var(--line);
}

.metric-strip > div {
  position: relative;
  padding: 22px 28px;
}

.metric-strip > div + div {
  border-left: 1px solid var(--line);
}

.metric-strip span,
.metric-strip small {
  color: var(--muted);
  font-size: 12px;
}

.metric-strip span {
  display: block;
  margin-bottom: 9px;
}

.metric-strip strong {
  margin-right: 7px;
  font-family: var(--serif);
  font-size: 31px;
}

.overview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
}

.trend-section,
.focus-section,
.plan-section,
.recent-section,
.project-strip,
.private-summary {
  margin-top: 66px;
}

.trend-section,
.plan-section {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 27px;
}

.section-heading > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-legend span::before {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--green);
  content: "";
}

.chart-legend .legend-bar::before {
  height: 8px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.trend-chart {
  display: block;
  width: 100%;
  min-height: 250px;
  overflow: visible;
}

.chart-axis {
  stroke: var(--line);
}

.chart-bars rect {
  fill: #cbd6ce;
}

.chart-line {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-score-dot {
  fill: var(--orange);
  stroke: var(--surface);
  stroke-width: 2;
}

.chart-labels {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-empty,
.empty-copy {
  color: var(--muted);
  line-height: 1.7;
}

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

.quiet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.quiet-row > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quiet-row strong,
.quiet-row small {
  overflow-wrap: anywhere;
}

.quiet-row small {
  color: var(--muted);
  line-height: 1.55;
}

.public-pill {
  flex: none;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.quick-links-section {
  margin-top: 54px;
  padding: clamp(24px, 2vw, 28px);
}

.quick-links-section .section-heading > div {
  min-width: 0;
}

.quick-link-count {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.quick-links-intro {
  max-width: 760px;
  margin: -3px 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

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

.quick-link-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: rgba(248, 250, 246, 0.66);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  background: var(--surface);
}

.quick-link-card > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.quick-link-card strong {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.quick-link-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.quick-link-card em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.quick-link-directory {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 246, 0.4);
}

.quick-link-directory summary {
  padding: 16px 20px;
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.quick-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  gap: 28px;
  padding: 8px 20px 24px;
}

.quick-link-groups section {
  min-width: 0;
}

.quick-link-groups h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17px;
}

.quick-link-groups section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-link-groups a {
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
}

.quick-link-groups a:hover {
  border-color: var(--green);
  color: var(--green);
}

.quick-link-groups a span {
  color: var(--orange);
}

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

.third-party-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  background:
    linear-gradient(135deg, rgba(40, 89, 67, 0.07), transparent 52%),
    var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.third-party-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.third-party-card > div,
.third-party-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.third-party-card > div span,
.third-party-card > div em,
.third-party-card footer {
  font-family: var(--mono);
  font-size: 10px;
}

.third-party-card > div span {
  color: var(--orange);
  text-transform: uppercase;
}

.third-party-card > div em {
  color: var(--muted);
  font-style: normal;
}

.third-party-card h2 {
  margin: 28px 0 12px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.35;
}

.third-party-card p {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

.third-party-card footer {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.third-party-card footer small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.third-party-card footer strong {
  flex: none;
  color: var(--green);
}

.private-summary {
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.private-summary summary {
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
}

.private-summary[open] summary {
  margin-bottom: 12px;
}

.project-strip,
.opportunity-grid,
.plan-section,
.private-summary,
.recent-section {
  grid-column: 1 / -1;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.opportunity-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 246, 0.45);
}

.opportunity-grid article h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 24px;
}

.opportunity-grid article p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.opportunity-grid article a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.opportunity-grid article a small {
  color: var(--muted);
  font-weight: 400;
}

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

.focus-section {
  min-width: 0;
}

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

.weak-list a {
  display: grid;
  grid-template-columns: 32px minmax(80px, 1fr) minmax(80px, 1fr) 35px;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.weak-list span,
.weak-list em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.weak-list strong {
  font-size: 14px;
}

.weak-list i {
  height: 5px;
  background: linear-gradient(90deg, var(--orange) var(--level), var(--paper-deep) var(--level));
}

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

.plan-list a {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.plan-list time {
  font-family: var(--mono);
  color: var(--orange);
}

.plan-list strong,
.plan-list small {
  display: block;
}

.plan-list strong {
  font-family: var(--serif);
  font-size: 16px;
}

.plan-list small {
  margin-top: 6px;
  color: var(--muted);
}

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

.article-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  transition: background 150ms ease, padding 150ms ease;
}

.article-row:hover {
  padding-inline: 10px;
  background: rgba(248, 250, 246, 0.72);
}

.article-row-index {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

.article-row-main {
  min-width: 0;
}

.article-row-main strong,
.article-row-main small {
  display: block;
}

.article-row-main strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-row-action {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.article-row-main small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 28px 0 52px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.timeline-filters {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.timeline-filters::-webkit-scrollbar {
  display: none;
}

.timeline-filters button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.timeline-filters button strong {
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.timeline-filters button:hover,
.timeline-filters button.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.timeline-stats {
  display: flex;
  flex: none;
  gap: 24px;
  margin: 0;
}

.timeline-stats div {
  min-width: 64px;
}

.timeline-stats dt,
.timeline-stats dd {
  margin: 0;
}

.timeline-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.timeline-stats dd {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

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

.timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
}

.timeline-day::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 118px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-day::after {
  position: absolute;
  top: 43px;
  left: 114px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--paper);
  background: var(--orange);
  content: "";
}

.timeline-date time,
.timeline-date strong,
.timeline-date span,
.timeline-date small {
  display: block;
}

.timeline-date strong {
  font-family: var(--serif);
  font-size: 27px;
}

.timeline-date span {
  margin-top: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.timeline-date small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.timeline-day-content {
  min-width: 0;
  padding-left: 30px;
}

.timeline-day-content > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  margin-bottom: 8px;
}

.timeline-day-content > header > strong {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.timeline-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.timeline-day-summary span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.timeline-day-summary span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--green);
  content: "";
  vertical-align: 1px;
}

.timeline-day-summary span[data-category="questions"]::before,
.timeline-day-summary span[data-category="opportunity"]::before {
  background: var(--orange);
}

.timeline-more {
  border-bottom: 1px solid var(--line-soft);
}

.timeline-more summary {
  padding: 15px 2px;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.timeline-more[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.timeline-empty {
  padding: 44px 0;
}

.score {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.score-low {
  border-color: var(--orange);
  color: var(--orange);
}

.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  min-height: 230px;
  padding: 22px 0 42px;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin: 13px 0 10px;
  font-size: clamp(42px, 5vw, 68px);
}

.page-intro > div:first-child > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.page-count {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 8px;
}

.page-count strong {
  font-family: var(--serif);
  font-size: 56px;
}

.page-count span {
  color: var(--muted);
  font-size: 13px;
}

.topic-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 50px;
  border: 1px solid var(--line);
}

.topic-index a {
  display: flex;
  gap: 14px;
  padding: 11px 15px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.topic-index a:hover,
.topic-index a.active {
  background: var(--green);
  color: white;
}

.topic-index span {
  font-family: var(--mono);
}

.directory-groups {
  display: grid;
  gap: 58px;
}

.learning-directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 50px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.learning-directory-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.learning-directory-tools p strong {
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 500;
}

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

.learning-directory-actions button,
.learning-group-toggle {
  border: 1px solid var(--line);
  background: rgba(248, 250, 246, 0.55);
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.learning-directory-actions button {
  padding: 8px 13px;
}

.learning-directory-actions button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.learning-directory-actions button:hover,
.learning-group-toggle:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.column-directory {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.column-group {
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
  animation-delay: var(--delay);
}

.column-group > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.column-group > header > span,
.column-group > header > strong {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

.column-group h2 {
  margin: -7px 0 7px;
  font-family: var(--serif);
  font-size: 32px;
}

.column-group header p,
.column-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.column-empty {
  padding: 20px 0 0 60px;
}

.directory-group {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 50px;
  scroll-margin-top: 110px;
}

.directory-group > header {
  position: sticky;
  top: 105px;
  align-self: start;
}

.directory-group > header h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
}

.directory-group > header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.learning-group-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.learning-group-title h2 {
  margin-bottom: 8px;
}

.learning-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 9px 11px;
  text-align: left;
}

.learning-group-toggle [data-learning-toggle-label] {
  flex: 1;
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
}

.learning-group-toggle-icon {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
}

.learning-group-toggle-icon::before,
.learning-group-toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.learning-group-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.learning-group:not(.is-collapsed) .learning-group-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.learning-group.is-collapsed .article-list > :nth-child(n + 6) {
  display: none;
}

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

.company-block {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 246, 0.45);
  animation-delay: var(--delay);
}

.company-block > header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 90px;
}

.company-block > header > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

.company-block h2 {
  margin: -5px 0 5px;
  font-family: var(--serif);
  font-size: 28px;
}

.company-block header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.expand-list {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  padding: 10px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
}

.interview-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 32px 0 56px;
  border-block: 1px solid var(--line);
}

.interview-summary div {
  padding: 20px 24px;
}

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

.interview-summary strong,
.interview-summary span {
  display: block;
}

.interview-summary strong {
  font-family: var(--serif);
  font-size: 30px;
}

.interview-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.interview-days {
  display: grid;
  gap: 52px;
}

.interview-day {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 46px;
}

.interview-day > header {
  position: sticky;
  top: 105px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.interview-day time {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.interview-day header div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.interview-day header strong {
  font-family: var(--mono);
  font-size: 18px;
}

.interview-day header span {
  margin-right: 12px;
  color: var(--muted);
  font-size: 11px;
}

.roadmap-line {
  position: relative;
  max-width: 980px;
  margin: 54px auto 0;
}

.roadmap-line::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 1px;
  background: var(--line);
  content: "";
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  color: inherit;
  text-decoration: none;
  animation-delay: var(--delay);
}

.roadmap-item > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--green);
  background: var(--paper);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.roadmap-item:hover > span {
  background: var(--green);
  color: white;
}

.roadmap-item p {
  margin: 0 0 7px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.timeline-load-more {
  display: block;
  min-width: 220px;
  min-height: 44px;
  margin: 36px auto 0;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.timeline-load-more:hover {
  background: var(--green);
  color: white;
}

.roadmap-item h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
}

.roadmap-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.reader {
  display: grid;
  grid-template-columns: 230px minmax(0, 860px);
  justify-content: center;
  gap: 64px;
}

.reader-rail {
  position: sticky;
  top: 115px;
  align-self: start;
  max-height: calc(100vh - 145px);
  overflow: auto;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.back-link {
  display: block;
  margin-bottom: 34px;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.reader-rail nav {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.reader-rail nav a {
  overflow: hidden;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-rail nav a:hover {
  color: var(--green);
}

.reader-rail nav .toc-sub {
  padding-left: 12px;
}

.mobile-toc {
  display: none;
}

.reader-header {
  padding: 22px 0 38px;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.reader-header h1 {
  margin: 18px 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.22;
}

.reader-header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.reader-header > div > * + *::before {
  margin-right: 10px;
  color: var(--line);
  content: "/";
}

.reader-header .score::before {
  display: none;
}

.comment-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.comment-jump span {
  padding: 3px 7px;
  background: var(--green);
  color: white;
}

.comment-jump:hover {
  background: rgba(36, 83, 65, 0.06);
}

.article-body {
  padding: 36px 0 70px;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: 105px;
  font-family: var(--serif);
  line-height: 1.45;
}

.article-body h1 {
  margin: 1.7em 0 0.7em;
  font-size: 36px;
}

.article-body h2 {
  margin: 2.1em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 27px;
}

.article-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: 21px;
}

.article-body p,
.article-body li {
  color: #29362f;
}

.article-body a {
  color: var(--green);
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.article-body pre,
.article-body code {
  font-family: var(--mono);
}

.article-body code {
  padding: 0.15em 0.35em;
  background: #dfe6df;
  color: #204b37;
  font-size: 0.88em;
}

.article-body pre {
  overflow: auto;
  margin: 1.6em 0;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: #17231d;
  color: #e5ece5;
  line-height: 1.7;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  background: rgba(248, 250, 246, 0.65);
}

.article-body blockquote p {
  margin: 0;
  color: var(--muted);
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 13px;
}

.article-body th,
.article-body td {
  min-width: 120px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-body th {
  background: var(--paper-deep);
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.comments-section {
  padding: 42px 0 20px;
  border-top: 1px solid var(--line);
}

.comments-section > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}

.comments-section h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 30px;
}

.comments-section > header > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.comment-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.comment-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.comment-steps span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--green);
  color: white;
  font-family: var(--mono);
  font-size: 9px;
}

.comments-container {
  min-height: 120px;
}

.comments-container .giscus,
.comments-container .giscus-frame {
  width: 100%;
}

.about-page {
  padding-top: 2px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 52px;
  padding: 34px 0 46px;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}

.about-lead h1 {
  max-width: 900px;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.about-lead > p:not(.mono-label) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.about-actions a:first-child {
  background: var(--green);
  color: #f4f7f2;
}

.about-actions a:hover .arrow-icon {
  transform: translateX(4px);
}

.about-signal {
  align-self: start;
  padding: 26px 28px;
  border-top: 4px solid var(--orange);
  background: var(--green);
  color: #f4f7f2;
  box-shadow: var(--shadow);
}

.about-signal .mono-label {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #c6d7cc;
}

.about-signal div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.about-signal strong {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.about-signal span {
  color: #c6d7cc;
  font-size: 13px;
}

.about-body {
  width: min(900px, 100%);
  margin: 64px auto 0;
}

.loading-state,
.error-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 55vh;
  text-align: center;
}

.loading-state span {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.loading-state p,
.error-state p {
  color: var(--muted);
}

.error-state > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--serif);
  font-size: 25px;
}

.error-state h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
}

.error-state a,
.error-state button {
  margin-top: 12px;
  border: 0;
  padding: 11px 18px;
  background: var(--green);
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.reveal {
  animation: reveal 520ms both cubic-bezier(0.2, 0.7, 0.2, 1);
  animation-delay: var(--delay, 0ms);
}

.delay-1 {
  animation-delay: 90ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 220px 1fr 220px;
  }

  .desktop-nav a {
    padding-inline: 10px;
  }

  .dashboard {
    gap: 0 28px;
  }

  .directory-group,
  .interview-day {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header {
    grid-template-columns: 1fr minmax(180px, 240px);
    padding-inline: 22px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: auto;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(248, 250, 246, 0.96);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    display: grid;
    flex: 1 0 76px;
    place-items: center;
    gap: 2px;
    min-height: 50px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    white-space: nowrap;
  }

  .mobile-nav a span {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav a.active {
    color: var(--green);
    font-weight: 700;
  }

  .dashboard {
    grid-template-columns: 1.35fr 0.85fr;
  }

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

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

  .dashboard-lead h1 {
    font-size: 45px;
  }

  .today-panel {
    padding-inline: 20px;
  }

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

  .reader {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background-size: 18px 18px;
  }

  .site-header {
    grid-template-columns: 1fr 44px;
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

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

  .brand small {
    display: none;
  }

  .global-search {
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 10px;
  }

  .global-search input {
    position: fixed;
    z-index: 30;
    top: 64px;
    right: 12px;
    left: 12px;
    display: none;
    width: calc(100% - 24px);
    border: 1px solid var(--line);
    padding: 13px 15px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .global-search:focus-within input {
    display: block;
  }

  .app-main {
    width: calc(100% - 28px);
    min-height: calc(100vh - 64px);
    padding: 24px 0 46px;
  }

  .mobile-nav a {
    flex-basis: 70px;
  }

  .dashboard {
    display: block;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 0 32px;
  }

  .about-lead h1 {
    margin: 16px 0;
    font-size: clamp(40px, 12vw, 58px);
  }

  .about-lead > p:not(.mono-label) {
    font-size: 15px;
  }

  .about-signal {
    padding: 20px;
  }

  .about-signal strong {
    font-size: 42px;
  }

  .about-body {
    margin-top: 38px;
  }

  .column-group > header {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .column-group h2 {
    font-size: 26px;
  }

  .column-empty {
    padding-left: 38px;
  }

  .dashboard-lead {
    min-height: auto;
    padding: 18px 0 32px;
  }

  .dashboard-lead h1 {
    margin: 15px 0;
    font-size: clamp(38px, 12vw, 51px);
  }

  .lead-copy {
    font-size: 14px;
  }

  .primary-link {
    margin-top: 22px;
    font-size: 14px;
  }

  .today-panel {
    min-height: 0;
    margin-top: 16px;
    padding: 20px;
  }

  .today-number {
    margin: 18px 0 10px;
  }

  .today-number strong {
    font-size: 62px;
  }

  .today-panel dl {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .today-panel dl div {
    display: block;
    padding: 10px 0 0;
  }

  .today-panel dd {
    margin-top: 5px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

  .metric-strip > div {
    padding: 16px 12px;
  }

  .metric-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metric-strip strong {
    font-size: 27px;
  }

  .quick-links-section {
    margin-top: 42px;
    padding: 20px 18px;
  }

  .quick-links-section .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quick-link-grid,
  .quick-link-groups,
  .third-party-grid {
    grid-template-columns: 1fr;
  }

  .quick-link-card {
    min-height: 0;
  }

  .third-party-grid {
    margin-top: 32px;
  }

  .third-party-card {
    min-height: 230px;
    padding: 22px 18px;
  }

  .third-party-card h2 {
    margin-top: 22px;
    font-size: 24px;
  }

  .trend-section,
  .focus-section,
  .plan-section,
  .recent-section,
  .project-strip,
  .private-summary {
    margin-top: 45px;
  }

  .quiet-row {
    align-items: flex-start;
    gap: 12px;
  }

  .trend-chart {
    min-width: 610px;
    min-height: 195px;
  }

  .trend-section {
    overflow-x: auto;
  }

  .trend-section .section-heading {
    position: sticky;
    left: 0;
  }

  .chart-legend {
    display: none;
  }

  .weak-list a {
    grid-template-columns: 26px minmax(80px, 1fr) 82px 25px;
    gap: 8px;
  }

  .plan-section,
  .recent-section {
    grid-column: auto;
  }

  .page-intro {
    display: block;
    min-height: 0;
    padding: 17px 0 28px;
  }

  .page-intro h1 {
    font-size: 42px;
  }

  .page-intro > div:first-child > p:last-child {
    font-size: 14px;
  }

  .page-count {
    margin-top: 22px;
  }

  .page-count strong {
    font-size: 40px;
  }

  .topic-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 18px -14px 36px;
    padding-left: 14px;
    border-inline: 0;
  }

  .topic-index a {
    flex: none;
  }

  .directory-groups {
    gap: 46px;
  }

  .learning-directory-tools {
    align-items: flex-start;
    margin: 18px 0 36px;
  }

  .learning-directory-tools p {
    max-width: 180px;
    line-height: 1.6;
  }

  .learning-directory-actions {
    flex: none;
  }

  .learning-directory-actions button {
    padding-inline: 10px;
  }

  .directory-group,
  .interview-day {
    display: block;
  }

  .directory-group > header,
  .interview-day > header {
    position: static;
    margin-bottom: 14px;
  }

  .directory-group > header h2 {
    font-size: 25px;
  }

  .learning-group-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .learning-group-toggle {
    min-width: 142px;
  }

  .article-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 70px;
  }

  .article-row-main strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .timeline-toolbar {
    display: block;
    margin: 18px 0 34px;
  }

  .timeline-filters {
    margin-inline: -14px;
    padding-inline: 6px;
  }

  .timeline-filters button {
    flex: none;
    padding-inline: 12px;
  }

  .timeline-stats {
    justify-content: space-between;
    margin-top: 16px;
    padding-inline: 4px;
  }

  .timeline-day {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 25px 0 32px;
  }

  .timeline-day::before {
    left: 67px;
  }

  .timeline-day::after {
    top: 34px;
    left: 63px;
  }

  .timeline-date strong {
    font-size: 20px;
  }

  .timeline-day-content {
    padding-left: 18px;
  }

  .timeline-day-content > header {
    align-items: flex-start;
  }

  .timeline-day-summary {
    gap: 6px 12px;
  }

  .article-row-action {
    font-size: 9px;
  }

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

  .company-block {
    margin-inline: -2px;
    padding: 18px 14px;
  }

  .interview-summary {
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 0 42px;
  }

  .interview-summary div {
    padding: 14px 12px;
  }

  .interview-summary div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .interview-summary div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .interview-day > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .interview-day time {
    font-size: 19px;
  }

  .roadmap-line {
    margin-top: 28px;
  }

  .roadmap-item {
    grid-template-columns: 48px 1fr 20px;
    gap: 13px;
    min-height: 128px;
  }

  .roadmap-line::before {
    left: 23px;
  }

  .roadmap-item > span {
    width: 48px;
    height: 48px;
  }

  .roadmap-item h2 {
    font-size: 18px;
  }

  .reader {
    display: block;
  }

  .reader-rail {
    position: static;
    max-height: none;
    margin-bottom: 18px;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reader-rail .mono-label,
  .reader-rail nav {
    display: none;
  }

  .mobile-toc {
    display: block;
    margin-top: 20px;
    border-block: 1px solid var(--line);
  }

  .mobile-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: var(--green);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
  }

  .mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc summary strong {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
  }

  .mobile-toc nav {
    display: grid;
    gap: 10px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 4px 0 18px;
  }

  .mobile-toc nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.55;
  }

  .mobile-toc nav .toc-sub {
    padding-left: 14px;
  }

  .back-link {
    margin: 0;
  }

  .reader-header {
    padding: 18px 0 28px;
  }

  .reader-header h1 {
    font-size: 37px;
  }

  .comment-jump {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }

  .article-body {
    padding-top: 26px;
    font-size: 15px;
    line-height: 1.9;
  }

  .article-body h1 {
    font-size: 29px;
  }

  .article-body h2 {
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .comments-section {
    padding-top: 32px;
  }

  .comments-section > header {
    display: block;
    margin-bottom: 20px;
  }

  .comments-section h2 {
    font-size: 25px;
  }

  .comments-section > header > p {
    margin-top: 12px;
    text-align: left;
  }

  .comment-steps {
    grid-template-columns: 1fr;
  }
}

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

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

/* 2026 editorial redesign: personal archive rather than interview dashboard. */
.site-header {
  grid-template-columns: 190px minmax(420px, 1fr) auto;
  min-height: 72px;
  padding-inline: max(24px, calc((100vw - var(--content)) / 2));
  border-color: rgba(25, 24, 22, 0.18);
  background: rgba(243, 239, 231, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.desktop-nav {
  gap: clamp(12px, 2.1vw, 34px);
}

.desktop-nav a {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav a::after {
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--orange);
}

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

.global-search {
  width: 116px;
  min-height: 36px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(25, 24, 22, 0.18);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.58);
  transition: width 180ms ease, background 180ms ease, border-color 180ms ease;
}

.global-search:focus-within {
  width: 180px;
  border-color: var(--green);
  background: var(--surface);
}

.global-search svg {
  width: 15px;
  stroke: var(--ink);
}

.global-search input {
  display: block;
  min-width: 0;
  font-size: 12px;
}

.nav-more,
.mobile-menu {
  position: relative;
}

.nav-more summary,
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-more summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.nav-more summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav-more summary::after {
  width: 5px;
  height: 5px;
  margin: -3px 0 0 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav-more[open] summary,
.nav-more summary:hover {
  color: var(--ink);
}

.nav-more nav,
.mobile-menu nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(25, 24, 22, 0.18);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-more nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.nav-more nav a:hover,
.nav-more nav a.active {
  background: var(--paper);
  color: var(--green);
}

.nav-more nav a span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
}

.mobile-menu {
  display: none;
}

.app-main {
  width: min(var(--content), calc(100% - 48px));
  min-height: calc(100vh - 73px);
  padding: 54px 0 104px;
}

.mono-label {
  color: var(--green);
}

.home-page {
  overflow: clip;
}

.home-hero {
  position: relative;
  border-top: 1px solid var(--ink);
}

.home-hero::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: min(20vw, 220px);
  height: 5px;
  background: var(--orange);
  content: "";
  transform-origin: left;
  animation: draw-line 700ms 120ms both ease-out;
}

@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.home-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.68fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: end;
  padding: clamp(72px, 9vw, 120px) 0 62px;
}

.home-intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 6.4vw, 88px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.home-intro h1 em {
  color: var(--orange);
  font-style: normal;
}

.home-deck {
  max-width: 700px;
  margin: 32px 0 0;
  color: #514e48;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.9;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.home-button-primary {
  background: var(--ink);
  color: var(--surface);
}

.home-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.now-card {
  position: relative;
  min-height: 445px;
  padding: 30px;
  overflow: hidden;
  background: #172b4a;
  color: #f9f6ef;
  box-shadow: 18px 18px 0 rgba(189, 75, 50, 0.13);
}

.now-card::after {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.035), 0 0 0 64px rgba(255, 255, 255, 0.025);
  content: "";
}

.now-card > header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #b9c8dc;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.now-card h2 {
  position: relative;
  z-index: 1;
  margin: 27px 0 20px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.45;
}

.now-card ol {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-card li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.now-card li > span {
  padding-top: 2px;
  color: #e18a72;
  font-family: var(--mono);
  font-size: 9px;
}

.now-card li a {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.now-card li strong {
  font-size: 14px;
}

.now-card li small {
  overflow: hidden;
  color: #aebed1;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-link {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 0.55fr)) minmax(260px, 1.6fr);
  border-block: 1px solid var(--line);
}

.home-facts > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 23px 24px 23px 0;
}

.home-facts > div + div,
.home-facts > p {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.home-facts strong {
  font-family: var(--serif);
  font-size: 28px;
}

.home-facts span,
.home-facts p {
  color: var(--muted);
  font-size: 11px;
}

.home-facts p {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1.7;
}

.home-projects,
.home-editorial,
.home-reading,
.home-closing {
  margin-top: clamp(88px, 10vw, 132px);
}

.home-section-label {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.home-section-label > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.home-section-label > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.home-section-label > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.36);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 310px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.project-card:hover {
  z-index: 1;
  background: var(--surface);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card:nth-child(3) {
  margin: -1px 0;
  background: var(--ink);
  color: var(--surface);
}

.project-card:nth-child(3) small,
.project-card:nth-child(3) footer em {
  color: #bbb5aa;
}

.project-card:nth-child(3) .project-card-index,
.project-card:nth-child(3) > div p {
  color: #e18a72;
}

.project-card:nth-child(3):hover {
  background: #172b4a;
}

.project-card-index {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.project-card > div {
  align-self: center;
}

.project-card > div p {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
}

.project-card h2 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: 26px;
}

.project-card small {
  color: var(--muted);
  line-height: 1.7;
}

.project-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid currentColor;
}

.project-card footer em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
}

.featured-writing {
  display: grid;
  align-content: end;
  min-height: 500px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.featured-writing > p {
  margin: 0 auto auto 0;
  color: #bdcce4;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.featured-writing h2 {
  max-width: 560px;
  margin: 82px 0 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.35;
}

.featured-writing > span {
  display: -webkit-box;
  max-width: 580px;
  overflow: hidden;
  color: #d6dfed;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-writing > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.writing-index {
  border-top: 1px solid var(--line);
}

.writing-index > a {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease;
}

.writing-index > a:hover {
  padding-inline: 17px;
  background: rgba(255, 253, 248, 0.72);
}

.writing-index > a > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
}

.writing-index > a > div {
  display: grid;
  gap: 5px;
}

.writing-index strong {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.writing-index small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.writing-index .arrow-icon {
  color: var(--green);
}

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

.reading-shelf > a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 300px;
  padding: 24px 0 0;
  border-top: 4px solid var(--orange);
  color: var(--ink);
  text-decoration: none;
}

.reading-shelf > a:nth-child(2) {
  border-color: var(--green);
}

.reading-shelf > a:nth-child(3) {
  border-color: var(--ink);
}

.reading-shelf > a > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.reading-shelf h2 {
  margin: 27px 0 14px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
}

.reading-shelf p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.reading-shelf footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reading-shelf footer small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.home-closing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 360px;
  background: var(--ink);
  color: var(--surface);
}

.daily-note,
.home-closing-copy {
  padding: clamp(30px, 5vw, 62px);
}

.daily-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.daily-note .mono-label {
  color: #d1846e;
}

.daily-note blockquote {
  margin: 44px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.55;
}

.daily-note button {
  width: fit-content;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid #aaa59b;
  background: transparent;
  color: #aaa59b;
  cursor: pointer;
  font-size: 11px;
}

.home-closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-closing-copy > p {
  margin: 0 0 24px;
  color: #8498b8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.home-closing-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.45;
}

.home-closing-copy a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(320px, 100%);
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

/* Shared section and article surfaces inherit the same publication language. */
.page-intro {
  min-height: 220px;
  padding: 38px 0 44px;
  border-top: 5px solid var(--orange);
  border-bottom-color: var(--ink);
}

.page-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(44px, 5vw, 68px);
}

.page-intro > div > p:not(.mono-label) {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-count strong {
  color: var(--green);
}

.directory-group,
.quick-link-directory,
.third-party-card,
.opportunity-grid article {
  background: rgba(255, 253, 248, 0.58);
}

.article-row {
  transition: padding 180ms ease, background 180ms ease;
}

.article-row:hover {
  padding-inline: 12px;
  background: rgba(255, 253, 248, 0.75);
}

.article-row-main strong,
.directory-group h2,
.section-heading h2 {
  font-family: var(--serif);
}

.quick-link-card,
.third-party-card,
.opportunity-grid article {
  border-top-color: var(--green);
}

.practice-pulse {
  margin-top: 62px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.practice-pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.7fr);
  gap: 38px;
  align-items: center;
}

.practice-pulse .trend-chart {
  min-height: 210px;
}

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

.practice-pulse dl div {
  min-height: 104px;
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-pulse dt {
  color: var(--muted);
  font-size: 11px;
}

.practice-pulse dd {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.practice-pulse dd small {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
}

.reader-header {
  padding-top: 34px;
  border-top: 5px solid var(--orange);
}

.reader.has-no-toc .reader-rail > .mono-label,
.reader.has-no-toc #article-toc {
  display: none;
}

.reader-header h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.28;
}

.article-body {
  color: #25231f;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
}

.article-body a {
  color: var(--green);
  text-decoration-color: rgba(33, 79, 155, 0.38);
}

.article-body blockquote {
  border-left-color: var(--orange);
  background: rgba(255, 253, 248, 0.7);
}

.mobile-nav {
  display: none !important;
}

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

  .desktop-nav {
    gap: 18px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
    gap: 48px;
  }

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

  .project-card:nth-child(3) {
    margin: 0;
  }

  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .nav-more {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu > summary {
    display: grid;
    place-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(25, 24, 22, 0.25);
    border-radius: 50%;
  }

  .mobile-menu > summary span {
    display: block;
    width: 14px;
    height: 1px;
    background: var(--ink);
  }

  .mobile-menu > summary span + span {
    margin-top: 4px;
  }

  .mobile-menu[open] > summary span:first-child {
    transform: translateY(2.5px) rotate(45deg);
  }

  .mobile-menu[open] > summary span:last-child {
    transform: translateY(-2.5px) rotate(-45deg);
  }

  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(480px, calc(100vw - 32px));
    padding: 12px;
  }

  .mobile-menu nav a {
    padding: 12px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 16px;
  }

  .mobile-menu nav a:hover,
  .mobile-menu nav a.active {
    background: var(--paper);
    color: var(--green);
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 78px;
  }

  .now-card {
    width: min(620px, 100%);
    min-height: 410px;
  }

  .home-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-facts > p {
    grid-column: 1 / -1;
    min-height: 58px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .editorial-grid,
  .home-closing {
    grid-template-columns: 1fr;
  }

  .featured-writing {
    min-height: 430px;
  }

  .reading-shelf {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .reading-shelf > a {
    min-height: 0;
  }

  .daily-note {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .practice-pulse-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .app-main {
    width: min(100% - 34px, var(--content));
    padding-top: 36px;
    padding-bottom: 76px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 64px;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    overflow: visible;
    border-top: 1px solid rgba(25, 24, 22, 0.2);
    background: rgba(250, 247, 241, 0.96);
    box-shadow: 0 -12px 36px rgba(35, 30, 24, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 50px;
    padding: 4px 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
  }

  .mobile-nav a span {
    color: #969087;
    font-family: var(--mono);
    font-size: 8px;
  }

  .mobile-nav a.active {
    background: transparent;
    color: var(--ink);
  }

  .mobile-nav a.active span {
    color: var(--orange);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .global-search {
    width: 94px;
    min-height: 36px;
    padding-inline: 10px;
  }

  .global-search input {
    position: static;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .global-search:focus-within {
    width: 132px;
  }

  .mobile-menu nav {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .app-main {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .home-edition span:last-child {
    display: none;
  }

  .home-hero-grid {
    gap: 42px;
    padding: 58px 0 42px;
  }

  .home-intro h1 {
    font-size: clamp(31px, 10.5vw, 62px);
    letter-spacing: -0.045em;
  }

  .home-deck {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.85;
  }

  .home-actions {
    margin-top: 28px;
  }

  .home-button {
    min-height: 44px;
  }

  .now-card {
    min-height: 430px;
    padding: 24px;
    box-shadow: 10px 10px 0 rgba(189, 75, 50, 0.12);
  }

  .now-card h2 {
    font-size: 27px;
  }

  .now-link {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

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

  .home-facts > div {
    display: grid;
    gap: 3px;
    padding: 17px 9px;
    text-align: center;
  }

  .home-facts > div + div {
    padding-left: 9px;
  }

  .home-facts strong {
    font-size: 23px;
  }

  .home-facts span {
    font-size: 9px;
  }

  .home-facts > p {
    justify-content: center;
    padding-inline: 10px;
    text-align: center;
  }

  .home-projects,
  .home-editorial,
  .home-reading,
  .home-closing {
    margin-top: 78px;
  }

  .home-section-label {
    grid-template-columns: 26px 1fr;
    gap: 8px;
  }

  .home-section-label > p {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .home-section-label > a {
    grid-column: 2;
    width: fit-content;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 250px;
  }

  .project-card + .project-card,
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .featured-writing {
    min-height: 430px;
    padding: 28px;
  }

  .featured-writing h2 {
    margin-top: 70px;
    font-size: 29px;
  }

  .writing-index > a {
    grid-template-columns: 27px 1fr 17px;
    gap: 9px;
    min-height: 88px;
    padding-inline: 2px;
  }

  .writing-index strong {
    font-size: 15px;
  }

  .reading-shelf h2 {
    font-size: 21px;
  }

  .home-closing {
    margin-right: -14px;
    margin-left: -14px;
  }

  .daily-note,
  .home-closing-copy {
    padding: 34px 28px;
  }

  .page-intro {
    min-height: 0;
    padding: 28px 0 34px;
  }

  .page-intro h1,
  .reader-header h1 {
    font-size: 38px;
  }

  .practice-pulse {
    margin-top: 46px;
    padding: 20px 16px;
  }

  .practice-pulse .section-heading {
    display: block;
  }

  .practice-pulse .chart-legend {
    margin-top: 14px;
  }
}

@media (max-width: 360px) {
  .brand > span:last-child {
    display: none;
  }

  .global-search:focus-within {
    width: 126px;
  }

  .home-intro h1 {
    font-size: clamp(29px, 9.5vw, 34px);
  }

  .home-button {
    width: 100%;
  }

  .now-card {
    min-height: 450px;
    padding-inline: 20px;
  }

  .now-link {
    right: 20px;
    left: 20px;
  }

  .project-card,
  .featured-writing {
    padding-inline: 22px;
  }

  .practice-pulse dl {
    grid-template-columns: 1fr;
  }
}

/* Authentic ink theme: handscroll composition, calligraphy, album leaves, and restrained seals. */
@font-face {
  font-family: "Ma Shan Zheng Local";
  src: url("./assets/ink/ma-shan-zheng-subset.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

.brand-mark-ink,
.ink-edition,
.ink-hero-title,
.ink-section-title,
.ink-art-credit {
  display: none;
}

.editorial-section-title,
.ink-section-title {
  font: inherit;
  font-weight: inherit;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px 0 8px;
  border: 1px solid rgba(25, 24, 22, 0.2);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.54);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.theme-toggle-glyph {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.theme-toggle-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

html[data-theme="ink"] {
  --paper: #e9e0cd;
  --paper-deep: #d8c9ac;
  --surface: #f4eddf;
  --ink: #171714;
  --muted: #665f52;
  --line: #aa9c83;
  --line-soft: #cdc0a7;
  --green: #465347;
  --green-bright: #5e6d5f;
  --orange: #982f27;
  --orange-soft: #dec1b5;
  --shadow: 0 28px 70px rgba(46, 38, 27, 0.12);
  --calligraphy: "Ma Shan Zheng Local", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --serif: "STKaiti", "Kaiti SC", "KaiTi", "Noto Serif SC", "Songti SC", serif;
  --sans: "Songti SC", "Noto Serif SC", "PingFang SC", serif;
}

html[data-theme="ink"] body {
  color: var(--ink);
  background:
    repeating-linear-gradient(2deg, rgba(96, 77, 49, 0.018) 0, rgba(96, 77, 49, 0.018) 1px, transparent 1px, transparent 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 28%, rgba(77, 63, 42, 0.025) 76%, transparent),
    var(--paper);
  font-family: var(--sans);
  letter-spacing: 0.018em;
}

html[data-theme="ink"] ::selection {
  background: rgba(152, 47, 39, 0.2);
}

html[data-theme="ink"] :focus-visible {
  outline-color: rgba(152, 47, 39, 0.44);
}

html[data-theme="ink"] .site-header {
  border-bottom: 1px solid rgba(64, 53, 38, 0.3);
  background: rgba(233, 224, 205, 0.91);
  box-shadow: 0 10px 30px rgba(51, 42, 30, 0.035);
  backdrop-filter: blur(14px) saturate(0.8);
}

html[data-theme="ink"] .brand-mark {
  border: 2px solid var(--orange);
  border-radius: 2px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(152, 47, 39, 0.2);
  color: var(--orange);
  transform: rotate(-2deg);
}

html[data-theme="ink"] .brand-mark-default {
  display: none;
}

html[data-theme="ink"] .brand-mark-ink {
  display: block;
  font-family: var(--calligraphy);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
}

html[data-theme="ink"] .brand strong {
  font-family: var(--calligraphy);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

html[data-theme="ink"] .brand small {
  color: rgba(23, 23, 20, 0.55);
}

html[data-theme="ink"] .desktop-nav a {
  color: #4f493f;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}

html[data-theme="ink"] .desktop-nav a::after {
  bottom: 15px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 12%, var(--orange) 82%, transparent);
  transform: scaleX(0.25) rotate(-1.5deg);
}

html[data-theme="ink"] .desktop-nav a.active::after {
  transform: scaleX(1) rotate(-1.5deg);
}

html[data-theme="ink"] .global-search {
  border-color: rgba(64, 53, 38, 0.28);
  border-radius: 1px;
  background: rgba(244, 237, 223, 0.3);
}

html[data-theme="ink"] .global-search:focus-within {
  border-color: var(--orange);
  background: rgba(244, 237, 223, 0.86);
}

html[data-theme="ink"] .global-search svg {
  stroke: var(--ink);
}

html[data-theme="ink"] .theme-toggle {
  border: 1px solid var(--orange);
  border-radius: 2px;
  background: transparent;
  color: var(--orange);
}

html[data-theme="ink"] .theme-toggle-glyph {
  border: 0;
  border-radius: 1px;
  background: var(--orange);
  color: var(--surface);
  font-family: var(--calligraphy);
  font-size: 14px;
  font-weight: 400;
  transform: rotate(-3deg);
}

html[data-theme="ink"] .theme-toggle:hover {
  background: rgba(152, 47, 39, 0.08);
}

html[data-theme="ink"] .nav-more summary,
html[data-theme="ink"] .nav-more nav,
html[data-theme="ink"] .mobile-menu nav {
  font-family: var(--serif);
}

html[data-theme="ink"] .nav-more nav,
html[data-theme="ink"] .mobile-menu nav {
  border-color: var(--line);
  border-radius: 0;
  background:
    repeating-linear-gradient(2deg, rgba(96, 77, 49, 0.018) 0 1px, transparent 1px 5px),
    var(--surface);
  box-shadow: 0 20px 50px rgba(49, 40, 27, 0.15);
}

html[data-theme="ink"] .app-main {
  width: min(1360px, calc(100% - 56px));
  padding-top: 22px;
}

html[data-theme="ink"] .home-page {
  overflow: visible;
}

html[data-theme="ink"] .home-hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  border-top: 0;
  isolation: isolate;
}

html[data-theme="ink"] .home-hero::before {
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0 9%, rgba(23, 23, 20, 0.66) 9% 100%);
  animation: none;
  transform: none;
}

html[data-theme="ink"] .home-hero::after {
  position: absolute;
  z-index: 0;
  top: 54px;
  right: -4%;
  bottom: 94px;
  left: -4%;
  background:
    linear-gradient(180deg, var(--paper) 0, rgba(233, 224, 205, 0.74) 8%, transparent 28%),
    linear-gradient(90deg, rgba(233, 224, 205, 0.8), transparent 12%, transparent 88%, rgba(233, 224, 205, 0.72)),
    url("./assets/ink/wang-hui-landscape.webp") center bottom / cover no-repeat;
  content: "";
  filter: grayscale(0.22) contrast(1.04);
  opacity: 0.86;
  pointer-events: none;
  mix-blend-mode: multiply;
}

html[data-theme="ink"] .home-hero > * {
  position: relative;
  z-index: 1;
}

html[data-theme="ink"] .home-edition {
  padding-top: 17px;
  color: rgba(23, 23, 20, 0.58);
  letter-spacing: 0.16em;
}

html[data-theme="ink"] .editorial-edition,
html[data-theme="ink"] .editorial-hero-title,
html[data-theme="ink"] .editorial-section-title {
  display: none;
}

html[data-theme="ink"] .ink-edition,
html[data-theme="ink"] .ink-section-title {
  display: inline;
}

html[data-theme="ink"] .ink-edition {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 11px;
}

html[data-theme="ink"] .home-hero-grid {
  grid-template-columns: minmax(620px, 1.38fr) minmax(310px, 0.62fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: end;
  min-height: 700px;
  padding: 0 0 34px;
}

html[data-theme="ink"] .home-intro {
  display: grid;
  grid-template-columns: 218px minmax(280px, 430px);
  grid-template-rows: auto auto auto;
  column-gap: clamp(38px, 4vw, 62px);
  align-content: center;
  min-height: 690px;
  padding: 62px 0 36px 30px;
}

html[data-theme="ink"] .ink-hero-title {
  position: relative;
  grid-row: 1 / 4;
  grid-column: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
  width: 205px;
  height: 520px;
  margin: 0;
  color: var(--ink);
  font-family: var(--calligraphy);
  font-size: clamp(48px, 4.1vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.04;
  writing-mode: horizontal-tb;
}

html[data-theme="ink"] .ink-hero-title span,
html[data-theme="ink"] .ink-hero-title em {
  display: block;
  width: 1em;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: break-all;
  writing-mode: horizontal-tb;
}

html[data-theme="ink"] .ink-hero-title em {
  color: #252520;
}

html[data-theme="ink"] .ink-hero-title i {
  position: absolute;
  right: 3px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--calligraphy);
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(3deg);
  writing-mode: horizontal-tb;
}

html[data-theme="ink"] .home-deck {
  grid-column: 2;
  max-width: 420px;
  margin: 0;
  padding: 16px 20px;
  border-left: 2px solid rgba(152, 47, 39, 0.66);
  background: linear-gradient(90deg, rgba(244, 237, 223, 0.82), rgba(244, 237, 223, 0.18));
  color: #403b33;
  font-size: 16px;
  line-height: 2.05;
}

html[data-theme="ink"] .home-actions {
  grid-column: 2;
  margin-top: 28px;
}

html[data-theme="ink"] .home-button {
  min-height: 43px;
  border-color: rgba(23, 23, 20, 0.75);
  border-radius: 0;
  background: rgba(244, 237, 223, 0.46);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

html[data-theme="ink"] .home-button-primary {
  background: var(--ink);
  color: var(--surface);
}

html[data-theme="ink"] .home-button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--surface);
}

html[data-theme="ink"] .now-card {
  align-self: end;
  min-height: 510px;
  padding: 34px 32px;
  border: 0;
  border-left: 1px solid rgba(61, 51, 37, 0.4);
  overflow: visible;
  background: linear-gradient(90deg, rgba(244, 237, 223, 0.86), rgba(244, 237, 223, 0.66));
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: blur(2px);
}

html[data-theme="ink"] .now-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 1px;
  background: var(--orange);
  content: "";
}

html[data-theme="ink"] .now-card::after {
  top: 29px;
  right: 30px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--orange);
  border-radius: 0;
  box-shadow: none;
  color: var(--orange);
  content: "今朝";
  font-family: var(--calligraphy);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-align: center;
  transform: rotate(3deg);
}

html[data-theme="ink"] .now-card > header {
  padding-right: 68px;
  border-color: rgba(61, 51, 37, 0.28);
  color: var(--muted);
}

html[data-theme="ink"] .now-card h2 {
  max-width: 260px;
  margin-top: 34px;
  color: var(--ink);
  font-family: var(--calligraphy);
  font-size: 35px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

html[data-theme="ink"] .now-card li {
  border-color: rgba(61, 51, 37, 0.19);
}

html[data-theme="ink"] .now-card li > span {
  color: var(--orange);
}

html[data-theme="ink"] .now-card li small {
  color: #696153;
}

html[data-theme="ink"] .now-link {
  border-color: rgba(61, 51, 37, 0.32);
  color: var(--ink);
}

html[data-theme="ink"] .ink-art-credit {
  display: block;
  width: fit-content;
  margin: -22px 0 18px auto;
  color: rgba(23, 23, 20, 0.48);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-decoration: none;
}

html[data-theme="ink"] .ink-art-credit:hover {
  color: var(--orange);
}

html[data-theme="ink"] .home-facts {
  border-color: rgba(61, 51, 37, 0.35);
  background: rgba(233, 224, 205, 0.62);
  backdrop-filter: blur(5px);
}

html[data-theme="ink"] .home-facts > div + div,
html[data-theme="ink"] .home-facts > p {
  border-color: rgba(61, 51, 37, 0.22);
}

html[data-theme="ink"] .home-facts strong {
  font-family: var(--calligraphy);
  font-weight: 400;
}

html[data-theme="ink"] .home-projects,
html[data-theme="ink"] .home-editorial,
html[data-theme="ink"] .home-reading,
html[data-theme="ink"] .home-closing {
  margin-top: clamp(108px, 11vw, 154px);
}

html[data-theme="ink"] .home-section-label {
  grid-template-columns: 38px 1fr auto;
  margin-bottom: 38px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(23, 23, 20, 0.62);
}

html[data-theme="ink"] .home-section-label > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--serif);
  transform: rotate(-2deg);
}

html[data-theme="ink"] .home-section-label > p {
  font-family: var(--calligraphy);
  font-size: 29px;
  letter-spacing: 0.1em;
}

html[data-theme="ink"] .home-section-label > a {
  color: #3d4d40;
  font-family: var(--serif);
  letter-spacing: 0.05em;
}

html[data-theme="ink"] .project-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(42px, 6vw, 84px);
  border: 0;
  background: transparent;
}

html[data-theme="ink"] .project-card {
  min-height: 230px;
  padding: 28px 0 24px;
  border-top: 1px solid rgba(61, 51, 37, 0.3);
  border-bottom: 1px solid rgba(61, 51, 37, 0.16);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="ink"] .project-card + .project-card,
html[data-theme="ink"] .project-card:nth-child(3),
html[data-theme="ink"] .project-card:nth-child(4) {
  margin: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--ink);
}

html[data-theme="ink"] .project-card:hover,
html[data-theme="ink"] .project-card:nth-child(3):hover {
  padding-inline: 18px;
  background: rgba(244, 237, 223, 0.45);
  box-shadow: none;
  color: var(--ink);
  transform: translateY(-3px);
}

html[data-theme="ink"] .project-card-index,
html[data-theme="ink"] .project-card:nth-child(3) .project-card-index,
html[data-theme="ink"] .project-card > div p,
html[data-theme="ink"] .project-card:nth-child(3) > div p {
  color: var(--orange);
}

html[data-theme="ink"] .project-card h2 {
  font-family: var(--calligraphy);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

html[data-theme="ink"] .project-card small,
html[data-theme="ink"] .project-card:nth-child(3) small,
html[data-theme="ink"] .project-card footer em,
html[data-theme="ink"] .project-card:nth-child(3) footer em {
  color: var(--muted);
}

html[data-theme="ink"] .editorial-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 6vw, 82px);
}

html[data-theme="ink"] .featured-writing {
  position: relative;
  align-content: end;
  min-height: 460px;
  padding: 40px 42px;
  overflow: hidden;
  border-block: 1px solid rgba(61, 51, 37, 0.34);
  background:
    linear-gradient(130deg, rgba(244, 237, 223, 0.7), rgba(244, 237, 223, 0.2)),
    transparent;
  color: var(--ink);
}

html[data-theme="ink"] .featured-writing::before {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(23, 23, 20, 0.055);
  content: "新札";
  font-family: var(--calligraphy);
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
  writing-mode: vertical-rl;
}

html[data-theme="ink"] .featured-writing::after {
  position: absolute;
  top: 33px;
  left: 36px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid rgba(152, 47, 39, 0.78);
  color: var(--orange);
  content: "新作";
  font-family: var(--calligraphy);
  font-size: 13px;
  transform: rotate(-4deg);
}

html[data-theme="ink"] .featured-writing > p,
html[data-theme="ink"] .featured-writing > span {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

html[data-theme="ink"] .featured-writing h2 {
  position: relative;
  z-index: 1;
  font-family: var(--calligraphy);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: 0.05em;
}

html[data-theme="ink"] .featured-writing > strong {
  position: relative;
  z-index: 1;
  border-color: rgba(61, 51, 37, 0.34);
}

html[data-theme="ink"] .writing-index {
  border-top-color: rgba(61, 51, 37, 0.32);
}

html[data-theme="ink"] .writing-index > a {
  border-bottom-color: rgba(61, 51, 37, 0.25);
}

html[data-theme="ink"] .writing-index > a:hover {
  background: rgba(244, 237, 223, 0.48);
}

html[data-theme="ink"] .writing-index strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

html[data-theme="ink"] .reading-shelf {
  gap: clamp(28px, 4vw, 56px);
}

html[data-theme="ink"] .reading-shelf > a {
  min-height: 290px;
  padding: 27px 0 0;
  border-top: 1px solid rgba(61, 51, 37, 0.42);
}

html[data-theme="ink"] .reading-shelf > a:nth-child(2),
html[data-theme="ink"] .reading-shelf > a:nth-child(3) {
  border-color: rgba(61, 51, 37, 0.42);
}

html[data-theme="ink"] .reading-shelf h2 {
  font-family: var(--calligraphy);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

html[data-theme="ink"] .home-closing {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-block: 1px solid rgba(61, 51, 37, 0.36);
  background:
    linear-gradient(90deg, rgba(244, 237, 223, 0.62), rgba(244, 237, 223, 0.1)),
    transparent;
  color: var(--ink);
}

html[data-theme="ink"] .home-closing::before {
  position: absolute;
  right: -70px;
  bottom: -135px;
  width: 430px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 23, 20, 0.11), transparent 66%);
  content: "";
  filter: blur(12px);
  pointer-events: none;
}

html[data-theme="ink"] .home-closing::after {
  position: absolute;
  right: 50px;
  bottom: 42px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--orange);
  color: var(--orange);
  content: "题跋";
  font-family: var(--calligraphy);
  font-size: 14px;
  transform: rotate(4deg);
}

html[data-theme="ink"] .daily-note {
  position: relative;
  z-index: 1;
  border-right-color: rgba(61, 51, 37, 0.27);
}

html[data-theme="ink"] .daily-note .mono-label,
html[data-theme="ink"] .home-closing-copy > p {
  color: var(--orange);
}

html[data-theme="ink"] .daily-note blockquote {
  font-family: var(--calligraphy);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: 0.08em;
}

html[data-theme="ink"] .daily-note button {
  border-color: var(--muted);
  color: var(--muted);
}

html[data-theme="ink"] .home-closing-copy {
  position: relative;
  z-index: 1;
}

html[data-theme="ink"] .home-closing-copy h2 {
  max-width: 590px;
  font-family: var(--calligraphy);
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

html[data-theme="ink"] .home-closing-copy a {
  border-color: rgba(61, 51, 37, 0.34);
  color: var(--ink);
}

html[data-theme="ink"] .page-intro {
  min-height: 250px;
  padding-top: 46px;
  border-top: 0;
  border-bottom-color: rgba(61, 51, 37, 0.38);
}

html[data-theme="ink"] .page-intro::before {
  display: block;
  width: 70px;
  height: 3px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--orange), transparent);
  content: "";
  transform: rotate(-1deg);
}

html[data-theme="ink"] .page-intro h1,
html[data-theme="ink"] .reader-header h1 {
  font-family: var(--calligraphy);
  font-weight: 400;
  letter-spacing: 0.055em;
}

html[data-theme="ink"] .page-intro h1 {
  font-size: clamp(50px, 5.6vw, 76px);
}

html[data-theme="ink"] .page-count strong {
  color: var(--orange);
  font-family: var(--calligraphy);
  font-weight: 400;
}

html[data-theme="ink"] .directory-group,
html[data-theme="ink"] .quick-link-directory,
html[data-theme="ink"] .third-party-card,
html[data-theme="ink"] .opportunity-grid article,
html[data-theme="ink"] .practice-pulse,
html[data-theme="ink"] .about-signal {
  border-color: rgba(61, 51, 37, 0.27);
  border-radius: 0;
  background: rgba(244, 237, 223, 0.34);
  box-shadow: none;
}

html[data-theme="ink"] .directory-group h2,
html[data-theme="ink"] .section-heading h2,
html[data-theme="ink"] .third-party-card h2,
html[data-theme="ink"] .opportunity-grid article h3 {
  font-family: var(--serif);
}

html[data-theme="ink"] .article-row {
  border-color: rgba(61, 51, 37, 0.24);
}

html[data-theme="ink"] .article-row:hover {
  background: rgba(244, 237, 223, 0.52);
}

html[data-theme="ink"] .timeline-day::before,
html[data-theme="ink"] .timeline-day::after {
  border-color: var(--orange);
  background: var(--paper);
}

html[data-theme="ink"] .timeline-filters button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--surface);
}

html[data-theme="ink"] .reader-header {
  padding-top: 26px;
  border-top: 4px solid var(--orange);
  border-bottom-color: rgba(61, 51, 37, 0.36);
}

html[data-theme="ink"] .reader-header h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.35;
}

html[data-theme="ink"] .article-body {
  color: #292720;
  font-family: "Songti SC", "Noto Serif SC", "PingFang SC", serif;
  font-size: 16.5px;
  line-height: 2.05;
}

html[data-theme="ink"] .article-body h1,
html[data-theme="ink"] .article-body h2,
html[data-theme="ink"] .article-body h3,
html[data-theme="ink"] .article-body h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.03em;
}

html[data-theme="ink"] .article-body h2 {
  border-bottom-color: rgba(61, 51, 37, 0.26);
}

html[data-theme="ink"] .article-body a {
  color: var(--green);
  text-decoration-color: rgba(70, 83, 71, 0.42);
}

html[data-theme="ink"] .article-body blockquote {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(152, 47, 39, 0.065), transparent 74%);
}

html[data-theme="ink"] .article-body pre,
html[data-theme="ink"] .article-body code {
  font-family: var(--mono);
}

html[data-theme="ink"] .article-body pre {
  border: 1px solid rgba(61, 51, 37, 0.22);
  background: #23241f;
}

html[data-theme="ink"] .mobile-nav {
  border-top-color: rgba(61, 51, 37, 0.34);
  background:
    repeating-linear-gradient(2deg, rgba(96, 77, 49, 0.018) 0 1px, transparent 1px 5px),
    rgba(233, 224, 205, 0.96);
}

@media (max-width: 1120px) {
  html[data-theme="ink"] .home-hero-grid {
    grid-template-columns: minmax(560px, 1.28fr) minmax(290px, 0.72fr);
    gap: 24px;
  }

  html[data-theme="ink"] .home-intro {
    grid-template-columns: 190px minmax(250px, 390px);
    column-gap: 32px;
    padding-left: 12px;
  }

  html[data-theme="ink"] .ink-hero-title {
    width: 185px;
    font-size: 66px;
  }
}

@media (max-width: 920px) {
  html[data-theme="ink"] .mobile-menu > summary {
    border-color: var(--orange);
    border-radius: 2px;
  }

  html[data-theme="ink"] .home-hero {
    min-height: 0;
  }

  html[data-theme="ink"] .home-hero::after {
    bottom: 120px;
    background-size: auto 660px;
  }

  html[data-theme="ink"] .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  html[data-theme="ink"] .home-intro {
    width: min(690px, 100%);
  }

  html[data-theme="ink"] .now-card {
    width: min(540px, 100%);
    min-height: 470px;
    margin-left: auto;
  }

  html[data-theme="ink"] .editorial-grid,
  html[data-theme="ink"] .home-closing {
    grid-template-columns: 1fr;
  }

  html[data-theme="ink"] .daily-note {
    border-right: 0;
    border-bottom: 1px solid rgba(61, 51, 37, 0.26);
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .theme-toggle-label {
    display: none;
  }

  html[data-theme="ink"] .app-main {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  html[data-theme="ink"] .home-hero {
    overflow: clip;
  }

  html[data-theme="ink"] .home-hero::after {
    top: 250px;
    right: -72px;
    bottom: auto;
    left: -72px;
    height: 420px;
    background:
      linear-gradient(180deg, var(--paper) 0, transparent 22%, transparent 78%, var(--paper) 100%),
      linear-gradient(90deg, rgba(233, 224, 205, 0.72), transparent 18%, transparent 82%, rgba(233, 224, 205, 0.72)),
      url("./assets/ink/wang-hui-landscape.webp") center / auto 410px no-repeat;
    opacity: 0.78;
  }

  html[data-theme="ink"] .home-edition span:last-child {
    display: none;
  }

  html[data-theme="ink"] .home-hero-grid {
    display: block;
    padding: 0 0 28px;
  }

  html[data-theme="ink"] .home-intro {
    display: block;
    width: 100%;
    min-height: 690px;
    padding: 48px 0 0;
  }

  html[data-theme="ink"] .ink-hero-title {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    font-size: clamp(34px, 10.5vw, 48px);
    letter-spacing: 0.01em;
    line-height: 1.12;
    writing-mode: horizontal-tb;
  }

  html[data-theme="ink"] .ink-hero-title span,
  html[data-theme="ink"] .ink-hero-title em {
    display: block;
    width: auto;
    letter-spacing: 0.01em;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
    writing-mode: horizontal-tb;
  }

  html[data-theme="ink"] .ink-hero-title em {
    margin: 4px 0 0;
    color: var(--orange);
  }

  html[data-theme="ink"] .ink-hero-title i {
    top: auto;
    right: 2px;
    bottom: 2px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  html[data-theme="ink"] .home-deck {
    width: min(100%, 360px);
    margin-top: 266px;
    padding: 13px 15px;
    background: rgba(244, 237, 223, 0.7);
    font-size: 14px;
    line-height: 1.9;
    backdrop-filter: blur(3px);
  }

  html[data-theme="ink"] .home-actions {
    margin-top: 22px;
  }

  html[data-theme="ink"] .now-card {
    min-height: 460px;
    margin-top: 22px;
    padding: 28px 24px;
    border-top: 1px solid rgba(61, 51, 37, 0.28);
    border-left: 0;
    background: rgba(244, 237, 223, 0.7);
  }

  html[data-theme="ink"] .now-card::after {
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  html[data-theme="ink"] .now-card h2 {
    max-width: 230px;
    font-size: 31px;
  }

  html[data-theme="ink"] .ink-art-credit {
    margin: 8px 0 16px;
    font-size: 8px;
    line-height: 1.6;
  }

  html[data-theme="ink"] .home-projects,
  html[data-theme="ink"] .home-editorial,
  html[data-theme="ink"] .home-reading,
  html[data-theme="ink"] .home-closing {
    margin-top: 88px;
  }

  html[data-theme="ink"] .home-section-label {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  html[data-theme="ink"] .home-section-label > p {
    font-size: 24px;
  }

  html[data-theme="ink"] .home-section-label > a {
    grid-column: 2;
  }

  html[data-theme="ink"] .project-cards {
    grid-template-columns: 1fr;
  }

  html[data-theme="ink"] .project-card,
  html[data-theme="ink"] .project-card:nth-child(3),
  html[data-theme="ink"] .project-card:nth-child(4) {
    min-height: 220px;
    border-top: 1px solid rgba(61, 51, 37, 0.28);
  }

  html[data-theme="ink"] .project-card h2 {
    font-size: 31px;
  }

  html[data-theme="ink"] .featured-writing {
    min-height: 430px;
    padding: 30px 27px;
  }

  html[data-theme="ink"] .featured-writing::before {
    right: 10px;
    font-size: 112px;
  }

  html[data-theme="ink"] .featured-writing::after {
    top: 25px;
    left: 25px;
  }

  html[data-theme="ink"] .featured-writing h2 {
    font-size: 34px;
  }

  html[data-theme="ink"] .reading-shelf h2 {
    font-size: 28px;
  }

  html[data-theme="ink"] .home-closing {
    margin-right: -14px;
    margin-left: -14px;
  }

  html[data-theme="ink"] .home-closing::after {
    right: 28px;
    bottom: 26px;
  }

  html[data-theme="ink"] .page-intro h1,
  html[data-theme="ink"] .reader-header h1 {
    font-size: 43px;
  }

  html[data-theme="ink"] .article-body {
    font-size: 15.5px;
    line-height: 1.98;
  }
}

@media (max-width: 360px) {
  .theme-toggle {
    width: 34px;
    min-width: 34px;
  }

  .theme-toggle-glyph {
    width: 19px;
    height: 19px;
  }

  html[data-theme="ink"] .ink-hero-title {
    font-size: clamp(30px, 9.5vw, 34px);
  }

  html[data-theme="ink"] .home-deck {
    margin-top: 245px;
  }
}
/* ============================================================
   NOVA / NEBULA ARCHIVE
   Dark orbital knowledge system — designed as a live star map.
   ============================================================ */

html[data-theme="nova"] {
  color-scheme: dark;
  overflow-x: clip;
  --paper: #05070f;
  --paper-deep: #090d19;
  --surface: rgba(13, 18, 33, 0.78);
  --surface-solid: #0b101f;
  --surface-soft: rgba(20, 28, 50, 0.58);
  --ink: #edf4ff;
  --muted: #8f9dbf;
  --line: rgba(132, 152, 204, 0.22);
  --line-soft: rgba(132, 152, 204, 0.13);
  --green: #55f0ff;
  --green-bright: #9af9ff;
  --orange: #ff5c9e;
  --orange-soft: rgba(255, 92, 158, 0.16);
  --violet: #8b7bff;
  --amber: #ffc857;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --content: 1280px;
  --radius: 18px;
}

html[data-theme="nova"] body {
  isolation: isolate;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 84% -12%, rgba(139, 123, 255, 0.18), transparent 62%),
    radial-gradient(920px 620px at -8% 10%, rgba(85, 240, 255, 0.11), transparent 56%),
    radial-gradient(1300px 840px at 50% 118%, rgba(255, 92, 158, 0.13), transparent 64%),
    linear-gradient(180deg, #04060d 0%, #070a14 48%, #04060d 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Star particles + faint engineering grid */
html[data-theme="nova"] body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(85, 240, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 240, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 22px 38px, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 122px 104px, rgba(85, 240, 255, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 210px 64px, rgba(139, 123, 255, 0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72px 188px, rgba(255, 92, 158, 0.42) 0 1px, transparent 1.6px);
  background-size:
    52px 52px,
    52px 52px,
    260px 260px,
    310px 310px,
    280px 280px,
    340px 340px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 16%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 16%, #000 0%, transparent 82%);
  opacity: 0.62;
}

/* Slow drifting aurora */
html[data-theme="nova"] body::after {
  position: fixed;
  z-index: -1;
  inset: -12%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(420px 300px at 76% 20%, rgba(139, 123, 255, 0.4), transparent 72%),
    radial-gradient(380px 270px at 20% 66%, rgba(85, 240, 255, 0.26), transparent 72%),
    radial-gradient(320px 240px at 58% 92%, rgba(255, 92, 158, 0.24), transparent 72%);
  filter: blur(70px);
  opacity: 0.3;
  animation: nova-drift 20s ease-in-out infinite alternate;
}

html[data-theme="nova"] ::selection {
  background: rgba(85, 240, 255, 0.32);
  color: #ffffff;
}

html[data-theme="nova"] :focus-visible {
  outline: 2px solid rgba(85, 240, 255, 0.72);
  outline-offset: 4px;
}

html[data-theme="nova"] ::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

html[data-theme="nova"] ::-webkit-scrollbar-track {
  background: #060912;
}

html[data-theme="nova"] ::-webkit-scrollbar-thumb {
  border: 3px solid #060912;
  border-radius: 999px;
  background: linear-gradient(180deg, #55f0ff, #8b7bff);
}

/* ---------- Header ---------- */
html[data-theme="nova"] .site-header {
  grid-template-columns: 220px minmax(430px, 1fr) minmax(250px, 320px);
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(140%);
}

html[data-theme="nova"] .brand {
  gap: 12px;
}

html[data-theme="nova"] .brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #55f0ff 0%, #7a7bff 52%, #ff5c9e 120%);
  clip-path: none;
  overflow: hidden;
  color: #04101a;
  box-shadow: 0 0 26px rgba(85, 240, 255, 0.32), 0 0 50px rgba(139, 123, 255, 0.18);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

html[data-theme="nova"] .brand-mark::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5c9e;
  box-shadow: 0 0 9px #ff5c9e;
  content: "";
  animation: nova-blink 2.4s ease-in-out infinite;
}

html[data-theme="nova"] .brand-mark-ink {
  display: none;
}

html[data-theme="nova"] .brand strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
}

html[data-theme="nova"] .brand small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

html[data-theme="nova"] .desktop-nav {
  gap: clamp(6px, 1.6vw, 22px);
}

html[data-theme="nova"] .desktop-nav a {
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

html[data-theme="nova"] .desktop-nav a:hover,
html[data-theme="nova"] .desktop-nav a.active {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(85, 240, 255, 0.55);
}

html[data-theme="nova"] .desktop-nav a::after {
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet));
  box-shadow: 0 0 14px rgba(85, 240, 255, 0.7);
}

html[data-theme="nova"] .global-search {
  width: 128px;
  min-height: 38px;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 13, 25, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: width 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .global-search:focus-within {
  width: 190px;
  border-color: rgba(85, 240, 255, 0.7);
  background: rgba(11, 16, 31, 0.96);
  box-shadow: 0 14px 34px -18px rgba(85, 240, 255, 0.65);
}

html[data-theme="nova"] .global-search svg {
  stroke: var(--green);
  filter: drop-shadow(0 0 7px rgba(85, 240, 255, 0.6));
}

html[data-theme="nova"] .global-search input {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

html[data-theme="nova"] .global-search input::placeholder {
  color: #667390;
}

html[data-theme="nova"] .nav-more summary,
html[data-theme="nova"] .mobile-menu summary {
  color: var(--muted);
}

html[data-theme="nova"] .nav-more[open] summary,
html[data-theme="nova"] .nav-more summary:hover {
  color: var(--ink);
}

html[data-theme="nova"] .nav-more nav,
html[data-theme="nova"] .mobile-menu nav {
  border: 1px solid var(--line);
  background: rgba(8, 12, 23, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

html[data-theme="nova"] .nav-more nav a {
  color: var(--ink);
}

html[data-theme="nova"] .nav-more nav a:hover,
html[data-theme="nova"] .nav-more nav a.active {
  background: linear-gradient(90deg, rgba(85, 240, 255, 0.14), rgba(139, 123, 255, 0.12));
  color: var(--green);
}

html[data-theme="nova"] .nav-more nav a span {
  color: var(--orange);
}

html[data-theme="nova"] .app-main {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 56px));
  padding-top: 52px;
  padding-bottom: 104px;
}

/* ---------- Shared surfaces ---------- */
html[data-theme="nova"] .mono-label {
  color: var(--green);
  letter-spacing: 0.14em;
}

html[data-theme="nova"] .page-intro {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="nova"] .page-intro::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 210px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet), transparent);
  box-shadow: 0 0 20px rgba(85, 240, 255, 0.55);
  content: "";
}

html[data-theme="nova"] .page-intro h1 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(100deg, #ffffff 0%, #9af9ff 42%, #9ca8ff 74%, #ff8ab5 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="nova"] .page-intro > div:first-child > p:last-child {
  color: var(--muted);
}

html[data-theme="nova"] .page-count strong {
  font-family: var(--mono);
  font-size: 46px;
  color: var(--green);
  text-shadow: 0 0 28px rgba(85, 240, 255, 0.45);
}

html[data-theme="nova"] .page-count span {
  color: var(--muted);
}

html[data-theme="nova"] .section-heading h2 {
  color: var(--ink);
}

html[data-theme="nova"] .section-heading > a {
  color: var(--green);
}

html[data-theme="nova"] .directory-group > header h2 {
  color: var(--ink);
}

html[data-theme="nova"] .directory-group {
  background: transparent;
}

html[data-theme="nova"] .directory-group > header span,
html[data-theme="nova"] .article-row-main small {
  color: var(--muted);
}

/* Article rows: glass signal list */
html[data-theme="nova"] .article-list {
  display: grid;
  gap: 9px;
}

html[data-theme="nova"] .article-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 23, 41, 0.66), rgba(10, 15, 28, 0.6));
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .article-row::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green), var(--violet));
  content: "";
  transform: translateY(-50%);
  transition: height 180ms ease;
}

html[data-theme="nova"] .article-row:hover {
  border-color: rgba(85, 240, 255, 0.48);
  background: linear-gradient(180deg, rgba(28, 37, 64, 0.9), rgba(13, 19, 36, 0.88));
  box-shadow: 0 16px 50px -26px rgba(85, 240, 255, 0.5);
  transform: translateX(4px);
}

html[data-theme="nova"] .article-row:hover::before {
  height: 62%;
}

html[data-theme="nova"] .article-row-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(85, 240, 255, 0.05);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .article-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

html[data-theme="nova"] .article-row-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="nova"] .article-row-main small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

html[data-theme="nova"] .score {
  border: 1px solid rgba(85, 240, 255, 0.34);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(85, 240, 255, 0.08);
  color: var(--green);
  font-family: var(--mono);
}

html[data-theme="nova"] .score-low {
  border-color: rgba(255, 92, 158, 0.42);
  background: rgba(255, 92, 158, 0.1);
  color: #ff8ab5;
}

html[data-theme="nova"] .arrow-icon {
  stroke: var(--green);
  filter: drop-shadow(0 0 7px rgba(85, 240, 255, 0.5));
}

html[data-theme="nova"] .article-row:hover .arrow-icon {
  transform: translateX(3px);
}

/* ---------- Nova home hero ---------- */
html[data-theme="nova"] .nova-home {
  display: grid;
  gap: 78px;
}

html[data-theme="nova"] .nova-masthead {
  padding-top: 8px;
}

html[data-theme="nova"] .nova-system-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

html[data-theme="nova"] .nova-system-line span:last-child {
  color: var(--green);
}

html[data-theme="nova"] .nova-system-line span:last-child::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: -1px 8px 0 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  content: "";
  animation: nova-blink 1.9s ease-in-out infinite;
}

html[data-theme="nova"] .nova-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: end;
  padding: 58px 0 52px;
}

html[data-theme="nova"] .nova-coordinate {
  margin: 0 0 20px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-shadow: 0 0 16px rgba(85, 240, 255, 0.45);
}

html[data-theme="nova"] .nova-hero-copy h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(58px, 7.4vw, 108px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.07em;
  background: linear-gradient(104deg, #ffffff 4%, #9af9ff 38%, #9ca8ff 68%, #ff8ab5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(85, 240, 255, 0.2));
}

html[data-theme="nova"] .nova-hero-copy h1 em {
  font-style: normal;
}

html[data-theme="nova"] .nova-deck {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

html[data-theme="nova"] .nova-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

html[data-theme="nova"] .nova-actions a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(85, 240, 255, 0.42);
  border-radius: 999px;
  background: rgba(85, 240, 255, 0.07);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

html[data-theme="nova"] .nova-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(90deg, #55f0ff, #8b7bff);
  color: #04101a;
  font-weight: 700;
}

html[data-theme="nova"] .nova-actions a:hover {
  border-color: rgba(85, 240, 255, 0.8);
  box-shadow: 0 16px 44px -18px rgba(85, 240, 255, 0.75);
  transform: translateY(-2px);
}

html[data-theme="nova"] .nova-actions a:first-child:hover {
  background: linear-gradient(90deg, #9af9ff, #a69cff);
}

html[data-theme="nova"] .nova-margin-note {
  position: relative;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(139, 123, 255, 0.16), transparent 70%),
    rgba(12, 17, 31, 0.72);
  box-shadow: var(--shadow);
}

html[data-theme="nova"] .nova-margin-note::before {
  position: absolute;
  top: -1px;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  content: "";
}

html[data-theme="nova"] .nova-margin-note > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

html[data-theme="nova"] .nova-margin-note blockquote {
  margin: 20px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

html[data-theme="nova"] .nova-margin-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

html[data-theme="nova"] .nova-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 28, 0.66);
  overflow: hidden;
}

html[data-theme="nova"] .nova-stats > div {
  position: relative;
  padding: 22px 24px 20px;
}

html[data-theme="nova"] .nova-stats > div + div {
  border-left: 1px solid var(--line);
}

html[data-theme="nova"] .nova-stats > div::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

html[data-theme="nova"] .nova-stats > div:hover::before {
  opacity: 1;
}

html[data-theme="nova"] .nova-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

html[data-theme="nova"] .nova-stats dd {
  margin: 9px 0 0;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 26px rgba(85, 240, 255, 0.32);
}

/* ---------- Home sections ---------- */
html[data-theme="nova"] .nova-section {
  scroll-margin-top: 100px;
}

html[data-theme="nova"] .nova-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

html[data-theme="nova"] .nova-section-heading > div > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

html[data-theme="nova"] .nova-section-heading h2 {
  margin: 9px 0 0;
  font-family: var(--sans);
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.035em;
}

html[data-theme="nova"] .nova-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

html[data-theme="nova"] .nova-section-heading > a {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

html[data-theme="nova"] .nova-empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

/* ---------- Knowledge map: starfield ---------- */
html[data-theme="nova"] .knowledge-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

html[data-theme="nova"] .knowledge-map-panel,
html[data-theme="nova"] .knowledge-readout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 220px at 88% -8%, rgba(139, 123, 255, 0.13), transparent 70%),
    rgba(9, 13, 25, 0.78);
  box-shadow: var(--shadow);
}

html[data-theme="nova"] .knowledge-map-panel {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

html[data-theme="nova"] .knowledge-map-panel::before,
html[data-theme="nova"] .knowledge-map-panel::after {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  content: "";
}

html[data-theme="nova"] .knowledge-map-panel::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--green);
  border-left: 1px solid var(--green);
}

html[data-theme="nova"] .knowledge-map-panel::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
}

html[data-theme="nova"] .knowledge-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px 10px;
}

html[data-theme="nova"] .knowledge-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

html[data-theme="nova"] .knowledge-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px currentColor;
}

html[data-theme="nova"] .knowledge-map-legend [data-lane="agent"] i { background: #55f0ff; color: #55f0ff; }
html[data-theme="nova"] .knowledge-map-legend [data-lane="systems"] i { background: #8b7bff; color: #8b7bff; }
html[data-theme="nova"] .knowledge-map-legend [data-lane="interface"] i { background: #ffc857; color: #ffc857; }
html[data-theme="nova"] .knowledge-map-legend [data-lane="security"] i { background: #ff5c9e; color: #ff5c9e; }
html[data-theme="nova"] .knowledge-map-legend [data-lane="theory"] i { background: #ff8a65; color: #ff8a65; }
html[data-theme="nova"] .knowledge-map-legend [data-lane="reading"] i { background: #5df2a0; color: #5df2a0; }

html[data-theme="nova"] .knowledge-map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

html[data-theme="nova"] .knowledge-map {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

html[data-theme="nova"] .knowledge-map text {
  font-family: var(--mono);
}

html[data-theme="nova"] .knowledge-time-guides line {
  stroke: rgba(132, 152, 204, 0.1);
  stroke-dasharray: 2 8;
}

html[data-theme="nova"] .knowledge-lane line {
  stroke: rgba(132, 152, 204, 0.26);
  stroke-dasharray: 3 9;
}

html[data-theme="nova"] .knowledge-lane text {
  fill: #647390;
  font-size: 9px;
  letter-spacing: 0.12em;
}

html[data-theme="nova"] .knowledge-date-labels > text:not(.knowledge-axis-name) {
  fill: #647390;
  font-size: 9px;
  letter-spacing: 0.08em;
}

html[data-theme="nova"] .knowledge-axis-name {
  fill: var(--orange);
  font-size: 9px;
  letter-spacing: 0.2em;
}

html[data-theme="nova"] .knowledge-node {
  outline: none;
  cursor: pointer;
}

html[data-theme="nova"] .knowledge-node-hit {
  fill: transparent;
}

html[data-theme="nova"] .knowledge-node-dot {
  fill: #55f0ff;
  filter: drop-shadow(0 0 6px currentColor);
  transition: r 160ms ease, opacity 160ms ease;
}

html[data-theme="nova"] .knowledge-node[data-lane="systems"] .knowledge-node-dot { fill: #8b7bff; }
html[data-theme="nova"] .knowledge-node[data-lane="interface"] .knowledge-node-dot { fill: #ffc857; }
html[data-theme="nova"] .knowledge-node[data-lane="security"] .knowledge-node-dot { fill: #ff5c9e; }
html[data-theme="nova"] .knowledge-node[data-lane="theory"] .knowledge-node-dot { fill: #ff8a65; }
html[data-theme="nova"] .knowledge-node[data-lane="reading"] .knowledge-node-dot { fill: #5df2a0; }

html[data-theme="nova"] .knowledge-node:hover .knowledge-node-dot,
html[data-theme="nova"] .knowledge-node:focus .knowledge-node-dot {
  opacity: 1;
}

html[data-theme="nova"] .knowledge-node.is-latest .knowledge-node-dot {
  fill: #ffffff;
  animation: nova-pulse 2s ease-in-out infinite;
}

html[data-theme="nova"] .knowledge-readout {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding: 22px;
}

html[data-theme="nova"] .knowledge-readout > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

html[data-theme="nova"] .knowledge-readout p {
  margin: 18px 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .knowledge-readout p b {
  display: inline-block;
  margin-left: 8px;
  color: var(--green);
  font-weight: 500;
}

html[data-theme="nova"] .knowledge-readout h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}

html[data-theme="nova"] .knowledge-readout a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

html[data-theme="nova"] .knowledge-readout small {
  margin-top: 22px;
  color: #5f6d8d;
  font-size: 10px;
  line-height: 1.7;
}

/* ---------- Active orbits / projects ---------- */
html[data-theme="nova"] .nova-variable-table {
  display: grid;
  gap: 12px;
}

html[data-theme="nova"] .nova-variable-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.4fr) minmax(260px, 0.8fr) 26px;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(16, 22, 40, 0.84), rgba(9, 13, 25, 0.66));
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .nova-variable-row:hover {
  border-color: rgba(85, 240, 255, 0.5);
  box-shadow: 0 20px 60px -28px rgba(85, 240, 255, 0.55);
  transform: translateY(-3px);
}

html[data-theme="nova"] .nova-variable-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(85, 240, 255, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(85, 240, 255, 0.18), rgba(139, 123, 255, 0.22));
  color: #aef8ff;
  font-family: var(--mono);
  font-size: 16px;
  box-shadow: inset 0 0 20px rgba(85, 240, 255, 0.12);
}

html[data-theme="nova"] .nova-variable-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

html[data-theme="nova"] .nova-variable-main p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

html[data-theme="nova"] .nova-variable-row dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

html[data-theme="nova"] .nova-variable-row dl div {
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.45);
}

html[data-theme="nova"] .nova-variable-row dt {
  color: #5f6d8d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-theme="nova"] .nova-variable-row dd {
  margin: 5px 0 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}

/* ---------- Latest signals ---------- */
html[data-theme="nova"] .nova-log-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

html[data-theme="nova"] .nova-log-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(139, 123, 255, 0.22), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, rgba(85, 240, 255, 0.13), transparent 70%),
    linear-gradient(140deg, rgba(17, 23, 42, 0.96), rgba(8, 12, 23, 0.96)) padding-box,
    linear-gradient(130deg, rgba(85, 240, 255, 0.65), rgba(139, 123, 255, 0.45), rgba(255, 92, 158, 0.55)) border-box;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

html[data-theme="nova"] .nova-log-featured::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(85, 240, 255, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 36px rgba(85, 240, 255, 0.04),
    0 0 0 72px rgba(139, 123, 255, 0.03);
}

html[data-theme="nova"] .nova-log-featured > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

html[data-theme="nova"] .nova-log-featured > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .nova-log-featured h2 {
  position: relative;
  z-index: 1;
  margin: 16px 0 12px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

html[data-theme="nova"] .nova-log-featured em {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.9;
}

html[data-theme="nova"] .nova-log-featured strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

html[data-theme="nova"] .nova-log-featured:hover .arrow-icon {
  transform: translateX(4px);
}

html[data-theme="nova"] .nova-log-index {
  display: grid;
  gap: 10px;
}

html[data-theme="nova"] .nova-log-index a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 28, 0.62);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

html[data-theme="nova"] .nova-log-index a:hover {
  border-color: rgba(139, 123, 255, 0.55);
  background: rgba(20, 26, 45, 0.84);
  transform: translateX(4px);
}

html[data-theme="nova"] .nova-log-index a > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .nova-log-index strong,
html[data-theme="nova"] .nova-log-index small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="nova"] .nova-log-index strong {
  color: var(--ink);
  font-size: 14px;
}

html[data-theme="nova"] .nova-log-index small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

/* ---------- Reading references ---------- */
html[data-theme="nova"] .nova-reference-list {
  display: grid;
  gap: 10px;
}

html[data-theme="nova"] .nova-reference-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 28, 0.6);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

html[data-theme="nova"] .nova-reference-list a:hover {
  border-color: rgba(255, 92, 158, 0.5);
  background: rgba(23, 17, 32, 0.75);
  transform: translateX(4px);
}

html[data-theme="nova"] .nova-reference-list a > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .nova-reference-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

html[data-theme="nova"] .nova-reference-list p {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="nova"] .nova-reference-list time {
  color: #5f6d8d;
  font-family: var(--mono);
  font-size: 10px;
}

/* ---------- Closing ---------- */
html[data-theme="nova"] .nova-closing {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 60px 20px 10px;
  text-align: center;
}

html[data-theme="nova"] .nova-closing > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
}

html[data-theme="nova"] .nova-closing p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

html[data-theme="nova"] .nova-closing a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

/* ============================================================
   Interior views
   ============================================================ */

/* Timeline */
html[data-theme="nova"] .timeline-toolbar {
  margin: 28px 0 46px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

html[data-theme="nova"] .timeline-filters {
  gap: 8px;
}

html[data-theme="nova"] .timeline-filters button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  background: rgba(10, 15, 28, 0.55);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .timeline-filters button strong {
  color: var(--green);
  font-size: 9px;
}

html[data-theme="nova"] .timeline-filters button:hover,
html[data-theme="nova"] .timeline-filters button.active {
  border-color: rgba(85, 240, 255, 0.55);
  background: rgba(85, 240, 255, 0.08);
  color: var(--ink);
  box-shadow: 0 12px 32px -18px rgba(85, 240, 255, 0.55);
}

html[data-theme="nova"] .timeline-stats dt {
  color: #5f6d8d;
}

html[data-theme="nova"] .timeline-stats dd {
  color: var(--ink);
  font-family: var(--mono);
}

html[data-theme="nova"] .timeline-list {
  display: grid;
  gap: 38px;
}

html[data-theme="nova"] .timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(15, 21, 38, 0.7), rgba(8, 12, 23, 0.55));
}

html[data-theme="nova"] .timeline-day::before {
  display: none;
}

html[data-theme="nova"] .timeline-day::after {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
  content: "";
}

html[data-theme="nova"] .timeline-date {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

html[data-theme="nova"] .timeline-date strong {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 32px;
  text-shadow: 0 0 22px rgba(85, 240, 255, 0.4);
}

html[data-theme="nova"] .timeline-date span {
  color: var(--orange);
}

html[data-theme="nova"] .timeline-date small {
  color: var(--muted);
  font-family: var(--mono);
}

html[data-theme="nova"] .timeline-day-content > header {
  padding: 0 22px 12px 0;
}

html[data-theme="nova"] .timeline-day-content > header > strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

html[data-theme="nova"] .timeline-day-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(85, 240, 255, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

html[data-theme="nova"] .timeline-day-summary span::before {
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

html[data-theme="nova"] .timeline-day-summary span[data-category="questions"]::before,
html[data-theme="nova"] .timeline-day-summary span[data-category="opportunity"]::before {
  background: var(--orange);
  box-shadow: 0 0 9px var(--orange);
}

html[data-theme="nova"] .timeline-more summary {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .timeline-load-more {
  border: 1px solid rgba(85, 240, 255, 0.42);
  border-radius: 999px;
  background: rgba(85, 240, 255, 0.06);
  color: var(--green);
  font-family: var(--mono);
}

html[data-theme="nova"] .timeline-load-more:hover {
  background: linear-gradient(90deg, #55f0ff, #8b7bff);
  color: #04101a;
  box-shadow: 0 16px 40px -18px rgba(85, 240, 255, 0.65);
}

/* Projects: active engineering signals */
html[data-theme="nova"] .project-directory-page .page-intro::before {
  background: linear-gradient(90deg, var(--green), var(--violet), transparent);
}

html[data-theme="nova"] .project-directory-page .page-intro h1 {
  background-image: linear-gradient(100deg, #ffffff 0%, #a4f9ff 54%, #a99eff 100%);
}

html[data-theme="nova"] .project-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

html[data-theme="nova"] .project-signal-card {
  --project-signal: var(--green);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 246px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(360px 190px at 100% 0%, color-mix(in srgb, var(--project-signal) 16%, transparent), transparent 72%),
    linear-gradient(145deg, rgba(16, 22, 40, 0.8), rgba(8, 12, 23, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .project-signal-card[data-priority="p0"] {
  --project-signal: var(--amber);
}

html[data-theme="nova"] .project-signal-card[data-priority="p2"] {
  --project-signal: var(--violet);
}

html[data-theme="nova"] .project-signal-card::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--project-signal), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--project-signal) 55%, transparent);
  content: "";
}

html[data-theme="nova"] .project-signal-card:hover {
  border-color: color-mix(in srgb, var(--project-signal) 48%, transparent);
  box-shadow: 0 22px 60px -34px color-mix(in srgb, var(--project-signal) 58%, transparent);
  transform: translateY(-3px);
}

html[data-theme="nova"] .project-signal-card > header,
html[data-theme="nova"] .project-signal-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

html[data-theme="nova"] .project-signal-index,
html[data-theme="nova"] .project-signal-state,
html[data-theme="nova"] .project-signal-body small,
html[data-theme="nova"] .project-signal-card > footer span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

html[data-theme="nova"] .project-signal-index,
html[data-theme="nova"] .project-signal-body small,
html[data-theme="nova"] .project-signal-card > footer span {
  color: color-mix(in srgb, var(--project-signal) 84%, white);
}

html[data-theme="nova"] .project-signal-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

html[data-theme="nova"] .project-signal-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--project-signal);
  box-shadow: 0 0 10px var(--project-signal);
  animation: nova-blink 2.6s ease-in-out infinite;
}

html[data-theme="nova"] .project-signal-body {
  align-self: center;
  padding: 28px 0 24px;
}

html[data-theme="nova"] .project-signal-body h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.04em;
}

html[data-theme="nova"] .project-signal-body p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

html[data-theme="nova"] .project-signal-card > footer {
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

html[data-theme="nova"] .project-signal-card > footer strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reading: same space, warmer editorial channel */
html[data-theme="nova"] .reading-directory-page {
  --reading-accent: var(--amber);
}

html[data-theme="nova"] .reading-directory-page .page-intro::before {
  background: linear-gradient(90deg, var(--reading-accent), var(--violet), transparent);
  box-shadow: 0 0 20px rgba(255, 200, 87, 0.32);
}

html[data-theme="nova"] .reading-directory-page .page-intro h1 {
  background-image: linear-gradient(100deg, #ffffff 0%, #ffe3a1 64%, #c7bcff 110%);
}

html[data-theme="nova"] .reading-directory-page .page-count strong {
  color: var(--reading-accent);
  text-shadow: 0 0 28px rgba(255, 200, 87, 0.28);
}

html[data-theme="nova"] .reading-directory-page .directory-groups {
  gap: 24px;
  margin-top: 44px;
}

html[data-theme="nova"] .reading-group {
  position: relative;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(300px 190px at 0% 0%, rgba(255, 200, 87, 0.075), transparent 72%),
    rgba(9, 13, 25, 0.7);
  animation-delay: var(--delay, 0ms);
}

html[data-theme="nova"] .reading-group::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--reading-accent), transparent);
  content: "";
}

html[data-theme="nova"] .reading-group > header {
  position: sticky;
  top: 100px;
  padding-right: 24px;
  border-right: 1px solid var(--line-soft);
}

html[data-theme="nova"] .reading-group-code {
  display: block;
  margin-bottom: 14px;
  color: var(--reading-accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

html[data-theme="nova"] .reading-group > header h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.2vw, 30px);
}

html[data-theme="nova"] .reading-group .article-row {
  background: linear-gradient(180deg, rgba(17, 23, 41, 0.76), rgba(10, 15, 28, 0.7));
}

html[data-theme="nova"] .reading-group .article-row:hover {
  border-color: rgba(255, 200, 87, 0.42);
  box-shadow: 0 16px 38px -26px rgba(255, 200, 87, 0.5);
}

html[data-theme="nova"] .reading-group .article-row::before {
  background: linear-gradient(180deg, var(--reading-accent), var(--violet));
}

html[data-theme="nova"] .reading-group .article-row-index {
  border-color: rgba(255, 200, 87, 0.18);
  background: rgba(255, 200, 87, 0.055);
  color: var(--reading-accent);
}

html[data-theme="nova"] .reading-group .article-row-action {
  color: var(--reading-accent);
}

/* Learning directory */
html[data-theme="nova"] .learning-directory-tools {
  border-color: var(--line);
}

html[data-theme="nova"] .learning-directory-tools p {
  color: var(--muted);
}

html[data-theme="nova"] .learning-directory-tools p strong {
  color: var(--orange);
}

html[data-theme="nova"] .learning-directory-actions button,
html[data-theme="nova"] .learning-group-toggle {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 15, 28, 0.55);
  color: var(--green);
}

html[data-theme="nova"] .learning-directory-actions button:hover,
html[data-theme="nova"] .learning-group-toggle:hover {
  border-color: rgba(85, 240, 255, 0.55);
  background: rgba(85, 240, 255, 0.1);
  color: var(--ink);
}

html[data-theme="nova"] .directory-group > header {
  position: sticky;
  top: 100px;
}

html[data-theme="nova"] .directory-group > header h2 {
  color: var(--ink);
}

/* Third-party links & quick links */
html[data-theme="nova"] .quick-links-section {
  margin-top: 48px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 25, 0.6);
}

html[data-theme="nova"] .quick-link-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 23, 41, 0.74), rgba(9, 13, 25, 0.6));
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .quick-link-card:hover {
  border-color: rgba(85, 240, 255, 0.5);
  box-shadow: 0 18px 50px -24px rgba(85, 240, 255, 0.55);
  transform: translateY(-3px);
}

html[data-theme="nova"] .quick-link-card > span {
  color: var(--orange);
}

html[data-theme="nova"] .quick-link-card strong {
  color: var(--ink);
}

html[data-theme="nova"] .quick-link-card p {
  color: var(--muted);
}

html[data-theme="nova"] .quick-link-card em {
  color: var(--green);
}

html[data-theme="nova"] .quick-link-directory summary {
  color: var(--green);
}

html[data-theme="nova"] .quick-link-directory {
  border-color: var(--line);
  background: rgba(9, 13, 25, 0.7);
}

html[data-theme="nova"] .quick-link-groups section {
  border-color: var(--line-soft);
}

html[data-theme="nova"] .quick-link-groups h3 {
  color: var(--ink);
}

html[data-theme="nova"] .quick-link-groups a {
  color: var(--muted);
}

html[data-theme="nova"] .quick-link-groups a:hover {
  color: var(--green);
}

html[data-theme="nova"] .third-party-grid {
  margin-top: 42px;
}

html[data-theme="nova"] .third-party-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(139, 123, 255, 0.13), transparent 70%),
    rgba(10, 15, 28, 0.68);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .third-party-card:hover {
  border-color: rgba(139, 123, 255, 0.6);
  box-shadow: 0 22px 60px -28px rgba(139, 123, 255, 0.65);
  transform: translateY(-3px);
}

html[data-theme="nova"] .third-party-card > div span {
  color: var(--green);
}

html[data-theme="nova"] .third-party-card > div em {
  color: var(--orange);
}

html[data-theme="nova"] .third-party-card h2 {
  color: var(--ink);
}

html[data-theme="nova"] .third-party-card p,
html[data-theme="nova"] .third-party-card footer small {
  color: var(--muted);
}

html[data-theme="nova"] .third-party-card footer strong {
  color: var(--green);
}

/* Opportunity workbench */
html[data-theme="nova"] .opportunity-grid {
  margin-top: 44px;
}

html[data-theme="nova"] .opportunity-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(17, 23, 41, 0.75), rgba(8, 12, 23, 0.62));
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .opportunity-grid article:hover {
  border-color: rgba(85, 240, 255, 0.48);
  box-shadow: 0 20px 60px -30px rgba(85, 240, 255, 0.55);
  transform: translateY(-3px);
}

html[data-theme="nova"] .opportunity-grid article .mono-label {
  color: var(--orange);
}

html[data-theme="nova"] .opportunity-grid article p:not(.mono-label) {
  color: var(--muted);
}

html[data-theme="nova"] .opportunity-grid article a {
  color: var(--green);
}

html[data-theme="nova"] .practice-pulse {
  margin-top: 50px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 25, 0.6);
}

html[data-theme="nova"] .practice-pulse dt,
html[data-theme="nova"] .interview-summary span {
  color: var(--muted);
}

html[data-theme="nova"] .practice-pulse dd,
html[data-theme="nova"] .interview-summary strong {
  color: var(--ink);
  font-family: var(--mono);
}

html[data-theme="nova"] .chart-axis {
  stroke: var(--line);
}

html[data-theme="nova"] .chart-bars rect {
  fill: rgba(85, 240, 255, 0.32);
}

html[data-theme="nova"] .chart-bars rect:hover {
  fill: rgba(85, 240, 255, 0.55);
}

html[data-theme="nova"] .chart-line {
  stroke: #ff5c9e;
  filter: drop-shadow(0 0 6px rgba(255, 92, 158, 0.55));
}

html[data-theme="nova"] .chart-score-dot {
  fill: #ff5c9e;
}

html[data-theme="nova"] .chart-labels text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme="nova"] .chart-legend span::before {
  background: var(--green);
}

html[data-theme="nova"] .chart-legend .legend-line::before {
  background: var(--orange);
}

/* Companies */
html[data-theme="nova"] .company-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 22, 40, 0.7), rgba(8, 12, 23, 0.6));
}

html[data-theme="nova"] .company-block > header > span {
  color: var(--orange);
}

html[data-theme="nova"] .company-block h2 {
  color: var(--ink);
}

html[data-theme="nova"] .company-block header p {
  color: var(--muted);
}

html[data-theme="nova"] .expand-list {
  border-color: var(--line);
  border-radius: 9px;
  background: rgba(85, 240, 255, 0.05);
  color: var(--green);
}

html[data-theme="nova"] .topic-index {
  border-color: var(--line);
  border-radius: 14px;
  overflow: hidden;
}

html[data-theme="nova"] .topic-index a {
  border-color: var(--line);
  color: var(--muted);
}

html[data-theme="nova"] .topic-index a:hover,
html[data-theme="nova"] .topic-index a.active {
  background: linear-gradient(90deg, rgba(85, 240, 255, 0.2), rgba(139, 123, 255, 0.18));
  color: var(--ink);
}

/* Interviews & roadmap */
html[data-theme="nova"] .interview-summary {
  border-color: var(--line);
}

html[data-theme="nova"] .interview-summary div + div {
  border-color: var(--line);
}

html[data-theme="nova"] .interview-day time {
  color: var(--ink);
}

html[data-theme="nova"] .interview-day header strong {
  color: var(--green);
}

html[data-theme="nova"] .roadmap-line::before {
  background: linear-gradient(180deg, var(--green), var(--violet), transparent);
  box-shadow: 0 0 16px rgba(85, 240, 255, 0.4);
}

html[data-theme="nova"] .roadmap-item > span {
  border-color: rgba(85, 240, 255, 0.4);
  border-radius: 14px;
  background: rgba(10, 15, 28, 0.8);
  color: var(--green);
}

html[data-theme="nova"] .roadmap-item:hover > span {
  background: linear-gradient(135deg, #55f0ff, #8b7bff);
  color: #04101a;
  box-shadow: 0 0 28px rgba(85, 240, 255, 0.45);
}

html[data-theme="nova"] .roadmap-item p {
  color: var(--orange);
}

html[data-theme="nova"] .roadmap-item h2 {
  color: var(--ink);
}

html[data-theme="nova"] .roadmap-item small {
  color: var(--muted);
}

/* Search */
html[data-theme="nova"] .search-query {
  color: var(--green);
}

/* ============================================================
   Reader
   ============================================================ */
html[data-theme="nova"] .reader {
  grid-template-columns: 230px minmax(0, 860px);
  gap: 60px;
}

html[data-theme="nova"] .reader-rail {
  border-right: 1px solid var(--line);
}

html[data-theme="nova"] .back-link {
  color: var(--green);
  font-family: var(--mono);
}

html[data-theme="nova"] .reader-rail nav a {
  color: var(--muted);
}

html[data-theme="nova"] .reader-rail nav a:hover {
  color: var(--green);
  text-shadow: 0 0 14px rgba(85, 240, 255, 0.45);
}

html[data-theme="nova"] .reader-header {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="nova"] .reader-header::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet), transparent);
  content: "";
}

html[data-theme="nova"] .reader-header h1 {
  font-family: var(--sans);
  letter-spacing: -0.035em;
}

html[data-theme="nova"] .reader-header > div {
  color: var(--muted);
}

html[data-theme="nova"] .reader-header > div > * + *::before {
  color: var(--line);
}

html[data-theme="nova"] .comment-jump {
  border-color: rgba(85, 240, 255, 0.42);
  border-radius: 9px;
  background: rgba(85, 240, 255, 0.06);
  color: var(--green);
}

html[data-theme="nova"] .comment-jump span {
  background: linear-gradient(90deg, #55f0ff, #8b7bff);
  color: #04101a;
}

html[data-theme="nova"] .comment-jump:hover {
  background: rgba(85, 240, 255, 0.12);
}

html[data-theme="nova"] .article-body {
  color: #c7d3ec;
}

html[data-theme="nova"] .article-body p,
html[data-theme="nova"] .article-body li {
  color: #c7d3ec;
}

html[data-theme="nova"] .article-body h1,
html[data-theme="nova"] .article-body h2,
html[data-theme="nova"] .article-body h3,
html[data-theme="nova"] .article-body h4 {
  color: #ffffff;
}

html[data-theme="nova"] .article-body h2 {
  border-bottom: 1px solid var(--line);
}

html[data-theme="nova"] .article-body a {
  color: var(--green);
  text-decoration-color: rgba(85, 240, 255, 0.35);
}

html[data-theme="nova"] .article-body code {
  border: 1px solid rgba(85, 240, 255, 0.16);
  background: rgba(85, 240, 255, 0.09);
  color: #9af9ff;
}

html[data-theme="nova"] .article-body pre {
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 12px;
  background: #060a15;
  color: #d9e6ff;
  box-shadow: inset 0 0 40px rgba(85, 240, 255, 0.03);
}

html[data-theme="nova"] .article-body pre code {
  border: 0;
  background: transparent;
  color: inherit;
}

html[data-theme="nova"] .article-body blockquote {
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: rgba(85, 240, 255, 0.06);
}

html[data-theme="nova"] .article-body blockquote p {
  color: var(--muted);
}

html[data-theme="nova"] .article-body th,
html[data-theme="nova"] .article-body td {
  border-color: var(--line);
}

html[data-theme="nova"] .article-body th {
  background: rgba(139, 123, 255, 0.12);
  color: #ffffff;
}

html[data-theme="nova"] .comments-section {
  border-top: 1px solid var(--line);
}

html[data-theme="nova"] .comments-section h2 {
  color: var(--ink);
}

html[data-theme="nova"] .comments-section > header > p {
  color: var(--muted);
}

html[data-theme="nova"] .comment-steps li {
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(10, 15, 28, 0.5);
  color: var(--muted);
}

html[data-theme="nova"] .comment-steps span {
  background: linear-gradient(135deg, #55f0ff, #8b7bff);
  color: #04101a;
}

/* About */
html[data-theme="nova"] .about-hero {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="nova"] .about-hero::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 230px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet), transparent);
  content: "";
}

html[data-theme="nova"] .about-lead h1 {
  font-family: var(--sans);
  background: linear-gradient(100deg, #ffffff 0%, #9af9ff 42%, #9ca8ff 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="nova"] .about-lead > p:not(.mono-label) {
  color: var(--muted);
}

html[data-theme="nova"] .about-actions a {
  border-color: rgba(85, 240, 255, 0.42);
  border-radius: 10px;
  background: rgba(85, 240, 255, 0.06);
  color: var(--green);
}

html[data-theme="nova"] .about-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(90deg, #55f0ff, #8b7bff);
  color: #04101a;
}

html[data-theme="nova"] .about-signal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(85, 240, 255, 0.15), transparent 70%),
    rgba(10, 15, 28, 0.78);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="nova"] .about-signal .mono-label {
  color: var(--orange);
}

html[data-theme="nova"] .about-signal strong {
  color: #ffffff;
  font-family: var(--mono);
  text-shadow: 0 0 24px rgba(85, 240, 255, 0.4);
}

html[data-theme="nova"] .about-signal span {
  color: var(--muted);
}

/* Loading & errors */
html[data-theme="nova"] .loading-state span {
  border-color: var(--line);
  border-top-color: var(--green);
  box-shadow: 0 0 22px rgba(85, 240, 255, 0.25);
}

html[data-theme="nova"] .loading-state p,
html[data-theme="nova"] .error-state p {
  color: var(--muted);
}

html[data-theme="nova"] .error-state > span {
  border-color: rgba(255, 92, 158, 0.5);
  color: var(--orange);
  box-shadow: 0 0 26px rgba(255, 92, 158, 0.25);
}

html[data-theme="nova"] .error-state h1 {
  color: var(--ink);
}

html[data-theme="nova"] .error-state a,
html[data-theme="nova"] .error-state button {
  border-radius: 10px;
  background: linear-gradient(90deg, #55f0ff, #8b7bff);
  color: #04101a;
}

/* Empty copy */
html[data-theme="nova"] .empty-copy,
html[data-theme="nova"] .chart-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* ============================================================
   Motion
   ============================================================ */
@keyframes nova-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

@keyframes nova-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

@keyframes nova-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)); }
  50% { opacity: 0.55; filter: drop-shadow(0 0 16px rgba(85, 240, 255, 0.95)); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1060px) {
  html[data-theme="nova"] .site-header {
    grid-template-columns: 200px 1fr 220px;
  }

  html[data-theme="nova"] .nova-hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 30px;
  }

  html[data-theme="nova"] .knowledge-map-shell {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .knowledge-readout {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
    gap: 10px 18px;
    align-items: center;
  }

  html[data-theme="nova"] .knowledge-readout > span,
  html[data-theme="nova"] .knowledge-readout small {
    grid-column: 1 / -1;
  }

  html[data-theme="nova"] .knowledge-readout p {
    margin: 0;
  }

  html[data-theme="nova"] .knowledge-readout a {
    justify-self: end;
    margin: 0;
  }

  html[data-theme="nova"] .nova-variable-row {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
  }

  html[data-theme="nova"] .nova-variable-row dl {
    grid-column: 2 / -1;
  }

  html[data-theme="nova"] .nova-log-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-log-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="nova"] .timeline-day,
  html[data-theme="nova"] .interview-day {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  html[data-theme="nova"] .desktop-nav {
    display: none;
  }

  html[data-theme="nova"] .mobile-menu {
    display: block;
  }

  html[data-theme="nova"] .site-header {
    grid-template-columns: 1fr minmax(210px, 260px);
  }

  html[data-theme="nova"] .reader {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .reader-rail {
    position: static;
    display: none;
  }

  html[data-theme="nova"] .mobile-toc {
    display: block;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 15, 28, 0.62);
  }

  html[data-theme="nova"] .mobile-toc summary {
    padding: 14px 16px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
  }

  html[data-theme="nova"] .mobile-toc nav {
    display: grid;
    gap: 9px;
    padding: 8px 16px 16px;
  }

  html[data-theme="nova"] .mobile-toc nav a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
  }

  html[data-theme="nova"] .about-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html[data-theme="nova"] body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  html[data-theme="nova"] .site-header {
    grid-template-columns: 1fr minmax(170px, 210px);
    padding-inline: 22px;
  }

  html[data-theme="nova"] .app-main {
    width: min(100% - 32px, var(--content));
    padding-top: 32px;
    padding-bottom: 64px;
  }

  html[data-theme="nova"] .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 15, 0.88);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
  }

  html[data-theme="nova"] .mobile-nav a {
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 9px;
  }

  html[data-theme="nova"] .mobile-nav a span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 16px;
  }

  html[data-theme="nova"] .mobile-nav a.active {
    background: rgba(85, 240, 255, 0.1);
    color: var(--ink);
  }

  html[data-theme="nova"] .nova-home {
    gap: 56px;
  }

  html[data-theme="nova"] .nova-hero-grid {
    grid-template-columns: 1fr;
    padding: 44px 0 38px;
  }

  html[data-theme="nova"] .nova-hero-copy h1 {
    font-size: clamp(52px, 15vw, 82px);
  }

  html[data-theme="nova"] .nova-deck {
    font-size: 14px;
  }

  html[data-theme="nova"] .nova-margin-note {
    max-width: none;
  }

  html[data-theme="nova"] .nova-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="nova"] .nova-stats > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  html[data-theme="nova"] .nova-stats > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  html[data-theme="nova"] .nova-stats dd {
    font-size: 34px;
  }

  html[data-theme="nova"] .nova-section-heading {
    display: block;
  }

  html[data-theme="nova"] .nova-section-heading > p,
  html[data-theme="nova"] .nova-section-heading > a {
    display: inline-block;
    margin-top: 12px;
  }

  html[data-theme="nova"] .nova-variable-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
  }

  html[data-theme="nova"] .nova-variable-row dl {
    grid-column: 1 / -1;
  }

  html[data-theme="nova"] .nova-log-index {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-log-featured {
    min-height: 290px;
    padding: 24px;
  }

  html[data-theme="nova"] .nova-reference-list a {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  html[data-theme="nova"] .nova-reference-list time {
    display: none;
  }

  html[data-theme="nova"] .timeline-day,
  html[data-theme="nova"] .interview-day {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .timeline-date {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  html[data-theme="nova"] .timeline-date strong {
    font-size: 24px;
  }

  html[data-theme="nova"] .timeline-day-content > header {
    padding-right: 0;
  }

  html[data-theme="nova"] .company-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .interview-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  html[data-theme="nova"] .interview-summary div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  html[data-theme="nova"] .interview-summary div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  html[data-theme="nova"] .practice-pulse {
    padding: 18px;
  }

  html[data-theme="nova"] .directory-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  html[data-theme="nova"] .directory-group > header {
    position: static;
  }

  html[data-theme="nova"] .project-signal-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .project-signal-card {
    min-height: 220px;
  }

  html[data-theme="nova"] .reading-group {
    gap: 18px;
    padding: 20px;
  }

  html[data-theme="nova"] .reading-group > header {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  html[data-theme="nova"] .about-signal {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  html[data-theme="nova"] .nova-system-line {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  html[data-theme="nova"] .nova-system-line span:last-child {
    display: none;
  }

  html[data-theme="nova"] .nova-hero-copy h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  html[data-theme="nova"] .nova-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-actions a {
    justify-content: center;
  }

  html[data-theme="nova"] .nova-stats > div {
    padding: 16px;
  }

  html[data-theme="nova"] .nova-stats dt {
    font-size: 7px;
  }

  html[data-theme="nova"] .nova-stats dd {
    font-size: 28px;
  }

  html[data-theme="nova"] .knowledge-map {
    min-width: 720px;
  }

  html[data-theme="nova"] .knowledge-map-panel {
    padding: 12px;
  }

  html[data-theme="nova"] .knowledge-readout {
    display: flex;
  }

  html[data-theme="nova"] .knowledge-readout a {
    align-self: flex-start;
    margin-top: 18px;
  }

  html[data-theme="nova"] .knowledge-readout p {
    margin: 16px 0 6px;
  }

  html[data-theme="nova"] .nova-variable-row dl {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-log-featured {
    min-height: 0;
  }

  html[data-theme="nova"] .timeline-toolbar {
    display: block;
  }

  html[data-theme="nova"] .timeline-stats {
    margin-top: 18px;
  }

  html[data-theme="nova"] .article-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  html[data-theme="nova"] .article-row-index {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  html[data-theme="nova"] .global-search {
    width: 94px;
    min-height: 36px;
    padding-inline: 10px;
  }

  html[data-theme="nova"] .global-search:focus-within {
    width: 128px;
  }

  html[data-theme="nova"] .project-signal-grid,
  html[data-theme="nova"] .reading-directory-page .directory-groups {
    margin-top: 28px;
  }

  html[data-theme="nova"] .project-signal-card {
    min-height: 204px;
    padding: 18px;
  }

  html[data-theme="nova"] .project-signal-body {
    padding-block: 22px 20px;
  }

  html[data-theme="nova"] .project-signal-body h2 {
    font-size: 25px;
  }

  html[data-theme="nova"] .reading-group {
    padding: 16px;
  }

  html[data-theme="nova"] .reading-group .article-row-action {
    display: none;
  }

  html[data-theme="nova"] .page-intro {
    display: block;
    min-height: 0;
  }

  html[data-theme="nova"] .page-intro h1 {
    font-size: 38px;
  }

  html[data-theme="nova"] .page-count {
    margin-top: 14px;
  }

  html[data-theme="nova"] .reader {
    gap: 24px;
  }

  html[data-theme="nova"] .reader-header h1 {
    font-size: 34px;
  }

  html[data-theme="nova"] .comments-section > header {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .comments-section > header > p {
    text-align: left;
  }

  html[data-theme="nova"] .comment-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="nova"] *,
  html[data-theme="nova"] *::before,
  html[data-theme="nova"] *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 920px) {
  html[data-theme="nova"] .mobile-menu > summary {
    border-color: var(--line);
    background: rgba(85, 240, 255, 0.06);
    box-shadow: 0 10px 30px -18px rgba(85, 240, 255, 0.5);
  }
}

/* ============================================================
   LAYOUT V2 — Bento dashboard, topic board, timeline shell,
   and right-rail reader.
   ============================================================ */

/* ---------- Home: orbital hero + bento dashboard ---------- */
html[data-theme="nova"] .nova-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: 58px 0 48px;
}

html[data-theme="nova"] .nova-hero-copy h1 {
  font-size: clamp(58px, 7.4vw, 108px);
}

html[data-theme="nova"] .nova-orbit-visual {
  position: relative;
  min-height: 320px;
  margin: 0 auto;
  aspect-ratio: 1;
  width: min(100%, 340px);
}

html[data-theme="nova"] .nova-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(132, 152, 204, 0.22);
  border-radius: 50%;
}

html[data-theme="nova"] .nova-orbit::before {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(132, 152, 204, 0.13);
  border-radius: 50%;
  content: "";
}

html[data-theme="nova"] .nova-orbit--one {
  animation: nova-orbit-spin 26s linear infinite;
}

html[data-theme="nova"] .nova-orbit--two {
  inset: 15%;
  animation: nova-orbit-spin 18s linear infinite reverse;
}

html[data-theme="nova"] .nova-orbit--three {
  inset: 30%;
  animation: nova-orbit-spin 12s linear infinite;
}

html[data-theme="nova"] .nova-orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55f0ff;
  box-shadow: 0 0 16px #55f0ff;
}

html[data-theme="nova"] .nova-orbit i:nth-child(2) {
  top: 12%;
  right: 16%;
  left: auto;
  background: #ff5c9e;
  box-shadow: 0 0 16px #ff5c9e;
}

html[data-theme="nova"] .nova-orbit i:nth-child(3) {
  top: auto;
  right: 8%;
  bottom: 20%;
  left: auto;
  background: #ffc857;
  box-shadow: 0 0 16px #ffc857;
}

html[data-theme="nova"] .nova-orbit-core {
  position: absolute;
  inset: 43%;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid rgba(85, 240, 255, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.65), transparent 16%),
    linear-gradient(135deg, #55f0ff, #8b7bff 58%, #ff5c9e 125%);
  color: #04101a;
  text-align: center;
  box-shadow: 0 0 40px rgba(85, 240, 255, 0.35), 0 0 80px rgba(139, 123, 255, 0.2);
}

html[data-theme="nova"] .nova-orbit-core span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

html[data-theme="nova"] .nova-orbit-core small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

@keyframes nova-orbit-spin {
  to { transform: rotate(360deg); }
}

html[data-theme="nova"] .nova-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

html[data-theme="nova"] .nova-panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(139, 123, 255, 0.09), transparent 70%),
    rgba(9, 13, 25, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="nova"] .nova-panel::after {
  position: absolute;
  top: 0;
  left: 22px;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  content: "";
}

html[data-theme="nova"] .nova-panel--map { grid-column: span 8; }
html[data-theme="nova"] .nova-panel--now { grid-column: span 4; }
html[data-theme="nova"] .nova-panel--orbits { grid-column: span 4; }
html[data-theme="nova"] .nova-panel--signals { grid-column: span 8; }
html[data-theme="nova"] .nova-panel--references { grid-column: span 12; }

html[data-theme="nova"] .nova-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

html[data-theme="nova"] .nova-panel-heading > div > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

html[data-theme="nova"] .nova-panel-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.025em;
}

html[data-theme="nova"] .nova-panel-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
}

html[data-theme="nova"] .nova-panel-heading > a {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
}

html[data-theme="nova"] .nova-panel--map .knowledge-map-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
}

html[data-theme="nova"] .nova-now-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    radial-gradient(260px 150px at 100% 0%, rgba(139, 123, 255, 0.22), transparent 70%),
    linear-gradient(140deg, rgba(17, 23, 42, 0.96), rgba(8, 12, 23, 0.96)) padding-box,
    linear-gradient(130deg, rgba(85, 240, 255, 0.55), rgba(139, 123, 255, 0.4), rgba(255, 92, 158, 0.5)) border-box;
}

html[data-theme="nova"] .nova-now-card > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme="nova"] .nova-now-card > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

html[data-theme="nova"] .nova-now-card h3 {
  margin: 14px 0 10px;
  color: #ffffff;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
}

html[data-theme="nova"] .nova-now-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html[data-theme="nova"] .nova-now-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

html[data-theme="nova"] .nova-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}

html[data-theme="nova"] .nova-mini-metrics div {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.42);
}

html[data-theme="nova"] .nova-mini-metrics dt {
  color: #5f6d8d;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

html[data-theme="nova"] .nova-mini-metrics dd {
  margin: 6px 0 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}

html[data-theme="nova"] .nova-orbit-list {
  display: grid;
  gap: 10px;
}

html[data-theme="nova"] .nova-orbit-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.6);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

html[data-theme="nova"] .nova-orbit-row:hover {
  border-color: rgba(85, 240, 255, 0.5);
  background: rgba(18, 25, 44, 0.86);
  transform: translateX(3px);
}

html[data-theme="nova"] .nova-orbit-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(85, 240, 255, 0.42);
  border-radius: 9px;
  background: rgba(85, 240, 255, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="nova"] .nova-orbit-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

html[data-theme="nova"] .nova-orbit-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

html[data-theme="nova"] .nova-orbit-row dl {
  display: none;
}

html[data-theme="nova"] .nova-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="nova"] .nova-signal-card {
  position: relative;
  min-height: 180px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 22, 40, 0.72), rgba(8, 12, 23, 0.58));
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html[data-theme="nova"] .nova-signal-card:hover {
  border-color: rgba(85, 240, 255, 0.48);
  box-shadow: 0 18px 50px -26px rgba(85, 240, 255, 0.5);
  transform: translateY(-3px);
}

html[data-theme="nova"] .nova-signal-card > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme="nova"] .nova-signal-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

html[data-theme="nova"] .nova-signal-card h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

html[data-theme="nova"] .nova-signal-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-theme="nova"] .nova-signal-card .arrow-icon {
  position: absolute;
  right: 15px;
  bottom: 15px;
}

html[data-theme="nova"] .nova-reference-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="nova"] .nova-reference-strip a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.58);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

html[data-theme="nova"] .nova-reference-strip a:hover {
  border-color: rgba(255, 92, 158, 0.5);
  transform: translateY(-2px);
}

html[data-theme="nova"] .nova-reference-strip a > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme="nova"] .nova-reference-strip h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

html[data-theme="nova"] .nova-reference-strip p,
html[data-theme="nova"] .nova-reference-strip time {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

html[data-theme="nova"] .nova-reference-strip time {
  font-family: var(--mono);
}

/* ---------- Learning: topic board ---------- */
html[data-theme="nova"] .learning-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

html[data-theme="nova"] .learning-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(139, 123, 255, 0.09), transparent 70%),
    rgba(9, 13, 25, 0.72);
  box-shadow: var(--shadow);
}

html[data-theme="nova"] .learning-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

html[data-theme="nova"] .learning-card-index {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(85, 240, 255, 0.4);
  border-radius: 12px;
  background: rgba(85, 240, 255, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}

html[data-theme="nova"] .learning-card-title {
  flex: 1;
  min-width: 0;
}

html[data-theme="nova"] .learning-card-title p {
  margin: 0 0 5px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

html[data-theme="nova"] .learning-card-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

html[data-theme="nova"] .learning-card-title > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme="nova"] .learning-card.is-collapsed .article-list > :nth-child(n + 6),
html[data-theme="nova"] .learning-group.is-collapsed .article-list > :nth-child(n + 6) {
  display: none;
}

/* ---------- Timeline: sticky orbit index + feed ---------- */
html[data-theme="nova"] .timeline-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  margin-top: 38px;
}

html[data-theme="nova"] .timeline-rail {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 25, 0.72);
}

html[data-theme="nova"] .timeline-rail-count {
  margin: 10px 0 18px;
}

html[data-theme="nova"] .timeline-rail-count strong {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 34px;
  text-shadow: 0 0 20px rgba(85, 240, 255, 0.4);
}

html[data-theme="nova"] .timeline-rail-count span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

html[data-theme="nova"] .timeline-day-index {
  display: grid;
  max-height: calc(100vh - 260px);
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}

html[data-theme="nova"] .timeline-day-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

html[data-theme="nova"] .timeline-day-index a:hover {
  background: rgba(85, 240, 255, 0.09);
  color: var(--green);
}

html[data-theme="nova"] .timeline-day-index a span {
  color: #5f6d8d;
  font-size: 8px;
}

html[data-theme="nova"] .timeline-rail > small {
  display: block;
  margin-top: 12px;
  color: #5f6d8d;
  font-size: 9px;
  line-height: 1.6;
}

html[data-theme="nova"] .timeline-body {
  min-width: 0;
}

html[data-theme="nova"] .timeline-body .timeline-toolbar {
  margin-top: 0;
}

html[data-theme="nova"] .timeline-day {
  scroll-margin-top: 100px;
}

/* ---------- Reader: content left, orbit TOC right ---------- */
@media (min-width: 921px) {
  html[data-theme="nova"] .reader {
    grid-template-columns: minmax(0, 880px) 240px;
    gap: 48px;
  }

  html[data-theme="nova"] .reader-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  html[data-theme="nova"] .reader-rail {
    grid-column: 2;
    grid-row: 1;
    border-right: 0;
    border-left: 1px solid var(--line);
    padding-right: 0;
    padding-left: 24px;
  }
}

html[data-theme="nova"] .reader-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 25, 0.66);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

html[data-theme="nova"] .reader-context .back-link {
  margin: 0;
  color: var(--green);
}

html[data-theme="nova"] .reader-context > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

html[data-theme="nova"] .reader-context i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

html[data-theme="nova"] .reading-progress {
  position: sticky;
  z-index: 15;
  top: 72px;
  height: 3px;
  margin: -10px 0 18px;
  border-radius: 99px;
  background: rgba(132, 152, 204, 0.12);
  overflow: hidden;
}

html[data-theme="nova"] .reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #55f0ff, #8b7bff, #ff5c9e);
  box-shadow: 0 0 12px rgba(85, 240, 255, 0.7);
}

html[data-theme="nova"] .reader-rail-hint {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  color: #5f6d8d;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Layout v2 responsive ---------- */
@media (max-width: 1120px) {
  html[data-theme="nova"] .nova-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 26px;
  }

  html[data-theme="nova"] .nova-orbit-visual {
    width: min(100%, 290px);
  }

  html[data-theme="nova"] .nova-panel--map,
  html[data-theme="nova"] .nova-panel--signals {
    grid-column: span 12;
  }

  html[data-theme="nova"] .nova-panel--now,
  html[data-theme="nova"] .nova-panel--orbits {
    grid-column: span 6;
  }

  html[data-theme="nova"] .nova-panel--map .knowledge-map-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 920px) {
  html[data-theme="nova"] .nova-hero {
    grid-template-columns: 1fr;
    padding: 44px 0 36px;
  }

  html[data-theme="nova"] .nova-orbit-visual {
    display: none;
  }

  html[data-theme="nova"] .timeline-shell {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .timeline-rail {
    position: static;
  }

  html[data-theme="nova"] .timeline-day-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow-x: auto;
  }

  html[data-theme="nova"] .timeline-day-index a {
    display: grid;
    gap: 3px;
    padding: 8px;
  }
}

@media (max-width: 820px) {
  html[data-theme="nova"] .nova-dashboard {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-panel--now,
  html[data-theme="nova"] .nova-panel--orbits,
  html[data-theme="nova"] .nova-panel--map,
  html[data-theme="nova"] .nova-panel--signals,
  html[data-theme="nova"] .nova-panel--references {
    grid-column: span 1;
  }

  html[data-theme="nova"] .nova-panel {
    padding: 18px;
  }

  html[data-theme="nova"] .nova-panel-heading {
    display: block;
  }

  html[data-theme="nova"] .nova-panel-heading > p,
  html[data-theme="nova"] .nova-panel-heading > a {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
  }

  html[data-theme="nova"] .nova-panel-heading > a {
    display: inline-flex;
  }

  html[data-theme="nova"] .nova-panel--map .knowledge-map-shell {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .nova-signal-grid,
  html[data-theme="nova"] .nova-reference-strip {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .learning-board {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .learning-card {
    padding: 16px;
  }

  html[data-theme="nova"] .learning-card-header {
    flex-wrap: wrap;
  }

  html[data-theme="nova"] .learning-group-toggle {
    width: 100%;
  }

  html[data-theme="nova"] .nova-mini-metrics {
    grid-template-columns: 1fr;
  }

  html[data-theme="nova"] .reader-context {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-theme="nova"] .reading-progress {
    top: 66px;
  }
}

@media (max-width: 640px) {
  html[data-theme="nova"] .nova-hero-copy h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  html[data-theme="nova"] .nova-dashboard {
    gap: 12px;
  }

  html[data-theme="nova"] .nova-panel-heading h2 {
    font-size: 22px;
  }

  html[data-theme="nova"] .timeline-day-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-theme="nova"] .nova-reference-strip a {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

html[data-theme="nova"] .nova-orbit-quote {
  position: absolute;
  right: -4%;
  bottom: 12%;
  left: -4%;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 0 18px rgba(85, 240, 255, 0.22);
}

/* ============================================================
   DAY ORBIT / 白昼星图 — light counterpart of Nova.
   These rules are unprefixed so they only matter when the
   dark theme is not active. Dark rules use a higher-specificity
   html[data-theme="nova"] selector and win automatically.
   ============================================================ */

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] body {
  color: #0f1c38;
  background:
    radial-gradient(900px 540px at 86% -10%, rgba(111, 93, 240, 0.13), transparent 62%),
    radial-gradient(780px 480px at -8% 8%, rgba(22, 130, 255, 0.10), transparent 56%),
    radial-gradient(1100px 700px at 50% 118%, rgba(244, 81, 125, 0.09), transparent 64%),
    #f4f8ff;
}

html[data-theme="light"] ::selection {
  background: rgba(22, 130, 255, 0.18);
  color: #0f1c38;
}

/* Header & theme switch */
.site-header {
  border-bottom: 1px solid rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 50px rgba(52, 75, 130, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
}

.brand-mark {
  border: 0;
  background: linear-gradient(135deg, #1682ff, #6f5df0 58%, #f4517d 120%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(22, 130, 255, 0.24);
}

.brand-mark-ink {
  display: none;
}

.brand strong {
  color: #0f1c38;
  font-family: var(--mono);
  letter-spacing: 0.18em;
}

.brand small {
  color: #6b7c9e;
}

.desktop-nav a {
  color: #6b7c9e;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #0f1c38;
}

.desktop-nav a::after {
  background: linear-gradient(90deg, #1682ff, #6f5df0);
}

.global-search {
  border-bottom-color: rgba(22, 130, 255, 0.28);
}

.global-search svg {
  stroke: #1682ff;
}

.global-search input {
  color: #0f1c38;
}

.global-search input::placeholder {
  color: #93a1bd;
}

.nav-more summary,
.mobile-menu summary {
  color: #6b7c9e;
}

.nav-more[open] summary,
.nav-more summary:hover {
  color: #0f1c38;
}

.nav-more nav,
.mobile-menu nav {
  border-color: rgba(118, 139, 185, 0.22);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(39, 71, 130, 0.16);
}

.nav-more nav a {
  color: #0f1c38;
}

.nav-more nav a:hover,
.nav-more nav a.active {
  background: #eef5ff;
  color: #1667d9;
}

.app-main {
  position: relative;
  z-index: 1;
}

/* Shared light surfaces */
.mono-label {
  color: #1667d9;
}

.page-intro h1,
.about-lead h1 {
  background: linear-gradient(100deg, #0f1c38 0%, #1667d9 45%, #6f5df0 78%, #f4517d 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-count strong {
  color: #1667d9;
  font-family: var(--mono);
}

.article-row {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(52, 75, 130, 0.05);
}

.article-row:hover {
  border-color: rgba(22, 130, 255, 0.48);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(22, 130, 255, 0.14);
}

.article-row-index {
  border-color: rgba(22, 130, 255, 0.26);
  background: #edf5ff;
  color: #1667d9;
}

.score {
  border-color: rgba(22, 130, 255, 0.3);
  background: #edf5ff;
  color: #1667d9;
}

.score-low {
  border-color: rgba(244, 81, 125, 0.38);
  background: #fff0f5;
  color: #e23e6b;
}

/* Light home: day orbit bento */
.nova-system-line {
  border-bottom-color: rgba(118, 139, 185, 0.2);
  color: #6b7c9e;
}

.nova-system-line span:last-child {
  color: #1667d9;
}

.nova-system-line span:last-child::before {
  background: #1682ff;
  box-shadow: 0 0 10px rgba(22, 130, 255, 0.7);
}

.nova-coordinate {
  color: #1667d9;
}

.nova-hero-copy h1 {
  background: linear-gradient(104deg, #0f1c38 4%, #1667d9 42%, #6f5df0 72%, #f4517d 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

.nova-deck {
  color: #5e6f90;
}

.nova-actions a {
  border-color: rgba(22, 130, 255, 0.3);
  background: rgba(22, 130, 255, 0.06);
  color: #1667d9;
}

.nova-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(90deg, #1682ff, #6f5df0);
  color: #ffffff;
}

.nova-actions a:hover {
  border-color: rgba(22, 130, 255, 0.6);
  box-shadow: 0 16px 40px -16px rgba(22, 130, 255, 0.45);
}

.nova-orbit {
  border-color: rgba(111, 93, 240, 0.18);
}

.nova-orbit::before {
  border-color: rgba(22, 130, 255, 0.12);
}

.nova-orbit i {
  background: #1682ff;
  box-shadow: 0 0 14px rgba(22, 130, 255, 0.7);
}

.nova-orbit i:nth-child(2) {
  background: #f4517d;
  box-shadow: 0 0 14px rgba(244, 81, 125, 0.65);
}

.nova-orbit i:nth-child(3) {
  background: #f5a60c;
  box-shadow: 0 0 14px rgba(245, 166, 12, 0.6);
}

.nova-orbit-core {
  border-color: rgba(22, 130, 255, 0.45);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 16%),
    linear-gradient(135deg, #1682ff, #6f5df0 58%, #f4517d 125%);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(22, 130, 255, 0.28);
}

.nova-orbit-quote {
  color: #6b7c9e;
  text-shadow: 0 6px 20px rgba(22, 130, 255, 0.12);
}

.nova-stats {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(52, 75, 130, 0.07);
}

.nova-stats > div + div {
  border-left-color: rgba(118, 139, 185, 0.2);
}

.nova-stats dt {
  color: #6b7c9e;
}

.nova-stats dd {
  color: #0f1c38;
  text-shadow: none;
}

.nova-dashboard {
  gap: 16px;
}

.nova-panel {
  border-color: rgba(118, 139, 185, 0.2);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(111, 93, 240, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(52, 75, 130, 0.08);
}

.nova-panel-heading > div > span {
  color: #f4517d;
}

.nova-panel-heading h2 {
  color: #0f1c38;
}

.nova-panel-heading > p {
  color: #6b7c9e;
}

.nova-panel-heading > a {
  color: #1667d9;
}

.nova-now-card {
  background:
    radial-gradient(260px 150px at 100% 0%, rgba(111, 93, 240, 0.14), transparent 70%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.96)) padding-box,
    linear-gradient(130deg, rgba(22, 130, 255, 0.55), rgba(111, 93, 240, 0.4), rgba(244, 81, 125, 0.5)) border-box;
}

.nova-now-card h3 {
  color: #0f1c38;
}

.nova-now-card > p,
.nova-now-card em {
  color: #6b7c9e;
}

.nova-now-card a {
  color: #1667d9;
}

.nova-mini-metrics div,
.nova-orbit-row,
.nova-signal-card,
.nova-reference-strip a {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.nova-mini-metrics dt {
  color: #93a1bd;
}

.nova-mini-metrics dd {
  color: #1667d9;
}

.nova-orbit-index {
  border-color: rgba(22, 130, 255, 0.32);
  background: #edf5ff;
  color: #1667d9;
}

.nova-orbit-row h3,
.nova-signal-card h3,
.nova-reference-strip h3 {
  color: #0f1c38;
}

.nova-orbit-row p,
.nova-signal-card p,
.nova-signal-card em,
.nova-reference-strip p,
.nova-reference-strip time {
  color: #6b7c9e;
}

.nova-signal-card > span {
  color: #6f5df0;
}

.nova-signal-card:hover,
.nova-reference-strip a:hover {
  border-color: rgba(22, 130, 255, 0.45);
  box-shadow: 0 18px 46px rgba(22, 130, 255, 0.13);
}

.nova-reference-strip a > span {
  color: #f4517d;
}

/* Light knowledge map */
.knowledge-map-panel,
.knowledge-readout {
  border-color: rgba(118, 139, 185, 0.2);
  background:
    radial-gradient(500px 220px at 88% -8%, rgba(111, 93, 240, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(52, 75, 130, 0.08);
}

.knowledge-map-panel::before {
  border-color: #1682ff;
}

.knowledge-map-panel::after {
  border-color: #f4517d;
}

.knowledge-map-legend span {
  color: #6b7c9e;
}

.knowledge-lane line {
  stroke: rgba(111, 93, 240, 0.22);
}

.knowledge-time-guides line {
  stroke: rgba(111, 93, 240, 0.1);
}

.knowledge-lane text,
.knowledge-date-labels > text:not(.knowledge-axis-name) {
  fill: #93a1bd;
}

.knowledge-axis-name {
  fill: #f4517d;
}

.knowledge-readout h3 {
  color: #0f1c38;
}

.knowledge-readout p,
.knowledge-readout small {
  color: #6b7c9e;
}

.knowledge-readout p b,
.knowledge-readout a {
  color: #1667d9;
}

/* Light learning board */
.learning-board {
  gap: 16px;
}

.learning-card {
  border-color: rgba(118, 139, 185, 0.2);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(111, 93, 240, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(52, 75, 130, 0.07);
}

.learning-card-index {
  border-color: rgba(22, 130, 255, 0.32);
  background: #edf5ff;
  color: #1667d9;
}

.learning-card-title p {
  color: #f4517d;
}

.learning-card-title h2 {
  color: #0f1c38;
}

.learning-card-title > span {
  color: #6b7c9e;
}

.learning-directory-tools p strong {
  color: #f4517d;
}

.learning-directory-actions button,
.learning-group-toggle {
  border-color: rgba(118, 139, 185, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: #1667d9;
}

.learning-directory-actions button:hover,
.learning-group-toggle:hover {
  border-color: rgba(22, 130, 255, 0.5);
  background: #edf5ff;
  color: #0f1c38;
}

/* Light timeline shell */
.timeline-shell {
  gap: 26px;
}

.timeline-rail {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(52, 75, 130, 0.07);
}

.timeline-rail-count strong {
  color: #0f1c38;
  text-shadow: none;
}

.timeline-rail-count span,
.timeline-rail > small {
  color: #6b7c9e;
}

.timeline-day-index a {
  color: #6b7c9e;
}

.timeline-day-index a:hover {
  background: #edf5ff;
  color: #1667d9;
}

.timeline-day-index a span {
  color: #93a1bd;
}

.timeline-day {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(52, 75, 130, 0.06);
}

.timeline-date strong {
  color: #0f1c38;
  text-shadow: none;
}

.timeline-day-summary span {
  border-color: rgba(118, 139, 185, 0.2);
  background: #f2f7ff;
  color: #6b7c9e;
}

.timeline-more summary,
.timeline-load-more {
  color: #1667d9;
}

.timeline-load-more {
  border-color: rgba(22, 130, 255, 0.35);
  background: #edf5ff;
}

/* Light reader */
.reader-rail {
  border-left-color: rgba(118, 139, 185, 0.2);
}

.back-link {
  color: #1667d9;
}

.reader-rail nav a {
  color: #6b7c9e;
}

.reader-context {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: #6b7c9e;
}

.reader-context i {
  background: #1682ff;
  box-shadow: 0 0 10px rgba(22, 130, 255, 0.65);
}

.reading-progress {
  background: rgba(22, 130, 255, 0.12);
}

.reading-progress span {
  background: linear-gradient(90deg, #1682ff, #6f5df0, #f4517d);
  box-shadow: 0 0 10px rgba(22, 130, 255, 0.45);
}

.reader-header h1 {
  color: #0f1c38;
}

.reader-header > div {
  color: #6b7c9e;
}

.comment-jump {
  border-color: rgba(22, 130, 255, 0.35);
  background: #edf5ff;
  color: #1667d9;
}

.comment-jump span {
  background: linear-gradient(90deg, #1682ff, #6f5df0);
  color: #ffffff;
}

.article-body {
  color: #263858;
}

.article-body p,
.article-body li {
  color: #334566;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: #0f1c38;
}

.article-body code {
  border-color: rgba(22, 130, 255, 0.16);
  background: #edf5ff;
  color: #0f63c8;
}

.article-body pre {
  border-color: rgba(118, 139, 185, 0.2);
  border-left-color: #6f5df0;
  background: #0f1c38;
  color: #e8f1ff;
}

.article-body blockquote {
  background: #f2f7ff;
}

.article-body blockquote p {
  color: #5e6f90;
}

.comments-section h2 {
  color: #0f1c38;
}

/* Light opportunity & links */
.opportunity-grid article,
.practice-pulse,
.quick-links-section,
.third-party-card,
.company-block,
.interview-summary {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.quick-link-card,
.third-party-card,
.company-block {
  border-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.76);
}

.quick-link-card strong,
.third-party-card h2,
.company-block h2,
.interview-summary strong {
  color: #0f1c38;
}

.chart-line {
  stroke: #f4517d;
}

.chart-score-dot {
  fill: #f4517d;
}

.mobile-nav {
  border-top-color: rgba(118, 139, 185, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -18px 50px rgba(52, 75, 130, 0.08);
}

.mobile-nav a {
  color: #6b7c9e;
}

.mobile-nav a span {
  color: #1667d9;
}

.mobile-nav a.active {
  background: #edf5ff;
  color: #0f1c38;
}

.empty-copy,
.chart-empty {
  color: #6b7c9e;
}

/* Light structural mirror for the bento/orbit layout */
.nova-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: 58px 0 48px;
}

.nova-orbit-visual {
  position: relative;
  min-height: 320px;
  margin: 0 auto;
  aspect-ratio: 1;
  width: min(100%, 340px);
}

.nova-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.nova-orbit::before {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  content: "";
}

.nova-orbit--one { animation: nova-orbit-spin 26s linear infinite; }
.nova-orbit--two { inset: 15%; animation: nova-orbit-spin 18s linear infinite reverse; }
.nova-orbit--three { inset: 30%; animation: nova-orbit-spin 12s linear infinite; }

.nova-orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.nova-orbit i:nth-child(2) { top: 12%; right: 16%; left: auto; }
.nova-orbit i:nth-child(3) { top: auto; right: 8%; bottom: 20%; left: auto; }

.nova-orbit-core {
  position: absolute;
  inset: 43%;
  display: grid;
  place-content: center;
  gap: 4px;
  border-radius: 50%;
  text-align: center;
}

.nova-orbit-core span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nova-orbit-core small {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.nova-orbit-quote {
  position: absolute;
  right: -4%;
  bottom: 12%;
  left: -4%;
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.nova-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 8px;
}

.nova-panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius, 18px);
  overflow: hidden;
}

.nova-panel::after {
  position: absolute;
  top: 0;
  left: 22px;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, #1682ff, transparent);
  content: "";
}

.nova-panel--map { grid-column: span 8; }
.nova-panel--now { grid-column: span 4; }
.nova-panel--orbits { grid-column: span 4; }
.nova-panel--signals { grid-column: span 8; }
.nova-panel--references { grid-column: span 12; }

.nova-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.nova-panel-heading > div > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.nova-panel-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.025em;
}

.nova-panel-heading > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
}

.nova-panel-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
}

.nova-panel-heading > a .arrow-icon {
  display: block;
  flex: 0 0 auto;
}

.nova-panel--map .knowledge-map-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.nova-now-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.nova-now-card > p { margin: 0; font-family: var(--mono); font-size: 9px; }
.nova-now-card > span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; }
.nova-now-card h3 { margin: 14px 0 10px; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; }
.nova-now-card em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.nova-now-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nova-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}

.nova-mini-metrics div { padding: 10px; border-radius: 10px; }
.nova-mini-metrics dt { font-family: var(--mono); font-size: 7px; letter-spacing: 0.1em; }
.nova-mini-metrics dd { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; }

.nova-orbit-list { display: grid; gap: 10px; }

.nova-orbit-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.nova-orbit-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 10px;
}

.nova-orbit-row h3 { margin: 0; font-size: 14px; }
.nova-orbit-row p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }
.nova-orbit-row dl { display: none; }

.nova-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nova-signal-card {
  position: relative;
  min-height: 180px;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.nova-signal-card > span { font-family: var(--mono); font-size: 9px; }
.nova-signal-card p { margin: 12px 0 0; font-family: var(--mono); font-size: 8px; }
.nova-signal-card h3 { margin: 9px 0 8px; font-size: 16px; line-height: 1.45; }
.nova-signal-card em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nova-signal-card .arrow-icon { position: absolute; right: 15px; bottom: 15px; }

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

.nova-reference-strip a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.nova-reference-strip a > span { font-family: var(--mono); font-size: 9px; }
.nova-reference-strip h3 { margin: 0; font-size: 13px; }
.nova-reference-strip p,
.nova-reference-strip time { margin: 4px 0 0; font-size: 10px; }
.nova-reference-strip time { font-family: var(--mono); }

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

.learning-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius, 18px);
}

.learning-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.learning-card-index {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.learning-card-title { flex: 1; min-width: 0; }
.learning-card-title p { margin: 0 0 5px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em; }
.learning-card-title h2 { margin: 0; font-size: 22px; }
.learning-card-title > span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; }

.timeline-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-top: 38px;
}

.timeline-rail {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius, 18px);
}

.timeline-rail-count { margin: 10px 0 18px; }
.timeline-rail-count strong { font-family: var(--mono); font-size: 34px; }
.timeline-rail-count span { margin-left: 8px; font-size: 11px; }

.timeline-day-index {
  display: grid;
  max-height: calc(100vh - 260px);
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}

.timeline-day-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

.timeline-day-index a span { font-size: 8px; }
.timeline-rail > small { display: block; margin-top: 12px; font-size: 9px; line-height: 1.6; }
.timeline-body { min-width: 0; }
.timeline-body .timeline-toolbar { margin-top: 0; }
.timeline-day { scroll-margin-top: 100px; }

@media (min-width: 921px) {
  .reader {
    grid-template-columns: minmax(0, 880px) 240px;
    gap: 48px;
  }

  .reader-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .reader-rail {
    grid-column: 2;
    grid-row: 1;
    border-right: 0;
    border-left: 1px solid rgba(118, 139, 185, 0.2);
    padding-right: 0;
    padding-left: 24px;
  }
}

.reader-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.reader-context .back-link { margin: 0; }
.reader-context > span { display: inline-flex; align-items: center; gap: 7px; }
.reader-context i { width: 6px; height: 6px; border-radius: 50%; }

.reading-progress {
  position: sticky;
  z-index: 15;
  top: 72px;
  height: 3px;
  margin: -10px 0 18px;
  border-radius: 99px;
  overflow: hidden;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
}

.reader-rail-hint {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Light responsive mirror */
@media (max-width: 1120px) {
  .nova-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 26px;
  }

  .nova-orbit-visual { width: min(100%, 290px); }

  .nova-panel--map,
  .nova-panel--signals { grid-column: span 12; }

  .nova-panel--now,
  .nova-panel--orbits { grid-column: span 6; }

  .nova-panel--map .knowledge-map-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 920px) {
  .nova-hero {
    grid-template-columns: 1fr;
    padding: 44px 0 36px;
  }

  .nova-orbit-visual { display: none; }

  .timeline-shell { grid-template-columns: 1fr; }
  .timeline-rail { position: static; }

  .timeline-day-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow-x: auto;
  }

  .timeline-day-index a {
    display: grid;
    gap: 3px;
    padding: 8px;
  }
}

@media (max-width: 820px) {
  .nova-dashboard { grid-template-columns: 1fr; }

  .nova-panel--now,
  .nova-panel--orbits,
  .nova-panel--map,
  .nova-panel--signals,
  .nova-panel--references { grid-column: span 1; }

  .nova-panel { padding: 18px; }
  .nova-panel-heading { display: block; }

  .nova-panel-heading > p,
  .nova-panel-heading > a {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
  }

  .nova-panel-heading > a {
    display: inline-flex;
  }

  .nova-panel--map .knowledge-map-shell { grid-template-columns: 1fr; }
  .nova-signal-grid,
  .nova-reference-strip { grid-template-columns: 1fr; }
  .learning-board { grid-template-columns: 1fr; }
  .learning-card { padding: 16px; }
  .learning-card-header { flex-wrap: wrap; }
  .learning-group-toggle { width: 100%; }
  .nova-mini-metrics { grid-template-columns: 1fr; }

  .reader-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .reading-progress { top: 66px; }
}

@media (max-width: 640px) {
  .nova-hero-copy h1 { font-size: clamp(46px, 14vw, 68px); }
  .nova-dashboard { gap: 12px; }
  .nova-panel-heading h2 { font-size: 22px; }
  .timeline-day-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nova-reference-strip a { grid-template-columns: 38px minmax(0, 1fr); }
}

/* Light projects & reading mirrors */
.project-directory-page .page-intro h1 {
  background-image: linear-gradient(100deg, #0f1c38 0%, #1667d9 54%, #6f5df0 100%);
}

.project-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.project-signal-card {
  --project-signal: #1682ff;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 246px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(118, 139, 185, 0.2);
  border-radius: var(--radius, 18px);
  background:
    radial-gradient(360px 190px at 100% 0%, color-mix(in srgb, var(--project-signal) 11%, transparent), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.86));
  box-shadow: 0 18px 50px rgba(52, 75, 130, 0.07);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-signal-card[data-priority="p0"] { --project-signal: #f5a60c; }
.project-signal-card[data-priority="p2"] { --project-signal: #6f5df0; }

.project-signal-card::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--project-signal), transparent);
  content: "";
}

.project-signal-card:hover {
  border-color: color-mix(in srgb, var(--project-signal) 46%, transparent);
  box-shadow: 0 22px 60px -30px color-mix(in srgb, var(--project-signal) 35%, transparent);
  transform: translateY(-3px);
}

.project-signal-card > header,
.project-signal-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-signal-index,
.project-signal-state,
.project-signal-body small,
.project-signal-card > footer span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-signal-index,
.project-signal-body small,
.project-signal-card > footer span {
  color: color-mix(in srgb, var(--project-signal) 82%, #0f1c38);
}

.project-signal-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #6b7c9e;
  font-style: normal;
}

.project-signal-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--project-signal);
  box-shadow: 0 0 10px var(--project-signal);
}

.project-signal-body {
  align-self: center;
  padding: 28px 0 24px;
}

.project-signal-body h2 {
  margin: 8px 0 10px;
  color: #0f1c38;
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.04em;
}

.project-signal-body p {
  max-width: 46ch;
  margin: 0;
  color: #5e6f90;
  font-size: 13px;
  line-height: 1.75;
}

.project-signal-card > footer {
  padding-top: 15px;
  border-top: 1px solid rgba(118, 139, 185, 0.16);
}

.project-signal-card > footer strong {
  overflow: hidden;
  color: #0f1c38;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-directory-page {
  --reading-accent: #f5a60c;
}

.reading-directory-page .page-intro::before {
  background: linear-gradient(90deg, var(--reading-accent), #6f5df0, transparent);
}

.reading-directory-page .page-intro h1 {
  background-image: linear-gradient(100deg, #0f1c38 0%, #e19a00 64%, #6f5df0 110%);
}

.reading-directory-page .page-count strong {
  color: #e19a00;
}

.reading-directory-page .directory-groups {
  gap: 24px;
  margin-top: 44px;
}

.reading-group {
  position: relative;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(118, 139, 185, 0.2);
  border-radius: var(--radius, 18px);
  background:
    radial-gradient(300px 190px at 0% 0%, rgba(245, 166, 12, 0.08), transparent 72%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 50px rgba(52, 75, 130, 0.06);
}

.reading-group::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--reading-accent), transparent);
  content: "";
}

.reading-group > header {
  position: sticky;
  top: 100px;
  padding-right: 24px;
  border-right: 1px solid rgba(118, 139, 185, 0.18);
}

.reading-group-code {
  display: block;
  margin-bottom: 14px;
  color: #d98d00;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.reading-group > header h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.2vw, 30px);
}

.reading-group .article-row {
  background: rgba(255, 255, 255, 0.68);
}

.reading-group .article-row:hover {
  border-color: rgba(245, 166, 12, 0.42);
}

.reading-group .article-row::before {
  background: linear-gradient(180deg, var(--reading-accent), #6f5df0);
}

.reading-group .article-row-index {
  border-color: rgba(245, 166, 12, 0.22);
  background: rgba(245, 166, 12, 0.07);
  color: #d98d00;
}

.reading-group .article-row-action {
  color: #d98d00;
}

@media (max-width: 820px) {
  .project-signal-grid { grid-template-columns: 1fr; }

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

  .reading-group > header {
    position: static;
    padding-right: 0;
    border-right: 0;
  }
}

/* A two-state control shows the current theme instead of only naming the next action. */
.theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  width: 124px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid rgba(118, 139, 185, 0.3);
  border-radius: 999px;
  background: rgba(230, 238, 252, 0.9);
  box-shadow: inset 0 1px 2px rgba(39, 71, 130, 0.08);
  color: #6b7c9e;
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(22, 130, 255, 0.5);
  box-shadow: 0 10px 28px rgba(22, 130, 255, 0.16), inset 0 1px 2px rgba(39, 71, 130, 0.08);
  transform: none;
}

.theme-toggle-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 32px;
  border-radius: 999px;
  color: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theme-toggle-icon {
  font-size: 12px;
  line-height: 1;
}

html[data-theme="light"] .theme-toggle-choice--light {
  background: #ffffff;
  color: #0f67d9;
  box-shadow: 0 4px 14px rgba(22, 130, 255, 0.2), inset 0 0 0 1px rgba(22, 130, 255, 0.16);
}

html[data-theme="light"] .theme-toggle-choice--nova {
  color: #7d89a2;
}

html[data-theme="nova"] .theme-toggle {
  border-color: rgba(132, 152, 204, 0.28);
  background: rgba(8, 12, 23, 0.88);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.44);
  color: #687696;
}

html[data-theme="nova"] .theme-toggle:hover {
  border-color: rgba(85, 240, 255, 0.52);
  box-shadow: 0 10px 30px rgba(85, 240, 255, 0.14), inset 0 1px 3px rgba(0, 0, 0, 0.44);
}

html[data-theme="nova"] .theme-toggle-choice--nova {
  background: linear-gradient(110deg, #55f0ff, #8b7bff);
  color: #04101a;
  box-shadow: 0 4px 16px rgba(85, 240, 255, 0.28);
}

html[data-theme="nova"] .theme-toggle-choice--light {
  color: #71809f;
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 76px;
  }

  .theme-toggle-choice {
    gap: 0;
  }

  .theme-toggle-text {
    display: none;
  }
}

/* ============================================================
   LIGHT RESEARCH NOTEBOOK
   Final scoped layer: warm paper, ink, and restrained annotation colors.
   ============================================================ */

html[data-theme="light"] {
  --day-paper: #f3f0e8;
  --day-surface: #fffdf8;
  --day-surface-soft: #edf1f4;
  --day-ink: #172238;
  --day-copy: #344158;
  --day-muted: #566377;
  --day-line: #c6ced8;
  --day-line-strong: #8995a6;
  --day-blue: #245596;
  --day-blue-strong: #183f77;
  --day-red: #a43f36;
  --day-gold: #80530f;
  --day-teal: #28645f;
  --day-shadow: 0 18px 48px rgba(29, 43, 66, 0.09);
}

html[data-theme="light"] body {
  overflow-x: clip;
  color: var(--day-ink);
  background:
    linear-gradient(rgba(36, 85, 150, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 85, 150, 0.045) 1px, transparent 1px),
    radial-gradient(760px 460px at 88% -8%, rgba(36, 85, 150, 0.09), transparent 68%),
    radial-gradient(680px 420px at -10% 18%, rgba(164, 63, 54, 0.055), transparent 68%),
    var(--day-paper);
  background-attachment: fixed;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

html[data-theme="light"] ::selection {
  background: rgba(36, 85, 150, 0.18);
  color: var(--day-ink);
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(77, 91, 112, 0.24);
  background: rgba(250, 248, 242, 0.92);
  box-shadow: 0 12px 36px rgba(29, 43, 66, 0.08);
}

html[data-theme="light"] .brand-mark {
  background: linear-gradient(145deg, var(--day-blue-strong), var(--day-blue));
  box-shadow: 0 8px 22px rgba(24, 63, 119, 0.24);
}

html[data-theme="light"] .brand strong,
html[data-theme="light"] .desktop-nav a:hover,
html[data-theme="light"] .desktop-nav a.active,
html[data-theme="light"] .nav-more[open] summary,
html[data-theme="light"] .nav-more summary:hover {
  color: var(--day-ink);
}

html[data-theme="light"] .brand small,
html[data-theme="light"] .desktop-nav a,
html[data-theme="light"] .nav-more summary,
html[data-theme="light"] .mobile-menu summary {
  color: var(--day-muted);
}

html[data-theme="light"] .desktop-nav a::after {
  background: var(--day-blue);
}

html[data-theme="light"] .global-search {
  border: 1px solid var(--day-line);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .global-search svg {
  stroke: var(--day-blue);
}

html[data-theme="light"] .global-search input {
  color: var(--day-ink);
}

html[data-theme="light"] .global-search input::placeholder {
  color: var(--day-muted);
}

html[data-theme="light"] .nav-more nav,
html[data-theme="light"] .mobile-menu nav {
  border-color: var(--day-line);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--day-shadow);
}

html[data-theme="light"] .nav-more nav a {
  color: var(--day-ink);
}

html[data-theme="light"] .nav-more nav a span {
  color: var(--day-red);
}

html[data-theme="light"] .nav-more nav a:hover,
html[data-theme="light"] .nav-more nav a.active {
  background: #e8edf3;
  color: var(--day-blue-strong);
}

html[data-theme="light"] .theme-toggle {
  border-color: #b8c1ce;
  background: #e4e8ec;
  box-shadow: inset 0 1px 3px rgba(29, 43, 66, 0.1);
  color: var(--day-muted);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: var(--day-blue);
  box-shadow: 0 8px 22px rgba(36, 85, 150, 0.14), inset 0 1px 3px rgba(29, 43, 66, 0.08);
}

html[data-theme="light"] .theme-toggle-choice--light {
  background: var(--day-surface);
  color: var(--day-blue-strong);
  box-shadow: 0 3px 10px rgba(29, 43, 66, 0.14), inset 0 0 0 1px rgba(36, 85, 150, 0.16);
}

html[data-theme="light"] .theme-toggle-choice--nova {
  color: var(--day-muted);
}

/* Shared directory hierarchy */
html[data-theme="light"] .mono-label,
html[data-theme="light"] .page-count strong {
  color: var(--day-blue-strong);
}

html[data-theme="light"] .page-intro {
  border-top: 0;
  border-bottom-color: var(--day-line-strong);
}

html[data-theme="light"] .page-intro::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 3px;
  background: linear-gradient(90deg, var(--day-blue) 0 72%, var(--day-red) 72% 80%, transparent 80%);
  content: "";
}

html[data-theme="light"] .page-intro h1,
html[data-theme="light"] .about-lead h1 {
  background: none;
  color: var(--day-ink);
  -webkit-text-fill-color: currentColor;
}

html[data-theme="light"] .page-intro > div:first-child > p:last-child,
html[data-theme="light"] .page-count span,
html[data-theme="light"] .empty-copy,
html[data-theme="light"] .chart-empty {
  color: var(--day-muted);
}

html[data-theme="light"] .article-row {
  border-color: var(--day-line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 7px 20px rgba(29, 43, 66, 0.045);
}

html[data-theme="light"] .article-row:hover {
  border-color: rgba(36, 85, 150, 0.55);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(36, 85, 150, 0.12);
}

html[data-theme="light"] .article-row-index,
html[data-theme="light"] .score {
  border-color: rgba(36, 85, 150, 0.28);
  background: #e8edf3;
  color: var(--day-blue-strong);
}

html[data-theme="light"] .article-row-main strong {
  color: var(--day-ink);
}

html[data-theme="light"] .article-row-main small {
  color: var(--day-muted);
}

html[data-theme="light"] .arrow-icon {
  stroke: var(--day-blue);
}

/* Home: restore the full layout instead of inheriting dark-only structure. */
html[data-theme="light"] .nova-home {
  display: grid;
  gap: 52px;
}

html[data-theme="light"] .nova-masthead {
  padding-top: 8px;
}

html[data-theme="light"] .nova-system-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--day-line);
  color: var(--day-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

html[data-theme="light"] .nova-system-line span:last-child,
html[data-theme="light"] .nova-coordinate {
  color: var(--day-blue-strong);
}

html[data-theme="light"] .nova-system-line span:last-child::before {
  background: var(--day-red);
  box-shadow: none;
}

html[data-theme="light"] .nova-coordinate {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

html[data-theme="light"] .nova-hero-copy h1 {
  margin: 0;
  background: none;
  color: var(--day-ink);
  font-size: clamp(58px, 7vw, 98px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  -webkit-text-fill-color: currentColor;
}

html[data-theme="light"] .nova-hero-copy h1 em {
  color: var(--day-blue);
  font-style: normal;
}

html[data-theme="light"] .nova-deck {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--day-copy);
  font-size: 16px;
  line-height: 1.9;
}

html[data-theme="light"] .nova-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

html[data-theme="light"] .nova-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--day-line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--day-blue-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

html[data-theme="light"] .nova-actions a:first-child {
  border-color: var(--day-blue-strong);
  background: var(--day-blue-strong);
  color: #ffffff;
}

html[data-theme="light"] .nova-actions a:hover {
  border-color: var(--day-blue);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 85, 150, 0.14);
  color: var(--day-blue-strong);
  transform: translateY(-2px);
}

html[data-theme="light"] .nova-orbit,
html[data-theme="light"] .nova-orbit::before {
  border-color: rgba(36, 85, 150, 0.24);
}

html[data-theme="light"] .nova-orbit-visual {
  overflow: clip;
}

html[data-theme="light"] .nova-orbit i {
  background: var(--day-blue);
  box-shadow: 0 0 0 4px rgba(36, 85, 150, 0.1);
}

html[data-theme="light"] .nova-orbit i:nth-child(2) {
  background: var(--day-red);
  box-shadow: 0 0 0 4px rgba(164, 63, 54, 0.1);
}

html[data-theme="light"] .nova-orbit i:nth-child(3) {
  background: var(--day-gold);
  box-shadow: 0 0 0 4px rgba(128, 83, 15, 0.1);
}

html[data-theme="light"] .nova-orbit-core {
  border-color: var(--day-blue);
  background: var(--day-surface);
  color: var(--day-blue-strong);
  box-shadow: 0 8px 22px rgba(36, 85, 150, 0.16);
}

html[data-theme="light"] .nova-orbit-quote {
  color: var(--day-copy);
  text-shadow: none;
}

html[data-theme="light"] .nova-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--day-line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--day-shadow);
}

html[data-theme="light"] .nova-stats > div {
  position: relative;
  padding: 20px 22px;
}

html[data-theme="light"] .nova-stats > div + div {
  border-left: 1px solid var(--day-line);
}

html[data-theme="light"] .nova-stats > div::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 2px;
  background: var(--day-blue);
  content: "";
  opacity: 0.28;
}

html[data-theme="light"] .nova-stats dt {
  color: var(--day-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

html[data-theme="light"] .nova-stats dd {
  margin: 9px 0 0;
  color: var(--day-ink);
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

html[data-theme="light"] .nova-panel,
html[data-theme="light"] .knowledge-map-panel,
html[data-theme="light"] .knowledge-readout,
html[data-theme="light"] .learning-card,
html[data-theme="light"] .timeline-rail,
html[data-theme="light"] .timeline-day {
  border-color: var(--day-line);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--day-shadow);
}

html[data-theme="light"] .nova-panel::after {
  background: linear-gradient(90deg, var(--day-blue), transparent);
}

html[data-theme="light"] .nova-panel-heading > div > span,
html[data-theme="light"] .learning-card-title p,
html[data-theme="light"] .learning-directory-tools p strong {
  color: var(--day-red);
}

html[data-theme="light"] .nova-panel-heading h2,
html[data-theme="light"] .nova-now-card h3,
html[data-theme="light"] .nova-orbit-row h3,
html[data-theme="light"] .nova-signal-card h3,
html[data-theme="light"] .nova-reference-strip h3,
html[data-theme="light"] .learning-card-title h2 {
  color: var(--day-ink);
}

html[data-theme="light"] .nova-panel-heading > p,
html[data-theme="light"] .nova-now-card > p,
html[data-theme="light"] .nova-now-card em,
html[data-theme="light"] .nova-orbit-row p,
html[data-theme="light"] .nova-signal-card p,
html[data-theme="light"] .nova-signal-card em,
html[data-theme="light"] .nova-reference-strip p,
html[data-theme="light"] .nova-reference-strip time,
html[data-theme="light"] .learning-card-title > span {
  color: var(--day-muted);
}

html[data-theme="light"] .nova-panel-heading > a,
html[data-theme="light"] .nova-now-card a,
html[data-theme="light"] .knowledge-readout p b,
html[data-theme="light"] .knowledge-readout a,
html[data-theme="light"] .nova-mini-metrics dd {
  color: var(--day-blue-strong);
}

html[data-theme="light"] .nova-now-card {
  background:
    linear-gradient(rgba(36, 85, 150, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 85, 150, 0.05) 1px, transparent 1px),
    var(--day-surface);
  background-size: 20px 20px, 20px 20px, auto;
  border-color: var(--day-line);
}

html[data-theme="light"] .nova-mini-metrics div,
html[data-theme="light"] .nova-orbit-row,
html[data-theme="light"] .nova-signal-card,
html[data-theme="light"] .nova-reference-strip a {
  border-color: var(--day-line);
  background: var(--day-surface);
}

html[data-theme="light"] .nova-mini-metrics dt,
html[data-theme="light"] .knowledge-lane text,
html[data-theme="light"] .knowledge-date-labels > text:not(.knowledge-axis-name) {
  color: var(--day-muted);
  fill: var(--day-muted);
}

html[data-theme="light"] .nova-orbit-index,
html[data-theme="light"] .learning-card-index {
  border-color: rgba(36, 85, 150, 0.3);
  background: #e8edf3;
  color: var(--day-blue-strong);
}

html[data-theme="light"] .nova-signal-card > span,
html[data-theme="light"] .knowledge-axis-name {
  color: var(--day-red);
  fill: var(--day-red);
}

/* Project, learning, and reading use one material system with distinct markers. */
html[data-theme="light"] .project-signal-card {
  --project-signal: var(--day-blue);
  border-color: var(--day-line);
  background: var(--day-surface);
  box-shadow: var(--day-shadow);
}

html[data-theme="light"] .project-signal-card[data-priority="p0"] {
  --project-signal: var(--day-gold);
}

html[data-theme="light"] .project-signal-card[data-priority="p2"] {
  --project-signal: #654f88;
}

html[data-theme="light"] .project-signal-index,
html[data-theme="light"] .project-signal-body small,
html[data-theme="light"] .project-signal-card > footer span {
  color: color-mix(in srgb, var(--project-signal) 86%, var(--day-ink));
}

html[data-theme="light"] .project-signal-state,
html[data-theme="light"] .project-signal-body p {
  color: var(--day-muted);
}

html[data-theme="light"] .project-signal-body h2,
html[data-theme="light"] .project-signal-card > footer strong {
  color: var(--day-ink);
}

html[data-theme="light"] .project-signal-card > footer {
  border-top-color: var(--day-line);
}

html[data-theme="light"] .learning-directory-tools {
  border-color: var(--day-line);
}

html[data-theme="light"] .learning-directory-actions button,
html[data-theme="light"] .learning-group-toggle {
  border-color: var(--day-line);
  background: var(--day-surface);
  color: var(--day-blue-strong);
}

html[data-theme="light"] .learning-directory-actions button:hover,
html[data-theme="light"] .learning-group-toggle:hover {
  border-color: var(--day-blue);
  background: #e8edf3;
  color: var(--day-ink);
}

html[data-theme="light"] .reading-directory-page {
  --reading-accent: var(--day-gold);
}

html[data-theme="light"] .reading-directory-page .page-intro::before {
  background: linear-gradient(90deg, var(--day-blue) 0 72%, var(--day-gold) 72% 80%, transparent 80%);
}

html[data-theme="light"] .reading-directory-page .page-intro h1 {
  background: none;
  color: var(--day-ink);
  -webkit-text-fill-color: currentColor;
}

html[data-theme="light"] .reading-directory-page .page-count strong,
html[data-theme="light"] .reading-group-code,
html[data-theme="light"] .reading-group .article-row-index,
html[data-theme="light"] .reading-group .article-row-action {
  color: var(--day-gold);
}

html[data-theme="light"] .reading-group {
  border-color: var(--day-line);
  background: var(--day-surface);
  box-shadow: var(--day-shadow);
}

html[data-theme="light"] .reading-group > header,
html[data-theme="light"] .reading-group .article-row,
html[data-theme="light"] .reading-group .article-row-index {
  border-color: var(--day-line);
}

html[data-theme="light"] .reading-group .article-row {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .reading-group .article-row-index {
  background: #f3eadb;
}

/* Reader: stronger long-form contrast and calmer supporting surfaces. */
html[data-theme="light"] .reader-rail {
  border-left-color: var(--day-line);
}

html[data-theme="light"] .back-link,
html[data-theme="light"] .reader-rail nav a {
  color: var(--day-blue-strong);
}

html[data-theme="light"] .reader-context {
  border-color: var(--day-line);
  background: var(--day-surface);
  color: var(--day-muted);
}

html[data-theme="light"] .reading-progress {
  background: rgba(36, 85, 150, 0.12);
}

html[data-theme="light"] .reading-progress span {
  background: linear-gradient(90deg, var(--day-blue), var(--day-red));
  box-shadow: none;
}

html[data-theme="light"] .reader-header h1,
html[data-theme="light"] .comments-section h2 {
  color: var(--day-ink);
}

html[data-theme="light"] .reader-header {
  position: relative;
  border-top: 0;
  border-bottom-color: var(--day-line);
}

html[data-theme="light"] .reader-header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 3px;
  background: linear-gradient(90deg, var(--day-blue) 0 72%, var(--day-red) 72% 80%, transparent 80%);
  content: "";
}

html[data-theme="light"] .reader-header > div,
html[data-theme="light"] .comments-section > header > p {
  color: var(--day-muted);
}

html[data-theme="light"] .comment-jump {
  border-color: var(--day-line-strong);
  background: var(--day-surface);
  color: var(--day-blue-strong);
}

html[data-theme="light"] .comment-jump span {
  background: var(--day-blue-strong);
  color: #ffffff;
}

html[data-theme="light"] .article-body {
  color: var(--day-copy);
}

html[data-theme="light"] .article-body p,
html[data-theme="light"] .article-body li {
  color: var(--day-copy);
}

html[data-theme="light"] .article-body h1,
html[data-theme="light"] .article-body h2,
html[data-theme="light"] .article-body h3,
html[data-theme="light"] .article-body h4 {
  color: var(--day-ink);
}

html[data-theme="light"] .article-body a {
  color: var(--day-blue-strong);
  text-decoration-color: rgba(24, 63, 119, 0.42);
  text-underline-offset: 3px;
}

html[data-theme="light"] .article-body code {
  border-color: rgba(36, 85, 150, 0.2);
  background: #e8edf3;
  color: var(--day-blue-strong);
}

html[data-theme="light"] .article-body blockquote {
  border-left-color: var(--day-red);
  background: #ebeef1;
}

html[data-theme="light"] .article-body blockquote p {
  color: var(--day-copy);
}

html[data-theme="light"] .comments-section {
  border-color: var(--day-line);
  background: rgba(255, 253, 248, 0.72);
}

html[data-theme="light"] .comment-steps li {
  color: var(--day-copy);
}

html[data-theme="light"] .comment-steps span {
  border-color: var(--day-line-strong);
  background: var(--day-surface);
  color: var(--day-blue-strong);
}

html[data-theme="light"] .mobile-nav {
  border-top-color: var(--day-line);
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 -12px 32px rgba(29, 43, 66, 0.1);
}

html[data-theme="light"] .mobile-nav a {
  color: var(--day-muted);
}

html[data-theme="light"] .mobile-nav a span {
  color: var(--day-blue-strong);
}

html[data-theme="light"] .mobile-nav a.active {
  background: #e4e9ef;
  color: var(--day-ink);
}

@media (max-width: 820px) {
  html[data-theme="light"] .nova-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="light"] .nova-stats > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--day-line);
  }

  html[data-theme="light"] .nova-stats > div:nth-child(4) {
    border-top: 1px solid var(--day-line);
  }
}

@media (max-width: 920px) {
  html[data-theme="light"] .reader {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] .reader-rail {
    display: none;
  }

  html[data-theme="light"] .mobile-toc {
    display: block;
    border-color: var(--day-line);
    background: rgba(255, 253, 248, 0.78);
  }

  html[data-theme="light"] .mobile-toc summary {
    color: var(--day-blue-strong);
  }

  html[data-theme="light"] .mobile-toc nav a {
    color: var(--day-copy);
  }
}

@media (max-width: 640px) {
  html[data-theme="light"] .nova-home {
    gap: 38px;
  }

  html[data-theme="light"] .nova-system-line {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  html[data-theme="light"] .nova-system-line span:last-child {
    display: none;
  }

  html[data-theme="light"] .nova-hero {
    padding: 38px 0 32px;
  }

  html[data-theme="light"] .nova-hero-copy h1 {
    font-size: clamp(50px, 15vw, 66px);
  }

  html[data-theme="light"] .nova-deck {
    font-size: 14px;
  }

  html[data-theme="light"] .nova-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] .nova-actions a {
    justify-content: center;
  }

  html[data-theme="light"] .nova-stats > div {
    padding: 16px;
  }

  html[data-theme="light"] .nova-stats dt {
    font-size: 7px;
  }

  html[data-theme="light"] .nova-stats dd {
    font-size: 28px;
  }

  html[data-theme="light"] .page-intro h1 {
    font-size: 42px;
  }

  html[data-theme="light"] .project-signal-grid,
  html[data-theme="light"] .reading-directory-page .directory-groups {
    margin-top: 28px;
  }

  html[data-theme="light"] .reading-group .article-row-action {
    display: none;
  }
}

/* Light knowledge map: keep the chart legible as a real data component. */
html[data-theme="light"] .knowledge-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

html[data-theme="light"] .knowledge-map-panel,
html[data-theme="light"] .knowledge-readout {
  border: 1px solid var(--day-line);
  border-radius: 14px;
  background: var(--day-surface);
  box-shadow: none;
}

html[data-theme="light"] .knowledge-map-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

html[data-theme="light"] .knowledge-map-panel::before,
html[data-theme="light"] .knowledge-map-panel::after {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  content: "";
}

html[data-theme="light"] .knowledge-map-panel::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--day-blue);
  border-left: 1px solid var(--day-blue);
}

html[data-theme="light"] .knowledge-map-panel::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--day-red);
  border-bottom: 1px solid var(--day-red);
}

html[data-theme="light"] .knowledge-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px 10px;
}

html[data-theme="light"] .knowledge-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--day-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

html[data-theme="light"] .knowledge-map-legend i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--map-agent);
}

html[data-theme="light"] .knowledge-map-legend [data-lane="agent"] i,
html[data-theme="light"] .knowledge-node[data-lane="agent"] .knowledge-node-dot {
  --map-agent: #255c9d;
  background: #255c9d;
  fill: #255c9d;
}

html[data-theme="light"] .knowledge-map-legend [data-lane="systems"] i,
html[data-theme="light"] .knowledge-node[data-lane="systems"] .knowledge-node-dot {
  background: #28736b;
  fill: #28736b;
}

html[data-theme="light"] .knowledge-map-legend [data-lane="interface"] i,
html[data-theme="light"] .knowledge-node[data-lane="interface"] .knowledge-node-dot {
  background: #9a691a;
  fill: #9a691a;
}

html[data-theme="light"] .knowledge-map-legend [data-lane="security"] i,
html[data-theme="light"] .knowledge-node[data-lane="security"] .knowledge-node-dot {
  background: #a8463a;
  fill: #a8463a;
}

html[data-theme="light"] .knowledge-map-legend [data-lane="theory"] i,
html[data-theme="light"] .knowledge-node[data-lane="theory"] .knowledge-node-dot {
  background: #a34f2d;
  fill: #a34f2d;
}

html[data-theme="light"] .knowledge-map-legend [data-lane="reading"] i,
html[data-theme="light"] .knowledge-node[data-lane="reading"] .knowledge-node-dot {
  background: #6b568f;
  fill: #6b568f;
}

html[data-theme="light"] .knowledge-map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--day-line-strong) transparent;
}

html[data-theme="light"] .knowledge-map {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

html[data-theme="light"] .knowledge-map text {
  font-family: var(--mono);
}

html[data-theme="light"] .knowledge-time-guides line {
  stroke: rgba(36, 85, 150, 0.12);
  stroke-dasharray: 2 8;
}

html[data-theme="light"] .knowledge-lane line {
  stroke: rgba(36, 85, 150, 0.2);
  stroke-dasharray: 3 9;
}

html[data-theme="light"] .knowledge-lane text,
html[data-theme="light"] .knowledge-date-labels > text:not(.knowledge-axis-name) {
  fill: var(--day-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

html[data-theme="light"] .knowledge-axis-name {
  fill: var(--day-red);
  font-size: 9px;
  letter-spacing: 0.2em;
}

html[data-theme="light"] .knowledge-node {
  outline: none;
  cursor: pointer;
}

html[data-theme="light"] .knowledge-node-hit {
  fill: transparent;
}

html[data-theme="light"] .knowledge-node-dot {
  fill: #255c9d;
  filter: drop-shadow(0 1px 2px rgba(23, 34, 56, 0.22));
  stroke: var(--day-surface);
  stroke-width: 1.5;
  transition: r 160ms ease, opacity 160ms ease;
}

html[data-theme="light"] .knowledge-node:hover .knowledge-node-dot,
html[data-theme="light"] .knowledge-node:focus .knowledge-node-dot {
  filter: drop-shadow(0 2px 4px rgba(23, 34, 56, 0.28));
  opacity: 1;
}

html[data-theme="light"] .knowledge-node.is-latest .knowledge-node-dot {
  fill: var(--day-red);
  stroke: #ffffff;
  stroke-width: 2;
}

html[data-theme="light"] .knowledge-readout {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 100%;
  padding: 22px;
}

html[data-theme="light"] .knowledge-readout > span {
  color: var(--day-red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

html[data-theme="light"] .knowledge-readout p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 18px 0 8px;
  color: var(--day-muted);
  font-family: var(--mono);
  font-size: 10px;
}

html[data-theme="light"] .knowledge-readout p b {
  display: inline-block;
  color: var(--day-blue-strong);
  font-weight: 600;
}

html[data-theme="light"] .knowledge-readout h3 {
  margin: 0;
  color: var(--day-ink);
  font-size: 19px;
  line-height: 1.5;
}

html[data-theme="light"] .knowledge-readout a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--day-blue-strong);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

html[data-theme="light"] .knowledge-readout small {
  margin-top: auto;
  padding-top: 20px;
  color: var(--day-muted);
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  html[data-theme="light"] .knowledge-map-shell {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] .knowledge-readout {
    min-height: 0;
  }
}

/* Exam notes: an original visual-note feed inspired by study infographic grids. */
.exam-note-studio {
  --exam-ink: #1b2430;
  --exam-muted: #6d7580;
  --exam-blue: #315bb0;
  --exam-red: #ed4c61;
  --exam-yellow: #f1c75a;
  position: relative;
  margin: 8px 0 38px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 9% 0%, rgba(237, 76, 97, 0.2), transparent 24%),
    radial-gradient(circle at 96% 18%, rgba(49, 91, 176, 0.25), transparent 29%),
    linear-gradient(145deg, #090b0e 0%, #15181e 65%, #0a0c0f 100%);
  color: #f8f9fb;
  box-shadow: 0 28px 70px rgba(15, 18, 25, 0.22);
}

.exam-note-studio::before {
  position: absolute;
  top: 0;
  right: 18%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  content: "";
}

.exam-note-studio::after {
  position: absolute;
  right: -80px;
  bottom: 220px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.025), 0 0 0 48px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.exam-studio-profile {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
}

.exam-studio-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: linear-gradient(140deg, #f16b78, #8e3145);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(237, 76, 97, 0.3);
}

.exam-studio-kicker,
.exam-studio-tabs,
.exam-note-field header small,
.exam-note-sheet-head,
.exam-note-answer span,
.exam-note-caption span {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-studio-kicker {
  margin: 0 0 6px;
  color: #f16c7c;
  font-size: 9px;
}

.exam-studio-profile h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
}

.exam-studio-profile > div:nth-child(2) > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.exam-studio-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(255, 255, 255, 0.62);
}

.exam-studio-stat strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.exam-studio-stat span {
  font-family: var(--mono);
  font-size: 10px;
}

.exam-studio-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.exam-studio-tabs b {
  position: relative;
  color: #fff;
  font-weight: 500;
}

.exam-studio-tabs b::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 2px;
  background: var(--exam-red);
  content: "";
}

.exam-note-field {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.exam-note-field > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.exam-note-field header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.exam-note-field h3 {
  margin: 5px 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.exam-note-field > header > span {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 10px;
}

.exam-note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.exam-note-post {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.exam-note-sheet {
  --note-accent: var(--exam-blue);
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(30, 48, 75, 0.14);
  border-radius: 14px;
  background: #f4f5f5;
  color: var(--exam-ink);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.exam-note-sheet::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--note-accent);
  content: "";
}

.exam-note-sheet::after {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(49, 91, 176, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(49, 91, 176, 0.035), 0 0 0 14px rgba(49, 91, 176, 0.025);
  content: "";
  pointer-events: none;
}

.exam-note-tone-blue { --note-accent: #3e69c1; }
.exam-note-tone-yellow { --note-accent: #e9b947; }
.exam-note-tone-red { --note-accent: #e95b6b; }
.exam-note-tone-green { --note-accent: #46a595; }
.exam-note-tone-purple { --note-accent: #8c6ecb; }

.exam-note-sheet-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--note-accent);
  font-size: 8px;
  font-weight: 700;
}

.exam-note-sheet-head b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--note-accent) 14%, transparent);
  font-size: 9px;
}

.exam-note-sheet h3 {
  position: relative;
  z-index: 1;
  min-height: 47px;
  margin: 2px 0 0;
  color: #173b7c;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.32;
}

.exam-note-question {
  position: relative;
  z-index: 1;
  min-height: 42px;
  margin: 0;
  color: #56606c;
  font-size: 10px;
  line-height: 1.65;
}

.exam-diagram {
  position: relative;
  z-index: 1;
  min-height: 104px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(48, 75, 121, 0.15);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(224, 233, 247, 0.95), rgba(255, 255, 255, 0.74));
}

.exam-diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.exam-diagram-flow > i {
  color: var(--exam-red);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.diagram-node {
  display: grid;
  min-width: 42px;
  padding: 10px 5px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.diagram-node small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 7px;
}

.diagram-node-blue { background: #3f67b1; }
.diagram-node-yellow { background: #c99d34; }
.diagram-node-red { background: #d85962; }
.diagram-node-green { background: #3c9686; }

.exam-diagram-four {
  gap: 3px;
}

.exam-diagram-four .diagram-node {
  flex: 1;
  min-width: 0;
  padding: 12px 2px;
  font-size: 10px;
}

.exam-diagram-axis {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 3px 8px;
}

.exam-diagram-axis svg {
  grid-row: 1 / 3;
  width: 100%;
  height: 82px;
}

.diagram-grid-line {
  fill: none;
  stroke: rgba(42, 76, 132, 0.3);
  stroke-width: 1;
}

.diagram-curve {
  fill: none;
  stroke: #315bb0;
  stroke-linecap: round;
  stroke-width: 3;
}

.diagram-tangent {
  fill: none;
  stroke: #e95b6b;
  stroke-dasharray: 4 3;
  stroke-width: 2;
}

.diagram-fill {
  fill: rgba(241, 199, 90, 0.45);
  stroke: none;
}

.diagram-bar {
  fill: none;
  stroke: #e9b947;
  stroke-width: 2;
}

.diagram-dot {
  fill: #ed4c61;
  stroke: #fff;
  stroke-width: 2;
}

.exam-diagram-axis b,
.exam-diagram-axis span,
.exam-diagram-bars b,
.exam-diagram-bars span,
.exam-diagram-pipeline small,
.exam-diagram-layers small,
.exam-diagram-packets small {
  display: block;
  color: #31518f;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
}

.exam-diagram-axis b,
.exam-diagram-bars b {
  color: #173b7c;
  font-size: 9px;
}

.exam-diagram-matrix {
  display: grid;
  grid-template-columns: auto 16px 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 5px;
}

.matrix-bracket {
  color: #315bb0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.exam-diagram-matrix > i {
  color: var(--exam-red);
  font-style: normal;
  font-weight: 700;
}

.matrix-space {
  display: grid;
  padding: 10px 5px;
  place-items: center;
  border: 2px solid #46a595;
  color: #26766d;
  font-family: var(--serif);
  font-size: 12px;
}

.matrix-space small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
}

.matrix-dots {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: center;
}

.matrix-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e95b6b;
}

.exam-diagram-bars {
  display: grid;
  align-content: center;
  gap: 8px;
}

.probability-axis {
  display: flex;
  height: 62px;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid rgba(49, 91, 176, 0.35);
  padding: 0 12px;
}

.probability-axis i {
  flex: 1;
  min-width: 10px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#8c6ecb, #c9b7f0);
}

.exam-diagram-tree {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
}

.tree-node {
  display: grid;
  width: 54px;
  height: 27px;
  place-items: center;
  border-radius: 5px;
  background: #e9b947;
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
}

.tree-branches,
.tree-leaves {
  display: flex;
  width: 100%;
  justify-content: space-around;
  gap: 6px;
}

.tree-branches span,
.tree-leaves i {
  flex: 1;
  padding: 5px 2px;
  border: 1px solid rgba(49, 91, 176, 0.25);
  color: #31518f;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.tree-leaves i {
  border-color: rgba(237, 76, 97, 0.24);
  color: #bd4757;
}

.exam-diagram-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-content: center;
  gap: 6px;
  text-align: center;
}

.exam-diagram-pipeline span,
.exam-diagram-pipeline b {
  padding: 9px 4px;
  border-radius: 5px;
  background: #e6edf9;
  color: #31518f;
  font-family: var(--serif);
  font-size: 11px;
}

.exam-diagram-pipeline b {
  background: #e95b6b;
  color: #fff;
}

.exam-diagram-pipeline i {
  align-self: center;
  color: #ed4c61;
  font-style: normal;
}

.exam-diagram-pipeline small {
  grid-column: 1 / -1;
  margin-top: 4px;
  text-align: center;
}

.exam-diagram-layers {
  display: grid;
  align-content: center;
  gap: 5px;
}

.exam-diagram-layers span {
  display: block;
  padding: 7px 9px;
  border-left: 4px solid #315bb0;
  background: rgba(49, 91, 176, 0.1);
  color: #31518f;
  font-family: var(--serif);
  font-size: 10px;
}

.exam-diagram-layers .layer-thread {
  border-color: #e9b947;
  background: rgba(241, 199, 90, 0.17);
}

.exam-diagram-layers .layer-memory {
  border-color: #e95b6b;
  background: rgba(233, 91, 107, 0.1);
}

.exam-diagram-layers small {
  margin-top: 3px;
  text-align: right;
}

.exam-diagram-packets {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-content: center;
  align-items: center;
  gap: 8px;
}

.exam-diagram-packets div {
  display: grid;
  gap: 4px;
}

.exam-diagram-packets span {
  padding: 6px;
  background: #e6edf9;
  color: #31518f;
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.exam-diagram-packets div:last-of-type span:nth-child(2) {
  background: #f6df9b;
}

.exam-diagram-packets div:last-of-type span:nth-child(3) {
  background: #f1b4bd;
}

.exam-diagram-packets > i {
  color: #ed4c61;
  font-size: 18px;
  font-style: normal;
}

.exam-diagram-packets small {
  grid-column: 1 / -1;
  text-align: center;
}

.exam-diagram-request {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
}

.exam-diagram-request span {
  width: 72%;
  padding: 6px;
  border: 1px solid rgba(49, 91, 176, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #31518f;
  font-family: var(--serif);
  font-size: 10px;
  text-align: center;
}

.exam-diagram-request span:nth-of-type(2) { border-color: rgba(241, 199, 90, 0.72); }
.exam-diagram-request span:nth-of-type(3) { border-color: rgba(70, 165, 149, 0.72); }
.exam-diagram-request span:nth-of-type(4) { border-color: rgba(233, 91, 107, 0.72); }

.exam-diagram-request i {
  color: #ed4c61;
  font-style: normal;
  line-height: 1;
}

.exam-note-blocks {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.exam-note-block {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 6px 7px;
  background: rgba(224, 233, 247, 0.56);
}

.exam-note-block > b {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--note-accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 7px;
}

.exam-note-block span {
  display: block;
  overflow: hidden;
  color: #536172;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.exam-note-block strong {
  margin-right: 5px;
  color: #1d3e78;
  font-family: var(--serif);
  font-size: 10px;
}

.exam-note-answer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed rgba(49, 91, 176, 0.25);
}

.exam-note-answer span {
  color: var(--note-accent);
  font-size: 8px;
}

.exam-note-answer strong {
  color: #173b7c;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.45;
}

.exam-note-caption {
  display: grid;
  gap: 5px;
  padding: 10px 3px 0;
}

.exam-note-caption strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f7f7f8;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.exam-note-caption span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-note-caption em {
  color: #f16c7c;
  font-style: normal;
}

.exam-note-post:hover .exam-note-sheet,
.exam-note-post:focus-visible .exam-note-sheet {
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px) rotate(-0.35deg);
}

.exam-note-post:focus-visible {
  outline: 2px solid #f16c7c;
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .exam-note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .exam-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .exam-note-sheet {
    min-height: 414px;
  }
}

@media (max-width: 560px) {
  .exam-note-studio {
    margin-inline: -2px;
    padding: 16px 12px 22px;
    border-radius: 20px;
  }

  .exam-studio-profile {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .exam-studio-avatar {
    width: 44px;
    height: 44px;
    border-width: 2px;
    font-size: 10px;
  }

  .exam-studio-profile h2 {
    font-size: 23px;
  }

  .exam-studio-profile > div:nth-child(2) > span {
    font-size: 10px;
  }

  .exam-studio-stat {
    grid-column: 2;
    margin-top: -4px;
  }

  .exam-studio-stat strong {
    font-size: 30px;
  }

  .exam-studio-tabs {
    gap: 12px;
    margin-bottom: 20px;
    font-size: 8px;
  }

  .exam-note-field h3 {
    font-size: 22px;
  }

  .exam-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .exam-note-sheet {
    min-height: 360px;
    gap: 7px;
    padding: 10px;
    border-radius: 10px;
  }

  .exam-note-sheet h3 {
    min-height: 42px;
    font-size: 13px;
  }

  .exam-note-question {
    min-height: 45px;
    font-size: 8px;
    line-height: 1.5;
  }

  .exam-diagram {
    min-height: 86px;
    padding: 6px;
  }

  .exam-diagram-axis svg {
    height: 66px;
  }

  .diagram-node {
    min-width: 30px;
    padding: 7px 2px;
    font-size: 9px;
  }

  .diagram-node small {
    font-size: 6px;
  }

  .exam-diagram-four .diagram-node {
    padding: 8px 1px;
    font-size: 7px;
  }

  .exam-note-block {
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .exam-note-block > b {
    width: 15px;
    height: 15px;
    font-size: 6px;
  }

  .exam-note-block span {
    font-size: 6px;
    line-height: 1.3;
  }

  .exam-note-block strong {
    display: block;
    margin: 0;
    font-size: 8px;
  }

  .exam-note-answer {
    padding-top: 6px;
  }

  .exam-note-answer span {
    font-size: 6px;
  }

  .exam-note-answer strong {
    font-size: 8px;
  }

  .exam-note-caption {
    padding-top: 7px;
  }

  .exam-note-caption strong {
    font-size: 10px;
  }

  .exam-note-caption span {
    font-size: 6px;
  }
}

/* Reading layer: Yohaku-inspired warm neutrals and quiet code surfaces. */
.article-body pre {
  --code-foreground: #e5ece5;
  --code-comment: #9aa69d;
  --code-keyword: #f0a6b5;
  --code-string: #a9d0af;
  --code-number: #e8bd80;
  --code-title: #a9c8e8;
  --code-type: #c8b4e8;
  --code-meta: #d6a77a;
  --code-deletion: #ff9a9a;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.article-body pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  font-size: inherit;
  font-variant-ligatures: none;
  line-height: inherit;
  white-space: pre;
}

.article-body pre::-webkit-scrollbar {
  height: 9px;
}

.article-body pre::-webkit-scrollbar-track {
  background: transparent;
}

.article-body pre::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html[data-theme="nova"] .reader-main {
  --reader-paper: #171715;
  --reader-paper-raised: #1e1e1b;
  --reader-line: rgba(232, 229, 220, 0.14);
  --reader-copy: #d8d5cc;
  --reader-heading: #f2efe7;
  --reader-muted: #aaa69c;
  --reader-accent: #d58a98;
}

html[data-theme="nova"] .reader-main::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 74% 6%, rgba(197, 100, 115, 0.055), transparent 31%),
    linear-gradient(180deg, rgba(249, 248, 245, 0.018), transparent 420px);
  content: "";
  pointer-events: none;
}

html[data-theme="nova"] .reader-main {
  position: relative;
  isolation: isolate;
}

html[data-theme="nova"] .reader-header h1,
html[data-theme="nova"] .article-body h1,
html[data-theme="nova"] .article-body h2,
html[data-theme="nova"] .article-body h3,
html[data-theme="nova"] .article-body h4 {
  color: var(--reader-heading);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
}

html[data-theme="nova"] .article-body,
html[data-theme="nova"] .article-body p,
html[data-theme="nova"] .article-body li {
  color: var(--reader-copy);
}

html[data-theme="nova"] .article-body h2 {
  border-bottom-color: var(--reader-line);
}

html[data-theme="nova"] .article-body strong {
  color: var(--reader-heading);
}

html[data-theme="nova"] .article-body :not(pre) > code {
  padding: 0.13em 0.38em;
  border: 1px solid rgba(213, 138, 152, 0.28);
  border-radius: 4px;
  background: #24231f;
  color: #f0cbd2;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html[data-theme="nova"] .article-body pre {
  --code-foreground: #ebe8df;
  --code-comment: #9da49a;
  --code-keyword: #f0a6b5;
  --code-string: #a9d0af;
  --code-number: #e8bd80;
  --code-title: #a9c8e8;
  --code-type: #c8b4e8;
  --code-meta: #d6a77a;
  --code-deletion: #ff9a9a;
  margin: 1.8em 0;
  padding: 20px 22px;
  border: 1px solid var(--reader-line);
  border-left: 3px solid var(--reader-accent);
  border-radius: 8px;
  background: var(--reader-paper);
  color: #ebe8df;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.17);
  font-size: 13.5px;
  line-height: 1.78;
}

html[data-theme="nova"] .article-body pre code {
  border: 0;
  background: transparent;
  color: inherit;
}

html[data-theme="nova"] .article-body pre::-webkit-scrollbar-thumb {
  background-color: rgba(232, 229, 220, 0.34);
}

html[data-theme="nova"] .article-body blockquote {
  border-left-color: var(--reader-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(197, 100, 115, 0.07);
}

html[data-theme="nova"] .article-body blockquote p {
  color: #c6c1b7;
}

html[data-theme="nova"] .article-body th,
html[data-theme="nova"] .article-body td {
  border-color: var(--reader-line);
}

html[data-theme="nova"] .article-body th {
  background: var(--reader-paper-raised);
  color: var(--reader-heading);
}

html[data-theme="light"] .article-body :not(pre) > code {
  border-color: rgba(64, 63, 58, 0.16);
  border-radius: 4px;
  background: #f0efeb;
  color: #6e3541;
}

html[data-theme="light"] .article-body pre {
  --code-foreground: #2f3b4a;
  --code-comment: #68746b;
  --code-keyword: #963f55;
  --code-string: #2f6e53;
  --code-number: #8b561f;
  --code-title: #245f88;
  --code-type: #6d4d91;
  --code-meta: #85501f;
  --code-deletion: #a23c3c;
  border-color: #d6d0c4;
  border-left-color: #c56473;
  border-radius: 8px;
  background: #f6f4ef;
  color: var(--code-foreground);
  box-shadow: 0 12px 28px rgba(62, 58, 49, 0.08);
  font-size: 13.5px;
  line-height: 1.78;
}

html[data-theme="light"] .article-body pre code {
  border: 0;
  background: transparent;
  color: inherit;
}

html[data-theme="light"] .article-body pre::-webkit-scrollbar-thumb {
  background-color: rgba(74, 82, 92, 0.28);
}

.article-body pre :is(.hljs-comment, .hljs-quote) {
  color: var(--code-comment);
  font-style: italic;
}

.article-body pre :is(
  .hljs-doctag,
  .hljs-keyword,
  .hljs-link,
  .hljs-literal,
  .hljs-section,
  .hljs-selector-tag
) {
  color: var(--code-keyword);
  font-weight: 600;
}

.article-body pre :is(
  .hljs-addition,
  .hljs-attribute,
  .hljs-bullet,
  .hljs-regexp,
  .hljs-string,
  .hljs-symbol
) {
  color: var(--code-string);
}

.article-body pre :is(
  .hljs-number,
  .hljs-selector-attr,
  .hljs-selector-class,
  .hljs-selector-id,
  .hljs-selector-pseudo,
  .hljs-template-variable
) {
  color: var(--code-number);
}

.article-body pre :is(
  .hljs-built_in,
  .hljs-name,
  .hljs-title,
  .hljs-title.class_,
  .hljs-title.function_
) {
  color: var(--code-title);
  font-weight: 600;
}

.article-body pre :is(.hljs-params, .hljs-type, .hljs-variable, .hljs-variable.language_) {
  color: var(--code-type);
}

.article-body pre :is(.hljs-meta, .hljs-meta .hljs-string) {
  color: var(--code-meta);
}

.article-body pre .hljs-deletion {
  color: var(--code-deletion);
}

.article-body pre .hljs-emphasis {
  font-style: italic;
}

.article-body pre .hljs-strong {
  font-weight: 700;
}

@media (max-width: 680px) {
  html[data-theme="nova"] .article-body pre,
  html[data-theme="light"] .article-body pre {
    margin: 1.45em -4px;
    padding: 15px 16px;
    border-radius: 7px;
    font-size: 12.5px;
    line-height: 1.72;
  }
}

/* Surface borders already define these blocks; extra strokes only add visual noise. */
html[data-theme="light"] :is(
  .nova-stats > div,
  .knowledge-map-panel,
  .project-signal-card,
  .page-intro,
  .reader-header,
  .about-hero,
  .exam-note-studio,
  .nova-margin-note
)::before,
html[data-theme="nova"] :is(
  .nova-stats > div,
  .knowledge-map-panel,
  .project-signal-card,
  .page-intro,
  .reader-header,
  .about-hero,
  .exam-note-studio,
  .nova-margin-note
)::before,
html[data-theme="light"] :is(.nova-panel, .knowledge-map-panel)::after,
html[data-theme="nova"] :is(.nova-panel, .knowledge-map-panel)::after {
  display: none;
  content: none;
}

/* Keep long directories compact: content should dominate over empty gutters. */
html[data-theme] .directory-groups {
  gap: 36px;
}

html[data-theme] .directory-group {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}

/* Align each directory heading with the first article title, not the list border. */
html[data-theme] .directory-group:not(.reading-group) > header {
  padding-top: 12px;
}

html[data-theme] .reading-directory-page .reading-group-code {
  margin-bottom: 2px;
}

html[data-theme] .article-row.article-row--no-index {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 60px;
  padding: 8px 12px;
}

html[data-theme] .article-row.article-row--no-index .arrow-icon {
  display: none;
}

html[data-theme] .article-row.article-row--no-index:hover {
  padding-inline: 12px;
}

html[data-theme] .article-row.article-row--no-index .article-row-main strong {
  line-height: 1.4;
}

html[data-theme] .article-row.article-row--no-index .article-row-main small {
  margin-top: 2px;
  line-height: 1.35;
}

html[data-theme] .article-row-main small .article-row-action {
  margin-left: 10px;
}

html[data-theme] .article-row-main small .article-row-action::before {
  margin-right: 10px;
  color: var(--muted);
  content: "·";
}

html[data-theme] .article-row.article-row--static {
  grid-template-columns: 44px minmax(0, 1fr);
}

html[data-theme] .article-row.article-row--no-index.article-row--static {
  grid-template-columns: minmax(0, 1fr);
}

html[data-theme] .reading-directory-page .reading-group::before {
  display: none;
  content: none;
}

html[data-theme] .reading-directory-page .directory-groups {
  gap: 20px;
  margin-top: 34px;
}

html[data-theme] .reading-directory-page .reading-group {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
}

html[data-theme] .reading-directory-page .reading-group > header {
  position: static;
  padding-right: 0;
  border-right: 0;
}

/* The about layout already has strong card contrast; detached top strokes compete with it. */
html[data-theme] .about-hero {
  border-top: 0;
}

html[data-theme] .about-signal {
  border-top: 0;
}

/* Timeline: a compact editorial ledger instead of a tall split card. */
html[data-theme] .timeline-page .timeline-list {
  display: grid;
  gap: 18px;
  border-top: 0;
}

html[data-theme] .timeline-page .timeline-day {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
}

html[data-theme] .timeline-page .timeline-day::before,
html[data-theme] .timeline-page .timeline-day::after {
  display: none;
  content: none;
}

html[data-theme] .timeline-page .timeline-date {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 24px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .timeline-page .timeline-date {
  background: rgba(36, 85, 150, 0.028);
}

html[data-theme="nova"] .timeline-page .timeline-date {
  background: rgba(85, 240, 255, 0.025);
}

html[data-theme] .timeline-page .timeline-date time {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}

html[data-theme] .timeline-page .timeline-date strong {
  font-size: 30px;
  line-height: 1;
}

html[data-theme] .timeline-page .timeline-date span,
html[data-theme] .timeline-page .timeline-date small {
  margin-top: 0;
}

html[data-theme] .timeline-page .timeline-date span {
  font-size: 12px;
}

html[data-theme] .timeline-page .timeline-date small {
  font-size: 9px;
}

html[data-theme] .timeline-page .timeline-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}

html[data-theme] .timeline-page .timeline-day-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

html[data-theme] .timeline-page .timeline-day-summary span::before {
  display: none;
  content: none;
}

html[data-theme] .timeline-page .timeline-day-summary b,
html[data-theme] .timeline-page .timeline-day-summary em {
  font: inherit;
  font-style: normal;
}

html[data-theme] .timeline-page .timeline-day-summary b {
  color: var(--day-blue-strong, var(--green));
  font-weight: 600;
}

html[data-theme] .timeline-page .timeline-day-summary em {
  color: var(--muted);
}

html[data-theme] .timeline-page .timeline-day-content {
  min-width: 0;
  padding: 0 24px 4px;
}

html[data-theme] .timeline-page .timeline-day .article-list {
  gap: 0;
  border-top: 0;
}

html[data-theme] .timeline-page .timeline-day .article-row {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  min-height: 70px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html[data-theme] .timeline-page .timeline-day .article-row:last-child {
  border-bottom: 0;
}

html[data-theme] .timeline-page .timeline-day .article-row:hover {
  padding-inline: 0;
  border-color: var(--line);
  background: rgba(36, 85, 150, 0.045);
  box-shadow: none;
  transform: none;
}

html[data-theme] .timeline-page .timeline-day .article-row:hover .article-row-main strong {
  color: var(--day-blue-strong, var(--green));
}

html[data-theme] .timeline-page .timeline-day .article-row::before {
  display: none;
  content: none;
}

html[data-theme] .timeline-page .timeline-day .article-row-index {
  display: block;
  align-self: start;
  width: auto;
  height: auto;
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--day-blue-strong, var(--green));
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

html[data-theme] .timeline-page .timeline-day .arrow-icon {
  display: none;
}

@media (max-width: 680px) {
  html[data-theme] .directory-groups {
    gap: 24px;
  }

  html[data-theme] .directory-group,
  html[data-theme] .reading-directory-page .reading-group {
    display: block;
    padding: 16px;
  }

  html[data-theme] .directory-group:not(.reading-group) {
    padding: 0;
  }

  html[data-theme] .directory-group > header {
    margin-bottom: 12px;
  }

  html[data-theme] .directory-group:not(.reading-group) > header {
    padding-top: 0;
  }

  html[data-theme] .article-row.article-row--no-index {
    min-height: 58px;
    padding: 8px 10px;
  }

  html[data-theme] .article-row.article-row--no-index:hover {
    padding-inline: 10px;
  }

  html[data-theme] .timeline-page .timeline-shell {
    gap: 14px;
    margin-top: 24px;
  }

  html[data-theme] .timeline-page .timeline-rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
    overflow: hidden;
    padding: 13px 14px 11px;
  }

  html[data-theme] .timeline-page .timeline-rail > .mono-label {
    margin: 0;
  }

  html[data-theme] .timeline-page .timeline-rail-count {
    margin: 0;
    text-align: right;
  }

  html[data-theme] .timeline-page .timeline-rail-count strong {
    font-size: 22px;
  }

  html[data-theme] .timeline-page .timeline-rail-count span {
    font-size: 9px;
  }

  html[data-theme] .timeline-page .timeline-day-index {
    display: flex;
    grid-column: 1 / -1;
    gap: 7px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  html[data-theme] .timeline-page .timeline-day-index::-webkit-scrollbar {
    display: none;
  }

  html[data-theme] .timeline-page .timeline-day-index a {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--line-soft);
  }

  html[data-theme] .timeline-page .timeline-rail > small {
    display: none;
  }

  html[data-theme] .timeline-page .timeline-list {
    gap: 14px;
  }

  html[data-theme] .timeline-page .timeline-date {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 15px 16px 13px;
  }

  html[data-theme] .timeline-page .timeline-date time {
    width: 100%;
    gap: 8px;
  }

  html[data-theme] .timeline-page .timeline-date strong {
    font-size: 27px;
  }

  html[data-theme] .timeline-page .timeline-day-summary {
    margin-left: 0;
  }

  html[data-theme] .timeline-page .timeline-day-content {
    padding: 0 16px 3px;
  }

  html[data-theme] .timeline-page .timeline-day .article-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    min-height: 68px;
    padding: 13px 0;
  }

  html[data-theme] .timeline-page .timeline-day .article-row-main strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Contribution grid: one square per calendar day, grouped into Monday-first weeks. */
html[data-theme] .contribution-map-shell {
  --contribution-cell: 20px;
  --contribution-gap: 5px;
  --contribution-level-0: #e7ebf1;
  --contribution-level-0-border: #d6dde7;
  --contribution-level-1: #c8dcf2;
  --contribution-level-2: #8eb9e5;
  --contribution-level-3: #5088c5;
  --contribution-level-4: #255c9d;
  min-width: 0;
}

html[data-theme="nova"] .contribution-map-shell {
  --contribution-level-0: #141a28;
  --contribution-level-0-border: #28334b;
  --contribution-level-1: #173d56;
  --contribution-level-2: #1d6b82;
  --contribution-level-3: #2da6bc;
  --contribution-level-4: #55f0ff;
}

html[data-theme] .contribution-map-panel {
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
}

html[data-theme] .contribution-scroll {
  width: 100%;
  margin: auto 0;
  padding: 10px 2px 14px;
  box-sizing: border-box;
}

html[data-theme] .contribution-chart {
  display: grid;
  grid-template-columns: 20px max-content;
  grid-template-rows: 18px auto;
  gap: 7px 9px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  font-family: var(--mono);
}

html[data-theme] .contribution-months {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(var(--contribution-weeks), var(--contribution-cell));
  column-gap: var(--contribution-gap);
  min-width: max-content;
}

html[data-theme] .contribution-months span {
  align-self: end;
  color: var(--day-muted, var(--muted));
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

html[data-theme] .contribution-weekdays {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-rows: repeat(7, var(--contribution-cell));
  row-gap: var(--contribution-gap);
}

html[data-theme] .contribution-weekdays span {
  display: grid;
  place-items: center;
  color: var(--day-muted, var(--muted));
  font-size: 8px;
  line-height: 1;
}

html[data-theme] .contribution-grid {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-auto-columns: var(--contribution-cell);
  grid-auto-flow: column;
  grid-template-rows: repeat(7, var(--contribution-cell));
  gap: var(--contribution-gap);
  width: max-content;
}

html[data-theme] .contribution-day {
  width: var(--contribution-cell);
  height: var(--contribution-cell);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  appearance: none;
  background: var(--contribution-level-0);
  box-sizing: border-box;
}

html[data-theme] button.contribution-day {
  cursor: pointer;
  transition: box-shadow 150ms ease, filter 150ms ease, transform 150ms ease;
}

html[data-theme] button.contribution-day:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

html[data-theme] .contribution-day--level-0 {
  border-color: var(--contribution-level-0-border);
  background: var(--contribution-level-0);
}

html[data-theme] .contribution-day--level-1 { background: var(--contribution-level-1); }
html[data-theme] .contribution-day--level-2 { background: var(--contribution-level-2); }
html[data-theme] .contribution-day--level-3 { background: var(--contribution-level-3); }
html[data-theme] .contribution-day--level-4 { background: var(--contribution-level-4); }

html[data-theme] button.contribution-day.is-selected,
html[data-theme] button.contribution-day:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--day-surface, #090d19),
    0 0 0 4px var(--day-red, var(--orange));
}

html[data-theme] .contribution-scale {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 5px;
  margin-top: 12px;
  color: var(--day-muted, var(--muted));
  font-family: var(--mono);
  font-size: 9px;
}

html[data-theme] .contribution-scale .contribution-day {
  --contribution-cell: 11px;
  display: block;
  pointer-events: none;
}

html[data-theme] .contribution-readout-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  min-height: 16px;
  margin-top: 6px;
}

html[data-theme] .contribution-readout-lanes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--day-blue-strong, var(--green));
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

html[data-theme] .contribution-readout-lanes span::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

html[data-theme] .contribution-readout-lanes [data-lane="systems"] { color: #28736b; }
html[data-theme] .contribution-readout-lanes [data-lane="interface"] { color: #9a691a; }
html[data-theme] .contribution-readout-lanes [data-lane="security"] { color: #a8463a; }
html[data-theme] .contribution-readout-lanes [data-lane="theory"] { color: #a34f2d; }
html[data-theme] .contribution-readout-lanes [data-lane="reading"] { color: #6b568f; }

html[data-theme="nova"] .contribution-readout-lanes [data-lane="agent"] { color: #55f0ff; }
html[data-theme="nova"] .contribution-readout-lanes [data-lane="systems"] { color: #8b7bff; }
html[data-theme="nova"] .contribution-readout-lanes [data-lane="interface"] { color: #ffc857; }
html[data-theme="nova"] .contribution-readout-lanes [data-lane="security"] { color: #ff5c9e; }
html[data-theme="nova"] .contribution-readout-lanes [data-lane="theory"] { color: #ff8a65; }
html[data-theme="nova"] .contribution-readout-lanes [data-lane="reading"] { color: #5df2a0; }

html[data-theme] .contribution-readout-list {
  display: grid;
  max-height: 210px;
  margin-top: 14px;
  overflow-y: auto;
  border-top: 1px solid var(--day-line, var(--line));
  scrollbar-width: thin;
}

html[data-theme] .knowledge-readout .contribution-readout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 3px 10px;
  align-items: center;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  margin: 0;
  padding: 10px 2px;
  border-bottom: 1px solid var(--day-line, var(--line));
  color: var(--day-ink, var(--ink));
  box-sizing: border-box;
  font-family: inherit;
  text-decoration: none;
}

html[data-theme] .knowledge-readout .contribution-readout-item > span {
  color: var(--day-muted, var(--muted));
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

html[data-theme] .knowledge-readout .contribution-readout-item > strong {
  grid-column: 1;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] .knowledge-readout .contribution-readout-item > .arrow-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  color: var(--day-blue-strong, var(--green));
}

html[data-theme] .knowledge-readout .contribution-readout-item:hover > strong {
  color: var(--day-blue-strong, var(--green));
}

html[data-theme] .contribution-map-shell .knowledge-readout small {
  margin-top: auto;
  padding-top: 16px;
}

html[data-theme] .contribution-map-shell .knowledge-readout {
  align-items: stretch;
  text-align: left;
}

@media (max-width: 640px) {
  html[data-theme] .contribution-map-shell {
    --contribution-cell: 18px;
    --contribution-gap: 4px;
  }

  html[data-theme] .contribution-map-panel {
    min-height: 0;
    padding: 14px;
  }

  html[data-theme] .contribution-scroll {
    padding: 6px 1px 12px;
  }

  html[data-theme] .contribution-chart {
    min-width: max-content;
  }

  html[data-theme] .contribution-weekdays {
    position: sticky;
    z-index: 2;
    left: 0;
    background: var(--day-surface, #090d19);
  }

  html[data-theme] .contribution-scale {
    align-self: flex-start;
  }

  html[data-theme] .contribution-readout-list {
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] button.contribution-day {
    transition: none;
  }
}

/* GitHub is a compact public activity snapshot, not a second contribution graph. */
.nova-panel--github { grid-column: span 8; }

.github-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 12px;
}

.github-profile-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.github-profile-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.github-profile-card p,
.github-profile-card span,
.github-repository-list span,
.github-repository-list time,
.github-sync-note,
.github-metrics dt,
.github-metrics dd {
  font-family: var(--mono);
}

.github-profile-card p {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.github-profile-card h3 {
  margin: 5px 0;
  font-size: 18px;
  line-height: 1.2;
}

.github-profile-card span {
  display: block;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-profile-card .arrow-icon { width: 18px; height: 18px; }

.github-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.github-metrics div {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 10px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.github-metrics dt {
  overflow: hidden;
  font-size: 6px;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-metrics dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.github-repository-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.github-repository-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
}

.github-repository-list span,
.github-repository-list time {
  font-size: 7px;
  letter-spacing: 0.07em;
}

.github-repository-list strong {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repository-list small {
  display: -webkit-box;
  grid-column: 1 / -1;
  min-height: 31px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.github-sync-note {
  margin: 12px 0 0;
  font-size: 8px;
  letter-spacing: 0.06em;
}

html[data-theme="nova"] .github-profile-card,
html[data-theme="nova"] .github-metrics div,
html[data-theme="nova"] .github-repository-list a {
  border-color: var(--line);
  background: rgba(6, 10, 20, 0.52);
}

html[data-theme="nova"] .github-profile-card p,
html[data-theme="nova"] .github-profile-card span,
html[data-theme="nova"] .github-repository-list span,
html[data-theme="nova"] .github-repository-list small,
html[data-theme="nova"] .github-repository-list time,
html[data-theme="nova"] .github-sync-note,
html[data-theme="nova"] .github-metrics dt { color: var(--muted); }

html[data-theme="nova"] .github-profile-card h3,
html[data-theme="nova"] .github-repository-list strong { color: var(--ink); }

html[data-theme="nova"] .github-profile-card .arrow-icon,
html[data-theme="nova"] .github-metrics dd { color: var(--green); }

html[data-theme="light"] .github-profile-card,
html[data-theme="light"] .github-metrics div,
html[data-theme="light"] .github-repository-list a {
  border-color: var(--day-line);
  background: var(--day-surface);
}

html[data-theme="light"] .github-profile-card p,
html[data-theme="light"] .github-profile-card span,
html[data-theme="light"] .github-repository-list span,
html[data-theme="light"] .github-repository-list small,
html[data-theme="light"] .github-repository-list time,
html[data-theme="light"] .github-sync-note,
html[data-theme="light"] .github-metrics dt { color: var(--day-muted); }

html[data-theme="light"] .github-profile-card h3,
html[data-theme="light"] .github-repository-list strong { color: var(--day-ink); }

html[data-theme="light"] .github-profile-card .arrow-icon,
html[data-theme="light"] .github-metrics dd { color: var(--day-blue-strong); }

@media (max-width: 1120px) {
  .nova-panel--github { grid-column: span 12; }
}

@media (max-width: 820px) {
  .nova-panel--github { grid-column: span 1; }
}

@media (max-width: 640px) {
  .github-pulse { grid-template-columns: 1fr; }
  .github-repository-list { grid-template-columns: 1fr; }
  .github-profile-card { grid-template-columns: 46px minmax(0, 1fr) 18px; }
  .github-profile-card img { width: 46px; height: 46px; }
}

/* Home composition: writing activity and code activity share the first row. */
html[data-theme] .nova-panel--github { grid-column: span 4; }
html[data-theme] .nova-panel--now { grid-column: span 8; }
html[data-theme] .nova-panel--signals { grid-column: span 12; }

.nova-panel--github .nova-panel-heading {
  display: block;
  align-items: flex-start;
}

.nova-panel--github .nova-panel-heading h2 {
  font-size: clamp(19px, 1.8vw, 24px);
}

.nova-panel--github .nova-panel-heading > a {
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 10px;
}

.nova-panel--github .github-pulse {
  grid-template-columns: 1fr;
}

.nova-panel--github .github-profile-card {
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  padding: 13px;
}

.nova-panel--github .github-profile-card img {
  width: 46px;
  height: 46px;
}

.nova-panel--github .github-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nova-panel--github .github-repository-list {
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nova-panel--github .github-repository-list a:last-child {
  grid-column: 1 / -1;
}

.nova-panel--github .github-repository-list a {
  min-height: 76px;
  padding: 10px 12px;
}

.nova-panel--github .github-repository-list small {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.nova-now-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 12px;
}

.nova-now-layout .nova-now-card {
  min-height: 270px;
}

.nova-now-image {
  position: relative;
  min-width: 0;
  min-height: 270px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line, rgba(118, 139, 185, 0.2));
  border-radius: 14px;
  background: var(--surface, #f4f6fa);
}

.nova-now-image::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(3, 9, 18, 0.72));
  content: "";
  pointer-events: none;
}

.nova-now-image img,
.nova-image-note img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.nova-now-image img {
  position: absolute;
  inset: 0;
  object-position: 48% 44%;
}

.nova-now-image:hover img,
.nova-image-note:hover img {
  transform: scale(1.035);
}

.nova-now-image figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: #f4f8ff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.nova-signals-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.nova-image-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 100%;
  padding: 10px;
  border: 1px solid var(--line, rgba(118, 139, 185, 0.2));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
}

.nova-image-notes > div {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 3px 7px;
}

.nova-image-notes > div span,
.nova-image-notes > div strong {
  font-family: var(--mono);
}

.nova-image-notes > div span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.nova-image-notes > div strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
}

.nova-image-note {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface, #eef2f8);
}

.nova-image-note--dragon {
  grid-row: 2 / 4;
}

.nova-image-note--dragon img { object-position: 50% 20%; }
.nova-image-note--pig img { object-position: 50% 18%; }
.nova-image-note--portrait img { object-position: 50% 42%; }

html[data-theme="nova"] .nova-image-notes {
  background: rgba(6, 10, 20, 0.42);
}

html[data-theme="light"] .nova-image-notes {
  background: rgba(242, 246, 252, 0.72);
}

@media (max-width: 1120px) {
  html[data-theme] .nova-panel--github,
  html[data-theme] .nova-panel--signals { grid-column: span 12; }

  html[data-theme] .nova-panel--now,
  html[data-theme] .nova-panel--orbits { grid-column: span 6; }

  .nova-panel--github .github-pulse {
    grid-template-columns: minmax(0, 1fr) 178px;
  }

  .nova-panel--github .github-repository-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nova-panel--github .github-repository-list a:last-child {
    grid-column: auto;
  }

  .nova-now-layout {
    grid-template-columns: 1fr;
  }

  .nova-now-image {
    min-height: 180px;
  }
}

@media (max-width: 820px) {
  html[data-theme] .nova-panel--github,
  html[data-theme] .nova-panel--now,
  html[data-theme] .nova-panel--orbits,
  html[data-theme] .nova-panel--signals { grid-column: span 1; }

  .nova-signals-layout {
    grid-template-columns: 1fr;
  }

  .nova-image-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 180px;
  }

  .nova-image-note--dragon {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nova-panel--github .github-pulse {
    grid-template-columns: 1fr;
  }

  .nova-panel--github .github-repository-list {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .nova-panel--github .github-repository-list a:last-child {
    grid-column: auto;
  }

  .nova-now-layout .nova-now-card,
  .nova-now-image {
    min-height: 230px;
  }

  .nova-image-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 170px 160px;
  }

  .nova-image-note--portrait {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-now-image img,
  .nova-image-note img {
    transition: none;
  }
}

.points-board {
  display: grid;
  gap: 14px;
  margin: 18px 0 26px;
}

.points-topic-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #7c8a7e);
  margin: 0 0 6px;
}

.points-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.points-chips button {
  border: 1px solid var(--line, #d9e2d6);
  background: rgba(248, 250, 246, 0.55);
  color: var(--green, #3e5f46);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.points-chips button em {
  font-style: normal;
  margin-left: 6px;
  opacity: 0.65;
  font-size: 11px;
}

.points-chips button.is-active {
  background: var(--green, #3e5f46);
  border-color: var(--green, #3e5f46);
  color: #fff;
}

.points-chips button.is-active em {
  opacity: 0.85;
}

.point-summary {
  border: 1px solid var(--line, #d9e2d6);
  border-left: 3px solid var(--green, #3e5f46);
  background: rgba(248, 250, 246, 0.72);
  padding: 14px 18px;
  margin: 0 0 22px;
  border-radius: 8px;
}

.point-summary-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green, #3e5f46);
  margin: 0 0 6px;
  font-weight: 600;
}

.point-summary p + p {
  margin: 0;
  line-height: 1.75;
  font-size: 14px;
}

/* 学习卡片内的题号徽标：自适应宽度的胶囊，避免三位数溢出装饰底块 */
.learning-card .article-row-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 36px;
  height: auto;
  padding: 4px 9px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  justify-self: start;
}

.learning-card .article-row-index::before,
.learning-card .article-row-index::after {
  content: none !important;
}

.mastery-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

.mastery-good { background: #3f9d63; }
.mastery-mid { background: #d9930d; }
.mastery-weak { background: #d9534f; }
.mastery-new { background: transparent; border: 1px solid currentColor; opacity: 0.5; }
.mastery-unrated { background: transparent; border: 1px dashed currentColor; opacity: 0.6; }

.point-gap-callout {
  border: 1px solid rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.08);
  color: #b3423e;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 14px;
  font-size: 13px;
}
/* Reading status belongs to this browser, not the published article index. */
.read-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(22, 130, 255, 0.35);
  border-radius: 5px;
  background: rgba(22, 130, 255, 0.1);
  color: #135fae;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

html[data-theme="nova"] .read-badge {
  border-color: rgba(85, 240, 255, 0.42);
  background: rgba(85, 240, 255, 0.11);
  color: #8bf5ff;
}
