:root {
  --paper: #fbf6ed;
  --paper-strong: #fffaf2;
  --ink: #152331;
  --muted: #66717c;
  --line: rgba(221, 156, 79, 0.34);
  --line-strong: rgba(218, 135, 38, 0.58);
  --orange: #f08a17;
  --blue: #178fd6;
  --green: #47a95c;
  --purple: #8f58d7;
  --yellow: #f1b927;
  --red: #ee5b3f;
  --shadow: 0 18px 70px rgba(99, 72, 34, 0.06);
  --font-songti: "Songti SC", STSong, SimSun, "Noto Serif CJK SC", serif;
  --page-gutter: clamp(.75rem, 3.4vw, 2rem);
  --public-shell-max: 90.625rem;
  --article-shell-max: 68.125rem;
  --article-index-max: 67.5rem;
  --preview-ribbon-size: 2.125rem;
  --sticky-offset: clamp(.75rem, 2vw, 1.5rem);
  --article-belt-size: 1.125rem;
  --article-city-inline-size: clamp(8rem, 13.2vw, 11.875rem);
  --article-city-block-size: clamp(8.5rem, 14.25vw, 12.8125rem);
  --article-decoration-gap: .4375rem;
  --article-decoration-reserve: calc(var(--article-city-block-size) + var(--article-belt-size) + var(--article-decoration-gap));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 51% -18%, rgba(255,255,255,.92) 0 25%, transparent 58%),
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 72%, #f9f1e5 100%);
  font-family: var(--font-songti);
  line-height: 1.75;
}
button, input { font: inherit; }
a { color: inherit; }
::selection { background: rgba(240, 138, 23, .2); }

.preview-ribbon {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  min-block-size: var(--preview-ribbon-size);
  display: grid;
  place-items: center;
  padding-inline: var(--page-gutter);
  color: #fff;
  background: rgba(21, 35, 49, .92);
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
}
.preview-ribbon ~ .public-shell {
  --sticky-offset: calc(var(--preview-ribbon-size) + clamp(.75rem, 2vw, 1.5rem));
}

