:root {
  --fm-ease: cubic-bezier(.2,.77,.23,1);
  --fm-surface-response: background-position .65s var(--fm-ease), box-shadow .28s, translate .28s var(--fm-ease), scale .18s;
}

/* Give each surface its full colour range even at the width of a phone button. */
.button-primary, .assist-main, .btn.primary, .calc-tabs [aria-selected="true"],
.digest-longform .editorial-actions button:first-child {
  --fm-start: #112e50; --fm-mid: #183751; --fm-end: #213f55;
}
.button-white {
  --fm-start: #fffefb; --fm-mid: #f5f7ef; --fm-end: #e8f0e5;
}
.button-sage, .header-contacts .header-phone, .assist-more {
  --fm-start: #dceac8; --fm-mid: #d3e4c3; --fm-end: #c7ddc2;
}
.button-outline, .btn.secondary, .chat-prompts button, .read-tool button,
.editorial-actions button, .editorial-checklist-bottom button {
  --fm-start: rgb(193 214 196 / 18%); --fm-mid: rgb(189 209 199 / 12%); --fm-end: rgb(161 185 188 / 14%);
}
:is(.button.button-primary, .button.button-white, .button.button-sage, .button.button-outline,
    .site-header .header-contacts .header-phone, .assist-dock button, .btn.primary, .btn.secondary,
    .calc-tabs button[aria-selected="true"], .chat-prompts button, .read-tool button,
    .editorial-actions button, .digest-longform .editorial-actions button:first-child, .editorial-checklist-bottom button) {
  background-image: linear-gradient(110deg,transparent 24%,rgb(255 255 255 / 9%) 48%,transparent 72%),
                    linear-gradient(114deg,var(--fm-start) 0%,var(--fm-mid) 52%,var(--fm-end) 100%);
  background-size: 70% 100%,100% 100%;
  background-position: -255% 50%,center;
  background-repeat: no-repeat;
}
.digest-longform .editorial-actions button:first-child { color: #fff; }
.site-footer {
  position: relative;
  background-color: #eef2ef;
  background-image: radial-gradient(ellipse at 88% 4%,rgb(182 203 184 / 16%),transparent 56%),
                    linear-gradient(118deg,#f7f8f4 0%,#f0f3ee 37%,#eaf0ed 68%,#e6eeed 100%);
}
.site-footer::before {
  content:""; position:absolute; inset:0 0 auto; height:1px; pointer-events:none;
  background:linear-gradient(90deg,#a5b6ae,#b7c7b9 52%,#d6dfd7);
}
@media screen {
  .contact-section, .calc-result, .usk-dialog .chat-head {
    background-color:#0c294a;
    background-image:linear-gradient(118deg,#0c284a 0%,#102b4a 56%,#122e4b 100%);
  }
  .contact-section .contact-form {
    background-color:rgb(255 255 255 / 3.5%);
    background-image:linear-gradient(125deg,rgb(255 255 255 / 2.5%),rgb(216 230 226 / 1%));
  }
}
.site-footer .footer-bottom, .site-footer .footer-bottom a, .site-footer #bess-analytics-settings,
.site-footer .footer-col a:not(.phone), .site-footer .footer-col small, .site-footer .footer-col p,
.site-footer .footer-brand p { color:#405663; }
.site-footer a:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:.24em; }
.fm-frame { overflow:hidden; }
.page-visual.fm-frame, .solution-hero > .fm-frame { border-radius:5px; }
.digest-longform .page-visual.fm-frame { border-radius:10px; }
.article-body .journal-photo.fm-frame { border-radius:6px; }
.fm-photo-slot { display:block; min-width:0; }
.reading-photo > .fm-photo-slot { display:block; border-radius:12px; }
.issue-figure > .fm-photo-slot { display:block; min-width:0; min-height:0; }
.issue-figure > .fm-photo-slot > img { display:block; width:100%; height:100%; min-height:0; object-fit:cover; }
@media (max-width:760px) {
  .digest-longform .page-visual.fm-frame { border-radius:7px; }
  .issue-figure > .fm-photo-slot > img { height:auto; max-height:260px; }
}
@keyframes fm-enter {
  from {
    opacity:var(--fm-start-opacity,0);
    translate:0 calc(var(--fm-direction,1) * var(--fm-rise,26px));
    clip-path:var(--fm-clip-from,none);
  }
  to { opacity:1; translate:0 0; clip-path:var(--fm-clip-to,none); }
}
@keyframes fm-detail {
  from { opacity:.35; translate:0 9px; }
  to { opacity:1; translate:0 0; }
}
@keyframes fm-fade {
  from { opacity:var(--fm-fade-from,.36); }
  to { opacity:1; }
}
/* The search dialog renders inside its own shadow root. */
@media screen and (prefers-reduced-motion:no-preference) {
  :host(#usk-poisk-root) dialog[open] > :is(.eb,h2,.sub,.f) {
    --fm-rise:9px;
    animation:fm-enter .58s cubic-bezier(.22,.58,.25,1) var(--fm-delay,0ms) backwards;
  }
  :host(#usk-poisk-root) dialog[open] > h2 { --fm-delay:85ms; --fm-rise:16px; }
  :host(#usk-poisk-root) dialog[open] > .sub { --fm-delay:160ms; }
  :host(#usk-poisk-root) dialog[open] > .f:focus-within { animation:none; }
}
@media screen {
  /* The script arms only the approaching edge of the viewport. */
  html[data-motion="full"] .fm-waiting { opacity:var(--fm-start-opacity,0); }
  html[data-motion="full"] .fm-arriving {
    animation:fm-enter var(--fm-duration,.80s) cubic-bezier(.22,.58,.25,1) var(--fm-delay,0ms) backwards !important;
  }
  html[data-motion="full"] .fm-reverse { --fm-direction:-1; }
  html[data-motion="full"] :is(.eyebrow,.article-meta,.hero-path) { --fm-rise:15px; --fm-duration:.62s; }
  html[data-motion="full"] .fm-copy { --fm-rise:13px; --fm-duration:.61s; }
  html[data-motion="full"] .fm-title {
    --fm-start-opacity:0; --fm-rise:clamp(16px,.48em,32px); --fm-duration:.90s;
    --fm-clip-from:inset(-.24em -.18em 22% -.18em);
    --fm-clip-to:inset(-.24em -.18em -.26em -.18em);
  }
  html[data-motion="full"] h1.fm-title { --fm-start-opacity:.12; --fm-duration:.80s; }
  html[data-motion="full"] .fm-row { --fm-rise:0px; --fm-duration:.56s; }
  html[data-motion="full"] :is(.site-header,.assist-dock,dialog) .fm-target:not(.fm-title),
  html[data-motion="full"] :is(label,.calc-field,summary).fm-target { --fm-rise:7px; --fm-duration:.52s; }
  html[data-motion="full"] .fm-title:is(:target,:focus) {
    --fm-start-opacity:.60; --fm-rise:4px; --fm-duration:.38s; --fm-clip-from:none; --fm-clip-to:none;
  }
  html[data-motion="full"] :is(.article-body,.legacy-content,.sheet,.contact-form) { --fm-rise:22px; }
  html[data-motion="full"] :is(.fm-waiting,.fm-arriving):not(.fm-title):is(:focus-within,:target) { opacity:1; animation:none !important; }
  html[data-motion="full"] .faq-list details[open] > :not(summary,.fm-target) { animation:fm-detail .33s var(--fm-ease); }
  html[data-motion="full"] .fm-frame > img {
    translate:var(--fm-pointer-x,0px) calc(var(--fm-depth-y,0px) + var(--fm-pointer-y,0px));
    scale:1.25;
    transform:none;
  }
  html[data-motion="full"] .fm-frame.fm-near > img { will-change:translate; }
  html[data-motion="full"] .site-header::after {
    content:""; position:absolute; inset:auto 0 -1px; height:2px; width:100%; pointer-events:none;
    background:linear-gradient(90deg,#173954,#53917f 64%,#b2ce98);
    transform-origin:left; transform:scaleX(var(--reading-progress,0));
  }
  html[data-motion="full"] .hero-path::before {
    display:block; background:linear-gradient(90deg,#98ba92,#e6f2bc); opacity:0;
    transform:scaleX(0); transform-origin:left; transition:transform .7s var(--fm-ease),opacity .36s;
  }
  html[data-motion="full"] .hero-path.is-current::before { opacity:1; transform:scaleX(1); }
  html[data-motion="full"] :is(.button,.assist-dock button,.header-phone,.btn,.calc-tabs button,.chat-prompts button,
      .read-tool button,.editorial-actions button,.editorial-checklist-bottom button) { transition:var(--fm-surface-response); }
  html[data-motion="full"] :is(.button,.btn,.header-phone,.assist-dock button,.icon-button,.tool-entry,.calc-tabs button,
      .chat-prompts button,.read-tool button,.editorial-actions button,.editorial-checklist-bottom button):not(:disabled):active { scale:.964; }
  html[data-motion="full"] :is(.button,.hero-path,.text-link,.tool-entry,.image-arrow) :is(.icon,span[aria-hidden="true"]) {
    transition:transform .31s var(--fm-ease);
  }
  html[data-motion="full"] :is(.button,.text-link,.tool-entry,.hero-path):focus-visible :is(.icon,span[aria-hidden="true"]) { transform:translateX(4px); }
  html[data-motion="full"] .card-image:focus-visible .image-arrow { background:#c7e3b2; transform:translate(3px,-3px); }
  html[data-motion="full"] .sheet .opt:focus-within { color:#345b49; }
  html[data-motion="full"] .contact-form :is(input,textarea):focus-visible { box-shadow:0 0 0 3px rgb(127 172 146 / 28%); }
}
@media screen and (hover:hover) and (pointer:fine) {
  html[data-motion="full"] :is(.button,.btn,.header-contacts .header-phone,.assist-dock button,.calc-tabs button,.chat-prompts button,
     .read-tool button,.editorial-actions button,.editorial-checklist-bottom button):not(:disabled):is(:hover,:focus-visible) {
    background-position:330% 50%,center; box-shadow:0 5px 15px rgb(16 49 64 / 12%),inset 0 0 0 1px rgb(37 87 71 / 11%);
  }
  html[data-motion="full"] :is(.button,.btn,.header-contacts .header-phone):not(:disabled):hover { translate:0 -2px; }
  html[data-motion="full"] :is(.button,.text-link,.tool-entry,.hero-path):hover :is(.icon,span[aria-hidden="true"]) { transform:translateX(5px); }
  html[data-motion="full"] .desktop-nav > a {
    background-image:linear-gradient(90deg,#1d5563,#9abc8d); background-repeat:no-repeat;
    background-size:0 2px; background-position:left calc(50% + .88em);
    transition:background-size .32s var(--fm-ease),color .2s;
  }
  html[data-motion="full"] .desktop-nav > a:is(:hover,:focus-visible) { background-size:100% 2px; }
  html[data-motion="full"] :is(.solution-card,.digest-card,.eco-card,.tool-entry,.directory-grid>a) {
    transition:transform .36s var(--fm-ease),box-shadow .36s,border-color .36s;
  }
  html[data-motion="full"] :is(.solution-card,.digest-card,.eco-card,.tool-entry,.directory-grid>a):is(:hover,:focus-within) {
    transform:translateY(-4px); border-color:#86a997;
  }
  html[data-motion="full"] :is(.eco-card,.tool-entry,.directory-grid>a):is(:hover,:focus-within) { box-shadow:0 12px 26px rgb(28 60 62 / 9%); }
  html[data-motion="full"] .card-image .image-arrow { transition:transform .34s var(--fm-ease),background .25s; }
  html[data-motion="full"] .card-image:is(:hover,:focus-visible) .image-arrow { background:#c7e3b2; transform:translate(4px,-4px); }
  html[data-motion="full"] .tool-entry:hover {
    background-image:radial-gradient(ellipse 200px 116px at var(--light-x,50%) var(--light-y,50%),rgb(192 220 173 / 62%),transparent);
  }
}
@media screen and (pointer:coarse) {
  html[data-motion="full"] .fm-target:not(.fm-title,.fm-row) { --fm-rise:18px; }
  html[data-motion="full"] .fm-copy { --fm-rise:10px; }
  html[data-motion="full"] .fm-frame > img { scale:1.19; }
  html[data-motion="full"] :is(.card-image,.eco-visual):active > img { filter:brightness(.93); }
  html[data-motion="full"] .card-image:active .image-arrow { background:#c7e3b2; transform:translate(2px,-2px); }
}
html[data-motion="reduced"] { scroll-behavior:auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  transition-duration:0s !important; animation:none !important; scroll-behavior:auto !important;
}
html[data-motion="reduced"] .site-header::after { display:none; }
html[data-motion="reduced"] :is(.eco-card,.card-image img,.eco-visual img,.button,.image-arrow):hover { transform:none !important; }
@media screen and (prefers-reduced-motion:reduce) {
  html[data-motion="reduced"] .fm-waiting { opacity:var(--fm-fade-from,.36); }
  html[data-motion="reduced"] .fm-arriving,
  :host(#usk-poisk-root) dialog[open] > :is(.eb,h2,.sub,.f) {
    animation:fm-fade .48s ease-out min(var(--fm-delay,0ms),.32s) backwards !important;
  }
  :host(#usk-poisk-root) dialog[open] > h2 { --fm-delay:65ms; }
  :host(#usk-poisk-root) dialog[open] > .sub { --fm-delay:130ms; }
  html[data-motion="reduced"] .fm-title:is(:target,:focus) { --fm-fade-from:.76; }
  html[data-motion="reduced"] :is(.fm-waiting,.fm-arriving):not(.fm-title):is(:focus-within,:target),
  :host(#usk-poisk-root) dialog[open] > .f:focus-within { opacity:1; animation:none !important; }
  html[data-motion="reduced"] .hero-media .hero-photo { transition:opacity .48s ease-in-out !important; }
}
@media (forced-colors:active) {
  .site-footer, .site-footer::before, .contact-section, .contact-section .contact-form, .calc-result,.usk-dialog .chat-head,
  .site-header .header-contacts .header-phone, .assist-dock button, .button, .btn { background-image:none; }
}
@media print {
  .site-header::after,.site-footer::before { display:none !important; }
  .fm-waiting,.fm-arriving,.fm-frame > img { opacity:1 !important; animation:none !important; translate:none !important; scale:none !important; }
}
