/* Shared type, spacing and controls. Brand colors are defined once per platform. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
body[data-platform] {
  --platform-font: 'Instrument Sans', Arial, sans-serif;
  --font: var(--platform-font);
  --font-sans: var(--platform-font);
  --sans: var(--platform-font);
  --action-height: 44px;
  --action-padding: 20px;
  --action-radius: 999px;
  --action-text: #10212c;
  --control-gap: 12px;
  --control-border: #cbd2d8;
  font-family: var(--platform-font);
}
body[data-platform="tending"] {
  --brand-accent: #a9d9f3;
  --brand-hover: #c0e4f7;
  --brand-soft: #eaf5fc;
  --brand-link: #245d7a;
  --brand-focus: #a9d9f3;
  --field-accent: var(--brand-accent);
}
body[data-platform="nimber"] {
  --brand-accent: #79bde3;
  --brand-hover: #96cdec;
  --brand-soft: #e9f4fb;
  --brand-link: #245d7a;
  --brand-focus: #39799e;
  --blue: var(--brand-accent);
  --link: var(--brand-link);
}
body[data-platform="aerifly"] {
  --brand-accent: #0869c5;
  --brand-hover: #075bac;
  --brand-soft: #eaf3fd;
  --brand-link: #0869c5;
  --brand-focus: #0869c5;
  --action-text: #fff;
  --action-radius: 10px;
  --pulse: var(--brand-accent);
  --pulse-0: #0869c500;
  --pulse-5: #0869c50d;
  --pulse-10: #0869c51a;
  --pulse-15: #0869c526;
  --pulse-20: #0869c533;
}
body[data-platform] :is(button,input,textarea,select) { font-family: var(--platform-font); }
body[data-platform] ::selection { color: #10212c; background: #a9d9f3; }

/* The same geometry applies to links, buttons and dynamically rendered dialogs. */
body[data-platform] :is(.button,.pill,.af-button):not(.menu-toggle,.dialog-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--action-height);
  height: auto;
  max-width: 100%;
  padding: 11px var(--action-padding);
  border: 1px solid var(--brand-accent);
  border-radius: var(--action-radius);
  background: var(--brand-accent);
  background-image: none;
  color: var(--action-text);
  font-family: var(--platform-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  vertical-align: middle;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
body[data-platform] :is(.button,.pill,.af-button):not(.menu-toggle,.dialog-close):hover {
  background: var(--brand-hover);
  background-image: none;
  border-color: var(--brand-hover);
  color: var(--action-text);
  transform: none;
  text-decoration: none;
}
body[data-platform] :is(.button,.pill,.af-button):not(.menu-toggle,.dialog-close):active { transform: scale(.98); }
body[data-platform] :is(.button-outline,[data-ui-variant="secondary"]):not(.menu-toggle,.dialog-close) {
  background: transparent;
  color: var(--brand-link);
  border-color: var(--brand-link);
}
body[data-platform] :is(.button-outline,[data-ui-variant="secondary"]):not(.menu-toggle,.dialog-close):hover {
  background: var(--brand-soft);
  border-color: var(--brand-link);
  color: var(--brand-link);
}
body[data-platform] :is(.theme-dark,.flagship-hero,.sensing-section) { --brand-link: var(--brand-accent); --brand-focus: var(--brand-accent); }
body[data-platform="nimber"] .theme-dark .button-outline:hover { background: #79bde31f; color: var(--brand-accent); border-color: var(--brand-accent); }
body[data-platform="nimber"] :is(.theme-dark,.sensing-copy) .text-link { color: var(--brand-accent); }
body[data-platform] .button-white:not(.menu-toggle,.dialog-close) { color: #10212c; background: #fff; border-color: #fff; }
body[data-platform] .button-white:not(.menu-toggle,.dialog-close):hover { color: #10212c; background: #edf6fb; border-color: #edf6fb; }
body[data-platform="aerifly"] [data-ui-variant="ghost"]:not(.menu-toggle,.dialog-close) { background: transparent; border-color: transparent; color: #1d1d1f; }
body[data-platform="aerifly"] [data-ui-variant="ghost"]:not(.menu-toggle,.dialog-close):hover { background: var(--brand-soft); }
body[data-platform="aerifly"] [data-ui-variant="ghost"]:is([aria-pressed="true"],[aria-selected="true"]) {
  background: var(--brand-soft);
  border-color: var(--brand-link);
  color: var(--brand-link);
}
body[data-platform] :is(.actions,.cta-links,.detail-actions) { gap: var(--control-gap); align-items: center; }

/* Compact navigation controls; main calls to action keep the 44px standard. */
body[data-platform] :is(.nav-cta,.product-nav-cta,.nav-links>.af-button):not(.menu-toggle,.dialog-close) {
  --action-height: 36px;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 20px;
}
body[data-platform="aerifly"] .footer-links .af-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  transform: none;
}
body[data-platform="aerifly"] .footer-links .af-button:hover { background: none; color: var(--brand-link); text-decoration: underline; text-underline-offset: 3px; }
body[data-platform="aerifly"] .wordmark { font-family: Favorit, var(--platform-font); }

/* Close and carousel icons use one optical size inside a centered container. */
body[data-platform] :is(.dialog-close,.close-button) {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8ebef;
  color: #5b646c;
  line-height: 0;
  box-shadow: none;
  flex: none;
}
body[data-platform] :is(.dialog-close,.close-button):hover { background: #dce2e8; color: #172027; }
body[data-platform] :is(.dialog-close,.close-button) svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
body[data-platform="tending"] .gallery-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  line-height: 20px;
  font-size: 13px;
  font-weight: 500;
}
body[data-platform="tending"] .gallery-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-platform="nimber"] .gallery-arrows button { width: 44px; height: 44px; }

body[data-platform] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 4px;
  box-shadow: none;
}
body[data-platform="tending"] :is(dialog,.products) { --brand-focus: #39799e; }
body[data-platform] form :is(input:not([type="checkbox"],[type="radio"]),select,textarea) {
  border: 1px solid var(--control-border);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5;
}
body[data-platform] form :is(input,select,textarea):focus { border-color: var(--brand-focus); }
body[data-platform] form :is(input:not([type="checkbox"],[type="radio"]),select) { min-height: 48px; }
body[data-platform] form textarea { min-height: 112px; resize: vertical; }
body[data-platform="tending"] .concept-form > .button { margin-top: 20px; }
body[data-platform="nimber"] .application-choice input:checked + span { background: var(--brand-soft); color: var(--brand-link); border-color: var(--brand-link); }
body[data-platform="nimber"] .application-choice input:focus-visible + span { outline-color: var(--brand-focus); }
body[data-platform] :is(.button,.pill,.af-button):disabled,
body[data-platform] :is(.button,.pill,.af-button):disabled:hover { background: #e3e7eb; border-color: #e3e7eb; color: #77818a; cursor: default; transform: none; }

@media(max-width:767px) {
  body[data-platform] { --action-padding: 16px; }
  body[data-platform] :is(.nav-cta,.nav-links>.af-button):not(.menu-toggle,.dialog-close) { min-height: 44px; padding-block: 11px; }
  body[data-platform] .product-nav-cta { position: relative; }
  body[data-platform] .product-nav-cta::after { content: ''; position: absolute; inset: -4px 0; }
  body[data-platform] :is(.dialog-close,.close-button) { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  body[data-platform="nimber"] .search-input-wrap { padding-right: 36px; }
  body[data-platform="nimber"] .comparison-column>.button { padding-inline: 12px; font-size: 12px; }
}
@media(max-width:370px) {
  body[data-platform="nimber"] .hero-copy .cta-links { gap: 8px; }
  body[data-platform="nimber"] .hero-copy .button { padding-inline: 12px; font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-platform] :is(.button,.pill,.af-button) { transition: none; }
  body[data-platform] :is(.button,.pill,.af-button):active { transform: none; }
}
