/* Cignify — reports index + report article styles (depends on assets/styles.css) */

/* overflow-x: hidden on html/body turns body into a scroll container, which
   stops position: sticky (nav, report TOC) from working. clip hides the
   overflow the same way without creating a scroll container. */
html, body { overflow-x: clip; }

/* =========================================================
   Reports index
   ========================================================= */
.rp-hero { padding: clamp(80px, 11vw, 140px) 0 clamp(48px, 6vw, 80px); }
.rp-hero h1 { font-size: clamp(48px, 7.5vw, 110px); line-height: 0.96; margin: 20px 0 28px; max-width: 13ch; }
.rp-hero h1 .lime { color: var(--lime); }
.rp-hero .lede { max-width: 58ch; }
.rp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.rp-section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 22px;
}
.rp-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* featured report card */
.rp-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(114,191,0,0.06), transparent 55%), var(--bg-1);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.rp-feature:hover { border-color: rgba(114,191,0,0.4); transform: translateY(-3px); }
@media (max-width: 900px) { .rp-feature { grid-template-columns: 1fr; } }
.rp-feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.rp-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rp-kicker span + span::before { content: "·"; margin-right: 14px; color: var(--ink-faint); }
.rp-feature h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; }
.rp-feature p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 56ch; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-feature-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
.rp-read { color: var(--lime); display: inline-flex; gap: 8px; align-items: center; font-family: var(--sans); font-weight: 600; font-size: 14px; }
.rp-read .btn-arrow { transition: transform .25s var(--ease); }
.rp-feature:hover .rp-read .btn-arrow, .rp-row:hover .rp-read .btn-arrow { transform: translateX(4px); }

/* generated "cover" panel */
.rp-cover {
  position: relative; overflow: hidden; min-height: 320px;
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(114,191,0,0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(114,191,0,0.035) 0 1px, transparent 1px 28px),
    #04110F;
  font-family: var(--mono); color: #CFEBC8;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
}
@media (max-width: 900px) { .rp-cover { border-left: 0; border-top: 1px solid var(--line); min-height: 260px; } }
.rp-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 85% 10%, rgba(114,191,0,0.18), transparent 70%);
}
.rp-cover-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.08em; color: rgba(207,235,200,0.6); position: relative; z-index: 1; }
.rp-cover-code { font-size: 12.5px; line-height: 1.75; position: relative; z-index: 1; white-space: pre; overflow: hidden; }
.rp-cover-code .c { color: rgba(207,235,200,0.42); }
.rp-cover-code .k { color: #8FD123; }
.rp-cover-code .d { color: #FF7A7A; }
.rp-cover-score { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; }
.rp-cover-score .n { font-family: var(--display); font-size: clamp(56px, 6vw, 84px); line-height: 0.85; color: #FF7A7A; letter-spacing: -0.03em; }
.rp-cover-score .l { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(207,235,200,0.7); line-height: 1.5; padding-bottom: 4px; }

/* archive list */
.rp-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rp-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.rp-row:hover { background: rgba(114,191,0,0.03); padding-left: 14px; }
.rp-row .dt { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.rp-row h3 { font-size: clamp(19px, 1.8vw, 23px); margin: 6px 0 6px; }
.rp-row p { margin: 0; font-size: 14px; }
.rp-row .typ { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
@media (max-width: 720px) {
  .rp-row { grid-template-columns: 1fr; gap: 8px; }
  .rp-row .rp-read { margin-top: 6px; }
}
.rp-row.is-soon { opacity: 0.6; pointer-events: none; }
.rp-row.is-soon .typ { color: var(--ink-faint); }

/* =========================================================
   Report article
   ========================================================= */
.ra-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--lime); box-shadow: 0 0 12px var(--lime-glow); z-index: 60; transition: width .1s linear; }

.ra-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); }
.ra-crumb { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 26px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ra-crumb a { color: var(--ink-dim); transition: color .2s var(--ease); }
.ra-crumb a:hover { color: var(--lime); }
.ra-hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; margin: 18px 0 26px; max-width: 16ch; }
.ra-hero h1 .lime { color: var(--lime); }
.ra-hero .lede { max-width: 66ch; font-style: normal; }
.ra-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 32px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em;
}
.ra-byline strong { color: var(--ink); font-weight: 500; }
.ra-byline .sep { width: 4px; height: 4px; background: var(--line-strong); border-radius: 50%; }
.ra-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* at-a-glance strip */
.ra-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .ra-glance { grid-template-columns: repeat(2, 1fr); } }
.ra-glance .g { background: var(--bg); padding: 22px 22px 24px; }
.ra-glance .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.ra-glance .v { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); margin-top: 10px; letter-spacing: -0.02em; line-height: 1.05; }
.ra-glance .v.crit { color: var(--danger); }
.ra-glance .v.lime { color: var(--lime); }
.ra-glance .s { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; }
html[data-theme="light"] .ra-glance .v.crit { color: #C42A2A; }

/* layout: article + sticky toc */
.ra-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(48px, 6vw, 80px) 0 0; }
@media (max-width: 1080px) { .ra-layout { grid-template-columns: minmax(0, 1fr); } .ra-toc { display: none; } }

