/* OFFICIAL BRANDING 3A-2C-1 START */

.lk-official-brand,
.lk-footer-official-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lk-official-brand picture,
.lk-footer-official-logo picture {
  display: contents;
}

.lk-official-brand img {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(57, 34, 28, .11));
  transition:
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    filter 320ms ease;
}

.mast-brand.brand-v2.lk-official-brand {
  min-width: 76px;
  min-height: 72px;
  gap: 0;
}

.mast-brand.brand-v2.lk-official-brand svg,
.mast-brand.brand-v2.lk-official-brand > span {
  display: none !important;
}

.lk-footer-official-logo {
  margin-bottom: 18px;
}

.lk-footer-official-logo img {
  display: block;
  width: auto;
  height: 112px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .14));
  transition:
    transform 380ms cubic-bezier(.22, 1, .36, 1),
    filter 320ms ease;
}

.lk-legal-emblem {
  overflow: hidden;
}

.lk-legal-emblem > span,
.lk-legal-emblem > small {
  display: none !important;
}

.lk-legal-emblem img {
  display: block;
  width: min(118px, 100%);
  height: auto;
  max-height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(55, 32, 25, .18));
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    filter 320ms ease;
}

.lk-legal-nav-logo {
  display: block;
  width: 28px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(55, 32, 25, .13));
}

@media (hover: hover) and (pointer: fine) {
  .lk-official-brand:hover img,
  .lk-footer-official-logo:hover img {
    transform: translate3d(0, -3px, 0) scale(1.02);
  }

  .lk-legal-hero:hover .lk-legal-emblem img {
    transform:
      translate3d(0, -4px, 0)
      rotate(-1.5deg)
      scale(1.025);
  }
}

html[data-theme="malam"] .lk-official-brand img,
html[data-theme="malam"] .lk-footer-official-logo img,
html[data-theme="malam"] .lk-legal-emblem img,
html[data-theme="malam"] .lk-legal-nav-logo {
  filter:
    drop-shadow(0 12px 24px rgba(0, 0, 0, .28))
    brightness(1.04);
}

@media (max-width: 920px) {
  .lk-official-brand img {
    height: 60px;
  }

  .lk-footer-official-logo img {
    height: 96px;
  }
}

