body a:focus-visible {
  outline: 3px solid #3b82f6 !important; 
  outline-offset: 2px !important;
}
/* Chinese site: smaller unit after a stat number (亿美元, 多万) so it fits the column */
.facts_and_figures .items .item h3 .stat-unit {
  font-size: 0.5em;
  margin-left: 0.1em;
}
/* Project card titles: wrap only between pieces (see \Example\nycrc_title_breaks() in functions.php) */
.title-seg {
  display: inline-block;
  max-width: 100%;
}

/* ==========================================================================
   Chinese site type scale (Marker NYCCN-5, 7, 8, 9, 10 — 2026-11-09)
   One sans-serif family for headings and body; headings 55px, subheadings
   24px, body 21px. Sizes are scoped to page content (header, footer and the
   homepage video banner keep theirs). Overrides the per-block SCSS, hence
   !important. Rollback: backups/custom-before-type-scale-20261109.css
   ========================================================================== */

/* One font, site-wide: the SCSS forces the Fortescue serif (often with
   !important) in ~30 places. Re-declaring those two font names here, after
   nycrc.css, points them at the Value Sans files, so every Fortescue usage
   renders in the body sans. Chinese still falls through to the system sans
   listed after it in each stack. Delete these two blocks to get the serif back. */
@font-face {
  font-family: "FortescueDisplay";
  src: url("assets/fonts/value-sans/ValueSansPro-Regular.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Regular.woff") format("woff");
  size-adjust: 108%; /* match the Latin size bump below */
}
@font-face {
  font-family: "FortescueTextLight";
  src: url("assets/fonts/value-sans/ValueSansPro-Regular.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Regular.woff") format("woff");
  size-adjust: 108%;
}

@media (min-width: 992px) {
  /* Headings: 55px (page titles and homepage section titles) */
  main.site-content :is(h1, h2.wp-block-heading):not(.visually-hidden) {
    font-size: 55px !important;
    letter-spacing: -0.55px !important;
  }

  /* Subheadings: 24px */
  main.site-content .post_content h2.wp-block-heading,
  main.site-content .contact-banner h3.wp-block-heading,
  main.site-content .featured_financing .text_area h3,
  main.site-content .sector-project h3,
  main.site-content .areas-of-impact h3,
  main.site-content h3.wp-block-heading:not(.text_w_stat .right_area h3, .facts_and_figures h3) {
    font-size: 24px !important;
    letter-spacing: 0 !important;
    line-height: 130% !important;
  }

  /* Project page sidebar: the stat keeps its original size (NYCCN-11); the
     label under it is 24px */
  main.site-content .text_w_stat .right_area p,
  main.site-content .text_w_stat .right_area p strong {
    font-size: 24px !important;
  }
}

@media (min-width: 769px) {
  /* Body copy, intros, lists and quotes: 21px (quote name line keeps its size) */
  main.site-content p.wp-block-paragraph:not(.text_w_stat .right_area p),
  main.site-content p.lg,
  main.site-content p.subtext,
  main.site-content .post_content li,
  main.site-content .wp-block-quote p {
    font-size: 21px !important;
  }
}

@media (max-width: 768px) {
  /* Phones: these two blocks set their own body size above the desktop 21px;
     match the theme's 16px mobile body text instead */
  main.site-content .contact-banner p.wp-block-paragraph,
  main.site-content .text_w_stat .left_area p.wp-block-paragraph {
    font-size: 16px !important;
  }
}

/* Project page stat (NYCCN-11, Josh): numbers in the Fortescue serif, Chinese
   in the system sans. Only a unit after a number (亿美元, 万美元) is bold; facts
   without a number (布鲁克林, 全部) are regular. "FortescueNumerals" is the real
   Fortescue file limited to digits and number punctuation, so it isn't caught
   by the Value Sans re-pointing above. The weight range stops the browser
   faking a bold Fortescue. */
@font-face {
  font-family: "FortescueNumerals";
  src: url("assets/fonts/FortescueDisplay/FortescueDisplay.woff2") format("woff2"),
       url("assets/fonts/FortescueDisplay/FortescueDisplay.woff") format("woff");
  font-weight: 100 900;
  unicode-range: U+0024-0025, U+002B-002E, U+0030-0039;
}
main.site-content .text_w_stat .item h3,
main.site-content .text_w_stat .item h3 * {
  font-family: "FortescueNumerals", PingFang SC, Hiragino Sans GB, Microsoft YaHei, Noto Sans SC, Noto Sans CJK SC, Source Han Sans SC, sans-serif !important;
  font-weight: 400 !important;
}
/* Unit after the number (亿美元; wrapped by the render_block_acf/stats filter in
   functions.php) at half size like the home page stats, and bold */
main.site-content .text_w_stat .item h3 .stat-unit {
  font-size: 0.5em !important;
  font-weight: 700 !important;
  margin-left: 0.1em;
}

