@font-face {
  font-family: "Space Grotesk";
  src: url("./space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* Shared branding; copied into each independently deployed web component. */
.swiftptt-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  flex: 0 1 auto;
  max-width: 100%;
  color: inherit;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.swiftptt-brand-identity {
  flex: 0 0 8.6em;
}

.swiftptt-brand .swiftptt-brand-title {
  margin: 0;
  color: inherit;
  font:
    700 2em/1 "Space Grotesk",
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
}

.swiftptt-brand-name {
  display: block;
  margin-top: 0.1em;
  font-size: 1em;
  line-height: 1.15;
}

.swiftptt-brand-origin {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  padding-top: 0.16em;
}

.swiftptt-brand-origin-text {
  font-size: 0.583333em;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.swiftptt-brand-origin-text span {
  display: block;
}

.swiftptt-brand-with-tenant {
  display: grid;
  grid-template-columns: 8.6em auto;
  gap: 0 0.5em;
}

.swiftptt-brand-with-tenant .swiftptt-brand-identity {
  display: contents;
}

.swiftptt-brand-with-tenant .swiftptt-brand-title {
  grid-area: 1 / 1;
}

.swiftptt-brand-with-tenant .swiftptt-brand-name {
  grid-area: 2 / 1;
  align-self: baseline;
}

.swiftptt-brand-with-tenant .swiftptt-brand-origin {
  grid-area: 1 / 2;
}

.swiftptt-brand-tenant {
  grid-area: 2 / 2;
  align-self: baseline;
  min-width: 0;
  margin-top: 0.1em;
  contain: inline-size;
  overflow-wrap: anywhere;
  font-size: 0.75em;
  line-height: 1.3;
  text-align: right;
}

.tenant-platform-link {
  align-self: center;
  font-size: 14px;
}

/* Thirteen whole-pixel stripes: seven dark, six white. */
.swiftptt-brand-flag {
  --flag-stripe-height: 2px;
  position: relative;
  display: block;
  flex: 0 0 calc(25 * var(--flag-stripe-height));
  width: calc(25 * var(--flag-stripe-height));
  height: calc(13 * var(--flag-stripe-height));
  background: repeating-linear-gradient(
    to bottom,
    #232323 0 var(--flag-stripe-height),
    #fff var(--flag-stripe-height) calc(2 * var(--flag-stripe-height))
  );
}

.swiftptt-brand-flag::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: calc(7 * var(--flag-stripe-height));
  background: #232323;
  content: "";
}

@media (max-width: 600px) {
  .swiftptt-brand {
    font-size: clamp(15px, 4.5vw, 24px);
  }
}

@media (max-width: 400px) {
  .swiftptt-brand-flag {
    --flag-stripe-height: 1px;
  }
}
