/* Apps section (docs/apps/): one page per app that comes with XataWorks.
   Linked after ../styles.css and additive over it: every selector here is one the
   shared sheet does not define, and every colour comes from its tokens. */

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.apps-crumbs { padding-top: 28px; }
.apps-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: .9rem; color: var(--ink-soft);
}
.apps-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-faint); }
.apps-crumbs a { color: var(--accent); }

/* ── Section index: every app, the current one marked ──────────────────── */
.apps-index { margin-top: 18px; }
.apps-index ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.apps-index li a,
.apps-index li span {
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; text-decoration: none; color: var(--ink-soft);
}
.apps-index li a:hover { border-color: var(--accent); color: var(--accent); }
.apps-index li span[aria-current="page"] {
  background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600;
}

/* ── An app's page ─────────────────────────────────────────────────────── */
.app-page { padding-block: clamp(36px, 6vw, 64px) var(--band-y); }
.app-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.app-head h1 { margin: 0 0 12px; }
.app-figures {
  display: grid; gap: clamp(28px, 4vw, 44px); align-items: start;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
/* Two portrait frames read side by side; one stands alone at a readable width. */
.app-figures-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.app-figures-tall { grid-template-columns: minmax(0, 520px); }
.app-figure { margin: 0; }
.app-figure img {
  width: auto; max-width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px -26px var(--ink-soft);
}
.app-figure figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); }
.app-features { max-width: 46rem; }
.app-features ul { margin: 0; padding-left: 1.2em; }
.app-features li { margin-bottom: 10px; line-height: 1.55; }
.app-more { max-width: 46rem; margin-top: clamp(28px, 4vw, 40px); color: var(--ink-soft); }
.app-more a { color: var(--accent); font-weight: 600; }

/* ── The hub's list of apps ────────────────────────────────────────────── */
.apps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.apps-list a {
  display: block; height: 100%; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none;
}
.apps-list a:hover { border-color: var(--accent); }
.apps-list .apps-icon { display: block; width: 48px; height: 48px; margin-bottom: 12px; }
.apps-list strong { display: block; font-size: 1.08rem; color: var(--accent); margin-bottom: 6px; }
.apps-list span { display: block; font-size: .94rem; line-height: 1.5; color: var(--ink-soft); }

@media print {
  .apps-index { display: none; }
  .app-figure img { box-shadow: none; border-color: #999; }
}
