@charset "utf-8";
/* CSS Document */

:root {
  /* Color Palette */
  --theme-primary: #4B7095;      /* Deep green for health/veg theme */
  --theme-secondary: #f4a261;    /* Earthy tone */
  --bg-color: #f8f9fa;
  --text-main: #333333;
  --text-muted: #6c757d;
  
  /* Typography */
  --font-tc: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-en: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --line-height-base: 1.8;
}

/* Typography Mixed Setting (Chinese + English) */
.article-wrapper {
  font-family: var(--font-tc);
  color: var(--text-main);
  line-height: var(--line-height-base);
  font-size: 1.2rem;
}


/* Article Layout & Container */
.article-container {
    max-width: 820px;
    background: #ffffff;
    padding: 3rem 4rem;
    border: thin solid #D3D3D3;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0.5rem auto;
}

@media (max-width: 768px) {
  .article-container {
    padding: 1rem 0.5rem;
  }
}

/* Headings */
.article-title {
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  border-bottom: 3px solid var(--theme-primary);
  padding-bottom: 1rem;
  display: inline-block;
}

.article-section-title {
  font-weight: 600;
  color: #212529;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.article-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background-color: var(--theme-secondary);
  border-radius: 2px;
}

/* Paragraphs & Lists */
.article-wrapper p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-list-title {
  font-weight: 600;
  color: var(--theme-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Custom Table Wrapper */
.custom-table-wrapper {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.custom-table-wrapper th {
  background-color: var(--theme-primary);
  color: #ffffff;
  font-weight: 500;
  border: none;
}

/* Callout / Conclusion Box */
.article-callout {
  background-color: #fdfbf7;
  border-left: 5px solid var(--theme-secondary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 3rem;
}
.article-callout h4 {
  color: var(--theme-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}
    
/* Unordered Lists */
.article-wrapper ul.article-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* List Items */
.article-wrapper ul.article-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: var(--line-height-base);
}

/* Custom Bullet Points */
.article-wrapper ul.article-list li::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.65em; /* Vertically aligns with the first line of text */
  width: 8px;
  height: 8px;
  background-color: var(--theme-secondary);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(244, 162, 97, 0.3); /* Subtle glow matching secondary color */
}

/* Last item shouldn't have bottom margin if it's the end of a section */
.article-wrapper ul.article-list li:last-child {
  margin-bottom: 0;
}

/* Nested Lists (Optional: for sub-bullets) */
.article-wrapper ul.article-list ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.article-wrapper ul.article-list ul li::before {
  background-color: transparent;
  border: 2px solid var(--theme-secondary);
}    
    
/* Ordered Lists */
.article-wrapper ol.article-ordered-list {
  list-style: none; /* Hides default browser numbers */
  counter-reset: article-counter; /* Initiates a custom counter */
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Ordered List Items */
.article-wrapper ol.article-ordered-list li {
  position: relative;
  padding-left: 2.5rem; /* Creates space for the circular number */
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: var(--line-height-base);
  counter-increment: article-counter; /* Increments the number for each li */
}

/* Custom Number Badges */
.article-wrapper ol.article-ordered-list li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 0.15rem; /* Vertically aligns with the first line of text */
  width: 26px;
  height: 26px;
  background-color: var(--theme-primary);
  color: #ffffff;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(75, 112, 149, 0.2); /* Subtle glow using primary color */
}

/* Remove bottom margin for the last item */
.article-wrapper ol.article-ordered-list li:last-child {
  margin-bottom: 0;
}

/* Nested Ordered Lists (Uses letters: a, b, c instead of circles) */
.article-wrapper ol.article-ordered-list ol {
  counter-reset: sub-counter;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.article-wrapper ol.article-ordered-list ol li {
  padding-left: 1.5rem;
  counter-increment: sub-counter;
}

.article-wrapper ol.article-ordered-list ol li::before {
  content: counter(sub-counter, lower-alpha) "."; /* a., b., c. */
  background-color: transparent;
  color: var(--theme-primary);
  width: auto;
  height: auto;
  box-shadow: none;
  font-size: 1rem;
}   