/* Shared app/error-page typography. Oracle-owned fonts stay on Oracle's CDN. */
@font-face {
  font-family: "Oracle Sans";
  src: url("https://static.oracle.com/cdn/apex/24.2.0/libraries/oracle-fonts/OracleSans_Web/WOFF2/OracleSans_W_Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oracle Sans";
  src: url("https://static.oracle.com/cdn/apex/24.2.0/libraries/oracle-fonts/OracleSans_Web/WOFF2/OracleSans_W_SBd.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Oracle Sans";
  src: url("https://static.oracle.com/cdn/apex/24.2.0/libraries/oracle-fonts/OracleSans_Web/WOFF2/OracleSans_W_Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Oracle Sans";
  src: url("https://static.oracle.com/cdn/apex/24.2.0/libraries/oracle-fonts/OracleSans_Web/WOFF2/OracleSans_W_It.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --vcxm-font-family: "Oracle Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --vcxm-type-page: 1.75rem;
  --vcxm-type-section: 1.25rem;
  --vcxm-type-subsection: 1.125rem;
  --vcxm-type-body: 1rem;
  --vcxm-type-secondary: .875rem;
  --vcxm-type-caption: .8125rem;
  --vcxm-type-micro: .75rem;
  /* Public JET tokens: prevent unstyled semantic headings inheriting 36–40px. */
  --oj-html-font-family: var(--vcxm-font-family);
  --oj-typography-heading-2xl-font-size: var(--vcxm-type-page);
  --oj-typography-heading-xl-font-size: var(--vcxm-type-section);
  --oj-typography-heading-lg-font-size: var(--vcxm-type-subsection);
  --oj-typography-heading-md-font-size: var(--vcxm-type-body);
  --oj-typography-heading-sm-font-size: var(--vcxm-type-body);
  --oj-typography-heading-xs-font-size: var(--vcxm-type-secondary);
  --oj-typography-body-md-line-height: 1.5;
  font-family: var(--vcxm-font-family);
}

/* Respect browser font preferences; never shrink the root to shrink headings. */
html { font-size: 100%; }
body.oj-web-applayout-body, body.error-document {
  font-family: var(--vcxm-font-family);
  font-size: var(--vcxm-type-body);
  line-height: 1.5;
}
/* Recovery documents retain their zero-external-request/offline contract. */
body.error-document {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
#main-content h1, .login-intro h1 {
  font-family: inherit;
  font-size: var(--vcxm-type-page);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
}
#main-content h2, .login-navigator h2, .drawer-content h2 {
  font-size: var(--vcxm-type-section);
  line-height: 1.35;
}
#main-content h3 { font-size: var(--vcxm-type-subsection); line-height: 1.4; }
#main-content h4, #main-content h5, #main-content h6 { font-size: var(--vcxm-type-body); line-height: 1.4; }
/* A compact component label is not a full section title, regardless of tag. */
#main-content :is(.project-summary, .feature-card, .member-card, .task-text-row, .kanban-column, .org-form) h3,
#main-content .kanban-card h4, #main-content .chat-toolbar h2, #main-content .chat-sidebar h2 {
  font-size: var(--vcxm-type-body);
}
#main-content .ivens-hero h2, #main-content .ivens-levelup-form h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}
#main-content .chat-markdown :is(h1, h2) { font-size: var(--vcxm-type-subsection); line-height: 1.4; }
#main-content .chat-markdown :is(h3, h4, h5, h6) { font-size: var(--vcxm-type-body); }
.chat-markdown { font-size: var(--vcxm-type-body); line-height: 1.6; }
.page-header p, .login-intro p, .home-start p { line-height: 1.5; max-width: 70ch; }
.login-benefits p, .login-navigator-lead { line-height: 1.5; }
.meta, .field label, .nav-note, .chat-muted, .chat-session-note, .chat-about,
.chat-toolbar p, .chat-sidebar-tools a, .chat-sidebar-tools button, .recommendation,
.reason, .journey-activities p, .access-context-select { font-size: var(--vcxm-type-secondary); line-height: 1.5; }
.breadcrumbs, .featured-card-copy span, .chat-recent-title, .login-copyright,
.error-language, .error-meta { font-size: var(--vcxm-type-caption); line-height: 1.5; }
.pill, .eyebrow, .chat-message-label, .chat-keyboard-hint, .nav-group,
.brand-description, .error-brand-text small, .error-footer { font-size: var(--vcxm-type-micro); line-height: 1.5; }
button, input, select, textarea, .button, select option, select optgroup,
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea,
.field :is(input, select, textarea), .org-form :is(input, select, textarea) {
  font-size: var(--vcxm-type-body);
  line-height: 1.5;
}
.login-intro p, .login-benefits h3, .guide-lead, .ivens-features .feature-link,
.ivens-levelup-form textarea { font-size: var(--vcxm-type-body); }
.login-kicker, .login-feedback, .login-benefits p, .ivens-resource-copy p,
.error-screen .error-guidance, .error-button { font-size: var(--vcxm-type-secondary); }
.error-copy h1 { font-size: var(--vcxm-type-page); line-height: 1.25; }
.error-screen .error-description { font-size: var(--vcxm-type-body); line-height: 1.6; max-width: 65ch; }
/* Bigger text may wrap; keep controls reachable instead of hiding overflow. */
.section-title, .roadmaps-heading { flex-wrap: wrap; }
.page-header, .section-title > *, .home-start > *, .org-panel { min-width: 0; }
@media (max-width: 700px) {
  :root { --vcxm-type-page: 1.5rem; }
  .topbar .brand-description { display: none; }
  .access-context-select { font-size: var(--vcxm-type-secondary); }
}
