/*
 * Cority — EDS foundation (stardust:deploy 2026-07-11)
 * Converted from stardust canon (stardust/canon/canon.css, source: home-proposed-C.html).
 *
 * FONT LICENSING ALERT: 'Fakt Pro' (OurType / Thomas Thiemich) is a PROPRIETARY
 * licensed typeface. The woff2 files in /styles/fonts/ were captured from
 * www.cority.com and are self-hosted here on the assumption that Cority's
 * existing web-font license covers this property. Verify license scope before
 * production launch. See LICENSING.md.
 */

:root {
  /* token contract — stardust DESIGN.md (Mode A pins) */
  --heading-font-family: 'Fakt Pro', fakt-pro-fallback, -apple-system, blinkmacsystemfont, 'Segoe UI', 'Helvetica Neue', arial, sans-serif;
  --body-font-family: 'Fakt Pro', fakt-pro-fallback, -apple-system, blinkmacsystemfont, 'Segoe UI', 'Helvetica Neue', arial, sans-serif;
  --heading-xxl: 61px;
  --heading-xl: 49px;
  --heading-lg: 39px;
  --heading-md: 25px;
  --body: 16px;
  --body-sm: 14px;
  --line-height-heading: 1.15;
  --line-height-body: 1.5;
  --color-bg: #fff;
  --color-fg: #333;
  --color-accent: #c15500;
  --surface-cool: #f0f3f4;
  --navy-field: #002747;
  --navy-card: #142f51;
  --navy-footer: #001333;
  --band-carbon: #1f1f1d;
  --cority-orange: #d65f00;
  --ink-muted: #54565b;
  --tint-info: rgb(32 152 213 / 10%);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --section-padding: 64px;
  --max-width: 1340px;
  --radius: 12px;
  --radius-inner: 8px;
  --shadow-inset-navy: rgb(40 67 101) 6px 6px 24px 0 inset;
  --shadow-float: rgb(0 0 0 / 20%) 0 4px 8px 0;

  /* tonal ramps (DESIGN.json extensions.tonalRamps) */
  --action-hover: #a94a00;
  --on-orange-ink: #7a3600;
  --on-orange-text: #fff3e8;
  --link-on-dark: #ff9b4d;
  --star: #f5b83d;
  --border-line: #e4e8ea;
  --border-line-strong: #d8dee1;
  --navy-text-1: #e8eef2;
  --navy-text-2: #dde6ed;
  --navy-text-3: #c9d3dc;
  --rule-on-navy: rgb(255 255 255 / 22%);
  --shadow-deep: rgb(0 0 0 / 40%) 0 18px 60px;
  --shadow-stack: rgb(0 0 0 / 35%) 0 12px 40px;
  --white-a06: rgb(255 255 255 / 6%);
  --white-a12: rgb(255 255 255 / 12%);
  --white-a14: rgb(255 255 255 / 14%);
  --white-a16: rgb(255 255 255 / 16%);
  --action-on-surface: #b55000;
  --duotone-navy: rgb(0 39 71 / 55%);
  --chip-one-bg: var(--tint-info);
  --chip-one-ink: #0b5e86;
  --chip-env-bg: #e5f2e8;
  --chip-env-ink: #1a5632;
  --chip-health-bg: #fcede0;
  --chip-health-ink: #8a4a00;
  --chip-safety-bg: #fdebea;
  --chip-safety-ink: #9a2c21;
  --chip-quality-bg: #eeebfa;
  --chip-quality-ink: #4a3e8f;
  --chip-sus-bg: #e8f4f1;
  --chip-sus-ink: #155e4f;

  /* blocks pad to the canon wrap with this (band = block, inner = wrap) */
  --wrap-inline: max(24px, calc((100% - var(--max-width)) / 2));

  /* chrome reservation: utility bar ~52px + header ~78px (measured 130) */
  --nav-height: 130px;
}

/* metric-matched fallback for Fakt Pro (fontTools-derived, weighted advances) */
@font-face {
  font-family: fakt-pro-fallback;
  size-adjust: 99.16%;
  ascent-override: 75.44%;
  descent-override: 25.41%;
  line-gap-override: 20.17%;
  src: local('Arial');
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  hanging-punctuation: first;
}

body {
  display: none;
  font-family: var(--body-font-family);
  font-weight: 300;
  font-size: var(--body);
  line-height: var(--line-height-body);
  color: var(--color-fg);
  background: var(--color-bg);
}

body.appear {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font-family);
  font-weight: 500;
  line-height: var(--line-height-heading);
  color: var(--navy-field);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.6vw, var(--heading-xxl));
}

h2 {
  font-size: clamp(28px, 3.2vw, var(--heading-lg));
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 2vw, var(--heading-md));
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
}

header {
  min-height: var(--nav-height);
}

/* canon inner-wrap: block JS may emit <div class="wrap"> inside a band */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-field);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.meta-rail {
  font-family: var(--heading-font-family);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* category-dash kicker (canon device) */
.kicker {
  font-family: var(--heading-font-family);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentcolor;
  flex-shrink: 0;
}

/* buttons — canon pills. `.btn*` = chrome/block-internal alias;
   `.button*` = what this repo's decorateButtons emits from <strong>/<em> links */
.btn,
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: var(--heading-font-family);
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s;
}

