:root { color-scheme: light;
  --bg: #ffffff; --panel: #f6f6f4; --ink: #1a1a1a; --sub: #55534e; --tert: #8a877f;
  --line: #e6e4df; --line-soft: #efeeea; --accent: #1a1a1a; --blue: #0b5cff;
  --font: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em }

/* Header */
.idx-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft); padding: 0 32px; }
.idx-header-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 60px; }
.idx-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.idx-logo img { width: 22px; height: 22px; }
.idx-logo-text { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.idx-header-spacer { flex: 1; }
.idx-search { display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; width: min(300px, 40vw); }
.idx-search:focus-within { border-color: var(--line); background: #fff; }
.idx-search svg { flex-shrink: 0; color: var(--tert); }
.idx-search input { flex: 1; border: none; outline: none; background: transparent;
  font: 400 15px var(--font); color: var(--ink); letter-spacing: -.005em; }
.idx-search input::placeholder { color: var(--tert); }

.idx-icon-btn { display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; background: none; border: none;
  border-radius: 8px; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.idx-icon-btn:hover { background: var(--panel); }

/* Filter trigger (fashion-house style: quiet, text + hairline icon) */
.idx-filter-trigger { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: none; border: none; padding: 9px 6px; cursor: pointer; color: var(--ink);
  font: 500 13px var(--font); text-transform: uppercase; letter-spacing: .12em; }
.idx-filter-trigger:hover { color: var(--sub); }
.idx-filter-trigger svg { color: currentColor; }
.idx-filter-label { line-height: 1; }
.idx-filter-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; background: var(--ink); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0; }
.idx-filter-badge[hidden] { display: none; }

/* Mobile expandable search row */
.idx-search-mobile { display: none; align-items: center; gap: 8px; max-width: 1240px;
  margin: 0 auto; padding: 0 32px 12px; }
.idx-search-mobile.open { display: flex; }
.idx-search-mobile svg { flex-shrink: 0; color: var(--tert); }
.idx-search-mobile input { flex: 1; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 11px 12px; outline: none; font: 400 16px var(--font); color: var(--ink); }
.idx-search-mobile input::placeholder { color: var(--tert); }

/* Main list (full-width) */
.idx-main { max-width: 1240px; margin: 0 auto; padding: 40px 32px 24px; }
.idx-count { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--tert); margin: 0 0 28px; }
.artifact-list { display: block; }
/* Numbered row with a quiet hover-highlight card, in the Hall of Fame style. */
.artifact-card { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink); transition: background .15s, margin .15s, padding .15s; }
.artifact-card:first-child { padding-top: 0; }
.artifact-card:first-child:hover { padding-top: 16px; }
.artifact-card:last-child { border-bottom: none; }
.artifact-card:hover { background: #f7f8ff; margin: 0 -16px; padding: 24px 16px; border-radius: 12px;
  border-bottom-color: transparent; }
.artifact-card:hover .ac-title { color: var(--blue); }
.ac-num { flex-shrink: 0; min-width: 30px; padding-top: 3px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.ac-body { min-width: 0; flex: 1; }
.ac-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.ac-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--sub); }
.ac-recurring { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #8b5cf6; }
.ac-date { font-size: 13px; color: var(--tert); }
.ac-author { font-size: 13px; color: var(--tert); }
.ac-author::before { content: "· "; }
.ac-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 7px; color: var(--ink); transition: color .15s; }
.ac-desc { font-size: 15px; color: var(--sub); line-height: 1.55; margin: 0 0 12px; max-width: 74ch; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-tag { font-size: 11px; color: var(--tert); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.empty { text-align: center; padding: 60px 20px; color: var(--tert); font-size: 15px; }

/* Filter drawer + scrim */
.idx-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(26,26,26,0.28);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.idx-scrim.open { opacity: 1; visibility: visible; }
.idx-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(420px, 90vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .34s cubic-bezier(.22,.61,.36,1);
  box-shadow: -12px 0 40px rgba(0,0,0,0.10); }
.idx-drawer.open { transform: translateX(0); }
.idx-drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px; border-bottom: 1px solid var(--line-soft); }
.idx-drawer-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.idx-drawer-close { width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: none; border-radius: 999px; color: var(--ink); cursor: pointer; margin: -6px -8px -6px 0; }
.idx-drawer-close:hover { background: var(--panel); }
.idx-drawer-body { flex: 1; overflow-y: auto; padding: 28px; }
.facet-group { margin: 0 0 34px; }
.facet-group:last-child { margin-bottom: 0; }
.facet-group h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--tert); margin: 0 0 14px; }
.facet-list { list-style: none; margin: 0; padding: 0; }
.facet-opt { display: flex; align-items: center; justify-content: space-between; width: 100%;
  text-align: left; background: none; border: none; padding: 11px 0; cursor: pointer;
  font: 400 16px var(--font); color: var(--ink); border-bottom: 1px solid var(--line-soft); letter-spacing: -.01em; }
.facet-opt:hover { color: var(--sub); }
.facet-opt .count { font-size: 13px; color: var(--tert); font-variant-numeric: tabular-nums; }
.facet-opt.active { font-weight: 600; }
.facet-opt.active::after { content: "✓"; margin-left: 10px; font-size: 13px; }
.facet-opt.active .count { display: none; }
.facet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.facet-tag { font: 400 14px var(--font); color: var(--ink); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; letter-spacing: -.005em; }
.facet-tag:hover { border-color: var(--tert); }
.facet-tag.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.idx-drawer-foot { display: flex; align-items: center; gap: 12px; padding: 20px 28px;
  border-top: 1px solid var(--line-soft); }
