/* Tracy Donegan design system v1.
 * Load once site-wide. Components are opt-in inside .td-system; native content
 * outside that root is never selected. Page composition belongs in page CSS.
 */

:where(.td-system) {
  --td-ink: #191118;
  --td-ink-soft: #3a333d;
  --td-body: #4b444f;
  --td-muted: #7c7382;
  --td-accent: #7a21b7;
  --td-accent-bright: #8c34c9;
  --td-accent-pale: #f4edf8;
  --td-step-title-color: var(--td-accent);
  --td-paper: #fff;
  --td-paper-soft: #fbf9fc;
  --td-lavender: #f4edf8;
  --td-lavender-deep: #e6dcef;
  --td-line: #ece7f0;
  --td-line-dark: rgba(255, 255, 255, .14);
  --td-item-divider-hover-color: rgba(122, 33, 183, .44);
  --td-heading-font: "Fraunces", Georgia, serif;
  --td-body-font: "Jost", sans-serif;
  --td-type-display-size: clamp(29px, 3.6vw, 48px);
  --td-type-display-leading: 1.1;
  --td-type-display-tracking: -.016em;
  --td-type-heading-sm-size: clamp(26px, 2.6vw, 32px);
  --td-type-heading-xs-size: clamp(23px, 1.9vw, 24px);
  --td-type-heading-leading: 1.1;
  --td-type-heading-compact-leading: 1.18;
  --td-type-heading-feature-size: clamp(32px, 2.6vw, 38px);
  --td-type-heading-feature-leading: 1.08;
  --td-type-heading-premium-leading: 1.12;
  --td-type-heading-photo-leading: 1.1;
  --td-type-price-size: clamp(28px, 2.3vw, 34px);
  --td-type-body-size: 21px;
  --td-type-body-leading: 1.64;
  --td-type-body-mobile-size: 17px;
  --td-type-body-mobile-leading: 1.72;
  --td-type-compact-size: clamp(16px, 1.3vw, 18px);
  --td-type-compact-leading: 1.72;
  --td-type-kicker-size: 16px;
  --td-type-kicker-leading: 1.25;
  --td-type-kicker-tracking: .26em;
  --td-layout-max: 1400px;
  --td-reading-max: 1000px;
  --td-layout-gutter: clamp(15px, 2vw, 40px);
  --td-layout-gap: clamp(56px, 5vw, 80px);
  --td-section-space-y: clamp(82px, 6.6vw, 127px);
  --td-heading-content-gap-lg: 40px;
  --td-heading-content-gap-md: 24px;
  --td-heading-content-gap-card: 16px;
  --td-kicker-heading-gap: clamp(18px, 1.8vw, 24px);
  --td-radius-xs: 3px;
  --td-radius-sm: 6px;
  --td-radius-md: 8px;
  --td-radius-lg: 16px;
  --td-radius-pill: 999px;
  --td-button-radius: var(--td-radius-md);
  --td-card-radius: var(--td-radius-md);
  --td-media-radius: var(--td-radius-md);
  --td-surface-radius: var(--td-radius-md);
  --td-ease: cubic-bezier(.2, .72, .2, 1);
  --td-motion-ease: cubic-bezier(.16, 1, .3, 1);
  --td-dark-section-background: #191118 radial-gradient(circle at 82% 30%, #371649 0%, #191118 70%);
  --td-dark-note-color: rgba(255, 255, 255, .68);
  --td-icon-size: 11px;
  --td-icon-gap: 8px;
  --td-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 6 12 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7l-10 10'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
  --td-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%237a21b7'/%3E%3Cpath d='m7 12.3 3.1 3.1L17.4 8' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --td-check-circle-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23d9b5ef'/%3E%3Cpath d='m7 12.3 3.1 3.1L17.4 8' fill='none' stroke='%23231624' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --td-text: var(--td-body);
  --td-text-strong: var(--td-ink);
  --td-emphasis-color: var(--td-accent);
  --td-kicker-color: var(--td-accent);
  --td-link-color: var(--td-accent);
  --td-focus-color: var(--td-accent-bright);
  --td-dark-accent: #d8b1f2;
  --td-dark-kicker: #d9b5ef;
  --td-dark-link: #e5bdf6;
  --td-card-text: rgba(255,255,255,.76);
  --td-card-gap: clamp(20px, 1.7vw, 26px);
  --td-section-head-gap: clamp(42px, 4.8vw, 72px);
  --td-motion-arrow-duration: 400ms;
  --td-motion-arrow-ease: cubic-bezier(.2,.7,.2,1);
  --td-motion-fade-duration: 650ms;
  --td-motion-card-duration: 480ms;
  margin: 0;
  color: var(--td-ink);
  font: 300 16px/normal var(--td-body-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.td-system), :where(.td-system) *, :where(.td-system) *::before, :where(.td-system) *::after {
  box-sizing: border-box;
}

:where(.td-system) :where(h1,h2,h3,h4,p,ul,ol,figure,fieldset,blockquote) {
  margin: 0;
}

:where(.td-system) :where(img,picture,video) {
  display: block;
  max-width: 100%;
}

:where(.td-system) a {
  color: inherit;
  text-decoration: none;
}

:where(.td-system) :where(a,button,input,textarea,select) {
  -webkit-tap-highlight-color: transparent;
}

:where(.td-system) :where(a,button,input,textarea,select,[tabindex]):focus-visible {
  outline: 2px solid var(--td-focus-color);
  outline-offset: 3px;
}

:where(.td-system) ::selection {
  background: var(--td-accent);
  color: #fff;
}

:where(.td-system) :where(input,textarea) {
  caret-color: var(--td-accent);
}

:where(.td-system) [aria-disabled="true"] {
  cursor: default;
}

/* Themes change semantic colors; type and spacing remain identical. */

:where(.td-system) .td-theme--soft {
  background: var(--td-paper-soft);
}

:where(.td-system) .td-theme--lavender {
  background: var(--td-lavender);
}

:where(.td-system) .td-theme--dark {
  --td-text: rgba(255,255,255,.72);
  --td-text-strong: #fff;
  --td-emphasis-color: var(--td-dark-accent);
  --td-kicker-color: var(--td-dark-kicker);
  --td-link-color: var(--td-dark-link);
  --td-focus-color: var(--td-dark-accent);
  color: #fff;
}

:where(.td-system) .td-theme--photo {
  --td-text: #fff;
  --td-text-strong: #fff;
  --td-link-color: var(--td-dark-kicker);
  color: #fff;
}

/* Layout and vertical rhythm. */

:where(.td-system) .td-layout {
  width: min(var(--td-layout-max),calc(100% - var(--td-layout-gutter) * 2));
  margin-inline: auto;
}

:where(.td-system) .td-section {
  position: relative;
  padding-block: var(--td-section-space-y);
  background: var(--td-paper);
  color: var(--td-text-strong);
}

:where(.td-system) .td-section.td-theme--soft {
  background: var(--td-paper-soft);
}

:where(.td-system) .td-section.td-theme--lavender {
  background: var(--td-lavender);
}

:where(.td-system) .td-section.td-theme--dark {
  background: var(--td-dark-section-background);
}

:where(.td-system) .td-section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.72fr);
  gap: var(--td-layout-gap);
  align-items: end;
  margin-bottom: var(--td-section-head-gap);
}

