/* Survivors Tips — V2 shared shell, 30svh hero and full-screen fixed backdrop. */
body.wik-v2[data-page="tips-survivor-guide"] .backdrop {
  background-image: url("../assets/tips/survivors/survivors-tips-bg.webp");
  background-position: center top;
  background-size: cover;
}
body.survivor-guide-page .resource-guide-main { margin-top: 0; padding-bottom: 0.75rem; }
body.survivor-guide-page .sg-panel { margin-top: 1.1rem; }
body.survivor-guide-page .sg-panel:first-child { margin-top: 0; }
.sg-cover { display:block; position:relative; overflow:hidden; width:100%; aspect-ratio:2/1; border-radius:0.92rem; background:linear-gradient(135deg,#3c3025,#191919); }
.sg-cover-image { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.sg-cover-image.is-missing { display:none; }
.sg-heading { margin:0.9rem 0 0.5rem; font-size:1rem; font-weight:600; line-height:1.4; color:var(--wik-text-primary,#f2f2f2); }
.sg-body, .sg-note { margin:0.55rem 0 0; color:rgba(242,242,242,.9); font-size:.8125rem; line-height:1.72; overflow-wrap:anywhere; }
.sg-subheading { margin:1rem 0 0.45rem; font-size:.875rem; font-weight:600; color:var(--wik-text-primary,#f2f2f2); line-height:1.45; }
.sg-table { width:100%; border-collapse:collapse; table-layout:fixed; margin-top:.85rem; color:#f2f2f2; }
.sg-table th, .sg-table td { min-width:0; padding:.58rem .28rem; border-bottom:1px solid rgba(255,255,255,.15); text-align:left; vertical-align:top; font-size:.75rem; font-weight:400; line-height:1.53; overflow-wrap:anywhere; }
.sg-table thead th { color:#e6c47d; font-size:.7rem; font-weight:600; }
.sg-table tbody th { font-weight:600; }
.sg-source-table th:first-child { width:43%; }
.sg-special-table th:first-child { width:28%; }
.sg-special-table th:nth-child(2) { width:35%; }
.sg-special-table .sg-special-max-value { color:#f3d27a; font-weight:700; font-variant-numeric:tabular-nums; }
.sg-minor-table th:first-child { width:30%; }
.sg-minor-table th:nth-child(2) { width:29%; }
.sg-persons { display:flex; flex-wrap:wrap; width:100%; margin:.75rem -.2rem .35rem; }
.sg-person { flex:0 0 33.333%; min-width:0; padding:.25rem .2rem .5rem; text-align:center; }
.sg-person-img { display:block; width:clamp(3rem,15vw,4.35rem); height:clamp(3rem,15vw,4.35rem); margin:0 auto .32rem; border:2px solid #916bb8; border-radius:50%; background:rgba(59,36,80,.72); object-fit:cover; }
.sg-person-name, .sg-person-facility, .sg-person-badge { display:block; max-width:100%; overflow-wrap:anywhere; line-height:1.35; }
.sg-person-name { font-size:.75rem; font-weight:600; }
.sg-person-facility { margin-top:.15rem; color:rgba(242,242,242,.76); font-size:.66rem; }
.sg-person-badge { margin-top:.2rem; color:#e7ce91; font-size:.61rem; }
/* Facility and SSR star are independent inputs; UR thresholds use actual star-by-star bonuses. */
.sg-switch-picker { margin-top:0.95rem; }
.sg-picker-field { min-width:0; }
.sg-picker-label { display:block; margin-bottom:0.38rem; color:rgba(242,242,242,.84); font-size:.8rem; font-weight:600; line-height:1.45; }
.sg-facility-select { display:block; width:100%; min-width:0; min-height:2.7rem; padding:.58rem .7rem; border:1px solid rgba(255,255,255,.25); border-radius:.7rem; background:#191b1a; color:#f2f2f2; font-family:inherit; font-size:.85rem; line-height:1.45; }
.sg-facility-select option { color:#f2f2f2; background:#191b1a; }
.sg-facility-select:focus-visible { outline:2px solid #f3d27a; outline-offset:2px; }
.sg-star-fieldset { min-width:0; margin:.82rem 0 0; padding:0; border:0; }
.sg-star-fieldset legend { padding:0; }
.sg-star-buttons { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; overflow:hidden; border:1px solid rgba(255,255,255,.25); border-radius:.7rem; background:rgba(7,11,11,.3); }
.sg-star-button { display:block; min-width:0; min-height:2.65rem; margin:0; padding:.6rem 0; border:0; border-right:1px solid rgba(255,255,255,.14); background:transparent; color:#f2f2f2; font-family:inherit; font-size:.83rem; font-weight:600; line-height:1.3; white-space:nowrap; cursor:pointer; touch-action:manipulation; }
.sg-star-button:last-child { border-right:0; }
.sg-star-button.is-active { background:rgba(220,174,85,.18); color:#f3d27a; box-shadow:inset 0 -2px 0 #e6c47d; }
.sg-star-button:focus-visible { outline:2px solid #f3d27a; outline-offset:-2px; }
.sg-result-heading { margin-top:1.15rem; }
.sg-switch-results { display:flex; flex-direction:column; min-width:0; margin-top:.5rem; }
.sg-swap-card { flex:1 1 0; min-width:0; padding:.8rem .75rem; border:1px solid rgba(255,255,255,.18); border-radius:.95rem; background:rgba(8,12,12,.30); }
.sg-swap-card + .sg-swap-card { margin-top:.7rem; }
.sg-swap-ssr { display:block; color:rgba(242,242,242,.87); font-size:.79rem; line-height:1.55; font-weight:600; }
.sg-swap-level { display:flex; flex-wrap:nowrap; align-items:center; min-width:0; margin-top:.25rem; }
.sg-swap-target { display:block; min-width:0; color:#f3d27a; font-size:clamp(1.08rem,4.6vw,1.34rem); line-height:1.4; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sg-mini-progress { display:inline-flex; flex:0 0 52px; align-items:center; width:52px; height:8px; margin-left:.75rem; white-space:nowrap; }
.sg-mini-block { display:block; flex:0 0 8px; width:8px; height:8px; border-radius:2px; background:#404945; }
.sg-mini-block + .sg-mini-block { margin-left:3px; }
.sg-mini-block.is-filled { background:#d1ac65; }
.sg-swap-hint { margin:.14rem 0 0; color:rgba(242,242,242,.72); font-size:.7rem; line-height:1.5; }
.sg-swap-metric { margin-top:.65rem; padding-top:.58rem; border-top:1px solid rgba(255,255,255,.13); min-width:0; }
.sg-swap-metric-name { display:block; color:rgba(242,242,242,.84); font-size:.72rem; line-height:1.45; }
.sg-swap-metric-base { display:flex; flex-wrap:wrap; align-items:baseline; min-width:0; margin-top:.25rem; }
.sg-metric-ssr, .sg-metric-ur0 { display:inline-block; margin:0 .58rem .12rem 0; color:rgba(242,242,242,.75); font-size:.72rem; line-height:1.45; font-variant-numeric:tabular-nums; }
.sg-swap-metric-goal { display:flex; flex-wrap:wrap; align-items:baseline; min-width:0; margin-top:.18rem; line-height:1.45; }
.sg-reached-label { display:inline-block; margin-right:.5rem; color:rgba(242,242,242,.7); font-size:.71rem; }
.sg-metric-goal-value { color:#f3d27a; font-size:.86rem; font-weight:600; font-variant-numeric:tabular-nums; }
.sg-matrix-heading { margin-top:1.2rem; }
.sg-matrix-scroll { width:100%; min-width:0; overflow:hidden; margin-top:.45rem; }
.sg-matrix-table { width:100%; border-collapse:collapse; table-layout:fixed; color:#f2f2f2; }
.sg-matrix-table th, .sg-matrix-table td { min-width:0; padding:.6rem .25rem; border-bottom:1px solid rgba(255,255,255,.16); text-align:left; vertical-align:middle; font-size:.75rem; font-weight:400; line-height:1.45; overflow-wrap:anywhere; word-break:normal; }
.sg-matrix-table thead th { color:#e6c47d; font-size:.7rem; font-weight:600; }
.sg-matrix-table th:first-child { width:26%; }
.sg-matrix-table.sg-matrix-has-special th:first-child { width:20%; }
.sg-matrix-table tbody th { font-weight:600; white-space:nowrap; }
.sg-matrix-table td { font-variant-numeric:tabular-nums; }
.sg-matrix-table tbody tr.is-selected { background:rgba(220,174,85,.11); }
.sg-matrix-table th[hidden], .sg-matrix-table td[hidden] { display:none; }
.sg-related-link { display:inline-block; margin-top:1rem; padding-bottom:.15rem; border-bottom:1px solid rgba(214,170,79,.65); color:#f3d27a; font-size:.8125rem; text-decoration:none; line-height:1.5; }
.sg-related-link:focus-visible { outline:2px solid #f3d27a; outline-offset:3px; }
@media (min-width:45rem) {
  .sg-person { flex-basis:20%; }
  .sg-heading { font-size:1.05rem; }
  .sg-switch-results { flex-direction:row; margin-left:-.35rem; margin-right:-.35rem; }
  .sg-swap-card, .sg-swap-card + .sg-swap-card { margin:0 .35rem; }
  .sg-matrix-table th, .sg-matrix-table td { padding:.75rem .58rem; font-size:.82rem; }
  .sg-matrix-table thead th { font-size:.75rem; }
}
@media (max-width:23rem) {
  .sg-person-name { font-size:.7rem; }
  .sg-swap-card { padding:.72rem .63rem; }
  .sg-star-button { font-size:.78rem; }
  .sg-matrix-table th, .sg-matrix-table td { padding:.5rem .15rem; font-size:.69rem; }
  .sg-matrix-table thead th { font-size:.64rem; }
}
