/* university.css — STRUCTURAL layer for the University.
   Loaded AFTER library.css (which carries the site-wide editorial layer:
   Newsreader serif, warm paper, emerald, small-caps eyebrows, square edges).
   This file provides ONLY University-specific structure:
     u-primitive, u-lesson, u-essay, era-card layout, chip refinements,
     overlay banner, details/summary word-list, pull-quote, language chain.
   DO NOT override font-family, body background, or text-transform on
   heading-level elements — the editorial layer already handles all of that. */

/* ── University-specific structural classes ─────────────────────────────── */

/* The root primitive display — heavy, black, uppercase, tight */
.u-primitive {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

/* Reading prose — sizing only; font-family and style come from the editorial layer */
.u-lesson, .u-essay {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 64ch;
}
.u-lesson p, .u-essay p { margin-bottom: 14px; }

/* Language chain (etymology ladder) */
.u-root-gloss { font-size: 14px; color: var(--text-faint); margin-top: 6px; }
.u-chain { list-style: none; margin: 0; padding: 0; }
.u-chain li {
  position: relative; padding: 0 0 18px 22px;
  border-left: 1px solid var(--border);
}
.u-chain li:last-child { border-left-color: transparent; }
.u-chain li::before {
  content: ''; position: absolute; left: -4px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--text);
}
.u-chain .u-lang {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
}
.u-chain .u-form { font-weight: 700; font-size: 15px; }
.u-chain .u-mean { font-size: 13px; color: var(--text-muted); }

/* Inline cite (mono micro-label) */
.u-cite { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* Rigor level micro-label */
.u-rigor {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint);
}

/* Overlay / disclaimer banner — dashed, subtle */
.u-overlay-banner {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* ── Card grids ──────────────────────────────────────────────────────────── */

/* Auto-fill card grid used on index and bridge pages */
.u-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* Member two-up grid (connection evidence) */
.u-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* Concept mini-cards on the old all-concepts grid (kept for concept/field pages) */
.u-concept-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  color: var(--text);
}
.u-concept-card:hover {
  border-color: #000;
  box-shadow: var(--shadow-hover);
}

/* ── Era cards — the new index layout ───────────────────────────────────── */

/* One card per era on the index page */
.u-era-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 28px 24px;
  background: var(--bg);
  margin-bottom: 16px;
  transition: border-color .15s;
}
.u-era-card:hover { border-color: rgba(0,0,0,0.2); }

/* Era heading — let the site-wide editorial layer ([class*="-title"] serif, weight:300)
   cascade from library.css; we only provide the structural size. */
.era-title {
  font-size: 26px;
  line-height: 1.1;
  color: var(--text);
}

/* Era meta line — date range + word count */
.u-era-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* Era origin note */
.u-era-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.55;
}

/* Sample chips row */
.u-era-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* details/summary expand control */
.u-era-details {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.u-era-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lighter);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.u-era-details summary::-webkit-details-marker { display: none; }
.u-era-details summary::before {
  content: '+';
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-faint);
  transition: transform .15s;
  display: inline-block;
}
.u-era-details[open] summary::before {
  content: '−';
}

/* The expanded word list — compact CSS columns */
.u-era-wordlist {
  margin-top: 14px;
  columns: 3;
  column-gap: 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-muted);
}
.u-era-wordlist a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .1s;
}
.u-era-wordlist a:hover { color: var(--text); }
@media (max-width: 640px) {
  .u-era-wordlist { columns: 2; }
}
@media (max-width: 400px) {
  .u-era-wordlist { columns: 1; }
}

/* ── Hex / special display elements ─────────────────────────────────────── */
.u-hex { font-size: 22px; letter-spacing: 2px; }

/* ── Major 4: Pull-quote — first etymology entry as opening anchor ─────────── */
.u-pull-quote {
  border-left: 1px solid var(--border-light, var(--border));
  padding-left: 18px;
  margin: 20px 0 28px;
  font-size: 1.35em;
  line-height: 1.65;
  color: var(--text);
  font-style: normal;
}
.u-pull-quote footer {
  font-size: 0.65em;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: normal;
}

/* ── Major 5: Expander summary — action-link style ──────────────────────────── */
/* Override the existing summary rule to add underline + arrow styling */
.u-era-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s, opacity .15s;
}
.u-era-details summary:hover {
  opacity: 0.7;
}
.u-era-details summary::-webkit-details-marker { display: none; }
/* Remove the old ::before + / − toggle — the text already shows + and → */
.u-era-details summary::before { display: none; }
.u-era-details[open] summary::before { display: none; }