:where(.td-system) .td-section-head--stacked {
  grid-template-columns: minmax(0,850px);
  align-items: start;
}

:where(.td-system) .td-section-head--actions {
  grid-template-columns: minmax(0,1fr) auto;
  margin-bottom: clamp(52px,5vw,76px);
}

:where(.td-system) .td-heading-group {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--td-kicker-heading-gap);
}

:where(.td-system) .td-intro {
  max-width: 34em;
}

:where(.td-system) .td-copy-flow > .td-intro,
:where(.td-system) .td-section-head .td-intro {
  margin-top: var(--td-heading-content-gap-md);
}

:where(.td-system) .td-prose {
  min-width: 0;
}

:where(.td-system) .td-copy-flow > .td-intro + .td-intro {
  margin-top: var(--td-heading-content-gap-card);
}

/* Semantic typography: heading levels are HTML semantics, classes are roles. */

:where(.td-system) .td-heading {
  margin: 0;
  color: var(--td-text-strong);
  font: 300 var(--td-type-display-size)/var(--td-type-display-leading) var(--td-heading-font);
  letter-spacing: var(--td-type-display-tracking);
  text-wrap: balance;
}

:where(.td-system) .td-heading--card {
  font-size: var(--td-type-heading-sm-size);
  line-height: var(--td-type-heading-leading);
}

