/* ==========================================================================
   aleks2shell — CVE-2010-60001
   Minimal custom layer on top of Slopstrap. Keeps the vibes, adds the record.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem; /* keep anchored sections clear of the sticky navbar */
}

/* Accessible skip link (not part of Slopstrap). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--slop-purple);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* Hero terminal — centered, constrained width. */
.hero-terminal {
  max-width: 52rem;
  margin: 3rem auto 0;
}

/* Advisory metadata grid inside the terminal. */
.cve-meta {
  margin: 0;
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  font-family: var(--slop-font-mono);
}
.cve-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.cve-meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slop-text-dim);
}
.cve-meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
}
@media (max-width: 640px) {
  .cve-meta {
    grid-template-columns: 1fr;
  }
}

/* Left-align section leads (Slopstrap centers .slop-lead by default). */
.slop-lead-left {
  margin-left: 0;
  margin-right: 0;
}

/* Let prose terminals wrap instead of scrolling sideways. */
.code-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

/* CVSS metric table. */
.table-scroll {
  overflow-x: auto;
}
.cve-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
.cve-table th,
.cve-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}
.cve-table th {
  color: var(--slop-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cve-table td {
  color: var(--slop-text-muted);
}
.cve-table td:first-child {
  color: #e2e8f0;
  font-weight: 600;
}
.cve-table tr:last-child td {
  border-bottom: none;
}

/* Employment-history card header. */
.role-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.role-head .slop-icon-box {
  flex-shrink: 0;
  margin-bottom: 0;
}
.role-head > div {
  flex: 1;
  min-width: 0;
}
.role-org {
  margin: 0;
}

/* Multi-line feature bullets: align the dash with the first line. */
.slop-feature-list li {
  align-items: flex-start;
}
.slop-feature-list .li-mark {
  color: var(--slop-purple);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.55;
}

/* Reference cards. */
.ref-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
}
.ref-title {
  color: var(--slop-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.ref-card:hover .ref-title {
  color: #ffffff;
}
.ref-card a {
  text-decoration: none;
}
.ref-card a:hover {
  color: #ffffff;
}
.ref-subtitle {
  color: var(--slop-text-muted);
  font-size: 0.82rem;
  font-family: var(--slop-font-mono);
}
.ref-card:hover .ref-subtitle {
  color: #cbd5e1;
}

/* Disclosure timeline. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--slop-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--slop-gradient);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.t-date {
  display: block;
  color: #e2e8f0;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

/* Footer. */
.site-footer {
  border-top: 1px solid var(--slop-border);
}
