/* Pencarian, pengumuman beranda, dan pembaca dokumen pelayanan. */
.site-refresh #header > .container-fluid { gap: 16px; }
.site-refresh #header .navbar { margin-left: auto; }
.header-search { position: relative; flex-shrink: 0; }
.header-search-toggle { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); transition: background .2s, color .2s; }
.header-search-toggle:hover, .header-search.is-open .header-search-toggle { background: var(--labkes-gold); color: var(--labkes-navy); border-color: var(--labkes-gold); }
.header-search-panel { position: absolute; z-index: 1000; top: calc(100% + 16px); right: 0; width: 390px; max-width: calc(100vw - 32px); padding: 22px; border: 1px solid var(--labkes-line); border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(7,62,77,.22); opacity: 0; transform: translateY(-8px) scale(.94); transform-origin: top right; transition: opacity .18s ease, transform .18s ease; }
.header-search.is-open .header-search-panel { opacity: 1; transform: none; }
.header-search-panel[hidden] { display: none; }
.header-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.header-search-heading label { color: var(--labkes-navy); font-weight: 750; font-size: 17px; }
.header-search-heading button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--labkes-soft); color: var(--labkes-navy); }
.header-search-panel > p { margin: 12px 0 0; font-size: 13px; color: var(--labkes-muted); }
.search-form { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 760px; padding: 7px; border: 1px solid var(--labkes-line); border-radius: 16px; background: #fff; color: var(--labkes-teal); }
.search-form > i { margin-left: 14px; font-size: 20px; }
.search-form input { min-width: 0; flex: 1; width: 100%; padding: 12px 8px; border: 0; border-radius: 9px; color: var(--labkes-ink); background: transparent; font-size: 16px; }
.search-form input::placeholder { color: #677d82; }
.search-form button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 46px; padding: 10px 17px; border: 0; border-radius: 11px; background: var(--labkes-teal); color: #fff; font-weight: 700; }
.search-form button:hover { background: var(--labkes-navy); }
.site-refresh > .home-hero .home-hero-sidebar { display: grid; gap: 16px; }
.home-announcement { max-width: 620px; padding: 23px 26px; border: 1px solid rgba(244,181,31,.4); border-radius: 24px; background: rgba(4,48,59,.78); backdrop-filter: blur(14px); }
.home-announcement-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.home-announcement-heading > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--labkes-gold); background: rgba(244,181,31,.12); }
.home-announcement h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 700; }
.site-refresh > .home-hero .home-announcement p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
/* Keep the hero tall enough for administrator-written announcements. */
.site-refresh > .home-hero:has(.home-announcement) .info { position: relative; padding-bottom: 130px; }
.site-refresh > .home-hero:has(.home-announcement) > .carousel { position: absolute; inset: 0; height: 100%; }
.site-refresh > .home-hero:has(.home-announcement) > .carousel .carousel-item { height: 100%; }
.search-page .breadcrumbs h1, .sop-page .breadcrumbs h1 { max-width: 950px; margin: 0 0 22px; color: #fff; font-size: clamp(2.4rem,5vw,4rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.search-summary { margin-bottom: 28px; }
.search-summary h2 { color: var(--labkes-navy); font-size: clamp(1.4rem,3vw,2rem); overflow-wrap: anywhere; }
.search-summary p { color: var(--labkes-muted); }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.search-result { padding: 26px; border: 1px solid var(--labkes-line); border-radius: 22px; background: #fff; }
.search-category { display: block; margin-bottom: 10px; color: var(--labkes-teal); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.search-result h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.35; }
.search-result h3 a { display: flex; align-items: start; justify-content: space-between; gap: 15px; color: var(--labkes-navy); overflow-wrap: anywhere; }
.search-result h3 a:hover { color: var(--labkes-teal); }
.search-result p { margin: 0; color: var(--labkes-muted); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.search-empty { padding: 35px 0; max-width: 760px; margin: auto; text-align: center; }
.search-empty > i { display: block; margin-bottom: 24px; color: var(--labkes-teal); font-size: 40px; }
.search-empty h2 { color: var(--labkes-navy); font-size: clamp(1.5rem,3vw,2rem); overflow-wrap: anywhere; }
.search-empty p { color: var(--labkes-muted); line-height: 1.7; }
.search-suggestions, .search-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.search-suggestions a, .search-pagination a { display: inline-flex; gap: 10px; padding: 12px 18px; border: 1px solid var(--labkes-line); border-radius: 30px; color: var(--labkes-teal); font-weight: 650; }
.search-pagination span { color: var(--labkes-muted); font-size: 14px; }
.document-reader { overflow: hidden; border: 1px solid var(--labkes-line); border-radius: 24px; background: #fff; }
.document-reader-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; }
.document-reader-heading h2 { margin: 0; color: var(--labkes-navy); font-size: 23px; overflow-wrap: anywhere; }
.document-download { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; padding: 13px 20px; border-radius: 14px; background: var(--labkes-teal); color: #fff; font-weight: 700; }
.document-download:hover { background: var(--labkes-navy); color: #fff; }
.document-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--labkes-soft); border-block: 1px solid var(--labkes-line); }
.document-toolbar > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.document-toolbar button, .document-toolbar a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--labkes-line); border-radius: 10px; background: #fff; color: var(--labkes-navy); }
.document-toolbar button:disabled { opacity: .35; cursor: default; }
.document-toolbar input { width: 62px; padding: 8px; border: 1px solid var(--labkes-line); border-radius: 8px; color: var(--labkes-ink); background: #fff; }
.document-status { margin: 0; padding: 12px 20px; color: var(--labkes-muted); font-size: 13px; }
.document-canvas-wrap { overflow: auto; max-height: 80vh; min-height: 160px; padding: 20px; background: #e5edec; }
.document-canvas-wrap canvas { display: block; max-width: none; margin-inline: auto; background: #fff; box-shadow: 0 3px 16px rgba(7,62,77,.15); }
.document-canvas-wrap canvas[hidden] { display: none; }
.document-text { padding: 18px 24px; border-top: 1px solid var(--labkes-line); }
.document-text summary { color: var(--labkes-teal); font-weight: 650; cursor: pointer; }
.document-text div { margin-top: 14px; max-height: 350px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.document-fallback { margin: 0; padding: 14px 24px; color: var(--labkes-muted); font-size: 13px; }
@media (max-width: 1279px) {
  .site-refresh #header .header-search { order: 2; margin-left: auto; }
  .site-refresh #header .mobile-nav-toggle { order: 3; margin-left: 0; }
  .site-refresh #header .header-search-panel { right: -52px; }
  .site-refresh.mobile-nav-active .header-search { visibility: hidden; }
}
@media (max-width: 767px) {
  .search-results { grid-template-columns: 1fr; }
  .search-result { padding: 22px; }
  .document-reader-heading { align-items: flex-start; flex-direction: column; padding: 22px; }
  .document-toolbar { justify-content: center; padding: 12px 8px; }
  .home-announcement { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-search-panel, .header-search-toggle { transition: none; }
}
.home-live-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 24px 0 0; }
.home-live-metrics > div { display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid #d6e7e4; border-radius: 18px; background: #f3faf8; min-width: 0; }
.home-live-metrics dt { font-size: .88rem; color: #486561; font-weight: 500; }
.home-live-metrics dd { order: -1; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; color: #087c71; margin: 0 0 6px; overflow-wrap: anywhere; }
.home-survey-results { padding: 24px; min-width: 0; }
.home-survey-results h3, .home-survey-material h3 { font-size: 1.15rem; }
.home-survey-results > p { color: #526c68; }
.home-survey-posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)); justify-content: center; gap: 24px; margin-top: 24px; }
.home-survey-material { padding: 20px; border-radius: 20px; border: 1px solid #d6e7e4; background: #fff; min-width: 0; }
.home-survey-material .home-survey-poster { width: 100%; margin-bottom: 18px; }
.site-refresh .home-page .home-survey-material .home-survey-poster img { max-height: 420px; object-fit: contain; }
.site-refresh .home-page .home-survey-material .home-survey-poster { margin-bottom: 18px; }
.public-document-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 220px; background: #edf7f5; color: #087c71; }
.public-document-placeholder > i { font-size: 3rem; }
.public-document-image { display: block; max-width: 100%; height: auto; margin: 24px auto; }
@media (max-width: 575px) { .home-survey-results { padding: 16px 0; } .home-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .home-live-metrics > div { padding: 14px; } }
.tariff-availability { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .8rem; font-weight: 650; background: #e6f5ec; color: #176139; white-space: nowrap; }
.tariff-availability.is-unavailable { background: #fff1df; color: #865017; }
.tarifTable input:disabled { cursor: not-allowed; opacity: .4; }
.tarifTable tr:target, .facility-card:target { outline: 3px solid #e7b247; outline-offset: -3px; scroll-margin-top: 120px; }
.service-next-section { padding: 24px 0 56px; }
.service-next-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border: 1px solid #d5e9e5; border-radius: 24px; background: #edf7f4; }
.service-next-card h2 { margin: 8px 0 12px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.service-next-card p { margin: 0; color: #526b67; }
.service-next-card .service-primary-button { flex-shrink: 0; margin: 0; }
.service-next-card { position: relative; overflow: hidden; border-top: 4px solid #08736e; background: linear-gradient(125deg, #edf7f4, #f8fbff); }
.service-next-icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 20px; color: #08736e; background: #d6eee7; font-size: 28px; }
.service-next-copy { flex: 1; min-width: 0; }
.service-next-action { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 38%; }
.service-next-action small { color: #526b67; font-size: 12px; }
.site-refresh .service-next-action .service-primary-button { justify-content: center; min-height: 54px; max-width: 100%; padding: 15px 22px; border-radius: 14px; text-align: center; overflow-wrap: anywhere; transition: background .2s, transform .2s; }
.service-next-action .service-primary-button:focus-visible { outline: 3px solid #124777; outline-offset: 4px; }
@media (max-width: 991px) { .service-next-icon { display: none; } }
@media (max-width: 767px) { .service-next-action { width: 100%; max-width: 100%; } .site-refresh .service-next-action .service-primary-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .site-refresh .service-next-action .service-primary-button { transition: none; transform: none; } }
@media (max-width: 767px) { .service-next-card { align-items: flex-start; flex-direction: column; padding: 24px; } .service-next-card .service-primary-button { max-width: 100%; white-space: normal; } }
