/* Poradniki miejsc schronienia — module UI. Shared subpage tokens remain in subpages.css. */
.shelter-guides .sg-head { margin: 1.2rem 0 1.4rem; }
.shelter-guides .sg-kicker { margin: 0 0 .45rem; color: var(--ng-accent, #ffb020); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.shelter-guides h1 { max-width: 24ch; }
.shelter-guides h2 { margin-top: 1.8rem; }
.shelter-guides .lead { max-width: 78ch; }
.sg-status, .sg-warning, .sg-notice { border: 1px solid #7a5a1d; border-radius: 14px; padding: .9rem 1rem; background: #201908; color: #ffe0a3; margin: 1rem 0; }
.sg-warning { border-color: #73504a; background: #211312; color: #ffd3cc; }
.sg-notice { border-color: #2b3b57; background: #0f1a2c; color: var(--ng-text, #dce6f7); }
.sg-card-grid, .sg-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin: 1rem 0 1.6rem; }
.sg-card { padding: 1rem; }
.sg-card h3 { margin: .15rem 0 .45rem; font-size: 1.02rem; }
.sg-card p { margin: .35rem 0; }
.sg-link { display: block; color: inherit; text-decoration: none; }
.sg-link b { display: block; margin-bottom: .35rem; }
.sg-link span { color: var(--ng-muted, #8fa2c2); font-size: .9rem; }
.sg-link:hover, .sg-link:focus-visible { border-color: var(--ng-accent, #ffb020); }
.sg-category { margin: 2rem 0; }
.sg-category .sg-card h3 a { color: var(--ng-text-strong, #f5f9ff); }
.sg-article { max-width: 78ch; }
.sg-article li { margin: .45rem 0; }
.sg-sources { font-size: .88rem; color: var(--ng-muted, #8fa2c2); overflow-wrap: anywhere; }
.sg-sources a { color: #9fc0ff; }
.sg-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0; }
.sg-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: .8rem 0; }
.sg-form-grid label { display: grid; gap: .3rem; font-size: .9rem; }
.sg-form-grid input, .sg-form-grid select, .sg-form-grid textarea { width: 100%; min-height: 44px; padding: .55rem .65rem; border-radius: 10px; border: 1px solid #2b3b57; background: #0b1524; color: #e8eefc; font: inherit; }
.sg-tool { border: 1px solid #22314a; border-radius: 16px; padding: 1rem; background: #0f1a2c; margin: 1rem 0; }
.sg-result { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid #ffb020; background: #0b1524; border-radius: 8px; }
.sg-result:empty { display: none; }
.sg-checklist { list-style: none; padding: 0; margin: .7rem 0; }
.sg-checklist li { margin: .35rem 0; }
.sg-checklist label { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .55rem; border: 1px solid #22314a; border-radius: 10px; background: #0b1524; }
.sg-checklist input { width: 20px; height: 20px; margin-top: 2px; accent-color: #ffb020; flex: none; }
.sg-print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: .8rem; }
.sg-print-card { border: 1px solid #2b3b57; border-radius: 14px; padding: 1rem; background: #fff; color: #111; margin: .8rem 0; }
.sg-print-card h2 { margin: .2rem 0 .5rem; }
.sg-print-card .sg-kicker { color: #7a4d00; }
.sg-print-card .fine { color: #444; }
.sg-qr { min-height: 96px; margin: .6rem 0; }
.sg-qr svg, .sg-qr img, .sg-qr canvas { max-width: 120px; height: auto; }
.sg-scenario { border: 1px solid #22314a; border-radius: 14px; padding: 1rem; margin: 1rem 0; background: #0f1a2c; }
.sg-scenario .sg-kicker { color: #ff8a97; }
.sg-scenario button { margin: .3rem .4rem .3rem 0; }
.sg-scenario .sg-feedback { margin-top: .7rem; }
.sg-print-only { display: none; }
@media (max-width: 640px) {
  .shelter-guides h1 { font-size: 1.65rem; }
  .sg-card-grid, .sg-role-grid, .sg-print-grid { grid-template-columns: 1fr; }
  .sg-actions .ng-btn { width: 100%; }
}
@media print {
  .ngsub-topbar, .ngsub-drawer, .ngsub-bottom, .ngsub-footer, .ngsub-skip, .breadcrumbs,
  .sg-status, .sg-actions, .sg-tool, .sg-scenario, .sg-category, .sg-role-grid, .sg-warning,
  .sg-head .ng-btn, [data-sg-print], [data-sg-tts] { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .ngsub-wrap { max-width: none !important; padding: 0 !important; }
  .sg-print-card { border: 1px solid #999; break-inside: avoid; page-break-inside: avoid; color: #111 !important; background: #fff !important; }
  .sg-print-grid { display: block; }
  .sg-print-card, .sg-article { max-width: none; }
  a { color: #111 !important; text-decoration: none; }
  .sg-article h1, .sg-print-card h2 { color: #111 !important; }
}
@media (prefers-reduced-motion: reduce) { .shelter-guides * { scroll-behavior: auto !important; } }
