/*
 * DAP base typography: on every page, whatever plugin draws its content.
 *
 * The page plugins (homepage blocks, industry pages) set the body font in their own
 * sheets, so pages without them (404, search, plain posts and pages) fell back to the
 * browser's Times, header and footer included (Nick, 2026-10-21). The font files come from
 * dap-fonts (Google Fonts, served through Cloudflare Fonts); the font stacks are the shared
 * tokens. Plugin sheets load after this one, so designed pages keep their own rules.
 *
 * No em-dashes anywhere in this codebase, per brand guardrails.
 */
body {
  font-family: var(--t-font-body);
  color: var(--text-main, #041c2c);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--t-font-display); }

/* the header and footer name their font themselves, so no page sheet can leave them on a fallback */
#navbar, .nav-drawer, .footer { font-family: var(--t-font-body); }

/* Review flags (staging only; see dap_review_flags_on()): a yellow frame around the item marked as an
   open issue, with the note on hover. Nothing inside it changes, so the design shows as built (Nick,
   29 Oct: a yellow wash, and the dark text it then needed, broke covers and dark components). The
   frame sits just inside the item's edge, so no parent's overflow clips it and the layout never moves.
   .dap-flag-ring (once the variant for dark components) is the same frame. */
.dap-flag, .dap-flag-ring {
  outline: 3px solid #f2c200 !important;
  outline-offset: -3px !important;
}
/* Inline flags (FAQ questions, answer links, /compliance mentions): a thinner frame just outside the text. */
mark.dap-flag, a.dap-flag, .faq-q-text.dap-flag, .faq-q-text .dap-flag, .faq-panel-q.dap-flag { outline-width: 2px !important; outline-offset: 2px !important; border-radius: 3px; }
mark.dap-flag { background: none; color: inherit; }
/* Footer columns sit flush on the dark band, so their frame sits just outside the column, clear of the text. */
.footer__grid > .dap-flag { outline-offset: 10px !important; border-radius: 4px; }

/* a hidden button stays hidden: .btn's display:inline-flex otherwise beats the hidden attribute (load-more buttons kept showing when nothing was left) */
.btn[hidden] { display: none !important; }

/* round profile photos sit to the top of the photo, so faces in photos with space above the
   head are not cut off (Nick, 2 Nov). Every round photo on the site is listed; !important
   because the photos' own rules sit in plugin sheets that load after this one, some with ids. */
.tg-author img, .tg-shot, .tg-face, .vp .quote-row .avatar img, .avatar-row img, .meet__av img,
.rc__by img, .wl-by__ph, .wb-spk img, .wb-spkcard__top > img, .cr-voice__av img, .tm-faces img,
.awq__face, .ar-author img, .ar-abox__img, .au-card .tmc__ph img { object-position: center top !important; }
