/*
  Delos brand for the Tyk Developer Portal's default theme (v1.20.0). Loaded after main.css by every
  layout (partials/delos_head.tmpl), so the default stylesheets stay as Tyk ships them and this file
  holds the whole difference:

    1. the Delos faces (DM Sans for body copy, Fira Sans for titles), self-hosted, with
       metric-matched fallbacks (brand/fonts.reference.css);
    2. the default theme's variables (--tdp-*) mapped onto the Delos tokens (brand/delos-tokens.css,
       loaded just before this file). No colour is written here as a hex value: every colour is a
       token, or a token mixed with transparency;
    3. the components the default styles with fixed values, restyled with the tokens;
    4. the Delos parts: brand bar, Pilot marker, landing page, sign-in panel, footer.

  Shape: 11px (--radius) on controls, 18px on panels. Focus is always visible.
*/

/* --- 1. Faces ---------------------------------------------------------------------------------- */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../brand/fonts/dm-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../brand/fonts/fira-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../brand/fonts/fira-sans-700.woff2") format("woff2");
}

/* The default theme's icon font, for the alert and status icons. The default declares it in
   fonts.css, which the Delos layouts no longer load: that file also @imports every Open Sans and
   Smoolthan .woff file as if it were a stylesheet, so each page fetched them all. */