:where(.td-system) .td-heading--small {
  font-size: var(--td-type-heading-xs-size);
  line-height: var(--td-type-heading-leading);
}

:where(.td-system) .td-heading--compact {
  font-size: var(--td-type-heading-xs-size);
  line-height: var(--td-type-heading-compact-leading);
}

:where(.td-system) .td-heading--feature {
  font-size: var(--td-type-heading-feature-size);
  font-weight: 400;
  line-height: var(--td-type-heading-feature-leading);
}

:where(.td-system) .td-heading--premium {
  font-size: clamp(25px,2vw,28px);
  line-height: var(--td-type-heading-premium-leading);
  letter-spacing: -.018em;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}

:where(.td-system) .td-heading--photo {
  font-size: var(--area-title-size,28px);
  line-height: var(--td-type-heading-photo-leading);
}

:where(.td-system) .td-emphasis {
  color: var(--td-emphasis-color);
  font-style: italic;
  font-weight: inherit;
}

/* Prices retain the established landing CTA typography, not heading weight. */
:where(.td-system) .td-price {
  margin: 0;
  color: var(--td-text-strong);
  font: 500 var(--td-type-price-size)/1 var(--td-heading-font);
  letter-spacing: normal;
  white-space: nowrap;
}

:where(.td-system) .td-body {
  margin: 0;
  color: var(--td-text);
  font: 300 var(--td-type-body-size)/var(--td-type-body-leading) var(--td-body-font);
  letter-spacing: normal;
}

:where(.td-system) .td-body strong {
  color: var(--td-text-strong);
  font-weight: 500;
}

:where(.td-system) .td-body--compact {
  font-size: var(--td-type-compact-size);
  line-height: var(--td-type-compact-leading);
}

:where(.td-system) .td-body--editorial {
  word-spacing: -1.5px;
}

:where(.td-system) .td-body--premium {
  color: var(--td-card-text);
  font-size: clamp(18px,1.35vw,19px);
  line-height: 1.58;
}

:where(.td-system) .td-body--photo {
  font-size: 18px;
  line-height: 1.5;
}

:where(.td-system) .td-kicker {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 30px;
  color: var(--td-kicker-color);
  font: 600 var(--td-type-kicker-size)/var(--td-type-kicker-leading) var(--td-body-font);
  letter-spacing: var(--td-type-kicker-tracking);
  text-transform: uppercase;
}

:where(.td-system) .td-kicker::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: calc((var(--td-type-kicker-leading) * 1em - 7px)/2);
  background: currentColor;
  content: "";
  transform: rotate(45deg) translateY(-1px);
}

:where(.td-system) .td-heading-group > .td-kicker {
  margin: 0;
}

