/* ==========================================================================
   RSUD SMART — Layanan Unggulan & FAQ Pasien
   ========================================================================== */
.rs-ung-page, .rs-faq-page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.rs-ung-page > *, .rs-faq-page > * { margin-block: 0; }
.rs-btn--emergency { background: linear-gradient(135deg, #E2364B, #B81F35); }
.rs-btn--emergency:hover { background: #B81F35; }

/* ---------- Navigasi layanan ---------- */
.rs-ung__nav { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: calc(-1 * clamp(4rem, 9vw, 5.5rem)); padding: .75rem; border-radius: var(--rs-r-l); background: #fff; border: 1px solid var(--rs-line); box-shadow: var(--rs-shadow); }
.rs-ung__nav a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: var(--rs-r-m); color: var(--rs-ink); font-size: .86rem; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .2s, color .2s; }
.rs-ung__nav a:hover { background: var(--rs-surface); color: var(--rs-primary); }
.rs-ung__nav .rs-icon { flex: none; width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: var(--rs-grad); color: #fff; }

/* ---------- Kartu layanan ---------- */
.rs-ung__list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.rs-ung__item { --tone: var(--rs-primary); --tone-soft: #E9ECF8; scroll-margin-top: calc(var(--rs-header-h) + 24px); border-radius: var(--rs-r-l); background: #fff; border: 1px solid var(--rs-line); box-shadow: var(--rs-shadow); overflow: hidden; }
.rs-ung__item--emergency { --tone: var(--rs-emergency); --tone-soft: #FDECEE; }
.rs-ung__item--accent { --tone: var(--rs-accent-dark); --tone-soft: #EAF6E5; }
.rs-ung__item:target { box-shadow: 0 0 0 3px var(--tone), var(--rs-shadow-lift); }
.rs-ung__head { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--rs-line); background: linear-gradient(90deg, var(--tone-soft), #fff 70%); }
.rs-ung__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tone); color: #fff; }
.rs-ung__icon .rs-icon { width: 28px; height: 28px; }
.rs-ung__label { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tone); }
.rs-ung__head h2 { margin: .15rem 0 0; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.rs-ung__num { margin-left: auto; font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(14, 26, 58, .07); }
.rs-ung__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem 2rem; padding: 1.5rem 1.6rem 1.7rem; }
.rs-ung__lead { margin: 0 0 1rem; font-size: 1.02rem; }
.rs-ung__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rs-ung__points li { position: relative; padding-left: 1.8rem; color: var(--rs-ink); font-size: .95rem; line-height: 1.55; }
.rs-ung__points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--tone-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7F4A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 70%; }
.rs-ung__alert { display: flex; gap: .75rem; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: var(--rs-r-m); background: #FDECEE; color: #7A1424; font-size: .9rem; line-height: 1.55; }
.rs-ung__alert .rs-icon { flex: none; color: var(--rs-emergency); margin-top: .1rem; }
.rs-ung__alert p { margin: 0; }
.rs-ung__side { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border-radius: var(--rs-r-m); background: var(--rs-surface); align-self: start; }
.rs-ung__aksi { margin: 0; font-weight: 700; color: var(--rs-ink); font-size: .95rem; }
.rs-ung__side .rs-btn { justify-content: center; }
.rs-ung__docs small { display: block; margin-bottom: .4rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--rs-muted); }
.rs-ung__docs ul { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .35rem; }
.rs-ung__docs li a { display: flex; align-items: center; gap: .55rem; color: var(--rs-ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.rs-ung__docs li a:hover { color: var(--rs-primary); }
.rs-ung__docs img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.rs-ung__docs .rs-link-arrow, .rs-ung__more { font-size: .88rem; }

/* ---------- FAQ ---------- */
.rs-faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.rs-faq__tools { position: relative; z-index: 2; margin-top: calc(-1 * clamp(4rem, 9vw, 5.5rem)) !important; padding: .9rem; border-radius: var(--rs-r-l); background: #fff; border: 1px solid var(--rs-line); box-shadow: var(--rs-shadow); }
.rs-faq__cats { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.rs-faq__cats a { padding: .45rem .85rem; border-radius: 999px; background: var(--rs-surface); color: var(--rs-primary); font-size: .84rem; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.rs-faq__cats a:hover { background: var(--rs-primary); color: #fff; }
.rs-faq__status { margin: .7rem .25rem 0; font-size: .85rem; font-weight: 600; color: var(--rs-muted); }
.rs-faq__content { margin-top: 2rem !important; }
.rs-faq__content > h2 { margin: 2.25rem 0 .9rem !important; font-size: clamp(1.25rem, 2.4vw, 1.5rem); scroll-margin-top: calc(var(--rs-header-h) + 24px); }
.rs-faq__content > h2:first-child { margin-top: 0 !important; }
.rs-faq__content > details { margin: 0 0 .6rem !important; border-radius: var(--rs-r-m); background: #fff; border: 1px solid var(--rs-line); transition: box-shadow .2s, border-color .2s; scroll-margin-top: calc(var(--rs-header-h) + 24px); }
.rs-faq__content > details[open] { border-color: transparent; box-shadow: var(--rs-shadow); }
.rs-faq__content > details[hidden], .rs-faq__content > h2[hidden] { display: none; }
.rs-faq__content > details > summary { position: relative; list-style: none; cursor: pointer; padding: 1rem 3.2rem 1rem 1.2rem; font-weight: 700; font-size: 1rem; line-height: 1.45; color: var(--rs-ink); }
.rs-faq__content > details > summary::-webkit-details-marker { display: none; }
.rs-faq__content > details > summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rs-surface); color: var(--rs-primary); font-size: 1.2rem; font-weight: 700; transition: transform .25s, background .2s, color .2s; }
.rs-faq__content > details[open] > summary { color: var(--rs-primary); }
.rs-faq__content > details[open] > summary::after { content: "–"; background: var(--rs-primary); color: #fff; }
.rs-faq__content > details > *:not(summary) { margin: 0 !important; padding: 0 1.2rem 1.1rem; color: var(--rs-muted); font-size: .97rem; line-height: 1.7; }
.rs-faq__aside { position: sticky; top: calc(var(--rs-header-h) + 1.5rem); display: grid; gap: 1rem; }
.rs-faq__card { padding: 1.4rem; border-radius: var(--rs-r-l); background: var(--rs-grad-navy); color: #fff; }
.rs-faq__card h3 { margin: 0 0 .5rem; color: #fff; font-size: 1.1rem; }
.rs-faq__card p { margin: 0 0 1rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.rs-faq__card a.rs-faq__line { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: var(--rs-r-m); background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 700; }
.rs-faq__card a.rs-faq__line + a.rs-faq__line { margin-top: .45rem; }
.rs-faq__card a.rs-faq__line:hover { background: rgba(255, 255, 255, .16); }
.rs-faq__card small { display: block; font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .65); }
.rs-faq__card .rs-icon { color: #A7E58F; flex: none; }

@media (max-width: 960px) {
	.rs-ung__body { grid-template-columns: 1fr; }
	.rs-faq-layout { grid-template-columns: minmax(0, 1fr); }
	.rs-faq__aside { position: static; }
}
@media (max-width: 640px) {
	.rs-ung__nav { grid-template-columns: 1fr 1fr; margin-top: calc(-1 * clamp(3rem, 9vw, 4rem)); }
	.rs-ung__nav a { font-size: .8rem; padding: .55rem; }
	.rs-ung__nav .rs-icon { width: 30px; height: 30px; padding: 6px; }
	.rs-ung__head { padding: 1.1rem; }
	.rs-ung__icon { width: 46px; height: 46px; }
	.rs-ung__num { display: none; }
	.rs-ung__body { padding: 1.1rem; }
	.rs-faq__tools { margin-top: calc(-1 * clamp(3rem, 9vw, 4rem)) !important; }
	.rs-faq__cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.9rem; padding: 0 .9rem .2rem; scrollbar-width: none; }
	.rs-faq__cats::-webkit-scrollbar { display: none; }
	.rs-faq__cats a { flex: none; }
}
.rs-faq-main, .rs-faq__tools { min-width: 0; }