@font-face {
  font-family: tykon;
  src: url("../fonts/tykon.woff2") format("woff2"), url("../fonts/tykon.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Metric-matched fallbacks (Arial basis), so text does not shift when the web fonts swap in. */
@font-face {
  font-family: "DM Sans Fallback";
  font-style: normal;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 104.53%;
  ascent-override: 94.9%;
  descent-override: 29.66%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Fira Sans Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 102.96%;
  ascent-override: 90.81%;
  descent-override: 25.74%;
  line-gap-override: 0%;
}

/* --- 2. The default theme's variables, on the Delos tokens ------------------------------------- */

:root {
  --delos-font-body: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --delos-font-title: "Fira Sans", "Fira Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --delos-font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --delos-radius-control: var(--radius);
  --delos-radius-panel: 18px;
  --delos-veil: color-mix(in srgb, var(--space-blue-160) 55%, transparent);
  --delos-shadow-panel: 0 1px 2px var(--night-blue-transparent-10), 0 8px 24px -12px var(--night-blue-transparent-20);
  --delos-focus: 0 0 0 3px var(--background), 0 0 0 5px var(--ring);

  /* Base colours */
  --tdp-primary: var(--primary);
  --tdp-primary-dark: var(--moon-blue-140);
  --tdp-primary-light: var(--night-blue-20);
  --tdp-primary-success-light: var(--success-muted);
  --tdp-secondary: var(--night-blue-75);
  --tdp-secondary-dark: var(--night-blue-100);
  --tdp-light-blue: var(--moon-blue-30);
  --tdp-light-gray: var(--muted);
  --tdp-light-purple: var(--moon-blue-120);
  --tdp-primary-danger-light: var(--destructive-muted);
  --tdp-danger-light: var(--delos-red-100);
  --tdp-danger-dark: var(--delos-red-140);
  --tdp-danger-darker: var(--delos-red-160);
  --tdp-primary-warning-light: var(--warning-muted);
  --tdp-warning-light: var(--autumn-leaf-100);
  --tdp-warning-dark: var(--autumn-leaf-140);
  --tdp-warning-pressed: var(--autumn-leaf-15);
  --tdp-light-border: 1px solid var(--border);
  --tdp-extra-dark: var(--night-blue-100);
  --tdp-dark: var(--space-blue-160);
  --tdp-text-on-red-background: var(--destructive-text);
  --tdp-border-green: var(--delos-green-140);
  --tdp-neutral: var(--input);
  --tdp-neutral-light: var(--night-blue-10);
  --tdp-neutral-lighter: var(--night-blue-5);
  --tdp-neutral-dark: var(--night-blue-50);
  --tdp-brand-darker: var(--moon-blue-180);
  --tdp-brand-dark: var(--moon-blue-140);

  /* Backgrounds */
  --tdp-nav-bg-color: var(--chrome);
  --tdp-body-bg-color: var(--background);
  --tdp-tab-active: var(--accent);
  --tdp-light-green: var(--success-muted);
  --tdp-light-red: var(--destructive-muted);
  --tdp-login-form: var(--card);

  /* Text */
  --tdp-text-color: var(--foreground);
  --tdp-link-color: var(--link);
  --tdp-link-dark: var(--moon-blue-140);
  --tdp-nav-link-color: var(--chrome-foreground);
  --tdb-text-color-dark: var(--foreground);
  --tdp-text-color-extra-dark: var(--foreground);
  --tdb-text-color-gray: var(--muted-foreground);
  --tdb-text-color-gray-mid: var(--night-blue-100);
  --tdb-text-color-gray-lighter: var(--muted-foreground);
  --tdb-text-default-subdue: var(--muted-foreground);
  --tdb-text-alert-default: var(--foreground);

  /* Radii: 11px controls, 18px panels */
  --tdp-card-border-radius: var(--delos-radius-panel);
  --tdp-border-radius: var(--delos-radius-control);
  --tdp-dropdown-menu-radius: var(--delos-radius-control);
  --tdp-login-form-border-radius: var(--delos-radius-panel);
  --default-border-radius: var(--delos-radius-panel);

  /* Borders */
  --tdp-border-color-on-error: var(--destructive);
  --tdp-table-border-color: var(--border);
  --tdp-primary-border: 1px solid var(--ring);
  --tdp-form-element-border: 1px solid var(--muted-decorative-foreground);
  --tpd-gray-200-border: 1px solid var(--border);
  --tdp-border-graph: 1px solid var(--border);
  --tdp-analytics-select-border: 1px solid var(--muted-decorative-foreground);
  --tdp-border-neutral-pressed: 1px solid var(--night-blue-75);

  /* Buttons */
  --tdp-primary-btn-color: var(--primary);
  --tdp-primary-btn-border: var(--primary);
  --tdp-primary-btn-hover-color: var(--primary-hover);
  --tdp-primary-btn-hover-border: var(--primary-hover);
  --tdp-secondary-btn-color: var(--background);
  --tdp-secondary-btn-border: var(--muted-decorative-foreground);
  --tdp-secondary-btn-hover-color: var(--muted);
  --tdp-secondary-btn-hover-border: var(--night-blue-100);
  --tdp-danger-btn-color: var(--destructive);
  --tdp-danger-btn-border: 1px solid var(--destructive);
  --tdp-danger-btn-hover-border: 1px solid var(--delos-red-140);
  --tdp-danger-outline-btn-border: 1px solid var(--destructive);
  --tdp-warning-btn-color: var(--autumn-leaf-100);
  --tdp-warning-btn-border: 1px solid var(--autumn-leaf-140);
  --tdp-warning-outline-btn-border: 1px solid var(--autumn-leaf-100);
  --action-brand-default: var(--primary);
  --border-brand-default: var(--primary);
  --border-brand-hover: var(--primary-hover);
  --border-neutral-default: var(--input);
  --link-default: var(--link);
  --surface-brand-hover: var(--accent);
  --surface-neutral-hover: var(--muted);
  --surface-default-subdued: var(--muted);

  /* Alerts */
  --tdp-alert-success-bg-color: var(--success-muted);
  --tdp-alert-success-border-color: var(--success-text);
  --tdp-alert-sucess-icon-color: var(--success-text);
  --tdp-alert-success-text-color: var(--success-text);
  --tdp-alert-info-bg-color: var(--info-muted);
  --tdp-alert-info-border-color: var(--info-text);
  --tdp-alert-info-text-color: var(--info-text);
  --tdp-alert-warning-bg-color: var(--warning-muted);
  --tdp-alert-warning-border-color: var(--warning-edge);
  --tdp-alert-warning-text-color: var(--warning-text);
  --tdp-alert-danger-bg-color: var(--destructive-muted);
  --tdp-alert-danger-border-color: var(--destructive);
  --tdp-alert-danger-text-color: var(--destructive-text);
  --tdp-alert-danger-icon-color: var(--destructive);
  --tdp-icon-success-dark: var(--success-text);

  /* Catalogue badges */
  --tdp-badge-rest: var(--moon-blue-10);
  --tdp-badge-graphql: var(--autumn-leaf-15);
  --tdp-badge-mcp: var(--success-muted);
  --tdp-badge-tcp: var(--warning-muted);
  --tdp-badge-streams: var(--destructive-muted);
  --tdp-badge-auth-default: var(--muted);
  --tdp-badge-auth-token: var(--success-muted);
  --tdp-badge-auth-jwt: var(--destructive-muted);
  --tdp-badge-auth-ba: var(--delos-blue-10);
  --tdp-badge-auth-custom: var(--autumn-leaf-15);
  --tdp-badge-auth-multi: var(--delos-blue-20);
  --tdp-badge-auth-mtls: var(--moon-blue-5);
}

/* --- 3. Type ----------------------------------------------------------------------------------- */

/* The default theme names its faces on many classes (Inter, Open Sans, Smoolthan), some with
   !important. One rule with an ID-weight selector puts DM Sans everywhere; titles, code and the
   icon font are then set back. */
body,
body *:not(#delos-x) {
  font-family: var(--delos-font-body) !important;
}

body :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4, .heading-xlarge, .heading-large, .heading-medium, .title-inter,
  .modal-title, .card-title, .delos-brand__name, .delos-brand__name *, .delos-footer__name, .delos-auth__name,
  .delos-auth__name *, .delos-error__code):not(#delos-x) {
  font-family: var(--delos-font-title) !important;
  letter-spacing: 0;
}

body :is(code, pre, kbd, samp, pre *, code *, [class*="font-mono"], [class*="font-mono"] *):not(#delos-x) {
  font-family: var(--delos-font-mono) !important;
}

body :is(.tykon, .tykon::before, .tyk-icon, [class^="tykon-"], [class*=" tykon-"]):not(#delos-x),
body :is(.tykon, .tyk-icon, [class^="tykon-"], [class*=" tykon-"]):not(#delos-x)::before {
  font-family: tykon !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.delos {
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 66px;
}

body.delos > main,
body.delos > .page-wrapper {
  flex: 1 0 auto;
  padding-bottom: 64px;
}

body.delos > main:has(> .delos-home) {
  padding-bottom: 0;
}

.page-wrapper > .delos-home {
  padding-top: 0;
}

h1, h2, h3, h4, .heading-xlarge, .heading-large, .heading-medium {
  color: var(--foreground);
  font-weight: 700;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--moon-blue-140);
}

.text-default-subdue,
.body-large-default.text-default-subdue,
.text-muted {
  color: var(--muted-foreground) !important;
}

code {
  color: var(--moon-blue-140);
  background: var(--moon-blue-5);
  border-radius: 4px;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

pre {
  background: var(--space-blue-100);
  color: var(--moon-blue-5);
  border-radius: var(--delos-radius-control);
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* --- Focus: always visible (the default removed the outline from buttons) --------------------- */

body.delos :is(a, button, input, select, textarea, summary, [tabindex], .btn):focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 2px !important;
  box-shadow: none;
}

/* On the navy surfaces the ring is the light blue, which keeps 3:1 there. */
body.delos :is(.delos-nav, .delos-hero, .delos-auth__banner, .delos-footer, .api-detail-background-color) :is(a, button, input, select, .btn):focus-visible {
  outline-color: var(--moon-blue-30) !important;
}

.delos-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 2000;
  background: var(--background);
  color: var(--link);
  padding: 8px 16px;
  border-radius: var(--delos-radius-control);
  box-shadow: var(--delos-shadow-panel);
}

.delos-skip:focus {
  top: 12px;
}

/* --- 4. Brand bar ------------------------------------------------------------------------------ */

.navbar.delos-nav {
  background: var(--chrome);
  min-height: 64px;
  padding: 10px 16px;
  box-shadow: 0 1px 0 var(--space-blue-transparent-45);
}

.delos-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chrome-foreground) !important;
  margin-right: 24px;
  white-space: nowrap;
}

