:root {
  --ground: #fff;
  --surface: #fff;
  --raised: #f6f7f8;
  --active: #eef0f2;
  --text: #18212a;
  --muted: #62717d;
  --border: #e9edf0;
  --control: #c6cdd3;
  --accent: var(--brand-accent,#009de0);
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --radius: 16px;
  color-scheme: light;
}

:root[data-theme=dark] {
  --ground: #000;
  --surface: #111;
  --raised: #1b1b1b;
  --active: #292929;
  --text: #efefef;
  --muted: #b4b4b4;
  --border: #262626;
  --control: #484848;
  --accent: var(--brand-accent-dark,#009de0);
  color-scheme: dark;
}

:root[data-theme-transition]::view-transition {
  pointer-events: none;
}

:root[data-theme-transition]::view-transition-group(root),
:root[data-theme-transition]::view-transition-old(root),
:root[data-theme-transition]::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

button {
  color: inherit;
}

button,select {
  background: none;
}

button {
  border: 0;
}

svg {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: #009de033;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 12px;
  background: var(--text);
  color: var(--ground);
  transform: translateY(-200%);
}

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

/* 1380px = 220px sidebar + 844px main + 292px rail + 24px outer gutter. */

.site-shell {
  --site-nav-width: 220px;
  --site-rail-width: 292px;
  display: grid;
  grid-template-columns: var(--site-nav-width) minmax(0,1fr) var(--site-rail-width);
  max-width: 1380px;
  margin: auto;
  min-height: 100vh;
  padding-right: 24px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 29px 25px 24px 12px;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 34px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .03em;
}

.brand>span {
  white-space: nowrap;
}

.brand i {
  font-style: normal;
  color: var(--accent);
}

.main-nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 8px 15px;
  font-size: 18px;
  border-radius: 28px;
  width: fit-content;
  min-width: 155px;
  color: var(--muted);
  transition: background .15s;
}

.nav-link svg {
  width: 24px;
  height: 24px;
}

.nav-link.active {
  font-weight: 700;
  color: var(--text);
}

.nav-link:hover {
  background: var(--raised);
  color: var(--text);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  flex-shrink: 0;
}

.sidebar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.sidebar>.brand,.sidebar>.main-nav {
  flex-shrink: 0;
}

.theme-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 36px;
  white-space: nowrap;
  flex: none;
}

.theme-button svg {
  width: 18px;
  height: 18px;
}

.theme-button:hover {
  color: var(--text);
}

.main-column {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.topbar {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 0 27px;
  border-bottom: 1px solid var(--border);
  background: var(--ground);
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0;
  font-weight: 750;
}

.topbar-sub {
  font-size: 12px;
  color: var(--muted);
}

.feed-tabs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 0 27px;
  min-height: 55px;
}

.feed-tabs>a {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  padding: 0 3px;
}

.feed-tabs>a.selected {
  font-weight: 700;
  color: var(--text);
}

.feed-tabs>a.selected:after {
  content: "";
  height: 3px;
  background: var(--text);
  position: absolute;
  bottom: 0;
  left: 3px;
  right: 3px;
  border-radius: 4px;
}

.layout-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: none;
}

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

.icon-button:hover {
  color: var(--accent);
  background: var(--raised);
}

.icon-button[aria-pressed=true] {
  color: var(--text);
  background: var(--active);
}

.feed-filter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 16px 27px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.feed-filter strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
}

.clear-filter {
  color: var(--accent);
  white-space: nowrap;
  flex: none;
}

.feed {
  margin: 18px 20px 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 14px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 18px 10px;
  break-inside: avoid;
}

.post-card h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.post-date {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.post-content-link:hover h2 {
  color: var(--accent);
}

.excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-link {
  display: block;
  margin: 0 -4px 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--raised);
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  min-height: 100px;
  object-fit: cover;
}

.image-unavailable {
  padding: 18px;
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 12px;
}