.btn-primary,
a.button.primary,
button.button.primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover,
a.button.primary:hover,
button.button.primary:hover {
  background: var(--action-hover);
}

.btn-secondary,
a.button.secondary {
  background: transparent;
  color: var(--navy-field);
  border-color: var(--navy-field);
}

.btn-secondary:hover,
a.button.secondary:hover {
  background: var(--surface-cool);
}

.btn-on-orange,
a.button.accent {
  background: #fff;
  color: var(--on-orange-ink);
}

.btn-on-orange:hover,
a.button.accent:hover {
  background: var(--surface-cool);
}

.button-wrapper {
  margin: 0;
}

/* link-ask (underlined ask) */
.ask {
  font-weight: 400;
  color: var(--action-on-surface);
  text-decoration: none;
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
  display: inline-block;
  min-height: 44px;
  padding-top: 9px;
}

.ask:hover {
  color: var(--action-hover);
}

.ask.on-dark {
  color: var(--link-on-dark);
}

/* ---------- EDS section scaffold ----------
   Blocks own their full band (background + padding); sections are neutral. */
main .section {
  padding: 0;
}

main .section:empty {
  display: none;
}

main .section > .default-content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding) 24px;
}

/* ---------- section styles (via section-metadata) ---------- */

/* prose: article-style reading measure for default content */
main .section.prose > .default-content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
}

main .section.prose > .default-content-wrapper > p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.65;
}

main .section.prose > .default-content-wrapper > h2 {
  font-size: clamp(21px, 2vw, 26px);
  margin: 44px 0 16px;
  scroll-margin-top: 24px;
}

main .section.prose > .default-content-wrapper > h2:first-child {
  margin-top: 0;
}

main .section.prose > .default-content-wrapper > ul,
main .section.prose > .default-content-wrapper > ol {
  margin: 0 0 18px 22px;
  font-size: 17px;
  line-height: 1.65;
}

main .section.prose > .default-content-wrapper > ul li,
main .section.prose > .default-content-wrapper > ol li {
  margin-bottom: 8px;
}

main .section.prose > .default-content-wrapper img {
  border-radius: var(--radius);
}

/* navy: dark band for default-content heads */
main .section.navy {
  background: var(--navy-field);
  color: #fff;
}

main .section.navy h1,
main .section.navy h2,
main .section.navy h3 {
  color: #fff;
}

main .section.navy a {
  color: var(--link-on-dark);
}

/* cool: light grey band */
main .section.cool {
  background: var(--surface-cool);
}

/* center: centered default content */
main .section.center > .default-content-wrapper {
  text-align: center;
}

main .section.center .button-wrapper {
  display: flex;
  justify-content: center;
}

/* cta: canon CTA band as a pure default-content section */
main .section.cta {
  background: var(--navy-field) url('https://www.cority.com/wp-content/uploads/2025/08/bg-banner.webp') center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

main .section.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 25 46 / 72%) 0%, rgb(0 39 71 / 35%) 100%);
}

main .section.cta > .default-content-wrapper {
  position: relative;
}

main .section.cta h2 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: 14px;
}

main .section.cta p {
  max-width: 34ch;
  margin-bottom: 30px;
  font-size: 24px;
  line-height: 1.4;
  color: #fff;
  font-weight: 300;
}

main .section.cta p.button-wrapper {
  margin-bottom: 0;
}


/* toc-layout: sticky rail (block) beside prose default content (articles) */
main .section.toc-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

main .section.toc-layout > .default-content-wrapper {
  max-width: 72ch;
  margin: 0;
  padding: 0;
}

main .section.toc-layout > div[class$='-wrapper']:not(.default-content-wrapper) {
  position: sticky;
  top: 24px;
}

@media (width <= 1024px) {
  main .section.toc-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  main .section.toc-layout > div[class$='-wrapper']:not(.default-content-wrapper) {
    position: static;
  }
}

/* split: 7fr/5fr body-plus-aside (gated resource, event detail) */
main .section.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px;
}

main .section.split > .default-content-wrapper {
  max-width: 66ch;
  margin: 0;
  padding: 0;
}

main .section.split > .default-content-wrapper > p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}

main .section.split > .default-content-wrapper > h2 {
  margin-bottom: 16px;
}

@media (width <= 1024px) {
  main .section.split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (width <= 768px) {
  :root {
    --section-padding: 48px;
  }
}

@media (width <= 640px) {
  :root {
    --section-padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- RTL baseline (Arabic) ---------- */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 1.2em;
  padding-left: 0;
}

html[dir="rtl"] .kicker {
  align-self: flex-end;
}

html[dir="rtl"] .header nav.primary {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .header .utility .lang-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header .header-cta {
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] main .section.cta p,
html[dir="rtl"] main .section.prose > .default-content-wrapper {
  text-align: right;
}

html[dir="rtl"] .btn,
html[dir="rtl"] a.button {
  direction: rtl;
}
