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

html,
body {
  overflow-x: hidden;
}

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

:root {
  --color-brand: #D4A373;
  --color-cta: #6E44FF;
  --color-bg: #F5E6D8;
  --color-text: #2B2B2B;
  --color-muted: #7A7A7A;
  --color-border: #E0D0C3;
}

.article-main {
  background: var(--color-bg);
  min-height: 60vh;
}

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-body {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 0 64px;
}

.article-intro-block {
  border-left: 6px solid var(--color-brand);
  padding-left: 24px;
  margin-bottom: 40px;
}

.article-intro-block p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.2em;
}

.article-intro-block p:last-child {
  margin-bottom: 0;
}

.reading-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 48px;
  overflow: hidden;
}

.reading-progress-bar__inner {
  height: 100%;
  width: 0%;
  background: var(--color-brand);
  transition: width 0.1s;
}

.article-section {
  margin-bottom: 56px;
}

.article-section h2 {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 400;
  margin: 0 0 0.8em;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--color-brand);
}

.article-section h3 {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 400;
  margin: 1.4em 0 0.6em;
}

.article-section p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.4em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

.article-callout {
  margin: 32px 0;
}

.article-callout blockquote {
  border-left: 6px solid var(--color-brand);
  padding: 16px 20px 16px 24px;
  margin: 0;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.article-callout blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.7;
}

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

.technique-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 3px 3px 0 var(--color-border);
}

.step-num {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-brand);
  line-height: 1;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content strong {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.7;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.7;
}

.timeline-container {
  margin: 32px 0;
  padding-left: 20px;
  border-left: 2px solid var(--color-border);
}

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-brand);
}

.timeline-age {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85em;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 4px;
}

.timeline-title {
  display: block;
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.7;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

.tabs-container {
  margin: 32px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--color-border);
}

.tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.tabs-nav {
  display: flex;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.tab-label {
  padding: 14px 20px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  line-height: 1.7;
  transition: color 0.2s, border-color 0.2s;
}

.tab-label:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

#tab-montessori:checked ~ .tabs-nav .tab-label[for="tab-montessori"],
#tab-faber:checked ~ .tabs-nav .tab-label[for="tab-faber"],
#tab-nnp:checked ~ .tabs-nav .tab-label[for="tab-nnp"] {
  color: var(--color-text);
  border-bottom-color: var(--color-brand);
}

.tabs-content {
  padding: 24px;
}

.tab-panel {
  display: none;
}

#tab-montessori:checked ~ .tabs-content #panel-montessori,
#tab-faber:checked ~ .tabs-content #panel-faber,
#tab-nnp:checked ~ .tabs-content #panel-nnp {
  display: block;
}

.tab-panel h3 {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 400;
  margin: 0 0 0.8em;
}

.tab-panel p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.2em;
}

.article-list {
  margin: 0 0 1.4em 0;
  padding-left: 24px;
  list-style: disc;
}

.article-list li {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.calculator-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  margin: 28px 0;
  box-shadow: 4px 4px 0 var(--color-border);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.7;
}

.calc-slider {
  width: 100%;
  accent-color: var(--color-brand);
  height: 4px;
  cursor: pointer;
}

.calc-row output {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.calc-result {
  text-align: center;
  padding: 20px;
  background: var(--color-bg);
  border-radius: 8px;
  margin-bottom: 24px;
}

.calc-result__number {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-brand);
  line-height: 1;
  margin-bottom: 6px;
}

.calc-result__label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.calc-result__appreciation {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 1rem;
  color: var(--color-text);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.7;
  min-height: 1.4em;
}

.calc-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calc-reference-table {
  width: 100%;
  border-collapse: collapse;
}

.calc-reference-table th,
.calc-reference-table td {
  text-align: left;
  padding: 10px 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.calc-reference-table th {
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-text);
}

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

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 12px 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.comparison-table th {
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-text);
  white-space: nowrap;
}

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

.row-highlight td {
  background: #fff8f0;
  font-weight: 400;
}

.row-highlight td strong {
  font-weight: 700;
  color: var(--color-text);
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
}

.checklist-category {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 3px 3px 0 var(--color-border);
}

.checklist-cat-title {
  display: block;
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.7;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ck-input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.7;
}

.ck-input:checked + label {
  color: var(--color-muted);
  text-decoration: line-through;
}

.article-faq {
  margin-top: 56px;
}

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

.faq-item {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.faq-item h3 {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 400;
  margin: 0 0 12px;
}

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

.article-conclusion {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}

.article-conclusion h2 {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-variant: small-caps;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 400;
  margin: 0 0 0.8em;
}

.article-conclusion p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.4em;
}

.article-conclusion p:last-child {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.article-cta-block p {
  font-family: 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 1.1rem;
  color: #2B2B2B;
  margin-bottom: 20px;
  line-height: 1.7;
  font-style: italic;
}

.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0;
  transition: background-color 0.2s;
}

.btn-cta:hover {
  background: #5530d4;
}

@media (max-width: 768px) {
  .article-layout {
    padding: 0 16px;
  }

  .article-body {
    padding: 32px 0 48px;
  }

  .article-intro-block {
    padding-left: 16px;
    margin-bottom: 28px;
  }

  .article-section {
    margin-bottom: 40px;
  }

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

  .technique-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .technique-step {
    padding: 16px;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-label {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
  }

  .tabs-content {
    padding: 16px;
  }

  .calculator-block {
    padding: 20px 16px;
  }

  .calc-result__number {
    font-size: 2.2rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .checklist-category {
    padding: 16px;
  }

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

  .timeline-container {
    padding-left: 12px;
  }

  .timeline-item {
    padding-bottom: 24px;
    padding-left: 20px;
  }

  .timeline-dot {
    left: -19px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .article-section h2 {
    font-size: 1.1rem;
  }

  .article-section h3 {
    font-size: 1rem;
  }

  .article-section p,
  .tab-panel p,
  .faq-item p {
    font-size: 0.95rem;
  }

  .step-num {
    font-size: 1.5rem;
  }

  .article-hero__content h1 {
    font-size: 1.6rem;
  }

  .article-hero__meta {
    flex-direction: column;
    gap: 8px;
  }

  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    display: none;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .calc-result__number {
    font-size: 1.8rem;
  }
}

/* ===== 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; }