.delos-brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.delos-brand__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  color: var(--chrome-foreground);
}

.delos-brand__product {
  font-weight: 600;
  color: var(--chrome-foreground);
}

/* The environment marker: quiet, but on every page. */
.delos-env {
  display: inline-block;
  font-family: var(--delos-font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--autumn-leaf-100);
  color: var(--autumn-leaf-100);
  background: transparent;
  vertical-align: middle;
}

/* Over the texture the marker sits on solid navy, so its contrast does not depend on the texture. */
.delos-hero .delos-env,
.delos-auth__banner .delos-env {
  background: var(--space-blue-160);
}

.delos-env--on-light {
  border-color: var(--autumn-leaf-140);
  color: var(--autumn-leaf-140);
  background: var(--autumn-leaf-15);
}

.delos-nav .navbar-nav .nav-link {
  color: var(--chrome-foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--delos-radius-control);
  padding: 8px 12px;
}

.delos-nav .navbar-nav .nav-link:hover,
.delos-nav .navbar-nav .nav-link:focus {
  color: var(--chrome-foreground);
  background: color-mix(in srgb, var(--chrome-foreground) 10%, transparent);
}

.delos-nav .navbar-menu-items > .nav-item::after,
.delos-nav .navbar-menu-items .nav-item::after {
  display: none;
}

