/* pSEO pages (/use /q /vs /guides /without-mac /fix /glossary, plus /zh-tw/… and /en/…) — generated by tools/pseo_build.py.
   Extends style.css (same tokens: --paper-soft, --line, --green …). Light theme only, like the rest of the site. */

/* ---- answer / summary box ---- */
.pseo .pseo-answer {
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--green-soft);
}
.pseo .pseo-answer__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--brass);
}
.pseo .pseo-answer p { color: var(--ink); font-size: 17px; line-height: 1.75; }
.pseo .pseo-answer p + p, .pseo .pseo-answer__label + p { margin-top: 8px; }
.pseo .pseo-answer + h2 { margin-top: 40px; }

.pseo a { color: var(--green); }
.pseo a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---- link grid (related / sibling / tasks) ---- */
.prose ul.pseo-links, .pseo ul.pseo-links {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.pseo-links li { margin: 0; min-width: 0; }
.pseo-links a, .pseo-links span {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pseo-links a { transition: border-color .2s, color .2s; }
.pseo-links a:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.pseo-links a::after { content: " →"; color: var(--green); }

/* ---- step list ---- */
.prose ol.pseo-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: pseo-step;
  gap: 14px;
  margin-top: 18px;
}
.pseo-steps > li {
  counter-increment: pseo-step;
  position: relative;
  padding: 2px 0 2px 46px;
  min-height: 32px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.pseo-steps > li::before {
  content: counter(pseo-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  display: grid;
  place-items: center;
}
.pseo-steps > li > h3 { margin-top: 0; font-size: 18px; line-height: 30px; }
.pseo-steps > li > p:first-child { margin-top: 3px; }

/* ---- comparison table ---- */
.pseo-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prose table.pseo-table { margin-top: 0; min-width: 560px; }
.pseo-table th, .pseo-table td { padding: 12px 14px; line-height: 1.6; }
.pseo-table thead th { background: var(--paper-soft); color: var(--ink-2); white-space: nowrap; }
.pseo-table tbody th { color: var(--ink); font-size: 14px; letter-spacing: 0; min-width: 96px; }
.pseo-table tbody tr:last-child th, .pseo-table tbody tr:last-child td { border-bottom: 0; }
.pseo-table thead th:last-child, .pseo-table tbody td:last-child { background: var(--green-soft); }

/* ---- FAQ <details> ---- */
.pseo-faq-list { margin-top: 18px; border-top: 1px solid var(--line); }
.pseo-faq { border-bottom: 1px solid var(--line); }
.pseo-faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.pseo-faq > summary::-webkit-details-marker { display: none; }
.pseo-faq > summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--green);
}
.pseo-faq[open] > summary::after { content: "−"; }
.pseo-faq > summary:hover { color: var(--green-deep); }
.pseo-faq > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pseo-faq__a { padding: 0 0 18px; }
.pseo-faq__a > p:first-child, .pseo-faq__a > ul:first-child { margin-top: 0; }
.pseo .pseo-more { margin-top: 8px; font-size: 14px; }

/* ---- price line ---- */
.pseo .pseo-price {
  margin-top: 44px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.8;
}
.pseo .pseo-price--plain { margin-top: 28px; border: 0; background: none; padding: 0; color: var(--muted); }
.pseo .pseo-price--plain + .pseo-price { margin-top: 14px; }

/* ---- hub pages ---- */
.pseo-hub-wrap { padding-block: 32px 72px; }
.pseo-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.pseo-hub--groups { grid-template-columns: 1fr; gap: 36px; }
.pseo-group h2 { font-size: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.pseo-group h2 a { color: var(--ink); }
.pseo-group h2 a:hover { color: var(--green-deep); text-decoration: none; }
.pseo-hub .doc-link:hover { text-decoration: none; }
.pseo-hub .doc-link h3 { color: var(--ink); line-height: 1.4; }

/* ---- hub: group navigation (anchors to the sub-headings) ---- */
.pseo-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pseo .pseo-hub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.pseo .pseo-hub-nav a:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.pseo-hub-nav a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pseo-group .pseo-links a { padding: 11px 14px; font-size: 14.5px; }

/* ---- folded long list (use page: every q page of the audience) ---- */
.pseo-fold { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.pseo-fold > summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: var(--green); }
.pseo-fold > summary:hover { color: var(--green-deep); }
.pseo-fold > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pseo-fold[open] { padding-bottom: 16px; }
.pseo-fold ul.pseo-links { margin-top: 4px; }

/* ---- bottom links to every hub ---- */
.pseo .pseo-dirs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  line-height: 1.8;
}
.pseo .pseo-dirs span { color: var(--muted); }

/* ---- language switch (only the versions that exist) ---- */
.pseo .pseo-lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}
.pseo .pseo-lang a, .pseo .pseo-lang span {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.pseo .pseo-lang a:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.pseo .pseo-lang span[aria-current] { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }

@media (max-width: 600px) {
  .pseo .pseo-lang { justify-content: flex-start; }
  .pseo-hub-nav { margin-bottom: 24px; padding-bottom: 18px; }
  .pseo .pseo-answer { padding: 16px 16px; }
  .pseo .pseo-answer p { font-size: 16px; }
  .pseo-steps > li { padding-left: 40px; }
  .pseo-steps > li::before { width: 28px; height: 28px; }
  .pseo-table th, .pseo-table td { padding: 10px 10px; font-size: 14px; }
  .pseo .pseo-price { padding: 14px 16px; }
  .pseo-hub-wrap { padding-block: 24px 56px; }
}

/* 步骤列表里的长命令不撑宽页面：列宽可收缩，代码块在自身内部横向滚动 */
.prose ol.pseo-steps{grid-template-columns:minmax(0,1fr)}
.prose ol.pseo-steps>li{min-width:0}
.prose ol.pseo-steps pre{max-width:100%;overflow-x:auto}
