/* ==========================================================================
   syllabi.dadams.io additions
   Loaded after css/custom.css (a verbatim copy of dadams.io's theme), so
   everything here reads the same tokens: --accent, --bg-elev, --term-*, ...
   ========================================================================== */

/* ---------- Footer links in the statusline ---------- */
a.sl-link { color: var(--term-blue); text-decoration: none; }
a.sl-link:hover { color: var(--term-cyan); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero-note { margin: 1.25rem 0 0; font-family: var(--font-mono); font-size: 0.88rem; color: var(--muted); }
.hero-note + .hero-actions { margin-top: 0.85rem; }

/* ---------- Catalog ---------- */
.syl-group { margin-top: 2rem; }
.syl-group .pub-heading { margin-bottom: 1rem; }
.syl-group[hidden], .syl-card[hidden] { display: none; }

.syl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.syl-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.syl-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.syl-card.is-current { border-top: 3px solid var(--accent); }

.syl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}
.syl-code { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.syl-badge {
  margin-left: auto;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--green);
  border: 1px solid currentColor;
  border-radius: 999px;
}
.syl-title { margin: 0 0 0.45rem; font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--text-strong); }
.syl-desc { margin: 0 0 0.5rem; font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.syl-mode { margin: 0; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.5; color: var(--faint); }
.syl-mode::before { content: "# "; color: var(--accent); }

/* file links sit at the bottom of every card, however long the blurb runs */
.syl-files { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 0; padding: 0.9rem 0 0; list-style: none; }
.syl-files a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.syl-files a:hover,
.syl-files a:focus-visible { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.syl-files .fa-file-pdf { color: var(--red); }

/* ---------- Workflow: numbered steps as shell comments ---------- */
.howto-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto-steps li { counter-increment: step; }
.howto-steps li + li { margin-top: 1rem; }
.howto-note { margin: 0 0 0.2rem; color: var(--term-dim); }
.howto-note::before { content: "# " counter(step) ". "; }
.howto-steps .term-line { margin: 0; }

/* ---------- License ---------- */
.license-name { margin: 0 0 0.6rem; font-family: var(--font-mono); font-weight: 700; color: var(--text-strong); }