.delos-nav .navbar-nav {
  flex: 1 1 auto;
}

.delos-nav .navbar-cta .navbar-nav {
  gap: 8px;
}

.delos-nav .btn + .btn {
  margin-left: 0;
}

.delos-nav .submenu,
.delos-nav .dropdown-menu {
  border-radius: var(--delos-radius-control);
  border: 1px solid var(--border);
  box-shadow: var(--delos-shadow-panel);
  padding: 6px;
}

.delos-nav .dropdown-item {
  color: var(--foreground);
  border-radius: 8px;
  padding: 8px 12px;
}

.delos-nav .dropdown-item:hover,
.delos-nav .dropdown-item:focus {
  background: var(--accent);
  color: var(--accent-foreground);
}

.delos-nav .cart__link {
  align-items: center;
  gap: 8px;
}

.delos-cart-label {
  margin-right: 6px;
}

.delos-nav .cart__item-count {
  position: static;
  margin: 0;
  vertical-align: middle;
  background: var(--autumn-leaf-100);
  color: var(--space-blue-160);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.delos-nav .navbar-toggler {
  border-color: color-mix(in srgb, var(--chrome-foreground) 40%, transparent);
  border-radius: var(--delos-radius-control);
}

.delos-nav__login.btn-secondary {
  background: transparent;
  color: var(--chrome-foreground);
  border-color: color-mix(in srgb, var(--chrome-foreground) 55%, transparent);
}

.delos-nav__login.btn-secondary:hover,
.delos-nav__login.btn-secondary:focus {
  background: color-mix(in srgb, var(--chrome-foreground) 10%, transparent);
  color: var(--chrome-foreground);
  border-color: var(--chrome-foreground);
}

/* --- Buttons ---------------------------------------------------------------------------------- */

.btn {
  border-radius: var(--delos-radius-control);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  padding: 10px 18px;
  text-transform: none;
  letter-spacing: 0;
}

.btn-primary,
.portal-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 55%, transparent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.portal-primary:hover,
.portal-primary:focus,
.portal-primary:not(:disabled):not(.disabled):active {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.btn-secondary,
.btn-secondary-outline,
.btn-primary-outline {
  background-color: var(--background);
  border: 1px solid var(--muted-decorative-foreground);
  color: var(--secondary-foreground);
}

.btn-primary-outline {
  border-color: var(--primary);
  color: var(--moon-blue-120);
}

.btn-secondary:hover,
.btn-secondary-outline:hover,
.btn-primary-outline:hover,
.btn-secondary:focus,
.btn-secondary-outline:focus {
  background-color: var(--muted);
  border-color: var(--night-blue-100);
  color: var(--foreground);
}

.btn-danger {
  background-color: var(--destructive);
  border: 1px solid var(--destructive);
  color: var(--destructive-foreground);
}

.btn-danger:hover {
  background-color: var(--delos-red-140);
}

.btn-danger-outline {
  background: var(--background);
  border: 1px solid var(--destructive);
  color: var(--destructive-text);
}

.btn-danger-outline:hover {
  background: var(--destructive-muted);
  color: var(--destructive-text);
}

.btn[disabled],
.btn:disabled,
.btn-primary:disabled {
  opacity: 1;
  background: var(--muted);
  border-color: var(--border);
  color: var(--muted-foreground);
  box-shadow: none;
}

.delos-btn--on-dark.btn-secondary {
  background: transparent;
  color: var(--chrome-foreground);
  border-color: color-mix(in srgb, var(--chrome-foreground) 60%, transparent);
}

.delos-btn--on-dark.btn-secondary:hover,
.delos-btn--on-dark.btn-secondary:focus {
  background: color-mix(in srgb, var(--chrome-foreground) 12%, transparent);
  color: var(--chrome-foreground);
  border-color: var(--chrome-foreground);
}

/* --- Forms ------------------------------------------------------------------------------------ */

.form-control,
.input-group > .form-control:not(:last-child),
.form-select,
select.form-control {
  border-radius: var(--delos-radius-control);
  border: 1px solid var(--muted-decorative-foreground);
  color: var(--foreground);
  background-color: var(--background);
  font-size: 1rem;
  min-height: 44px;
}

.form-control::placeholder {
  color: var(--placeholder);
}

.form-control:focus,
.form-control.search-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}

.form-control.has-error,
.has-error {
  border-color: var(--destructive);
}

.invalid-feedback {
  color: var(--destructive-text);
}

.form-label,
label {
  color: var(--foreground);
  font-weight: 500;
}

.delos-optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

/* --- Alerts ----------------------------------------------------------------------------------- */

.alert {
  border-radius: var(--delos-radius-control);
  border-width: 1px;
  border-style: solid;
  border-left-width: 4px;
  padding: 14px 16px;
  align-items: flex-start;
}

.alert__content {
  margin-left: 12px;
  margin-right: 0;
}

.alert > .tyk-icon:first-child {
  width: 24px;
  height: 24px;
  font-size: 12px;
  margin-top: 1px;
}

.alert-info > .tyk-icon:first-child { background-color: var(--info-text); }
.alert-success > .tyk-icon:first-child { background-color: var(--success-text); }
.alert-danger > .tyk-icon:first-child { background-color: var(--destructive); }
.alert-warning > .tyk-icon:first-child { background-color: var(--warning-text); }

.alert-warning {
  background-color: var(--warning-muted);
  color: var(--warning-text);
  border-color: var(--warning-edge);
}

.alert a,
.alert .alert-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* --- Panels, cards, tables, modals ------------------------------------------------------------ */

.card,
.labeled-card-plan,
.labeled-card-post,
.modal-content,
.table-wrapper,
.profile-wrapper__card-section .card {
  border-radius: var(--delos-radius-panel);
  border-color: var(--border);
}

.labeled-card-plan {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--delos-shadow-panel);
  padding: 24px;
}

