/* Widget samping "Ringkasan Konsep". Hanya dipasang di dalam halaman mock, tidak di hub. */
.hubw {
  --hub-tx: 0%;
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 300;
  width: 300px;
  max-width: calc(100vw - 48px);
  transform: translate(var(--hub-tx), -50%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: #f4efe6;
  will-change: transform;
}
.hubw.is-closed {
  --hub-tx: 100%;
}
.hubw__card { transition: box-shadow 0.4s; }
.hubw.is-closed .hubw__card { box-shadow: none; }

.hubw__card {
  background: linear-gradient(160deg, #15231d 0%, #0b1310 100%);
  border: 1px solid rgba(184, 105, 58, 0.45);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: -18px 24px 60px rgba(0, 0, 0, 0.45);
  padding: 20px 0 16px;
  max-height: min(78vh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 105, 58, 0.5) transparent;
}

.hubw__tab {
  position: absolute;
  top: 50%;
  left: -38px;
  width: 38px;
  height: 76px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: #b8693a;
  color: #0b1310;
  border: 0;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: -8px 10px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.25s;
}
.hubw__tab:hover,
.hubw__tab:focus-visible {
  background: #d58450;
  outline: none;
}
.hubw__tab span {
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hubw.is-closed .hubw__tab span {
  transform: rotate(180deg);
}

.hubw__head {
  padding: 0 20px;
}
.hubw__eyebrow {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d58450;
}
.hubw__title {
  margin: 4px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
  color: #f4efe6;
}
.hubw__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 20px 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #b8693a;
  color: #0b1310;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.hubw__back:hover,
.hubw__back:focus-visible {
  background: #d58450;
  transform: translateY(-1px);
  outline: none;
}

.hubw__group {
  padding: 12px 20px 0;
}
.hubw__group h5 {
  margin: 0 0 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}
.hubw__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.hubw__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(244, 239, 230, 0.9);
}
.hubw__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b8693a;
  box-shadow: 0 0 0 3px rgba(184, 105, 58, 0.2);
}
.hubw__list--no li {
  color: rgba(244, 239, 230, 0.62);
}
.hubw__list--no li::before {
  background: transparent;
  border: 1.5px solid rgba(244, 239, 230, 0.4);
  box-shadow: none;
}
.hubw__note {
  margin: 14px 20px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(244, 239, 230, 0.5);
}

@media (max-width: 820px) {
  .hubw {
    top: auto;
    bottom: 16px;
    right: 0;
    width: min(84vw, 290px);
    transform: translateX(var(--hub-tx));
  }
  .hubw__card {
    max-height: 62vh;
    padding: 16px 0 12px;
  }
  .hubw__tab {
    top: auto;
    bottom: 16px;
    transform: none;
    height: 64px;
  }
  .hubw__title {
    font-size: 1.3rem;
  }
  .hubw__list li {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hubw,
  .hubw__tab span {
    transition: none;
  }
}