.ra-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; padding-right: 6px; }
.ra-toc .h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.ra-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.ra-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 13px; line-height: 1.4; color: var(--ink-faint); transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ra-toc a:hover { color: var(--ink); }
.ra-toc a.on { color: var(--ink); border-left-color: var(--lime); }
.ra-toc-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ra-toc-actions a, .ra-toc-actions button {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim); background: none; border: 0; padding: 0; text-align: left;
  transition: color .2s var(--ease);
}
.ra-toc-actions a:hover, .ra-toc-actions button:hover { color: var(--lime); }

/* prose */
.ra-prose { max-width: 780px; min-width: 0; }
.ra-prose > section { scroll-margin-top: 100px; }
.ra-prose > section + section { margin-top: clamp(56px, 7vw, 88px); }
.ra-prose h2 {
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.ra-prose h2 .no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--lime); font-weight: 400; }
.ra-prose h3 { font-size: clamp(20px, 2vw, 24px); margin: 40px 0 16px; }
.ra-prose p, .ra-prose li { font-size: 17px; line-height: 1.75; color: var(--ink-dim); }
.ra-prose p { margin: 0 0 20px; }
.ra-prose strong { color: var(--ink); font-weight: 600; }
.ra-prose em { color: var(--ink); }
.ra-prose a:not(.btn) { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(114,191,0,0.35); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.ra-prose a:not(.btn):hover { text-decoration-color: var(--lime); }
.ra-prose ul { padding-left: 0; list-style: none; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.ra-prose ul > li { position: relative; padding-left: 26px; }
.ra-prose ul > li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--lime); font-family: var(--mono); }
.ra-prose code {
  font-family: var(--mono); font-size: 0.84em; padding: 2px 6px; border-radius: 5px;
  background: rgba(114,191,0,0.08); border: 1px solid rgba(114,191,0,0.16); color: var(--ink);
  overflow-wrap: anywhere;
}
.ra-prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--lime);
  font-family: var(--display); font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em;
}
.ra-prose blockquote p { color: inherit; font-size: inherit; line-height: inherit; margin: 0; }