.labeled-card-plan .heading-large {
  color: var(--foreground) !important;
}

.delos-plan__description {
  color: var(--muted-foreground);
}

.modal-content {
  box-shadow: var(--delos-shadow-panel);
}

.table thead th,
.table th {
  color: var(--table-heading);
  border-color: var(--border);
}

.table td {
  border-color: var(--border);
}

.nav-tabs .nav-link {
  border-radius: var(--delos-radius-control) var(--delos-radius-control) 0 0;
}

.nav-tabs .nav-link.active {
  color: var(--accent-foreground);
  border-color: var(--border) var(--border) var(--background);
}

.badge,
.pill {
  border-radius: 999px;
}

/* The default illustrations (not-found, empty states) are Tyk's art; the text carries the meaning. */
img[src$="/assets/images/not-found.svg"] {
  display: none !important;
}

/* --- Side menu (My apps, Usage, Users, Profile) ----------------------------------------------- */

.side-menu-container {
  border-radius: var(--delos-radius-panel);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 12px;
  min-width: 200px;
  height: fit-content;
}

.sidebar-nav li {
  border-radius: var(--delos-radius-control);
  padding: 0;
  margin: 2px 0;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--delos-radius-control);
  color: var(--foreground);
}

.sidebar-nav li:hover,
.sidebar-nav li a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.sidebar-nav hr {
  border-color: var(--border);
}

/* --- Product and documentation pages ---------------------------------------------------------- */

