/* Perizinan Dasar (perizinan-dasar.html) — extends tokens/components from
   styles.css. No new colors/fonts/radius are introduced. */

/* ===== Serif hero title — this page's intro isn't wrapped by a two-column
   .hero, so its own h1 sizing/italic-gold treatment lives here instead of
   the shared .hero h1 rule. ===== */
.dasar-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 24px;
}

.dasar-hero-title em {
  font-style: italic;
  color: var(--gold);
}

/* ===== Shell + subtabs — same segmented-control pattern as Rekomendasi
   KBLI's subtabs. ===== */
.dasar-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

.subtabs {
  display: flex;
  width: fit-content;
  margin: 0 0 40px;
  border: 1px solid rgba(28, 36, 51, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
}

.subtab-btn {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 150ms ease, color 150ms ease;
}

.subtab-btn + .subtab-btn {
  border-left: 1px solid rgba(28, 36, 51, 0.25);
}

.subtab-btn:hover {
  background: rgba(28, 36, 51, 0.05);
}

.subtab-btn[aria-selected="true"] {
  background: var(--navy);
  color: var(--ivory);
  font-weight: 600;
}

.subtab-btn[aria-selected="true"]:hover {
  background: var(--navy);
}

/* ===== Per-tab 2-column grid ===== */
.dasar-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.dasar-left h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 18px;
}

.dasar-paragraph {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 36px;
}

.dasar-paragraph a,
.dasar-card-desc a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  transition: color 150ms ease;
}

.dasar-paragraph a:hover,
.dasar-card-desc a:hover {
  color: var(--navy);
  text-decoration: none;
}

.dasar-jenis-eyebrow {
  display: block;
  margin-bottom: 18px;
}

.dasar-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dasar-card {
  background: #fdfcf9;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.dasar-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.dasar-card-tag {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.dasar-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.dasar-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== Right column: navy guide panel (per-tab content) ===== */
.dasar-right {
  align-self: start;
}

.dasar-guide-panel {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 38px;
}

.dasar-guide-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.dasar-guide-panel h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ivory);
  margin: 0 0 16px;
}

.dasar-guide-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.72);
  margin: 0 0 28px;
}

.dasar-guide-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 13px 26px;
  cursor: default;
}

.dasar-guide-divider {
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  margin: 28px 0 20px;
}

.dasar-guide-footer {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.6);
  margin: 0;
}

.dasar-guide-footer em {
  font-style: italic;
  color: var(--gold-light);
}

/* ===== FAQ accordion — same pattern as infografis-akun-oss.html's FAQ
   (hairline borders, serif question, +/x icon), constrained to a
   comfortable reading width rather than the full grid row. ===== */
.dasar-faq {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.dasar-faq-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 28px;
}

.dasar-faq-list {
  border-top: 1px solid var(--hairline);
}

.dasar-faq-item {
  border-bottom: 1px solid var(--hairline);
}

.dasar-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
}

.dasar-faq-question-icon {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  transition: transform 150ms ease;
}

.dasar-faq-question[aria-expanded="true"] .dasar-faq-question-icon {
  transform: rotate(45deg);
}

.dasar-faq-answer {
  overflow: hidden;
  max-height: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .dasar-faq-answer {
    transition: max-height 250ms ease;
  }
}

.dasar-faq-answer-inner {
  padding: 0 4px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .dasar-grid {
    grid-template-columns: 1fr;
  }
}

/* Below 640px three segmented labels ("Persetujuan Lingkungan" is long)
   no longer fit on one non-shrinking row — let the control fill the width
   and share it evenly instead of overflowing past the viewport edge. */
@media (max-width: 640px) {
  .subtabs {
    width: 100%;
  }

  .subtab-btn {
    flex: 1 1 0;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
  }
}
