.tb-page {
  padding-top: 0;
}

.tb-page .page-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0 0 28px;
  background: #fff;
  border-top: 1px solid rgba(23, 33, 90, 0.08);
  border-bottom: 1px solid #dce1ed;
  color: var(--ink, #11142d);
}

.tb-page .page-masthead::before,
.tb-page .page-masthead::after {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
}

.tb-page .page-masthead::before {
  right: 0;
  background: var(--navy, #17215a);
}

.tb-page .page-masthead::after {
  width: min(24vw, 360px);
  background: var(--accent, #e00a14);
}

.tb-page .page-masthead__inner {
  width: min(100% - 32px, var(--container, 1420px));
  margin-right: auto;
  margin-left: auto;
}

.tb-page .page-masthead__body,
.tb-page .tb-wrap {
  width: min(760px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.tb-page .page-masthead__body {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 118px;
  padding: 26px 0 28px;
}

.tb-page .page-masthead__seal {
  display: block;
  width: 6px;
  height: 72px;
  background: var(--navy, #17215a);
}

.tb-page .page-masthead .eyebrow {
  color: var(--accent, #e00a14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-page .page-masthead h1 {
  margin: 4px 0 8px;
  color: var(--navy, #17215a);
  font-size: 34px;
  line-height: 1.15;
}

.tb-page .page-masthead p {
  max-width: 720px;
  margin: 0;
  color: #3d4860;
}

.tb-wrap {
  margin-top: 0;
  margin-bottom: 72px;
  padding-left: 0;
  color: #24304a;
  font-size: 16px;
  line-height: 1.65;
  box-sizing: border-box;
}

.tb-lead {
  margin: 0 0 22px;
}

.tb-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tb-switch button,
.tb-panel__paths button,
.tb-paths a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #17215a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tb-switch button.is-on,
.tb-switch button:hover,
.tb-panel__paths button:hover,
.tb-paths a:hover {
  background: #e00a14;
}

.tb-panes {
  margin-top: 0;
}

.tb-box {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  transition: grid-template-rows 360ms ease, opacity 280ms ease, margin-top 360ms ease;
}

.tb-box[hidden] {
  display: none;
}

.tb-box.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
  pointer-events: auto;
}

.tb-box__in {
  min-height: 0;
  overflow: hidden;
}

.tb-box__card {
  padding: 22px 22px 12px;
  border: 1px solid #d5e3f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  text-align: center;
}

.tb-box.is-open .tb-box__card {
  animation: tbSoft 2.8s ease-in-out infinite;
}

.tb-steps {
  display: inline-block;
  margin: 0 auto 12px;
  padding-left: 18px;
  max-width: 640px;
  text-align: left;
}

.tb-steps li + li {
  margin-top: 8px;
}

.tb-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f6fd;
}

.tb-cards {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tb-cards__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 18px 16px 16px;
  border: 1px solid #d7e4f8;
  border-radius: 18px;
  color: inherit;
  background: #fff;
  text-align: center;
  cursor: default;
  box-shadow: 0 8px 22px rgba(23, 33, 90, 0.05);
  animation: tbCardIn 460ms ease both;
}

.tb-cards li:nth-child(2) .tb-cards__item { animation-delay: 90ms; }
.tb-cards li:nth-child(3) .tb-cards__item { animation-delay: 160ms; }

.tb-cards__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #e7c15a;
}

.tb-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.tb-pills span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #17215a;
  font-size: 13px;
  font-weight: 700;
}

.tb-cards__flag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #17215a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tb-cards b {
  color: #e00a14;
  font-weight: 800;
}

.tb-cards strong,
.tb-cards em {
  display: block;
}

.tb-cards em {
  color: #566176;
  font-style: normal;
  font-size: 14px;
}

.tb-cards__logo,
.tb-detail__logo,
.tb-bubble__logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #eef2fb;
  color: #17215a;
  font-weight: 800;
}

.tb-cards__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #e7c15a;
}

.tb-cards__logo img,
.tb-detail__logo img,
.tb-bubble__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-bubble__logo img,
.tb-panel__logo img {
  object-fit: cover;
}

.tb-detail {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.tb-detail__logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  font-size: 22px;
}

.tb-detail__company {
  margin: 0;
  color: #17215a;
  font-size: 20px;
  font-weight: 800;
}

.tb-detail__when,
.tb-detail__where {
  margin: 4px 0 0;
}

.tb-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tb-dock {
  position: fixed;
  z-index: 40;
  left: 10px;
  top: auto;
  bottom: 18px;
  width: 76px;
  transform: none;
}

.tb-dock.is-open {
  padding-right: 28px;
}

.tb-launch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 76px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17215a;
  cursor: pointer;
}

.tb-launch__art {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #17215a;
  box-shadow: 0 12px 28px rgba(23, 33, 90, 0.22);
}

.tb-mark {
  width: 76px;
  height: 76px;
}

.tb-mark__ring,
.tb-mark__spin {
  fill: none;
  stroke-width: 2.4;
}

