/* Scoped editorial hierarchy: readable prose, distinct evidence and next actions. */
.editorial-refresh { --editorial-accent: #116657; --editorial-tint: #f1f7f5; }
.editorial-refresh.editorial-beach { --editorial-accent: #805621; --editorial-tint: #faf6ed; }
.editorial-refresh .article-header h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; line-height: 1.3; text-wrap: balance; }
.editorial-refresh:lang(ja) .article-header h1 { letter-spacing: -.025em; line-height: 1.42; word-break: auto-phrase; }
.editorial-refresh .article-header { padding-bottom: 24px; }
.editorial-refresh .article-kicker { color: var(--editorial-accent); letter-spacing: .08em; font-size: .8rem; font-weight: 700; }
.editorial-refresh .article-content > p { font-weight: 400; line-height: 1.95; }
.editorial-refresh .article-content > h2 { margin-top: 56px; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.editorial-refresh .article-content strong { font-weight: 700; }
.editorial-refresh .article-meta { font-weight: 400; font-variant-numeric: tabular-nums; }
.editorial-refresh .article-cover:not(.is-diagram):not(.is-scene):not(.is-editorial-photo):not(.is-landscape-resource) img { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; }
.editorial-refresh .editorial-intro { font-size: 1.1rem; color: var(--ink); }
.editorial-refresh .editorial-panel { margin: 30px 0; padding: clamp(20px, 4vw, 32px); background: var(--editorial-tint); border: 1px solid var(--line); border-radius: 16px; }
.editorial-refresh .editorial-panel h2, .editorial-refresh .editorial-panel h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.5; }
.editorial-refresh .editorial-panel p:last-child { margin-bottom: 0; }
.editorial-refresh .editorial-label { display: block; color: var(--editorial-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.editorial-refresh .editorial-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; counter-reset: step; }
.editorial-refresh .editorial-steps li { margin: 0; padding-top: 15px; border-top: 2px solid var(--editorial-accent); font-size: .94rem; line-height: 1.8; }
.editorial-refresh .editorial-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: Inter, system-ui, sans-serif; font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--editorial-accent); }
.editorial-refresh .editorial-steps strong { display: block; margin-bottom: 5px; color: var(--ink); }
.editorial-refresh .evidence-board { margin: 28px 0; padding: clamp(20px, 4vw, 32px); background: #102b36; color: #fff; border-radius: 18px; }
.editorial-refresh .evidence-board .editorial-label { color: #bde6db; }
.editorial-refresh .evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 20px 0; }
.editorial-refresh .evidence-grid > div { min-width: 0; }
.editorial-refresh .evidence-grid dt { color: #d7e6e9; font-size: .9rem; line-height: 1.6; }
.editorial-refresh .evidence-grid dd { margin: 8px 0 0; }
.editorial-refresh .evidence-number { display: block; font-family: Inter, system-ui, sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.editorial-refresh .evidence-number small { font-size: .45em; margin-left: .12em; }
.editorial-refresh .evidence-detail { display: block; color: #d7e6e9; font-size: .875rem; margin-top: 10px; line-height: 1.7; }
.editorial-refresh .evidence-board p { color: #e3eef0; font-size: .92rem; line-height: 1.85; }
.editorial-refresh .evidence-board figcaption { border-top: 1px solid #44606a; padding-top: 16px; color: #c4d7dc; font-size: .85rem; line-height: 1.8; }
.editorial-refresh .editorial-table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.8; }
.editorial-refresh .editorial-table caption { text-align: left; font-weight: 700; color: var(--ink); padding: 0 0 12px; }
.editorial-refresh .editorial-table th, .editorial-refresh .editorial-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.editorial-refresh .editorial-table th { background: var(--editorial-tint); font-weight: 600; }
.editorial-refresh .editorial-table td { font-variant-numeric: tabular-nums; }
.editorial-refresh .editorial-table-wrap { overflow-x: auto; margin: 24px 0; }
.editorial-refresh .editorial-note { padding-left: 18px; border-left: 3px solid var(--editorial-accent); }
.editorial-refresh .editorial-links { display: flex; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; }
.editorial-refresh a:focus-visible { outline: 3px solid var(--editorial-accent); outline-offset: 4px; }
@media (max-width: 600px) {
 .editorial-refresh .editorial-steps { grid-template-columns: 1fr; gap: 16px; }
 .editorial-refresh .evidence-grid { gap: 20px; }
 .editorial-refresh .article-content > h2 { margin-top: 40px; }
 .editorial-refresh .editorial-table th, .editorial-refresh .editorial-table td { padding: 10px 8px; }
}
@media (max-width: 360px) { .editorial-refresh .evidence-grid { grid-template-columns: 1fr; } }

.article-grid .article-thumb.editorial-thumb { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 22px; min-height: 210px; color: #e3efee; background: #102b36; }
.article-grid .editorial-thumb > span { font-size: .75rem; letter-spacing: .05em; line-height: 1.7; }
.article-grid .editorial-thumb strong { font-family: Inter, system-ui, sans-serif; font-size: 4.25rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.article-grid .editorial-thumb strong small { font-size: 1.5rem; }
.article-grid .article-thumb.editorial-thumb.is-sand { background: #f3eddf; color: #66451c; }

.editorial-refresh .analysis-plan-tool-head { grid-template-columns: minmax(0,1fr); gap: 10px; }
.editorial-refresh .analysis-plan-tool-head > * { min-width: 0; }
.editorial-refresh .analysis-plan-tool-head h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); text-wrap: balance; }
.editorial-refresh .analysis-plan-tool fieldset:nth-child(2) .analysis-plan-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width:600px) { .editorial-refresh .analysis-plan-tool fieldset:nth-child(2) .analysis-plan-options { grid-template-columns: 1fr; } }

/* Shared reading rhythm for every Japanese article and English guide.
   Keep prose selectors separate from interactive results and print worksheets. */
.editorial-refresh .article-content > h3 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  text-wrap: pretty;
}
.editorial-refresh .article-content > p,
.editorial-refresh .article-content > ul > li,
.editorial-refresh .article-content > ol > li {
  font-size: 1.0625rem;
  line-height: 1.95;
  overflow-wrap: break-word;
}
.editorial-refresh:lang(en) .article-content > p,
.editorial-refresh:lang(en) .article-content > ul > li,
.editorial-refresh:lang(en) .article-content > ol > li { line-height: 1.85; }
.editorial-refresh .article-content > p { margin: 18px 0; }
.editorial-refresh .article-content > h2 + p,
.editorial-refresh .article-content > h3 + p { margin-top: 0; }
.editorial-refresh .article-content p a,
.editorial-refresh .comparison-table a,
.editorial-refresh .note-box a { font-weight: 600; }
.editorial-refresh .article-meta { gap: 8px 18px; font-size: .875rem; line-height: 1.7; }
.editorial-refresh .article-content .guide-provenance { font-size: .875rem; line-height: 1.8; }
.editorial-refresh .article-cover figcaption,
.editorial-refresh .article-inline-figure figcaption { font-size: .875rem; line-height: 1.8; }
.editorial-refresh .article-content .source-note { font-size: .875rem; line-height: 1.8; }
.editorial-refresh .comparison-table th { font-size: .875rem; font-weight: 600; }
.editorial-refresh .comparison-table td { font-size: .9375rem; line-height: 1.8; font-variant-numeric: tabular-nums; }
.editorial-refresh :is(.formula-panel strong, .calculator-average output, .calculator-metrics dd, .phase-result output, .editorial-comparison dd strong) { font-variant-numeric: tabular-nums; }
.editorial-refresh :is(.calculator-heading, .practice-builder-heading) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.editorial-refresh :is(.calculator-heading, .practice-builder-heading, .drill-finder-heading) h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.5; text-wrap: balance; }
.editorial-refresh :is(.calculator-heading, .practice-builder-heading, .drill-finder-heading) > * { min-width: 0; }
.editorial-refresh :is(.calculator-kicker, .article-quick-answer-kicker, .worksheet-kicker) { font-weight: 700; letter-spacing: .06em; }
.editorial-refresh .toc strong { font-size: .875rem; font-weight: 700; }
.editorial-refresh .toc a { padding: 12px 0; font-size: .875rem; font-weight: 500; line-height: 1.65; }
.editorial-refresh .comparison-table-wrap:focus-visible { outline: 3px solid var(--editorial-accent); outline-offset: 4px; }
@media screen and (max-width: 900px) {
  .editorial-refresh .article-main { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
}
@media screen and (max-width: 640px) {
  .editorial-refresh .article-header h1 { font-size: clamp(1.75rem, 7.6vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; }
  .editorial-refresh:lang(ja) .article-header h1 { line-height: 1.5; letter-spacing: -.015em; }
  .editorial-refresh .article-content > h2 { font-size: 1.45rem; line-height: 1.55; }
  .editorial-refresh .article-content > h3 { font-size: 1.125rem; }
  .editorial-refresh .article-content > p,
  .editorial-refresh .article-content > ul > li,
  .editorial-refresh .article-content > ol > li { font-size: 1rem; }
  .editorial-refresh .article-heading-keep { white-space: normal; }
  .editorial-refresh .mobile-card-table td { font-size: .9rem; line-height: 1.75; }
  .editorial-refresh .mobile-card-table td::before { font-size: .75rem; font-weight: 600; }
}

/* Grid items share a baseline; prose list spacing must not stagger cards. */
.editorial-refresh .article-quick-answer-list li + li { margin-top: 0; }
@media screen and (max-width: 480px) {
  /* A label above its value leaves enough room for English definitions. */
  .editorial-refresh .mobile-card-table td,
  .editorial-refresh .mobile-card-table td:first-child { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
