/**
 * Article components (TS-087 baseline; TS-092/093 refine). Tokens only: works in light and dark.
 * Markup lives in plugins/techoian-core/templates (single-article-*.php and parts/).
 */

.tch-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  color: var(--tch-txt1);
  font-family: var(--tch-font-body);
}

.tch-breadcrumb { font-size: var(--tch-fs-xs); color: var(--tch-txt3); margin-bottom: 24px; }
.tch-breadcrumb a { color: var(--tch-txt2); text-decoration: none; }
.tch-breadcrumb a:hover, .tch-breadcrumb a:focus-visible { color: var(--tch-accent); text-decoration: underline; }
.tch-breadcrumb-sep { margin: 0 6px; }

.tch-kicker {
  margin: 0 0 8px;
  font-size: var(--tch-fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tch-accent);
}
.tch-article-title {
  margin: 0 0 14px;
  font-family: var(--tch-font-display);
  font-size: var(--tch-fs-xl);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.tch-verdict { font-size: var(--tch-fs-md); line-height: 1.5; margin: 0 0 16px; color: var(--tch-txt1); }
.tch-lede { font-size: var(--tch-fs-md); color: var(--tch-txt2); line-height: 1.6; margin: 0 0 20px; }
.tch-trust-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 28px; font-size: var(--tch-fs-xs); color: var(--tch-txt3); }
.tch-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tch-surface); color: var(--tch-txt2); font-weight: 600; font-size: var(--tch-fs-xs); }
.tch-badge--easy { background: #dcfce7; color: #166534; }
.tch-badge--medium { background: #fef9c3; color: #854d0e; }
.tch-badge--hard { background: #fee2e2; color: #991b1b; }
/* these badges keep their own light background in both schemes, so the text colors above stay dark on purpose */

.tch-prose { line-height: 1.7; margin: 0 0 32px; }
.tch-prose p { margin: 0 0 1em; }

/* picks */
.tch-picks { display: grid; gap: 16px; margin: 0 0 32px; }
.tch-pick { background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-lg); padding: 20px; }
.tch-pick h3 { margin: 0 0 8px; font-size: var(--tch-fs-md); }
.tch-pick-role { margin: 0 0 4px; font-size: var(--tch-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tch-accent); }
.tch-pick-note { color: var(--tch-txt3); font-size: var(--tch-fs-sm); }
.tch-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.tch-proscons ul { margin: 0; padding-left: 1.1em; font-size: var(--tch-fs-sm); }
.tch-pros li::marker { color: #16a34a; }
.tch-cons li::marker { color: #dc2626; }
.tch-buy {
  display: inline-block; padding: 10px 18px; border-radius: var(--tch-r-md);
  background: var(--tch-accent); color: #fff; font-weight: 700; text-decoration: none;
}
.tch-buy:hover, .tch-buy:focus-visible { filter: brightness(1.1); }

/* comparison table */
.tch-table-wrap { overflow-x: auto; margin: 0 0 32px; }
.tch-table { width: 100%; border-collapse: collapse; border: 1px solid var(--tch-border); font-size: var(--tch-fs-sm); }
.tch-table th, .tch-table td { padding: 10px 12px; border-bottom: 1px solid var(--tch-border); text-align: left; vertical-align: top; }
.tch-table thead th { background: var(--tch-surface); }
.tch-table tbody th { font-weight: 600; color: var(--tch-txt2); white-space: nowrap; }

/* sections */
.tch-symptoms, .tch-steps, .tch-faq, .tch-related, .tch-changelog, .tch-reconsidered, .tch-cardlist { margin: 0 0 32px; }
.tch-article h2 { font-family: var(--tch-font-display); font-size: var(--tch-fs-lg); margin: 0 0 12px; }
.tch-steps ol { padding-left: 1.3em; }
.tch-steps li { margin: 0 0 14px; }
.tch-faq details { border-bottom: 1px solid var(--tch-border); padding: 10px 0; }
.tch-faq summary { cursor: pointer; font-weight: 600; }
.tch-cardlist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tch-cardlist li { background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-md); padding: 12px 16px; display: grid; gap: 4px; }
.tch-cardlist li span { color: var(--tch-txt3); font-size: var(--tch-fs-sm); }
.tch-usecase, .tch-disclosure { font-size: var(--tch-fs-sm); color: var(--tch-txt3); }
.tch-article a { color: var(--tch-accent); }
.tch-article a.tch-buy { color: #fff; }

.tch-pick p { margin: 0 0 .5em; }
.tch-pick .tch-buy { margin-top: .5em; }

/* visually hidden, still read by assistive tech */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* hubs (TS-090): category and family pages */
.tch-hub-head { margin: 0 0 28px; }
.tch-hub h2 { font-size: var(--tch-fs-lg); margin: 0 0 12px; }
.tch-hub-start, .tch-hub-families, .tch-hub-section { margin: 0 0 32px; }
.tch-hub-start { background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-lg); padding: 18px 22px 8px; }
.tch-hub-list { list-style: none; margin: 0; padding: 0; }
.tch-hub-list li { padding: 12px 0; border-bottom: 1px solid var(--tch-border); display: grid; gap: 2px; }
.tch-hub-list li:last-child { border-bottom: 0; }
.tch-hub-list a { text-decoration: none; }
.tch-hub-verdict { font-size: var(--tch-fs-sm); color: var(--tch-txt2); }
.tch-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tch-hub-grid li { background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-md); padding: 14px 16px; display: grid; gap: 2px; }
.tch-hub-grid a { text-decoration: none; }
.tch-hub-grid span { font-size: var(--tch-fs-xs); color: var(--tch-txt3); }
.tch-empty { padding: 18px 20px; border: 1px dashed var(--tch-border-m); border-radius: var(--tch-r-md); color: var(--tch-txt2); }
.tch-hub-trust { margin-top: 40px; padding: 18px 22px; background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-lg); font-size: var(--tch-fs-sm); }
.tch-hub-trust h2 { font-size: var(--tch-fs-base); margin: 0 0 8px; }
.tch-hub-trust ul { margin: 0; padding-left: 1.2em; line-height: 1.6; }

/* TS-093: shared components. Tokens only. */
.tch-glance { margin: 0 0 32px; padding: 16px 20px; background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-lg); }
.tch-glance h2 { margin: 0 0 10px; font-size: var(--tch-fs-md); }
.tch-glance ol { margin: 0; padding-left: 1.3em; }
.tch-glance li { padding: 4px 0; }
.tch-glance li span { display: block; font-size: var(--tch-fs-sm); color: var(--tch-txt2); }
.tch-pick { scroll-margin-top: 24px; }
.tch-specs { margin: 12px 0; }
.tch-specs th { width: 40%; }
.tch-method { margin: 40px 0 28px; padding: 18px 22px; background: var(--tch-card); border: 1px solid var(--tch-border); border-radius: var(--tch-r-lg); }
.tch-method h2 { margin: 0 0 8px; font-size: var(--tch-fs-md); }
.tch-method p { margin: 0 0 8px; color: var(--tch-txt2); line-height: 1.6; }
.tch-method .tch-method-links { margin: 0; font-size: var(--tch-fs-sm); color: var(--tch-txt3); }
.tch-article .tch-method a, .tch-article .tch-glance a { color: var(--tch-accent); }

/* test evidence block (hands-on pages only) */
.tch-evidence { margin: 0 0 32px; padding: 18px 20px; border: 1px solid var(--tch-border-m); border-radius: var(--tch-r-lg); background: var(--tch-card); }
.tch-evidence h2 { margin: 0 0 8px; font-size: var(--tch-fs-md); }
.tch-evidence-meta { margin: 0 0 14px; font-size: var(--tch-fs-sm); color: var(--tch-txt2); }
.tch-measurements { margin-bottom: 14px; }
.tch-evidence-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tch-evidence-photos img { width: 100%; height: auto; border-radius: 6px; }
.tch-evidence-credit { margin: 8px 0 0; font-size: var(--tch-fs-xs); color: var(--tch-txt3); }
