/**
 * Panduan Knowledge Base — Kampus Lite static template styles
 */

.panduan-body {
  margin: 0;
  background: #f6f7f9;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.panduan-body *,
.panduan-body *::before,
.panduan-body *::after {
  box-sizing: border-box;
}

.panduan-page {
  --pd-brand-100: #ffecec;
  --pd-brand-200: #ffd2d2;
  --pd-brand-300: #fba7a8;
  --pd-brand-400: #f4585b;
  --pd-brand-500: #ed2427;
  --pd-brand-600: #d01b1e;
  --pd-brand-700: #a81417;
  --pd-surface: #fff;
  --pd-surface-2: #f6f7f9;
  --pd-border: #e5e7eb;
  --pd-text: #1f2937;
  --pd-text-strong: #111827;
  --pd-text-sub: #6b7280;
  --pd-text-disabled: #9ca3af;
  --pd-radius: 12px;
  --pd-radius-lg: 16px;
  --pd-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --pd-max: 1200px;
  background: var(--pd-surface-2);
  color: var(--pd-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: calc(100vh - 120px);
}

/* Header — Pusat Bantuan (mockup) */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.pd-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pd-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.pd-nav__brand:hover {
  color: inherit;
}

.pd-nav__brand img {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.pd-nav__divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  display: block;
  flex-shrink: 0;
}

.pd-nav__label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pd-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pd-nav__external {
  font-size: 12px;
  font-weight: 500;
  color: var(--pd-text-strong);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}

.pd-nav__external:hover {
  color: var(--pd-brand-500);
}

.pd-nav__external .pd-icon {
  color: inherit;
}

.pd-nav-search {
  position: relative;
  width: 380px;
  max-width: 42vw;
}

.pd-nav-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  display: flex;
}

.pd-nav-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #ffd2d2;
  border-radius: 100px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  background: #ffecec;
  color: #111827;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.pd-nav-search input:focus {
  box-shadow: 0 0 0 3px rgba(237, 36, 39, 0.12);
  border-color: #fba7a8;
}

.pd-nav-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  overflow: hidden;
  z-index: 120;
  max-height: 320px;
  overflow-y: auto;
}

.pd-nav-search__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
}

.pd-nav-search__item:last-child {
  border-bottom: none;
}

.pd-nav-search__item:hover {
  background: #ffecec;
  color: inherit;
}

.pd-nav-search__role {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ed2427;
}

.pd-nav-search__title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.pd-nav-search__empty {
  padding: 14px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Footer mockup */
.pd-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 28px 32px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.pd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pd-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-footer__brand img {
  height: 26px;
  width: auto;
  display: block;
}

.pd-footer__divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  display: block;
}

.pd-footer__label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.pd-footer__copy {
  font-size: 12px;
  color: #6b7280;
}

.panduan-page a {
  color: var(--pd-brand-500);
  text-decoration: none;
}

.panduan-page a:hover {
  color: var(--pd-brand-600);
}

.pd-wrap {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 0 32px;
}

.pd-icon {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
  overflow: visible;
  color: inherit;
}

.pd-icon--download {
  stroke-width: 2;
}

/* Breadcrumb */
.pd-crumbs {
  background: var(--pd-surface);
  border-bottom: 1px solid var(--pd-border);
}

.pd-crumbs__inner {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pd-text-sub);
  overflow: auto;
  white-space: nowrap;
}

.pd-crumbs__inner a {
  color: var(--pd-text-sub);
}

.pd-crumbs__inner a:hover {
  color: var(--pd-brand-500);
}

.pd-crumbs__sep {
  color: var(--pd-text-disabled);
}

.pd-crumbs__current {
  color: var(--pd-text-strong);
  font-weight: 600;
}

/* Hero */
.pd-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 32px 68px;
  background-color: var(--pd-brand-600);
  background-image:
    linear-gradient(90deg, rgba(120, 10, 14, 0.55) 0%, rgba(120, 10, 14, 0.28) 55%, rgba(120, 10, 14, 0.45) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 35%);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.pd-hero__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.pd-hero__eyebrow {
  display: inline-block;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.pd-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pd-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 30px;
  line-height: 1.6;
  max-width: 560px;
}