.post-tags a {
  font-size: 12px;
  color: var(--accent);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.post-tags a:hover {
  text-decoration: underline;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  min-height: 42px;
}

.reading-time {
  margin-left: auto;
  margin-right: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.post-actions .icon-button {
  width: 29px;
  height: 30px;
}

.post-actions .icon-button svg {
  width: 16px;
  height: 16px;
}

:root[data-theme=dark] .post-card {
  border-color: transparent;
}

:root[data-layout=list] .feed {
  grid-template-columns: minmax(0,1fr);
  margin-inline: 0;
}

:root[data-layout=list] .post-card {
  padding: 24px;
  border-inline: 0;
  border-radius: 0;
}

.feed:has(.post-card[data-layout-motion]) {
  overflow: clip;
}

:root[data-layout=list] .post-cover {
  max-height: 400px;
}

:root[data-layout=list] .post-card h2 {
  font-size: 21px;
}

.load-area {
  text-align: center;
  padding: 32px 24px 42px;
  font-size: 12px;
  color: var(--muted);
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--control);
  border-radius: 24px;
  min-height: 42px;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text);
}

.load-more:hover {
  background: var(--raised);
}

.load-more svg {
  width: 17px;
}

.load-more[aria-disabled=true] {
  opacity: .6;
  pointer-events: none;
}

.right-rail {
  padding: 20px 0 0 24px;
  min-width: 0;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 24px;
  background: var(--raised);
  padding: 0 15px;
  min-height: 42px;
  color: var(--muted);
}

.search-form svg {
  width: 17px;
  height: 17px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 12px;
  padding: 10px 0;
}

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

.search-form:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-form input:focus-visible {
  outline: 0;
}

.search-form kbd {
  font: 11px var(--font);
  border: 1px solid var(--control);
  padding: 0 5px;
  border-radius: 4px;
}

.search-form button {
  font-size: 13px;
  white-space: nowrap;
  color: var(--accent);
}

.rail-section {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 19px 18px 10px;
}

.rail-section h2 {
  font-size: 16px;
  margin: 0 0 13px;
  font-weight: 750;
}

.toc-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.toc-list a {
  display: block;
  margin-inline-start: calc(var(--toc-depth) * 12px);
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.toc-list a:hover,.toc-list a:focus-visible {
  color: var(--accent);
  background: var(--raised);
}

.topic-list a {
  display: flex;
  align-items: center;
  padding: 11px 0;
  font-size: 13px;
  gap: 8px;
}

.topic-list a:hover {
  color: var(--accent);
}

.topic-list small {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.topic-list svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

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

.year-grid a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
}

.year-grid a:hover strong {
  color: var(--accent);
}

.year-grid strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.year-grid span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rail-link {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 13px 0 2px;
  margin-top: 7px;
}

.rail-link svg {
  width: 15px;
}

.rail-note {
  padding: 22px 18px 19px;
}

.note-mark {
  font-family: Georgia,serif;
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}

.rail-note p {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  max-width: 210px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin: 0 18px;
  padding-top: 17px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
}

.site-footer p {
  width: 100%;
  margin: 5px 0;
}

.site-footer a:hover {
  color: var(--text);
}

.archive-intro {
  padding: 28px 27px 22px;
}

.archive-intro h2 {
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.archive-intro p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.empty-state {
  text-align: center;
  padding: 70px 25px;
  min-height: 380px;
}

.empty-state>svg {
  width: 38px;
  height: 38px;
  color: var(--muted);
  margin-bottom: 10px;
}

.empty-state h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 10px 0;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
}

.empty-state a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  margin-top: 15px;
}

.error-number {
  font-size: 42px;
  color: var(--muted);
  font-weight: 700;
}

.archive-years {
  padding: 0 27px 40px;
}