.api-detail-background-color,
.api-product-page__header .card.api-detail-background-color {
  background: var(--chrome) !important;
  color: var(--chrome-foreground);
}

.api-detail-background-color .heading-medium,
.api-detail-background-color h1,
.api-detail-background-color .card-title,
.api-detail-background-color p {
  color: var(--chrome-foreground) !important;
}

.breadcrumb-link--on-dark {
  color: var(--chrome-foreground) !important;
}

.api-product-page__info {
  border-radius: var(--delos-radius-panel);
}

/* The product's own picture: the default's placeholder is Tyk's art, so without a product logo the
   header shows none. */
.card-img-placeholder {
  display: none !important;
}

/* A catalogue card without a product image: a navy band with the Delos mark. */
.product-card:not(.has-image) .card-img-wrapper {
  position: relative;
  background: var(--space-blue-160);
  border-radius: var(--delos-radius-panel) var(--delos-radius-panel) 0 0;
  overflow: hidden;
}

.product-card:not(.has-image) .card-img-wrapper::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background: url("../brand/delos-logo.svg") center / contain no-repeat;
}

/* The product overview (gateway/portal/quote-api-overview.html): read as a document, left-aligned. */
.api-product-page__info-description.more-info-text {
  display: block;
  text-align: left;
  max-width: 52rem;
  margin: 0 auto;
}

.more-info-text > p,
.more-info-text p,
.more-info-text li,
.more-info-text td,
.more-info-text th {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  max-width: none;
  margin: 0 0 0.75rem;
}

.more-info-text h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.more-info-text ol,
.more-info-text ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.more-info-text li {
  margin-bottom: 0.375rem;
}

.more-info-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  display: block;
  overflow-x: auto;
}

.more-info-text th,
.more-info-text td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 8px 0;
  vertical-align: top;
  margin: 0;
}

.more-info-text th {
  color: var(--table-heading);
  font-weight: 600;
}

.more-info-text pre {
  text-align: left;
  margin: 0 0 1rem;
}

.api-docs-text h3,
.api-docs-text h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.api-docs-text p,
.api-docs-text li,
.api-docs-text td,
.api-docs-text th {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
}

.api-docs-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.api-docs-text th,
.api-docs-text td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 8px 0;
  vertical-align: top;
}

.api-docs-text th {
  color: var(--table-heading);
  font-weight: 600;
}

.download-oas-button {
  border-radius: var(--delos-radius-control);
  background: var(--background);
  border: 1px solid var(--primary);
  color: var(--moon-blue-120);
  font-weight: 600;
  padding: 8px 14px;
}

/* The API reference viewer's own "powered by" link to its vendor's site. */
.delos--docs a[href*="stoplight.io"],
#oas-display-stoplight a[href*="stoplight.io"] {
  display: none !important;
}

/* --- 5. Sign-in, sign-up and password pages --------------------------------------------------- */

body.delos--auth {
  padding-top: 0;
  margin-top: 0;
}

.delos-auth {
  display: flex;
  min-height: 100vh;
  background: var(--background);
}

/* The texture is set by assets/javascripts/delos-texture.js from the browser's Cache Storage (the
   Portal sends no caching headers); until then, or without it, the panel is solid navy. */
.delos-texture {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.delos-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--delos-veil);
}

.delos-auth__banner {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: 40%;
  max-width: 560px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--space-blue-160);
  color: var(--chrome-foreground);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.delos-auth__home,
.delos-auth__title {
  position: relative;
  z-index: 1;
}

.delos-auth__mark {
  width: 96px;
  height: 96px;
}

.delos-auth__title {
  margin-bottom: auto;
  margin-top: auto;
}

.delos-auth__name {
  font-family: var(--delos-font-title);
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chrome-foreground);
  margin: 20px 0 16px;
}

.delos-auth__name span {
  display: block;
  color: var(--moon-blue-30);
}

.delos-auth__line {
  color: var(--moon-blue-20);
  max-width: 22rem;
  margin: 0;
}

