.reads [hidden] { display: none; }
.reads-heading { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.8rem; }
.reads-heading h1 { flex-shrink: 0; margin: 0; font-size: 1.75rem; }
.reads-heading p { min-width: 0; margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The search box stands left of the views; on phones the views stay beside the title and the search box takes the row below. */
.reads-tools { display: flex; flex-shrink: 0; align-items: baseline; gap: 1.35rem; margin-left: auto; }
.reads-search input { width: 15rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-solid); color: inherit; font: inherit; font-size: 1rem; }
.reads-search input:focus { border-color: var(--primary); outline: none; }
.reads-views { display: flex; flex-shrink: 0; gap: 1.35rem; font-size: .85rem; white-space: nowrap; }
.reads-views a { color: var(--muted); text-decoration: none; padding-bottom: .4rem; }
.reads-views a[aria-current] { color: var(--text); border-bottom: 1px solid currentColor; }
.reads-list .item { display: flex; gap: .9rem; padding: 1.4rem 0; }
.reads-list .item:first-child { padding-top: 0; }
.read-card { min-width: 0; flex: 1; }
.read-card .item-meta { display: block; }
.read-date { white-space: nowrap; }
.read-rank { width: 1.3rem; flex-shrink: 0; padding-top: .15rem; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.read-heading { margin-bottom: 2.5rem; }
.read-title { display: flex; align-items: baseline; gap: 1rem; margin: .8rem 0 1rem; }
.read-title h1 { flex: 1; min-width: 0; margin: 0; font-size: clamp(1.55rem, 3.2vw, 1.95rem); line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; }
/* A headline breaks after its punctuation whenever the next phrase fits (site::headline). */
.read-title h1 .phrase { display: inline-block; }
.read-title .read-views { flex-shrink: 0; }
.read-deck { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.read-heading .item-meta a { text-decoration: none; }
.read-body { font-size: 1.05rem; line-height: 1.95; overflow-wrap: anywhere; }
.read-body p, .read-body ul, .read-body ol, .read-body pre, .read-body blockquote, .read-body table { margin: 0 0 1.5rem; }
.read-body h1, .read-body h2, .read-body h3 { margin: 2.3rem 0 .9rem; font-size: 1.2rem; line-height: 1.6; text-wrap: balance; }
.read-body li + li { margin-top: .5rem; }
.read-body a { text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.read-body a:hover, .read-source a:hover { color: var(--primary-strong); }
.read-body pre { padding: 1rem; background: var(--surface-soft); border-radius: .4rem; overflow-x: auto; font-size: .85rem; line-height: 1.7; }
.read-body code { font-size: .88em; }
/* Formulas, which the browser lays out from MathML; a long one scrolls on its own line. */
.read-body math { font-family: "STIX Two Math", "Cambria Math", math; }
.read-body math[display="block"] { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.read-body img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; }
.read-full { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.read-full > h2 { margin: 0 0 1.5rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
.read-body blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 2px solid var(--line-strong); color: var(--muted); }
.read-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.read-body th, .read-body td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
/* A header keeps its words whole: breaking anywhere would let a narrow column split 符号. */
.read-body th { overflow-wrap: break-word; word-break: keep-all; }
.read-source { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.8; overflow-wrap: anywhere; }
.read-source a { text-underline-offset: .2em; }
.read-source p { margin: .6rem 0 0; }
.read-related { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.read-related > h2 { color: var(--muted); font-size: .85rem; font-weight: 500; margin-bottom: .5rem; }
/* 分享 reads like Reads: articles readers write, with an optional cover cut like X's. */
.article-write { flex-shrink: 0; font-size: .85rem; color: var(--primary-strong); text-decoration: none; padding-bottom: .4rem; }
/* Its list tiles picture cards across the window like 解说's (catalog.css), each with three lines of its opening. */
.public.article-cards .shell { max-width: none; padding: .75rem clamp(1.25rem, 3vw, 3rem) 3rem; }
.article-cards .reads-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr)); gap: 1.5rem; align-items: start; }
.article-cards .reads-list .item { display: block; padding: 0 0 .85rem; }
.article-cards .item-title { font-size: 1.05rem; line-height: 1.5; font-weight: 650; }
.article-cards .item-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-cards .read-rank { width: auto; padding: 0; }
/* 调研's question box sits in the middle of its heading; what it answers shows in a card under it. */
.research-ask { position: relative; display: flex; flex: 0 1 31rem; min-width: 16rem; margin-inline: auto; align-self: center; }
.research-ask input[name=question] { flex: 1; min-width: 0; height: 2.6rem; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: 999px 0 0 999px; background: var(--surface-solid); color: inherit; font: inherit; font-size: 1rem; }
.research-ask input[name=question]:focus { border-color: var(--primary); outline: none; }
.research-public { display: flex; align-items: center; gap: .3rem; padding: 0 .85rem 0 .2rem; border-block: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--muted); font-size: .8rem; white-space: nowrap; }
.research-public input { margin: 0; accent-color: var(--primary); }
.research-ask button { height: 2.6rem; padding: 0 1.35rem; border: 0; border-radius: 0 999px 999px 0; background: var(--primary); color: var(--on-primary); font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.research-ask button:hover:not(:disabled) { background: var(--primary-strong); }
.research-ask button:disabled { opacity: .6; cursor: progress; }
.research-told { position: absolute; z-index: 5; top: calc(100% + .6rem); left: 0; right: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-solid); box-shadow: 0 10px 30px rgb(0 0 0 / .1); font-size: .85rem; line-height: 1.7; }
.research-told a { color: var(--primary-strong); }
.research-question { display: flex; gap: .6rem; align-items: baseline; margin: 1rem 0 0; padding: .7rem 1rem; border-radius: var(--radius-m); background: var(--surface-soft); color: var(--muted); font-size: .92rem; line-height: 1.75; overflow-wrap: anywhere; }
.research-question b { flex-shrink: 0; color: var(--primary-strong); font-weight: 600; }
/* 时代's cards show people: the crop keeps their faces. */
.people .image-news-media img { object-position: 50% 20%; }
.article .read-title { margin: 0 0 .7rem; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; margin-bottom: 1.8rem; border-radius: var(--radius-l); background: var(--surface-soft); }
/* A line in italics right after a picture is its caption: XABC credits each picture so. */
.article .read-body img + em { display: block; margin: -.9rem 0 0; color: var(--muted); font-size: .8rem; font-style: normal; line-height: 1.7; text-align: center; }
/* An administrator's bar: the status, then the actions, which move under it on a narrow screen. */
.article-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.5rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--muted); font-size: .85rem; }
.article-status { white-space: nowrap; }
.article-actions { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--text); }
.article-actions a { color: inherit; text-decoration: none; }
/* Codex & Claude: the handbook's contents by group in two columns on a wide screen, then the latest news and the official documentation. */
.handbook .reads-heading { flex-wrap: wrap; row-gap: .55rem; }
.handbook .reads-heading p { order: 1; flex: 1 0 100%; white-space: normal; line-height: 1.7; }
.handbook-group { break-inside: avoid; margin-bottom: 2.2rem; }
.handbook-group h2, .handbook-news h2, .handbook-docs h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 .35rem; color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.handbook-group ol, .handbook-news ol { margin: 0; padding: 0; list-style: none; }
.handbook-group li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: baseline; padding: .75rem 0; border-top: 1px solid var(--line); }
.handbook-group li a { font-weight: 650; text-decoration: none; }
.handbook-group li p { grid-column: 1 / -1; margin: .2rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.handbook-group time, .handbook-news time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.handbook-news, .handbook-docs { margin-top: 1rem; }
.handbook-news h2 a { color: var(--primary-strong); font-size: .8rem; letter-spacing: 0; text-decoration: none; }
.handbook-news li { display: flex; align-items: baseline; gap: .85rem; padding: .6rem 0; border-top: 1px solid var(--line); line-height: 1.6; }
.handbook-news li a { flex: 1; min-width: 0; text-decoration: none; }
.handbook-news li span { flex-shrink: 0; color: var(--muted); font-size: .75rem; }
.handbook-docs { margin-top: 2.6rem; }
.handbook-docs dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem 1.6rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.6; }
.handbook-docs dt { font-weight: 600; }
.handbook-docs dd { margin: 0; color: var(--muted); }
.handbook-docs a { color: var(--text); text-decoration: none; }
:is(.handbook-group, .handbook-news, .handbook-docs) a:hover { color: var(--primary-strong); }
@media (min-width: 960px) {
  .public.handbook-hub .shell { max-width: 62rem; }
  .public.handbook-hub .back-to-top { right: max(calc(1rem + env(safe-area-inset-right, 0px)), calc((100% - 62rem) / 2 - 3.75rem)); }
  .handbook-groups { columns: 2; column-gap: 3.5rem; }
}
/* A chapter reads like an article under its group, the chapters before and after it at its end; on a wide screen the contents stand beside it, in view while it scrolls. */
.handbook-crumb { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; }
.handbook-crumb a { color: inherit; text-decoration: none; }
.handbook-crumb a:hover, .handbook-steps a:hover { color: var(--primary-strong); }
/* 「复制页面」 stands right of the chapter's title, level with its first line. */
.handbook-copy { flex-shrink: 0; align-self: flex-start; margin-top: .55rem; color: var(--muted); font-weight: 500; }
.handbook-copy:hover:not(:disabled) { color: var(--text); }
.handbook-steps { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.handbook-steps a { max-width: 48%; text-decoration: none; }
.handbook-steps [rel=next] { margin-left: auto; text-align: right; }
.handbook-side { display: none; }
@media (min-width: 1200px) {
  .public.handbook .shell { max-width: 67rem; }
  .public.handbook .back-to-top { right: max(calc(1rem + env(safe-area-inset-right, 0px)), calc((100% - 67rem) / 2 - 3.75rem)); }
  .handbook-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 3.5rem; align-items: start; }
  .handbook-side { display: block; position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); overflow-y: auto; padding: 0 .4rem 1rem 0; font-size: .88rem; line-height: 1.55; }
}
.handbook-side h2 { margin: 1.3rem 0 .3rem .6rem; color: var(--muted); font-size: .76rem; font-weight: 500; }
.handbook-side ul { margin: 0; padding: 0; list-style: none; }
.handbook-side a { display: block; padding: .3rem .6rem; border-radius: var(--radius-m); color: var(--muted); text-decoration: none; }
.handbook-side a:hover { color: var(--text); }
.handbook-side .handbook-home { color: var(--text); font-weight: 650; }
.handbook-side a[aria-current] { background: var(--surface-soft); color: var(--primary-strong); }
@media (max-width: 768px) {
  .reads-list, .read-heading, .read-source, .read-actions, .read-related, .handbook-groups, .handbook-news, .handbook-docs,
  .read-body :is(p, h1, h2, h3, h4, h5, h6) { touch-action: pan-y pinch-zoom; }
  .reads-heading { flex-wrap: wrap; gap: .6rem .8rem; }
  .reads-heading p { flex: 1 1 0; }
  .reads-tools { display: contents; }
  .reads-search, .research-ask { order: 1; flex: 1 0 100%; }
  .research-ask { min-width: 0; margin: 0; }
  .reads-search input { width: 100%; }
  .reads-heading h1 { font-size: 1.25rem; }
  .reads-heading p, .reads-views { font-size: .75rem; }
  .reads-views { gap: .8rem; }
  .read-heading { margin-bottom: 1.8rem; }
  .read-body { font-size: 1rem; }
}
