/* HostingRDM.com — Pusat Panduan Praktis RDM (Publik)
 * Palette: #012455 Deep Navy, #0180F1 Electric Blue, #F7FBFF Cloud White
 * Typography: Plus Jakarta Sans (holding invariant, zero monospace)
 * Readability: body >= 15px, line-height >= 1.65, high contrast
 */

:root {
  --navy-deep: #012455;
  --navy-dark: #001B3D;
  --blue-accent: #0180F1;
  --blue-accent-hover: #006AD1;
  --blue-soft: #EBF5FF;
  --bg-page: #F7FBFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F5FA;
  --border: #DCE6F2;
  --border-strong: #C2D4E8;
  --text-primary: #0B1F3A;
  --text-secondary: #425670;
  --wa-green: #16A34A;
  --wa-green-hover: #15803D;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(1, 36, 85, 0.05);
  --shadow-float: 0 14px 36px rgba(1, 36, 85, 0.18);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: clip;
}

.label-short {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.guide-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-sm {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-accent-hover);
}

.btn-secondary {
  background: var(--blue-soft);
  color: var(--navy-deep);
  border-color: #C7E1FD;
}

.btn-secondary:hover {
  background: #DCEEFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--blue-accent);
  cursor: pointer;
}

.btn-link:hover {
  color: var(--blue-accent-hover);
  text-decoration: underline;
}

/* Hero */
.hero-band {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #013270 100%);
  color: #F7FBFF;
  padding: 36px 0 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-pill {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  color: #E2F0FF;
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #D2E3F8;
  max-width: 680px;
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  margin-top: 6px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 44px 14px 46px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 17, 41, 0.18);
}

