/* /learn-to-learn/ — the free book: shelf, 100 chapters, glossary (#17567).
 *
 * Rules live HERE, never inline in HTML: Check 92 scans static-site/{css,js}
 * only, so an inline `var(--...)` is invisible to the phantom-token guard —
 * the #9317 -> #14368 -> #15616 -> #17166 recurrence class.
 *
 * Every token below is verified present in variables.css (same vocabulary as
 * css/ai-literacy.css). Do not introduce one without checking:
 *   grep -oE '^\s*--[a-z0-9-]+' css/variables.css | tr -d ' ' | sort -u
 *
 * CACHE STAMP: /css/* is served at max-age=604800 (7 days) while HTML is
 * max-age=3600. If you change a rule here, bump `?v=` in the same commit
 * (#15980 / #17166).
 */

.ltl-wrap {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.ltl-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.ltl-breadcrumb a { color: var(--color-text-secondary); }

.ltl-strapline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin: 0 0 0.25rem;
}

.ltl-dates,
.ltl-langs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0;
}

/* ---------- body typography --------------------------------------- */

.ltl-body {
  line-height: 1.75;
  color: var(--color-text-primary);
}

.ltl-body h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0.5rem 0 1rem;
}

.ltl-body h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.ltl-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

.ltl-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0.75rem 0;
}

.ltl-body blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--color-text-secondary);
}

.ltl-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* Wide tables scroll inside their own box — the page must never scroll
 * horizontally on a 360px phone. */
.ltl-scroll { overflow-x: auto; margin: 1rem 0; }
.ltl-scroll table { border-collapse: collapse; min-width: 480px; }
.ltl-scroll th,
.ltl-scroll td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.ltl-scroll th { background: var(--color-surface-alt); }

/* ---------- shelf: download cards ---------------------------------- */

.ltl-downloads {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}

.ltl-downloads h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }

.ltl-downloads-dek {
  margin: 0 0 1.25rem;
  color: var(--color-text-secondary);
}

.ltl-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ltl-download-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.ltl-download-card img {
  width: 90px;
  height: auto;
  align-self: flex-start;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.ltl-download-meta { min-width: 0; }

.ltl-book-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.15rem;
}

.ltl-download-meta h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }

.ltl-sub-en {
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.ltl-book-stats {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.6rem;
}

.ltl-download-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.ltl-download-cta:hover { opacity: 0.9; }

@media (max-width: 560px) {
  .ltl-wrap { padding: 0 1rem; }
  .ltl-download-card { flex-direction: row; }
  .ltl-download-card img { width: 72px; }
}
