:root {
  color-scheme: light dark;
  --surface: #f7f7f5;
  --ink: #111;
  --muted: rgb(17 17 17 / 60%);
  --line: rgb(17 17 17 / 10%);
  --glow: #fff;
  --highlight-panel: rgb(17 17 17 / 3%);
  --highlight-panel-strong: rgb(17 17 17 / 6%);
  --explore-panel: rgb(17 17 17 / 3%);
  --explore-panel-strong: rgb(17 17 17 / 6%);
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--surface);
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  color: var(--ink);
  background: radial-gradient(circle at 50% 12%, var(--glow), transparent 55vmin), var(--surface);
  font-family: system-ui, sans-serif;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: calc(12px + env(safe-area-inset-top));
  left: calc(12px + env(safe-area-inset-left));
  padding: 10px 12px;
  color: var(--surface);
  background: var(--ink);
  font-size: 11px;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(100% - 40px, 680px);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 112px) 0 72px;
}

.site-link,
.actions a,
.share-page,
.share-milestone,
.copy-milestone-recap,
.download-milestone-recap,
.share-milestones,
.share-stats,
.copy-stats,
.download-stats,
.share-feeds {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-link:hover,
.site-link:focus-visible,
.actions a:hover,
.actions a:focus-visible,
.share-page:hover,
.share-page:focus-visible,
.share-milestone:hover,
.share-milestone:focus-visible,
.copy-milestone-recap:hover,
.copy-milestone-recap:focus-visible,
.download-milestone-recap:hover,
.download-milestone-recap:focus-visible,
.share-milestones:hover,
.share-milestones:focus-visible,
.share-stats:hover,
.share-stats:focus-visible,
.copy-stats:hover,
.copy-stats:focus-visible,
.download-stats:hover,
.download-stats:focus-visible,
.share-feeds:hover,
.share-feeds:focus-visible {
  color: var(--ink);
}

.share-page,
.share-milestone,
.copy-milestone-recap,
.download-milestone-recap,
.share-milestones,
.share-stats,
.copy-stats,
.download-stats,
.share-feeds {
  min-inline-size: 12em;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.share-page:disabled,
.share-milestone:disabled,
.copy-milestone-recap:disabled,
.download-milestone-recap:disabled,
.share-milestones:disabled,
.share-stats:disabled,
.copy-stats:disabled,
.download-stats:disabled,
.share-feeds:disabled {
  opacity: 0.6;
  cursor: wait;
}

header {
  padding: 64px 0 clamp(48px, 8vw, 84px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(42px, 9vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.intro {
  max-width: 42ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.story {
  max-width: 48ch;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.story p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.principles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.highlight-jump {
  display: flex;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--highlight-panel);
}

.highlight-jump-label {
  flex-basis: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.highlight-jump a {
  display: inline-flex;
  min-block-size: 44px;
  min-inline-size: 3.5rem;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 1 1 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-decoration: none;
}

.highlight-jump a:hover,
.highlight-jump a:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.highlight-jump a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.highlight-jump a[aria-current="location"] {
  border-color: var(--ink);
  color: var(--surface);
  background: var(--ink);
}

.highlight-jump .highlight-jump-latest {
  border-color: var(--line);
  color: var(--ink);
}

.highlight-jump .highlight-jump-latest[aria-current="location"] {
  color: var(--surface);
}

.highlight-jump-latest span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-jump a[aria-current="location"] span {
  color: inherit;
}

.highlight-controls {
  display: flex;
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.highlight-navigation-disclosure {
  color: var(--muted);
}

.highlight-navigation-disclosure[open] {
  flex-basis: 100%;
}

.highlight-navigation-disclosure summary {
  width: max-content;
  min-block-size: 44px;
  padding: 14px 4px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.highlight-navigation-disclosure summary::-webkit-details-marker {
  display: none;
}

.highlight-navigation-disclosure summary::after {
  margin-left: 0.5em;
  content: "+";
}

.highlight-navigation-disclosure[open] summary::after {
  content: "−";
}

.highlight-navigation-disclosure summary:hover,
.highlight-navigation-disclosure summary:focus-visible {
  color: var(--ink);
}

.highlight-navigation-disclosure summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.highlight-navigation-hint {
  max-width: 72ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.highlight-navigation-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgb(255 255 255 / 18%);
  font: inherit;
}

.highlight-location-row {
  display: flex;
  min-width: min(100%, 22rem);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.highlight-location {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.highlight-pager {
  display: flex;
  margin: 0;
  gap: 8px;
}

.highlight-pager[hidden] {
  display: none;
}

.highlight-pager button {
  min-block-size: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--highlight-panel);
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.highlight-pager button:hover:not(:disabled),
.highlight-pager button:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.highlight-pager button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.highlight-pager button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.highlight-list {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  gap: 12px;
}

.highlight-list li {
  display: grid;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--highlight-panel);
  scroll-margin-top: 24px;
  grid-template-columns: 7ch minmax(0, 1fr);
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
}

.highlight-list li:target {
  border-color: var(--ink);
  box-shadow: inset 3px 0 var(--ink);
}

.highlight-list li:target .highlight-number {
  color: var(--ink);
}

.highlight-list li:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.highlight-number {
  color: var(--ink);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.highlight-copy h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.highlight-status {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.24em 0.52em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.highlight-copy h2 a,
.highlight-route {
  color: var(--ink);
}

.highlight-copy h2 a {
  text-decoration: none;
}

.highlight-copy h2 a:hover,
.highlight-copy h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

.highlight-copy h2 a:focus-visible {
  border-radius: 3px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.highlight-copy p {
  max-width: 50ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.highlight-route {
  display: inline-flex;
  min-block-size: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.highlight-route:hover,
.highlight-route:focus-visible {
  border-color: var(--ink);
}

.highlight-route:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.highlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.highlight-share {
  min-block-size: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.highlight-share[hidden] {
  display: none;
}

.highlight-share:hover,
.highlight-share:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.highlight-share:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.highlight-share:disabled {
  cursor: wait;
  opacity: 0.6;
}

.highlights-page header {
  padding: 48px 0 clamp(40px, 6vw, 56px);
}

.highlights-page .story {
  max-width: none;
  padding-top: 32px;
}

.highlights-page .principles {
  margin-top: 36px;
  padding-top: 32px;
}

.highlights-page #turning-point-620 {
  background: var(--highlight-panel-strong);
}

.sources {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.shortcut-directory {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.shortcut-directory div {
  display: grid;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  grid-template-columns: minmax(8em, auto) minmax(0, 1fr);
  gap: 16px;
}

.shortcut-directory dt,
.shortcut-directory dd {
  margin: 0;
}

.shortcut-directory dt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.shortcut-directory dd {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.shortcut-directory kbd,
.story kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--surface);
  font: 500 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.source-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.source-list li {
  display: flex;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  line-height: 1.5;
}

.source-list a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

.source-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.source-list .explore-theme-details {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.source-list .explore-theme-random {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-list .explore-theme-random:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.source-list .explore-theme-count {
  display: inline-block;
  min-inline-size: 2.4em;
  margin-inline-start: 5px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.explore-theme-count-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.explore-theme-count-footer {
  display: flex;
  margin-top: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.refresh-explore-themes {
  min-inline-size: 7.5em;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.refresh-explore-themes:hover,
.refresh-explore-themes:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.refresh-explore-themes:disabled {
  cursor: wait;
  opacity: 0.65;
}

.source-list code {
  font: inherit;
  font-variant-ligatures: none;
}

.explore-section-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

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

.explore-section-heading a {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-underline-offset: 0.2em;
}

.explore-section-heading a:hover,
.explore-section-heading a:focus-visible {
  color: var(--ink);
}

.explore-section-heading a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.explore-recent {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.explore-recent li {
  border-top: 1px solid var(--line);
}

.explore-recent a {
  display: grid;
  padding: 14px 0;
  grid-template-columns: 6ch minmax(0, 1fr);
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.explore-recent-number {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.explore-recent-title {
  color: var(--ink);
}

.explore-recent a:hover .explore-recent-number,
.explore-recent a:focus-visible .explore-recent-number {
  color: var(--ink);
}

.explore-recent a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.explore-page header {
  padding: 48px 0 clamp(40px, 6vw, 56px);
}

.explore-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.95fr);
  gap: 12px;
}

.explore-entry-grid .sources,
.explore-page .explore-recent-section {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--explore-panel);
}

.explore-entry-grid .sources {
  display: flex;
  flex-direction: column;
}

.explore-entry-grid h2 {
  margin-bottom: 20px;
  font-size: 17px;
}

.explore-entry-grid .source-filter {
  margin: 0;
}

.explore-entry-grid .source-filter label {
  font-weight: 650;
}

.explore-entry-grid .source-filter input {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--surface);
  font-size: 16px;
}

.explore-entry-grid .source-filter input:focus-visible {
  outline-offset: -2px;
}

.explore-entry-grid .explore-search-submit,
.explore-entry-grid .explore-jump-submit {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
}

.explore-entry-grid .source-filter-help {
  margin: 12px 0 0;
  font-size: 11px;
}

.explore-entry-grid .sources:last-child .source-filter-help {
  margin-top: auto;
  padding-top: 12px;
}

.explore-page .explore-recent-section {
  margin-top: 24px;
  padding: 28px;
}

.explore-page .explore-section-heading {
  margin-bottom: 18px;
}

.explore-page .explore-section-heading h2 {
  font-size: 17px;
}

.explore-page .explore-section-heading a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.explore-page .explore-section-heading a:hover,
.explore-page .explore-section-heading a:focus-visible {
  border-color: var(--ink);
}

.explore-page .explore-recent {
  display: grid;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.explore-page .explore-recent li {
  border: 0;
}

.explore-page .explore-recent li:first-child {
  grid-column: 1 / -1;
}

.explore-page .explore-recent a {
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: baseline;
  background: var(--surface);
}

.explore-page .explore-recent a:hover,
.explore-page .explore-recent a:focus-visible {
  border-color: var(--ink);
  background: var(--explore-panel-strong);
}

.explore-page .explore-recent-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.explore-page .explore-recent-title {
  font-size: 13px;
  font-weight: 600;
}

.explore-page .explore-themes-section,
.explore-page .explore-routes-section {
  margin-top: 40px;
  padding-top: 32px;
}

.explore-page #explore-theme-list,
.explore-page .explore-route-list {
  display: grid;
  padding: 0;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.explore-page #explore-theme-list > li,
.explore-page .explore-route-list > li {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-content: start;
  align-items: start;
  gap: 10px;
  background: var(--explore-panel);
}

.explore-page #explore-theme-list > li:last-child,
.explore-page .explore-route-list > li:last-child {
  grid-column: 1 / -1;
}

.explore-page #explore-theme-list > li > a:first-child,
.explore-page .explore-route-list > li > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.explore-page #explore-theme-list > li > a:first-child:hover,
.explore-page #explore-theme-list > li > a:first-child:focus-visible,
.explore-page .explore-route-list > li > a:hover,
.explore-page .explore-route-list > li > a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

.explore-page #explore-theme-list > li > a:first-child:focus-visible,
.explore-page .explore-route-list > li > a:focus-visible {
  border-radius: 3px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.explore-page #explore-theme-list .explore-theme-details {
  min-height: 86px;
  justify-items: start;
  align-content: space-between;
  gap: 12px;
}

.explore-page #explore-theme-list .explore-theme-details > span,
.explore-page .explore-route-list > li > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.explore-page #explore-theme-list .explore-theme-random {
  display: inline-flex;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  text-decoration: none;
}

.explore-page #explore-theme-list .explore-theme-random:hover,
.explore-page #explore-theme-list .explore-theme-random:focus-visible {
  border-color: var(--ink);
}

.explore-page #explore-theme-list .explore-theme-count {
  min-inline-size: 2.8em;
  padding: 3px 7px;
  color: var(--ink);
  background: var(--surface);
}

.explore-page .explore-theme-count-footer {
  margin-top: 14px;
  padding: 0 4px;
}

.explore-page .refresh-explore-themes {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 14px;
}

.explore-page .explore-route-list > li > span {
  text-align: left;
}

.command-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.command-heading h2 {
  margin-bottom: 0;
}

.source-filter {
  display: grid;
  margin-bottom: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.source-filter label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-filter input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.source-filter input:focus-visible {
  border-color: currentColor;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.source-filter-presets {
  display: flex;
  margin: 10px 0 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.source-filter-presets[hidden] {
  display: none;
}

.source-filter-presets > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-filter-preset {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.source-filter-preset:hover,
.source-filter-preset:focus-visible,
.source-filter-preset[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--surface);
  background: var(--ink);
}

.open-source-filter-result,
.clear-source-filter,
.shortcut-filter-submit,
.clear-shortcut-filter,
.explore-search-submit,
.explore-jump-submit,
.site-map-jump-submit {
  min-inline-size: 7.5em;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.open-source-filter-result:hover,
.open-source-filter-result:focus-visible,
.clear-source-filter:hover,
.clear-source-filter:focus-visible,
.shortcut-filter-submit:hover,
.shortcut-filter-submit:focus-visible,
.clear-shortcut-filter:hover,
.clear-shortcut-filter:focus-visible,
.explore-search-submit:hover,
.explore-search-submit:focus-visible,
.explore-jump-submit:hover,
.explore-jump-submit:focus-visible,
.site-map-jump-submit:hover,
.site-map-jump-submit:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.open-source-filter-result {
  overflow-wrap: anywhere;
}

.source-filter-help,
.source-filter-status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.source-filter-help {
  margin: 0 0 8px;
}

.source-filter-example {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.source-filter-example:hover,
.source-filter-example:focus-visible {
  text-decoration-color: currentColor;
}

.source-filter-example:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.source-filter-status {
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}

.source-filter-empty {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.shortcut-filter-status {
  margin-bottom: 0;
}

.shortcut-filter-empty {
  margin-top: 18px;
}

.no-js .shortcut-filter-section {
  display: none;
}

.command-description,
.source-description {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px 10px;
}

.copy-command,
.copy-source,
.copy-command-list,
.copy-app-profile,
.copy-source-list,
.copy-shortcut-results,
.copy-sitemap-url {
  min-inline-size: 7.5em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-command:hover,
.copy-command:focus-visible,
.copy-source:hover,
.copy-source:focus-visible,
.copy-command-list:hover,
.copy-command-list:focus-visible,
.copy-app-profile:hover,
.copy-app-profile:focus-visible,
.copy-source-list:hover,
.copy-source-list:focus-visible,
.copy-shortcut-results:hover,
.copy-shortcut-results:focus-visible,
.copy-sitemap-url:hover,
.copy-sitemap-url:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.copy-command:disabled,
.copy-source:disabled,
.copy-command-list:disabled,
.copy-app-profile:disabled,
.copy-source-list:disabled,
.copy-shortcut-results:disabled,
.copy-sitemap-url:disabled {
  cursor: wait;
  opacity: 0.6;
}

.copy-command-list,
.copy-app-profile,
.copy-source-list,
.copy-shortcut-results,
.copy-sitemap-url {
  min-inline-size: 10em;
}

.command-shortcut-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.command-shortcut-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgb(255 255 255 / 18%);
  font: inherit;
}

.site-map-milestones {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-map-jump {
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-map-milestones a {
  min-inline-size: 2.75rem;
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-decoration-color: var(--line);
  text-underline-offset: 0.25em;
}

.site-map-milestones a:hover,
.site-map-milestones a:focus-visible {
  color: var(--muted);
}

.site-map-milestone-latest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-map-milestone-latest span {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.feed-address {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px 10px;
}

.copy-feed,
.copy-feed-list {
  min-inline-size: 11em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-feed:hover,
.copy-feed:focus-visible,
.copy-feed-list:hover,
.copy-feed-list:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.copy-feed:disabled,
.copy-feed-list:disabled {
  cursor: wait;
  opacity: 0.6;
}

.privacy-control-note {
  max-width: 48ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.privacy-control + .privacy-control {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.clear-local-count,
.clear-catch-up,
.clear-saved-improvements,
.clear-offline-files,
.copy-storage-report,
.refresh-storage-status {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: 500 9px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.clear-local-count:hover,
.clear-local-count:focus-visible,
.clear-catch-up:hover,
.clear-catch-up:focus-visible,
.clear-saved-improvements:hover,
.clear-saved-improvements:focus-visible,
.clear-offline-files:hover,
.clear-offline-files:focus-visible,
.copy-storage-report:hover,
.copy-storage-report:focus-visible,
.refresh-storage-status:hover,
.refresh-storage-status:focus-visible {
  border-color: currentColor;
}

.clear-local-count:disabled,
.clear-catch-up:disabled,
.clear-saved-improvements:disabled,
.clear-offline-files:disabled,
.copy-storage-report:disabled,
.refresh-storage-status:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.clear-offline-files {
  min-inline-size: 19em;
  text-align: center;
}

.clear-offline-files[aria-busy="true"] {
  cursor: wait;
}

.refresh-storage-status {
  min-inline-size: 23em;
  text-align: center;
}

.refresh-storage-status[aria-busy="true"] {
  cursor: wait;
}

.copy-storage-report {
  min-inline-size: 20em;
  text-align: center;
}

.copy-storage-report[aria-busy="true"] {
  cursor: wait;
}

.privacy-control-status,
.privacy-catch-up-status,
.privacy-saved-improvements-status,
.privacy-offline-status,
.privacy-report-status,
.privacy-refresh-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.accessibility-preference-note {
  max-width: 54ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.accessibility-preference-list output {
  color: var(--muted);
  font: inherit;
}

.accessibility-preference-status {
  min-height: 1.5em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.refresh-accessibility-preferences {
  min-inline-size: 15em;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: 500 9px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.refresh-accessibility-preferences:hover,
.refresh-accessibility-preferences:focus-visible {
  border-color: currentColor;
}

.refresh-accessibility-preferences:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.accessibility-page .shell {
  width: min(100% - 48px, 1080px);
  padding-top: clamp(40px, 7vw, 72px);
}

.accessibility-page header {
  display: grid;
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 72px);
  align-items: end;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(48px, 8vw, 96px);
}

.accessibility-page h1 {
  max-width: 11ch;
  font-size: clamp(54px, 8vw, 92px);
}

.accessibility-page .intro {
  max-width: 38ch;
  font-size: 15px;
}

.accessibility-assurances {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.accessibility-assurances li {
  display: grid;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  gap: 18px;
}

.accessibility-assurances strong {
  font-size: 11px;
  font-weight: 650;
}

.accessibility-assurances span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.accessibility-overview {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.35fr);
  gap: 16px;
}

.accessibility-overview .story,
.accessibility-preferences {
  max-width: none;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.accessibility-overview .story {
  background: var(--highlight-panel);
}

.accessibility-overview .story h2,
.accessibility-preferences h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.accessibility-overview .story p {
  font-size: 14px;
  line-height: 1.65;
}

.accessibility-overview .story p:last-child {
  margin-bottom: 0;
}

.accessibility-preferences {
  border-color: var(--ink);
  color: var(--surface);
  background: var(--ink);
}

.accessibility-preferences .command-heading {
  align-items: flex-start;
}

.accessibility-preferences .accessibility-preference-note,
.accessibility-preferences .accessibility-preference-status {
  color: inherit;
  opacity: 0.7;
}

.accessibility-preferences .accessibility-preference-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.accessibility-preference-list > div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.accessibility-preference-list > div:last-child {
  grid-column: 1 / -1;
}

.accessibility-preference-list dt {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  opacity: 0.65;
  text-transform: uppercase;
}

.accessibility-preferences .accessibility-preference-list dd {
  margin-top: 12px;
  color: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.accessibility-preference-list output {
  color: inherit;
  font-weight: 600;
}

.accessibility-preferences .accessibility-preference-status {
  margin-top: 18px;
}

.accessibility-preferences .refresh-accessibility-preferences {
  min-block-size: 44px;
  min-inline-size: 0;
  padding: 0 14px;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  color: inherit;
  white-space: nowrap;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] {
  margin-top: 40px;
  padding-top: 48px;
}

.accessibility-page #accessibility-support-title,
.accessibility-page #accessibility-routes-title {
  margin-bottom: 24px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list {
  counter-reset: accessibility-support;
  gap: 12px;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list > div {
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--highlight-panel);
  counter-increment: accessibility-support;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] dt {
  display: grid;
  font-size: 15px;
  font-weight: 650;
  gap: 48px;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] dt::before {
  color: var(--muted);
  content: counter(accessibility-support, decimal-leading-zero);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.accessibility-page section[aria-labelledby="accessibility-support-title"] dd {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.accessibility-page .sources {
  margin-top: 40px;
  padding-top: 48px;
}

.accessibility-page .source-list {
  display: grid;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.accessibility-page .source-list li {
  display: grid;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-content: space-between;
  gap: 24px;
  background: var(--highlight-panel);
}

.accessibility-page .source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.accessibility-page .source-list a::after {
  width: 7px;
  height: 7px;
  border-block-start: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  content: "";
  flex: 0 0 auto;
  transform: rotate(45deg);
}

.accessibility-page .source-list a:hover,
.accessibility-page .source-list a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

.accessibility-page .source-list a:focus-visible {
  border-radius: 3px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.accessibility-page .source-list span {
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.accessibility-page section[aria-labelledby="accessibility-limits-title"] {
  display: grid;
  max-width: none;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--highlight-panel);
  grid-template-columns: minmax(12rem, 0.6fr) minmax(0, 1.4fr);
  gap: 16px 48px;
}

.accessibility-page #accessibility-limits-title {
  grid-row: 1 / span 2;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.accessibility-page section[aria-labelledby="accessibility-limits-title"] p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.65;
}

.accessibility-page .actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.accessibility-page .actions a,
.accessibility-page .actions .share-page {
  display: inline-flex;
  min-block-size: 44px;
  min-inline-size: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--highlight-panel);
}

.accessibility-page .actions a:hover,
.accessibility-page .actions a:focus-visible,
.accessibility-page .actions .share-page:hover,
.accessibility-page .actions .share-page:focus-visible {
  border-color: currentColor;
}

@media (max-width: 760px) {
  .accessibility-page header,
  .accessibility-overview {
    grid-template-columns: 1fr;
  }

  .accessibility-page header {
    align-items: start;
    gap: 40px;
  }

  .accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accessibility-page section[aria-labelledby="accessibility-limits-title"] {
    grid-template-columns: 1fr;
  }

  .accessibility-page #accessibility-limits-title {
    grid-row: auto;
  }
}

.feed-preview {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style-position: inside;
}

.feed-updated-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.feed-updated {
  color: var(--ink);
}

.feed-preview-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.feed-preview-item a {
  margin-left: 8px;
  color: var(--ink);
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

.feed-preview-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.feed-preview-footer {
  display: flex;
  margin-top: 12px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.feed-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.refresh-feed,
.copy-feed-preview,
.download-feed-preview,
.print-feed-preview {
  min-inline-size: 11em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font: 500 8px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.refresh-feed:hover,
.refresh-feed:focus-visible,
.copy-feed-preview:hover,
.copy-feed-preview:focus-visible,
.download-feed-preview:hover,
.download-feed-preview:focus-visible,
.print-feed-preview:hover,
.print-feed-preview:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.refresh-feed:disabled,
.copy-feed-preview:disabled,
.download-feed-preview:disabled,
.print-feed-preview:disabled {
  cursor: wait;
  opacity: 0.6;
}

.feed-print-source,
.feed-print-date {
  display: none;
}

.principles-list {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 5vw, 44px);
}

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

.principles-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.principles-list dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.actions {
  display: flex;
  padding-top: 64px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 520px) {
  .explore-entry-grid,
  .explore-page .explore-recent,
  .explore-page #explore-theme-list,
  .explore-page .explore-route-list {
    grid-template-columns: 1fr;
  }

  .explore-entry-grid .sources,
  .explore-page .explore-recent-section {
    padding: 20px;
    border-radius: 16px;
  }

  .explore-entry-grid .source-filter button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .explore-page .explore-recent li:first-child,
  .explore-page #explore-theme-list > li:last-child,
  .explore-page .explore-route-list > li:last-child {
    grid-column: auto;
  }

  .explore-page #explore-theme-list > li,
  .explore-page .explore-route-list > li {
    padding: 18px;
  }

  .explore-page #explore-theme-list .explore-theme-details {
    min-height: 0;
  }

  .explore-section-heading {
    align-items: flex-start;
  }

  .source-filter {
    grid-template-columns: 1fr 1fr;
  }

  .source-filter input {
    grid-column: 1 / -1;
  }

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

  .highlight-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .highlight-jump-label {
    flex-basis: 100%;
    margin: 0 0 2px;
  }

  .highlight-jump {
    padding: 14px;
    border-radius: 16px;
  }

  .highlight-jump a {
    flex-basis: 4rem;
  }

  .highlight-controls,
  .highlight-location-row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .highlight-location-row {
    min-width: 0;
    justify-content: stretch;
  }

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

  .highlight-number {
    font-size: 34px;
  }

  .highlight-copy h2 {
    font-size: 18px;
  }

  .shortcut-directory div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shortcut-directory dd {
    text-align: left;
  }

  .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 24px;
  }

  .accessibility-page .shell {
    width: min(100% - 32px, 1080px);
  }

  .accessibility-page header {
    padding: 52px 0 40px;
    gap: 32px;
  }

  .accessibility-page h1 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .accessibility-assurances li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .accessibility-assurances span {
    text-align: left;
  }

  .accessibility-overview .story,
  .accessibility-preferences,
  .accessibility-page section[aria-labelledby="accessibility-limits-title"] {
    padding: 22px;
    border-radius: 16px;
  }

  .accessibility-preferences .command-heading {
    display: grid;
    align-items: start;
  }

  .accessibility-preferences .refresh-accessibility-preferences {
    width: 100%;
  }

  .accessibility-preferences .accessibility-preference-list,
  .accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list,
  .accessibility-page .source-list {
    grid-template-columns: 1fr;
  }

  .accessibility-preference-list > div:last-child {
    grid-column: auto;
  }

  .accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list > div {
    min-height: 0;
    padding: 22px;
  }

  .accessibility-page section[aria-labelledby="accessibility-support-title"] dt {
    gap: 32px;
  }

  .accessibility-page .source-list li {
    min-height: 120px;
  }

  .accessibility-page .actions {
    gap: 8px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body {
    background: var(--surface);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111;
    --ink: #f7f7f5;
    --muted: rgb(247 247 245 / 60%);
    --line: rgb(247 247 245 / 10%);
    --glow: #30302e;
    --highlight-panel: rgb(247 247 245 / 3%);
    --highlight-panel-strong: rgb(247 247 245 / 6%);
    --explore-panel: rgb(247 247 245 / 3%);
    --explore-panel-strong: rgb(247 247 245 / 6%);
  }
}

@media (forced-colors: active) {
  body {
    background: Canvas;
  }

  .story,
  .principles,
  .sources,
  .highlight-list,
  .highlight-list li {
    border-color: CanvasText;
  }

  .explore-recent,
  .explore-recent li {
    border-color: CanvasText;
  }

  .explore-entry-grid .sources,
  .explore-page .explore-recent-section,
  .explore-page .explore-recent a,
  .explore-page #explore-theme-list > li,
  .explore-page .explore-route-list > li,
  .explore-page #explore-theme-list .explore-theme-random {
    border-color: CanvasText;
  }

  .shortcut-directory,
  .shortcut-directory div,
  .shortcut-directory kbd,
  .highlight-navigation-hint kbd,
  .story kbd {
    border-color: CanvasText;
  }

  .site-map-milestone-latest span {
    border-color: CanvasText;
  }

  .highlight-status {
    border-color: CanvasText;
    color: CanvasText;
  }

  .highlight-jump,
  .highlight-jump a,
  .highlight-pager button,
  .highlight-share {
    border-color: CanvasText;
  }

  .highlight-route,
  .highlight-navigation-disclosure summary {
    border-color: CanvasText;
  }

  .accessibility-overview .story,
  .accessibility-preferences,
  .accessibility-preference-list > div,
  .accessibility-page section[aria-labelledby="accessibility-support-title"] .principles-list > div,
  .accessibility-page .source-list li,
  .accessibility-page section[aria-labelledby="accessibility-limits-title"],
  .accessibility-page .actions a,
  .accessibility-page .actions .share-page {
    border-color: CanvasText;
  }

  .refresh-accessibility-preferences {
    border-color: CanvasText;
    color: CanvasText;
  }

  .highlight-list li:target {
    outline: 2px solid CanvasText;
    outline-offset: -2px;
  }

  .skip-link {
    outline: 2px solid CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .highlight-pager,
  .highlight-share {
    display: none !important;
  }

  .feeds-page {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .feeds-page .skip-link,
  .feeds-page .site-link,
  .feeds-page .shell > header,
  .feeds-page .story,
  .feeds-page .shell > .sources:not(.feed-preview-section),
  .feeds-page .feed-preview-actions,
  .feeds-page .command-shortcut-hint,
  .feeds-page .actions {
    display: none !important;
  }

  .feeds-page .shell {
    width: 100%;
    padding: 0;
  }

  .feeds-page .feed-preview-section {
    padding: 0;
    border: 0;
  }

  .feeds-page .feed-print-source:not([hidden]),
  .feeds-page .feed-print-date:not([hidden]) {
    display: block;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    font-size: 8pt;
  }

  .feeds-page .feed-print-source a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .feeds-page .feed-preview-item {
    break-inside: avoid;
    border-color: #ddd;
    font-size: 10pt;
  }

  .feeds-page .feed-preview-item a {
    color: inherit;
  }
}
