/* ================================================================
   BLACKOPS FINANCE - screen.css
   Locked design system. All colors reference :root tokens.
   Class prefix: thp-  (avoids collision with Ghost cards.min.css)
   ================================================================ */

:root {
  --bg:          #111827; /* main background (dominant surface) */
  --bg-deep:     #0C1015; /* deep bands: header, footer, wells */
  --panel:       #141f2b; /* intel callout / card surface */
  --panel-alert: #120a0a; /* alert callout surface */
  --line:        #1f2937; /* borders */
  --line-soft:   #1a2332; /* softer borders */
  --text:        #E6E9ED; /* body text (lifted for stronger contrast) */
  --text-strong: #ffffff; /* bold text */
  --text-2:      #AAB3BF; /* secondary text (lifted, ~7:1 on --bg) */
  --muted:       #8B95A2; /* muted text / footer meta (lifted, passes AA) */
  --green:       #2E9B64; /* brand green: fills / buttons / borders / large headings */
  --green-text:  #40BA7E; /* brighter green for small text: labels, links (better contrast) */
  --green-deep:  #114a2c; /* accent border, dim */
  --red:         #C8102E; /* alert, banners */
  --alert-text:  #f5c6cb; /* alert callout text */
  --legal:       #8B95A2; /* footer legal text (lifted, passes AA) */
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --text-wrap: 850px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.thp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }
.thp-mono { font-family: var(--mono); }
.thp-text { max-width: var(--text-wrap); }

/* skip link for a11y */
.thp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--bg-deep);
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  padding: 10px 16px;
}
.thp-skip:focus { left: 12px; top: 12px; }

/* focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

/* ================ CLASSIFICATION BANNER ================ */
.thp-banner {
  background: var(--red);
  text-align: center;
  padding: 9px 30px 8px;
}
.thp-banner-stamp {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 6px; text-transform: uppercase; color: #ffffff;
}
.thp-banner-code {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: #ffffff;
  margin-top: 3px;
}

/* ================ HEADER / NAV ================ */
.thp-header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.thp-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.thp-brand { display: flex; align-items: center; gap: 12px; }
.thp-logo {
  font-family: var(--sans); font-size: 21px; font-weight: 600;
  letter-spacing: 6px; text-transform: uppercase;
}
.thp-logo-mark { color: var(--green); }
.thp-logo-img { height: 33px; width: auto; display: block; }
.thp-foot-logo { height: 40px; margin-bottom: 16px; }
.thp-nav-mid {
  display: flex; gap: 32px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1px;
  text-transform: uppercase;
}
.thp-nav-mid a { color: var(--text-2); }
.thp-nav-mid a:hover, .thp-nav-mid a.active { color: var(--text-strong); }
.thp-nav-right { display: flex; align-items: center; gap: 18px; }

/* buttons */
.thp-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.thp-btn-outline { color: var(--green); background: transparent; border-color: var(--green); }
.thp-btn-outline:hover { background: var(--green); color: var(--bg-deep); }
.thp-btn-solid { color: var(--bg-deep); background: var(--green); font-weight: 700; border-color: var(--green); }
.thp-btn-solid:hover { background: #35b374; border-color: #35b374; }

/* burger */
.thp-burger {
  display: none; background: none; border: 1px solid var(--line);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.thp-burger span, .thp-burger span::before, .thp-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.thp-burger span::before { position: absolute; top: -6px; }
.thp-burger span::after  { position: absolute; top: 6px; }
.thp-burger.is-open span { background: transparent; }
.thp-burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.thp-burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

.thp-mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
  padding: 12px 30px 20px;
}
.thp-mobile-menu.is-open { display: flex; }
.thp-mobile-menu a {
  font-family: var(--mono); font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-2);
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.thp-mobile-menu a:hover { color: var(--text-strong); }

/* ================ SECTIONS ================ */
.thp-sec { padding: 72px 0; border-top: 1px solid var(--line); }
.thp-sec-deep { background: var(--bg-deep); }
.thp-sec-first { border-top: none; }
.thp-headwrap { margin-bottom: 34px; }
.thp-pill {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green-text); border: 1px solid var(--green-deep);
  padding: 6px 12px; margin-bottom: 18px;
}
.thp-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-2);
}
.thp-h1 {
  font-family: var(--mono); font-weight: 700; font-size: 52px;
  line-height: 1.0; letter-spacing: -1px; color: var(--text-strong);
}
.thp-h2 {
  font-family: var(--mono); font-weight: 700; font-size: 34px;
  line-height: 1.08; letter-spacing: -.5px; color: var(--text-strong);
}
.thp-h3 {
  font-family: var(--mono); font-weight: 700; font-size: 18px;
  line-height: 1.35; letter-spacing: -.2px; color: var(--text-strong);
}
.thp-lead { font-size: 16px; color: var(--text-2); line-height: 1.5; margin-top: 14px; }

