:root {
  color-scheme: light;
  --canvas: #f8f8f4;
  --paper: #fffefa;
  --ink: #23302b;
  --muted: #5a625a;
  --line: #dedfd6;
  --green: #254f40;
  --sage: #e6eee6;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --song: "Songti SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  --gutter: clamp(16px, 4vw, 60px);
  --bound: 1440px;
  --gap: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 148px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #d3e7d8; color: #1b382e; }
:focus-visible { outline: 2px solid #437258; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--green); }
.boundary { width: min(100% - 2 * var(--gutter), var(--bound)); margin-inline: auto; }

.guide-bar {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 66px; column-gap: 22px; }
.bar-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.guide-wordmark { display: inline-flex; flex: none; padding: 4px 0; }
.guide-wordmark img { width: 44px; height: 32px; }
.bar-title { margin: 0; font: 700 23px/1.22 var(--song); white-space: nowrap; }
.guide-crumbs { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.guide-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-crumb-separator {
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
}
.bar-nav { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 20px; white-space: nowrap; }
.bar-home { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; }
.bar-home:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 150ms ease, transform 150ms ease;
}
.download-link:hover { background: #173d30; transform: translateY(-1px); }
.download-link:active { transform: translateY(0); }
.guide-tools { grid-row: 1; grid-column: 2; min-width: 0; }
.guide-search { position: relative; width: clamp(245px, 31vw, 460px); margin: 0; }
.guide-select-wrap { display: none; }
.guide-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 13px;
  height: 13px;
  transform: translateY(-60%);
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.guide-search-icon::after { content: ""; position: absolute; bottom: -3px; right: -4px; width: 6px; height: 1.6px; background: var(--muted); transform: rotate(45deg); }
.guide-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 15px;
}
.guide-search input::placeholder { color: var(--muted); opacity: 1; }

.topic-bar { display: flex; align-items: center; gap: 14px; min-height: 47px; }
.topic-list { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 3px 4px 3px 0; overflow-x: auto; scrollbar-width: thin; }
.topic-button {
  min-width: max-content;
  min-height: 40px;
  padding: 0 13px;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
a.topic-button { display: inline-flex; align-items: center; }
.topic-button[aria-pressed="true"] { background: var(--sage); color: var(--green); font-weight: 700; }
.topic-button:hover { color: var(--green); }
.topic-button:focus-visible { outline-offset: -3px; }
.feed-count { flex: none; margin: 0 0 0 auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.feed { padding-block: 17px 46px; }
.guide-feed { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: var(--gap); }
.guide-feed.is-masonry { grid-auto-rows: 1px; row-gap: 0; }
.is-masonry .feed-card { grid-row-end: span var(--span, 1); }
.feed-card { min-width: 0; }
.feed-link { display: block; border-radius: 12px; }
.card-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 11px;
  background: #e8e8df;
  aspect-ratio: var(--ratio, 1);
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: var(--position, center); transition: transform 240ms ease; }
.card-visual[data-shape="portrait"] { --ratio: 4 / 5; --position: center top; }
.card-visual[data-shape="tall"] { --ratio: 7 / 9; --position: center top; }
.card-visual[data-shape="landscape"] { --ratio: 5 / 4; --position: center 34%; }
.feed-link:hover .card-visual img { transform: scale(1.025); }
.feed-link:hover h2 { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.card-copy { padding: 9px 2px 3px; }
.card-copy h2, .card-copy h3 { margin: 0; font-size: 15px; line-height: 1.42; font-weight: 650; text-wrap: pretty; }
.card-deck { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.48; }
.card-topic { display: block; margin-top: 6px; color: var(--green); font-size: 12px; line-height: 1.3; }
.feed-empty { padding: 52px 16px; text-align: center; }
.feed-empty h2 { margin: 0; font: 700 22px/1.3 var(--song); }
.feed-empty p { margin: 8px auto 16px; color: var(--muted); }
.clear-filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); background: var(--paper); }
.clear-filter:hover { background: var(--sage); }
.feed-empty-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.search-all { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.guide-footer { border-top: 1px solid var(--line); }
.guide-floor { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 60px; color: var(--muted); font-size: 12px; }
.guide-floor nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.guide-floor a:hover { text-decoration: underline; text-underline-offset: 3px; }

.reader { width: min(100% - 2 * var(--gutter), 1110px); margin: 0 auto; padding: 25px 0 54px; }
.reader-path { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.reader-path a:hover { text-decoration: underline; text-underline-offset: 3px; }
.reader-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 240px); gap: clamp(30px, 5vw, 88px); }
.reader-title { margin: 0; font: 700 clamp(30px, 3.2vw, 44px)/1.26 var(--song); letter-spacing: -.024em; text-wrap: pretty; }
.reader-deck { margin: 11px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.reader-open {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "figure answer";
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.reader-figure { grid-area: figure; margin: 0; min-width: 0; }
.reader-photo { width: 100%; object-fit: cover; border-radius: 12px; background: #e8e8df; }
.reader-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.figure-keys { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 8px; text-align: center; color: var(--green); font-size: 12px; }
.figure-keys span { padding: 3px 4px; background: var(--sage); border-radius: 4px; }
.short-answer { grid-area: answer; background: var(--sage); border-radius: 12px; padding: 20px 22px; }
.short-answer h2 { margin: 0 0 8px; color: var(--green); font-size: 15px; }
.short-answer p { margin: 0; font-size: 16px; line-height: 1.8; }

.reader-copy { margin-top: 29px; }
.reader-copy h2, .reader-extra h2, .reader-side h2 { margin: 25px 0 10px; font: 700 24px/1.35 var(--song); }
.guide-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; line-height: 1.65; }
.guide-table th, .guide-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.guide-table thead { color: var(--green); background: var(--sage); }
.guide-table tbody th { width: 21%; font-weight: 650; color: var(--green); }
.reader-steps { margin: 0; padding: 0 0 0 1.6em; font-size: 16px; line-height: 1.85; }
.reader-steps li { padding-left: .25em; margin-bottom: 10px; }
.reader-steps li::marker { color: var(--green); font-weight: 650; }
.reader-steps strong { font-weight: 690; }
.reader-check { margin: 15px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 15px; line-height: 1.8; }
.reader-check strong { color: var(--green); }
.reader-extra { margin-top: 29px; }
.reader-extra h2 { font-size: 19px; }
.reader-extra ul { margin: 0; padding-left: 1.25em; color: var(--muted); font-size: 13px; line-height: 1.7; }
.reader-extra li { padding: 4px 0; overflow-wrap: anywhere; }
.reader-extra a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.reader-feature { display: inline-flex; min-height: 42px; align-items: center; margin-top: 24px; color: var(--green); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.reader-side { padding-top: 5px; }
.reader-side h2 { margin-top: 0; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 20px; }
.side-links { display: grid; gap: 14px; }
.side-card { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.5; font-weight: 600; }
.side-card img { width: 62px; height: 66px; object-fit: cover; border-radius: 7px; background: #e8e8df; }
.side-card:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--green); font-size: 14px; }

@media (max-width: 1140px) { .guide-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .guide-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bar-nav { gap: 12px; }
  .bar-inner { column-gap: 14px; }
  .reader-grid { grid-template-columns: minmax(0, 1fr) 170px; gap: 26px; }
}
@media (min-width: 701px) {
  .guide-bar--collection .bar-inner {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, clamp(245px, 31vw, 460px)) minmax(max-content, 1fr);
  }
  .guide-bar--collection .guide-search { width: 100%; }
}
@media (max-width: 700px) {
  :root { --gap: 12px; --gutter: 15px; }
  html { scroll-padding-top: 168px; }
  .bar-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; gap: 0 10px; }
  .guide-wordmark img { width: 37px; height: 29px; }
  .bar-identity { gap: 11px; }
  .bar-title { font-size: 21px; }
  .guide-crumbs { gap: 7px; }
  .guide-crumbs a { font-size: 13px; }
  .guide-crumbs .bar-title { font-size: 18px; }
  .bar-nav { grid-column: 2; gap: 11px; }
  .bar-home { font-size: 13px; }
  .download-link { min-height: 38px; padding-inline: 11px; font-size: 13px; }
  .guide-bar--index .bar-inner { min-height: 0; }
  .guide-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    margin: 2px 0 4px;
  }
  .guide-search { width: 100%; min-width: 0; }
  .guide-search input { height: 44px; padding-inline: 35px 9px; font-size: 16px; }
  .guide-search-icon { left: 11px; }
  .guide-select-wrap { position: relative; display: block; }
  .guide-select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: calc(50% - 5px);
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: var(--green);
    transform: rotate(45deg);
    pointer-events: none;
  }
  .guide-select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0 25px 0 10px;
    appearance: none;
    border: 1px solid #bacabb;
    border-radius: 8px;
    background: var(--sage);
    color: var(--green);
    font-size: 16px;
    cursor: pointer;
  }
  .topic-bar { min-height: 28px; }
  .topic-list { display: none; }
  .feed-count { font-size: 12px; }
  .feed { padding-top: 12px; }
  .guide-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy { padding: 7px 1px 2px; }
  .card-copy h2 { font-size: 14px; }
  .card-deck { font-size: 12px; }
  .card-visual { border-radius: 9px; }
  .guide-floor { flex-wrap: wrap; justify-content: flex-start; padding-block: 13px; }
  .reader { padding-top: 16px; }
  .reader-path { margin-bottom: 15px; }
  .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 33px; }
  .reader-open { grid-template-columns: minmax(0, 1fr); grid-template-areas: "answer" "figure"; }
  .short-answer { padding: 14px 15px; }
  .reader-copy h2 { font-size: 22px; }
  .guide-table th, .guide-table td { padding: 8px 6px; font-size: 13px; }
  .side-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .guide-bar--collection .bar-home { display: none; }
}
@media (max-width: 350px) {
  .bar-nav { gap: 7px; }
  .bar-identity { gap: 8px; }
  .bar-title { font-size: 19px; }
  .bar-home { font-size: 12px; }
  .download-link { padding-inline: 8px; }
  .side-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .feed-link:hover .card-visual img, .download-link:hover { transform: none; }
}

