/* Scoped to the supported theme; the original WordPress queries remain in place. */
body.torf-ux-ready {
  --torf-ux-ink: #171717;
  --torf-ux-paper: #f5f5f5;
  --torf-ux-line: #c9c9c9;
  --torf-ux-gutter: 32px;
  --torf-ux-card-space: 24px;
  --torf-v3-gutter: var(--torf-ux-gutter);
  --torf-page-gutter: var(--torf-ux-gutter);
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}
.torf-ux-ready :is(h1,h2,h3,h4,h5,h6,button,input,select,summary,.wp-block-button__link) {
  font-family: Roboto, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
.torf-ux-ready :is(h1,h2,h3,h4,h5,h6) { text-wrap: balance; overflow-wrap: anywhere; }
.torf-ux-ready :is(a,button,summary,input):focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 5px !important;
}
.torf-ux-ready :is(.wp-block-button__link,.wp-block-post-excerpt__more-link,.page-numbers,.wp-block-query-pagination-next,.wp-block-query-pagination-previous) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.torf-ux-ready .wp-block-button__link { border-radius: 4px; font-size: 14px; letter-spacing: 0; }
.torf-ux-ready .wp-site-blocks > header.wp-block-template-part {
  transform: none !important;
  filter: none !important;
  animation: none !important;
}
.torf-ux-ready .torf-header-inner { gap: 24px !important; margin-block:0 !important; }
.torf-ux-ready .torf-brand-lockup { flex: 1 1 auto; min-width: 0; }
.torf-ux-ready .torf-primary-nav { flex: 0 1 auto; margin-left: auto; }
.torf-ux-ready .torf-primary-nav .wp-block-navigation-item__content {
  font-size: 14px !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0 !important;
}
.torf-ux-ready .torf-primary-nav a[aria-current="page"] { text-decoration: underline !important; text-underline-offset: 7px; }
.torf-ux-ready .torf-header-cta .wp-block-button__link { background: #f5f5f5 !important; color: #171717 !important; text-shadow: none; }
.torf-ux-ready :is(.torf-core-language-switcher,.wp-block-torf-core-language-switcher) a { min-width: 32px; min-height: 44px; display:inline-flex; align-items:center; justify-content:center; }
@media (min-width: 901px) {
  .torf-ux-ready .torf-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; }
  .torf-ux-ready .torf-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block !important; }
  .torf-ux-ready .torf-ux-menu-contact { display: none !important; }
}
@media (max-width: 900px) {
  .torf-ux-ready .torf-primary-nav { order: 5; }
  .torf-ux-ready .torf-header-inner { gap: 8px !important; }
  .torf-ux-ready .torf-header-cta { display: none !important; }
  .torf-ux-ready .torf-primary-nav .wp-block-navigation__responsive-container-open { display: inline-flex !important; width:44px; height:44px; }
  .torf-ux-ready .torf-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .torf-ux-ready .torf-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important; inset:0 !important; z-index:10000 !important;
    background: #131313 !important; color:#fff !important; opacity:1 !important;
    padding:24px !important; overflow:auto !important; transform:none !important;
  }
  .torf-ux-ready:has(.is-menu-open) .torf-site-header { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
  .torf-ux-ready .is-menu-open .wp-block-navigation__responsive-container-close { width:44px; height:44px; top:0; right:0; }
  .torf-ux-ready .is-menu-open .wp-block-navigation__responsive-container-content { padding-top:72px !important; align-items:stretch !important; }
  .torf-ux-ready .is-menu-open .wp-block-navigation__container { width:100%; gap:0 !important; align-items:stretch !important; }
  .torf-ux-ready .is-menu-open .wp-block-navigation-item { width:100%; }
  .torf-ux-ready .torf-primary-nav .is-menu-open .wp-block-navigation-item__content {
    display:flex !important; width:100%; min-height:68px; padding:12px 0;
    justify-content:flex-start; text-align:left; font-size:28px !important;
    line-height:1.2; color:white !important; border-bottom:1px solid #454545;
  }
  .torf-ux-ready .torf-primary-nav .is-menu-open .torf-ux-menu-contact a { margin-top:28px; font-size:18px !important; }
}
.torf-ux-ready .torf-ux-skip {
  position:fixed; top:12px; left:12px; z-index:100001;
  padding:12px 20px; background:white; color:#111;
  transform:translateY(-180%); font-weight:700;
}
.torf-ux-ready .torf-ux-skip:focus { transform:none; }
.torf-ux-ready :is(#torf-main,#torf-ux-projects,#torf-ux-systems) { scroll-margin-top:90px; }

/* Apply page gutters once, at the content wrapper, including nested WordPress blocks. */
.torf-ux-ready :is(.torf-section.alignfull,.torf-archive-hero,.torf-page-hero,.torf-single-hero,.torf-collaboration) { padding-inline:0 !important; }
.torf-ux-ready :is(.torf-section.alignfull,.torf-archive-hero,.torf-page-hero,.torf-single-hero,.torf-collaboration) > .alignwide,
.torf-ux-ready .torf-main > .alignwide:not(.alignfull),
.torf-ux-ready :is(.torf-header-inner,.torf-footer-top,.torf-footer-base,.torf-partners__heading) {
  width:min(var(--wp--style--global--wide-size,1440px),calc(100% - (var(--torf-ux-gutter) * 2))) !important;
  max-width:min(var(--wp--style--global--wide-size,1440px),calc(100% - (var(--torf-ux-gutter) * 2))) !important;
  margin-inline:auto !important;
}
.torf-ux-ready :is(.torf-archive-hero,.torf-page-hero) { min-height:0 !important; padding-block:72px !important; }
.torf-ux-ready .torf-collaboration-inner { padding-block:0 !important; }

/* Keep the existing full-bleed animation, with a readable first-viewport identity. */
body.torf-ux-ready #torfan-intro.torfan-intro { height:calc(92svh - var(--torf-v3-header,72px)) !important; min-height:560px !important; }
.torf-ux-ready .torf-ux-intro-copy {
  position:absolute; z-index:12; top:26%; left:max(var(--torf-ux-gutter),calc((100% - var(--wp--style--global--wide-size,1440px)) / 2));
  width:430px; max-width:calc(100% - 48px); margin:0; color:white;
}
.torf-ux-ready .torf-ux-intro-copy .torf-ux-kicker { margin:0 0 20px; font-size:12px; line-height:1.5; color:#d0d0d0; }
.torf-ux-ready .torf-ux-brand { margin:0 0 22px; font:700 76px/1.03 Roboto,Arial,sans-serif; letter-spacing:0; }
.torf-ux-ready .torf-ux-intro-lead { max-width:360px; margin:0 0 28px; font-size:18px; line-height:1.65; color:#e4e4e4; }
.torf-ux-ready .torf-ux-actions { display:flex; flex-wrap:wrap; gap:12px; }
.torf-ux-ready .torf-ux-actions a { display:inline-flex; align-items:center; min-height:48px; padding:10px 20px; border:1px solid #c9c9c9; border-radius:4px; background:#fff; color:#111 !important; text-decoration:none; font-size:14px; font-weight:600; }
.torf-ux-ready .torf-ux-actions a + a { background:#131313; color:white !important; }
.torf-ux-ready .torfan-intro__menu-button { min-height:48px !important; font-size:13px !important; letter-spacing:0 !important; }
.torf-ux-ready .torfan-intro__footer .torfan-intro__cta { min-height:44px; }
.torf-ux-ready .torfan-intro__tour-toggle { min-width:44px !important; min-height:44px !important; }
.torf-ux-ready .torf-hero-lead { display:block !important; max-width:500px; color:#fff !important; font-size:18px !important; line-height:1.6 !important; margin-top:24px !important; }
.torf-ux-ready .torf-hero-actions { display:flex !important; gap:12px !important; pointer-events:auto; margin-top:24px !important; }
.torf-ux-ready .torf-hero-actions .wp-block-button__link { background:#fff !important; color:#171717 !important; border:1px solid #fff; }
.torf-ux-ready .torf-hero-actions .is-style-outline-precise .wp-block-button__link { background:#171717 !important; color:#fff !important; }
.torf-ux-ready .torf-hero .torf-hero-title { font-size:48px !important; line-height:1.13 !important; letter-spacing:0 !important; }
.torf-ux-ready .torf-hero-slide-caption .wp-block-post-title { font-size:20px !important; line-height:1.35 !important; }
.torf-ux-ready .torf-hero-controls { --torf-v3-control:44px; }
.torf-ux-ready .torf-custom-cursor { display:none !important; }
html.torf-has-custom-cursor body.torf-ux-ready,
html.torf-has-custom-cursor body.torf-ux-ready * { cursor:revert !important; }
.torf-ux-ready .torf-hero-control { min-width:44px; min-height:44px; }

/* Motion is continuous on hover and touch; stopping is an explicit action. */
.torf-ux-ready .torf-partners { position:relative; }
.torf-ux-ready .torf-partners .torf-partners__track {
  animation-duration:var(--torf-ux-marquee-duration,42s) !important;
  animation-timing-function:linear !important;
  animation-play-state:running !important;
}
.torf-ux-ready .torf-partners[data-ux-paused="true"] .torf-partners__track { animation-play-state:paused !important; }
.torf-ux-ready .torf-ux-motion-toggle {
  position:absolute; z-index:5; right:24px; top:14px; display:grid; place-items:center;
  width:44px; height:44px; padding:0; background:#171717; color:#fff;
  border:1px solid #737373; border-radius:4px; cursor:pointer;
}
.torf-ux-icon { width:18px; height:18px; flex:none; }
.torf-ux-ready .torf-partners__heading { padding-right:76px; }

.torf-ux-ready .torf-section { padding-block:80px !important; }
.torf-ux-ready .torf-section-head { gap:32px; margin-bottom:32px; }
.torf-ux-ready .torf-section-head h2 { font-size:42px !important; line-height:1.16 !important; letter-spacing:0 !important; max-width:26ch; }
.torf-ux-ready .torf-section-head p { line-height:1.6; }
.torf-ux-ready :is(.torf-page-title,.torf-single-title,.torf-archive-title) { font-size:60px !important; line-height:1.1 !important; }
.torf-ux-ready :is(.torf-archive-hero,.torf-page-hero,.torf-single-hero) { border-radius:0 !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) { border-radius:6px !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-featured-image { border-radius:4px !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-featured-image img { filter:none !important; border-radius:4px !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-title { font-size:24px !important; line-height:1.3 !important; margin:12px 0 !important; letter-spacing:0 !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-title a { font:inherit !important; }
.torf-ux-ready .torf-card > :not(.wp-block-post-featured-image) { margin-inline:var(--torf-ux-card-space) !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-excerpt { font-size:15px !important; line-height:1.65 !important; }
.torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-title a::after { display:none !important; }
.torf-ux-ready .wp-block-post-excerpt__more-link::before { display:none !important; }
.torf-ux-ready .wp-block-post-excerpt__more-text::after { display:none !important; }
.torf-ux-ready .wp-block-post-excerpt__more-link::after { display:none !important; }
.torf-ux-ready .torf-ux-project-details { margin-top:12px; border-top:1px solid var(--torf-ux-line); padding:4px 0 0; }
.torf-ux-ready .torf-ux-project-details summary { min-height:44px; align-content:center; cursor:pointer; font-size:14px; font-weight:500; }
.torf-ux-ready .torf-ux-project-details .torf-core-project-meta { margin-block:8px 12px !important; }
.torf-ux-ready .torf-ux-project-details :is(dt,dd) { font-size:13px !important; line-height:1.5; }
.torf-ux-ready .torf-system-card { display:flex !important; flex-direction:column; }
.torf-ux-ready .torf-system-card__media { flex:none; }
.torf-ux-ready .torf-system-card__body { display:flex !important; flex-direction:column; flex:1 1 auto; min-height:0 !important; margin:0 !important; padding:24px !important; gap:0 !important; }
.torf-ux-ready .torf-system-card__body::before { display:none !important; }
.torf-ux-ready .torf-system-card__body > .wp-block-post-title { order:0 !important; margin:0 0 12px !important; }
.torf-ux-ready .torf-system-card__body > .wp-block-post-excerpt { order:1 !important; margin:0 !important; }
.torf-ux-ready .torf-system-card__body > .torf-core-system-meta { order:2 !important; margin-top:16px !important; border-top:1px solid #666; padding-top:16px; }
.torf-ux-ready .torf-system-card .torf-core-system-meta__disclaimer { display:block !important; font-size:13px; }
.torf-ux-ready .torf-journal-card { min-height:0 !important; padding:24px !important; }
.torf-ux-ready .torf-journal-card .wp-block-post-title { font-size:21px !important; }
.torf-ux-ready.home .torf-research-home .torf-journal-grid > li:nth-child(n+4) { display:none; }
.torf-ux-ready .torf-footer-statement { font-size:36px !important; line-height:1.25 !important; }
.torf-ux-ready .torf-collaboration h2 { font-size:40px !important; line-height:1.2 !important; }

.torf-ux-ready .torf-ux-filters a {
  display:flex; align-items:center; min-height:48px; padding:12px 16px !important;
  font-size:14px !important; line-height:1.4; text-decoration:none !important;
}
.torf-ux-ready .torf-ux-filters a[aria-current="page"] { background:#171717 !important; color:#fff !important; font-weight:700; box-shadow:inset 0 -3px #a0a0a0; }
.torf-ux-ready .torf-ux-results { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-block:16px; border-bottom:1px solid #c9c9c9; margin-bottom:28px; font-size:14px; color:#4f4f4f; }
.torf-ux-ready .torf-pagination a { padding:10px 16px; }
.torf-ux-ready .torf-pagination .current { padding:10px 16px; background:#171717; color:#fff; border-radius:4px; }
@media (max-width: 1100px) {
  body.torf-ux-ready { --torf-ux-gutter:24px; }
  .torf-ux-ready .torf-ux-intro-copy { width:350px; }
  .torf-ux-ready .torf-ux-brand { font-size:60px; }
  .torf-ux-ready .torf-ux-intro-lead { max-width:300px; font-size:16px; }
  .torf-ux-ready .torf-system-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 640px) {
  body.torf-ux-ready { --torf-ux-gutter:20px; --torf-ux-card-space:20px; }
  body.torf-ux-ready #torfan-intro.torfan-intro { height:calc(92svh - var(--torf-v3-header,72px)) !important; min-height:max(620px,calc(var(--torf-ux-copy-bottom,300px) + 300px)) !important; }
  .torf-ux-ready .torf-ux-intro-copy { top:94px; left:20px; width:350px; max-width:calc(100% - 40px); }
  .torf-ux-ready .torf-ux-intro-copy .torf-ux-kicker { font-size:11px; margin-bottom:12px; }
  .torf-ux-ready .torf-ux-brand { font-size:44px; margin-bottom:12px; }
  .torf-ux-ready .torf-ux-intro-lead { font-size:15px; line-height:1.55; margin-bottom:16px; max-width:330px; }
  .torf-ux-ready .torf-ux-actions { gap:8px; }
  .torf-ux-ready .torf-ux-actions a { padding:10px 14px; font-size:13px; }
  body.torf-ux-ready #torfan-intro .torfan-intro__video-player { position:absolute !important; top:var(--torf-ux-copy-bottom,300px) !important; bottom:60px !important; left:0 !important; right:0 !important; width:100% !important; height:auto !important; }
  .torf-ux-ready .torfan-intro__video-slot { object-fit:contain !important; }
  .torf-ux-ready .torfan-intro__menu-button { font-size:11px !important; }
  .torf-ux-ready .torf-hero .torf-hero-title { font-size:32px !important; max-width:19ch !important; }
  .torf-ux-ready .torf-hero-lead { font-size:16px !important; line-height:1.55 !important; }
  .torf-ux-ready .torf-hero-actions .wp-block-button__link { font-size:13px; padding:10px 14px; }
  .torf-ux-ready .torf-section { padding-block:52px !important; }
  .torf-ux-ready .torf-section-head { gap:16px; }
  .torf-ux-ready .torf-section-head h2 { font-size:30px !important; line-height:1.25 !important; }
  .torf-ux-ready :is(.torf-page-title,.torf-single-title,.torf-archive-title) { font-size:38px !important; line-height:1.15 !important; }
  .torf-ux-ready :is(.torf-page-hero,.torf-archive-hero) { min-height:0 !important; padding-block:48px !important; }
  .torf-ux-ready .torf-system-grid { grid-template-columns:minmax(0,1fr) !important; }
  .torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) .wp-block-post-title { font-size:22px !important; }
  .torf-ux-ready .torf-ux-filters a { padding:10px 12px !important; font-size:13px !important; }
  .torf-ux-ready .torf-ux-filters .wp-block-navigation-item { min-width:0; }
  .torf-ux-ready .torf-footer-statement { font-size:28px !important; }
  .torf-ux-ready .torf-collaboration h2 { font-size:30px !important; }
}
@media (max-width:360px) {
  .torf-ux-ready .torf-ux-brand { font-size:34px; }
  .torf-ux-ready .torf-ux-intro-lead { font-size:14px; }
}
@media (prefers-reduced-motion: reduce) {
  .torf-ux-ready .torf-partners .torf-partners__track { animation:none !important; transform:none !important; width:100%; }
  .torf-ux-ready .torf-partners__viewport { mask-image:none; -webkit-mask-image:none; }
  .torf-ux-ready .torf-partners__list:not([aria-hidden="true"]) { flex-wrap:wrap; justify-content:center; width:100%; gap:24px; }
  .torf-ux-ready .torf-partners__list[aria-hidden="true"], .torf-ux-ready .torf-ux-motion-toggle { display:none !important; }
  .torf-ux-ready .torf-partners__heading::before { animation:none !important; }
  .torf-ux-ready :is(.torf-card,.torf-system-card,.torf-journal-card) img { transform:none !important; transition:none !important; }
}