/* Space between Chinese and Latin letters / numbers, sitewide ("于 2008 年",
   "15 亿"). The browser adds about 1/8em at each boundary; the text itself is
   unchanged, so copy/paste and search are unaffected. Supported in current
   Chrome/Edge (140+) and Safari; browsers without it just show no gap. */
html {
  text-autospace: normal;
}
/* The project sidebar unit already gets that gap, so drop its manual nudge where
   supported. (The home page counters keep theirs: the animated digits are
   separate boxes, which the automatic spacing does not see past.) */
@supports (text-autospace: normal) {
  main.site-content .text_w_stat .item h3 .stat-unit {
    margin-left: 0;
  }
}
/* Home page counters: the animated digits block the automatic spacing, so give
   the unit after them (亿美元, 多万, 多) its own gap, a little wider than the
   original 0.1em */
.facts_and_figures .items .item h3 .stat-unit {
  margin-left: 0.25em;
}
/* Animated counters (home page): nycrc.css forces every digit to 33px, tuned
   for the old Fortescue digits. Value Sans digits are wider ("0" spilled into
   the next digit / the unit: "530多万"). Equal-width digits sized by the font
   itself fit every digit and keep the counting animation steady. */
.odometer.odometer-auto-theme .odometer-digit {
  font-variant-numeric: tabular-nums;
}
.odometer.odometer-auto-theme .odometer-digit,
.odometer.odometer-auto-theme .odometer-value {
  width: auto !important;
}
.facts_and_figures .odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner {
  width: auto;
}

/* Latin letters and numbers 8% larger than the Chinese around them (client
   request). Value Sans supplies every Latin character and the system font the
   Chinese, so re-declaring the Value Sans faces with size-adjust scales only
   the Latin text. Change the 108% in all ten places (these eight plus the two
   Fortescue aliases at the top) to tune it; delete these blocks to undo. The
   project sidebar's serif digits (FortescueNumerals) are not affected. */
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-Regular.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-Italic.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-Medium.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-MediumItalic.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-Bold.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-BoldItalic.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-Black.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  size-adjust: 108%;
}
@font-face {
  font-family: "Value Sans Pro";
  src: url("assets/fonts/value-sans/ValueSansPro-BlackItalic.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-BlackItalic.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  size-adjust: 108%;
}
/* nycrc.css also pins the 4th/5th counter positions on the home page (the digit
   after "." or ",") to 40px. With the bigger Latin size that clipped the digit
   ("15.8", "6,400"). Same selector plus "html" so this wins. */
html body.page-id-1122 #facts_and_figures3 .wp-block-columns .wp-block-column.item .odometer.odometer-auto-theme .odometer-digit:nth-child(n),
html body.page-id-1122 #facts_and_figures3 .wp-block-columns .wp-block-column.item .odometer.odometer-auto-theme .odometer-digit:nth-child(n) .odometer-value {
  width: auto !important;
}
/* Home counters keep the Latin digits at their normal size (the 108% bump made
   "15.8亿美元" wrap in its column). "CounterDigits" is Value Sans Regular without
   size-adjust; used only by the counters. */
@font-face {
  font-family: "CounterDigits";
  src: url("assets/fonts/value-sans/ValueSansPro-Regular.woff2") format("woff2"),
       url("assets/fonts/value-sans/ValueSansPro-Regular.woff") format("woff");
}
.facts_and_figures .odometer.odometer-auto-theme,
.facts_and_figures .odometer.odometer-auto-theme .odometer-digit .odometer-value {
  font-family: "CounterDigits", PingFang SC, Hiragino Sans GB, Microsoft YaHei, Noto Sans SC, Noto Sans CJK SC, Source Han Sans SC, sans-serif !important;
}
/* Never split a unit across lines (亿美 / 元) */
.facts_and_figures .items .item h3 .stat-unit,
main.site-content .text_w_stat .item h3 .stat-unit {
  white-space: nowrap;
}

/* Number 1 with a flag everywhere (client, 2026-11-16). Value Sans draws the
   regular "1" as a plain bar ("l.085"); only its tabular "1" (used by the home
   counters) had the flag. The font's stylistic set 2 swaps in a flagged "1" at
   normal width and changes nothing else. Scoped to the Value Sans names so the
   Chinese system font and the other fonts are untouched. Delete both rules to
   undo. */
@font-feature-values "Value Sans Pro", FortescueDisplay, FortescueTextLight, CounterDigits {
  @styleset { flag-one: 2; }
}
html {
  font-variant-alternates: styleset(flag-one);
}

/* Sector pages, big stat in the grey box (NYCCN-12): one step down from 57px so
   amounts like "2.705亿美元" fit their 310px column on one line. Tablet/phone
   sizes (32px / 20px) already fit and are unchanged. */
@media (min-width: 992px) {
  main.site-content .sector-text .info-item h3 {
    font-size: 48px !important;
  }
}
main.site-content .sector-text .info-item h3 {
  overflow-wrap: normal;
  word-break: keep-all;
}
