/*
Theme Name:   The Cancer Conversations
Theme URI:    https://thecancerconversations.com
Description:  Child theme of Astra for TheCancerConversations.com. Astra supplies base markup and update reliability; all real layout, taxonomy display, and design logic lives in this child theme's functions.php and this stylesheet — not in a page builder or block plugin.
Author:       AOMedix.ai
Template:     astra
Version:      1.2.0
Text Domain:  cancer-conversations-child
*/

/* ==========================================================================
   Brand variables — black / white / grey base, terracotta accent
   ========================================================================== */
:root {
  --cc-black: #1a1a1a;
  --cc-white: #ffffff;
  --cc-grey-light: #f4f4f4;
  --cc-grey-mid: #8a8a8a;
  --cc-grey-dark: #4a4a4a;
  --cc-terracotta: #B8683F;
}

body {
  color: var(--cc-black);
  background: var(--cc-white);
}

a {
  color: var(--cc-terracotta);
}

/* ==========================================================================
   Header / logo lockup
   ========================================================================== */
.site-logo-wordmark {
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.site-logo-tagline {
  color: var(--cc-grey-dark);
  border-top: 1px solid var(--cc-terracotta);
  padding-top: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Homepage panels (3+3+2 topic grid)
   Markup rendered by cc_render_topic_panels() in functions.php
   ========================================================================== */
.cc-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.cc-topic-panel {
  border: 1px solid var(--cc-grey-light);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--cc-black);
  transition: border-color 0.2s ease;
}

.cc-topic-panel:hover {
  border-color: var(--cc-terracotta);
}

.cc-topic-panel-icon {
  color: var(--cc-terracotta);
  display: block;
  margin-bottom: 0.6rem;
}

.cc-topic-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.cc-topic-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-grey-dark);
  line-height: 1.5;
}

.cc-topic-panel:last-child {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .cc-topic-grid {
    grid-template-columns: 1fr;
  }
  .cc-topic-panel:last-child {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Hero — rebalanced: Start Here (wider, dominant) + headline/search (narrower, secondary)
   ========================================================================== */
.cc-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.75rem;
  padding: 1.5rem 1rem;
  align-items: stretch;
}

.cc-start-here-panel {
  display: flex;
}

.cc-hero-secondary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cc-hero-headline {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 0.8rem;
  text-align: left;
}

.cc-hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
}

.cc-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--cc-grey-mid);
}

.cc-hero-search button {
  background: var(--cc-black);
  color: var(--cc-white);
  border: none;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.cc-hero-search button:hover {
  background: var(--cc-terracotta);
}

.cc-start-here {
  padding: 1.25rem 0;
  background: transparent;
  width: 100%;
}

.cc-start-here-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--cc-black);
  margin: 0 0 0.9rem;
}

.cc-start-here ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-start-here li {
  padding: 0.4rem 0;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 0.5px solid var(--cc-grey-mid);
}

.cc-start-here li:last-child {
  border-bottom: none;
}

.cc-start-here a {
  color: var(--cc-terracotta);
  text-decoration: none;
}

.cc-start-here a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .cc-hero {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Spotlight — editorial picks (Spotlight category), newest 6, 2x3 grid
   ========================================================================== */
.cc-spotlight {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.cc-spotlight h2 {
  margin-bottom: 1rem;
}

.cc-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cc-spotlight-card {
  border: 0.5px solid var(--cc-grey-light);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--cc-black);
  transition: border-color 0.2s ease;
}

.cc-spotlight-card:hover {
  border-color: var(--cc-terracotta);
}

.cc-spotlight-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.cc-spotlight-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cc-grey-dark);
  line-height: 1.5;
}

.cc-spotlight-empty {
  color: var(--cc-grey-dark);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .cc-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Cancer-type hub pages (Query Loop grouped by aspect)
   ========================================================================== */
.cc-hub-aspect-section {
  margin: 2.5rem 0;
}

.cc-hub-aspect-section h2 {
  border-bottom: 1px solid var(--cc-grey-light);
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   Our Stories page
   ========================================================================== */
.cc-page-header {
  max-width: 720px;
  margin: 2rem auto 1rem;
  text-align: center;
}

.cc-page-intro {
  color: var(--cc-grey-dark);
}

.cc-stories-list {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.cc-story-card {
  border-bottom: 1px solid var(--cc-grey-light);
  padding: 1.5rem 0;
}

.cc-story-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.cc-story-card h2 a {
  color: var(--cc-black);
  text-decoration: none;
}

.cc-story-card h2 a:hover {
  color: var(--cc-terracotta);
}

/* ==========================================================================
   Native collapsible "See all cancer types" — no JS
   ========================================================================== */
.cc-collapsible summary {
  cursor: pointer;
  color: var(--cc-terracotta);
  font-weight: 600;
}