.bar-identity > a.bar-title { display: inline-flex; align-items: center; min-height: 44px; }
.reader-photo.comparison-photo { aspect-ratio: 1; height: auto; object-fit: contain; background: #e6e0da; }
.zoom-options { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.zoom-options button { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 12px; }
.zoom-options button[aria-pressed="true"] { background: var(--sage); color: var(--green); border-color: #9eb5a4; font-weight: 650; }
.reader-credit { margin: 8px 0 0; display: flex; gap: 8px; color: var(--muted); font-size: 12px; }

.guide-overview {
  margin-bottom: 20px;
  padding: 1px 0 11px;
  border-bottom: 1px solid var(--line);
}
.guide-overview h2 { margin: 0; font: 700 21px/1.35 var(--song); }
.guide-overview p { max-width: 68em; margin: 7px 0 3px; color: var(--muted); line-height: 1.75; }
.guide-overview--index { margin-bottom: 14px; padding: 0 0 5px; }

.guide-links { display: flex; flex-wrap: wrap; column-gap: 22px; margin: 0; padding: 0; list-style: none; }
.guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--green);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.guide-links a:hover, .note-next a:hover, .guide-evidence-source a:hover { color: #17372e; }

.note-next {
  margin-top: 27px;
  padding: 17px 20px;
  border-left: 2px solid #93ac9a;
  background: var(--sage);
}
.note-next h2 { margin: 0; color: var(--green); font: 700 21px/1.4 var(--song); }
.note-next p { margin: 5px 0 0; line-height: 1.7; }
.note-next .reader-feature { margin-top: 4px; }
.guide-evidence p { max-width: 54em; margin: 7px 0 12px; font-size: 15px; line-height: 1.75; }
.guide-evidence .guide-table { margin-block: 9px 12px; }
.guide-evidence-source a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.guide-swatch {
  display: block;
  width: min(66px, 100%);
  height: 19px;
  margin-bottom: 5px;
  border: 1px solid #303b2f35;
  border-radius: 3px;
  background-color: var(--sample);
}

.product-reader { max-width: 880px; }
.product-reader .reader-title { max-width: 23em; }
.product-reader .reader-deck { max-width: 40em; margin-bottom: 12px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 17px; }
.product-actions .reader-feature { margin: 0; }
.product-reader .reader-copy p { max-width: 48em; margin: 6px 0; font-size: 16px; line-height: 1.8; }
.product-figures {
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(var(--examples), minmax(0, 1fr));
  gap: 12px;
}
.product-figures figure { min-width: 0; margin: 0; }
.product-figures img { width: 100%; height: auto; border-radius: 9px; background: #e8e8df; }
.product-figures figure:only-child { max-width: 420px; }
.product-figures figcaption { margin-top: 6px; color: var(--green); font-size: 13px; line-height: 1.45; }
.product-reader .product-example-source { margin-top: 8px; color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  .guide-overview { padding-bottom: 9px; margin-bottom: 13px; }
  .guide-overview h2, .note-next h2 { font-size: 18px; }
  .guide-overview p { font-size: 14px; }
  .guide-overview--index { padding-bottom: 4px; margin-bottom: 11px; }
  .guide-links { column-gap: 15px; }
  .guide-links a { min-height: 44px; font-size: 13px; }
  .note-next { padding: 15px 14px; }
  .product-figures { gap: 8px; }
  .product-figures img { border-radius: 6px; }
  .product-figures figcaption { font-size: 12px; }
}
