/* ==========================================================================
   Live trackers: the hub (/research/trackers), tracker pages and a few
   admin-only touches (tka-*). Builds on the tokens in site.css / admin.css.
   ========================================================================== */

.tk-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- Status pills */

.tk-status {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.18em 0.62em;
  font-size: 0.74rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent;
  background: #F1EFF4; color: #4F4C57;
}
.tk-status b { font-weight: 700; opacity: 0.75; }
.tk-tone-signed { background: #EFE9F7; color: #4E2E7A; border-color: #DCCFEE; }
.tk-tone-progress { background: #FCF3DE; color: #7A4F00; border-color: #F1DFB4; }
.tk-tone-done { background: #E7F3EB; color: #23593A; border-color: #C9E2D2; }
.tk-tone-stalled { background: #F8ECEC; color: #7D3030; border-color: #EBCFCF; }
.tk-tone-neutral, .tk-tone-none { background: #F1EFF4; color: #4F4C57; border-color: #E4E1EA; }

.tk-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 0; padding: 0; }
.tk-dot.tk-tone-signed { background: #6E42A6; }
.tk-dot.tk-tone-progress { background: #C98A12; }
.tk-dot.tk-tone-done { background: #2F7D4F; }
.tk-dot.tk-tone-stalled { background: #A64040; }
.tk-dot.tk-tone-neutral, .tk-dot.tk-tone-none { background: #8C8796; }

/* "Live" marker */
.tk-live {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #23593A;
}
.tk-live-dot {
  position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2F9E5C;
}
.tk-live-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(47, 158, 92, 0.45);
  animation: tk-pulse 2.4s ease-out infinite;
}
.tk-live-on-ink { color: #9FE0B8; }
@keyframes tk-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* Chips (filters) */
.tk-chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.42em 0.95em;
  font: 500 0.84rem/1.3 var(--font);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tk-chip:hover { border-color: var(--accent); }
.tk-chip[aria-pressed="true"], .tk-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tk-chip-n { font-size: 0.74rem; opacity: 0.7; font-variant-numeric: tabular-nums; }

.tk-muted { color: var(--muted); }
.tk-link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ Hub */

.tk-principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.tk-principle { padding-top: var(--s-2); border-top: 2px solid var(--ink); }
.tk-principle-num { display: block; margin-bottom: 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-dark); }
.tk-principle h2 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.tk-principle p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.tk-hub-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2);
  margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line);
}
.tk-hub-title { font-size: var(--fs-h3); margin-bottom: 0.2rem; }
.tk-hub-sub { margin: 0; font-size: 0.9rem; color: var(--muted); }
.tk-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-3); }
.tk-card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s-3);
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tk-card:hover { box-shadow: 0 10px 28px rgba(42, 27, 69, 0.1); transform: translateY(-2px); }
.tk-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--s-2); }
.tk-track {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark);
}
.tk-card-title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.tk-card-title a { color: var(--ink); }
.tk-card-title a::after { content: ""; position: absolute; inset: 0; }
.tk-card-title a:focus-visible { outline: none; }
.tk-card-summary { font-size: 0.96rem; color: var(--muted); }
.tk-card-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-3);
  margin: auto 0 var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line);
}
.tk-card-meta dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tk-card-meta dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-card-cta { font-size: 0.88rem; font-weight: 500; color: var(--accent-dark); }

.tk-empty-state {
  padding: var(--s-4) var(--s-3); text-align: center;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
}
.tk-empty-state h2, .tk-empty-state h3 { font-size: 1.2rem; }
.tk-empty-state p { margin: 0 auto; max-width: 52ch; color: var(--muted); }
.tk-empty-state a { color: var(--accent-dark); text-decoration: underline; }

/* ---------------------------------------------------------- Tracker hero */

.tk-hero { padding-bottom: var(--s-4); }
.tk-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
.tk-hero .lede { margin-bottom: var(--s-3); }
.tk-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 var(--s-3); padding: 0; list-style: none; font-size: 0.82rem; color: var(--on-ink-muted); }
.tk-crumbs li + li::before { content: "/"; margin-right: 0.3rem; opacity: 0.6; }
.tk-crumbs a { color: var(--on-ink); }
.tk-crumbs a:hover { color: #fff; text-decoration: underline; }
.tk-crumbs [aria-current] { color: var(--on-ink-muted); }
.tk-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0; font-size: 0.92rem; color: var(--on-ink); }