.pd-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.pd-search input {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  padding: 0 18px 0 46px;
  font-size: 15px;
  color: var(--pd-text-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  outline: none;
}

.pd-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pd-text-sub);
  pointer-events: none;
}

.pd-search input:focus {
  box-shadow: 0 0 0 3px rgba(237, 36, 39, 0.25), 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Sections */
.pd-section {
  padding: 44px 0 0;
}

.pd-section--last {
  padding-bottom: 64px;
}

.pd-section__head {
  margin-bottom: 18px;
}

.pd-section__head h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}

.pd-section__head p {
  font-size: 14px;
  color: var(--pd-text-sub);
  margin: 0;
}

.pd-section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pd-section__head-row .pd-section__head {
  margin-bottom: 0;
}

.pd-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  color: var(--pd-brand-500);
  text-decoration: none;
}

.panduan-page a.pd-link-more {
  color: var(--pd-brand-500);
}

.panduan-page a.pd-link-more:hover {
  color: var(--pd-brand-600);
}

.panduan-page a.pd-link-more .pd-icon {
  color: inherit;
}

.pd-role-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--pd-border);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Cards / grids */
.pd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pd-role-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px 20px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-role-card:hover {
  border-color: var(--pd-brand-400);
  box-shadow: var(--pd-shadow);
}

.pd-role-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pd-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--pd-brand-100);
  color: var(--pd-brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-icon-box--sm {
  width: 34px;
  height: 34px;
}

.pd-icon-box--md {
  width: 40px;
  height: 40px;
}

.pd-icon-box--lg {
  width: 52px;
  height: 52px;
  border-radius: var(--pd-radius);
}

.pd-role-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 3px;
}

.pd-role-card__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-brand-500);
  margin: 0;
}

.pd-role-card__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.panduan-page a.pd-role-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--pd-text-strong);
  line-height: 1.45;
}

.panduan-page a.pd-role-card__item:hover {
  color: var(--pd-brand-500);
}

.pd-role-card__item span:last-child {
  opacity: 1;
  display: flex;
  color: #383838;
}

.pd-role-card__item .pd-icon {
  color: inherit;
}

.panduan-page a.pd-pdf-btn,
.panduan-page a.pd-pdf-icon,
.panduan-page .pd-doc-row a,
.panduan-page .pd-side-doc__links a,
.panduan-page a.pd-nav__external {
  color: #383838;
}

.panduan-page a.pd-pdf-btn:hover,
.panduan-page a.pd-pdf-icon:hover,
.panduan-page .pd-doc-row a:hover,
.panduan-page .pd-side-doc__links a:hover,
.panduan-page a.pd-nav__external:hover {
  color: var(--pd-brand-500);
}

.panduan-page a.pd-pdf-btn .pd-icon,
.panduan-page a.pd-pdf-icon .pd-icon,
.panduan-page .pd-doc-row a .pd-icon,
.panduan-page .pd-side-doc__links a .pd-icon,
.panduan-page a.pd-nav__external .pd-icon,
.panduan-page a.pd-popular .pd-icon,
.panduan-page a.pd-guide-row .pd-icon,
.panduan-page a.pd-topic .pd-icon,
.panduan-page .pd-related a .pd-icon,
.panduan-page .pd-article__foot a .pd-icon {
  color: inherit;
}

.panduan-page a.pd-popular,
.panduan-page a.pd-guide-row,
.panduan-page a.pd-topic,
.panduan-page .pd-related a,
.panduan-page .pd-article__foot a,
.panduan-page .pd-pager a {
  color: var(--pd-text-strong);
}

.panduan-page a.pd-popular:hover,
.panduan-page a.pd-guide-row:hover,
.panduan-page a.pd-topic:hover,
.panduan-page .pd-related a:hover,
.panduan-page .pd-article__foot a:hover,
.panduan-page .pd-pager a:hover {
  color: var(--pd-brand-500);
}

.pd-popular__aside,
.pd-guide-row__aside,
.pd-hit__aside {
  color: inherit;
}