/* ================ HERO ================ */
.thp-hero { padding: 56px 0 64px; }
.thp-hero-strip {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.thp-hero-strip .thp-op { color: var(--green); }
.thp-hero-strip .thp-eyes { color: var(--red); }
.thp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 48px; align-items: start; margin-top: 46px;
}
.thp-hero h1 { margin-bottom: 22px; }
.thp-hero-sub {
  font-family: var(--mono); font-size: 16px; letter-spacing: .3px;
  color: var(--text-2); line-height: 1.5; margin-bottom: 30px; max-width: 460px;
}

/* dossier card visual */
.thp-doc {
  background: linear-gradient(180deg, var(--panel), var(--bg-deep));
  border: 1px solid var(--line);
}
.thp-doc-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px;
}
.thp-doc-row:last-child { border-bottom: none; }
.thp-doc-head { background: rgba(255,255,255,.02); }
.thp-doc-head .thp-doc-l { color: var(--green-text); }
.thp-doc-l { color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.thp-doc-v { color: var(--text); text-align: right; line-height: 1.55; text-transform: uppercase; }
.thp-doc-foot { color: var(--muted); }
.thp-doc-foot .thp-doc-l { display: flex; align-items: center; gap: 8px; }
.thp-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  display: inline-block; box-shadow: 0 0 8px var(--green);
}
.thp-dot-pulse { animation: thp-pulse 2s infinite; }
@keyframes thp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ================ SIGNUP FORM (Ghost Portal) ================ */
.thp-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 460px; }
.thp-form input[type="email"] {
  flex: 1; min-width: 200px; background: var(--bg-deep);
  border: 1px solid var(--line); color: var(--text);
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  padding: 14px 16px; min-height: 48px;
}
.thp-form input::placeholder { color: var(--muted); }
.thp-form input:focus { outline: none; border-color: var(--green); }
.thp-form .thp-btn-solid { min-width: 160px; }
.thp-success, .thp-error {
  width: 100%; font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
  margin-top: 4px; display: none;
}
.thp-success { color: var(--green); }
.thp-error { color: var(--red); }
.thp-form.success .thp-success { display: block; }
.thp-form.error .thp-error { display: block; }

/* ================ SPLIT / THEATER SWITCHER ================ */
.thp-split {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 52px; align-items: start;
}
.thp-theaters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.thp-theater-tab {
  background: none; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2);
  padding: 9px 13px; min-height: 40px; transition: .18s ease;
}
.thp-theater-tab:hover { color: var(--text); border-color: var(--muted); }
.thp-theater-tab.active { color: var(--bg-deep); background: var(--green); border-color: var(--green); font-weight: 700; }
.thp-theater-panel {
  border: 1px solid var(--line); background: var(--panel);
  padding: 26px 28px; min-height: 190px;
}
.thp-theater-panel .thp-theater-name {
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green-text); margin-bottom: 12px;
}
.thp-theater-panel p { color: var(--text); font-size: 15px; line-height: 1.5; }

