/* ============================================================
   KinaQuest · Category pages (office.html, stories.html, excel.html …)
   Loads AFTER ../templates.css and only adds what a category
   page needs on top of it. Never redefine tokens here.
   ============================================================ */

.hero--category { padding-block: clamp(28px, 5vw, 48px) 0; }
.hero--category h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--accent); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Two-up format tiles */
.collections--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .collections--2 { grid-template-columns: minmax(0, 1fr); } }

/* Filter chips */
.count { color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: .92rem; font-weight: 600; transition: border-color .15s, background .15s, color .15s;
}
.chip .fmt { width: 22px; height: 22px; font-size: .7rem; }
.chip .fmt--pdf { font-size: .44rem; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Groups of cards */
.group { padding-top: 26px; scroll-margin-top: 16px; }
.group__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.group.is-filtered, .tcard.is-filtered { display: none; }

/* ---------- Theme button + Customize popup (customize.js) ---------- */
.theme-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: border-color .15s; }
.theme-btn:hover { border-color: var(--accent); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.custom-popup { position: fixed; z-index: 1000; right: 16px; left: auto !important; top: 72px !important; width: 250px; padding: 16px; border-radius: 18px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 30, .55); }
.cp-customize-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cp-customize-title { font-weight: 800; }
.cp-close-btn { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; color: inherit; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.cp-section { margin-top: 12px; }
.cp-section-label { display: block; margin-bottom: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cp-theme-row, .cp-accent-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-theme-btn { width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 2px solid transparent; }
.cp-theme-btn.active { border-color: var(--accent); }
.cp-accent-dot { width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cp-accent-dot.active { box-shadow: 0 0 0 2px var(--accent); }