.pd-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #383838;
  border: 1px solid var(--pd-border);
  border-radius: 6px;
  padding: 4px 8px;
}

.pd-pdf-btn:hover {
  color: var(--pd-brand-500);
  border-color: var(--pd-brand-400);
}

.pd-pdf-icon {
  display: inline-flex;
  align-items: center;
  color: #383838;
  border: 1px solid var(--pd-border);
  border-radius: 6px;
  padding: 4px 6px;
}

.pd-pdf-icon:hover {
  color: var(--pd-brand-500);
  border-color: var(--pd-brand-400);
}

/* Guide hit / popular card */
.pd-hit,
.pd-popular {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-hit:hover,
.pd-popular:hover {
  border-color: var(--pd-brand-400);
  box-shadow: var(--pd-shadow);
  color: inherit;
}

.pd-hit__meta,
.pd-popular__meta {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pd-brand-500);
  margin: 0 0 5px;
}

.pd-popular__meta {
  display: inline-block;
  background: var(--pd-brand-100);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.pd-hit__title,
.pd-popular__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-text-strong);
  margin: 0 0 4px;
  line-height: 1.4;
}

.pd-hit__desc,
.pd-popular__desc {
  font-size: 12.5px;
  color: var(--pd-text-sub);
  margin: 0;
  line-height: 1.5;
}

.pd-hit__aside,
.pd-popular__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
  color: inherit;
}

.pd-hit__time,
.pd-popular__time {
  font-size: 11px;
  color: var(--pd-text-sub);
  white-space: nowrap;
}

.pd-search-results {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.pd-search-results.is-open {
  display: flex;
}

.pd-search-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pd-search-bar h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--pd-text-strong);
}

.pd-search-bar span {
  font-size: 13px;
  color: var(--pd-text-sub);
}

/* Topic cards */
.pd-topic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 20px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-topic:hover {
  border-color: var(--pd-brand-400);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
  color: inherit;
}

.pd-topic__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pd-topic__num {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--pd-text-disabled);
}

.pd-topic__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 4px;
  line-height: 1.35;
}

.pd-topic__desc {
  font-size: 12.5px;
  color: var(--pd-text-sub);
  margin: 0;
  line-height: 1.5;
}

.pd-topic__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--pd-border);
}

.pd-topic__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-brand-500);
}

/* Video cards */
.pd-video {
  display: flex;
  flex-direction: column;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-video:hover {
  border-color: var(--pd-brand-400);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
  color: inherit;
}

.pd-video__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pd-brand-700) 0%, var(--pd-brand-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pd-video__play {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pd-brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-video__dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 7px;
  border-radius: 4px;
}

.pd-video__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pd-video__tag {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pd-brand-500);
}

.pd-video__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pd-text-strong);
  margin: 0;
  line-height: 1.4;
}

/* Role listing header */
.pd-role-head {
  background: var(--pd-surface);
  border-bottom: 1px solid var(--pd-border);
  padding: 28px 32px;
}

.pd-role-head__inner {
  max-width: var(--pd-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-role-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 4px;
}

.pd-role-head p {
  font-size: 14px;
  color: var(--pd-text-sub);
  margin: 0;
}

.pd-role-head__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.pd-mode {
  display: flex;
  gap: 6px;
}

.pd-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pd-brand-300);
  background: transparent;
  color: var(--pd-brand-600);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.pd-pill.is-active,
.pd-pill:hover {
  background: var(--pd-brand-100);
  color: var(--pd-brand-700);
  border-color: var(--pd-brand-300);
}

.pd-doc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pd-doc-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--pd-text);
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 6px 11px;
  white-space: nowrap;
}

.pd-doc-row a:hover {
  color: var(--pd-brand-500);
  border-color: var(--pd-brand-400);
}

/* Layout listing / detail */
.pd-layout {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.pd-layout--detail {
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.pd-aside {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-side-card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
}

.pd-side-card__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pd-border);
}

.pd-side-card__head p {
  font-size: 12px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0;
}

