/* Opt-in only. Load after legacy CSS and migrate component markup explicitly. */
.ty-site { margin: 0; background: var(--ty-bg); color: var(--ty-text); font: 400 var(--ty-body)/1.65 var(--ty-font); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.ty-site *, .ty-site *::before, .ty-site *::after { box-sizing: border-box; }
.ty-site :where(h1,h2,h3,p,figure) { margin: 0; }
.ty-site :where(a) { color: var(--ty-action); text-decoration: none; }
.ty-site :where(button,input,select,textarea) { font: inherit; }
.ty-site :where(img) { display: block; max-width: 100%; height: auto; }
.ty-site :where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--ty-focus); outline-offset: 4px; }
.ty-site [id] { scroll-margin-top: calc(var(--ty-header-height) + var(--ty-space-5)); }
.ty-site .ty-container { width: min(calc(100% - var(--ty-gutter) * 2), var(--ty-content-max)); margin-inline: auto; }
.ty-site .ty-reading { max-width: var(--ty-reading-max); margin-inline: auto; }
.ty-site .ty-section { padding-block: var(--ty-section-space); }
.ty-site .ty-surface { background: var(--ty-surface); }
.ty-site .ty-center { text-align: center; }
.ty-site .ty-stack > * + * { margin-block-start: var(--ty-space-5); }
.ty-site .ty-eyebrow { font-size: var(--ty-small); font-weight: 600; color: var(--ty-muted); }
.ty-site .ty-display { font-size: var(--ty-title-hero); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.ty-site .ty-heading { font-size: var(--ty-title-section); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.ty-site .ty-subheading { font-size: var(--ty-title-card); line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
.ty-site .ty-lead { color: var(--ty-muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.ty-site .ty-caption { font-size: var(--ty-caption); color: var(--ty-muted); line-height: 1.6; }
.ty-site .ty-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--ty-space-4); }
.ty-site .ty-button { display: inline-flex; justify-content: center; align-items: center; gap: var(--ty-space-2); min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--ty-radius-pill); background: var(--ty-action); color: var(--ty-on-action); font-size: var(--ty-body); line-height: 1.35; font-weight: 500; text-align: center; cursor: pointer; transition: background var(--ty-duration) var(--ty-ease); }
.ty-site .ty-button:hover { background: var(--ty-action-hover); }
.ty-site .ty-button--secondary { border-color: var(--ty-action); background: transparent; color: var(--ty-action); }
.ty-site .ty-button--secondary:hover { background: var(--ty-surface); }
.ty-site .ty-button:disabled { background: var(--ty-disabled-bg); color: var(--ty-disabled-text); border-color: transparent; cursor: not-allowed; }
.ty-site .ty-link { display: inline-flex; align-items: center; min-height: 44px; gap: var(--ty-space-2); color: var(--ty-action); }
.ty-site .ty-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ty-site .ty-header { position: sticky; top: 0; z-index: var(--ty-layer-header); min-height: var(--ty-header-height); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ty-border); }
.ty-site .ty-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ty-space-3); min-height: var(--ty-header-height); }
.ty-site .ty-brand { color: var(--ty-text); font-weight: 700; font-size: 18px; white-space: nowrap; letter-spacing: -.03em; }
.ty-site .ty-nav { display: flex; align-items: center; gap: var(--ty-space-3); }
.ty-site .ty-nav > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: var(--ty-small); color: var(--ty-text); }
.ty-site .ty-nav > .ty-button { min-height: 44px; min-width: auto; padding: 10px 16px; color: var(--ty-on-action); }
.ty-site .ty-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--ty-space-5); }
.ty-site .ty-card { padding: var(--ty-space-6); background: var(--ty-surface); border-radius: var(--ty-radius-card); }
.ty-site .ty-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ty-radius-card); }
.ty-site .ty-hero-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-block-start: var(--ty-space-7); }
.ty-site .ty-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--ty-small); }
.ty-site .ty-table th, .ty-site .ty-table td { padding: 20px 8px; border-bottom: 1px solid var(--ty-border); text-align: center; vertical-align: top; }
.ty-site .ty-table th:first-child { width: 24%; text-align: left; }
.ty-site .ty-table thead th { font-weight: 600; }
.ty-site .ty-table tbody th { font-weight: 400; color: var(--ty-muted); }
.ty-site .ty-form { max-width: var(--ty-form-max); margin-inline: auto; }
.ty-site .ty-field { display: grid; gap: var(--ty-space-2); }
.ty-site .ty-label { font-size: var(--ty-small); font-weight: 600; }
.ty-site .ty-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--ty-control-border); border-radius: var(--ty-radius-field); color: var(--ty-text); background: var(--ty-bg); font-size: 17px; }
.ty-site .ty-input::placeholder { color: var(--ty-muted); }
.ty-site .ty-input[aria-invalid="true"] { border-color: var(--ty-error); }
.ty-site .ty-error { color: var(--ty-error); font-size: var(--ty-small); }
.ty-site .ty-success { color: var(--ty-success); font-size: var(--ty-small); }
.ty-site .ty-check { display: flex; align-items: flex-start; gap: var(--ty-space-3); min-height: 44px; font-size: var(--ty-small); }
.ty-site .ty-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ty-action); }
.ty-site .ty-footer { padding-block: var(--ty-space-7); background: var(--ty-surface); border-top: 1px solid var(--ty-border); font-size: var(--ty-caption); color: var(--ty-muted); }
.ty-site .ty-skip { position: absolute; left: var(--ty-gutter); top: -100px; z-index: 30; background: white; padding: 12px; }
.ty-site .ty-skip:focus { top: 8px; }
.ty-site .ty-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 768px) {
  .ty-site .ty-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ty-site .ty-nav { gap: var(--ty-space-5); }
  .ty-site .ty-hero-media { aspect-ratio: 16 / 7; }
  .ty-site .ty-table { font-size: var(--ty-body); }
  .ty-site .ty-table th, .ty-site .ty-table td { padding: 24px 16px; }
}
@media (max-width: 359px) {
  .ty-site .ty-header__inner { flex-wrap: wrap; padding-block: 8px; }
  .ty-site .ty-nav { flex: 1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-site *, .ty-site *::before, .ty-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Native anchor scrolling; no hidden state when JavaScript is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.ty-site) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.ty-site) { scroll-behavior: auto; }
}