.search-input:focus {
  outline: none;
  border-color: #60B3FF;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cat-tab {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #E6F1FF;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cat-tab.active {
  background: #FFFFFF;
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

/* Guide List */
main {
  flex: 1;
}

.guide-section {
  padding: 28px 0 84px;
}

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

.guide-count {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.guide-card.open {
  border-color: #93C5FD;
}

.guide-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.guide-trigger:hover {
  background: #FAFDFE;
}

.guide-trigger-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-badge {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.cat-guru { background: #EBF5FF; color: #0058B0; }
.cat-walikelas { background: #E7F7EE; color: #0D6838; }
.cat-proktor { background: #F3EEFF; color: #5B21B6; }
.cat-support { background: #FFF5E5; color: #9A4E00; }
.cat-technical { background: #EEF2F7; color: #334155; }

.guide-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.guide-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.guide-card.open .guide-chevron {
  transform: rotate(180deg);
  color: var(--blue-accent);
}

.guide-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--bg-subtle);
}

.guide-intro {
  margin: 14px 0 12px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.guide-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-steps li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.guide-card-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: flex-end;
}

.guide-skeleton,
.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.empty-state p {
  margin: 0 0 18px;
  font-size: 0.96rem;
}

/* Footer */
.guide-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  font-size: 0.86rem;
}

/* Floating CS Widget */
.cs-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  background: var(--navy-deep);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cs-fab:hover {
  background: var(--blue-accent);
  transform: translateY(-2px);
}

.cs-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: min(400px, calc(100vw - 28px));
  max-height: min(600px, calc(100dvh - 104px));
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 65;
}

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

.cs-head {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cs-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cs-head p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #C7DCFA;
}

.cs-close {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.65;
  white-space: pre-line;
  word-wrap: break-word;
}

.cs-bubble-bot {
  align-self: flex-start;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.cs-bubble-user {
  align-self: flex-end;
  background: var(--blue-accent);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.cs-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: var(--wa-green);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.cs-wa-btn:hover {
  background: var(--wa-green-hover);
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cs-chip {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}

.cs-chip:hover {
  background: var(--blue-soft);
  border-color: #93C5FD;
}

.cs-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cs-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.cs-input:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.cs-send {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--blue-accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  cursor: pointer;
}

.cs-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 80;
  box-shadow: var(--shadow-float);
}

@media (max-width: 640px) {
  body.chat-open-mobile {
    overflow: hidden;
  }
  .container {
    padding: 0 14px;
  }
  .label-full {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .header-inner {
    min-height: 58px;
    gap: 8px;
  }
  .brand-logo {
    height: 26px;
    max-width: 150px;
    object-fit: contain;
  }
  .header-actions {
    gap: 6px;
  }
  .btn {
    font-size: 0.84rem;
    padding: 8px 11px;
    min-height: 40px;
  }
  .hero-band {
    padding: 20px 0 18px;
  }
  .hero-inner {
    gap: 10px;
  }
  .hero-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
  }
  .hero-inner h1 {
    font-size: 1.42rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .search-input {
    font-size: 1rem;
    padding: 12px 40px 12px 42px;
  }
  .search-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 4px -14px 0;
    padding: 0 14px 4px;
    gap: 8px;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .cat-tab {
    flex-shrink: 0;
    font-size: 0.84rem;
    padding: 8px 14px;
    min-height: 38px;
  }
  .guide-section {
    padding: 18px 0 96px;
  }
  .list-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }
  .guide-trigger {
    padding: 14px 15px;
    gap: 10px;
  }
  .guide-title {
    font-size: 0.98rem;
  }
  .guide-body {
    padding: 0 15px 16px;
  }
  .guide-intro,
  .guide-steps li {
    font-size: 0.95rem;
    line-height: 1.68;
  }
  .guide-steps {
    padding-left: 20px;
    gap: 8px;
  }
  .guide-card-foot {
    justify-content: flex-start;
  }
  .guide-card-foot .btn-link {
    text-align: left;
    padding: 6px 0;
    font-size: 0.9rem;
  }
  .guide-footer {
    padding: 18px 0 88px;
  }
  .cs-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .cs-panel {
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .cs-head {
    padding: 14px 16px;
  }
  .cs-close {
    width: 38px;
    height: 38px;
  }
  .cs-messages {
    padding: 12px 14px;
  }
  .cs-bubble {
    max-width: 90%;
    font-size: 0.95rem;
  }
  .cs-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
  }
  .cs-chips::-webkit-scrollbar {
    display: none;
  }
  .cs-chip {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .cs-form {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cs-input {
    font-size: 1rem;
    padding: 11px 12px;
  }
  .cs-send {
    min-height: 44px;
    padding: 0 18px;
  }
  .toast {
    width: calc(100vw - 28px);
    text-align: center;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}


/* ==================== MODUL SISTEM INFORMASI LENGKAP RDM (v3) ==================== */
.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.module-tab {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #E6F1FF;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.module-tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.module-tab.active {
  background: #FFFFFF;
  color: var(--navy-deep);
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 17, 41, 0.16);
}

.toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-light {
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
}

.search-input-light:focus {
  border-color: var(--blue-accent);
}

.category-tabs-light {
  margin-top: 0;
}

.category-tabs-light .cat-tab,
.desc-cat-tab,
.role-tab {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-tabs-light .cat-tab:hover,
.desc-cat-tab:hover,
.role-tab:hover {
  background: var(--blue-soft);
  color: var(--navy-deep);
  border-color: #C7E1FD;
}

.category-tabs-light .cat-tab.active,
.desc-cat-tab.active,
.role-tab.active {
  background: var(--navy-deep);
  color: #FFFFFF;
  border-color: var(--navy-deep);
}

.guide-card-foot {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-detail-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.guide-detail-link:hover {
  color: var(--navy-deep);
  text-decoration: underline;
}

.section-intro {
  margin-bottom: 16px;
}

.section-intro h2 {
  margin: 0 0 4px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.section-intro p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* Bank Deskripsi */
.desc-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.text-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: #FFFFFF;
}

.text-input:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.desc-count {
  margin-bottom: 14px;
}

.desc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.desc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.sub-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.desc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.desc-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  flex: 1;
}

.desc-card-foot {
  display: flex;
  justify-content: flex-end;
}

.btn-copy.copied {
  background: #E7F7EE;
  color: #0D6838;
  border-color: #86EFAC;
}

/* Alur Kerja & Regulasi */
.workflow-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--bg-subtle);
}

.workflow-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.workflow-progress-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workflow-progress-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--blue-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.workflow-card.is-done {
  background: #F4FBF7;
  border-color: #A7E3BF;
}

.workflow-check-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.workflow-checkbox {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--wa-green);
  flex-shrink: 0;
  cursor: pointer;
}

.workflow-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-phase {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.workflow-step-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.workflow-card.is-done .workflow-step-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.workflow-step-detail {
  margin: 2px 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.workflow-guide-link {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-accent);
  text-decoration: none;
}

.workflow-guide-link:hover {
  text-decoration: underline;
}

.reg-section-intro {
  margin-top: 34px;
}

.reg-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.reg-summary {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.reg-points {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg-points li {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* ==================== HALAMAN DETAIL SEO (/panduan/:slug) ==================== */
.detail-main {
  padding: 24px 0 84px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-article {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.detail-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-subtle);
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(1.38rem, 3vw, 1.85rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy-deep);
}

.detail-body {
  padding-top: 8px;
}

.detail-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-section {
  margin-top: 28px;
}

.related-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-1px);
}

.related-card h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.hosting-cta-box {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #013270 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hosting-cta-box h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.hosting-cta-box p {
  margin: 0;
  font-size: 0.94rem;
  color: #D2E3F8;
  max-width: 560px;
}

@media (max-width: 640px) {
  .module-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 6px -14px 0;
    padding: 0 14px 4px;
  }
  .module-nav::-webkit-scrollbar {
    display: none;
  }
  .module-tab {
    flex-shrink: 0;
    font-size: 0.86rem;
    padding: 9px 14px;
  }
  .toolbar-card {
    padding: 13px;
  }
  .desc-controls-grid,
  .desc-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .desc-cat-tab,
  .role-tab {
    flex-shrink: 0;
  }
  .detail-article {
    padding: 18px 16px;
  }
  .detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hosting-cta-box {
    padding: 18px 16px;
  }
  .hosting-cta-box .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==================== SEO SSR & FAQ SECTION (v4) ==================== */
.ssr-guide-link {
  color: var(--text-primary);
  text-decoration: none;
}

.ssr-guide-link:hover {
  color: var(--blue-accent);
  text-decoration: underline;
}

.ssr-guide-excerpt {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.detail-faq {
  margin-top: 26px;
}

.detail-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.detail-faq-item summary {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.detail-faq-item summary::-webkit-details-marker {
  display: none;
}

.detail-faq-item p {
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.detail-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
}

.detail-shot-link {
  display: block;
  text-decoration: none;
}

.detail-shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #F8FAFC;
}

.detail-figcaption {
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: auto;
}

.detail-step-figure {
  margin: 12px 0 8px;
  max-width: 740px;
}

.detail-step-figure .detail-shot-img {
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .detail-gallery {
    grid-template-columns: 1fr;
  }
}
