/* ==========================================================================
   Category / tag / author / date archives (Theme\ArchiveOs), cryptogames.gg
   only — owner 2026-09-27. "Category A · List" of artifact
   KpRGQTKTfa8dJvU7CpXdZB: slim header, lead story, list, sidebar; 10 a page.
   Palette: home-os.css's, as the page's own --ac-* tokens (as the Magazine).
   Widths: ≥1024 list + sidebar · <1024 one column · ≤760 compact rows.
   ========================================================================== */

body.cg-archive-os {
  --ac-bg: #191919;
  --ac-s1: #212121;
  --ac-s2: #2a2a2a;
  --ac-line: rgba(255, 255, 255, .08);
  --ac-text: #ffffff;
  --ac-body: #d6d6d6;
  --ac-muted: #b5b5b5;
  --ac-faint: #8c8c8c;
  --ac-accent: #9d8cff;
  --ac-grad: linear-gradient(135deg, #06707f 0%, #4a28c4 62%, #7b2fc0 100%);
  --ac-title: linear-gradient(120deg, #4fd1e0 0%, #9d8cff 55%, #c792ff 100%);
  --ac-glow: rgba(74, 40, 196, .22);
  --ac-live: #35b477;
  --ac-top: calc(var(--cg-hd, 64px) + 16px);
}
body:not([data-theme="dark"]).cg-archive-os {
  --ac-bg: #ffffff;
  --ac-s1: #f4f4f6;
  --ac-s2: #e9e9ee;
  --ac-line: rgba(0, 0, 0, .08);
  --ac-text: #191919;
  --ac-body: #333333;
  --ac-muted: #6b6b6b;
  --ac-faint: #8a8a8a;
  --ac-accent: #4a28c4;
  --ac-title: linear-gradient(120deg, #06707f 0%, #4a28c4 60%, #7b2fc0 100%);
  --ac-glow: rgba(74, 40, 196, .08);
  --ac-live: #2f9e68;
}

/* ---------------------------------------------------------- page ground */
body.cg-archive-os,
body.cg-archive-os main.cg-main,
body.cg-archive-os .cg-content-area { background: var(--ac-bg); }
@media (min-width: 1024px) {
  body.cg-archive-os .cg-rail ~ main.cg-main,
  body.cg-archive-os .cg-rail ~ .footer-wrap,
  body.cg-archive-os .cg-rail ~ .cg-site-footer,
  body.cg-archive-os .cg-rail ~ * .footer-wrap { margin-left: var(--cg-rail, 64px); }
}
body.cg-archive-os .cg-content-area { max-width: none; padding: 20px 24px 64px; }

.cg-archive-os .ac {
  display: grid; grid-template-columns: minmax(0, 1000px) 320px; gap: 20px 28px; justify-content: center; align-items: start;
  color: var(--ac-body); font: 15px/1.55 Inter, system-ui, sans-serif;
}
.cg-archive-os .ac a { color: inherit; text-decoration: none; }
.cg-archive-os .ac h1,
.cg-archive-os .ac h2 { margin: 0; color: var(--ac-text); font-family: Inter, system-ui, sans-serif; text-wrap: balance; }
.cg-archive-os .ac a:focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 3px; border-radius: 12px; }

/* ------------------------------------------------------------------ head */
.cg-archive-os .ac-head {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end;
  padding: 22px 26px; border-radius: 18px; background: radial-gradient(90% 160% at 100% 0%, var(--ac-glow) 0%, transparent 65%), var(--ac-s1);
}
.cg-archive-os .ac-head-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cg-archive-os .ac-crumb { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ac-muted); }
.cg-archive-os .ac-crumb a:hover { color: var(--ac-accent); }
.cg-archive-os .ac-kind { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-accent); }
.cg-archive-os .ac-head h1 { font-size: 34px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.cg-archive-os .ac-head h1 em { font-style: normal; background: var(--ac-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cg-archive-os .ac-head h1 small { font-size: 16px; font-weight: 600; color: var(--ac-muted); letter-spacing: 0; }
.cg-archive-os .ac-head p { margin: 4px 0 0; max-width: 68ch; color: var(--ac-muted); }
.cg-archive-os .ac-count { text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ac-faint); }
.cg-archive-os .ac-count b { display: block; color: var(--ac-text); font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cg-archive-os .ac-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cg-archive-os .ac-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ac-s2); border: 1px solid var(--ac-line); color: var(--ac-text) !important; font-size: 13px; font-weight: 600; }
.cg-archive-os .ac-chip small { color: var(--ac-faint); font-size: 12px; font-weight: 600; }
.cg-archive-os .ac-chip:hover { border-color: var(--ac-accent); }
.cg-archive-os .ac-chip.is-on { background: var(--ac-grad); border-color: transparent; color: #ffffff !important; }
.cg-archive-os .ac-chip.is-on small { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ list */
.cg-archive-os .ac-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cg-archive-os .ac-ph { display: block; overflow: hidden; background: var(--ac-s2); max-width: 100%; }
.cg-archive-os .ac-ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cg-archive-os .ac-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cg-archive-os .ac-kick { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-accent); }
.cg-archive-os .ac-h { color: var(--ac-text); font-weight: 700; }
.cg-archive-os .ac-ex { color: var(--ac-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-archive-os .ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ac-faint); font-size: 12.5px; }
.cg-archive-os .ac-who { display: inline-flex; align-items: center; gap: 7px; color: var(--ac-text); font-weight: 600; }
.cg-archive-os .ac-av { width: 24px; height: 24px; border-radius: 50%; }
.cg-archive-os .ac-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .8; }

.cg-archive-os .ac-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: var(--ac-s1); }
.cg-archive-os .ac-lead .ac-ph { aspect-ratio: 16 / 10; }
.cg-archive-os .ac-lead .ac-tx { justify-content: center; gap: 10px; padding: 22px 24px; }
.cg-archive-os .ac-lead .ac-h { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.cg-archive-os .ac-lead .ac-ex { font-size: 14.5px; -webkit-line-clamp: 3; }
.cg-archive-os .ac-lead:hover .ac-h { color: var(--ac-accent); }

.cg-archive-os .ac-rows { display: flex; flex-direction: column; }
.cg-archive-os .ac-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 14px; transition: background .15s ease; }
.cg-archive-os .ac-row + .ac-row { border-top: 1px solid var(--ac-line); }
.cg-archive-os .ac-row:hover { background: var(--ac-s1); }
.cg-archive-os .ac-row:hover .ac-h { color: var(--ac-accent); }
.cg-archive-os .ac-row .ac-ph { aspect-ratio: 16 / 10; border-radius: 11px; }
.cg-archive-os .ac-row .ac-h { font-size: 18px; line-height: 1.3; }
.cg-archive-os .ac-empty { padding: 22px; border-radius: 16px; background: var(--ac-s1); color: var(--ac-muted); }
.cg-archive-os .ac-empty a { color: var(--ac-accent); text-decoration: underline; }