.idx-drawer-clear { background: none; border: none; padding: 0; cursor: pointer;
  font: 500 13px var(--font); color: var(--sub); text-transform: uppercase; letter-spacing: .1em; }
.idx-drawer-clear[hidden] { display: none; }
.idx-drawer-clear:hover { color: var(--ink); }
.idx-drawer-apply { flex: 1; background: var(--ink); color: #fff; border: none; border-radius: 8px;
  padding: 14px; cursor: pointer; font: 500 13px var(--font); text-transform: uppercase; letter-spacing: .1em; }
.idx-drawer-apply:hover { background: #333; }

/* Footer */
.idx-footer { border-top: 1px solid var(--line-soft); margin-top: 24px; padding: 36px 32px 56px; }
.idx-footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.idx-footer-inner svg { width: 18px; height: 18px; flex-shrink: 0; }
.idx-footer-text { font-size: 13px; color: var(--tert); line-height: 1.6; }
.idx-footer-text a { color: var(--sub); text-decoration: none; }
.idx-footer-text a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .idx-header { padding: 0 18px; }
  .idx-logo-text { font-size: 15px; }
  .idx-search { display: none; }
  .idx-icon-btn { display: inline-flex; }
  .idx-filter-trigger { padding: 9px 8px; }
  .idx-filter-label { display: none; }
  .idx-search-mobile { padding: 0 18px 12px; }
  .idx-main { padding: 24px 18px; }
  .ac-title { font-size: 19px; }
  .artifact-card { gap: 14px; }
  .ac-num { min-width: 24px; }
}

/* Plain back link (moved off inline style for CSP). */
.back-link { color: var(--blue); text-decoration: none; }

/* Version-history page (vh-*): timeline of one report's revisions. Reuses the
   idx- header vocabulary so it reads as the same product. */
.vh-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft); padding: 0 32px; }
.vh-header-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 60px; }
.vh-back { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px;
  color: var(--sub); text-decoration: none; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; transition: color .15s; white-space: nowrap; }
.vh-back:hover { color: var(--ink); }
.vh-back::before { content: "\2190"; margin-right: 8px; }

.vh-main { max-width: 760px; margin: 0 auto; padding: 48px 32px 72px; }
.vh-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--tert); margin: 0 0 10px; }
.vh-title { font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -.03em;
  line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.vh-count { font-size: 14px; color: var(--tert); margin: 0 0 36px; font-variant-numeric: tabular-nums; }

.vh-list { list-style: none; margin: 0; padding: 0; }
.vh-item { display: flex; gap: 18px; }
/* Timeline rail: a hairline through hollow dots; the current dot is filled. */
.vh-rail { position: relative; flex-shrink: 0; width: 11px; }
.vh-rail::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.vh-item:first-child .vh-rail::before { top: 26px; }
.vh-item:last-child .vh-rail::before { bottom: calc(100% - 26px); }
.vh-item:only-child .vh-rail::before { display: none; }
.vh-dot { position: absolute; left: 0; top: 21px; width: 11px; height: 11px; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--tert); }
.vh-item.is-current .vh-dot { background: var(--blue); border-color: var(--blue); }

.vh-row { display: block; flex: 1; min-width: 0; padding: 16px 0; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
  transition: background .15s, margin .15s, padding .15s; }
.vh-item:last-child .vh-row { border-bottom: none; }
.vh-row:hover { background: #f7f8ff; margin-right: -16px; padding: 16px 16px 16px 12px;
  margin-left: -12px; border-radius: 12px; border-bottom-color: transparent; }
.vh-row:hover .vh-label { color: var(--blue); }
.vh-row-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.vh-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: color .15s; }
.vh-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px;
  align-self: center; }
.vh-date { font-size: 13px; color: var(--tert); margin-left: auto; font-variant-numeric: tabular-nums; }
.vh-subject { font-size: 15px; color: var(--sub); line-height: 1.55; margin: 0 0 6px; max-width: 64ch; text-wrap: pretty; }
.vh-sha { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tert); margin: 0;
  font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .vh-header { padding: 0 18px; }
  .vh-back-long { display: none; }
  .vh-main { padding: 32px 18px 56px; }
  .vh-date { margin-left: 0; width: 100%; }
  .vh-item { gap: 14px; }
}

/* Day-0 empty state: what Artifacts is + how to create one. */
.idx-empty-hero { max-width: 720px; margin: 8px auto 0; padding: 24px 0 40px; }
.idx-empty-title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; }
.idx-empty-lead { font-size: 17px; line-height: 1.6; color: var(--sub); margin: 0 0 40px; max-width: 60ch; }
.idx-empty-how { border-top: 1px solid var(--line-soft); padding-top: 32px; }
.idx-empty-how-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--tert); margin: 0 0 24px; }
.idx-empty-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.idx-empty-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--sub); }
.idx-empty-steps strong { color: var(--ink); font-weight: 600; }
.idx-step-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.idx-empty-foot { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--tert); }
