/* AIA brand type, self-hosted (BQM approved, same setup as agency-aia.com).
   AIA-Body for text and UI, AIA-Heading for h1-h3. Both fonts include Thai.
   The imported WordPress CSS names Prompt, Sarabun, Noto Sans Thai and the old
   AIA-Heading/AIA-Body .otf faces directly, so those names are aliased to the AIA
   files here. This file loads last in <head>, so these faces win over earlier ones.
   The AIA glyphs draw smaller than Prompt/Sarabun at the same font-size, so
   size-adjust scales them up (112% body, 106% heading: line breaks then match the
   WordPress pages; agency-aia's 124%/118% looked too big here). The old WordPress
   names AIA-Heading / AIA-Body already meant these fonts, so they get no size-adjust. */
@font-face { font-family: "AIA Body"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AIA Body"; src: url(/fonts/aia/aia-body-bold.woff2) format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AIA Body"; src: url(/fonts/aia/aia-body-italic.woff2) format("woff2"); font-weight: 100 450; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AIA Body"; src: url(/fonts/aia/aia-body-bold-italic.woff2) format("woff2"); font-weight: 451 900; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Prompt"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Prompt"; src: url(/fonts/aia/aia-body-bold.woff2) format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Prompt"; src: url(/fonts/aia/aia-body-italic.woff2) format("woff2"); font-weight: 100 450; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Prompt"; src: url(/fonts/aia/aia-body-bold-italic.woff2) format("woff2"); font-weight: 451 900; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Sarabun"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Sarabun"; src: url(/fonts/aia/aia-body-bold.woff2) format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Sarabun"; src: url(/fonts/aia/aia-body-italic.woff2) format("woff2"); font-weight: 100 450; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Sarabun"; src: url(/fonts/aia/aia-body-bold-italic.woff2) format("woff2"); font-weight: 451 900; font-style: italic; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Noto Sans Thai"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "Noto Sans Thai"; src: url(/fonts/aia/aia-body-bold.woff2) format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "AIA-Body"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; }
@font-face { font-family: "AIA-Body"; src: url(/fonts/aia/aia-body-bold.woff2) format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; }
@font-face { font-family: "AIA-Body-Fast"; src: url(/fonts/aia/aia-body-regular.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "AIA Heading"; src: url(/fonts/aia/aia-heading-regular.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; size-adjust: 106%; }
@font-face { font-family: "AIA Heading"; src: url(/fonts/aia/aia-heading-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; size-adjust: 106%; }
@font-face { font-family: "AIA-Heading"; src: url(/fonts/aia/aia-heading-regular.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "AIA-Heading"; src: url(/fonts/aia/aia-heading-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "AIA-Heading-Fast"; src: url(/fonts/aia/aia-heading-regular.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --aia-font: "AIA Body", "Leelawadee UI", Tahoma, sans-serif; --aia-font-body: "AIA Body", "Leelawadee UI", Tahoma, sans-serif; }
body { font-family: "AIA Body", "Leelawadee UI", Tahoma, sans-serif; font-synthesis: none; }
h1, h2, h3, .entry-title, .aia-fa-hero-title, #page h1 { font-family: "AIA Heading", "AIA Body", "Leelawadee UI", Tahoma, sans-serif !important; letter-spacing: 0 !important; }

/* Text logo in the header: "AIA" #D31145 + "Financial Advisor" #333D47, AIA-Heading type, 32px so the desktop menu still fits on one line.
   The tagline under it comes from the theme's .main-title a::after and stays. */
#masthead .main-title a.afa-logo { font-family: "AIA Heading", "AIA Body", Tahoma, sans-serif !important; font-size: 32px !important; font-weight: 400 !important; line-height: 1.05; letter-spacing: 0 !important; text-decoration: none; white-space: nowrap; }
.main-title a.afa-logo .afa-logo-aia { color: #D31145; }
.main-title a.afa-logo .afa-logo-fa { color: #333D47; }
/* AIA-Heading is an all-caps display face. On phones the logo scales with the screen so it
   never runs under the menu button (fits from 320px wide up). */
@media (max-width: 768px) { #masthead .main-title a.afa-logo { font-size: min(6.8vw, 32px) !important; } }
#masthead .main-title a.afa-logo::after { content: "ตัวแทนประกันชีวิต AIA FA" !important; }

/* FAQ "+" / "−" markers (details > summary::after on many pages): AIA Body's tall Thai line
   box pushes the sign below the middle of its circle, so draw the sign in Arial at line-height 1. */
summary::after, summary::before { font-family: Arial, Helvetica, sans-serif !important; line-height: 1 !important; }