.pd-side-card__body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.panduan-page a.pd-nav-item {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 0;
  border: none;
  border-left: 2.5px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  color: var(--pd-text);
  border-radius: 0 8px 8px 0;
  min-width: 0;
}

.panduan-page a.pd-nav-item:hover {
  background: var(--pd-surface-2);
  color: var(--pd-text);
}

.panduan-page a.pd-nav-item.is-active {
  border-left-color: var(--pd-brand-500);
  background: var(--pd-brand-100);
  color: var(--pd-brand-500);
}

.pd-nav-item__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pd-text-strong);
  overflow-wrap: break-word;
}

.panduan-page a.pd-nav-item.is-active .pd-nav-item__label {
  font-weight: 600;
  color: var(--pd-brand-500);
}

.pd-nav-item__count {
  flex: 0 0 auto;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--pd-text-sub);
  white-space: nowrap;
}

.panduan-page a.pd-nav-item.is-active .pd-nav-item__count {
  color: var(--pd-brand-500);
}

.pd-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-list-toolbar p {
  font-size: 13px;
  color: var(--pd-text-sub);
  margin: 0;
}

.pd-guide-row {
  display: block;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 20px 24px;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  margin-bottom: 8px;
}

.pd-guide-row:hover {
  border-color: var(--pd-brand-400);
  box-shadow: var(--pd-shadow);
  color: inherit;
}

.pd-guide-row__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pd-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pd-tag {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pd-brand-500);
  background: var(--pd-brand-100);
  padding: 2px 7px;
  border-radius: 4px;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.pd-badge--new {
  background: #e0f2fe;
  color: #0369a1;
}

.pd-badge--popular {
  background: var(--pd-brand-100);
  color: var(--pd-brand-700);
}

.pd-guide-row h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--pd-text-strong);
  margin: 0 0 6px;
  line-height: 1.4;
}

.pd-guide-row__desc {
  font-size: 13px;
  color: var(--pd-text-sub);
  margin: 0 0 8px;
  line-height: 1.55;
}

.pd-guide-row__menu {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--pd-text-disabled);
  margin: 0;
}

.pd-guide-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  color: inherit;
}

/* Detail article */
.pd-article {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 20px;
  overflow: hidden;
}

.pd-article__header {
  padding: 32px 40px 28px;
  border-bottom: 1px solid var(--pd-border);
}

.pd-article__header h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pd-article__header > p {
  font-size: 16px;
  color: var(--pd-text-sub);
  margin: 0 0 20px;
  line-height: 1.6;
  max-width: 640px;
}

.pd-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--pd-text-sub);
}

.pd-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pd-meta-row .pd-menu-path {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
}

.pd-intro {
  margin: 28px 40px 0;
  background: var(--pd-brand-100);
  border: 1px solid var(--pd-brand-200);
  border-radius: var(--pd-radius-lg);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}

.pd-intro p {
  font-size: 13.5px;
  color: var(--pd-brand-700);
  margin: 0;
  line-height: 1.6;
}

.pd-steps {
  padding: 28px 40px 40px;
}

.pd-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding-bottom: 32px;
  scroll-margin-top: 120px;
}

.pd-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pd-step__num {
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: var(--pd-brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.pd-step__line {
  flex: 1;
  width: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  min-height: 20px;
}

.pd-step__body {
  min-width: 0;
  padding-top: 5px;
}

.pd-step__body > p {
  font-size: 14.5px;
  color: var(--pd-text);
  margin: 0;
  line-height: 1.65;
}

.pd-step__body > p strong,
.pd-step__body > p b {
  font-weight: 600;
  color: var(--pd-text-strong);
}

.pd-step__body > p code {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.92em;
  background: var(--pd-surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.pd-figure {
  margin: 14px 0 0;
}

.pd-figure__frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f9fafb;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pd-figure__placeholder {
  text-align: center;
  color: var(--pd-text-disabled);
  font-size: 13px;
  padding: 20px;
  line-height: 1.45;
}

.pd-figure figcaption {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--pd-text-sub);
  margin-top: 8px;
}

.pd-article__foot {
  border-top: 1px solid var(--pd-border);
  padding: 22px 40px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--pd-text-sub);
}

.pd-article__foot p {
  margin: 0;
}

.pd-article__foot a {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-toc a {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pd-text);
  background: transparent;
}

.pd-toc a:hover {
  background: var(--pd-surface-2);
  color: inherit;
}

.pd-toc a.is-active {
  color: var(--pd-brand-500);
  font-weight: 600;
  background: var(--pd-brand-100);
}

.pd-toc__num {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  flex-shrink: 0;
  color: var(--pd-text-disabled);
  margin-top: 1px;
}

.pd-toc a.is-active .pd-toc__num {
  color: var(--pd-brand-500);
}

.pd-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pd-text);
}