.cg-archive-os .ac-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-archive-os .ac-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ac-s1); color: var(--ac-text); font-weight: 600; }
.cg-archive-os .ac-pages a.page-numbers:hover { background: var(--ac-s2); }
.cg-archive-os .ac-pages .page-numbers.current { background: var(--ac-grad); color: #ffffff; }
.cg-archive-os .ac-pages .page-numbers.dots { background: none; min-width: 20px; padding: 0 4px; }

/* --------------------------------------------------------------- sidebar */
.cg-archive-os .ac-side { position: sticky; top: var(--ac-top); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cg-archive-os .ac-box { padding: 16px; border-radius: 16px; background: var(--ac-s1); font-size: 14px; }
.cg-archive-os .ac-box-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 15.5px; font-weight: 800; }
.cg-archive-os .ac-box-h b { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac-live) 22%, transparent); }
.cg-archive-os .ac-widget a { color: var(--ac-text); }
.cg-archive-os .ac-widget a:hover { color: var(--ac-accent); }
.cg-archive-os .ac-widget ul { margin: 0; padding: 0; list-style: none; }
.cg-archive-os .ac-widget li { padding: 8px 0; border-top: 1px solid var(--ac-line); }
.cg-archive-os .ac-widget li:first-child { border-top: 0; padding-top: 0; }
.cg-archive-os .ac-widget img { max-width: 100%; height: auto; border-radius: 10px; }
.cg-archive-os .ac-tl { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--ac-line); }
.cg-archive-os .ac-tl:first-of-type { border-top: 0; }
.cg-archive-os .ac-tl time { padding-top: 1px; color: var(--ac-accent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cg-archive-os .ac-tl span { color: var(--ac-text); font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.cg-archive-os .ac-tl:hover span { color: var(--ac-accent); }
.cg-archive-os .ac-sec { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ac-line); color: var(--ac-text) !important; font-weight: 600; }
.cg-archive-os .ac-sec:first-of-type { border-top: 0; }
.cg-archive-os .ac-sec small { color: var(--ac-faint); font-variant-numeric: tabular-nums; }
.cg-archive-os .ac-sec:hover { color: var(--ac-accent) !important; }

/* ------------------------------------------------------------ narrower */
@media (max-width: 1180px) {
  .cg-archive-os .ac { grid-template-columns: minmax(0, 1fr) 300px; }
  .cg-archive-os .ac-row { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .cg-archive-os .ac { grid-template-columns: minmax(0, 1fr); }
  .cg-archive-os .ac-side { position: static; }
}
@media (max-width: 760px) {
  body.cg-archive-os .cg-content-area { padding: 12px 16px 40px; }
  .cg-archive-os .ac-head { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .cg-archive-os .ac-head h1 { font-size: 28px; }
  .cg-archive-os .ac-count { text-align: left; }
  .cg-archive-os .ac-count b { display: inline; margin-right: 6px; font-size: 20px; }
  .cg-archive-os .ac-chips { flex-wrap: nowrap; overflow-x: auto; margin: 4px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
  .cg-archive-os .ac-chips::-webkit-scrollbar { display: none; }
  .cg-archive-os .ac-chip { flex: 0 0 auto; }
  .cg-archive-os .ac-lead { grid-template-columns: minmax(0, 1fr); }
  .cg-archive-os .ac-lead .ac-tx { padding: 16px 18px 18px; }
  .cg-archive-os .ac-lead .ac-h { font-size: 21px; }
  .cg-archive-os .ac-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-radius: 0; }
  .cg-archive-os .ac-row:hover { background: none; }
  .cg-archive-os .ac-row .ac-h { font-size: 15.5px; }
  .cg-archive-os .ac-row .ac-ex { display: none; }
  .cg-archive-os .ac-pages .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-archive-os .ac-row { transition: none; }
}