.public-shell {
  inline-size: min(var(--public-shell-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  container: public-shell / inline-size;
}

.public-header {
  min-block-size: 5.25rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  position: relative;
  z-index: 10;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  white-space: nowrap;
}
.public-brand strong { font-size: 1.25rem; letter-spacing: .06em; }
.public-divider { width: 1px; height: 1.75rem; background: var(--line-strong); }
.public-header > p { margin: 0; flex: 0 1 auto; font-size: .9375rem; letter-spacing: .09em; color: #273645; }
.public-header nav {
  min-inline-size: 0;
  min-block-size: inherit;
  margin-inline-start: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(1.5rem, 3.2vw, 2.875rem);
}
.public-header nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 2px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}
.public-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.public-header nav a:hover::after,
.public-header nav a.active::after { transform: scaleX(1); }
.public-search {
  min-block-size: 2.625rem;
  min-inline-size: 6.25rem;
  padding-inline: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,.22);
  flex: 0 0 auto;
}
.public-search span {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.public-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.public-block-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 1px;
  transform: rotate(-1.5deg);
}
.public-block-mark .cell { display: block; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.public-block-mark .cell-1 { background: var(--blue); }
.public-block-mark .cell-2 { background: var(--green); }
.public-block-mark .cell-3 { background: var(--cyan, #45b8d8); }
.public-block-mark .cell-4 { background: var(--purple); }
.public-block-mark .cell-5 { background: var(--red); }
.public-block-mark .cell-6 { background: var(--orange); }
.public-block-mark .cell-7 { background: var(--yellow); }
.public-block-mark .cell-8 { background: #eb6da2; }
.public-block-mark .cell-9 { background: #5b77d8; }

.article-layout {
  inline-size: min(var(--article-shell-max), 100%);
  margin: clamp(1.125rem, 2.6vw, 1.75rem) auto var(--article-decoration-reserve);
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(15rem, 1fr);
  gap: clamp(2.25rem, 6.6vw, 4.5rem);
  gap: clamp(2.25rem, 6.6cqi, 4.5rem);
  align-items: start;
}
.article-main { min-width: 0; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5625rem;
  color: #68737e;
  font-size: .8125rem;
  margin-bottom: 1.5rem;
}
.article-breadcrumb a { text-decoration: none; }
.article-breadcrumb a:first-child { color: var(--orange); font-size: 1.1875rem; line-height: 1; }
.article-breadcrumb i { font-style: normal; color: #bcae9b; }
.article-primary-tag {
  display: inline-flex;
  align-items: center;
  max-inline-size: 100%;
  min-height: 1.6875rem;
  padding: .125rem .75rem;
  border: 1px solid rgba(239, 135, 22, .48);
  border-radius: 6px;
  color: #dc7911;
  background: rgba(255, 247, 234, .76);
  font-size: .8125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.article-main > h1 {
  margin: .75rem 0 .25rem;
  font-size: clamp(2.125rem, 3.2vw, 3rem);
  line-height: 1.28;
  letter-spacing: .035em;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.article-deck { margin: 0 0 .5rem; color: #4a5662; font-size: 1.0625rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5625rem .75rem;
  color: #66717d;
  font-size: .8125rem;
  min-height: 1.9375rem;
}
.article-meta > span[class^="meta-"]:not(.meta-tags) { display: inline-block; width: 15px; height: 15px; position: relative; color: var(--orange); }
.meta-calendar { border: 1.7px solid currentColor; border-radius: 2px; }
.meta-calendar::before { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 1px; background: currentColor; }
.meta-calendar::after { content: ""; position: absolute; width: 2px; height: 4px; top: -3px; left: 3px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; box-shadow: 6px 0 0 -0.5px var(--paper); }
.meta-clock { border: 1.7px solid currentColor; border-radius: 50%; }
.meta-clock::before { content: ""; position: absolute; width: 1px; height: 4px; background: currentColor; left: 6px; top: 3px; }
.meta-clock::after { content: ""; position: absolute; width: 4px; height: 1px; background: currentColor; left: 6px; top: 7px; transform: rotate(25deg); transform-origin: left; }
.meta-tag::before { content: ""; position: absolute; inset: 2px 1px 2px 0; border: 1.5px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
.meta-tag::after { content: ""; position: absolute; width: 3px; height: 3px; border: 1px solid currentColor; border-radius: 50%; left: 3px; top: 4px; }
.meta-tags { min-inline-size: 0; display: inline-flex; flex-wrap: wrap; gap: .4375rem; align-items: center; overflow-wrap: anywhere; }
.meta-tags b { color: #cbbba5; font-weight: 400; }

.article-color-strip {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 1px;
  height: 12px;
  margin: .5rem 0 1.25rem;
  overflow: hidden;
}
.article-color-strip i { display: block; width: 21px; height: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.article-color-strip .blue { background: #2299df; }
.article-color-strip .cyan { background: #62c2d7; }
.article-color-strip .orange { background: #f58a16; }
.article-color-strip .red { background: #ee5e42; }
.article-color-strip .yellow { background: #f0ba2c; }
.article-color-strip .purple { background: #925ad7; }
.article-color-strip .green { background: #4aac62; }
.article-color-strip .pink { background: #e968a0; }

.article-cover {
  margin: .625rem 0 1.875rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.32);
  box-shadow: var(--shadow);
}
.article-cover img { display: block; width: 100%; max-block-size: 30rem; object-fit: cover; }

.article-body {
  font-size: 1.0625rem;
  color: #263443;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2,
.article-body h3,
.article-body h4 {
  color: #12212f;
  line-height: 1.42;
  scroll-margin-block-start: calc(var(--sticky-offset) + 1rem);
}
.article-body h2 {
  margin: 1.55em 0 .48em;
  font-size: 1.5rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.article-body h2::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: linear-gradient(90deg, var(--blue) 0 48%, transparent 48% 53%, #5ac0de 53% 100%);
  box-shadow: 0 -8px 0 -4px rgba(23,143,214,.35), 8px 8px 0 -4px rgba(239,138,23,.9);
}
.article-body h3 { margin: 1.35em 0 .45em; font-size: 1.25rem; }
.article-body h4 { margin: 1.2em 0 .4em; font-size: 1.125rem; }
.article-body strong { color: #142331; }
.article-body a { color: #0f78bb; text-underline-offset: 3px; }
.article-body blockquote {
  position: relative;
  margin: 1.2em 0;
  padding: 1rem 1.5rem 1rem 3.625rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, .62);
  color: #34414d;
}
.article-body blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: -4px;
  color: rgba(218, 138, 41, .52);
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}
.article-body ul,
.article-body ol { padding-left: 1.5em; margin: .5em 0 1.2em; }
.article-body li { margin: .28em 0; }
.article-body li::marker { color: var(--orange); font-weight: 800; }
.article-body hr { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2.125rem 0; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 8px; box-shadow: 0 12px 40px rgba(65,47,24,.08); }
.article-body figure { margin: 1.5625rem 0; }
.article-body figcaption { text-align: center; color: var(--muted); font-size: .8125rem; }
.article-body table {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  margin: 1.25rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  background: rgba(255,255,255,.25);
  overscroll-behavior-inline: contain;
}
.article-table-scroll {
  inline-size: 100%;
  max-inline-size: 100%;
  margin: 1.25rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.article-table-scroll:focus-visible { outline: 2px solid rgba(23,143,214,.5); outline-offset: 3px; }
.article-table-scroll table { display: table; inline-size: 100%; max-inline-size: none; margin: 0; overflow: visible; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: .625rem .75rem; text-align: left; }
.article-body th { background: rgba(244, 154, 43, .08); }
.article-body pre { max-inline-size: 100%; padding: 1.125rem 1.25rem; border: 1px solid rgba(97,123,143,.25); border-radius: 8px; overflow: auto; overscroll-behavior-inline: contain; background: rgba(255,255,255,.45); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .08em .35em; border-radius: 4px; background: rgba(72,103,126,.08); }
.article-body pre code { padding: 0; background: transparent; }
.article-end { margin: 3.75rem 0 0; text-align: center; color: #68737d; }
.article-end > span { display: inline-block; width: 46px; height: 1px; vertical-align: middle; background: var(--line-strong); }
.article-end b { margin: 0 .75rem; color: #293744; letter-spacing: .15em; }
.article-end p { font-size: .875rem; }

.article-sidebar {
  min-inline-size: 0;
  position: sticky;
  inset-block-start: var(--sticky-offset);
  max-block-size: calc(100dvh - var(--sticky-offset) - var(--sticky-offset));
  display: grid;
  gap: 1.125rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 251, 244, .54);
  box-shadow: 0 16px 52px rgba(104, 72, 33, .035);
  overflow: hidden;
}
.side-card h2 {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: 0 1.25rem;
  font-size: 1.0625rem;
  letter-spacing: .03em;
}
.side-card h2 > i { width: 18px; height: 18px; color: var(--orange); position: relative; flex: 0 0 18px; }
.side-card h2 strong { margin-left: auto; font-size: 1rem; font-weight: 600; }
.toc-icon::before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; left: 0; top: 2px; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; }
.toc-icon::after { content: ""; position: absolute; width: 11px; height: 2px; border-radius: 2px; background: currentColor; right: 0; top: 3px; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; }
.progress-icon::before { content: "▣"; position: absolute; inset: -5px 0 0; font-size: 20px; }
.share-icon::before { content: "⌯"; position: absolute; inset: -7px 0 0; font-size: 26px; transform: rotate(-25deg); }
.article-toc { padding: 0 .875rem .9375rem; position: relative; }
.article-toc::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 24px; width: 2px; background: linear-gradient(var(--blue), #8bc274, var(--yellow), var(--purple), #e5d9ca); opacity: .55; }
.article-toc a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 2.5625rem;
  gap: .625rem;
  padding: .4375rem .5625rem .4375rem .8125rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .875rem;
  transition: background .18s ease, color .18s ease;
}
.article-toc a[data-level="3"] { padding-left: 1.6875rem; font-size: .8125rem; }
.article-toc a[data-level="4"] { padding-left: 2.4375rem; font-size: .75rem; }
.article-toc a i { width: 9px; height: 9px; border: 2px solid rgba(23,143,214,.72); border-radius: 50%; background: var(--paper-strong); flex: 0 0 9px; }
.article-toc a span { min-inline-size: 0; overflow-wrap: anywhere; }
.article-toc a:nth-child(3n+2) i { border-color: rgba(71,169,92,.72); }
.article-toc a:nth-child(3n+3) i { border-color: rgba(240,138,23,.75); }
.article-toc a.active { color: #0d78bf; background: rgba(33, 145, 216, .09); font-weight: 700; }
.article-toc a.active i { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,143,214,.12); }
.empty-outline { margin: 0; padding: 0 1.125rem 1.25rem; color: var(--muted); font-size: .8125rem; }
.progress-card { padding-bottom: 1.125rem; }
.progress-track { height: 9px; margin: 0 1.25rem; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, rgba(38,151,222,.12), rgba(241,183,39,.13), rgba(240,138,23,.12)); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #178fd6, #27a6e5); transition: width .12s linear; }
.share-card { padding-bottom: 1rem; }
.share-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; padding: 0 1.125rem; }
.share-buttons button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(56,50,42,.08);
  transition: transform .18s ease;
}
.share-buttons button:hover { transform: translateY(-2px) rotate(-2deg); }
.share-buttons button:nth-child(1) { background: #55ad5e; }
.share-buttons button:nth-child(2) { background: #e84b3b; }
.share-buttons button:nth-child(3) { background: #3699d8; }
.share-buttons button:nth-child(4) { background: #eda52d; }
.share-feedback { min-height: 1.25rem; margin: .5rem 1.125rem 0; text-align: center; color: #5a6874; font-size: .75rem; }

.public-decoration { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dot-grid { position: absolute; width: 56px; height: 56px; background-image: radial-gradient(circle, rgba(224,146,52,.28) 2px, transparent 2.5px); background-size: 14px 14px; }
.dot-a { left: 6.5%; top: 12%; }
.dot-b { right: 5%; top: 45%; }
.dot-c { left: 56%; bottom: 8%; }
.outline-piece { position: absolute; width: 44px; height: 44px; opacity: .34; filter: drop-shadow(0 0 5px rgba(242,156,50,.12)); }
.outline-piece::before,
.outline-piece::after { content: ""; position: absolute; width: 20px; height: 20px; border: 1px solid rgba(223,132,25,.72); }
.outline-piece::before { left: 0; bottom: 0; box-shadow: 20px 0 0 -1px var(--paper), 20px 0 0 0 rgba(223,132,25,.72); }
.outline-piece::after { right: 0; top: 0; }
.outline-a { left: 4.8%; top: 58%; }
.outline-b { right: 4.4%; top: 14%; transform: rotate(90deg); }
.outline-c { right: 7%; bottom: 17%; transform: rotate(180deg); }
.flight-piece { position: absolute; width: 34px; height: 34px; filter: drop-shadow(22px 26px 0 rgba(75,76,120,.04)) drop-shadow(43px 52px 0 rgba(75,76,120,.025)); }
.flight-piece b { position: absolute; width: 17px; height: 17px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.flight-piece b:nth-child(1) { left: 0; top: 17px; }
.flight-piece b:nth-child(2) { left: 17px; top: 17px; }
.flight-piece b:nth-child(3) { left: 17px; top: 0; }
.flight-a { left: 7.5%; top: 20%; }
.flight-a b { background: var(--purple); }
.flight-b { left: 8.6%; top: 44%; }
.flight-b b { background: var(--orange); }
.flight-c { right: 25%; top: 15%; }
.flight-c b { background: var(--green); }
.flight-d { right: 7%; top: 58%; }
.flight-d b { background: #ef761e; }

.article-city {
  position: fixed;
  z-index: 0;
  inset-block-end: var(--article-belt-size);
  inline-size: var(--article-city-inline-size);
  block-size: var(--article-city-block-size);
  display: flex;
  align-items: flex-end;
  gap: 1px;
  opacity: .42;
  pointer-events: none;
}
.article-city-left { inset-inline-start: clamp(.25rem, .55vw, .5rem); }
.article-city-right { inset-inline-end: clamp(.25rem, .55vw, .5rem); transform: scaleX(-1); }
.article-city > i { min-inline-size: 0; flex: 1 1 0; block-size: var(--h); border: 1px solid rgba(255,255,255,.48); background: linear-gradient(180deg, rgba(97,183,228,.25), rgba(30,143,210,.92)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.article-city > i:nth-child(4n+2) { background: linear-gradient(180deg, rgba(240,183,53,.18), rgba(242,142,31,.9)); }
.article-city > i:nth-child(4n+3) { background: linear-gradient(180deg, rgba(149,96,220,.16), rgba(142,84,211,.82)); }
.article-city > i:nth-child(4n) { background: linear-gradient(180deg, rgba(87,182,101,.12), rgba(70,169,92,.82)); }
.city-tree { position: absolute; bottom: 0; width: 8px; height: 30px; background: #46643c; border-radius: 3px; }
.city-tree::before { content: ""; position: absolute; width: 24px; height: 24px; left: -8px; top: -12px; border-radius: 50%; background: #1f9f4f; box-shadow: inset -5px -4px 0 rgba(0,0,0,.08); }
.city-tree.tree-one { inset-inline-start: 30.5%; }
.city-tree.tree-two { inset-inline-end: 9.5%; transform: scale(.82); }
.article-bottom-belt { position: fixed; z-index: 1; inset: auto 0 0; block-size: var(--article-belt-size); display: grid; grid-template-columns: repeat(66, minmax(0, 1fr)); opacity: .95; }
.article-bottom-belt i { border-right: 1px solid rgba(255,255,255,.33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.belt-0 { background: #ef6f25; }.belt-1 { background: #f0b72b; }.belt-2 { background: #1997dc; }.belt-3 { background: #4caf61; }.belt-4 { background: #8e5bd8; }.belt-5 { background: #e85e73; }.belt-6 { background: #48bfd0; }

.article-index {
  inline-size: min(var(--article-index-max), 100%);
  margin: clamp(2rem, 4vw, 3.125rem) auto var(--article-decoration-reserve);
}
.article-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, .65fr);
  gap: clamp(2rem, 5.5vw, 3.75rem);
  gap: clamp(2rem, 5.5cqi, 3.75rem);
  align-items: end;
  padding: clamp(1.75rem, 3.5vw, 2.375rem) 0 1.75rem;
  border-bottom: 1px solid var(--line);
}
.article-index-heading span { color: var(--orange); font-weight: 800; letter-spacing: .16em; font-size: .75rem; }
.article-index-heading h1 { margin: 7px 0 8px; font-size: clamp(2.25rem, 4.3vw, 2.875rem); line-height: 1.2; overflow-wrap: anywhere; }
.article-index-heading p { margin: 0; color: var(--muted); }
.article-search-form { display: flex; gap: .625rem; }
.article-search-form input { flex: 1; min-width: 0; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: rgba(255,255,255,.42); color: var(--ink); }
.article-search-form input:focus { border-color: rgba(23,143,214,.65); box-shadow: 0 0 0 3px rgba(23,143,214,.08); }
.article-search-form button { flex: 0 0 clamp(4.75rem, 18%, 5.25rem); min-block-size: 3rem; border: 0; border-radius: 8px; color: #fff; background: var(--orange); cursor: pointer; }
.article-count { margin: 1.5rem 0 .625rem; color: var(--muted); font-size: .8125rem; }
.article-list { display: grid; gap: 1.25rem; container: article-list / inline-size; }
.article-list-card { min-inline-size: 0; display: grid; grid-template-columns: minmax(13rem, .3fr) minmax(0, 1fr); min-height: 12.25rem; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: rgba(255,252,246,.55); box-shadow: 0 16px 46px rgba(86,63,34,.035); }
.list-cover { min-height: 100%; overflow: hidden; background: linear-gradient(135deg, rgba(23,143,214,.11), rgba(240,138,23,.12)); display: grid; place-items: center; text-decoration: none; }
.list-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-list-card:hover .list-cover img { transform: scale(1.025); }
.list-cover-empty .article-color-strip { transform: scale(1.4) rotate(-3deg); margin: 0; }
.article-list-card > div { min-inline-size: 0; padding: 1.5rem clamp(1.25rem, 2.6vw, 1.75rem) 1.125rem; }
.list-tags { margin: 0; color: var(--orange); font-size: .75rem; }
.article-list-card h2 { margin: .3125rem 0 .5rem; font-size: 1.5625rem; line-height: 1.4; overflow-wrap: anywhere; }
.article-list-card h2 a { text-decoration: none; }
.article-list-card > div > p:not(.list-tags) { margin: 0 0 .9375rem; color: #5b6874; overflow-wrap: anywhere; }
.article-list-card footer { display: flex; flex-wrap: wrap; gap: 1.125rem; align-items: center; color: #74808b; font-size: .75rem; }
.article-list-card footer a { margin-left: auto; color: #1479b7; text-decoration: none; font-weight: 700; }
.article-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.875rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
}
.article-pagination a { text-decoration: none; }
.page-direction { color: #53616d; font-size: .8125rem; font-weight: 700; }
.page-direction:last-child { justify-self: end; }
.page-direction.disabled { color: #b7b0a8; pointer-events: none; }
.page-numbers { display: flex; align-items: center; justify-content: center; gap: .375rem; }
.page-numbers a,
.page-gap { min-width: 2.25rem; min-height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #58646f; background: rgba(255,255,255,.26); font-size: .75rem; }
.page-numbers a.active { color: #fff; border-color: var(--orange); background: var(--orange); box-shadow: 0 7px 18px rgba(240,138,23,.15); }
.page-gap { border-color: transparent; background: transparent; }
.article-empty { min-height: 22.5rem; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; }
.article-empty > div > div { display: flex; justify-content: center; }
.article-empty h2 { margin: 1.125rem 0 .25rem; }
.article-empty p { margin: 0; color: var(--muted); }
.article-not-found { min-block-size: 100vh; min-block-size: 100dvh; padding: var(--page-gutter); border: 0; }
.article-empty-action { margin-block-start: 1.25rem; }

@container public-shell (max-width: 65rem) {
  .public-header { gap: 1.125rem; }
  .public-header > p { display: none; }
  .public-header nav { gap: 1.5rem; }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, .37fr);
    gap: clamp(1.75rem, 3.5vw, 2.25rem);
    gap: clamp(1.75rem, 3.5cqi, 2.25rem);
  }
}

@container public-shell (max-width: 45rem) {
  .public-header { min-block-size: 4.5rem; }
  .public-divider, .public-header nav { display: none; }
  .public-search { min-inline-size: 2.75rem; inline-size: 2.75rem; margin-inline-start: auto; padding: 0; font-size: 0; }
  .article-layout { display: block; margin-block-start: 1.125rem; }
  .article-sidebar { position: static; max-block-size: none; margin-block-start: 2.8125rem; overflow: visible; }
  .toc-card { display: none; }
  .article-main > h1 { font-size: 2.25rem; }
  .article-index-heading { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .article-list-card { grid-template-columns: minmax(0, 1fr); }
  .list-cover { min-block-size: 11.25rem; }
}

@container public-shell (max-width: 35rem) {
  .public-brand strong { font-size: 1.0625rem; }
  .public-block-mark { width: 31px; height: 31px; }
  .article-main > h1 { font-size: 1.9375rem; letter-spacing: .01em; }
  .article-deck { font-size: .9375rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.3125rem; }
  .article-meta { gap: .4375rem; }
  .article-meta .meta-tags { width: 100%; }
  .article-index-heading h1 { font-size: 2.25rem; }
  .article-search-form { flex-direction: column; }
  .article-search-form button { flex-basis: auto; inline-size: 100%; min-block-size: 2.75rem; }
  .article-list-card > div { padding: 1.25rem; }
  .article-list-card h2 { font-size: 1.375rem; }
  .article-list-card footer { flex-wrap: wrap; }
  .article-list-card footer a { margin-left: 0; width: 100%; }
  .article-pagination { grid-template-columns: 1fr 1fr; }
  .page-numbers { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; }
  .page-direction { grid-row: 2; }
}

@media (max-width: 68.75rem) {
  .article-city { opacity: .18; }
}

/* Viewport fallbacks mirror the container rules for older layout engines. */
@media (max-width: 69rem) {
  .public-header { gap: 1.125rem; }
  .public-header > p { display: none; }
  .public-header nav { gap: 1.5rem; }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, .37fr);
    gap: clamp(1.75rem, 3.5vw, 2.25rem);
  }
}

@media (max-width: 53.75rem) {
  .public-shell { inline-size: min(45rem, calc(100% - var(--page-gutter) - var(--page-gutter))); }
  .public-decoration .flight-piece { opacity: .32; }
  .public-header { min-block-size: 4.5rem; }
  .public-divider, .public-header nav { display: none; }
  .public-search { min-inline-size: 2.75rem; inline-size: 2.75rem; margin-inline-start: auto; padding: 0; font-size: 0; }
  .article-layout { display: block; margin-block-start: 1.125rem; }
  .article-sidebar { position: static; max-block-size: none; margin-block-start: 2.8125rem; overflow: visible; }
  .toc-card { display: none; }
  .article-main > h1 { font-size: 2.25rem; }
  .article-index-heading { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .article-list-card { grid-template-columns: minmax(0, 1fr); }
  .list-cover { min-block-size: 11.25rem; }
}

@media (max-width: 35rem) {
  .article-city { display: none; }
  .public-brand strong { font-size: 1.0625rem; }
  .public-block-mark { width: 31px; height: 31px; }
  .article-main > h1 { font-size: 1.9375rem; letter-spacing: .01em; }
  .article-deck { font-size: .9375rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.3125rem; }
  .article-meta { gap: .4375rem; }
  .article-meta .meta-tags { width: 100%; }
  .article-index-heading h1 { font-size: 2.25rem; }
  .article-search-form { flex-direction: column; }
  .article-search-form button { flex-basis: auto; inline-size: 100%; min-block-size: 2.75rem; }
  .article-list-card > div { padding: 1.25rem; }
  .article-list-card h2 { font-size: 1.375rem; }
  .article-list-card footer { flex-wrap: wrap; }
  .article-list-card footer a { margin-left: 0; width: 100%; }
  .article-pagination { grid-template-columns: 1fr 1fr; }
  .page-numbers { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; }
  .page-direction { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
