/* Portal multi-tools (/ dan /kategori/pdf). Dimuat setelah style.css; hanya kelas .portal-*. */
.portal-page { background: #f8fafc; }
.portal-main { padding: 20px 0 48px; }
.portal-intro { padding: 4px 0 18px; }
.portal-intro h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.2; letter-spacing: -.01em; color: #0f172a; }
.portal-intro .lead { margin: 0; font-size: 1rem; color: #475569; max-width: 60ch; }

.portal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.portal-family { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; color: #0f172a; text-decoration: none; min-width: 0; }
a.portal-family:hover { border-color: #2563eb; text-decoration: none; }
a.portal-family:focus-visible, a.portal-tool:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.portal-family h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.portal-family p { margin: 0; font-size: .8125rem; line-height: 1.45; color: #475569; }
.portal-family .portal-go { position: absolute; top: 14px; right: 14px; color: #2563eb; }
.portal-family.is-soon { background: transparent; border-style: dashed; }
.portal-family.is-soon .portal-ic { background: #f1f5f9; color: #64748b; }
.portal-family.is-soon h2 { color: #334155; }
.portal-status { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 600; color: #64748b; }

.portal-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #eff6ff; color: #1d4ed8; display: inline-flex; align-items: center; justify-content: center; }
.portal-body { min-width: 0; }

.portal-section { margin-top: 32px; }
.portal-section-first { margin-top: 0; }
.portal-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.portal-section-head h2 { margin: 0; font-size: 1.125rem; font-weight: 800; color: #0f172a; }
.portal-section-head a { font-size: .875rem; font-weight: 600; color: #2563eb; }

.portal-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.portal-tools-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-tool { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; color: #0f172a; text-decoration: none; min-width: 0; min-height: 44px; }
.portal-tool:hover { border-color: #2563eb; text-decoration: none; }
.portal-tool h2, .portal-tool h3 { margin: 0 0 2px; font-size: .9375rem; font-weight: 700; color: #0f172a; }
.portal-tool p { margin: 0; font-size: .8125rem; line-height: 1.4; color: #475569; }
.portal-tool-lg { padding: 16px; padding-right: 44px; }
.portal-tool-lg h2 { font-size: 1.0625rem; }
.portal-tool-lg .portal-go { position: absolute; top: 16px; right: 16px; color: #2563eb; }

.portal-notes { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.portal-notes h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.portal-notes ul { margin: 0; padding-left: 1.1em; font-size: .875rem; line-height: 1.6; color: #475569; }

/* Beranda: pencarian dan pintasan mendahului direktori lintas keluarga. */
.portal-hero-search { margin-top: 14px; }
.portal-popular { align-items: center; font-size: .8125rem; color: #475569; gap: 4px 8px; }
.portal-popular a, .portal-page .cat-card .chip-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 6px; color: #1d4ed8; background: #fff; }
.portal-popular a:focus-visible, .portal-page .cat-card a:focus-visible, .portal-page .home-tool-card:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.portal-page .home-tool-card { margin: 0; min-width: 0; align-items: flex-start; }
.portal-page .home-tool-card .tool-body { min-width: 0; }
.portal-page .home-tool-card h3 { margin: 0 0 4px; font-size: 1rem; }
.portal-page .home-tool-card p { margin: 0; font-size: .875rem; color: #475569; }
.portal-page .info-callout { margin-top: 28px; }
.portal-page .info-callout p { margin: 0; }

@media (max-width: 1023px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .portal-main { padding-top: 12px; }
  .portal-intro { padding-bottom: 12px; }
  .portal-grid { grid-template-columns: 1fr; gap: 8px; }
  .portal-family { flex-direction: row; align-items: flex-start; padding: 12px 14px; }
  .portal-family .portal-go { top: 14px; right: 14px; }
  .portal-family { padding-right: 40px; }
  .portal-family.is-soon { padding-right: 14px; }
  .portal-family p { font-size: .8125rem; }
  .portal-tools, .portal-tools-lg { grid-template-columns: 1fr; }
  .portal-ic { width: 36px; height: 36px; }
}
