/* Report pages only. Load after site.css. */

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 1.25rem;
}

/* ─── MAIN LAYOUT ─────────────────────────────────── */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.sidebar-section { margin-bottom: 2rem; }

.sidebar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .5rem;
  padding-left: .75rem;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li a {
  display: block;
  padding: .35rem .75rem;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  border-left: 2px solid var(--grey-light);
  overflow-wrap: anywhere;
  transition: background .15s, border-color .15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--grey-pale);
  border-left-color: var(--purple);
}

/* ─── CONTENT ─────────────────────────────────────── */
.content section { margin-bottom: 4.5rem; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--black);
}

.section-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--purple-dark);
  flex-shrink: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--black);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  margin: 1.8rem 0 .7rem;
}

p {
  color: var(--black);
  margin-bottom: 1rem;
  max-width: 72ch;
}

/* ─── TABLES ──────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grey-light);
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

tbody tr {
  border-bottom: 1px solid var(--grey-light);
  transition: background .12s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--grey-pale); }

tbody td {
  padding: .65rem 1rem;
  vertical-align: middle;
}

td.hash {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
  word-break: break-all;
}

td.fname {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
  white-space: nowrap;
}

td.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

td.val {
  font-size: 14px;
  color: var(--black);
  overflow-wrap: anywhere;
}

/* One neutral tag style: color is not used to code or identify items */
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  color: var(--black);
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  white-space: nowrap;
}

/* ─── MITIGATION LIST ─────────────────────────────── */
.mitigation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.mitigation-list li {
  display: flex;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  font-size: 16px;
  color: var(--black);
  line-height: 1.5;
  transition: border-color .15s;
}

.mitigation-list li:hover { border-color: var(--purple); }

/* square marker (angular elements; the Greater Than symbol is never used as a bullet or arrow) */
.mitigation-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: .55em;
  background: var(--purple);
}

/* ─── CODE BLOCKS ─────────────────────────────────── */
.yara-block {
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.yara-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .6rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}

.yara-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
}

.yara-meta-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.yara-meta-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  padding: 1px 8px;
}

pre {
  overflow-x: auto;
  padding: 1.25rem;
}

code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
  white-space: pre;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple-darkest);
  white-space: normal;
}

/* Syntax colors: purple spectrum and black only */
.kw  { color: var(--purple-dark); font-weight: 700; }

/* keywords */
.st  { color: var(--purple-darkest); }

/* strings */
.cm  { color: var(--black); font-style: italic; }

/* comments */
.fn  { color: var(--purple-dark); font-weight: 700; }

/* rule names */
.hex { color: var(--purple-darkest); }

/* hex bytes */
.nm  { color: var(--black); font-weight: 700; }

/* variable names */

/* ─── FINGERPRINTS ────────────────────────────────── */
.fingerprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fp-card {
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--purple);
  padding: 1.25rem;
}

.fp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .5rem;
}

.fp-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-darkest);
  word-break: break-all;
}

/* ─── CALLOUT ─────────────────────────────────────── */
.callout {
  font-family: var(--font-serif);
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--purple);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 16px;
  color: var(--black);
  line-height: 1.6;
}

.callout strong { font-weight: 600; }

/* ─── CONTENT FROM THE SOURCE REPORT ──────────────── */
.content sup { font-size: .7em; line-height: 0; }

.content sup a { color: var(--purple-dark); }

.references { margin: 1.25rem 0 0 1.25rem; font-size: 13px; }

.references li { margin-bottom: .25rem; overflow-wrap: anywhere; }

.references a { color: var(--purple-dark); }

.inline-hash {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple-darkest);
  word-break: break-all;
}

.plain-list { margin-bottom: 1.5rem; }

.plain-list summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: .75rem;
}

.plain-list .list-label { font-size: 14px; font-weight: 600; margin: .75rem 0 .25rem; }

.plain-list pre,
.blob pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  background: var(--grey-pale);
  border: 1px solid var(--grey-light);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.blob code { white-space: pre-wrap; word-break: break-all; }

.config-params { list-style: none; margin-bottom: 1rem; }

.config-params li { margin-bottom: .25rem; }

/* Let the content column shrink so wide tables and code scroll instead of overflowing the page */
.content { min-width: 0; }

/* ─── PULL QUOTE ──────────────────────────────────── */
/* GT Sectra Fine is the brand typeface for quotes; it falls back to Graphik where not installed */
.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--grey-pale);
  border-left: 4px solid var(--purple);
}

.pull-quote blockquote p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 0;
}

.pull-quote figcaption { margin-top: 1rem; font-size: 14px; }

.pull-quote figcaption strong { font-weight: 600; }

/* Title of a dated update section */
.update-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: none;
  margin-bottom: 1.5rem;
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.mitigation-list strong { font-weight: 600; }

@media (max-width: 768px) {
  .apex-expansion { font-size: 14px; }
  .layout { grid-template-columns: 1fr; padding: 0 1rem 4rem; }
  .sidebar { display: none; }
  .fingerprint-grid { grid-template-columns: 1fr; }
}
