:root {
  --paper: #fffaf3;
  --paper-soft: #fffdf8;
  --ink: #24211d;
  --muted: #746b5f;
  --hairline: rgba(36, 33, 29, 0.09);
  --primary: #0f766e;
  --primary-dark: #0b4f49;
  --accent: #c95a3b;
  --gold: #d49b45;
  --shadow: 0 14px 34px rgba(56, 43, 29, 0.08);
  --radius: 8px;
  font-family:
    "LXGW WenKai", "Source Han Serif SC", "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdfa 0%, var(--paper) 36%, #fbf4eb 100%);
  font-size: 16px;
  line-height: 1.7;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 22px 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

.brand em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 8px 28px rgba(56, 43, 29, 0.06);
}

.topnav a {
  min-width: 74px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.topnav a.active {
  background: var(--ink);
  color: #fff;
}

.app {
  padding-top: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.home-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 26px;
}

.home-tools .search-panel {
  width: min(100%, 500px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
.page-title {
  margin-bottom: 12px;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.14;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.search-panel {
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 10px;
}

.field {
  width: 100%;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
}

.field:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.3;
}

.section-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.content-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: 0 8px 22px rgba(56, 43, 29, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ece2d4;
}

.content-card .cover-wrap {
  aspect-ratio: 4 / 5;
}

.cover-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.platform-badge img,
.mini-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 4px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 68px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.52;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.meta strong {
  color: var(--primary-dark);
}

.dot::before {
  content: "·";
  color: rgba(35, 33, 29, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 1fr);
  gap: 34px;
  align-items: start;
}

.article-main,
.side-panel,
.empty,
.list-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 10px 28px rgba(56, 43, 29, 0.055);
}

.article-main {
  padding: 34px 36px;
}

.article-title {
  margin-bottom: 14px;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.32;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.content-meta a,
.content-meta strong {
  color: var(--primary-dark);
}

.author-meta-link {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.geo-meta-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.content-meta .geo-meta-link + .geo-meta-link {
  margin-left: -8px;
}

.author-meta-link:hover,
.geo-meta-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-dark);
  text-decoration: none;
}

.meta-source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-cover {
  position: relative;
  display: block;
  width: 100%;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee6da;
  box-shadow: 0 12px 36px rgba(56, 43, 29, 0.13);
}

.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.native-media,
.embed-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 12px 36px rgba(56, 43, 29, 0.13);
}

.native-audio {
  width: 100%;
  margin: 18px 0 24px;
}

.rich-body {
  margin-top: 26px;
  color: #34312c;
  font-size: 17px;
  line-height: 2;
}

.rich-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px 0;
  border-radius: var(--radius);
}

.summary {
  color: #49443c;
  font-size: 16.5px;
  line-height: 1.95;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.author-page {
  max-width: 1040px;
  margin: 0 auto;
}

.city-page {
  max-width: 1040px;
  margin: 0 auto;
}

.author-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.text-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background: #fffaf1;
  color: var(--ink);
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
  line-height: 1;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.side-panel h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.stack {
  display: grid;
  gap: 12px;
}

.list-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  color: inherit;
  box-shadow: 0 8px 22px rgba(56, 43, 29, 0.045);
}

.list-card > span:not(.thumb) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.list-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.route-compact-card {
  min-height: 98px;
}

.route-compact-card .list-title {
  margin-bottom: 7px;
}