.tb-mark__ring { stroke: #f0b323; }
.tb-mark__spin {
  stroke: #e00a14;
  stroke-linecap: round;
  stroke-dasharray: 16 150;
  transform-origin: 40px 40px;
  animation: tbSpin 7s linear infinite;
}

.tb-mark__head { fill: #f6d3b0; }
.tb-mark__head--b { fill: #e7b48a; }
.tb-mark__body { fill: #fff; }
.tb-mark__arm {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}
.tb-mark__clasp {
  fill: #f0b323;
  transform-box: fill-box;
  transform-origin: center;
  animation: tbClasp 2.6s ease-in-out infinite;
}

.tb-launch__label {
  display: inline-block;
  width: max-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #17215a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 33, 90, 0.16);
}

.tb-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: min(210px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 90, 0.16);
  color: #17215a;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.tb-bubble::after {
  position: absolute;
  bottom: -6px;
  left: var(--tb-tail, 38px);
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  content: "";
}

.tb-bubble.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tb-bubble.is-wink {
  animation: tbWink 720ms ease;
}

.tb-bubble__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 11px;
}

.tb-bubble__text {
  display: grid;
  gap: 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tb-bubble__kicker {
  color: #6a7388;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tb-bubble__firm {
  color: #17215a;
  font-size: 13px;
}

.tb-bubble__line {
  display: flex;
  gap: 6px;
  color: #3d4860;
  font-weight: 700;
}

.tb-bubble__date {
  color: #e00a14;
  font-weight: 800;
}

.tb-bubble__time {
  color: #8a6408;
  font-weight: 800;
}

.tb-dock.is-open .tb-bubble {
  opacity: 0;
  pointer-events: none;
}

.tb-panel {
  position: absolute;
  top: auto;
  bottom: 0;
  left: calc(100% - 10px);
  width: 300px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 33, 90, 0.18);
  animation: tbBoxIn 240ms ease;
}

.tb-panel[hidden] { display: none; }

.tb-panel__kicker {
  margin: 0 0 10px;
  color: #e00a14;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tb-panel__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}

.tb-panel__logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef2fb;
  color: #17215a;
  font-weight: 800;
}

.tb-panel__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-panel__facts {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tb-panel__facts strong {
  color: #17215a;
  font-size: 15px;
}

.tb-panel__event,
.tb-panel__empty {
  display: block;
  margin: 0 0 12px;
  color: #17215a;
  text-decoration: none;
}

.tb-panel__event strong,
.tb-panel__event span { display: block; }

.tb-panel__event span,
.tb-panel__empty,
.tb-panel__more {
  color: #3d4860;
  font-size: 14px;
  line-height: 1.45;
}

.tb-panel__more {
  margin: 0 0 12px;
  padding-left: 16px;
}

.tb-panel__paths {
  display: grid;
  gap: 8px;
}

.tb-close,
.tb-reopen { display: none; }

@keyframes tbSpin { to { transform: rotate(360deg); } }
@keyframes tbClasp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes tbBoxIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes tbCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes tbPaneIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes tbWink {
  0%, 100% { opacity: 1; }
  42% { opacity: 0.2; }
  68% { opacity: 1; }
}

@keyframes tbSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 111, 214, 0); }
  50% { box-shadow: 0 10px 26px rgba(47, 111, 214, 0.16); }
}

@media (max-width: 760px) {
  .tb-page .page-masthead h1 { font-size: 28px; }
  .tb-page .page-masthead__body,
  .tb-page .tb-wrap { width: min(760px, calc(100% - 28px)); }
  .tb-page .page-masthead__body { gap: 14px; }

  .tb-dock {
    bottom: 22px;
    left: 8px;
  }

  .tb-dock.is-open {
    padding-right: 0;
    padding-top: 14px;
  }

  .tb-launch__art,
  .tb-mark,
  .tb-launch { width: 62px; }
  .tb-launch__art,
  .tb-mark { height: 62px; }
  .tb-launch__label { font-size: 10px; }

  .tb-bubble {
    left: 0 !important;
    width: min(210px, calc(100vw - 36px));
    transform: translateY(8px);
  }

  .tb-bubble.is-shown { transform: none; }

  .tb-bubble::after { left: 24px; right: auto; }

  .tb-panel {
    top: auto;
    bottom: 100%;
    left: 0;
    width: min(280px, calc(100vw - 28px));
    transform: none;
    animation: none;
  }

  .tb-close {
    position: absolute;
    top: 22px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #17215a;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
  }

  .tb-dock.is-dismissed .tb-launch,
  .tb-dock.is-dismissed .tb-bubble,
  .tb-dock.is-dismissed .tb-panel,
  .tb-dock.is-dismissed .tb-close { display: none; }

  .tb-dock.is-dismissed .tb-reopen {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #17215a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-mark__spin,
  .tb-mark__clasp,
  .tb-box.is-open .tb-box__card,
  .tb-panel { animation: none; }
  .tb-box { transition: none; }
  .tb-bubble,
  .tb-bubble.is-wink { transition: none; animation: none; }
}

@media print {
  .tb-dock { display: none; }
}
