/* Strat-OS page: the technical paper card.
   No gate in front of it — the file is a plain link, so it downloads with the
   browser's own machinery and works with JS off, from a crawler, or from a
   command line. Achromatic per Colorless Chrome; the only hue is the focus
   ring the rest of the site already uses. */

.paper {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-card);
}
@media (min-width: 768px) {
  .paper { padding: 2rem; }
}

.paper__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
  color: var(--color-foreground);
}
@media (min-width: 768px) {
  .paper__title { font-size: 1.25rem; }
}

.paper__author {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Hairline rows rather than a boxed table: the same structure-from-rules the
   stats and address cards use. */
.paper__meta {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--color-border);
}
.paper__meta > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.125rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .paper__meta > div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }
}
.paper__meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.paper__meta dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-foreground);
}

.paper__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.paper__fmt {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ---------- abstract ---------- */

/* A native <details>: the disclosure the site's own accordion imitates, but
   with no script behind it, so a 250-word abstract can stay folded away
   without putting the substance of the section behind JavaScript. */
.paper__abstract {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}
.paper__abstract > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-foreground);
  cursor: pointer;
  list-style: none; /* Firefox */
}
.paper__abstract > summary::-webkit-details-marker {
  display: none; /* Safari and older Chrome */
}
.paper__abstract > summary:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}
.paper__abstract > summary svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-muted-foreground);
  transition: transform 0.2s ease;
}
.paper__abstract[open] > summary svg {
  transform: rotate(180deg);
}
.paper__abstract p {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .paper__abstract > summary svg { transition-duration: 0.01ms; }
}