/* code figure */
.ra-code { margin: 30px 0 32px; }
.ra-code-box { background: #040D0B; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.ra-code-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid rgba(234,253,231,0.08); background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 11px; color: rgba(234,253,231,0.6); letter-spacing: 0.06em;
}
.ra-code-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a302d; }
.ra-code-bar .dot:nth-child(1) { background: #FF5C5C66; }
.ra-code-bar .dot:nth-child(2) { background: #FFB23E66; }
.ra-code-bar .dot:nth-child(3) { background: #72BF00; }
.ra-code-bar .lbl { margin-left: 10px; }
.ra-code-bar .copy {
  margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(234,253,231,0.6); background: transparent; border: 1px solid rgba(234,253,231,0.14);
  border-radius: 6px; padding: 4px 10px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ra-code-bar .copy:hover { color: #8FD123; border-color: #72BF00; }
.ra-code pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #DDF3D8; tab-size: 4;
}
.ra-code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.ra-code .tk-c { color: rgba(207,235,200,0.45); font-style: italic; }
.ra-code .tk-s { color: #F5C66B; }
.ra-code .tk-k { color: #8FD123; }
.ra-code .tk-n { color: #7FD6C2; }
.ra-code .tk-f { color: #9FC5FF; }
.ra-code .tk-y { color: #8FD123; }
.ra-code figcaption, .ra-table figcaption {
  margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--line-strong);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-faint);
}
.ra-code figcaption b, .ra-table figcaption b { color: var(--ink-dim); font-weight: 600; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.ra-code figcaption code, .ra-table figcaption code { font-size: 0.86em; }
@media (max-width: 600px) { .ra-code pre { font-size: 11.5px; padding: 16px; } }

/* callouts */
.ra-callout {
  margin: 32px 0; padding: 24px 26px; border: 1px solid rgba(114,191,0,0.3); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(114,191,0,0.08), transparent 70%);
  position: relative;
}
.ra-callout .ck { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); display: block; margin-bottom: 10px; }
.ra-callout p { margin: 0; color: var(--ink); font-size: 17px; }
.ra-callout p + p { margin-top: 12px; }
.ra-callout.warn { border-color: rgba(255,178,62,0.35); background: linear-gradient(135deg, rgba(255,178,62,0.08), transparent 70%); }
.ra-callout.warn .ck { color: var(--warn); }
html[data-theme="light"] .ra-callout.warn .ck { color: #A3620A; }
.ra-callout.note { border-color: var(--line-strong); background: var(--bg-1); }
.ra-callout.note .ck { color: var(--ink-faint); }
.ra-callout.note p { color: var(--ink-dim); font-size: 15px; }

/* key findings */
.ra-findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 28px; counter-reset: kf; }
@media (max-width: 720px) { .ra-findings { grid-template-columns: 1fr; } }
.ra-finding {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.016), transparent);
  transition: border-color .25s var(--ease);
}
.ra-finding:hover { border-color: rgba(114,191,0,0.35); }
.ra-finding::before { counter-increment: kf; content: "/ 0" counter(kf); font-family: var(--mono); font-size: 11px; color: var(--lime); letter-spacing: 0.08em; }
.ra-finding h3 { font-size: 18px; margin: 10px 0 10px; line-height: 1.3; }
.ra-finding p { font-size: 14.5px; line-height: 1.65; margin: 0; }

/* tables */
.ra-table { margin: 28px 0 32px; }
.ra-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.ra-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ra-table th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 14px 16px; background: var(--bg-1); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.ra-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; line-height: 1.55; }
.ra-table tr:last-child td { border-bottom: 0; }
.ra-table tbody tr { transition: background .2s var(--ease); }
.ra-table tbody tr:hover { background: rgba(114,191,0,0.03); }
.ra-table td:first-child { color: var(--ink); }
.ra-table td strong { color: var(--ink); }
.ra-table code { font-size: 0.86em; }
.ra-table.wide table { min-width: 720px; }

.conf { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.conf.hi { color: var(--lime); border-color: rgba(114,191,0,0.35); background: rgba(114,191,0,0.06); }
.conf.md { color: var(--warn); border-color: rgba(255,178,62,0.35); background: rgba(255,178,62,0.06); }
.conf.lo { color: var(--ink-faint); border-color: var(--line-strong); }
html[data-theme="light"] .conf.md { color: #A3620A; }

/* attack chain */
.ra-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 32px; }
@media (max-width: 760px) { .ra-chain { grid-template-columns: 1fr; } }
.ra-chain .st { background: var(--bg); padding: 18px 16px; position: relative; }
.ra-chain .st .n { font-family: var(--mono); font-size: 10.5px; color: var(--lime); letter-spacing: 0.08em; }
.ra-chain .st .t { font-size: 14.5px; color: var(--ink); margin-top: 8px; line-height: 1.35; font-weight: 500; }
.ra-chain .st .o { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* timeline */
.ra-timeline { list-style: none; padding: 0 0 0 28px !important; margin: 8px 0 28px; border-left: 1px solid var(--line-strong); gap: 26px !important; margin-left: 6px; }
.ra-timeline > li { padding-left: 0 !important; }
.ra-timeline > li::before {
  content: "" !important; position: absolute; left: -34px !important; top: 8px !important;
  width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lime);
}
.ra-timeline > li.hot::before { background: var(--lime); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--lime-glow); }
.ra-timeline .when { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--lime); margin-bottom: 4px; }
.ra-timeline p { margin: 0; font-size: 15.5px; }

/* sources */
.ra-sources ol { padding-left: 0; list-style: none; margin: 0 0 28px; counter-reset: src; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.ra-sources ol > li { counter-increment: src; display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.ra-sources ol > li::before { content: "[" counter(src) "]"; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); padding-top: 3px; }
.ra-sources ol.sec { counter-reset: src 9; }
.ra-sources .small { font-size: 13px; color: var(--ink-faint); }

.ra-disclaimer {
  margin-top: clamp(56px, 7vw, 88px); padding: 26px 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-size: 14px; line-height: 1.65; color: var(--ink-faint);
}
.ra-disclaimer strong { color: var(--ink-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* author / share footer */
.ra-end { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.ra-end .who { display: flex; gap: 14px; align-items: center; }
.ra-end .av { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-1); display: flex; align-items: center; justify-content: center; }
.ra-end .av img { width: 26px; height: 26px; }
.ra-end .nm { font-weight: 600; color: var(--ink); font-size: 15px; }
.ra-end .rl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }
.ra-share { display: flex; gap: 10px; flex-wrap: wrap; }
.ra-share a, .ra-share button {
  font-family: var(--mono); font-size: 12px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink-dim); background: transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ra-share a:hover, .ra-share button:hover { color: var(--lime); border-color: var(--lime); }

/* CTA (mirrors page-home.css so report pages don't need the home stylesheet) */
.cta { text-align: center; padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.cta h2 { max-width: 16ch; margin: 0 auto 24px; }
.cta-ctas { justify-content: center; }

@media print {
  .nav, .ra-toc, .ra-progress, .footer, .cta, .ambient, .ra-share, .ra-code-bar .copy { display: none !important; }
  .ra-layout { grid-template-columns: 1fr; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
