/* AIR interactions: the stroke follows the label, independent of its touch target. */
.theme-frontier {
  --air-selection-bg: #b4f7ff;
  --air-link-stroke: 1px;
  --air-link-baseline: .52em;
  --air-link-timing: 220ms cubic-bezier(.22,.61,.36,1);
  --air-field-error: #963b31;
  --air-field-error-surface: #fff5f2;
}
@media (forced-colors: none) {
  .theme-frontier::selection,
  .theme-frontier ::selection {
    background-color:var(--air-selection-bg);
    color:var(--tm-ink);
    text-shadow:none;
  }
}
.theme-frontier a.text-link:has(.air-link-label),
.theme-frontier a.r320-source:has(.air-link-label) {
  display:inline-flex;
  align-items:center;
  background:none;
  text-decoration:none;
}
.theme-frontier .air-link-label {
  display:inline-block;
  position:relative;
  line-height:1.3;
}
.theme-frontier .air-link-label::after {
  content:"";
  position:absolute;
  inset-inline:0;
  top:calc(50% + var(--air-link-baseline));
  height:var(--air-link-stroke);
  background:currentColor;
  transform:scaleX(0);
  transform-origin:var(--link-underline-origin, right) center;
  transition:transform var(--air-link-timing);
  pointer-events:none;
}
.theme-frontier a:is(:hover,:focus-visible) > .air-link-label::after,
.theme-frontier .partner-card:is(:hover,:focus-visible) .air-link-label::after { transform:scaleX(1); }
.theme-frontier .masthead .masthead-label::after,
.theme-frontier .footer-sitemap .footer-link::after {
  top:calc(50% + var(--air-link-baseline));
  bottom:auto;
  transition:transform var(--air-link-timing);
}
.theme-frontier :is(.research-read,.r325-feature-news .news-read)::after {
  top:calc(.5lh + var(--air-link-baseline));
  bottom:auto;
  transition:transform var(--air-link-timing);
}

/* In prose the resting keyline identifies links without relying on hue alone.
   The darker interaction stroke enters left and leaves right on each text fragment. */
.theme-frontier a.inline-link {
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:color-mix(in srgb,currentColor 42%,transparent);
  text-decoration-thickness:var(--air-link-stroke);
  text-underline-offset:.14em;
  background:linear-gradient(currentColor,currentColor) no-repeat right bottom / 0 var(--air-link-stroke);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  transition:background-size var(--air-link-timing);
}
.theme-frontier a.inline-link:is(:hover,:focus-visible) {
  background-position:left bottom;
  background-size:100% var(--air-link-stroke);
  text-decoration-color:transparent;
}
.theme-frontier .privacy-details p a.inline-link {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.theme-frontier .air-field-feedback { min-width:0; }
.theme-frontier form p.air-field-message:not([hidden]) {
  position:relative;
  display:block;
  max-width:100%;
  width:fit-content;
  margin:8px 0 0;
  padding:6px 11px;
  border-inline-start:2px solid var(--air-field-error);
  border-radius:0 4px 4px 0;
  color:var(--air-field-error);
  background:var(--air-field-error-surface);
  font:500 13px/1.45 var(--font);
  letter-spacing:normal;
  text-transform:none;
  overflow-wrap:anywhere;
}
.theme-frontier .air-field-message[hidden] {display:none;}
.theme-frontier .air-field-feedback :is(input,textarea,select)[aria-invalid=true],
.theme-frontier .air-field-feedback .file-zone:has([aria-invalid=true]) {
  border-color:var(--air-field-error);
}
.theme-frontier .air-field-feedback :is(input,textarea,select)[aria-invalid=true]:focus-visible,
.theme-frontier .air-field-feedback .file-zone:has(input:focus-visible) {
  outline:2px solid var(--ink);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
  .theme-frontier { --air-link-timing:0s linear; }
}
.masthead .mega-expansion[aria-hidden="true"] {grid-template-rows:0fr;visibility:hidden;pointer-events:none;}
.masthead .mega-expansion[aria-hidden="false"] {grid-template-rows:1fr;visibility:visible;}
.masthead .robot-menu-links {grid-template-columns:repeat(3,minmax(0,1fr));}
.masthead .robot-menu-links p {max-width:none;}
@media(max-width:980px){.masthead .robot-menu-links {grid-template-columns:1fr;}}

/* Bright-surface primary on a dark canvas. Keep all label states in graphite. */
.theme-frontier .button.light {background:#fff;border-color:#fff;color:#17191b;}
.theme-frontier .button.light:is(:hover,:focus-visible,:active) {background:#e5e5e5;border-color:#e5e5e5;color:#101214;}
.theme-frontier .button.light:focus-visible {outline:2px solid #fff;outline-offset:4px;}
/* Let the OS keep its link cursor while the pointer rests over an action. */
:is(a[href],button:enabled,summary,select:enabled,
    input:is([type=checkbox],[type=radio],[type=file],[type=submit],[type=reset],[type=button],[type=image],[type=range]):enabled,
    label:has(input:is([type=checkbox],[type=radio],[type=file]):enabled),
    [role=button],[role=link],[role=menuitem],[role=tab],[role=option]):not([aria-disabled=true]):not([inert] *) {
  cursor:pointer !important;
  & :where(span,strong,b,em,img,svg,svg *,picture,div,p,h2,h3,small,i), &::before, &::after {
    cursor:inherit !important;
  }
}
input[type=file]:enabled::file-selector-button {cursor:pointer;}
[data-dragging] a[href] {cursor:grabbing !important;}
.theme-frontier .masthead-brand {display:inline-flex;align-items:center;min-height:44px;}
.theme-frontier :is(.masthead-brand img,.footer-brand-lockup img,a.text-link>.air-link-label) {pointer-events:none;}
.theme-frontier #models .model-options a.text-link {min-height:44px;align-items:center;}
.theme-frontier .research-row .research-read {line-height:1.35;padding-bottom:0;}
.theme-frontier .research-row .research-read::after {top:calc(100% + .12em);}

.theme-frontier .partner-card > * {pointer-events:none;}
.theme-frontier .role-search,.theme-frontier .role-search input {cursor:text;}
.theme-frontier .role-search svg {pointer-events:none;}
