:root {
  --color-brand: #92400e;
  --color-cta: #16a34a;
  --color-brand-light: #fef3c7;
  --color-brand-pale: #fdf8f3;
  --text-dark: #222;
  --text-muted: #666;
  --border: #ddd;
  --border-light: #e8e0d8;
  --bg-card: #fafaf8;
  --bg-section: #f7f4f0;
  --font-main: 'Trebuchet MS', Helvetica, sans-serif;
}

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

html, body {
  overflow-x: hidden;
}

* {
  font-family: var(--font-main);
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
}

.article-main {
  width: 100%;
  background: #fff;
}

.article-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--color-brand);
}

.article-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.45);
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 56px 40px;
}

.article-hero__content {
  max-width: 860px;
  width: 100%;
}

.article-hero__meta {
  font-size: 13px;
  color: #e0cfc0;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.article-hero__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.7;
}

.article-hero__lead {
  font-size: 1.1rem;
  color: #f0e6da;
  font-weight: 400;
  margin: 0;
  max-width: 680px;
  line-height: 1.7;
}

.article-layout {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-body {
  width: 100%;
}

.article-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-brand-light);
  border-left: 4px solid var(--color-brand);
  padding: 18px 20px;
  margin: 36px 0;
  border-radius: 0 6px 6px 0;
}

.article-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-brand);
}

.article-disclaimer p {
  font-size: 14px;
  color: #5a3e28;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.prose-section {
  margin-bottom: 52px;
}

.prose-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 20px 0;
  padding-top: 8px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
  line-height: 1.7;
}

.prose-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 14px 0;
  line-height: 1.7;
}

.prose-section p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.prose-section ul, .prose-section ol {
  padding-left: 24px;
  margin-bottom: 20px;
  margin-top: 4px;
}

.prose-section li {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.7;
}

.prose-section em {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.comparison-card--featured {
  background: var(--color-brand-pale);
  border-color: var(--color-brand);
  border-width: 2px;
}

.comparison-card__icon {
  margin-bottom: 14px;
  color: var(--color-brand);
}

.comparison-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 10px;
  line-height: 1.7;
}

.comparison-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.comparison-card__spec {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 0;
}

.info-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 8px;
  padding: 22px 24px;
  margin: 28px 0;
}

.info-highlight svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.info-highlight svg,
.info-highlight strong,
.info-highlight p,
.info-highlight div,
.info-highlight span {
  color: #fff;
}

.info-highlight strong {
  display: inline;
  font-weight: 700;
  font-size: 1rem;
}

.info-highlight div {
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.7;
}

.info-highlight--secondary {
  background: var(--color-brand-light);
  color: #5a3e28;
}

.info-highlight--secondary svg,
.info-highlight--secondary strong,
.info-highlight--secondary div,
.info-highlight--secondary span {
  color: #5a3e28;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #fff;
}

.data-table caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.data-table th {
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  line-height: 1.7;
}

.data-table td {
  padding: 11px 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  font-weight: 400;
  line-height: 1.7;
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) td {
  background: var(--bg-section);
}

.data-table--compare th,
.data-table--compare td {
  text-align: center;
}

.data-table--compare th:first-child,
.data-table--compare td:first-child {
  text-align: left;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin: 32px 0;
  text-align: center;
}

.metric-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.metric-circle {
  display: block;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
  line-height: 1.7;
  max-width: 160px;
  margin: 0;
}

.filters-section {
  margin: 24px 0;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--bg-section);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.filter-btn--active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
  font-weight: 700;
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.criterion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.2s;
}

.criterion-item:hover {
  border-color: var(--color-brand);
}

.criterion-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.criterion-item__header strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
  min-width: 120px;
  line-height: 1.7;
}

.criterion-item__cat {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 400;
  background: #fff;
}

.criterion-item p {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.criterion-item.hidden {
  display: none;
}

.regulation-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  border-left: 3px solid var(--color-brand);
  padding-left: 0;
}

.reg-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  padding: 0 0 28px 0;
  position: relative;
}

.reg-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-brand);
}

.reg-item__date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brand);
  padding: 4px 20px 0 24px;
  line-height: 1.7;
}

.reg-item__content {
  padding: 0 0 0 0;
}

.reg-item__content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.7;
}

.reg-item__content p {
  font-size: 0.93rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.gallery-item:hover {
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.15);
  border-color: var(--color-brand);
}

.gallery-item__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item__caption {
  padding: 14px 16px;
}

.gallery-item__caption strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 6px;
  line-height: 1.7;
}

.gallery-item__caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 5, 0.72);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay--open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 740px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: #7c3410;
}

.modal-box__body {
  padding: 20px 24px 24px;
}

.modal-box__body strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 10px;
  line-height: 1.7;
}

.modal-box__body p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--color-brand);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  background: #fff;
  transition: background-color 0.2s;
  line-height: 1.7;
}

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

.faq-item__question:hover {
  background: var(--color-brand-light);
}

.faq-item[open] .faq-item__question {
  background: var(--color-brand-pale);
  color: var(--color-brand);
}

.faq-item__answer {
  padding: 0 20px 20px 50px;
  background: #fff;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

.checklist-block {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
}

.checklist-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.checklist-item span {
  line-height: 1.7;
}

.article-cta-block {
  background: var(--color-brand);
  border-radius: 10px;
  padding: 40px 36px;
  margin: 48px 0 0;
  text-align: center;
}

.article-cta-block__content strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-cta-block__content p {
  font-size: 1rem;
  color: #f0e6da;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.7;
}

.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-main);
}

.btn-cta:hover {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

@media (max-width: 768px) {
  .article-hero {
    height: auto;
    min-height: 360px;
  }

  .article-hero__overlay {
    padding: 32px 20px;
    align-items: flex-end;
  }

  .article-hero__title {
    font-size: 1.5rem;
  }

  .article-hero__lead {
    font-size: 0.97rem;
  }

  .article-layout {
    width: 100%;
    padding: 0 16px 40px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .reg-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .reg-item__date {
    padding: 0 0 0 24px;
  }

  .reg-item__content {
    padding-left: 24px;
  }

  .filters-bar {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .checklist-block {
    padding: 18px 16px;
  }

  .article-cta-block {
    padding: 28px 18px;
  }

  .article-cta-block__content strong {
    font-size: 1.1rem;
  }

  .faq-item__answer {
    padding-left: 20px;
  }

  .data-table th,
  .data-table td {
    font-size: 0.83rem;
    padding: 9px 10px;
  }

  .prose-section h2 {
    font-size: 1.25rem;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-box__body {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 300px;
  }

  .article-hero__title {
    font-size: 1.25rem;
  }

  .article-hero__overlay {
    padding: 20px 14px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .metric-circle {
    width: 100px;
    height: 100px;
  }

  .prose-section h2 {
    font-size: 1.1rem;
  }

  .comparison-card {
    padding: 18px 14px;
  }

  .article-cta-block {
    padding: 22px 14px;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