:where(.td-system) .td-label {
  margin: 0 0 12px;
  color: var(--td-kicker-color);
  font: 600 16px/1.3 var(--td-body-font);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Actions share one arrow asset and motion curve. */

:where(.td-system) .td-button {
  display: inline-flex;
  width: auto;
  min-height: auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 30px;
  border: 1.5px solid var(--td-accent);
  border-radius: var(--td-button-radius);
  color: #fff;
  font: 600 clamp(11.5px,1vw,12.5px)/1 var(--td-body-font);
  letter-spacing: .16em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .45s ease,background-color .45s ease,border-color .45s ease,transform .45s var(--td-motion-arrow-ease),box-shadow .45s ease,background-position .75s var(--td-motion-arrow-ease);
}

:where(.td-system) .td-button::after, :where(.td-system) .td-link:not(.td-link--photo)::after, :where(.td-system) .td-icon--arrow {
  display: inline-block;
  flex-shrink: 0;
  width: var(--td-icon-size,11px);
  height: var(--td-icon-size,11px);
  background: currentColor;
  -webkit-mask: var(--td-arrow-icon) center / contain no-repeat;
  mask: var(--td-arrow-icon) center / contain no-repeat;
  transition: transform var(--td-motion-arrow-duration) var(--td-motion-arrow-ease);
}

:where(.td-system) .td-button::after, :where(.td-system) .td-link:not(.td-link--photo)::after {
  margin-left: var(--td-icon-gap);
  content: "";
  vertical-align: middle;
}

:where(.td-system) .td-button:is(:hover,:focus-visible)::after, :where(.td-system) .td-link:is(:hover,:focus-visible):not(.td-link--photo)::after, :where(.td-system) .td-card:is(:hover,:focus-visible) .td-link:not(.td-link--photo)::after, :where(.td-system) .td-card[href]:not([aria-disabled="true"]):is(:hover,:focus-visible) .td-link--photo .td-icon--arrow {
  transform: translate(3px,-3px);
}

:where(.td-system) .td-button:not(.td-button--secondary):not(.td-button--light):not(.td-button--ghost-light) {
  background: var(--td-accent) linear-gradient(115deg,transparent 25%,rgba(255,255,255,.3) 48%,transparent 66%) 175% 0 / 250% 100% no-repeat;
  color: #fff;
  animation: td-cta-sheen 7s ease-in-out infinite;
}

:where(.td-system) .td-button:is(:hover,:focus-visible) {
  box-shadow: 0 22px 42px -16px rgba(122,33,183,.55);
  transform: translateY(-2px);
}

:where(.td-system) .td-button:not(.td-button--secondary):not(.td-button--light):not(.td-button--ghost-light):is(:hover,:focus-visible) {
  background-position: -75% 0;
  animation: none;
}

:where(.td-system) .td-button--secondary {
  background: transparent;
  color: var(--td-accent);
}

:where(.td-system) .td-button--secondary:is(:hover,:focus-visible) {
  background: var(--td-accent);
  color: #fff;
}

:where(.td-system) .td-button--light {
  background: #fff;
  border-color: #fff;
  color: var(--td-ink);
}

:where(.td-system) .td-button--light:is(:hover,:focus-visible) {
  background: #f7effb;
  border-color: #f7effb;
}

:where(.td-system) .td-button--ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,.52);
  color: #fff;
}

:where(.td-system) .td-button--ghost-light:is(:hover,:focus-visible) {
  background: #fff;
  border-color: #fff;
  color: var(--td-ink);
}

:where(.td-system) .td-button--compact {
  padding: 14px 20px;
}

:where(.td-system) .td-button:focus-visible {
  outline-color: var(--td-focus-color);
}

