/* Application footer: uses the portal tokens and leaves the legacy theme chrome untouched. */
.portal-site-footer {
  position: relative;
  z-index: 2;
  margin-left: var(--sidebar-width, 232px);
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 12%, rgba(255, 138, 0, .14), transparent 25%),
    radial-gradient(circle at 91% 88%, rgba(50, 166, 255, .08), transparent 27%),
    #101116;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #d5d2da;
}

.portal-site-footer:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  content: '';
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.portal-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .7fr) minmax(190px, .7fr);
  gap: clamp(38px, 7vw, 128px);
  max-width: 1240px;
  padding-top: 46px;
  padding-bottom: 30px;
}

.portal-site-footer__brand {
  min-width: 0;
  padding-right: clamp(8px, 4vw, 64px);
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.portal-site-footer__logo {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  margin-bottom: 16px;
}

.portal-site-footer__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.portal-site-footer__wordmark {
  color: #f8f5fb;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1;
}

.portal-site-footer__wordmark span { color: #ff9b19; }

.portal-site-footer__brand p {
  max-width: 380px;
  margin: 0;
  color: #aeb9cc;
  font-size: 15px;
  line-height: 1.65;
}

.portal-site-footer__play-card {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  max-width: 330px;
  padding: 11px 12px;
  margin-top: 19px;
  border: 1px solid rgba(255, 163, 37, .3);
  border-radius: 13px;
  background: linear-gradient(112deg, rgba(255, 136, 0, .14), rgba(255, 255, 255, .025));
  color: #f8f5fb;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.portal-site-footer__play-card:hover,
.portal-site-footer__play-card:focus-visible {
  border-color: rgba(255, 181, 62, .8);
  background: linear-gradient(112deg, rgba(255, 136, 0, .23), rgba(255, 255, 255, .055));
  color: #fff;
  outline: 0;
  transform: translateY(-2px);
}

.portal-site-footer__play-card:focus-visible { box-shadow: 0 0 0 3px rgba(255, 155, 25, .2); }

.portal-site-footer__play-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff7c26, #ffb000);
  color: #24160b;
}

.portal-site-footer__play-icon .portal-lucide { width: 19px; height: 19px; }
.portal-site-footer__play-card strong,.portal-site-footer__play-card small { display: block; }
.portal-site-footer__play-card strong { font-size: 13px; font-weight: 800; line-height: 1.25; }
.portal-site-footer__play-card small { margin-top: 2px; color: #b9b2bf; font-size: 12px; line-height: 1.3; }
.portal-site-footer__play-arrow { color: #ffad42; font-size: 18px; font-weight: 800; transition: transform .2s ease; }
.portal-site-footer__play-card:hover .portal-site-footer__play-arrow { transform: translateX(3px); }

.portal-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 0;
  margin-top: 17px;
}

.portal-site-footer__social:empty {
  display: none;
}

.portal-site-footer__social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background: #1b1e25;
  color: #aeb9cc;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.portal-site-footer__social-link:before {
  font-family: FontAwesome;
  font-size: 18px;
  line-height: 1;
}

.portal-site-footer__social-link:hover,
.portal-site-footer__social-link:focus-visible {
  border-color: rgba(255, 138, 0, .75);
  background: rgba(255, 138, 0, .14);
  color: #ffad42;
  outline: 0;
  transform: translateY(-2px);
}

.portal-site-footer__social-link:focus-visible,
.portal-site-footer__links a:focus-visible {
  outline: 2px solid #ff9b19;
  outline-offset: 3px;
}

.portal-site-footer__social-link--community .portal-lucide {
  width: 18px;
  height: 18px;
}

.portal-site-footer__links h2 {
  margin: 2px 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.portal-site-footer__links h2:after {
  display: block;
  width: 23px;
  height: 2px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8a00, #ffbd43);
  content: '';
}

.portal-site-footer__links ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-site-footer__links a {
  color: #ceccd2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

.portal-site-footer__links a:hover {
  padding-left: 3px;
  color: #ff9b19;
}

.portal-site-footer__bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .1);
}

.portal-site-footer__bottom .cont {
  max-width: 1240px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.portal-site-footer__bottom p {
  margin: 0;
  color: #9ca9bd;
  font-size: 13px;
  line-height: 1.4;
}

body.portal-light-theme .portal-site-footer,
body.light-theme .portal-site-footer {
  background: radial-gradient(circle at 11% 12%, rgba(255, 138, 0, .12), transparent 25%), #f7f6f8;
  border-color: #dfdce2;
  color: #35323b;
}

body.portal-light-theme .portal-site-footer__brand,
body.light-theme .portal-site-footer__brand,
body.portal-light-theme .portal-site-footer__bottom,
body.light-theme .portal-site-footer__bottom {
  border-color: #dfdce2;
}

body.portal-light-theme .portal-site-footer__brand p,
body.light-theme .portal-site-footer__brand p,
body.portal-light-theme .portal-site-footer__bottom p,
body.light-theme .portal-site-footer__bottom p {
  color: #686371;
}

body.portal-light-theme .portal-site-footer__links h2,
body.light-theme .portal-site-footer__links h2,
body.portal-light-theme .portal-site-footer__links a,
body.light-theme .portal-site-footer__links a {
  color: #28242e;
}

body.portal-light-theme .portal-site-footer__social-link,
body.light-theme .portal-site-footer__social-link {
  border-color: #ded9e1;
  background: #fff;
  color: #615a69;
}

body.portal-light-theme .portal-site-footer__play-card,
body.light-theme .portal-site-footer__play-card { border-color: rgba(240, 150, 30, .46); background: linear-gradient(112deg, rgba(255, 138, 0, .13), #fff); color: #2f2836; }
body.portal-light-theme .portal-site-footer__play-card small,
body.light-theme .portal-site-footer__play-card small { color: #6c6472; }

@media (max-width: 1199px) {
  .portal-site-footer { margin-left: 0; }
}

@media (max-width: 760px) {
  .portal-site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 26px;
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .portal-site-footer__brand {
    grid-column: 1 / -1;
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  body.portal-light-theme .portal-site-footer__brand,
  body.light-theme .portal-site-footer__brand { border-color: #dfdce2; }
}

@media (max-width: 430px) {
  .portal-site-footer__inner { grid-template-columns: 1fr; }
  .portal-site-footer__logo { max-width: 190px; }
}