.delos-auth__main {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.delos-auth .login-page-wrapper {
  background: var(--background);
  padding: 48px 24px;
}

.delos-auth .login-form-wrapper {
  background: var(--card);
  width: 100%;
  max-width: 440px;
  padding: 0;
  border-radius: 0;
}

.delos-auth .login-form-title {
  display: block;
  text-align: left;
  font-size: 1.875rem;
  margin: 0 0 4px;
  color: var(--foreground);
}

.delos-form-lead {
  color: var(--muted-foreground);
  margin-bottom: 28px;
}

.delos-auth .login-form-input {
  height: 44px;
  border: 1px solid var(--muted-decorative-foreground);
  border-radius: var(--delos-radius-control);
}

.delos-auth .login-form-label {
  color: var(--foreground);
  font-size: 0.9375rem;
}

.delos-auth .login-form-info {
  color: var(--muted-foreground);
}

.delos-auth .brand-link {
  color: var(--link);
  font-weight: 500;
}

.delos-auth .portal-primary {
  width: 100%;
  padding: 12px 18px;
  font-size: 1rem;
}

.delos-auth .alert {
  margin-bottom: 20px;
}

/* --- 6. Landing page -------------------------------------------------------------------------- */

.delos-hero {
  position: relative;
  overflow: hidden;
  background: var(--space-blue-160);
  color: var(--chrome-foreground);
}

.delos-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 96px;
}

.delos-hero__title {
  font-size: 3.25rem;
  line-height: 1.08;
  font-weight: 700;
  color: var(--chrome-foreground);
  margin: 20px 0 20px;
  max-width: 14ch;
}

.delos-hero__lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--moon-blue-20);
  max-width: 40rem;
}

.delos-hero__lead p {
  margin: 0;
}

.delos-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.delos-hero__actions .btn + .btn {
  margin-left: 0;
}

.delos-section {
  padding: 72px 0;
}

.delos-section--canvas {
  background: var(--canvas);
}

.delos-section__title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.delos-section__intro {
  color: var(--muted-foreground);
  max-width: 46rem;
  font-size: 1.0625rem;
}

.delos-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.delos-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--delos-radius-panel);
  padding: 24px;
  box-shadow: var(--delos-shadow-panel);
}

.delos-card h3,
.delos-step h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.delos-card p,
.delos-step p {
  margin: 0;
  color: var(--muted-foreground);
}

