/*
Theme Name: The Stock Pitch (Kadence Child)
Theme URI: https://thestockpitch.com
Template: kadence
Author: The Stock Pitch
Description: Child theme of Kadence. Provides the Teaser/Publisher/Stock page templates and the design system (navy/gold/ice palette). Requires the "Kadence" parent theme and the "The Stock Pitch — Core" plugin (post types + ACF fields).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: thestockpitch
*/


:root {
  --navy: #1B2A4A;
  --navy-dark: #121D34;
  --ice-tint: #EEF3FB;
  --gold: #C9971F;
  --text-muted: #5A6B85;
  --white: #FFFFFF;
  --border: #E2E6EE;
  --fc-bg: #FBEAEA;
  --fc-border: #E8B4B4;
  --fc-text: #5C2323;
  --sell-bg: #FBEAEA;
  --sell-text: #A33B3B;
  --buy-bg: #E8F3EC;
  --buy-text: #2C7A4B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #DDE4EF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

a { color: inherit; }

.ss-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* Header */
.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: var(--navy);
  border-radius: 14px 14px 0 0;
}
.ss-logo, .ss-logo a {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
}
.ss-logo span { color: var(--gold); }
.ss-nav a {
  color: #CADCFC;
  font-size: 13px;
  margin-left: 24px;
  text-decoration: none;
}
.ss-nav a:hover { color: var(--white); }
.ss-frame {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(18,29,52,0.15);
  border: 1px solid var(--border);
}
.ss-page { padding: 40px 44px 50px; }

/* Breadcrumb / meta */
.ss-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.ss-breadcrumb a { text-decoration: none; color: var(--text-muted); }

h1.ss-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.28;
  color: var(--navy);
  margin: 0 0 18px;
}

.ss-meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ss-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.ss-badge.publisher { background: var(--ice-tint); color: var(--navy); }
.ss-badge.date { background: var(--ice-tint); color: var(--text-muted); font-weight: 400; }
.ss-badge.confidence { background: var(--navy); color: var(--white); }
.ss-badge.confidence::before { content: "\25CF"; color: var(--gold); margin-right: 6px; font-size: 10px; }
.ss-badge.status-unsolved { background: #FBEAEA; color: #A33B3B; }

.ss-confidence-why { font-size: 13.5px; color: var(--text-muted); margin: 0 0 30px; padding-left: 2px; }
.ss-confidence-why::before { content: "\24D8"; margin-right: 6px; color: var(--gold); font-weight: 700; }

section.ss-section { margin-bottom: 32px; }
.ss-section h2 {
  font-family: Georgia, serif;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  border-bottom: 2px solid var(--ice-tint);
  padding-bottom: 9px;
  margin: 0 0 15px;
}
.ss-section p { font-size: 15.5px; line-height: 1.68; color: #2b2b2b; margin: 0 0 10px; }

table.ss-clues { width: 100%; border-collapse: collapse; font-size: 13.8px; }
table.ss-clues th { text-align: left; background: var(--ice-tint); color: var(--navy); font-weight: 600; padding: 10px 15px; border: 1px solid var(--border); width: 220px; }
table.ss-clues td { padding: 10px 15px; border: 1px solid var(--border); color: #2b2b2b; }
.ss-fingerprint { background: var(--gold); color: var(--navy-dark); font-weight: 700; padding: 0 4px; border-radius: 3px; }

.ss-reveal-box { background: var(--navy); border-radius: 10px; padding: 26px 28px; color: var(--white); display: flex; align-items: center; gap: 22px; }
.ss-reveal-box .ticker-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; color: var(--gold); font-size: 13px; flex-shrink: 0; text-align: center; }
.ss-reveal-box .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9FB3D6; margin-bottom: 6px; }
.ss-reveal-box .company { font-family: Georgia, serif; font-size: 21px; font-weight: 700; color: var(--white); }
.ss-reveal-box .company .ticker { color: var(--gold); }
.ss-reveal-unsolved { background: var(--ice-tint); border: 1px dashed #B9C6DE; border-radius: 10px; padding: 24px 28px; color: var(--navy); font-size: 15px; }

.ss-callout { background: #FBF4E4; border-left: 3px solid var(--gold); padding: 15px 19px; border-radius: 6px; font-size: 14.5px; color: #3d3116; line-height: 1.6; }

.ss-factcheck { background: var(--fc-bg); border: 1px solid var(--fc-border); border-radius: 10px; padding: 20px 22px; margin-bottom: 34px; }
.ss-factcheck .fc-label { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #A33B3B; margin-bottom: 10px; }
.ss-factcheck .fc-label::before { content: "\26A0"; margin-right: 7px; font-size: 13px; }
.ss-factcheck p { color: var(--fc-text); font-size: 14.5px; margin: 0 0 8px; }

.ss-related { display: flex; gap: 12px; flex-wrap: wrap; }
.ss-related a { display: inline-block; padding: 10px 17px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--navy); text-decoration: none; background: var(--ice-tint); font-weight: 500; }
.ss-related a:hover { background: #E2EAF7; }

/* Archive / cards */
.ss-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.ss-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--white); text-decoration: none; display: block; }
.ss-card:hover { border-color: var(--gold); }
.ss-card h3 { font-family: Georgia, serif; font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.ss-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

.ss-hit-rate { font-family: Georgia, serif; font-weight: 700; color: var(--gold); font-size: 28px; }

/* Submit form */
.ss-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin: 16px 0 6px; }
.ss-form input, .ss-form textarea, .ss-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.ss-form button {
  margin-top: 20px; background: var(--navy); color: var(--white); border: none; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.ss-form button:hover { background: var(--navy-dark); }

@media (max-width: 700px) {
  .ss-page { padding: 28px 20px 36px; }
  .ss-card-grid { grid-template-columns: 1fr; }
  .ss-header { padding: 16px 20px; }
  .ss-nav { display: none; }
}

/* ============================================================
   Kadence integration overrides.
   Our content now sits INSIDE Kadence's own header/footer/content
   container, rather than providing its own outer page chrome.
   ============================================================ */
.ss-wrap { max-width: none; margin: 0; padding: 0; }
.ss-frame { max-width: 900px; margin: 0 auto; box-shadow: none; border: 1px solid var(--border); border-radius: 8px; }