.side-panel .list-card {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.side-panel .list-title {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.38;
}

.side-panel .list-sub {
  font-size: 13.5px;
  line-height: 1.5;
}

.thumb {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eadfce;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: normal;
}

.list-sub {
  display: block;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.list-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

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

.location-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.location-address {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.location-description {
  margin-top: 2px;
}

.map-placeholder {
  position: relative;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent),
    repeating-linear-gradient(45deg, rgba(35, 33, 29, 0.05) 0 1px, transparent 1px 18px),
    #fffaf4;
  color: var(--muted);
}

.location-map,
.tianditu-location-map {
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background: #eef2ed;
}

.route-source-link {
  display: inline-flex;
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-map {
  position: relative;
  width: 100%;
  min-height: 420px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 15%, rgba(15, 118, 110, 0.12), transparent 12rem),
    #fffdf8;
}

.route-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.tianditu-route-map {
  height: 420px;
  background: #eef2ed;
}

.map-unavailable::after {
  content: "天地图暂时不可用，已保留路线示意图。";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-map {
  min-height: 260px;
  padding: 24px;
  color: var(--muted);
  font-weight: 700;
}

.route-summary {
  margin: 22px 0 0;
}

.route-stops {
  counter-reset: stop;
}

.route-stop {
  position: relative;
  padding-left: 42px;
}

.route-stop::before {
  counter-increment: stop;
  content: counter(stop);
  position: absolute;
  top: 50%;
  left: 13px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.route-stop-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 104px;
  padding: 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: inherit;
}

.route-stop-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.route-stop-card .thumb {
  width: 82px;
  height: 82px;
}

.route-stop-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.route-stop-copy .list-title,
.route-stop-copy .list-sub {
  display: block;
}

.empty {
  padding: 24px;
  color: var(--muted);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.button.danger-button {
  border-color: rgba(157, 53, 33, 0.3);
  color: #9d3521;
}

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

.editor-shell {
  display: grid;
  gap: 22px;
}

.editor-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.editor-sidebar,
.editor-main {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 12px 40px rgba(56, 43, 29, 0.08);
}

.editor-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 16px;
}

.editor-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fffaf4;
}

.editor-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.editor-switch button.active {
  background: var(--ink);
  color: #fff;
}

.editor-sidebar h2,
.editor-toolbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.new-file-form {
  display: grid;
  gap: 10px;
}

.import-form {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.collection-textarea {
  min-height: 130px;
  resize: vertical;
}

.file-list {
  display: grid;
  gap: 9px;
}

.file-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-search {
  height: 38px;
  margin-bottom: 2px;
  font-size: 13px;
}

.file-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fffaf4;
  color: inherit;
  text-align: left;
}

.file-item.active {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(15, 118, 110, 0.09);
}

.file-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.file-item span,
.file-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.editor-main {
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--hairline);
}

.editor-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.json-editor {
  display: block;
  width: 100%;
  min-height: 720px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #191713;
  color: #fff8e8;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  outline: none;
  resize: vertical;
  tab-size: 2;
}

.content-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.form-section-head,
.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.form-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field span,
.checkbox-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.form-field textarea {
  min-height: 92px;
  line-height: 1.55;
  resize: vertical;
}

.editor-field textarea {
  min-height: 360px;
  font-family: "LXGW WenKai", "Kaiti SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.markdown-preview {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.coordinate-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(15, 118, 110, 0.08);
}

.coordinate-preview div {
  display: grid;
  gap: 4px;
}

.coordinate-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coordinate-preview strong {
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.4;
}

.markdown-preview .rich-body {
  margin-top: 10px;
}

.form-section-head.compact {
  margin-bottom: 6px;
}

.rich-body h3,
.rich-body h4,
.rich-body h5 {
  margin: 34px 0 12px;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  line-height: 1.35;
}

.rich-body h3 {
  font-size: 23px;
}

.rich-body h4 {
  font-size: 20px;
}

.rich-body p {
  margin: 0 0 1.2em;
}

.rich-body ul {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.rich-body a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-body figure {
  margin: 22px 0;
}

.markdown-media {
  margin: 18px 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fffaf4;
}

.form-card.compact {
  background: rgba(255, 255, 255, 0.62);
}

.form-card-head strong {
  font-size: 15px;
  line-height: 1.35;
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.ghost-button.danger {
  color: #9d3521;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.empty.slim {
  padding: 14px;
  box-shadow: none;
}

.notice {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.notice.success {
  background: rgba(15, 118, 110, 0.11);
  color: var(--primary-dark);
}

.notice.error {
  background: rgba(216, 95, 63, 0.12);
  color: #9d3521;
}

.code-block {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #191713;
  color: #fff8e8;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-shell {
    padding: 10px 12px 42px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
  }

  .topnav {
    justify-content: space-between;
    width: 100%;
  }

  .topnav a {
    flex: 1;
    min-width: auto;
  }

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .home-tools {
    display: block;
  }

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

  .search-row .field:first-child {
    grid-column: 1 / -1;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .article-main {
    padding: 22px 18px;
  }

  .article-title {
    font-size: 26px;
    line-height: 1.35;
  }

  .rich-body {
    font-size: 16.5px;
    line-height: 1.95;
  }

  .side-panel {
    position: static;
  }

  .route-stop-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 98px;
  }

  .route-stop-card .thumb {
    width: 78px;
    height: 78px;
  }

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

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    position: static;
  }

  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .button {
    flex: 1;
  }

  .json-editor {
    min-height: 520px;
  }

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

@media (max-width: 420px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .lede {
    font-size: 15px;
  }

  .content-card .cover-wrap {
    aspect-ratio: 1 / 1.18;
  }

  .card-title {
    min-height: 60px;
    font-size: 14px;
    line-height: 1.45;
  }

  .list-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 98px;
  }

  .thumb {
    width: 78px;
    height: 78px;
  }
}
