/* TDesk foundations. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans/PlusJakartaSans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --td-paper: #fff;
  --td-ink: #172b4d;
  --td-muted: #5d6b82;
  --td-blue: #2855e8;
  --td-blue-hover: #2045c2;
  --td-mist: #f0f4ff;
  --td-mint: #c5eedc;
  --td-line: #e3e8f0;
  --td-lavender: #e8e1fa;
  --td-peach: #fbe5d6;
  --td-font: "Plus Jakarta Sans", Arial, sans-serif;
  --td-radius-control: 12px;
  --td-radius-card: 20px;
  --td-radius-panel: 32px;
  --td-motion: 180ms;
  --td-ease: cubic-bezier(.2, .7, .2, 1);
  --td-gutter: 40px;
}

.td-page,
.td-page *,
.td-page *::before,
.td-page *::after {
  box-sizing: border-box;
}

.td-page {
  margin: 0;
  background: var(--td-paper);
  color: var(--td-ink);
  font-family: var(--td-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.td-page h1,
.td-page h2,
.td-page h3,
.td-page h4,
.td-page p {
  margin: 0;
}

.td-page h1,
.td-page h2,
.td-page h3,
.td-page h4 {
  color: var(--td-ink);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.td-page h2 { font-size: clamp(30px, 3.2vw, 44px); }
.td-page h3 { font-size: 21px; letter-spacing: -.025em; }
.td-page p { max-width: 65ch; }
:where(.td-page) a { color: inherit; text-decoration: none; }
:where(.td-page) button,
:where(.td-page) input,
:where(.td-page) textarea,
:where(.td-page) select { font: inherit; }
:where(.td-page) button { color: inherit; cursor: pointer; }
.td-page button:disabled { cursor: not-allowed; opacity: .55; }
.td-page img { display: block; max-width: 100%; height: auto; }
.td-page [hidden] { display: none !important; }
.td-page ::selection { color: var(--td-ink); background: var(--td-mint); }
.td-page :focus-visible { outline: 3px solid var(--td-blue); outline-offset: 4px; }

.td-container {
  width: min(100%, calc(1200px + var(--td-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--td-gutter);
}

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.td-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: var(--td-radius-control);
  background: transparent;
  color: var(--td-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--td-motion) var(--td-ease), color var(--td-motion) var(--td-ease), border-color var(--td-motion) var(--td-ease);
}

.td-button .icon { width: 20px; height: 20px; }
.td-page .td-button--primary { background: var(--td-blue); color: var(--td-paper); }
.td-page .td-button--primary:hover { background: var(--td-blue-hover); }
.td-page .td-button--secondary { background: var(--td-paper); border-color: var(--td-line); }
.td-page .td-button--secondary:hover { background: var(--td-mist); border-color: #c0cde9; }
.td-page .td-button--light { background: var(--td-paper); color: var(--td-blue); }
.td-page .td-button--light:hover { background: #e5edff; }
.td-page .td-button--light:focus-visible { outline-color: var(--td-paper); }
.td-page .td-button--text { padding-inline: 8px; }
.td-page .td-button--text:hover { color: var(--td-blue); background: var(--td-mist); }

.td-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--td-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 5px;
}

.td-page .td-link { color: var(--td-blue); }
.td-link:is(:hover, :focus-visible) { text-decoration: none; }
.td-link:is(:hover, :focus-visible) > .td-link__label { text-decoration: underline; }
.td-link .icon { width: 19px; height: 19px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto 20px;
  padding: 12px 20px;
  transform: translateY(-160%);
  border-radius: var(--td-radius-control);
  background: var(--td-paper);
  color: var(--td-blue);
  font-weight: 600;
}

.skip-link:focus { transform: translateY(0); }

.td-dialog {
  position: fixed;
  width: min(680px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 40px;
  overflow-y: auto;
  border: 1px solid var(--td-line);
  border-radius: 24px;
  background: var(--td-paper);
  color: var(--td-ink);
  box-shadow: 0 24px 100px rgb(23 43 77 / 18%);
}

.td-dialog::backdrop {
  background: rgb(23 43 77 / 35%);
  backdrop-filter: blur(4px);
}

.td-dialog .dialog-close {
  position: absolute;
  inset: 16px 16px auto auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--td-mist);
  color: var(--td-ink);
  transition: background-color var(--td-motion) var(--td-ease);
}

.td-dialog .dialog-close:hover { background: #dfe7fb; }
.td-dialog .article-category { margin: 0 44px 12px 0; color: var(--td-blue); font-size: 13px; font-weight: 600; }
.td-dialog h2 { max-width: 21ch; margin: 0 20px 24px 0; font-size: clamp(25px, 4vw, 34px); }
.article-content { color: var(--td-muted); font-size: 16px; line-height: 1.8; }
.article-content p + p,
.article-content p + ul,
.article-content p + ol,
.article-content ul + p,
.article-content ol + p { margin-top: 16px; }
.article-content ul,
.article-content ol { margin: 0; padding-left: 24px; }
.article-content li + li { margin-top: 10px; }
.article-content strong { color: var(--td-ink); font-weight: 600; }
.article-content h3 { margin: 28px 0 12px; font-size: 20px; }
.td-page .article-content a { color: var(--td-blue); text-decoration: underline; text-underline-offset: 3px; }
.dialog-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--td-line); }
.dialog-footer p { color: var(--td-muted); font-size: 14px; }
.td-page.dialog-open { overflow: hidden; }

@media (max-width: 1000px) {
  :root { --td-gutter: 28px; }
}

@media (max-width: 600px) {
  :root { --td-gutter: 20px; }
  .td-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 64px 24px 28px; border-radius: 20px; }
  .td-dialog h2 { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* The hero artwork keeps its continuous motion as specified in the brief. */
  .td-page *:not(.hero-art *),
  .td-page *:not(.hero-art *)::before,
  .td-page *:not(.hero-art *)::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
