/* Technical notes — long-form article list and article layout.
   与站点共用 base.css 的 token：1px 线、零圆角、石墨蓝仅用于标签与提示。 */

/* ---------- list ---------- */
.tnlist { margin-top: 24px; border-top: 1px solid var(--t-ink); }

.tnrow {
  display: grid;
  grid-template-columns: 1.15fr 2.2fr 0.8fr 26px;
  gap: 26px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}

a.tnrow:hover { background: #fbfcfd; }

.tnrow .s {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}

.tnrow b {
  display: block;
  margin-top: 7px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.35;
  transition: color .18s ease;
}

.tnrow p { font-size: 12.5px; line-height: 1.62; color: var(--t-mid); }

.tnrow .tnm {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--t-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tnrow .tnm em { display: block; margin-top: 5px; font-style: normal; }

.tnrow .tnar {
  color: var(--t-mute);
  transition: color .18s ease, transform .18s ease;
}

a.tnrow:hover b { color: var(--graphite); }
a.tnrow:hover .tnar { color: var(--graphite); transform: translateX(3px); }

a.tnrow:focus-visible b { color: var(--graphite); }

.tnrow.is-forth b { color: var(--t-steel); }
.tnrow.is-forth .s { color: var(--t-mute); }
.tnrow.is-forth .tnm { color: var(--t-mute); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- article head ---------- */
.tn-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tn-meta b { color: var(--graphite); font-weight: 600; }

.tn-meta .rule {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--line-2);
}

.tn-meta a {
  color: var(--graphite);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.tn-meta a:hover { color: var(--t-ink); border-bottom-color: var(--graphite); }

.tn-h1 {
  margin-top: 26px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -.022em;
  font-weight: 600;
  max-width: 820px;
}

.tn-lede {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--t-steel);
  max-width: 760px;
}

.tn-short {
  margin-top: 28px;
  max-width: 760px;
  border-top: 1px solid var(--t-ink);
  border-bottom: 1px solid var(--line);
  padding: 17px 0 5px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0 20px;
}

.tn-short > u {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
  padding-top: 4px;
}

.tn-short ol { counter-reset: s; }

.tn-short li {
  counter-increment: s;
  position: relative;
  padding: 0 0 12px 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--t-mid);
}

.tn-short li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--graphite);
  font-weight: 600;
}

/* ---------- article body ---------- */
.tn-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 312px;
  gap: 96px;
  align-items: start;
  margin-top: 40px;
}

.tn-body { min-width: 0; }

.tn-body h2 {
  margin-top: 40px;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -.014em;
  font-weight: 600;
}

.tn-body h2:first-child { margin-top: 0; }

.tn-body p { margin-top: 13px; font-size: 13px; line-height: 1.72; color: var(--t-mid); }
.tn-body p b { font-weight: 600; color: var(--t-ink); }

.tn-body ul { margin-top: 13px; }

.tn-body li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--t-mid);
}

.tn-body li::before { content: "\2014"; position: absolute; left: 0; color: #b9c1c8; }
.tn-body li b { font-weight: 600; color: var(--t-ink); }

.tn-body a {
  color: var(--t-ink);
  border-bottom: 1px solid #c6cdd4;
  transition: color .18s ease, border-color .18s ease;
}

.tn-body a:hover { color: var(--graphite); border-color: var(--graphite); }

/* ---------- article table ---------- */
.tn-tbl { margin-top: 20px; border-top: 1px solid var(--t-ink); }

.tn-tbl .tr {
  display: grid;
  gap: 14px;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--t-mid);
}

.tn-tbl .hd {
  background: var(--panel);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t-mute);
  padding: 9px 12px 9px 0;
}

.tn-tbl b { font-weight: 600; color: var(--t-ink); }
.tn-tbl .c2 { grid-template-columns: 1.05fr 2fr; }
.tn-tbl .c3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- boundary / next / links ---------- */
.tn-stop {
  margin-top: 36px;
  max-width: 760px;
  border-left: 2px solid var(--graphite);
  padding: 2px 0 2px 18px;
}