:where(.td-system) .td-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--td-link-color);
  font: 600 15px/1.35 var(--td-body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

:where(.td-system) .td-link--compact {
  font-size: 13px;
  letter-spacing: .14em;
}

:where(.td-system) .td-link--photo {
  position: relative;
  gap: var(--td-icon-gap);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .14em;
}

:where(.td-system) .td-link--photo .td-icon--arrow {
  flex: 0 0 var(--td-icon-size);
}

:where(.td-system) .td-link-label {
  position: relative;
}

:where(.td-system) .td-link--photo::after,
:where(.td-system) .td-link-label::after {
  position: absolute;
  right: calc(var(--td-icon-size) + var(--td-icon-gap));
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms ease;
}

:where(.td-system) .td-link-label::after {
  right: 0;
}

:where(.td-system) .td-card[href]:not([aria-disabled="true"]):is(:hover,:focus-visible) .td-link--photo::after,
:where(.td-system) .td-link:not([aria-disabled="true"]):is(:hover,:focus-visible) > .td-link-label::after {
  transform: scaleX(1);
  transition-duration: 550ms;
}

:where(.td-system) .td-icon--illustration {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

:where(.td-system) .td-icon--illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(88%) sepia(17%) saturate(1271%) hue-rotate(227deg) brightness(99%) contrast(94%);
}

@keyframes td-cta-sheen {
  0%,70% {
    background-position: 175% 0;
  }

  100% {
    background-position: -75% 0;
  }
}

/* Checklists share one mark, with explicit content density. */

:where(.td-system) .td-check-list {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.td-system) .td-check-list > li {
  position: relative;
  margin: 0;
  padding-left: 28px;
  color: var(--td-text);
  font: 300 var(--td-type-body-size)/1.5 var(--td-body-font);
}

:where(.td-system) .td-check-list > li::before {
  position: absolute;
  top: .2em;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--td-check-circle) center / contain no-repeat;
  content: "";
}

:where(.td-system) .td-theme--dark .td-check-list > li {
  color: var(--td-card-text);
}

:where(.td-system) .td-theme--dark .td-check-list > li::before {
  background-image: var(--td-check-circle-dark);
}

:where(.td-system) .td-check-list--review {
  gap: 0;
}

:where(.td-system) .td-check-list--review > li {
  padding-block: 11px;
  line-height: var(--td-type-body-leading);
}

:where(.td-system) .td-check-list--review > li::before {
  top: calc(11px + .75em - 9px);
}

/* Repeated surfaces. Composition and content measures stay with the section. */

:where(.td-system) .td-card {
  min-width: 0;
}

:where(.td-system) .td-card--surface {
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: var(--td-surface-radius);
  background: var(--td-paper);
}

:where(.td-system) .td-card--photo {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--td-card-radius);
  background: var(--td-ink);
  color: #fff;
}

:where(.td-system) .td-card--premium {
  --td-premium-card-surface: linear-gradient(145deg,rgba(59,37,66,.98) 0%,rgba(39,24,45,.98) 52%,rgba(29,18,35,.99) 100%);
  --td-premium-card-edge: linear-gradient(135deg,rgba(252,240,255,.76) 0%,rgba(205,148,232,.34) 34%,rgba(255,255,255,.12) 62%,rgba(229,176,246,.62) 100%);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  padding: clamp(40px,3.1vw,44px) clamp(34px,2.8vw,40px);
  border: 1px solid transparent;
  border-radius: clamp(22px,2vw,28px);
  background: radial-gradient(circle at 94% 108%,rgba(207,117,235,.22),transparent 39%) padding-box,radial-gradient(circle at 4% -7%,rgba(255,255,255,.09),transparent 34%) padding-box,var(--td-premium-card-surface) padding-box,var(--td-premium-card-edge) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(216,151,239,.07),0 34px 64px -46px rgba(0,0,0,.92),0 22px 46px -42px rgba(199,102,235,.72);
  overflow: hidden;
  transform: translateZ(0);
}

:where(.td-system) a.td-card--premium {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--td-motion-card-duration) var(--td-motion-ease),box-shadow var(--td-motion-card-duration) var(--td-motion-ease);
}

:where(.td-system) a.td-card--premium::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 5% 0%,rgba(255,255,255,.13),transparent 33%),radial-gradient(circle at 96% 104%,rgba(225,141,247,.19),transparent 42%);
  content: "";
  opacity: .34;
  pointer-events: none;
  transition: opacity .45s var(--td-motion-ease);
}