.pd-related a:hover {
  background: var(--pd-surface-2);
  color: inherit;
}

.pd-related a span:last-child {
  flex-shrink: 0;
  color: inherit;
  display: flex;
}

.pd-side-doc {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 16px 18px;
}

.pd-side-doc > p:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--pd-text-strong);
  margin: 0 0 4px;
}

.pd-side-doc > p:nth-child(2) {
  font-size: 12px;
  color: var(--pd-text-sub);
  margin: 0 0 12px;
  line-height: 1.5;
}

.pd-side-doc__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-side-doc__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pd-text);
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 8px 11px;
}

.pd-side-doc__links a:hover {
  color: var(--pd-brand-500);
  border-color: var(--pd-brand-400);
}

.pd-cta-help {
  background: linear-gradient(135deg, var(--pd-brand-700) 0%, var(--pd-brand-500) 100%);
  border-radius: var(--pd-radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.pd-cta-help > * {
  position: relative;
}

.pd-cta-help p:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.pd-cta-help p:nth-child(2) {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px;
  line-height: 1.55;
}

.pd-cta-help a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-brand-700);
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.pd-cta-help a:hover {
  color: var(--pd-brand-700);
  opacity: 0.95;
}

.pd-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.pd-pager a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  color: inherit;
  transition: border-color 0.15s;
}

.pd-pager a:hover {
  border-color: var(--pd-brand-400);
  color: inherit;
}

.pd-pager a span:first-child {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-text-sub);
}

.pd-pager a span:last-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pd-text-strong);
  line-height: 1.4;
}

.pd-pager a.pd-pager--next {
  text-align: right;
  grid-column: 2;
}

.pd-pager a.pd-pager--prev {
  grid-column: 1;
}

.pd-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--pd-text-sub);
  background: var(--pd-surface);
  border: 1px dashed var(--pd-border);
  border-radius: var(--pd-radius-lg);
}

@media (max-width: 1024px) {
  .pd-wrap,
  .pd-layout,
  .pd-role-head {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pd-grid-3,
  .pd-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-layout,
  .pd-layout--detail {
    grid-template-columns: 1fr;
  }

  .pd-aside {
    position: static;
  }

  .pd-layout--detail {
    display: flex;
    flex-direction: column;
  }

  .pd-layout--detail > main {
    order: -1;
  }
}

@media (max-width: 720px) {
  .pd-nav__inner,
  .pd-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pd-nav__inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .pd-nav-search {
    width: 100%;
    max-width: none;
    order: 3;
  }

  .pd-nav__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .pd-wrap,
  .pd-layout,
  .pd-role-head {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pd-hero {
    padding: 48px 20px 44px;
  }

  .pd-hero h1 {
    font-size: 30px;
  }

  .pd-grid-3,
  .pd-grid-4,
  .pd-grid-2 {
    grid-template-columns: 1fr;
  }

  .pd-role-head__inner {
    flex-wrap: wrap;
  }

  .pd-role-head__actions {
    width: 100%;
    align-items: flex-start;
  }

  .pd-article__header,
  .pd-steps,
  .pd-intro,
  .pd-article__foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pd-article__header {
    padding-top: 24px;
  }

  .pd-article__header h1 {
    font-size: 24px;
  }

  .pd-pager {
    grid-template-columns: 1fr;
  }

  .pd-pager a.pd-pager--next,
  .pd-pager a.pd-pager--prev {
    grid-column: 1;
    text-align: left;
  }
}
