/* Sapa 40+ — komponen bersama (dimuat terakhir di setiap halaman publik). */
:root { --brand: #2455bd; --brand-dark: #194495; --brand-soft: #edf3fb; --ink: #14213d; --muted: #4f5e74; --line: #d8e0ea; --ok: #1f7a4d; --ok-soft: #e7f5ee; --warm: #fff7e8; }
html.big-text { font-size: 112%; }
body.sapa-front, body.sapa-directory, body.sapa-app:not(:has(.sidebar)) { font-size: 17px; line-height: 1.6; color: var(--ink); }
.sapa-front, .sapa-directory, .sapa-app { --violet: var(--brand); }

/* Header & footer seragam */
.sapa-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.sapa-nav { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.sapa-mark { font-size: 25px; letter-spacing: -.045em; font-weight: 750; color: var(--ink); white-space: nowrap; }
.sapa-mark strong { color: var(--brand); }
.sapa-nav nav { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.sapa-nav nav a { color: var(--ink); font-weight: 550; padding: 6px 0; }
.sapa-nav nav a[aria-current] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.sapa-account { display: flex; align-items: center; gap: 10px; }
.sapa-login, .sapa-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--brand); border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; }
.sapa-login { color: var(--brand); background: #fff; }
.sapa-button { background: var(--brand); color: #fff; }
.sapa-button:hover { background: var(--brand-dark); }
.sapa-button.ghost { background: #fff; color: var(--brand); }
.sapa-button.big { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; }
.sapa-user { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.sapa-user [data-user-name] { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sapa-logout { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer; }
.sapa-footer-wrap { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.sapa-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px; color: var(--muted); font-size: .95rem; border: 0; }
.sapa-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.sapa-footer a { color: var(--ink); }

/* Kartu talenta */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.t-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.t-card:hover { border-color: #9fb6e2; box-shadow: 0 8px 24px #14213d14; transform: translateY(-2px); }
.t-card-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.t-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e4ebf8; color: var(--brand); display: grid; place-items: center; font-weight: 750; font-size: 1.2rem; }
.t-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.t-role { margin: 2px 0 0; color: var(--brand); font-weight: 650; }
.t-exp { margin: 0; color: var(--muted); font-size: .95rem; }
.t-exp strong { color: var(--ink); font-size: 1.05rem; }
.t-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.t-skills li { background: var(--brand-soft); color: #23427f; border-radius: 999px; padding: 3px 11px; font-size: .88rem; }
.t-card-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.t-card-foot .t-rate { margin-inline-start: auto; color: var(--ink); font-weight: 650; }
.t-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.t-video-tag { color: #8a3b00; background: var(--warm); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 650; }
.t-empty { padding: 26px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }

/* Direktori */
.dir-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.dir-head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.dir-head p { margin: 4px 0 0; color: var(--muted); }
.dir-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 14px; }
.dir-search input { min-height: 50px; font-size: 1.05rem; padding-inline: 14px; border: 1px solid #b9c6da; border-radius: 9px; }
.dir-filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.dir-filters summary { padding: 13px 16px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.dir-filters summary::after { content: "▾"; color: var(--muted); }
.dir-filters[open] summary::after { content: "▴"; }
.dir-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; padding: 0 16px 16px; align-items: end; }
.dir-filter-grid label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.dir-filter-grid select { min-height: 46px; }
.dir-category { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dir-category button { border: 1px solid #b7c8e8; background: #fff; color: var(--brand); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 650; cursor: pointer; min-height: 42px; }
.dir-category button[aria-pressed=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
.dir-count { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
@media (min-width: 900px) { .dir-filters summary { display: none; } .dir-filters { padding-top: 16px; } }

/* Beranda */
.home-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: 44px 30px; }
.home-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.home-hero h1 em { font-style: normal; color: var(--brand); }
.home-hero p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 0 24px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero figure { margin: 0; position: relative; }
.home-hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; display: block; }
.home-hero figcaption { position: absolute; bottom: 8px; right: 9px; padding: 2px 6px; background: #fff; border-radius: 4px; font-size: .75rem; }
.home-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 10px 34px; }
.home-role { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.home-role h2 { margin: 0; font-size: 1.3rem; }
.home-role p { margin: 0 0 8px; color: var(--muted); }
.home-role .sapa-button { align-self: flex-start; margin-top: auto; }
.home-section { margin-block: 34px; }
.home-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 16px; }
.home-section-head h2 { margin: 0; font-size: 1.5rem; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.home-steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; counter-increment: step; }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 750; margin-bottom: 10px; }
.home-steps strong { display: block; margin-bottom: 4px; }
.home-steps span { color: var(--muted); }
.home-story { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 24px; }
.home-story blockquote { margin: 10px 0; font-size: 1.08rem; max-width: 72ch; }
.home-story p { margin: 0; color: var(--muted); }

/* Halaman profil */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; padding-block: 26px 10px; }
.pf-back { display: inline-block; margin-top: 20px; color: var(--brand); font-weight: 600; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.pf-card + .pf-card { margin-top: 18px; }
.pf-card h2 { font-size: 1.2rem; margin: 0 0 12px; }
.pf-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.pf-head .t-avatar { width: 112px; height: 112px; font-size: 2rem; }
.pf-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; }
.pf-head .t-role { font-size: 1.15rem; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.pf-facts div { background: #f6f8fb; border-radius: 10px; padding: 12px; }
.pf-facts dt { font-size: .85rem; color: var(--muted); }
.pf-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.pf-bio { white-space: pre-line; margin: 0; }
.pf-video { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #0b1730; }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pf-link { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pf-link img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.pf-link small { color: var(--muted); font-weight: 400; }
.pf-aside { position: sticky; top: 88px; }
.pf-aside .pf-card { display: flex; flex-direction: column; gap: 12px; }
.pf-aside dl { margin: 0; display: grid; gap: 8px; }
.pf-aside dl div { display: flex; justify-content: space-between; gap: 12px; }
.pf-aside dt { color: var(--muted); }
.pf-aside dd { margin: 0; font-weight: 650; text-align: right; }
.pf-aside .sapa-button { width: 100%; }
.pf-note { font-size: .9rem; color: var(--muted); margin: 0; }
.pf-status { min-height: 1.4em; margin: 0; font-size: .92rem; }
.pf-mobile-cta { display: none; }

/* Formulir: masuk, daftar, wizard */
.auth-wrap { max-width: 460px; margin: 36px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.auth-card > p { color: var(--muted); margin: 0 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef2f8; padding: 5px; border-radius: 10px; margin-bottom: 20px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 10px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #14213d22; }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .wz label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
.auth-form input, .wz input:not([type=checkbox]):not([type=file]), .wz select, .wz textarea { min-height: 48px; font-size: 1rem; padding: 10px 12px; border: 1px solid #b9c6da; border-radius: 9px; }
.auth-form .sapa-button { width: 100%; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border: 1px solid #b9c6da; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 650; }
.google-btn:hover { background: #f6f8fb; }
.google-btn svg { width: 20px; height: 20px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-status { min-height: 1.4em; margin: 0; font-weight: 600; }
.form-status.error { color: #b42318; }
.form-status.ok { color: var(--ok); }
.show-pass { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.wz-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.wz-progress li { border-top: 5px solid var(--line); padding-top: 8px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.wz-progress li[data-state=done], .wz-progress li[data-state=current] { border-color: var(--brand); color: var(--ink); }
.wz-step { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wz-step legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; padding: 0; }
.wz-step .wide { grid-column: 1/-1; }
.wz-step small { font-weight: 400; color: var(--muted); }
.wz-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 22px; }
.wz-community { grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wz-community > p { grid-column: 1/-1; margin: 0; color: var(--muted); }
.off-page { padding-block: 60px; text-align: center; }

@media (max-width: 900px) {
  .pf { grid-template-columns: minmax(0, 1fr); }
  .pf-aside { position: static; }
  .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-mobile-cta { display: block; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; z-index: 15; }
  .pf-mobile-cta .sapa-button { width: 100%; }
  .dir-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .sapa-nav { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .sapa-nav nav { order: 3; flex-basis: 100%; margin: 0; gap: 16px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .sapa-account { margin-inline-start: auto; }
  .sapa-join { display: none !important; }
  .sapa-user [data-user-name] { display: none; }
  .home-hero, .home-roles, .home-steps { grid-template-columns: minmax(0, 1fr); }
  .home-hero { padding-block: 24px; }
  .home-hero figure { order: -1; }
  .pf-head { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .pf-head .t-avatar { width: 80px; height: 80px; font-size: 1.5rem; }
  .pf-card { padding: 18px; }
  .wz-step, .wz-community { grid-template-columns: minmax(0, 1fr); }
  .dir-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .t-grid { grid-template-columns: minmax(0, 1fr); }
}
.mt { margin-top: 20px; }
/* Admin: tombol fitur & notifikasi */
.feature-switches { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature-switches legend { font-weight: 700; padding: 0 6px; }
.feature-switches > p { grid-column: 1/-1; margin: 0; }
.admin-form label.switch { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; }
.switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.switch span { display: grid; }
.switch small { color: var(--muted); font-weight: 400; }
.notify-panel { margin-top: 18px; }
.notify-panel h3 { margin: 0; }
@media (max-width: 740px) { .feature-switches { grid-template-columns: minmax(0, 1fr); } }
.pf-facts div { display: block; }
.pf-facts dd { text-align: left; }
.pf-head .kind { display: inline-block; width: auto; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; }
.pf-card h2.mt { margin-top: 22px; }
.pf-aside dl div { border: 0; padding: 0; }
.wz-step { align-items: start; } .wz label, .auth-form label { align-content: start; }
.show-pass[hidden], .wz-community[hidden] { display: none !important; }
@media (max-width: 740px) { #featured-talents .t-card:nth-child(n+4) { display: none; } }