.delos-steps {
  list-style: none;
  counter-reset: delos-step;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.delos-step {
  counter-increment: delos-step;
  background: var(--card);
  border-radius: var(--delos-radius-panel);
  border: 1px solid var(--border);
  padding: 24px;
}

.delos-step::before {
  content: counter(delos-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  margin-bottom: 16px;
}

.delos-step p {
  color: var(--night-blue-75);
}

.delos-note {
  border-radius: var(--delos-radius-panel);
  border: 1px solid var(--autumn-leaf-30);
  background: var(--autumn-leaf-15);
  padding: 24px 28px;
}

.delos-note__title {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.delos-note p {
  margin: 0;
  color: var(--foreground);
}

/* --- Error pages ------------------------------------------------------------------------------ */

.delos-error__code {
  font-family: var(--delos-font-title);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.14em;
  margin: 64px 0 8px;
}

.delos-error__title {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* --- 7. Footer -------------------------------------------------------------------------------- */

footer.delos-footer {
  background: var(--space-blue-160);
  color: var(--night-blue-40);
  padding: 40px 0 32px;
  margin-top: 0;
  font-size: 0.9375rem;
}

body.delos--auth footer.delos-footer {
  display: none;
}

.delos-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.delos-footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.delos-footer__brand img {
  flex-shrink: 0;
}

.delos-footer__name {
  color: var(--chrome-foreground);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 6px;
}

.delos-footer__env {
  margin: 0;
}

.delos-footer__env .delos-env {
  margin-right: 6px;
}

.delos-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delos-footer a {
  color: var(--chrome-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--chrome-foreground) 35%, transparent);
}

.delos-footer a:hover {
  color: var(--moon-blue-30);
}

.delos-footer__label {
  color: var(--chrome-foreground);
  font-weight: 600;
  margin: 0 0 4px;
}

.delos-footer__contact p {
  margin: 0;
}

.delos-footer__legal {
  border-top: 1px solid color-mix(in srgb, var(--moon-blue-30) 20%, transparent);
  margin: 28px 0 0;
  padding-top: 16px;
  font-size: 0.8125rem;
}

/* A fact Delos has yet to supply: visible, and plainly not real. */
.delos-placeholder {
  font-style: italic;
  color: inherit;
  border-bottom: 1px dashed currentColor;
}

/* --- 8. Phones and small screens -------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .delos-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delos-nav .navbar-collapse {
    padding: 12px 0 8px;
  }

  .delos-nav .navbar-nav,
  .delos-nav .navbar-menu-items,
  .delos-nav .navbar-cta {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  .delos-nav .navbar-cta .navbar-nav {
    margin-top: 8px;
  }

  .delos-auth {
    flex-direction: column;
  }

  .delos-auth__banner {
    position: relative;
    height: auto;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 20px;
  }

  .delos-auth__mark {
    width: 48px;
    height: 48px;
  }

  .delos-auth__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .delos-auth__name {
    font-size: 1.125rem;
    margin: 0;
    text-transform: none;
  }

  .delos-auth__name span {
    display: inline;
    color: var(--moon-blue-20); /* 18px is not large text: moon-blue-30 would fall short of 4.5:1 on the texture */
  }

  .delos-auth__line {
    display: none;
  }

  .delos-auth .login-page-wrapper {
    padding: 28px 16px 40px;
    justify-content: flex-start !important;
  }
}

/* The signed-in pages put the account menu beside the page; below desktop width it goes above it
   (the default kept both side by side and squeezed the page off the screen). */
@media (max-width: 991.98px) {
  body.delos--private > main.page-wrapper {
    flex-direction: column !important;
  }

  body.delos--private .side-menu-container {
    width: 100%;
    min-width: 0;
    margin: 0 0 20px;
    padding: 6px;
  }

  body.delos--private .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
  }

  body.delos--private .sidebar-nav hr {
    display: none;
  }

  body.delos--private .private-portal-wrapper,
  body.delos--private .dashboard-container {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.delos--private main.page-wrapper > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Wide tables scroll inside their panel instead of widening the page. */
  body.delos .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
  }

  body.delos--private select,
  body.delos--private canvas {
    max-width: 100%;
  }

  /* Bootstrap rows whose unclassed column would otherwise grow to the table's width. */
  body.delos--private .private-portal-wrapper .row > div {
    min-width: 0;
    max-width: 100%;
  }

  /* The usage page's panels have fixed pixel widths and margins in the default (analytics.css). */
  body.delos--private .dashboard-container * {
    max-width: 100%;
  }

  body.delos--private .dashboard-container [class*="wrapper"],
  body.delos--private .dashboard-container .analytics-content {
    width: auto !important;
    height: auto !important;
    min-width: 0;
  }

  body.delos--private .dashboard-container .export-wrapper {
    margin: 12px 0 0 !important;
  }

  body.delos--private .dashboard-container .analytics-content {
    padding: 12px !important;
    border-radius: var(--delos-radius-panel);
  }

  body.delos--private .dashboard-container :is(.api-calls-wrapper, .errors-graph-wrapper, .total-api-calls-wrapper, .filter-data-by) {
    padding: 16px !important;
    margin: 0 0 12px !important;
    border-radius: var(--delos-radius-control);
  }

  body.delos--private .dashboard-container .errors-graph-wrapper canvas {
    margin: 12px 0 0 !important;
  }

  body.delos--private .dashboard-container [class*="ml-"] {
    margin-left: 0 !important;
  }

  body.delos--private .dashboard-container .d-flex.flex-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  body.delos--private .dashboard-container .row-graph-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .dashboard-tabs-wrapper {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-tabs-wrapper .analytics-tab {
    margin-right: 0 !important;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .delos-cards,
  .delos-steps,
  .delos-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .delos-hero__inner {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .delos-hero__title {
    font-size: 2.25rem;
  }

  .delos-hero__lead {
    font-size: 1.0625rem;
  }

  .delos-section {
    padding: 48px 0;
  }

  .delos-section__title {
    font-size: 1.625rem;
  }

  .delos-brand__product {
    display: none;
  }

  /* Rows that put a label and a button side by side wrap instead of squeezing the label. */
  body.delos main .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 12px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
