/* 2026-10-15: shared type sizes requested by the designer.
   Load after the page layout styles. Point sizes are independent of the
   1920-unit artboard scale used for positioning and spacing. */
:root {
  --section-english-size: 48pt;
  --section-japanese-size: 24pt;
  --body-copy-size: 16px;
  --section-outline-height: 60.32px;
}

/* These are the paired section headings, not the large page-title artwork,
   Biography, numbered labels, or the oversized INDOOR VIEW composition. */
#main .section-heading .en:not(.approved-indoor .en),
#main .ar-english,
#main .md-exam-en {
  font-size: var(--section-english-size);
  line-height: 1;
  letter-spacing: normal;
}

#main .section-heading .jp,
#main .ar-heading-exam > span:last-child,
#main .md-exam-heading > span:last-child:not(.md-exam-en) {
  font-size: var(--section-japanese-size);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

/* The approved English letters are outlined SVGs. Give every outline the
   same visible height at its full size, retaining each original aspect
   ratio. A narrow container can reduce the complete image proportionally. */
#main :is(.heading-artwork, .clinic-heading-artwork, .ar-english-artwork, .md-exam-artwork):not(.approved-indoor img) {
  display: block;
  width: min(var(--section-outline-width), 100%, calc(100vw - 32px));
  height: auto;
  max-width: 100%;
  max-height: none;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Width = original SVG viewBox aspect ratio × 60.32px. */
#main img[src$="home-title-stats.svg"] { --section-outline-width: 697.4462px; }
#main img[src$="home-title-pickup.svg"] { --section-outline-width: 289.9795px; }
#main img[src$="home-title-medical.svg"] { --section-outline-width: 347.7231px; }
#main img[src$="home-title-features.svg"] { --section-outline-width: 383.9252px; }
#main img[src$="home-title-instagram.svg"] { --section-outline-width: 442.3204px; }
#main img[src$="home-title-symptoms.svg"] { --section-outline-width: 421.1067px; }
#main img[src$="article-title-examination.svg"] { --section-outline-width: 529.4909px; }
#main img[src$="article-title-colonoscopy.svg"] { --section-outline-width: 621.4865px; }
#main img[src$="article-title-gastroscopy.svg"] { --section-outline-width: 581.6216px; }
#main img[src$="article-title-expense.svg"] { --section-outline-width: 333.0342px; }
#main img[src$="clinic-title-facility-standards.svg"] { --section-outline-width: 816.7096px; }
#main img[src$="clinic-title-non-insurance.svg"] { --section-outline-width: 650.0826px; }

/* Shared explanatory paragraphs and notes. Keep deliberately distinct
   physician signatures and formulas in their original treatments. */
#main :is(
  .medical-card,
  .feature-card,
  .content-section,
  .subsection,
  .approved-clinic-section,
  .approved-feature-copy,
  .special-doctor,
  .special-endoscopy,
  .medical-layout,
  .design-article,
  .faq-item,
  .access-main,
  .feature-row
) p:not(.formula, .md-formula, .signature p, .sp-doctor-signature p),
#main .hours-note,
#main .data-value,
#main .sp-biography-table,
#main .biography :is(th, td),
#main :is(.ar-list-plain, .plain-list, .md-bullets, .sp-endo-bullets) li,
#main .ar-inline-label,
#main .ar-card .ar-list-check li {
  font-size: var(--body-copy-size);
}
