/* Article (blog/guide) styling. Loaded only on article pages, after style.css.
   Uses the site's design tokens so light and dark themes both work. */

/* ---------- Tables ---------- */
.article .table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 36, 46, 0.06);
}
.article table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.article th,
.article td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1.1rem;
}
.article thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-blueprint);
  border-bottom: 3px solid var(--accent);
  white-space: nowrap;
}
.article tbody td {
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.article tbody tr:first-child td { border-top: 0; }
.article tbody tr:nth-child(even) td { background: var(--result-bg); }
.article tbody tr { transition: background-color 0.15s ease; }
.article tbody tr:hover td { background: var(--accent-bg); }
.article tbody td:first-child { font-weight: 500; }

/* ---------- Links ---------- */
.article p a,
.article li a,
.article td a {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.article p a:hover,
.article li a:hover,
.article td a:hover {
  color: var(--ink);
  background: var(--accent-bg);
  text-decoration-thickness: 2.5px;
}
.article p a:active,
.article li a:active,
.article td a:active { background: var(--accent); color: #1c2321; }

/* ---------- Small polish ---------- */
.article h2 { margin-top: 2.25rem; }
.article ol, .article ul { line-height: 1.6; }
.article li + li { margin-top: 0.3rem; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0 1rem; }
.article-figure img { box-shadow: 0 6px 18px rgba(15, 36, 46, 0.14); }

@media (max-width: 600px) {
  .article th, .article td { padding: 0.65rem 0.8rem; }
}

/* ---------- Text links on About, Privacy, Terms ---------- */
main p:not(.breadcrumb) a:not(.btn) {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-thickness 0.15s ease;
}
main p:not(.breadcrumb) a:not(.btn):hover {
  color: var(--ink);
  background: var(--accent-bg);
  text-decoration-thickness: 2.5px;
}
main p:not(.breadcrumb) a:not(.btn):active {
  background: var(--accent);
  color: #1c2321;
}