.tn-stop u,
.tn-next u,
.tn-links u {
  text-decoration: none;
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
  margin-bottom: 9px;
}

.tn-stop p { font-size: 13px; line-height: 1.7; color: var(--t-mid); }
.tn-stop p + p { margin-top: 8px; }
.tn-stop b { font-weight: 600; color: var(--t-ink); }

.tn-next {
  margin-top: 34px;
  max-width: 760px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tn-next ol { counter-reset: n; margin-top: 2px; }

.tn-next li {
  counter-increment: n;
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--t-mid);
}

.tn-next li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 11px;
  color: var(--graphite);
  font-weight: 600;
}

.tn-next li b { color: var(--t-ink); font-weight: 600; }

.tn-links {
  margin-top: 36px;
  max-width: 760px;
  border-top: 1px solid var(--t-ink);
  padding-top: 16px;
}

.tn-links > p { font-size: 12.5px; line-height: 1.7; color: var(--t-mid); margin-bottom: 12px; }

.tn-links a {
  display: grid;
  grid-template-columns: 1fr 26px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}

.tn-links a > div { min-width: 0; }

.tn-links b { font-size: 13px; font-weight: 600; color: var(--t-ink); line-height: 1.5; transition: color .18s ease; }
.tn-links span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.6; color: var(--t-mid); }

.tn-links i {
  font-style: normal;
  align-self: center;
  text-align: right;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.tn-links a:hover b { color: var(--graphite); }

/* ---------- series aside ---------- */
.tn-aside { border-top: 1px solid var(--t-ink); padding-top: 14px; }

.tn-aside u {
  text-decoration: none;
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
  margin-bottom: 4px;
}

.tn-aside .ah { font-size: 12.5px; line-height: 1.55; color: var(--t-mid); margin-bottom: 12px; }

.tn-aside a,
.tn-aside span {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--t-mid);
}

.tn-aside em {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--t-mute);
  padding-top: 1px;
}

.tn-aside b { display: block; font-weight: 400; transition: color .18s ease; }
.tn-aside a:hover b { color: var(--graphite); }
.tn-aside .cur b { color: var(--graphite); font-weight: 600; }
.tn-aside .off b { color: #b9c1c8; }

.tn-aside .amore {
  display: block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color .18s ease;
}

.tn-aside .amore:hover { color: var(--t-ink); }

/* ---------- series pager ---------- */
.tn-pager {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--t-ink);
  border-bottom: 1px solid var(--line);
  max-width: 760px;
}

.tn-pager a,
.tn-pager span {
  display: block;
  padding: 15px 18px 17px;
  border-right: 1px solid var(--line);
}

.tn-pager > :last-child { border-right: 0; }

.tn-pager u {
  display: block;
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-mute);
  margin-bottom: 6px;
}

.tn-pager b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t-ink);
  line-height: 1.45;
  transition: color .18s ease;
}

.tn-pager a:hover b { color: var(--graphite); }
.tn-pager span b { color: #b9c1c8; font-weight: 400; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tn-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
}

@media (max-width: 980px) {
  .tnrow { grid-template-columns: 1fr auto; gap: 10px 20px; }
  .tnrow .tnt { grid-column: 1 / -1; }
  .tnrow p { grid-column: 1 / -1; }
  .tnrow .tnm { text-align: left; }
  .tnrow .tnar { display: none; }

  .tn-layout { grid-template-columns: 1fr; gap: 44px; }

  .tn-short { grid-template-columns: 1fr; gap: 8px; }
  .tn-short > u { padding-top: 0; }

  .tn-pager { grid-template-columns: 1fr; }
  .tn-pager a, .tn-pager span { border-right: 0; border-bottom: 1px solid var(--line); }
  .tn-pager > :last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .tn-tbl { overflow-x: auto; }
  .tn-tbl .tr { min-width: 480px; }
  .tn-h1 { margin-top: 20px; }
  .tn-lede { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  a.tnrow:hover .tnar { transform: none; }
}