/* ------------------------------------------------------------- Stats */

.tk-stats-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.tk-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.tk-stat { padding: var(--s-3) var(--s-3) var(--s-3) 0; }
.tk-stat + .tk-stat { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.tk-stat dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tk-stat dd { margin: 0.3rem 0 0; font-size: 1.65rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-status-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin: 0; padding: var(--s-2) 0; border-top: 1px solid var(--line);
}
.tk-status-summary-label { margin-right: 0.3rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------- Intro + aside */

.tk-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
.tk-intro { max-width: 68ch; font-size: 1.08rem; }
.tk-aside { display: grid; gap: var(--s-3); }
.tk-box { padding: var(--s-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tk-box-title { font-size: 1.05rem; margin-bottom: var(--s-2); }
.tk-box-note { margin: var(--s-2) 0 0; font-size: 0.84rem; color: var(--muted); }
.tk-box-note a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.tk-dls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.tk-dl {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tk-dl:hover { border-color: var(--accent); background: #FAF8FD; }
.tk-dl svg { flex: none; color: var(--accent); }
.tk-dl span { display: flex; flex-direction: column; line-height: 1.2; }
.tk-dl strong { font-size: 0.92rem; }
.tk-dl small { font-size: 0.74rem; color: var(--muted); }

.tk-track-link {
  display: block; padding: var(--s-2) var(--s-3);
  background: var(--ink); color: #fff; border-radius: var(--radius);
  transition: background 0.15s ease;
}
.tk-track-link:hover { background: var(--ink-2); }
.tk-track-link-label { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); }
.tk-track-link strong { display: block; margin: 0.15rem 0 0.3rem; font-size: 1.1rem; }
.tk-track-link-more { font-size: 0.85rem; color: var(--on-ink); }

/* ----------------------------------------------------------- Data area */

.tk-data-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.tk-data-head h2 { margin: 0; }
.tk-data-head .dateline { margin-bottom: 0.5rem; }

.tk-views { display: inline-flex; padding: 3px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; }
.tk-view-btn {
  padding: 0.45em 1.2em; border: 0; border-radius: 999px; background: transparent;
  font: 500 0.88rem/1.3 var(--font); color: var(--muted); cursor: pointer;
}
.tk-view-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(42, 27, 69, 0.15); }

.tk-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem var(--s-2); align-items: center;
  margin-bottom: var(--s-3);
}
.tk-controls[hidden] { display: none; }
.tk-search input {
  width: 100%; padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235D5B54' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.85rem center;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tk-search input:focus, .tk-sort-wrap select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.tk-sort-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.tk-sort-wrap select {
  padding: 0.62rem 0.8rem; font: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.tk-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tk-count { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--muted); }
.tk-count:empty { display: none; }

.tk-panel + .tk-panel { margin-top: var(--s-4); }
.tk-panel-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tk-js .tk-panel + .tk-panel { margin-top: 0; }
.tk-js .tk-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tk-panel[hidden] { display: none; }

/* Table */
.tk-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tk-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tk-table th, .tk-table td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tk-table thead th {
  position: sticky; top: 0;
  background: #F8F7FA; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.tk-table tbody tr:last-child td { border-bottom: 0; }
.tk-table tbody tr:hover { background: #FCFBFE; }
.tk-sort-btn {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.tk-sort-btn:hover { color: var(--ink); }
.tk-sort-btn::after { content: "\2195"; font-size: 0.85rem; opacity: 0.35; letter-spacing: 0; }
th[aria-sort="ascending"] .tk-sort-btn, th[aria-sort="descending"] .tk-sort-btn { color: var(--ink); }
th[aria-sort="ascending"] .tk-sort-btn::after { content: "\2191"; opacity: 1; color: var(--accent); }
th[aria-sort="descending"] .tk-sort-btn::after { content: "\2193"; opacity: 1; color: var(--accent); }

.tk-c-title { min-width: 300px; }
.tk-entry-title { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.tk-entry-summary { margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }
.tk-entry-summary p { margin: 0 0 0.5em; }
.tk-entry-summary p:last-child { margin-bottom: 0; }
.tk-entry-summary a { color: var(--accent-dark); text-decoration: underline; }
.tk-c-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.tk-c-number, .tk-c-money { font-variant-numeric: tabular-nums; }
.tk-c-number { white-space: nowrap; }
.tk-c-money { min-width: 140px; }
.tk-c-link { min-width: 180px; max-width: 260px; font-size: 0.85rem; }
.tk-source { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; overflow-wrap: anywhere; }
.tk-source:hover { text-decoration-color: currentColor; }
.tk-ext { margin-left: 0.2em; text-decoration: none; display: inline-block; }
.tk-na { color: #A8A4AF; }

.tk-no-match { margin: var(--s-3) 0 0; padding: var(--s-3); text-align: center; color: var(--muted); background: var(--mist); border-radius: var(--radius); }
.tk-no-match[hidden] { display: none; }

/* Timeline */
.tk-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.tk-timeline::before {
  content: ""; position: absolute; top: 0.6rem; bottom: 0.6rem; left: 128px;
  width: 2px; background: var(--line);
}
.tk-tl-year { position: relative; padding: 0 0 var(--s-2) 152px; }
.tk-tl-year span {
  display: inline-block; padding: 0.15rem 0.7rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: var(--ink); border-radius: 999px;
}
.tk-tl-year:not(:first-child) { padding-top: var(--s-2); }
.tk-tl-item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 40px; padding-bottom: var(--s-3); }
.tk-tl-item::before {
  content: ""; position: absolute; left: 122px; top: 0.55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
}
.tk-tl-date { padding-top: 0.25rem; text-align: right; font-size: 0.86rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-tl-card { padding: var(--s-2) var(--s-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tk-tl-card h3 { margin: 0.55rem 0 0.2rem; font-size: 1.1rem; line-height: 1.35; }
.tk-tl-card > .tk-status:first-child + h3 { margin-top: 0.55rem; }
.tk-tl-card > h3:first-child { margin-top: 0; }
.tk-tl-card .tk-entry-summary { font-size: 0.95rem; }
.tk-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 0.8rem 0 0; }
.tk-facts dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tk-facts dd { margin: 0; font-size: 0.9rem; color: var(--ink); }
.tk-tl-source { margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.tk-tl-source > span:first-child { margin-right: 0.4rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------- Method, changelog, cite */

.tk-notes-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-5); }
.tk-notes h2 { font-size: 1.5rem; }
.tk-notes .prose { max-width: 66ch; }
.tk-changelog { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.tk-changelog li { position: relative; padding: 0 0 var(--s-3) var(--s-3); }
.tk-changelog li::before {
  content: ""; position: absolute; left: -6px; top: 0.45rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.tk-changelog li:last-child { padding-bottom: 0; }
.tk-changelog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.tk-ver { font-weight: 700; color: var(--ink); }
.tk-changelog time { font-size: 0.85rem; color: var(--muted); }
.tk-changelog p { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--text); }

.tk-cite-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.tk-cite-text {
  margin: 0; padding: var(--s-2);
  font-size: 0.95rem; line-height: 1.6; color: var(--text);
  background: var(--mist); border-left: 3px solid var(--accent);
  overflow-wrap: anywhere; user-select: all;
}
.tk-cite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.tk-cite-actions:has(.tk-copy[hidden]) .tk-copy-status:empty { display: none; }
.tk-copy-status { font-size: 0.85rem; color: #23593A; }
.tk-share-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.tk-share-list a, .tk-share-list .tk-link-btn {
  display: inline-block; padding: 0.42em 0.95em;
  font-size: 0.85rem; font-weight: 500; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.tk-share-list a:hover, .tk-share-list .tk-link-btn:hover { border-color: var(--accent); }
.tk-share-list .tk-link-btn[hidden] { display: none; }

/* ------------------------------------------------------------ Phones */

@media (max-width: 960px) {
  .tk-intro-grid, .tk-notes-grid, .tk-cite-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .tk-principles { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 760px) {
  .tk-stats { grid-template-columns: 1fr 1fr; }
  .tk-stat, .tk-stat + .tk-stat { padding: var(--s-2) 0; border-left: 0; }
  .tk-stat:nth-child(even) { padding-left: var(--s-2); border-left: 1px solid var(--line); }
  .tk-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tk-stat dd { font-size: 1.35rem; }

  .tk-controls { grid-template-columns: 1fr; }
  .tk-sort-wrap select { flex: 1; }
  .tk-data-head { align-items: stretch; flex-direction: column; }
  .tk-views { align-self: flex-start; }

  /* Table rows become stacked cards. */
  .tk-table-wrap { overflow: visible; background: transparent; border: 0; }
  .tk-table, .tk-table tbody, .tk-table tr, .tk-table td { display: block; width: 100%; }
  .tk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tk-table tr {
    display: flex; flex-direction: column;
    margin-bottom: var(--s-2); padding: var(--s-2);
    background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius);
  }
  .tk-table tbody tr:hover { background: var(--paper); }
  .tk-table td { min-width: 0; max-width: none; padding: 0.4rem 0; border: 0; }
  .tk-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.1rem;
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .tk-table td.tk-c-title { order: -1; padding-top: 0.2rem; }
  .tk-table td.tk-c-title::before, .tk-table td.tk-c-date::before { display: none; }
  .tk-table td.tk-c-date { order: -2; padding: 0 0 0.2rem; font-size: 0.82rem; color: var(--muted); }
  .tk-table .tk-entry-title { font-size: 1.05rem; }
  .tk-table td.tk-cell-empty { display: none; }
  .tk-sep { display: none; }
  .tk-table td.tk-c-link { padding-top: 0.6rem; margin-top: 0.3rem; border-top: 1px solid var(--line); }

  .tk-timeline::before { left: 6px; }
  .tk-tl-year { padding-left: 28px; }
  .tk-tl-item { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 28px; }
  .tk-tl-item::before { left: 0; top: 0.3rem; }
  .tk-tl-date { padding-top: 0; text-align: left; }
  .tk-tl-card { padding: var(--s-2); }

  .tk-dls { grid-template-columns: 1fr 1fr; }
  .tk-card-meta { gap: var(--s-2); }
}

@media (max-width: 400px) {
  .tk-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-live-dot::after { animation: none; display: none; }
  .tk-card:hover { transform: none; }
}

@media print {
  .tk-controls, .tk-views, .tk-share, .tk-cite-actions, .tk-dls { display: none !important; }
  .tk-panel[hidden] { display: block !important; }
}

/* --------------------------------------------------------------- Admin */

/* admin.css's `.card h2` outranks .form-section-title; keep section labels small. */
.card h2.form-section-title { font-size: 0.72rem; margin: 0 0 12px; }

.tka-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; line-height: 1.7; }
.tka-errors { margin: 6px 0 0; padding-left: 20px; }
.tka-errors li { margin: 2px 0; }
.tka-warn { color: var(--danger); font-weight: 600; }
.badge.tka-badge-warn { background: var(--danger-soft, #F8ECEC); color: var(--danger); border-color: #EBCFCF; }
.tka-status { font-size: 0.72rem; }
.tka-source { font-size: 0.86rem; white-space: nowrap; color: var(--accent-dark); }
.tka-sort { color: inherit; text-decoration: none; }
.tka-sort:hover { color: var(--ink); text-decoration: underline; }
.tka-note { margin: -6px 0 18px; font-size: 0.86rem; color: var(--muted); }
.tka-note a { color: var(--accent-dark); }
.tka-subhead { margin: 20px 0 8px; font-size: 0.9rem; }
.tka-changelog { margin: 0; padding: 0; list-style: none; }
.tka-changelog li { padding: 8px 0; border-top: 1px solid var(--line); }
.tka-changelog-note { display: block; margin-top: 2px; font-size: 0.9rem; }
.subtitle .badge { margin-right: 4px; }
