/* ============================================================
   SHARED CSS FOR CONDITION LANDING PAGES
   Add this to your main stylesheet or include in base.layout.tmpl
   ============================================================ */

/* ── Image Placeholders (REMOVE when real images are added) ── */
.img-placeholder {
  background: #e8ede6;
  border: 2px dashed #a5b89f;
  border-radius: 8px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7e66;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  width: 100%;
}

.img-placeholder--small {
  min-height: 180px;
}

/* ── Layout utilities ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.bg-light {
  background: #f7f9f5;
}

/* ── Hero ── */
.condition-hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.8rem;
  color: #5a7a52;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* .btn-primary {
  background: #5a7a52;
  color: #fff;
}

.btn-primary:hover {
  background: #3e5a38;
} */

.btn-outline {
  background: transparent;
  color: #5a7a52;
  border: 2px solid #5a7a52;
}

.btn-outline:hover {
  background: #5a7a52;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ── Sections ── */
section {
  padding: 3.5rem 0;
}

section h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

section p {
  line-height: 1.75;
  color: #333;
}

.note {
  font-size: 1.2rem;
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

/* ── Condition Cards ── */
.condition-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cond-card {
  background: #fff;
  border: 1px solid #e0e8db;
  border-radius: 8px;
  padding: 1.5rem;
}

.cond-card h3 {
  font-size: 1.5rem;
  color: #3e5a38;
  margin-bottom: 0.5rem;
}

.cond-card p {
  font-size: 1.3rem;
}

.icon-placeholder {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* ── Symptom / Condition Grids ── */
.symptom-grid,
.condition-list,
.two-col-list ul {
  list-style: none;
  padding: 0;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.symptom-grid li,
.condition-list li {
  background: #edf2eb;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 1.3rem;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-top: 1rem;
}

.two-col-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #e8ede6;
  font-size: 1.3rem;
}

/* ── Help Grid ── */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.help-steps {
  padding-left: 1.25rem;
}

.help-steps li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.help-steps-list {
  padding-left: 1.25rem;
}

.help-steps-list li {
  margin-bottom: 0.6rem;
}

/* ── Timeline ── */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.timeline-list {
  padding-left: 1.25rem;
}

.timeline-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* ── FAQs ── */
.faq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid #d9e4d5;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #2d4a27;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.2rem;
  color: #5a7a52;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0.75rem 1.25rem 1rem;
  background: #f7f9f5;
  margin: 0;
  border-top: 1px solid #d9e4d5;
  font-size: 1.2rem;
}

/* ── Useful Links ── */
.links-intro {
  color: #555;
  margin-bottom: 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.link-group h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #3e5a38;
}

.link-group ul {
  list-style: none;
  padding: 0;
}

.link-group li {
  margin-bottom: 0.4rem;
}

.link-group a {
  color: #5a7a52;
  text-decoration: underline;
  font-size: 1.3rem;
}

.link-group a:hover {
  color: #2d4a27;
}

/* ── CTA Banner ── */
.cta-banner {
  background: #3e5a38;
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #c8dcc4;
  margin-bottom: 1.5rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: #3e5a38;
}

.cta-banner .btn-primary:hover {
  background: #edf2eb;
}

.cta-banner .btn-outline {
  color: #fff;
  border-color: #fff;
}

.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Condition Table (autoimmune) ── */
.condition-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #d9e4d5;
  border: 1px solid #d9e4d5;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.cond-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: #fff;
  padding: 1.25rem;
  align-items: start;
}

.cond-row:nth-child(even) {
  background: #f7f9f5;
}

.cond-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c8dcc4;
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cond-name h3 {
  font-size: 1.5rem;
  color: #2d4a27;
}

.cond-detail p {
  font-size: 1.3rem;
  margin: 0;
}

/* ── Duration Grid ── */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.duration-item {
  background: #fff;
  border: 1px solid #d9e4d5;
  border-radius: 6px;
  padding: 1rem;
}

.duration-item h4 {
  color: #3e5a38;
  margin-bottom: 0.3rem;
}

.duration-item p {
  font-size: 1.3rem;
}

/* ── Approach Grid ── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.approach-item {
  background: #fff;
  border-left: 4px solid #5a7a52;
  padding: 1rem 1.25rem;
}

.approach-item h3 {
  font-size: 1rem;
  color: #2d4a27;
  margin-bottom: 0.3rem;
}

/* ── Age cards ── */
.age-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.age-card {
  border: 1px solid #d9e4d5;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  text-align: center;
}

.age-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.age-card h3 {
  font-size: 1.1rem;
  color: #2d4a27;
  margin-bottom: 0.5rem;
}

/* ── Age split (skin) ── */
.age-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.age-header img,
.age-header .img-placeholder {
  margin-bottom: 1rem;
}

.age-group h3 {
  color: #3e5a38;
  margin-bottom: 0.75rem;
}

.condition-list li {
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
  border-left: 3px solid #a5b89f;
}

/* ── Pull quote ── */
.pull-quote {
  border-left: 4px solid #5a7a52;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #f7f9f5;
  font-style: italic;
  color: #444;
}

.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 1.3rem;
  color: #5a7a52;
}

/* ── Cycle grid ── */
.cycle-grid,
.fever-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Insight list ── */
.insight-list {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.insight-list li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

/* ── Damage grid ── */
.damage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.damage-item {
  background: #fff;
  border: 1px solid #d9e4d5;
  border-radius: 8px;
  padding: 1.5rem;
}

.damage-item h3 {
  color: #3e5a38;
}

/* ── Note content block ── */
.note-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.note-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ── Assoc grid ── */
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.assoc-item {
  background: #edf2eb;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 1.3rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {

  .hero-grid,
  .help-grid,
  .timeline-grid,
  .two-col-list,
  .cycle-grid,
  .fever-grid,
  .age-split,
  .cond-row,
  .damage-grid {
    grid-template-columns: 1fr;
  }

  .cond-row {
    grid-template-columns: 1fr;
  }

  .cond-num {
    font-size: 1rem;
  }
}