
/* Beranda · Cerita Warga. Gaya tunggal, tanpa . */
.f4g-home{scroll-margin-top:84px}
.f4g-home[hidden]{display:none}
.f4g-home-heading{display:flex;align-items:center;gap:10px;padding:4px 0 10px}
.f4g-home-heading .f4g-home-mark{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:#5145cd;color:#fff}
.f4g-home-mark svg{width:20px;height:20px}
.f4g-home-heading h3{margin:0;color:#242a45;font-size:17px;font-weight:750;line-height:1.2;letter-spacing:-.02em}
.f4g-home-heading p{margin:2px 0 0;color:#68758a;font-size:12px;line-height:1.35}
.f4g-home-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid #e3e5ef;margin-bottom:12px}
.f4g-home-options> :is(button,a){position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;border:0;border-radius:0;background:transparent;font:650 13px/1.25 system-ui;color:#697589;padding:9px 5px;cursor:pointer;text-align:center;text-decoration:none}
.f4g-home-options button[aria-pressed="true"]{color:var(--f4-portal-primary,#4f46e5)}
.f4g-home-options button[aria-pressed="true"]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--f4-portal-primary,#4f46e5)}
.f4g-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.f4g-home-card{min-width:0;border:1px solid #e3e5ef;background:#fff;box-shadow:0 2px 6px #2931500c;border-radius:var(--f4-portal-card-radius,12px);overflow:hidden;display:flex;flex-direction:column}
.f4g-home-photo{display:block;width:100%;height:175px;background:#e2e8f0;overflow:hidden}
.f4g-home-photo img{display:block;width:100%;height:100%;object-fit:cover}
.f4g-home-photo-unavailable{width:100%;height:100%;display:grid;place-items:center;padding:12px;text-align:center;color:#665b83;font:600 12px/1.4 system-ui;background:var(--f4-portal-soft,#eef2ff)}
.f4g-home-card-content{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}
.f4g-home-title{font:750 13px/1.45 system-ui;color:#28354d;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.f4g-home-info{display:flex;justify-content:space-between;align-items:center;gap:7px;font:11px system-ui;color:#818496}
.f4g-home-stats{display:flex;flex-wrap:nowrap;gap:14px;align-items:center;min-width:0;font:600 11px system-ui;color:#68728a}
.f4g-home-stat{display:inline-flex;flex:0 0 auto;gap:5px;align-items:center;white-space:nowrap;line-height:1.2;color:inherit;text-decoration:none}
.f4g-home-stat svg{display:block;flex:none;height:16px;width:16px}
.f4g-home-comment-link{cursor:pointer}
.f4g-home-comments{border-top:1px solid #e2e8f0;padding-top:7px;display:grid;gap:5px;min-height:30px}
.f4g-home-comment{font:11px/1.4 system-ui;color:#4d5468;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f4g-home-comment b{color:#32374c}
.f4g-home-empty{grid-column:1/-1;border:1px dashed var(--f4-portal-line,#c7d2fe);border-radius:13px;background:#f8fafc;padding:17px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font:12px system-ui;color:#697089}
.f4g-home-empty strong{font-size:13px;color:#3d335c}
.f4g-home-empty a{margin-left:auto;font-weight:750;color:var(--f4-portal-primary-ink,#3730a3);text-decoration:underline}
@media(max-width:760px){
 .f4g-home-options{width:100vw;margin-inline:calc(50% - 50vw);margin-bottom:0}
 .f4g-home-options> :is(button,a){font-size:12px}
 .f4g-home-grid{grid-template-columns:minmax(0,1fr);gap:0;width:100vw;margin-inline:calc(50% - 50vw);background:#fff}
 .f4g-home-card{border:0;border-bottom:1px solid #e8ebf0;border-radius:0;box-shadow:none;background:#fff;overflow:visible;padding:0 0 15px;gap:0}
 .f4g-home-photo{position:relative;order:-1;width:100%;height:auto;aspect-ratio:1/1;border-radius:0;overflow:hidden}
 .f4g-home-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center}
 .f4g-home-photo-unavailable{position:absolute;inset:0;width:100%;height:100%}
 .f4g-home-card-content{display:contents}
 .f4g-home-info{order:-2;font-size:11px;flex-wrap:wrap;padding:12px 14px;color:#566176}
 .f4g-home-info>span:first-child{font-weight:650;color:#25324a}
 .f4g-home-stats{gap:18px;font-size:13px;padding:10px 14px 7px;color:#26334b}
 .f4g-home-stat{gap:6px}
 .f4g-home-stat svg{width:23px;height:23px}
 .f4g-home-title{order:1;display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere;padding:0 14px}
 .f4g-home-comments{order:2;min-height:0;border:0;padding:5px 14px 0}
 .f4g-home-comment{white-space:normal;overflow-wrap:anywhere}
 .f4g-home-comment:only-child{color:#788397}
}
