/* Gooaye Research — kami-inspired design system */

:root {
  --parchment:    #f5f4ed;
  --ivory:        #faf9f5;
  --warm-sand:    #e8e6dc;
  --brand:        #1B365D;
  --brand-light:  #2D5A8A;
  --near-black:   #141413;
  --charcoal:     #4d4c48;
  --olive:        #5e5d59;
  --stone:        #87867f;
  --border-cream: #e8e5da;
  --border-warm:  #e0ddd2;
  --serif: Charter, Georgia, "Noto Serif TC", "Source Han Serif TC", Palatino, serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--serif);
  background: var(--parchment);
  color: var(--near-black);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Navigation ── */
.breadcrumb {
  margin-bottom: 32px;
  font-size: 13px;
}
.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ── Report Header ── */
.report-header {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.episode-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.channel-tag {
  background: var(--brand);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.date { color: var(--stone); font-size: 13px; }

h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--near-black);
  line-height: 1.3;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.yt-link {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 500;
}
.yt-link:hover { text-decoration: underline; }
.stock-count { color: var(--stone); }

/* ── Sections ── */
section { margin-bottom: 48px; }
h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--border-cream);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ── Top Picks ── */
.top-picks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: 6px;
  padding: 12px 16px;
}
.rank {
  width: 24px;
  height: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ticker-name { flex: 1; font-size: 15px; }
.signal-badge { font-size: 13px; font-weight: 600; }
.upside-pct { font-size: 14px; font-weight: 600; font-family: var(--mono); }

/* ── Conviction Table ── */
.table-wrapper { overflow-x: auto; }

.conviction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.conviction-table th {
  background: var(--brand);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}
.conviction-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-cream);
  vertical-align: top;
}
.conviction-table tr:hover td { background: var(--ivory); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.badge-bullish  { background: #dcfce7; color: #166534; }
.badge-bearish  { background: #fee2e2; color: #991b1b; }
.badge-neutral  { background: #f3f4f6; color: #374151; }
.badge-watching { background: #fef3c7; color: #92400e; }

/* ── Analysis ── */
.analysis-content {
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: 6px;
  padding: 20px 24px;
}
.analysis-text {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.8;
}

/* ── Episode List (index) ── */
.site-header {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.site-header h1 { font-size: 24px; }
.subtitle { color: var(--stone); font-size: 14px; margin-top: 6px; }

.episode-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.episode-list th {
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}
.episode-list td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-cream);
}
.episode-list tr:hover td { background: var(--ivory); }
.episode-list a { color: var(--brand-light); text-decoration: none; }
.episode-list a:hover { text-decoration: underline; }

/* ── Footer ── */
.report-footer, .site-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-cream);
  font-size: 12px;
  color: var(--stone);
}

/* ── Archive Index ── */
body.archive-page {
  max-width: 1180px;
  padding: 34px 24px 72px;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border-bottom: 2px solid var(--near-black);
  padding-bottom: 26px;
  margin-bottom: 26px;
}

.eyebrow {
  font-family: var(--mono);
  color: #8a2f27;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.archive-hero h1 {
  font-size: 42px;
  line-height: 1.08;
  margin-bottom: 10px;
}

.archive-stats {
  min-width: 132px;
  border: 1px solid var(--border-warm);
  background: var(--ivory);
  border-radius: 6px;
  padding: 16px 18px;
  text-align: right;
}

.archive-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
  color: #1f6f55;
}

.archive-stats span {
  display: block;
  margin-top: 5px;
  color: var(--stone);
  font-size: 12px;
}

.archive-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--stone);
  font-size: 13px;
}

.manifest-link {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-light);
}

.archive-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-cream);
}

.archive-row[hidden] { display: none; }

.row-date {
  font-family: var(--mono);
  color: var(--olive);
  font-size: 12px;
  padding-top: 5px;
}

.row-kicker {
  color: #8a2f27;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.row-main h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.row-main h2 a {
  color: var(--near-black);
  text-decoration: none;
}

.row-main h2 a:hover { color: var(--brand); }

.row-main p {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #d7d1c1;
  color: var(--olive);
  background: rgba(250, 249, 245, 0.72);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
}

.archive-filter {
  position: sticky;
  top: 20px;
  border-left: 2px solid var(--near-black);
  padding-left: 18px;
}

.archive-filter label {
  display: block;
  margin-bottom: 15px;
}

.archive-filter label span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  color: var(--olive);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-filter input,
.archive-filter select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-warm);
  border-radius: 5px;
  background: var(--ivory);
  color: var(--near-black);
  padding: 8px 10px;
  font: 14px/1.4 var(--serif);
}

.archive-filter input:focus,
.archive-filter select:focus {
  outline: 2px solid #9ab3cc;
  outline-offset: 1px;
}

.archive-filter button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font: 600 13px/1.4 var(--serif);
  cursor: pointer;
}

.archive-filter button:hover { background: var(--brand-light); }

@media (max-width: 760px) {
  body.archive-page { padding: 24px 18px 56px; }
  .archive-hero,
  .archive-shell {
    grid-template-columns: 1fr;
  }
  .archive-hero h1 { font-size: 32px; }
  .archive-stats { text-align: left; }
  .archive-filter {
    position: static;
    order: -1;
    border-left: 0;
    border-top: 2px solid var(--near-black);
    padding: 16px 0 8px;
  }
  .archive-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
