/* One screen typography system for every CIRQL page.
   Family: self-hosted Schibsted Grotesk, the actual 400 and 500 variable faces.
   Layout modules do not define independent type sizes or font families. */
@font-face { font-family:'CIRQL Sans'; src:url('fonts/archivo-latin-ext.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-stretch:62% 125%; font-display:swap; unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'CIRQL Sans'; src:url('fonts/archivo-latin.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-stretch:62% 125%; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@media screen {
  body.cirql-studio.cirql-type {
    --body: 'CIRQL Sans', Arial, sans-serif;
    --display: var(--body);
    --type-title: 2.5rem;
    --type-section: 1.75rem;
    --type-subheading: 1.25rem;
    --type-body: 1rem;
    --type-control: 1rem;
    --type-caption: .875rem;
    --type-numeral: var(--type-section);
    font-family: var(--body);
    font-size: var(--type-body);
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 0;
    font-kerning: normal;
    font-synthesis: none;
  }

  /* Keep inline fragments, filename labels and controls in the same family. */
  body.cirql-studio.cirql-type :where(*) {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
  }
  body.cirql-studio.cirql-type :is(h1, h2, h3, h4) {
    font-family: var(--body);
    font-weight: 500;
    font-style: normal;
    text-wrap: balance;
  }
  body.cirql-studio.cirql-type h1 {
    font-size: var(--type-title);
    line-height: 1.15;
    letter-spacing: -.02em;
  }
  body.cirql-studio.cirql-type h2 {
    font-size: var(--type-section);
    line-height: 1.25;
    letter-spacing: -.015em;
  }
  body.cirql-studio.cirql-type h3 {
    font-size: var(--type-subheading);
    line-height: 1.3;
    letter-spacing: 0;
  }
  body.cirql-studio.cirql-type h4 {
    font-size: var(--type-body);
    font-weight: 500;
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type :is(strong, b, dt) { font-weight: 500; }
  body.cirql-studio.cirql-type p { max-width: 65ch; }

  /* A lead remains prose; it does not introduce a seventh display size. */
  body.cirql-studio.cirql-type :is(.lead, .opening-lead, .post-lead, .opening-copy, .basis-lead, .hero-scope) {
    font-size: var(--type-body);
    line-height: 1.6;
  }
  body.cirql-studio.cirql-type :is(.object-title-detail, .workbench-result-basis) {
    display: block;
    margin-top: .75rem;
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
  }
  body.cirql-studio.cirql-type :is(.hero-programme, .composition-eyebrow, .composition-caption, .opening-meta, .safe-kicker, .publication-kicker, .journal-feature-label, .journal-meta, .audit-mode-label, .model-image-caption, .model-caption, .model-source-note, .model-label, .atlas-drawing-caption, .hint, .form-note, span.note, .k, .result .status, .result .status span, .result .band, .result .band-label, .src, .standard-card > span) {
    font-size: var(--type-caption);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }
  body.cirql-studio.cirql-type :is(.audit-console, .audit-detail) p.meta {
    font-size: var(--type-body);
    line-height: 1.6;
  }
  body.cirql-studio.cirql-type .type-switch a {
    font-size: var(--type-caption);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type :is(button, input, select, textarea, summary, label, .btn, .btn-p, .btn-s, .opening-action, .text-link, .textlink, .tool-start, .journal-read, .type-control, .safe-primary, .tool-link, .report-source-link, .post-step-ref, .skip, .arrow, .reader-link, .go, .composition-secondary, .post-back a, .qualification-steps a, .publication-domain > a, .journal-related > a) {
    font-size: var(--type-control);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }
  body.cirql-studio.cirql-type :is(button, input, select, textarea) { font-family: var(--body); }
  body.cirql-studio.cirql-type :is(.journal-return, .journal-toc, .journal-toc > summary, .journal-toc-links a, .journal-margin, .publication-index, .publication-cover-index, .objects-credit) {
    font-size: var(--type-caption);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type :is(small, figcaption, caption, .type-caption, .media-caption, .fallback-caption, .meta, .post-meta, .post-date, .post-byline, .eyebrow, .kicker, .badge, .legal, .foot-sources, .scope-note, .program-status, .audience-note, .stage-origin, .passport-caption, .passport-scope-note, .passport-index, .result-label, .review-actor, .diagram-hint, .conditional-input) {
    font-size: var(--type-caption);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
  }
  body.cirql-studio.cirql-type :is(nav, footer) {
    font-size: var(--type-caption);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type nav :is(a, button),
  body.cirql-studio.cirql-type footer :is(p, a, strong, small) {
    font-size: var(--type-caption);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type table {
    font-size: var(--type-control);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type td { font-variant-numeric: normal; }
  body.cirql-studio.cirql-type :is(.bilans-masses td, td.number, td.num) { font-variant-numeric: tabular-nums; }
  body.cirql-studio.cirql-type th { font-variant-numeric: normal; }
  body.cirql-studio.cirql-type :is(th, .state-band strong) { font-weight: 500; }
  body.cirql-studio.cirql-type :is(code, pre, kbd, samp) {
    font-family: var(--body);
    font-size: inherit;
    overflow-wrap: anywhere;
  }
  body.cirql-studio.cirql-type :is(sub, sup) { font-size: .75em; line-height: 0; }

  /* Titles which are links or choices use an existing heading role. */
  body.cirql-studio.cirql-type :is(.atlas-choice, .atlas-board-index .aleg b, .tool-card strong, .doc-card strong, .tile-copy strong, .deliverable b, .proofitem b, .safe-status > b, .safe-criterion > span, .more-list > a > span:first-child, .audience-footer > a > span:first-child, .publication-outline > a, .publication-outline > a > span, .decision-steps .offer) {
    font-size: var(--type-subheading);
    font-weight: 500;
    line-height: 1.3;
  }
  body.cirql-studio.cirql-type :is(.audience-choice, .area-name, .contact-details) {
    font-size: var(--type-control);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type :is(.area-letter, .letter, .publication-domain > span, .domain-chapter::before, .result .big, .grade, .grade-card b, .bilans-indicator, .bilans-totals dd, .object-score b, .object-mini-metrics b, .score-total .num, .report-count strong, .facts dt, .facts-grid dt, .cert-tier, .plaque-level) {
    font-size: var(--type-numeral);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  body.cirql-studio.cirql-type :is(.process-node, .post-step-num, .process li::before, .process-step::before) {
    font-size: var(--type-control);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type .result .big > span {
    font-size: var(--type-body);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type .result-status {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: var(--type-caption);
    line-height: 1.5;
  }
  body.cirql-studio.cirql-type .result-status span + span::before { content: none; }
  body.cirql-studio.cirql-type .ahs {
    font-size: var(--type-caption);
    line-height: 1;
  }
  body.cirql-studio.cirql-type .publication-domains { row-gap: 1.5rem; }
  body.cirql-studio.cirql-type .publication-domain { min-height: 3rem; }
  body.cirql-studio.cirql-type .workbench-heading :is(.text-link, .tool-start) {
    display: inline-block;
    margin-top: 1rem;
  }
  body.cirql-studio.cirql-type :is(svg text, svg tspan) {
    font-family: var(--body);
    font-size: var(--type-caption);
    font-weight: 400;
  }

  @media (max-width: 760px) {
    body.cirql-studio.cirql-type {
      --type-title: 2rem;
      --type-section: 1.5rem;
    }
    body.cirql-studio.cirql-type nav .links a { font-size: var(--type-control); }
    body.cirql-studio.cirql-type .audience-choice { font-size: var(--type-control); }
    body.cirql-studio.cirql-type .qualification-topline a {
      display: block;
      margin-top: .5rem;
    }
  }
}
@media print {
  /* Preserve the two existing inline source-credit styles in generated pages. */
  .type-caption { font-size: 11px; line-height: 1.5; }
}