:where(.td-system) a.td-card--premium > * {
  position: relative;
  z-index: 1;
}

:where(.td-system) a.td-card--premium:is(:hover,:focus-visible) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(228,177,247,.12),0 44px 80px -50px rgba(0,0,0,.98),0 30px 60px -42px rgba(207,116,241,.92);
  transform: translateY(-7px);
}

:where(.td-system) a.td-card--premium:is(:hover,:focus-visible)::before {
  opacity: 1;
}

:where(.td-system) .td-card--premium:focus-visible {
  outline-color: #f0d5fc;
  outline-offset: 4px;
}

:where(.td-system) .td-card--featured {
  --td-premium-card-surface: linear-gradient(145deg,rgba(68,38,76,.99) 0%,rgba(45,24,53,.99) 55%,rgba(31,17,37,.99) 100%);
  --td-premium-card-edge: linear-gradient(135deg,rgba(255,241,255,.86) 0%,rgba(224,152,236,.48) 36%,rgba(255,255,255,.15) 64%,rgba(239,174,230,.76) 100%);
}

:where(.td-system) [data-td-marquee][data-motion-paused="true"] [data-td-marquee-track] {
  animation-play-state: paused;
}

:where(.td-system) .td-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(.td-system) .skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 10px 16px;
  color: #fff;
  background: var(--td-ink);
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(.td-system) .skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

/* Assessment preview component. These are inert illustrative controls. */

:where(.td-system) .assessment-form-shell {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 177, 242, .34);
  border-radius: var(--td-media-radius);
  background: #fff;
  box-shadow: 0 34px 90px -48px rgba(0, 0, 0, .58);
}

:where(.td-system) .assessment-form-preview {
  min-height: 0;
  padding: 0;
  background: #fff;
  color: var(--td-ink);
  font-family: var(--td-body-font);
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  pointer-events: none;
}

:where(.td-system) .assessment-form-top {
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--td-dark-section-background);
}

:where(.td-system) .assessment-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-size: clamp(12px, 1vw, 14px);
}

:where(.td-system) .assessment-form-head span {
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:where(.td-system) .assessment-form-progress {
  height: 4px;
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: var(--td-radius-pill);
  background: rgba(255, 255, 255, .28);
}

:where(.td-system) .assessment-form-progress span {
  display: block;
  width: 44%;
  height: 100%;
  background: #c675ef;
}

:where(.td-system) .assessment-form-body {
  padding: clamp(26px, 3vw, 38px);
}

:where(.td-system) .assessment-form-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--td-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:where(.td-system) .assessment-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

:where(.td-system) .assessment-question + .assessment-question {
  margin-top: clamp(24px, 2.4vw, 32px);
}

:where(.td-system) .assessment-question legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--td-ink);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 600;
  line-height: 1.4;
}

:where(.td-system) .assessment-severity-labels,
:where(.td-system) .assessment-scale-notes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--td-muted);
  font-size: 10px;
  line-height: 1.4;
}

:where(.td-system) .assessment-severity-range {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  accent-color: var(--td-accent);
}

:where(.td-system) .assessment-option-grid {
  display: grid;
  gap: 9px;
}

:where(.td-system) .assessment-option-grid--changes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.td-system) .assessment-option-grid--priorities,
:where(.td-system) .assessment-option-grid--frequency {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

:where(.td-system) .assessment-option-card {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #ded4e3;
  border-radius: var(--td-radius-sm);
  background: #fff;
  color: var(--td-ink-soft);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

:where(.td-system) .assessment-option-card:has(input:checked) {
  border-color: rgba(122, 33, 183, .36);
  background: #f7effb;
  color: var(--td-ink);
}

:where(.td-system) .assessment-option-card input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--td-accent);
}

