:root {
  color-scheme: light;
  --ink: #132e4a;
  --secondary: #405c77;
  --muted: #61778b;
  --blue: #246cae;
  --deep: #155c97;
  --line: #d8e5ef;
  --wash: #eaf4fd;
  --bg: #f9fbfd;
  --white: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  line-height: 1.6;
}
a {
  color: var(--deep);
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button {
  color: var(--ink);
}
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.wrap,
.head-inner {
  width: min(1216px, calc(100% - 104px));
  margin: 0 auto;
}
.site-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.head-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #284864;
  flex: none;
}
.brand img {
  width: 113px;
  height: auto;
  display: block;
}
.brand span {
  border-left: 1px solid #cfdae4;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.site-menu-button { display: none; }
.topnav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 28px;
}
.topnav a {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--secondary);
  font-weight: 550;
  font-size: 14px;
}
.topnav a:hover,
.topnav a[aria-current] {
  color: var(--deep);
}
.topnav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: #438ed2;
  left: 1px;
  right: 1px;
  border-radius: 2px;
}
.secondary:hover {
  border-color: #80abd0;
  background: #f2f8fd;
}
.home {
  padding: 30px 0 50px;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 324px;
  border-radius: 21px;
  overflow: hidden;
  border: 1px solid #c6deee;
  background: linear-gradient(110deg, #eef7fd 0%, #e6f3fd 48%, #c8e6fa 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 44px 0 35px clamp(30px, 4vw, 61px);
}
.hero h1 {
  font-size: clamp(40px, 4vw, 64px);
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.061em;
  font-weight: 760;
  color: #133453;
}
.hero p {
  margin: 14px 0 23px;
  color: #46627a;
  font-size: 16px;
}
.search {
  display: flex;
  align-items: center;
  max-width: 550px;
  gap: 12px;
  background: #fff;
  border: 1px solid #c8ddeb;
  border-radius: 10px;
  box-shadow: 0 4px 10px #254c7108;
  padding: 5px 5px 5px 16px;
  color: #6283a0;
}
.search input {
  border: 0;
  background: none;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid #6ca6d7;
}
.search button,
.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  border-radius: 7px;
  font-weight: 600;
  padding: 8px 17px;
  white-space: nowrap;
}
.search button:hover,
.primary:hover {
  background: #195d9a;
}
.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 13px;
}
.hero-links .start-link { margin-top: 0; }
.start-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-size: 12px;
  font-weight: 550;
  color: #3e688a;
}
.hero-art {
  position: relative;
  align-self: stretch;
  width: 38%;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 64%, #f4fbff90, transparent 70%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 54% 72%, transparent 0 54px, #8dbedf44 55px, transparent 56px 96px);
  mask-image: linear-gradient(90deg, transparent, black 20%);
}
.hero-art img {
  position: absolute;
  bottom: 0;
  left: 52%;
  transform: translateX(-50%);
  height: 97%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(8px 2px 8px #44698523);
}
.glyph {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--blue);
  background: #e6f2ff;
  border-radius: 11px;
  width: 45px;
  height: 45px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--ink);
}
.section-heading,
.studio-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.collection {
  margin-top: 35px;
  scroll-margin-top: 90px;
}
.filter {
  margin: 14px 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.filter label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.filter select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  color: var(--ink);
  padding: 6px 8px;
  max-width: 250px;
}
.filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}
.filter-submit,
.secondary,
.mini-actions button,
.edit-aside .section-heading button {
  border: 1px solid var(--line);
  padding: 7px 12px;
  background: #fff;
  border-radius: 7px;
}
.filter-submit,
.reset {
  font-size: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.content-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.content-card:hover, .content-card:focus-within {
  border-color: #93b9d8;
  box-shadow: 0 4px 15px #28557a10;
}
.card-visual {
  position: relative;
  box-sizing: content-box;
  border-bottom: 1px solid #dbe8f2;
  background: #eaf2f9;
  overflow: hidden;
}
.card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-visual.illustration {
  background: linear-gradient(115deg, #e7f2fb, #deecf8);
}
.illustration img {
  object-fit: contain;
  padding: 8px 12px;
  filter: drop-shadow(0 2px 3px #1e446323);
}
.card-kind {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #fff8;
  border-radius: 6px;
  padding: 2px 8px;
  background: #f8fcfff2;
  color: #2a5477;
  font-size: 11px;
  font-weight: 650;
}
.card-link { display: block; flex: 1; color: inherit; }
.card-link:focus-visible { outline-offset: -3px; border-radius: 12px; }
.card-body { padding: 14px 17px 8px; }
.engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  color: var(--secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.content-card .engagement { padding: 0 17px 6px; }
.view-count, .like-button { display: inline-flex; align-items: center; gap: 6px; }
.like-form { margin: 0; }
.like-button {
  min-width: 44px; min-height: 44px;
  padding: 0 8px; border: 0; background: transparent;
  border-radius: 8px; color: inherit; font: inherit;
}
.like-button:hover, .like-button[aria-pressed="true"] { color: var(--deep); background: var(--wash); }
.like-button[aria-pressed="true"] svg { fill: #bdddf6; }
.engagement-detail { margin-top: 12px; }
.engagement-detail .like-button { border: 1px solid #b4d4eb; padding: 0 12px; }
.engagement-detail .like-button[aria-pressed="false"] { background: #ffffffbc; }
.reaction-error:not(:empty) { color: #8b3026; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.card-body small, .doc-info small { font-size: 11px; color: var(--muted); }
.card-body small span { color: #94aabf; margin: 0 3px; }
.card-body h3 { font-size: 18px; margin: 4px 0 0; overflow-wrap: anywhere; }
.card-body p {
  color: var(--secondary);
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-grid .empty { grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 14px; }
.card-visual,
#card-cover .edit-image { aspect-ratio: 49 / 20; }
#card-cover .edit-image {
  width: min(100%, 294px);
  max-height: none;
  object-fit: cover;
  margin: 8px 0 4px;
}
.cover-size-hint { display: block; margin-top: 5px; color: var(--muted); }
#card-cover small { color: var(--muted); }
@media (max-width: 880px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 599px) {
  .card-grid { grid-template-columns: 1fr; }
}
.pagination,
.actions,
.mini-actions,
.history,
.preview-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination {
  justify-content: center;
  margin-top: 17px;
  font-size: 13px;
}
.pagination a {
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 6px;
}
.empty {
  text-align: center;
  padding: 36px;
  color: var(--muted);
}
.empty h3 {
  margin: 10px 0 4px;
}
.empty p {
  margin: 0 0 8px;
}
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.crumb {
  margin: 23px 0 17px;
  word-spacing: 4px;
  font-size: 13px;
  color: var(--muted);
}
.read-hero {
  background: linear-gradient(105deg, #edf7fe, #dfedfa);
  border: 1px solid #cfe1ee;
  border-radius: 15px;
  padding: 27px 34px;
  margin-bottom: 24px;
}
.eyeline {
  display: flex;
  gap: 10px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 600;
}
.eyeline span + span:before {
  content: "/";
  padding-right: 10px;
  color: #93aabd;
}
.read-hero h1 {
  margin: 9px 0;
  font-size: clamp(29px, 3.6vw, 46px);
  letter-spacing: -0.045em;
}
.read-hero p {
  margin: 0;
  color: var(--secondary);
}
.read-grid {
  display: grid;
  grid-template-columns: minmax(225px, 278px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.outline-panel {
  position: sticky;
  top: 86px;
  background: #edf5fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.toc-title,
#toc-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: #e3f0fb;
  padding: 13px 17px;
  width: 100%;
  font-weight: 650;
}
.outline-panel nav {
  max-height: calc(100dvh - 151px);
  overflow: auto;
  padding: 12px 9px;
}
.outline-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.outline-panel li li {
  margin-left: 11px;
}
.outline-panel a {
  display: block;
  font-size: 13px;
  color: var(--secondary);
  padding: 5px 8px;
  border-radius: 5px;
}
.outline-panel nav > ul > li > a {
  font-weight: 700;
}
.outline-panel a:hover,
.outline-panel a[aria-current],
.tree-link[aria-current] {
  background: #d4e8fa;
  color: #155d97;
}
#toc-toggle {
  display: none;
}
.prose {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px clamp(20px, 3.2vw, 48px);
  min-width: 0;
  overflow-wrap: anywhere;
}
.block {
  scroll-margin-top: 90px;
}
.block h2 {
  font-size: 27px;
  margin: 8px 0 12px;
}
.block h3 {
  font-size: 21px;
  margin: 28px 0 8px;
}
.block h4 {
  font-size: 17px;
  margin: 21px 0 7px;
}
.block p,
.block li {
  line-height: 1.9;
}
.block p {
  margin: 9px 0;
}
.block ul,
.block ol {
  padding-left: 1.5em;
}
.prose > .block + .block {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 20px;
}
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 11px;
  min-width: 65px;
  text-align: left;
}
.prose th {
  background: var(--wash);
}
.prose figure {
  margin: 15px 0;
  width: min(100%, var(--figure-width));
}
.prose img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.prose figcaption {
  color: var(--muted);
  font-size: 13px;
}
.prose pre {
  overflow: auto;
  background: var(--wash);
  padding: 12px;
  border-radius: 6px;
}
.prose blockquote {
  padding-left: 14px;
  border-left: 3px solid #8cb9de;
  margin-left: 0;
}
video {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #12283a;
  border-radius: 9px;
  margin: 12px 0;
}
.preview-bar {
  background: #e4f3fd;
  border-bottom: 1px solid #b7d4e9;
}
.preview-bar .wrap {
  padding: 10px 0;
}
.preview-bar a {
  margin-left: auto;
}
.preview-bar form,
.doc-row form,
.history form {
  margin: 0;
}
.studio {
  padding-bottom: 46px;
}
.case-form {
  max-width: 800px;
}
.case-form h2 {
  font-size: 20px;
  margin: 0;
}
.case-form .meta > label:first-child {
  margin-top: 0;
}
.case-block {
  min-width: 0;
  margin: 18px 0 14px;
  padding: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.case-block legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--secondary);
}
.remove-case-block { margin-top: 8px; }
.studio-title {
  margin: 15px 0 20px;
}
.studio-title h1,
.login h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.studio-title p,
.login p,
dialog p,
.meta p {
  color: var(--muted);
  margin: 5px 0 0;
}
.actions {
  flex-wrap: wrap;
}
.actions .primary,
.actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-button {
  background: none;
  border: 0;
  color: var(--deep);
  padding: 4px 5px;
  font-size: 14px;
}
.docs,
.meta,
.edit-aside,
.edit-pane {
  padding: 22px;
  margin: 20px 0;
}
.docs .section-heading h2,
.edit-grid .section-heading h2 {
  font-size: 19px;
}
.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.status-tabs a {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 14px;
}
.status-tabs a:hover,
.status-tabs a[aria-current] {
  color: var(--deep);
  background: var(--wash);
}
.status-tabs a[aria-current] {
  font-weight: 650;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 14px 0 20px;
}
.admin-filters label {
  flex: 1 1 120px;
  min-width: 0;
  font-size: 13px;
  color: var(--secondary);
}
.admin-filters .title-filter {
  flex: 2 1 205px;
}
.admin-empty {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.doc-row,
.history {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.doc-row:target {
  background: var(--wash);
  box-shadow: -4px 0 var(--blue);
  scroll-margin-top: 88px;
}
.doc-info {
  flex: 1;
  overflow-wrap: anywhere;
}
.doc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-info small,
.doc-info a {
  display: block;
}
.doc-row > small,
.history {
  font-size: 13px;
  color: var(--muted);
}
.status {
  font-size: 12px;
  background: var(--wash);
  color: var(--deep);
  padding: 3px 9px;
  border-radius: 5px;
}
.history {
  justify-content: space-between;
}
.danger {
  color: #a23e45;
  background: white;
  border: 1px solid #e7bfc1;
  padding: 6px 10px;
  border-radius: 5px;
}
dialog {
  max-width: min(540px, calc(100vw - 32px));
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
dialog::backdrop {
  background: #17314e66;
}
dialog h2,
.login h1 {
  margin: 0 0 6px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 18px;
}
dialog label,
.login label,
.meta label,
.edit-pane label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 14px;
  color: var(--secondary);
}
.admin-filters input,
.admin-filters select,
dialog input,
dialog textarea,
dialog select,
.login input,
.meta input,
.meta select,
.meta textarea,
.edit-pane input,
.edit-pane select,
.edit-pane textarea {
  display: block;
  margin-top: 5px;
  width: 100%;
  border: 1px solid #c8d9e7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
.login-shell {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 35px 20px;
}
.login {
  width: min(100%, 410px);
  padding: 28px;
}
.login .glyph {
  margin-bottom: 14px;
}
.login .primary {
  width: 100%;
  margin-top: 20px;
}
.form-error,
#editor-error,
.notices p {
  padding: 10px 13px;
  border: 1px solid #c9dce9;
  border-radius: 6px;
  background: #edf6ff;
}
.form-error,
#editor-error {
  background: #fff1eb;
  color: #7f3429;
}
.notices p {
  margin: 12px 0;
}
#save-state {
  color: var(--muted);
  font-size: 13px;
}
.meta summary {
  cursor: pointer;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.author-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.author-tools strong { color: var(--secondary); font-size: 14px; margin-right: 4px; }
.author-tools .secondary { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.author-tools #open-import { color: var(--deep); }
dialog .import-error, dialog .replace-note { color: #8c4027; margin-top: 10px; font-size: 13px; }
.edit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.edit-grid > .panel {
  margin: 0;
}
.edit-aside {
  position: sticky;
  top: 84px;
  padding: 16px;
}
.edit-aside .section-heading button {
  font-size: 12px;
  padding: 4px 7px;
}
.edit-aside nav {
  margin-top: 12px;
  max-height: 65vh;
  overflow: auto;
}
.tree-link {
  border: 0;
  display: block;
  text-align: left;
  width: 100%;
  border-radius: 5px;
  background: transparent;
  padding: 6px 8px 6px calc(8px + 13px * var(--depth));
  font-size: 13px;
}
.tree-link:hover {
  background: var(--wash);
}
.edit-pane {
  min-height: 310px;
}
.mini-actions {
  font-size: 13px;
  flex-wrap: wrap;
}
.mini-actions button {
  font-size: 12px;
  padding: 2px 7px;
}
.item-card {
  border: 1px solid var(--line);
  background: #f6faff;
  border-radius: 7px;
  margin: 14px 0;
  padding: 13px;
}
.item-card .mini-actions b {
  margin-right: auto;
}
.edit-image {
  display: block;
  max-width: 100%;
  max-height: 230px;
  margin: 10px 0;
}
.block-actions {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 22px;
}
.markdown-field {
  font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace;
}
.saving {
  cursor: progress;
}
@media (max-width: 950px) {
  .wrap,
  .head-inner {
    width: calc(100% - 44px);
  }
  .head-inner {
    gap: 26px;
  }
  .topnav {
    gap: 16px;
  }
  .hero-art {
    min-width: 220px;
    width: 32%;
  }
  .read-grid,
  .edit-grid {
    gap: 13px;
    grid-template-columns: 225px minmax(0, 1fr);
  }
}
@media (max-width: 759px) {
  :root { --mobile-header: 57px; }
  .wrap,
  .head-inner {
    width: calc(100% - 28px);
  }
  .head-inner {
    height: auto;
    min-height: calc(var(--mobile-header) - 1px);
    position: relative;
    gap: 0;
    flex-wrap: wrap;
  }
  .brand {
    margin: 0;
    gap: 9px;
  }
  .brand span {
    font-size: 12px;
    padding-left: 9px;
  }
  .brand img {
    width: 92px;
  }
  .topnav {
    order: 3;
    width: 100%;
    gap: 20px;
    height: 35px;
  }
  .site-menu-button:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 10px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #294d6c;
    font-size: 14px;
    font-weight: 600;
  }
  .site-menu-button[aria-expanded="true"] { background: var(--wash); color: var(--deep); }
  .site-menu-button .menu-cross,
  .site-menu-button[aria-expanded="true"] .menu-bars { display: none; }
  .site-menu-button[aria-expanded="true"] .menu-cross { display: inline; }
  .site-menu-button:not([hidden]) + .topnav {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: min(208px, 100%);
    height: auto;
    max-height: calc(100dvh - var(--mobile-header) - 12px);
    overflow-y: auto;
    padding: 6px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 24px #203d5c21;
  }
  .site-menu-button:not([hidden])[aria-expanded="true"] + .topnav { display: grid; }
  .site-menu-button:not([hidden]) + .topnav a {
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 7px;
  }
  .site-menu-button:not([hidden]) + .topnav a:is(:hover, :focus-visible, [aria-current]) {
    background: var(--wash);
    color: var(--deep);
  }
  .site-menu-button:not([hidden]) + .topnav a[aria-current]::after { content: none; }
  .home {
    padding-top: 14px;
  }
  .hero {
    min-height: 235px;
    border-radius: 13px;
  }
  .hero-copy {
    min-width: 0;
    padding: 22px 0 20px 18px;
  }
  .hero-art {
    min-width: 0;
    width: 28%;
    align-self: stretch;
  }
  .hero-art img {
    left: auto;
    right: -6%;
    transform: none;
    width: 114%;
    height: 90%;
    object-position: right bottom;
  }
  .hero h1 {
    font-size: 36px;
    position: relative;
  }
  .hero p {
    font-size: 13px;
    max-width: 100%;
    margin: 12px 0 17px;
  }
  .search {
    max-width: none;
    gap: 8px;
    padding-left: 9px;
  }
  .search button {
    padding: 7px 13px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .collection {
    scroll-margin-top: calc(var(--mobile-header) + 12px);
  }
  .filter {
    gap: 6px;
  }
  .filter label {
    font-size: 11px;
    gap: 3px;
  }
  .filter select {
    max-width: 150px;
    font-size: 12px;
    padding: 4px;
  }
  .read-hero {
    padding: 17px;
    margin-bottom: 12px;
  }
  .read-grid,
  .edit-grid {
    display: block;
  }
  .outline-panel {
    position: sticky;
    top: var(--mobile-header);
    z-index: 5;
    margin-bottom: 9px;
  }
  .outline-panel nav {
    display: none;
    max-height: 55vh;
  }
  .outline-panel nav.open {
    display: block;
  }
  .toc-title {
    display: none;
  }
  #toc-toggle {
    display: flex;
    font-size: 13px;
    padding: 8px 12px;
  }
  #toc-toggle span {
    margin-left: auto;
  }
  .prose {
    padding: 12px;
  }
  .block {
    scroll-margin-top: calc(var(--mobile-header) + 50px);
  }
  .block h2 {
    font-size: 23px;
  }
  .prose table {
    font-size: 12px;
  }
  .studio-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-title h1 {
    font-size: 25px;
  }
  .doc-row {
    flex-wrap: wrap;
    gap: 7px;
  }
  .doc-actions {
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .preview-bar .wrap { flex-wrap: wrap; }
  .admin-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-filters .title-filter {
    grid-column: 1 / -1;
  }
  .doc-row > small {
    display: none;
  }
  .edit-aside {
    position: static;
    margin-bottom: 10px !important;
  }
  .edit-aside nav {
    max-height: 170px;
  }
  .edit-pane,
  .meta,
  .docs {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 6px;
  }
  .footer .wrap {
    flex-wrap: wrap;
  }
  .crumb {
    font-size: 12px;
  }
}