/* intel callout */
.thp-callout {
  border-left: 3px solid var(--green); background: var(--panel);
  padding: 18px 26px; margin: 24px 0; color: var(--text);
  font-size: 15px; line-height: 1.6;
}
.thp-callout-alert { border-left-color: var(--red); background: var(--panel-alert); color: var(--alert-text); }

/* ================ STEPS ================ */
.thp-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px;
}
.thp-step { border: 1px solid var(--line); background: var(--panel); padding: 26px 24px 24px; }
.thp-step-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--green-text);
  margin-bottom: 14px;
}
.thp-step h3 { margin-bottom: 10px; }
.thp-step p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* ================ STAT STRIP ================ */
.thp-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.thp-stat { border: 1px solid var(--line); padding: 28px 24px; }
.thp-stat-num {
  font-family: var(--mono); font-weight: 700; color: var(--text-strong);
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; line-height: 1;
  margin-bottom: 10px;
}
.thp-stat-num span { color: var(--green); }
.thp-stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }

/* ================ POSTS GRID ================ */
.thp-posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; margin-top: 4px; }
.thp-post {
  background: var(--panel); border: 1px solid var(--line);
  padding: 24px; display: flex; flex-direction: column; transition: .18s ease;
}
.thp-post:hover { border-color: var(--green); transform: translateY(-3px); }
.thp-post-meta {
  display: inline-block; align-self: flex-start;
  border: 1px solid var(--line); padding: 6px 10px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-2);
}
.thp-post h3 { margin-bottom: 12px; }
.thp-post h3 a:hover { color: var(--green-text); }
.thp-post-excerpt { color: var(--text-2); font-size: 14.5px; line-height: 1.5; flex: 1; margin-bottom: 22px; }
.thp-post-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.thp-post-by { font-family: var(--mono); font-size: 11px; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.thp-post-link { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--green-text); }
.thp-post-link:hover { color: #35b374; }
.thp-empty {
  grid-column: 1 / -1; border: 1px dashed var(--line); padding: 40px;
  text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-2);
}
.thp-center { text-align: center; margin-top: 36px; }

/* ================ ARCHIVE ================ */
.thp-archive-list { display: flex; flex-direction: column; }
.thp-archive-item {
  display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 24px;
  align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line);
}
.thp-archive-item:hover .thp-archive-title { color: var(--green-text); }
.thp-archive-date { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--text-2); text-transform: uppercase; }
.thp-archive-title { font-family: var(--mono); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--text-strong); }
.thp-archive-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.45; margin-top: 6px; }
.thp-archive-read { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ================ CTA PARTIAL ================ */
.thp-cta { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 72px 0; }
.thp-cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.thp-cta h2 { margin-bottom: 14px; }
.thp-cta p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin-bottom: 28px; }
.thp-cta .thp-form { justify-content: center; margin: 0 auto; }

/* ================ POST PAGE ================ */
.thp-article { padding: 56px 0 72px; }
.thp-article-head { max-width: var(--text-wrap); margin: 0 auto 30px; padding: 0 30px; }
.thp-article-metaline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 18px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.thp-article-metaline .thp-sep { color: var(--muted); }
.thp-article-title { font-family: var(--mono); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.5px; color: var(--text-strong); }
.thp-article-excerpt { font-size: 18px; color: var(--text-2); line-height: 1.5; margin-top: 18px; }
.thp-article-image {
  max-width: var(--text-wrap); margin: 0 auto 30px;
  border: 1px solid var(--line);
}
.thp-article-image img { width: 100%; max-height: 460px; object-fit: cover; }