.archive-year h2 {
  font-size: 24px;
  margin: 24px 0 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.archive-year h2>span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.archive-year>a {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  font-size: 14px;
}

.archive-year>a:hover {
  color: var(--accent);
}

.archive-year time {
  font-size: 12px;
  color: var(--muted);
  width: 38px;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.archive-year>a>span {
  flex: 1;
}

.archive-year svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.detail-column .topbar {
  justify-content: flex-start;
}

.detail-topbar {
  padding-inline: 16px;
  flex-wrap: nowrap;
}

.detail-topbar .detail-back {
  width: 52px;
  height: 52px;
}

.detail-back svg {
  width: 22px;
  height: 22px;
}

.detail-topbar .detail-share {
  width: 44px;
  height: 44px;
}

.header-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, visibility 0s .16s;
}

.header-summary[data-visible=true] {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.header-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

[data-header-title-text] {
  display: inline-block;
  white-space: nowrap;
}

.header-date {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.article-detail {
  padding: 34px 32px;
}

.article-title-area {
  display: flow-root;
}

.article-kicker {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 14px;
}

.article-title-area>h1 {
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  margin: 0 0 20px;
}

.article-title-area>h1:has(+.article-meta) {
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.article-meta-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  gap: 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.article-meta-text>time,.article-meta-text>span {
  display: inline-flex;
  align-items: center;
}

.article-meta-text>time {
  font-variant-numeric: tabular-nums;
}

.article-meta-text>*+*::before {
  content: "·";
  margin: 0 8px;
}

.prose {
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

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

.prose h1 {
  font-size: 26px;
}

.prose h2 {
  font-size: 23px;
}

.prose h3 {
  font-size: 19px;
}

.prose h4 {
  font-size: 17px;
}

.prose h5 {
  font-size: 15px;
}

.prose h6 {
  font-size: 14px;
}

.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 {
  scroll-margin-top: 16px;
  line-height: 1.5;
  margin: 1.8em 0 .75em;
  letter-spacing: -.02em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.prose p,.prose ul,.prose ol {
  margin: 1.15em 0;
}

.prose ul,.prose ol {
  padding-left: 24px;
}

.prose li+li {
  margin-top: .35em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img {
  display: block;
  height: auto;
  margin: 22px auto;
  border-radius: 8px;
  max-height: 900px;
  object-fit: contain;
}

.prose img[data-broken] {
  display: none;
}

.broken-media {
  display: block;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.broken-media a {
  margin-left: 8px;
}

.prose video,.prose iframe {
  max-width: 100%;
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 300px;
}

.prose pre {
  background: var(--raised);
  padding: 20px;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  position: relative;
}

.prose code {
  font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size: .88em;
}

.prose :not(pre)>code {
  background: var(--raised);
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--text);
}

.copy-code {
  display: block;
  margin-left: auto;
  border: 1px solid var(--control);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  margin-top: -12px;
  margin-bottom: 18px;
}

.prose blockquote {
  margin: 20px 0;
  background: var(--raised);
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
}

.prose blockquote p {
  margin: 4px 0;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.4em 0;
  overflow: auto;
  overscroll-behavior-x: contain;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.prose td,.prose th {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.prose th {
  background: var(--active);
  color: var(--text);
  font-weight: 650;
}

.prose tbody tr:nth-child(even) {
  background: var(--raised);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

.article-end {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-end p {
  font-size: 12px;
  color: var(--muted);
}

.related {
  border-top: 1px solid var(--border);
  padding: 25px 32px 50px;
}

.related h2 {
  font-size: 19px;
  margin: 0 0 12px;
}

.related>a {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.related>a:hover {
  color: var(--accent);
}

.related svg {
  width: 17px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%,15px);
  background: var(--text);
  color: var(--ground);
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s,transform .2s;
  font-size: 13px;
  max-width: calc(100% - 30px);
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

@media (min-width:1550px) {
  .site-shell {
    --site-nav-width: 230px;
    max-width: 1480px;
  }
  .feed {
    margin: 18px 24px 0;
    gap: 16px;
  }
  .post-card {
    padding: 22px 22px 10px;
  }
}

@media (max-width:1200px) {
  .site-shell {
    --site-nav-width: 185px;
    --site-rail-width: 260px;
    padding-right: 15px;
  }
  .sidebar {
    padding-left: 8px;
    padding-right: 16px;
  }
  .brand {
    font-size: 22px;
    padding-left: 10px;
  }
  .nav-link {
    font-size: 16px;
    gap: 13px;
    min-width: 142px;
  }
  .right-rail {
    padding-left: 18px;
  }
  .feed {
    margin: 18px 16px 0;
    gap: 12px;
  }
  .post-card {
    padding: 16px 14px 8px;
  }
  .reading-time {
    display: none;
  }
  .post-card h2 {
    font-size: 16px;
  }
}

@media (max-width:1020px) {
  .site-shell {
    grid-template-columns: 180px minmax(0,1fr);
    padding-right: 0;
    max-width: 920px;
  }
  .right-rail {
    display: none;
  }
  .main-column {
    border-right: 0;
  }
  .reading-time {
    display: inline;
  }
}

@media (max-width:700px) {
  .site-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    height: 66px;
    z-index: 20;
    padding: 0;
    background: var(--ground);
    border: 0;
    border-top: 1px solid var(--border);
  }
  .sidebar .brand,.sidebar-bottom {
    display: none;
  }
  .main-nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
    height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-link {
    padding: 8px 3px 6px;
    min-width: 0;
    min-height: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    border-radius: 0;
  }
  .nav-link svg {
    width: 22px;
    height: 22px;
  }
  .main-column {
    padding-bottom: 65px;
  }
  .topbar {
    height: 64px;
    padding: 0 19px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar-sub {
    font-size: 11px;
  }
  .feed-tabs {
    padding: 0 16px;
    min-height: 52px;
    gap: 6px;
  }
  .feed-tabs>a {
    padding: 0;
    font-size: 12px;
    white-space: nowrap;
    flex: none;
    min-height: 52px;
  }
  .feed-filter {
    margin: 14px 20px 0;
  }
  .feed {
    grid-template-columns: 1fr;
    margin: 18px 0 0;
    gap: 0;
  }
  .post-card {
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 21px 20px 10px;
    background: var(--ground);
  }
  .post-card h2 {
    font-size: 18px;
  }
  .excerpt {
    font-size: 14px;
    line-height: 1.85;
    -webkit-line-clamp: 4;
    margin-bottom: 16px;
  }
  .cover-link {
    margin: 0 0 14px;
  }
  .post-cover {
    max-height: 370px;
  }
  .post-tags a {
    font-size: 12px;
  }
  .post-actions {
    border: 0;
    padding-top: 0;
  }
  .post-actions .icon-button {
    width: 42px;
    height: 40px;
  }
  .post-actions .icon-button svg {
    width: 18px;
    height: 18px;
  }
  .reading-time {
    font-size: 12px;
    margin-right: 10px;
  }
  :root[data-theme=dark] .post-card {
    border-bottom-color: var(--border);
  }
  :root[data-layout=list] .post-card h2 {
    font-size: 18px;
  }
  :root[data-layout=list] .post-cover {
    max-height: 370px;
  }
  :root[data-layout=list] .post-card {
    padding: 21px 20px 10px;
  }
  .load-area {
    padding-bottom: 30px;
  }
  .mobile-theme {
    width: 38px;
    height: 38px;
    margin-left: 8px;
  }
  .topbar>div:first-of-type {
    margin-right: auto;
  }
  .toast {
    bottom: 80px;
  }
  .article-detail {
    padding: 26px 21px;
  }
  .article-title-area>h1 {
    font-size: 27px;
  }
  .article-meta {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  .prose {
    font-size: 15px;
    line-height: 1.95;
  }
  .prose pre {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
    font-size: 12px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose iframe {
    min-height: 220px;
  }
  .related {
    padding: 24px 21px 32px;
  }
  .archive-intro {
    padding: 25px 21px 18px;
  }
  .archive-years {
    padding: 0 21px 25px;
  }
  .archive-year>a {
    gap: 12px;
  }
  .empty-state {
    min-height: 350px;
    padding-top: 55px;
  }
}

@media (prefers-reduced-motion:reduce) {
  ::view-transition-group(root),::view-transition-old(root),::view-transition-new(root) {
    animation: none!important;
  }
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }
}

.mobile-theme {
  display: none;
}

@media (max-width:700px) {
  .mobile-theme {
    display: inline-flex;
  }
}

.previous-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.previous-page svg {
  width: 16px;
  height: 16px;
}

.page-position {
  font-size: 12px;
  color: var(--muted);
  margin: 0 12px;
}

/* Keep secondary navigation reachable when the desktop rail is hidden. */

.footer-legal {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
}

.site-footer .footer-copyright {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer-registration {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.footer-registration img {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-registration span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar .site-footer {
  margin: 0;
  padding-top: 14px;
  gap: 6px 10px;
  min-width: 0;
}

.sidebar .footer-legal {
  font-size: 11px;
  gap: 4px;
}

.sidebar .footer-registration {
  gap: 6px;
}

.sidebar .footer-registration img {
  width: 14px;
  height: 14px;
}

@media (min-width:701px) and (max-width:1200px) {
  .sidebar .site-footer,.sidebar .footer-legal {
    font-size: 10px;
  }
  .sidebar .site-footer {
    column-gap: 7px;
  }
  .sidebar .footer-registration {
    gap: 4px;
    align-items: flex-start;
  }
  .sidebar .footer-registration span {
    text-wrap: balance;
  }
  .sidebar .footer-registration img {
    width: 12px;
    height: 12px;
    margin-top: 2px;
  }
}

.sidebar {
  overflow-y: auto;
}

.compact-footer {
  display: none;
}

@media (max-width:700px) {
  .compact-footer {
    display: flex;
    margin: 0 21px;
    padding: 16px 0 24px;
  }
  .compact-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
  }
  .compact-footer .footer-registration {
    min-height: 0;
  }
  .sidebar {
    overflow-y: visible;
  }
}

.feed-tabs .mobile-theme {
  margin-left: 0;
  align-self: center;
}

/* Language is rendered on the server; this control also works without scripts. */

.language-form {
  margin: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.language-toggle:hover {
  background: var(--active);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sidebar-controls>.language-form {
  flex: none;
}

.mobile-language {
  display: none;
}

@media (max-width:700px) {
  .topbar.detail-topbar {
    padding-inline: 8px;
    gap: 6px;
  }
  .detail-topbar .detail-back {
    width: 48px;
    height: 48px;
  }
  .detail-topbar .header-summary {
    margin: 0;
  }
  .detail-topbar .mobile-language,
  .detail-topbar .mobile-theme {
    margin-left: 0;
  }
  .detail-topbar .mobile-theme {
    width: 44px;
    height: 44px;
  }
  .detail-topbar .language-toggle {
    min-height: 44px;
  }
  .mobile-language {
    display: block;
    flex: none;
    margin-left: auto;
    align-self: center;
  }
  .mobile-language .language-toggle {
    min-width: 32px;
    padding: 4px 7px;
    font-size: 12px;
  }
  .feed-tabs .icon-button {
    width: 30px;
    height: 36px;
  }
  .feed-tabs .layout-switch {
    display: none;
  }
  :root[lang=en] .nav-link span {
    font-size: 10px;
  }
}

@media (max-width:360px) {
  .feed-tabs {
    padding-inline: 8px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .feed-tabs .icon-button {
    width: 28px;
  }
  .feed-tabs .language-toggle {
    padding-inline: 5px;
  }
  .mobile-language .language-toggle {
    min-width: 30px;
  }
  .post-actions {
    gap: 8px;
  }
  .reading-time {
    font-size: 11px;
  }
}

/* Search stays available when the desktop rail is hidden. */

.compact-search {
  display: none;
}

.header-search {
  display: none;
  flex: none;
}

.header-search>summary.icon-button {
  display: flex;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}

.header-search>summary::-webkit-details-marker {
  display: none;
}

.header-search[open]>summary {
  background: var(--active);
}

.header-search-form {
  position: absolute;
  inset: 100% 0 auto;
  z-index: 2;
  min-height: 60px;
  padding: 8px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: var(--ground);
}

.header-search-form input {
  font-size: 16px;
}

.header-search-form button {
  min-height: 44px;
  padding-inline: 10px;
}

.header-search-form:focus-within {
  outline: 0;
  box-shadow: inset 0 -2px var(--accent);
}

@media (max-width:1020px) {
  .topbar {
    height: 56px;
    gap: 6px;
    padding-inline: 12px;
  }
  .topbar>div {
    min-width: 0;
  }
  .topbar h1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 18px;
  }
  .detail-topbar .detail-back {
    width: 44px;
    height: 44px;
  }
  .header-search {
    display: block;
  }
  .feed-tabs {
    position: relative;
    z-index: 2;
    min-height: 56px;
    flex-wrap: nowrap;
  }
  .feed-tabs>.header-search {
    margin-left: auto;
    align-self: center;
  }
  .feed-tabs>.mobile-language {
    margin-left: 0;
  }
  .feed-tabs>.mobile-theme {
    width: 44px;
    height: 44px;
    margin-left: 0;
    align-self: center;
  }
  .compact-search {
    display: none;
  }
}

/* Returning to the feed keeps the last-read card visible and keyboard-focusable. */

.post-card {
  scroll-margin-top: 96px;
}

.post-card.is-returned-post {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--raised);
}

.post-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.returned-post-label {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: var(--accent);
  pointer-events: none;
  transform: scaleX(var(--navigation-progress,0));
  transform-origin: left center;
  opacity: 0;
  transition: transform .12s ease-out, opacity .1s ease-out;
}

body[data-navigation-progress=loading]::before,
body[data-navigation-progress=complete]::before {
  opacity: 1;
}

body:not([data-navigation-progress])::before {
  transition: none;
}

@media (max-width:700px) {
  .post-card {
    scroll-margin-top: 80px;
  }
}

/* Markdown elements keep their own reading rhythm and scroll within the article. */

.prose {
  min-width: 0;
}

.prose li>ul,.prose li>ol {
  margin: .45em 0 .65em;
}

.prose li>p {
  margin: .5em 0;
}

.prose ul ul {
  list-style-type: circle;
}

.prose ul ul ul {
  list-style-type: square;
}

.prose dl {
  margin: 1.15em 0;
}

.prose dt {
  margin-top: 1em;
  font-weight: 650;
}

.prose dd {
  margin: .35em 0 1em 1.25em;
}

.prose dd>:first-child,.prose blockquote>:first-child {
  margin-top: 0;
}

.prose dd>:last-child,.prose blockquote>:last-child {
  margin-bottom: 0;
}

.prose blockquote {
  color: var(--text);
}

.prose blockquote cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.prose figure {
  min-width: 0;
  margin: 1.5em 0;
}

.prose picture {
  display: block;
  max-width: 100%;
}

.prose figure>img,.prose figure>picture>img {
  margin: 0 auto;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.prose caption {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.prose th[align="left" i],.prose td[align="left" i] {
  text-align: left;
}

.prose th[align="center" i],.prose td[align="center" i] {
  text-align: center;
}

.prose th[align="right" i],.prose td[align="right" i] {
  text-align: right;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

/* Syntax colors stay scoped to article code; labels never enter copied text. */

.prose pre {
  --syntax-keyword: #873d8a;
  --syntax-string: #23664e;
  --syntax-number: #935315;
  --syntax-function: #155c9c;
  --syntax-type: #74539d;
  --syntax-variable: #8c3d45;
  --syntax-property: #355878;
  --syntax-tag: #2b6b65;
  --syntax-meta: #805700;
  --syntax-comment: #62717d;
  --syntax-punctuation: #536270;
  --syntax-addition: #17683d;
  --syntax-addition-bg: #e1f0e5;
  --syntax-deletion: #a3292e;
  --syntax-deletion-bg: #fae2e2;
}

:root[data-theme=dark] .prose pre {
  --syntax-keyword: #dfa0d7;
  --syntax-string: #8bd3aa;
  --syntax-number: #e9b77c;
  --syntax-function: #83baff;
  --syntax-type: #c7aff0;
  --syntax-variable: #eda0a7;
  --syntax-property: #acc4e0;
  --syntax-tag: #82cfc4;
  --syntax-meta: #e5c27f;
  --syntax-comment: #a4adb6;
  --syntax-punctuation: #bdc5cd;
  --syntax-addition: #8ed3a7;
  --syntax-addition-bg: #173023;
  --syntax-deletion: #ffaaaa;
  --syntax-deletion-bg: #3a1d22;
}

.prose pre[data-language]:not([data-language=""])::before {
  content: attr(data-language);
  display: block;
  position: sticky;
  left: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  color: var(--muted);
  font: 500 11px/1.4 var(--font);
  letter-spacing: .04em;
  white-space: normal;
  user-select: none;
  pointer-events: none;
}

.prose pre code.hljs {
  color: var(--text);
}

.prose .hljs-comment,.prose .hljs-quote {
  color: var(--syntax-comment);
}

.prose .hljs-keyword,.prose .hljs-literal,.prose .hljs-selector-tag,.prose .hljs-selector-pseudo {
  color: var(--syntax-keyword);
}

.prose .hljs-string,.prose .hljs-template-tag,.prose .hljs-selector-attr {
  color: var(--syntax-string);
}

.prose .hljs-number,.prose .hljs-symbol,.prose .hljs-regexp,.prose .hljs-bullet {
  color: var(--syntax-number);
}

.prose .hljs-title,.prose .hljs-title.function_,.prose .hljs-function .hljs-title,.prose .hljs-built_in,.prose .hljs-selector-id {
  color: var(--syntax-function);
}

.prose .hljs-title.class_,.prose .hljs-title.class_.inherited__,.prose .hljs-class .hljs-title,.prose .hljs-type,.prose .hljs-selector-class {
  color: var(--syntax-type);
}

.prose .hljs-variable,.prose .hljs-template-variable {
  color: var(--syntax-variable);
}

.prose .hljs-tag,.prose .hljs-name {
  color: var(--syntax-tag);
}

.prose .hljs-attr,.prose .hljs-attribute,.prose .hljs-property {
  color: var(--syntax-property);
}

.prose .hljs-meta,.prose .hljs-meta .hljs-keyword,.prose .hljs-doctag {
  color: var(--syntax-meta);
}

.prose .hljs-meta .hljs-string {
  color: var(--syntax-string);
}

.prose .hljs-operator,.prose .hljs-punctuation {
  color: var(--syntax-punctuation);
}

.prose .hljs-params,.prose .hljs-subst {
  color: var(--text);
}

.prose .hljs-section {
  color: var(--syntax-function);
  font-weight: 700;
}

.prose .hljs-link {
  color: var(--syntax-function);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .hljs-emphasis {
  font-style: italic;
}

.prose .hljs-strong {
  font-weight: 700;
}

.prose .hljs-addition {
  color: var(--syntax-addition);
  background: var(--syntax-addition-bg);
}

.prose .hljs-deletion {
  color: var(--syntax-deletion);
  background: var(--syntax-deletion-bg);
}

.prose :not(pre)>code {
  overflow-wrap: anywhere;
}

.prose .source-example {
  display: block;
  max-width: 100%;
  margin: 1em 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--raised);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.prose kbd,.prose samp {
  font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size: .85em;
  overflow-wrap: anywhere;
}

.prose kbd {
  padding: 2px 5px;
  border: 1px solid var(--control);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  white-space: normal;
}

.prose kbd>kbd {
  padding: 0;
  border: 0;
  font-size: inherit;
}

.prose video {
  display: block;
  height: auto;
  min-height: 0;
  margin: 1.4em 0;
}

.prose audio {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 1.4em 0;
}

.prose details {
  min-width: 0;
  max-width: 100%;
  margin: 1.25em 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.prose details>summary {
  display: list-item;
  list-style: disclosure-closed inside;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.prose details[open]>summary {
  list-style-type: disclosure-open;
  margin-bottom: 12px;
}

.prose details>summary::marker {
  color: var(--notice-accent,var(--accent));
}

.prose details>summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.prose details>:last-child {
  margin-bottom: 0;
}

.prose .task-list {
  padding-left: 24px;
}

.prose .task-list-item {
  list-style: none;
}

.prose .task-list-item>input[type="checkbox"],.prose .task-list-item>p>input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 7px 0 -22px;
  vertical-align: -2px;
  accent-color: var(--accent);
  opacity: 1;
  cursor: default;
}

/* Notice colors distinguish meaning while the article text retains its normal contrast. */

.prose .notice {
  --notice-accent: color-mix(in srgb,var(--accent) 82%,#000);
  --notice-background: color-mix(in srgb,var(--accent) 5%,var(--surface));
  --notice-border: color-mix(in srgb,var(--accent) 24%,var(--surface));
  min-width: 0;
  max-width: 100%;
  margin: 22px 0;
  padding: 14px 18px;
  border: 1px solid var(--notice-border);
  border-left: 3px solid var(--notice-accent);
  border-radius: 9px;
  background: var(--notice-background);
  color: var(--text);
  overflow-wrap: anywhere;
}

.prose .notice-warning {
  --notice-accent: #8a5700;
  --notice-background: #fff8e8;
  --notice-border: #e7cb8c;
}

.prose .notice-danger {
  --notice-accent: #a3292e;
  --notice-background: #fff2f1;
  --notice-border: #e9bab6;
}

.prose .notice-success {
  --notice-accent: #17683d;
  --notice-background: #edf8f1;
  --notice-border: #a8d5bb;
}

:root[data-theme=dark] .prose .notice {
  --notice-accent: var(--accent);
  --notice-background: color-mix(in srgb,var(--accent) 8%,var(--surface));
  --notice-border: color-mix(in srgb,var(--accent) 32%,var(--surface));
}

:root[data-theme=dark] .prose .notice-warning {
  --notice-accent: #f0c267;
  --notice-background: #241d10;
  --notice-border: #654d20;
}

:root[data-theme=dark] .prose .notice-danger {
  --notice-accent: #ff9292;
  --notice-background: #2a1718;
  --notice-border: #714044;
}

:root[data-theme=dark] .prose .notice-success {
  --notice-accent: #8ed3a7;
  --notice-background: #14251c;
  --notice-border: #325c43;
}

.prose .notice>p {
  margin: .75em 0;
}

.prose .notice>:first-child {
  margin-top: 0;
}

.prose .notice>:last-child {
  margin-bottom: 0;
}

.prose .notice>.notice-title {
  margin: 0 0 9px;
  color: var(--notice-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.prose .notice>.notice-title a {
  color: inherit;
}

.prose .notice>p.notice-title {
  position: relative;
  padding-left: 25px;
}

.prose .notice>p.notice-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .17em;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--notice-icon) center/contain no-repeat;
  mask: var(--notice-icon) center/contain no-repeat;
}

.prose .notice-details>summary.notice-title {
  margin-bottom: 0;
  padding: 0;
}

.prose .notice-details[open]>summary.notice-title {
  margin-bottom: 12px;
}

@media (max-width:700px) {
  .prose .notice {
    margin: 18px 0;
    padding: 12px 14px;
  }
  .prose details {
    padding: 12px 14px;
  }
  .prose td,.prose th {
    padding: 8px 10px;
  }
}

.prose .notice {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%2011v6M12%207v.1%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-tip {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4M8%2014a6%206%200%201%201%208%200c-1%20.8-1%201.8-1%202H9c0-.2%200-1.2-1-2Z%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-warning {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%2018H2L12%203Z%22%2F%3E%3Cpath%20d%3D%22M12%209v5M12%2017v.1%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-danger {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v6M12%2017v.1%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-success {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-question {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M9%209a3%203%200%200%201%206%200c0%202-3%202-3%204M12%2017v.1%22%2F%3E%3C%2Fsvg%3E');
}

.prose .notice-important {
  --notice-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2021V4h12l-3%204%203%204H6%22%2F%3E%3C%2Fsvg%3E');
}

/* The desktop rail can yield its column without changing the navigation or outer gutter. */

.right-rail-slot,.right-rail-toggle {
  display: none;
}

@media (min-width:1021px) {
  .site-shell {
    transition: grid-template-columns .26s cubic-bezier(.2,.65,.25,1);
  }
  .right-rail-slot {
    display: block;
    position: sticky;
    top: 0;
    align-self: start;
    min-width: 0;
    height: 100dvh;
    overflow: clip;
    visibility: visible;
    transition: visibility 0s;
  }
  .right-rail {
    width: var(--site-rail-width);
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-right: 8px;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--control) transparent;
    scrollbar-gutter: stable;
    transform: translateX(0);
    opacity: 1;
    transition: transform .26s cubic-bezier(.2,.65,.25,1),opacity .2s ease;
  }
  .right-rail:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .right-rail-toggle {
    position: fixed;
    top: var(--rail-header-center,27.5px);
    left: min(var(--rail-divider-x),calc(100% - 28px));
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--ground);
    color: var(--muted);
    transform: translate(-50%,-50%);
    cursor: pointer;
  }
  .right-rail-toggle svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
    transition: transform .26s ease;
  }
  .right-rail-toggle:hover {
    background: var(--raised);
    border-color: var(--control);
    color: var(--text);
  }
  .right-rail-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  :root[data-right-rail=hidden] .site-shell,.site-shell[data-rail-enabled=false] {
    grid-template-columns: var(--site-nav-width) minmax(0,1fr) 0px;
  }
  :root[data-right-rail=hidden] .main-column,.site-shell[data-rail-enabled=false] .main-column {
    border-right-color: transparent;
  }
  :root[data-right-rail=hidden] .right-rail-slot {
    visibility: hidden;
    transition-delay: .26s;
  }
  :root[data-right-rail=hidden] .right-rail {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  :root[data-right-rail=hidden] .right-rail-toggle svg {
    transform: rotate(180deg);
  }
  :root[data-right-rail=hidden] .compact-search,.site-shell[data-rail-enabled=false] .compact-search,.site-shell[data-rail-search=false] .compact-search {
    display: flex;
    margin: 16px 24px 0;
  }
}

@media (min-width:1021px) and (prefers-reduced-motion:reduce) {
  .site-shell,.right-rail-slot,.right-rail,.right-rail-toggle svg {
    transition: none;
  }
  :root[data-right-rail=hidden] .right-rail-slot {
    transition-delay: 0s;
  }
}

/* Keep page motion separate from sticky navigation and sidebars. */

.page-content {
  display: flow-root;
  min-width: 0;
}

.page-content[data-page-motion=pending] {
  opacity: 0;
}

.content-hidden-notice {
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