@media (max-width: 640px) {
  .mast-brand.brand-v2.lk-official-brand {
    min-width: 48px;
    min-height: 54px;
  }

  .lk-official-brand img {
    height: 48px;
  }

  .lk-footer-official-logo img {
    height: 78px;
  }

  .lk-legal-emblem img {
    width: 88px;
    max-height: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-official-brand img,
  .lk-footer-official-logo img,
  .lk-legal-emblem img {
    transition-duration: 0.01ms !important;
  }

  .lk-official-brand:hover img,
  .lk-footer-official-logo:hover img,
  .lk-legal-hero:hover .lk-legal-emblem img {
    transform: none !important;
  }
}

/* OFFICIAL BRANDING 3A-2C-1 END */

/* OFFICIAL BRANDING VISUAL FIX 3A-2C-1A START */

.lk-page-official-symbol {
  display: block;
  width: 86px;
  height: 96px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter:
    drop-shadow(0 12px 22px rgba(18, 9, 7, .22))
    brightness(1.08)
    contrast(1.06);
  transform: translateZ(0);
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    filter 320ms ease;
}

.lk-about-knight {
  font-size: 0;
  line-height: 0;
}

.lk-about-knight .lk-page-official-symbol {
  width: 94px;
  height: 106px;
}

.lk-join-hero .lk-page-official-symbol {
  width: 82px;
  height: 92px;
}

@media (hover: hover) and (pointer: fine) {
  .lk-about-hero:hover .lk-page-official-symbol,
  .lk-join-hero:hover .lk-page-official-symbol {
    transform:
      translate3d(0, -4px, 0)
      scale(1.035);
    filter:
      drop-shadow(0 18px 28px rgba(18, 9, 7, .28))
      brightness(1.1)
      contrast(1.08);
  }
}

.lk-legal-emblem {
  width: 138px;
  height: 138px;
  padding: 12px;
  border:
    1px solid
    rgba(212, 168, 91, .5);
  background:
    radial-gradient(
      circle at 36% 28%,
      rgba(255, 253, 246, .99) 0%,
      rgba(247, 237, 218, .96) 52%,
      rgba(226, 205, 170, .9) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 18px 38px rgba(19, 9, 7, .22);
  backdrop-filter: blur(8px);
}

.lk-legal-emblem img {
  width: 116px;
  height: 116px;
  max-height: none;
  opacity: 1;
  filter:
    drop-shadow(0 8px 14px rgba(49, 28, 22, .2))
    brightness(1.12)
    contrast(1.14)
    saturate(1.08);
}

.lk-legal-nav-logo {
  width: 31px;
  height: 35px;
  padding: 3px;
  border-radius: 10px;
  background:
    rgba(255, 252, 244, .9);
  filter:
    drop-shadow(0 6px 12px rgba(55, 32, 25, .16))
    brightness(1.08)
    contrast(1.08);
}

html[data-theme="malam"] .lk-legal-emblem {
  border-color:
    rgba(229, 190, 119, .54);
  background:
    radial-gradient(
      circle at 36% 28%,
      rgba(255, 251, 240, .98) 0%,
      rgba(241, 226, 200, .96) 54%,
      rgba(203, 174, 132, .92) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 22px 42px rgba(0, 0, 0, .32);
}

html[data-theme="malam"] .lk-legal-emblem img {
  filter:
    drop-shadow(0 9px 16px rgba(0, 0, 0, .22))
    brightness(1.14)
    contrast(1.16)
    saturate(1.08);
}

@media (max-width: 640px) {
  .lk-page-official-symbol {
    width: 72px;
    height: 82px;
  }

  .lk-about-knight .lk-page-official-symbol {
    width: 78px;
    height: 88px;
  }

  .lk-legal-emblem {
    width: 108px;
    height: 108px;
    padding: 10px;
  }

  .lk-legal-emblem img {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-page-official-symbol {
    transition-duration: 0.01ms !important;
  }

  .lk-about-hero:hover .lk-page-official-symbol,
  .lk-join-hero:hover .lk-page-official-symbol {
    transform: none !important;
  }
}

/* OFFICIAL BRANDING VISUAL FIX 3A-2C-1A END */

/* OFFICIAL LOGO IVORY PLATE 3A-2C-1B START */

/*
 * Logo resmi memakai bidang gading ketika ditempatkan
 * pada permukaan espresso. Warna asli logo tidak dipaksa
 * menjadi putih dan tetap konsisten sebagai identitas resmi.
 */
.lk-footer-official-logo {
  position: relative;
  isolation: isolate;

  width: fit-content;
  max-width: 100%;

  padding: 14px 18px;

  overflow: hidden;

  border:
    1px solid
    rgba(218, 179, 111, .58);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      #fffdf7 0%,
      #f6f0e4 56%,
      #eadbc4 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .92),
    0 18px 40px
    rgba(15, 7, 5, .24);

  backdrop-filter:
    blur(10px);
}

.lk-footer-official-logo::after {
  position: absolute;
  z-index: -1;
  top: -46px;
  right: -42px;

  width: 132px;
  height: 132px;

  content: "";
  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(126, 39, 53, .13) 0%,
      rgba(184, 137, 63, .08) 46%,
      transparent 72%
    );
}

.lk-footer-official-logo img {
  position: relative;
  z-index: 1;

  width: auto;
  height: 126px;
  max-width: min(260px, 74vw);

  opacity: 1;

  filter:
    drop-shadow(
      0 8px 14px
      rgba(63, 38, 29, .18)
    )
    contrast(1.08)
    saturate(1.04);
}

/*
 * Simbol pada hero Tentang dan Gabung Menulis.
 */
.lk-about-knight,
.lk-join-hero
.lk-page-official-symbol {
  border-radius: 22px;
}

.lk-about-knight {
  display: grid;
  place-items: center;

  padding: 12px;

  border:
    1px solid
    rgba(224, 184, 111, .52);

  background:
    linear-gradient(
      145deg,
      #fffdf7 0%,
      #f6efe1 58%,
      #e8d6bc 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .88),
    0 16px 34px
    rgba(18, 8, 6, .2);
}

.lk-about-knight
.lk-page-official-symbol {
  box-sizing: border-box;

  width: 92px;
  height: 102px;

  padding: 6px;

  background: transparent;

  opacity: 1;

  filter:
    drop-shadow(
      0 8px 14px
      rgba(58, 34, 27, .18)
    )
    contrast(1.1)
    saturate(1.05);
}

.lk-join-hero
.lk-page-official-symbol {
  box-sizing: content-box;

  width: 78px;
  height: 88px;

  padding: 10px;

  border:
    1px solid
    rgba(224, 184, 111, .52);

  background:
    linear-gradient(
      145deg,
      #fffdf7 0%,
      #f6efe1 58%,
      #e8d6bc 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .88),
    0 14px 30px
    rgba(18, 8, 6, .2);

  opacity: 1;

  filter:
    drop-shadow(
      0 7px 12px
      rgba(58, 34, 27, .16)
    )
    contrast(1.1)
    saturate(1.05);
}

/*
 * Emblem legal dibuat memakai bidang gading solid.
 */
.lk-legal-emblem {
  width: 142px;
  height: 142px;

  padding: 13px;

  border:
    1px solid
    rgba(224, 184, 111, .62);

  background:
    linear-gradient(
      145deg,
      #fffef9 0%,
      #f7f0e4 58%,
      #e7d4b7 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .94),
    0 20px 42px
    rgba(18, 8, 6, .25);
}

.lk-legal-emblem img {
  width: 116px;
  height: 116px;
  max-height: none;

  opacity: 1;

  filter:
    drop-shadow(
      0 8px 14px
      rgba(58, 34, 27, .18)
    )
    contrast(1.12)
    saturate(1.06);
}

.lk-legal-nav-logo {
  box-sizing: content-box;

  padding: 5px;

  border:
    1px solid
    rgba(218, 179, 111, .48);
  border-radius: 11px;

  background:
    #fffaf0;

  opacity: 1;

  filter:
    drop-shadow(
      0 6px 11px
      rgba(58, 34, 27, .16)
    )
    contrast(1.08);
}

/*
 * Pastikan penyesuaian tema malam tidak menggelapkan
 * logo resmi yang berada di atas bidang gading.
 */
html[data-theme="malam"]
.lk-footer-official-logo img,
html[data-theme="malam"]
.lk-about-knight
.lk-page-official-symbol,
html[data-theme="malam"]
.lk-join-hero
.lk-page-official-symbol,
html[data-theme="malam"]
.lk-legal-emblem img,
html[data-theme="malam"]
.lk-legal-nav-logo {
  opacity: 1;

  filter:
    drop-shadow(
      0 8px 15px
      rgba(0, 0, 0, .2)
    )
    contrast(1.1)
    saturate(1.05);
}

@media (hover: hover) and (pointer: fine) {
  .lk-footer-official-logo:hover {
    border-color:
      rgba(231, 193, 122, .82);

    box-shadow:
      inset 0 1px 0
      rgba(255, 255, 255, .96),
      0 24px 52px
      rgba(15, 7, 5, .3);
  }

  .lk-footer-official-logo:hover img,
  .lk-about-hero:hover
  .lk-about-knight
  .lk-page-official-symbol,
  .lk-join-hero:hover
  .lk-page-official-symbol,
  .lk-legal-hero:hover
  .lk-legal-emblem img {
    transform:
      translate3d(0, -3px, 0)
      scale(1.025);
  }
}

@media (max-width: 640px) {
  .lk-footer-official-logo {
    padding: 11px 14px;
    border-radius: 19px;
  }

  .lk-footer-official-logo img {
    height: 96px;
    max-width: min(220px, 72vw);
  }

  .lk-about-knight {
    padding: 9px;
    border-radius: 18px;
  }

  .lk-about-knight
  .lk-page-official-symbol {
    width: 76px;
    height: 84px;
  }

  .lk-join-hero
  .lk-page-official-symbol {
    width: 68px;
    height: 76px;
    padding: 8px;
    border-radius: 18px;
  }

  .lk-legal-emblem {
    width: 112px;
    height: 112px;
    padding: 10px;
  }

  .lk-legal-emblem img {
    width: 90px;
    height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-footer-official-logo,
  .lk-footer-official-logo img,
  .lk-about-knight
  .lk-page-official-symbol,
  .lk-join-hero
  .lk-page-official-symbol,
  .lk-legal-emblem img {
    transition-duration:
      0.01ms !important;
  }

  .lk-footer-official-logo:hover img,
  .lk-about-hero:hover
  .lk-about-knight
  .lk-page-official-symbol,
  .lk-join-hero:hover
  .lk-page-official-symbol,
  .lk-legal-hero:hover
  .lk-legal-emblem img {
    transform: none !important;
  }
}

/* OFFICIAL LOGO IVORY PLATE 3A-2C-1B END */

/* OFFICIAL LOGO CASCADE FIX 3A-2C-1C START */

/*
 * Page-specific stylesheets are loaded after the global branding file.
 * These selectors intentionally carry stronger specificity and
 * !important only for the official logo surface and image visibility.
 */

body .lk-page-official-symbol {
  box-sizing: content-box !important;

  display: block !important;

  width: 82px !important;
  height: 92px !important;
  max-width: min(82px, 72vw) !important;

  padding: 11px !important;
  margin: 0 auto !important;

  overflow: visible !important;

  border:
    1px solid
    rgba(224, 184, 111, .68) !important;
  border-radius: 22px !important;

  background:
    linear-gradient(
      145deg,
      #fffef9 0%,
      #f8f1e5 58%,
      #ead8bd 100%
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .96),
    0 16px 34px
    rgba(16, 7, 5, .24) !important;

  object-fit: contain !important;
  object-position: center !important;

  opacity: 1 !important;

  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 7px 12px
      rgba(58, 34, 27, .18)
    )
    brightness(1.06)
    contrast(1.12)
    saturate(1.06) !important;
}

body .lk-about-knight {
  display: grid !important;
  place-items: center !important;

  padding: 0 !important;

  overflow: visible !important;

  border: 0 !important;

  background:
    transparent !important;

  box-shadow:
    none !important;
}

body .lk-about-knight
.lk-page-official-symbol {
  width: 92px !important;
  height: 102px !important;
  max-width: min(92px, 72vw) !important;
}

body .lk-join-hero
.lk-page-official-symbol {
  width: 80px !important;
  height: 90px !important;
  max-width: min(80px, 72vw) !important;
}

/* Legal emblem: lock the ivory field above later page CSS. */
body .lk-legal-emblem {
  box-sizing: border-box !important;

  display: grid !important;
  place-items: center !important;

  width: 142px !important;
  height: 142px !important;

  padding: 12px !important;

  overflow: hidden !important;

  border:
    1px solid
    rgba(224, 184, 111, .7) !important;
  border-radius: 50% !important;

  background:
    linear-gradient(
      145deg,
      #fffef9 0%,
      #f7efe2 58%,
      #e7d2b2 100%
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .96),
    0 20px 42px
    rgba(18, 8, 6, .26) !important;

  opacity: 1 !important;
}

body .lk-legal-emblem
.lk-legal-official-logo {
  display: block !important;

  width: 116px !important;
  height: 116px !important;
  max-width: 116px !important;
  max-height: 116px !important;

  padding: 0 !important;
  margin: 0 !important;

  background:
    transparent !important;

  object-fit: contain !important;
  object-position: center !important;

  opacity: 1 !important;

  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 8px 14px
      rgba(58, 34, 27, .18)
    )
    brightness(1.07)
    contrast(1.14)
    saturate(1.07) !important;
}

body .lk-legal-nav-logo {
  box-sizing: content-box !important;

  width: 31px !important;
  height: 35px !important;

  padding: 5px !important;

  border:
    1px solid
    rgba(218, 179, 111, .55) !important;
  border-radius: 11px !important;

  background:
    #fffaf0 !important;

  opacity: 1 !important;

  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 6px 11px
      rgba(58, 34, 27, .16)
    )
    contrast(1.1) !important;
}

/* Footer already works; lock it against future dark-surface overrides. */
body .lk-footer-official-logo {
  background:
    linear-gradient(
      145deg,
      #fffdf7 0%,
      #f6f0e4 56%,
      #eadbc4 100%
    ) !important;
}

body .lk-footer-official-logo img {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html[data-theme="malam"]
body .lk-page-official-symbol,
html[data-theme="malam"]
body .lk-legal-emblem
.lk-legal-official-logo,
html[data-theme="malam"]
body .lk-legal-nav-logo,
html[data-theme="malam"]
body .lk-footer-official-logo img {
  opacity: 1 !important;

  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 8px 15px
      rgba(0, 0, 0, .2)
    )
    brightness(1.06)
    contrast(1.12)
    saturate(1.06) !important;
}

@media (hover: hover) and (pointer: fine) {
  body .lk-about-hero:hover
  .lk-page-official-symbol,
  body .lk-join-hero:hover
  .lk-page-official-symbol,
  body .lk-legal-hero:hover
  .lk-legal-official-logo {
    transform:
      translate3d(0, -3px, 0)
      scale(1.025) !important;
  }
}

@media (max-width: 640px) {
  body .lk-page-official-symbol {
    width: 68px !important;
    height: 76px !important;
    max-width: min(68px, 68vw) !important;

    padding: 8px !important;

    border-radius: 18px !important;
  }

  body .lk-about-knight
  .lk-page-official-symbol {
    width: 76px !important;
    height: 84px !important;
    max-width: min(76px, 68vw) !important;
  }

  body .lk-legal-emblem {
    width: 112px !important;
    height: 112px !important;

    padding: 10px !important;
  }

  body .lk-legal-emblem
  .lk-legal-official-logo {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .lk-page-official-symbol,
  body .lk-legal-official-logo {
    transition-duration:
      0.01ms !important;
  }

  body .lk-about-hero:hover
  .lk-page-official-symbol,
  body .lk-join-hero:hover
  .lk-page-official-symbol,
  body .lk-legal-hero:hover
  .lk-legal-official-logo {
    transform: none !important;
  }
}

/* OFFICIAL LOGO CASCADE FIX 3A-2C-1C END */

/* OFFICIAL BRANDING CLEANUP 3A-2C-1D START */

/*
 * Logo kecil pada kartu naratif.
 * Ukurannya sengaja dibatasi agar tidak menutup judul.
 */
body .lk-page-official-symbol--compact {
  box-sizing: content-box !important;

  display: block !important;
  flex: 0 0 auto !important;

  width: 42px !important;
  height: 48px !important;
  max-width: 42px !important;
  max-height: 48px !important;

  padding: 6px !important;
  margin: 0 !important;

  border:
    1px solid
    rgba(218, 179, 111, .56) !important;
  border-radius: 13px !important;

  background:
    linear-gradient(
      145deg,
      #fffef9 0%,
      #f6eee1 100%
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .94),
    0 8px 18px
    rgba(42, 22, 17, .14) !important;

  object-fit: contain !important;
  object-position: center !important;

  opacity: 1 !important;

  transform: none !important;
  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 4px 8px
      rgba(58, 34, 27, .14)
    )
    contrast(1.1)
    saturate(1.04) !important;
}

/*
 * Bersihkan identitas ganda pada footer.
 * Logo resmi tetap di atas; nama platform berada rapi di tengah.
 */
body .lk-footer-brand {
  align-items: center !important;
  text-align: center !important;
}

body .lk-footer-brand > * {
  margin-inline:
    auto !important;
}

body .lk-footer-brand > div {
  width: 100% !important;

  justify-content:
    center !important;
  align-items:
    center !important;

  text-align:
    center !important;
}

body .lk-footer-brand h1,
body .lk-footer-brand h2,
body .lk-footer-brand h3,
body .lk-footer-brand strong,
body .lk-footer-brand b {
  width: 100% !important;
  margin-inline:
    auto !important;

  text-align:
    center !important;
}

body .lk-footer-brand p {
  margin-inline:
    auto !important;

  text-align:
    center !important;
}

body .lk-footer-knight {
  display: none !important;
}

body .lk-footer-official-logo {
  margin-inline:
    auto !important;
}

@media (hover: hover) and (pointer: fine) {
  body .lk-page-official-symbol--compact:hover {
    transform:
      translate3d(0, -2px, 0)
      scale(1.02) !important;
  }
}

@media (max-width: 640px) {
  body .lk-page-official-symbol--compact {
    width: 36px !important;
    height: 41px !important;
    max-width: 36px !important;
    max-height: 41px !important;

    padding: 5px !important;

    border-radius: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .lk-page-official-symbol--compact {
    transition-duration:
      0.01ms !important;
  }

  body .lk-page-official-symbol--compact:hover {
    transform: none !important;
  }
}

/* OFFICIAL BRANDING CLEANUP 3A-2C-1D END */

/* REMOVE FOOTER PSEUDO KNIGHT 3A-2C-1E START */

/*
 * Ikon kuda kecil di sebelah LANGKAH KUDA bukan elemen HTML,
 * melainkan pseudo-element dari stylesheet footer lama.
 * Hapus hanya pseudo-element identitas lama tersebut.
 */
body .lk-footer-brand .lk-footer-logo::before,
body .lk-footer-brand .lk-footer-logo::after {
  display: none !important;
  content: none !important;

  width: 0 !important;
  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/*
 * Nama platform berdiri sendiri dan diratakan tepat di tengah
 * di bawah logo resmi.
 */
body .lk-footer-brand .lk-footer-logo {
  display: flex !important;

  width: 100% !important;
  max-width: 100% !important;

  min-height: 0 !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 0 !important;

  margin:
    8px auto 16px !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  text-align: center !important;
  text-indent: 0 !important;

  transform: none !important;
}

body .lk-footer-brand .lk-footer-logo:hover,
body .lk-footer-brand .lk-footer-logo:focus-visible {
  transform: none !important;
}

/* Pengaman tambahan terhadap selector lama berbasis brand. */
body .lk-footer-brand-name::before,
body .lk-footer-brand-name::after,
body .lk-footer-wordmark::before,
body .lk-footer-wordmark::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 640px) {
  body .lk-footer-brand .lk-footer-logo {
    margin:
      6px auto 14px !important;
  }
}

/* REMOVE FOOTER PSEUDO KNIGHT 3A-2C-1E END */

/* OFFICIAL MARK SYSTEM 3A-2C-2 START */

.lk-official-mark {
  box-sizing: border-box !important;

  display: inline-block !important;
  vertical-align: middle !important;

  width: 46px !important;
  height: 52px !important;
  max-width: 100% !important;
  max-height: 100% !important;

  padding: 5px !important;
  margin: 0 !important;

  overflow: hidden !important;

  border:
    1px solid
    rgba(218, 179, 111, .58) !important;
  border-radius: 13px !important;

  background:
    linear-gradient(
      145deg,
      #fffef9 0%,
      #f6eee1 100%
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .94),
    0 8px 18px
    rgba(42, 22, 17, .14) !important;

  object-fit: contain !important;
  object-position: center !important;

  opacity: 1 !important;
  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 4px 8px
      rgba(58, 34, 27, .14)
    )
    contrast(1.1)
    saturate(1.04) !important;

  transform: none !important;

  transition:
    transform 320ms
      cubic-bezier(.22, 1, .36, 1),
    box-shadow 280ms ease !important;
}

.lk-official-mark--public {
  width: 48px !important;
  height: 54px !important;
}

.lk-official-mark--account {
  width: 44px !important;
  height: 50px !important;
}

.lk-official-mark--writer {
  width: 50px !important;
  height: 56px !important;
}

.lk-official-mark--legal {
  width: 31px !important;
  height: 35px !important;

  padding: 4px !important;

  border-radius: 10px !important;
}

html[data-theme="malam"]
.lk-official-mark {
  opacity: 1 !important;
  mix-blend-mode: normal !important;

  filter:
    drop-shadow(
      0 6px 11px
      rgba(0, 0, 0, .2)
    )
    contrast(1.1)
    saturate(1.05) !important;
}

@media (hover: hover) and (pointer: fine) {
  .lk-official-mark:hover {
    transform:
      translate3d(0, -2px, 0)
      scale(1.025) !important;

    box-shadow:
      inset 0 1px 0
      rgba(255, 255, 255, .96),
      0 12px 24px
      rgba(42, 22, 17, .19) !important;
  }
}

@media (max-width: 640px) {
  .lk-official-mark {
    width: 39px !important;
    height: 44px !important;

    padding: 4px !important;

    border-radius: 11px !important;
  }

  .lk-official-mark--writer {
    width: 43px !important;
    height: 48px !important;
  }

  .lk-official-mark--legal {
    width: 28px !important;
    height: 31px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-official-mark {
    transition-duration:
      0.01ms !important;
  }

  .lk-official-mark:hover {
    transform: none !important;
  }
}

/* OFFICIAL MARK SYSTEM 3A-2C-2 END */

/* P4C-B2 FINAL DARK LOGO + ABOUT CONTRAST */

/*
 * Masthead official logo:
 * physical QA approved on dark navy masthead.
 * Light mode remains untouched.
 */
html[data-theme="malam"]
.mast-brand.brand-v2.lk-official-brand img {
  filter:
    brightness(2.45)
    saturate(1.15)
    contrast(1.12)
    drop-shadow(0 2px 7px rgba(255, 245, 225, .18));
  opacity: 1;
}

/*
 * About page:
 * preserve the current dark palette while restoring readable contrast.
 */
html[data-theme="malam"] .lk-about-page h1,
html[data-theme="malam"] .lk-about-page h2,
html[data-theme="malam"] .lk-about-page h3,
html[data-theme="malam"] .lk-about-page h4,
html[data-theme="malam"] .lk-about-page [class*="title"],
html[data-theme="malam"] .lk-about-page [class*="heading"],
html[data-theme="malam"] .lk-about-page [class*="subtitle"] {
  color: #f6e8d1 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

html[data-theme="malam"] .lk-about-page p,
html[data-theme="malam"] .lk-about-page li,
html[data-theme="malam"] .lk-about-page .lead {
  color: #d8bf9a !important;
}

html[data-theme="malam"] .lk-about-page [class*="eyebrow"],
html[data-theme="malam"] .lk-about-page [class*="kicker"] {
  color: #d89b4a !important;
  letter-spacing: .08em;
}

/* END P4C-B2 FINAL DARK LOGO + ABOUT CONTRAST */

