/* SainTech — 科技專欄 article + index pages.
   Layout is prose-width, but data tables are the point of these articles, so
   they get to breathe wider than the text and scroll horizontally on phones. */

.st-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

/* ---- Breadcrumb ---- */
.st-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.st-crumbs a { color: var(--text-muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--text-strong); }
.st-crumbs__sep { opacity: 0.5; }

/* ---- Article header ---- */
.st-article__head { padding: 32px 0 36px; border-bottom: var(--border-width-bold) solid var(--border-subtle); }

.st-article__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.st-article h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

.st-article__summary {
  margin: 18px 0 0;
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

.st-article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.st-article__meta a { color: var(--brand); text-decoration: none; }
.st-article__meta a:hover { text-decoration: underline; }

/* ---- Prose ---- */
.st-article__body { padding-top: 8px; }

.st-article__body h2 {
  font-size: 27px;
  line-height: 1.2;
  color: var(--text-strong);
  margin: 52px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 80px;
}
.st-article__body h3 {
  font-size: var(--text-h4);
  line-height: 1.25;
  color: var(--text-strong);
  margin: 36px 0 12px;
  scroll-margin-top: 80px;
}

.st-article__body p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0 0 20px;
}

.st-article__body strong { color: var(--text-strong); font-weight: var(--fw-bold); }

.st-article__body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.st-article__body ul, .st-article__body ol {
  margin: 0 0 22px;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-body);
}
.st-article__body li { margin-bottom: 9px; }
.st-article__body li::marker { color: var(--brand); }

/* Key-takeaways list right after an h2 reads as the article's thesis —
   AI answers and skim-readers both land here first. */
.st-article__body .st-keypoints {
  list-style: none;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: var(--border-width-bold) solid var(--border-subtle);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
}
.st-article__body .st-keypoints li { padding-left: 18px; position: relative; }
.st-article__body .st-keypoints li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: var(--fw-bold);
}

.st-article__body blockquote {
  margin: 0 0 22px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.st-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: var(--border-width-bold) solid var(--border-subtle);
  display: block;
  margin: 0 0 10px;
}
.st-article__body figure { margin: 28px 0; }
.st-article__body figcaption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.st-article__body hr {
  border: none;
  border-top: var(--border-width) solid var(--border-subtle);
  margin: 44px 0;
}

/* ---- Data tables — the reason these articles exist ---- */
.st-tablewrap {
  margin: 0 0 26px;
  border: var(--border-width-bold) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.st-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.st-article__body th {
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: var(--border-width-bold) solid var(--border-subtle);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
}

.st-article__body td {
  padding: 12px 16px;
  border-bottom: var(--border-width) solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.st-article__body tbody tr:last-child td { border-bottom: none; }
.st-article__body tbody tr:hover td { background: var(--bg-raised); }

/* First column is the label (CPU name, game) — treat it as text, not data. */
.st-article__body td:first-child {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

/* ---- Article footer: source links ---- */
.st-article__foot {
  margin-top: 52px;
  padding: 26px;
  background: var(--bg-surface);
  border: var(--border-width-bold) solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.st-article__foot h2 {
  font-size: var(--text-base);
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.st-article__links { display: flex; flex-direction: column; gap: 12px; }
.st-article__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 15px;
  color: var(--brand);
  text-decoration: none;
}
.st-article__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Column index
   ============================================================ */
.st-postlist { display: flex; flex-direction: column; gap: 0; }

.st-post {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: var(--border-width) solid var(--border-subtle);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.st-post__thumb {
  flex: 0 0 200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-width-bold) solid var(--border-subtle);
  background: var(--bg-raised);
}
.st-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-post__text { flex: 1; min-width: 0; }
.st-post:last-child { border-bottom: var(--border-width) solid var(--border-subtle); }
.st-post:hover .st-post__title { color: var(--brand); }

.st-post__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.st-post__date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

.st-post__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0 0 10px;
  transition: color var(--dur-fast) var(--ease-out);
}

.st-post__summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

.st-empty {
  padding: 48px 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 760px) {
  .st-article__body table { font-size: 13px; }
  .st-article__body th, .st-article__body td { padding: 10px 13px; }
  .st-article__body h2 { font-size: 23px; margin-top: 40px; }
  .st-post { flex-direction: column; gap: 14px; }
  .st-post__thumb { flex: none; width: 100%; }
  .st-post__title { font-size: 20px; }
}