:where(.td-system) .assessment-option-grid--priorities .assessment-option-card,
:where(.td-system) .assessment-option-grid--frequency .assessment-option-card {
  min-height: 62px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

:where(.td-system) .assessment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(28px, 2.8vw, 38px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

:where(.td-system) .assessment-form-actions button {
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

:where(.td-system) .assessment-form-back {
  padding: 10px 0;
  background: transparent;
  color: var(--td-accent);
}

:where(.td-system) .assessment-form-continue {
  padding: 13px 22px;
  border-radius: var(--td-button-radius);
  background: var(--td-accent);
  color: #fff;
}

/* Personalized protocol preview component. */

:where(.td-system) .protocol-card {
  --card-muted: #9a8fa4;
  --card-value: #3c3540;
  --card-border: #efeaf3;
  --card-edge: #ece4f2;
  --card-avatar-bg: #f1e7f8;
  --card-note-bg: #f4edf8;
  width: min(100%, 262px);
  padding: 20px 18px;
  border: 1px solid var(--card-edge);
  border-radius: 7px;
  background: #fff;
  filter: drop-shadow(0 28px 64px rgba(25, 17, 24, .42));
  font-family: var(--td-body-font);
}

:where(.td-system) .protocol-card__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--card-muted);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

:where(.td-system) .protocol-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

:where(.td-system) .protocol-card__avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--card-avatar-bg);
  box-shadow: 0 0 0 1px #ecdff5;
}

:where(.td-system) .protocol-card__avatar img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
}

:where(.td-system) .protocol-card__head-label {
  color: var(--td-accent);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

:where(.td-system) .protocol-card__credentials {
  display: inline-block;
  margin-top: 2px;
  text-transform: none;
}

:where(.td-system) .protocol-card__badge {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: var(--td-radius-pill);
  background: var(--td-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

:where(.td-system) .protocol-card__title {
  margin-bottom: 7px;
  color: var(--td-ink);
  font-family: var(--td-heading-font);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}

:where(.td-system) .protocol-card__subtitle {
  margin-bottom: 16px;
  color: var(--card-muted);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.4;
}

:where(.td-system) .protocol-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--card-border);
}

:where(.td-system) .protocol-card__row:last-child {
  padding-bottom: 4px;
}

:where(.td-system) .protocol-card__row-label {
  color: var(--card-muted);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}

:where(.td-system) .protocol-card__row-value {
  color: var(--card-value);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
}

:where(.td-system) .protocol-card__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: var(--td-radius-pill);
  background: var(--card-note-bg);
  color: var(--td-accent);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width:781px) {
  :where(.td-system) .td-button {
    min-height: clamp(59.4375px,3.2666vw,62.71875px);
  }
}

@media (min-width:781px) and (max-width:1100px) {
  :where(.td-system) .td-button {
    min-height: 61px;
  }
}

@media (max-width:780px) {
  :where(.td-system) {
    --td-heading-content-gap-lg: 32px;
  }

  :where(.td-system) .td-section-head {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }
}

@media (max-width:620px) {
  :where(.td-system) {
    --td-layout-gutter: 15px;
    --td-section-space-y: 82px;
    --td-type-body-size: var(--td-type-body-mobile-size);
    --td-type-body-leading: var(--td-type-body-mobile-leading);
  }

  :where(.td-system) .td-kicker--responsive {
    font-size: 14px;
    letter-spacing: .18em;
  }

  :where(.td-system) .td-button {
    white-space: normal;
    text-align: center;
  }

  :where(.td-system) .td-body--photo {
    font-size: 17px;
    line-height: 1.55;
  }
}

@media (max-width:340px) {
  :where(.td-system) .td-kicker--responsive {
    font-size: 12px;
    letter-spacing: .14em;
  }
}

@media (prefers-reduced-motion:reduce) {
  :where(.td-system), :where(.td-system) *, :where(.td-system) *::before, :where(.td-system) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  :where(.td-system) .td-button {
    animation: none !important;
  }

  :where(.td-system) .td-card:is(:hover,:focus-visible), :where(.td-system) .td-button:is(:hover,:focus-visible) {
    transform: none;
  }
}