/* body content: padding top 0, sides 30px desktop */
.thp-article-body { max-width: var(--text-wrap); margin: 0 auto; padding: 0 30px; }
.gh-content { padding-top: 0; }
.gh-content > * { margin-bottom: 24px; }
.gh-content > *:last-child { margin-bottom: 0; }
.gh-content p { font-size: 18px; line-height: 1.7; color: var(--text); }
.gh-content p b, .gh-content p strong { color: var(--text-strong); font-weight: 600; }
.gh-content a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
.gh-content h2 { font-family: var(--mono); font-weight: 700; font-size: 24px; letter-spacing: -.3px; color: var(--text-strong); margin-top: 40px; }
.gh-content h3 { font-family: var(--mono); font-weight: 700; font-size: 19px; letter-spacing: -.2px; color: var(--green-text); margin-top: 32px; }
.gh-content ul, .gh-content ol { padding-left: 22px; }
.gh-content li { font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.gh-content blockquote {
  border-left: 3px solid var(--green); background: var(--panel);
  padding: 16px 24px; color: var(--text); font-size: 17px; line-height: 1.6;
}
.gh-content hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
.gh-content img { border: 1px solid var(--line); margin: 0 auto; }
.gh-content figcaption {
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
  color: var(--muted); text-align: center; margin-top: 8px;
}
/* Ghost wide/full cards break past text width */
.gh-content .kg-width-wide { max-width: 1040px; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.thp-post-nav {
  max-width: var(--text-wrap); margin: 48px auto 0; padding-top: 28px;
  border-top: 1px solid var(--line); text-align: center;
}

/* static page */
.thp-page-body { max-width: var(--text-wrap); margin: 0 auto; padding: 56px 30px 72px; }
.thp-page-body .thp-article-title { margin-bottom: 24px; }

/* ================ FOOTER ================ */
.thp-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.thp-foot-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 48px; align-items: start; }
.thp-foot-brand .thp-logo { margin-bottom: 16px; }
.thp-foot-tag { color: var(--text-2); font-size: 14px; line-height: 1.5; max-width: 340px; }
.thp-foot-menu h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.thp-foot-menu a {
  display: flex; align-items: center; gap: 8px; color: var(--text-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 12px;
}
.thp-foot-menu a::before { content: "›"; color: var(--green-text); }
.thp-foot-menu a:hover { color: var(--green-text); }
.thp-foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.thp-foot-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.thp-foot-legal a { color: var(--muted); }
.thp-foot-legal a:hover { color: var(--text-2); }

/* pagination */
.thp-pagination {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: var(--wrap); margin: 0 auto; padding: 40px 30px 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.thp-pagination a { color: var(--green-text); }
.thp-pagination .thp-page-count { color: var(--text-2); }

/* ================ RESPONSIVE ================ */
@media (max-width: 900px) {
  .thp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .thp-split { grid-template-columns: 1fr; gap: 36px; }
  .thp-steps { grid-template-columns: 1fr; }
  .thp-stats { grid-template-columns: 1fr; }
  .thp-posts { grid-template-columns: 1fr; }
  .thp-foot-top { grid-template-columns: 1fr; gap: 32px; }
  .thp-nav-mid { display: none; }
  .thp-nav-right .thp-btn-outline { display: none; }
  .thp-burger { display: inline-flex; }
  .thp-h1 { font-size: 40px; }
  .thp-h2 { font-size: 27px; }
  .thp-article-title { font-size: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .thp-wrap { padding: 0 20px; }
  .thp-banner { padding-left: 20px; padding-right: 20px; }
  .thp-sec { padding: 52px 0; }
  .thp-hero { padding: 40px 0 48px; }
  .thp-h1 { font-size: 33px; }
  .thp-logo-img { height: 28px; }
  .thp-foot-logo { height: 34px; }
  .thp-hero-sub { font-size: 15px; }
  .thp-article-body { padding: 0 20px; }
  .thp-article-head, .thp-page-body { padding-left: 20px; padding-right: 20px; }
  .thp-article-head { margin-bottom: 20px; }
  .thp-page-body { padding-top: 40px; }
  .thp-article-image { margin-bottom: 20px; }
  .gh-content p, .gh-content li { font-size: 17px; }
  .thp-archive-item { grid-template-columns: 1fr; gap: 6px; }
  .thp-archive-read { display: none; }
  .thp-form .thp-btn-solid, .thp-form input[type="email"] { width: 100%; flex: none; }
  .thp-hero-strip { flex-direction: column; gap: 8px; }
  .thp-foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .thp-post:hover, .thp-brief:hover { transform: none; }
}
