/* One real, self-hosted static Bold face. Do not replace body/brand/control tokens. */
@font-face {
  font-family: 'Janydeya Lato';
  src: url('/fonts/lato/Lato-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --jany-heading-font: 'Janydeya Lato', sans-serif;
  --jany-page-title-size: 42px;
  --jany-page-title-line: 1.18;
  --jany-page-top-space: 24px;
  --jany-title-lead-space: 12px;
  --jany-heading-content-space: 24px;
}
/* Semantic headings cover shared cards, lists and dialogs. Explicit reset removes
 * the previous variable-wght650 setting without changing nonheading typography. */
:root body :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--jany-heading-font) !important;
  font-weight: 700 !important;
  font-style: normal;
  font-variation-settings: normal !important;
  font-synthesis: none !important;
}
/* The layout opts only the owner's primary-title pages into size/spacing rules.
 * Catalog/card title sizes remain unchanged. */
:root #main-content[data-unified-headings] > :not(script):not(style) {
  margin-block-start: 0 !important;
  padding-block-start: var(--jany-page-top-space) !important;
}
:root #main-content[data-unified-headings] h1 {
  font-size: var(--jany-page-title-size) !important;
  line-height: var(--jany-page-title-line) !important;
  margin-block: 0 var(--jany-heading-content-space) !important;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
/* Embedded docs retain their independent navigation/search/content, with one
 * accessible primary heading rendered on the surrounding application's rail. */
:root.jany-docs-embedded .vp-doc h1 { display: none; }
@media (max-width: 640px) {
  :root { --jany-page-title-size: 32px; }
}

/* Text fragments within an actual heading must not revert to legacy serif
 * emphasis. This does not target body links, labels, prices or buttons. */
:root body :is(h1,h2,h3,h4,h5,h6) :is(em,strong,a,span),
:root :is(.basket-info > a, .basket-info > span, .collections .item > span a, p.item-title, .ux-suggest-panel li strong) {
  font-family: var(--jany-heading-font) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variation-settings: normal !important;
  font-synthesis: none !important;
}
/* Existing introductions keep their content/controls; only duplicate vertical
 * wrapper padding is removed after their primary heading was made first. */
:root #main-content[data-unified-headings] > .al-page > section:has(> h1),
:root #main-content[data-unified-headings] :is(.lib-heading,.mk-page-heading,.page-head,.cw-head) {
  padding-block-start: 0 !important;
  margin-block-start: 0 !important;
}
:root #main-content[data-unified-headings] .cw-head { align-items: flex-start; }
:root #main-content[data-unified-headings] h1:has(+ p) {
  margin-block-end: var(--jany-title-lead-space) !important;
}
:root #main-content[data-unified-headings] h1 + p {
  margin-block-start: 0 !important;
}
:root #main-content[data-unified-headings] .admissions-page > .operations {
  max-width: none;
  margin-block-start: 0;
  padding-block-start: 0;
  padding-inline: 0;
}
