/* HS2 – gruppe-/kjedeside (skjerm 54 + T/D). Mobil først. */

/* ---------- Kjedehode ---------- */
.gruppe-head { background: var(--hs-soft); border-bottom: 1px solid var(--hs-border); }
.gruppe-head .inner { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; padding-bottom: 20px; }
.gruppe-head .identity { display: flex; align-items: center; gap: 14px; }
.gruppe-head .names { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gruppe-head .hs2-h1 { font-size: 26px; }
.gruppe-head .sub { font-size: 13px; color: var(--hs-muted); line-height: 1.4; }
.gruppe-head .stats { display: flex; gap: 8px; }
.gruppe-head .stat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--hs-border); text-align: center; }
.gruppe-head .stat .v { font-size: 19px; font-weight: 700; color: var(--hs-navy); line-height: 1.2; }
.gruppe-head .stat .l { font-size: 11px; color: var(--hs-muted); }
.gruppe-head .find { width: 100%; }
@media (min-width: 768px) {
  .gruppe-head .inner { padding-top: 34px; padding-bottom: 28px; gap: 18px; }
  .gruppe-head .identity { gap: 20px; }
  .gruppe-head .logo-box { width: 128px; height: 64px; border-radius: 12px; }
  .gruppe-head .hs2-h1 { font-size: 32px; }
  .gruppe-head .stats { gap: 14px; }
  .gruppe-head .stat { flex: 0 1 220px; align-items: flex-start; text-align: left; padding: 12px 16px; }
  .gruppe-head .find { width: auto; align-self: flex-start; }
}
@media (min-width: 1200px) {
  .gruppe-head .inner { padding-top: 44px; padding-bottom: 36px; gap: 22px; }
  .gruppe-head .hs2-h1 { font-size: 36px; }
  .gruppe-head .head-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .gruppe-head .find { min-height: 51px; padding: 16px 24px; }
}

/* ---------- Avdelingsliste ---------- */
.gruppe-body { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; padding-bottom: 8px; }
.dept-groups { display: flex; flex-direction: column; gap: 18px; padding-left: 0; padding-right: 0; }
.place-group { display: flex; flex-direction: column; gap: 10px; }
.place-head { display: flex; align-items: center; gap: 8px; }
.place-head .ic { color: var(--hs-navy); }
.place-head h2 { font-size: 16px; font-weight: 700; color: var(--hs-navy); }
.place-head .line { flex: 1; height: 1px; background: var(--hs-border); }
.place-head .n { font-size: 12px; font-weight: 600; color: var(--hs-muted); }
.dept-row .row-main { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.dept-row .info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
.dept-row .info:hover { text-decoration: none; }
.dept-row .info:hover .name { text-decoration: underline; }
.dept-row .logo-box { width: 72px; height: 36px; }
.dept-row .logo-box .placeholder { font-size: 14px; }
.dept-row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dept-row .name { font-size: 14px; font-weight: 600; color: var(--hs-navy); line-height: 1.3; }
.dept-row .addr { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.dept-row .addr .ic { margin-top: 2px; color: var(--hs-muted); }
.dept-row .kart-toggle { display: inline-flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9px; background: var(--hs-soft); color: var(--hs-navy); }
.dept-row .kart-toggle[aria-pressed="true"] { background: var(--hs-navy); color: #fff; }
.dept-row .chev { display: inline-flex; flex: none; color: var(--hs-border-strong); }
.dept-row .gmap { display: none; position: relative; height: 160px; background: linear-gradient(140deg, #E3EDF1, #CFE2EA) center / cover no-repeat; border-top: 1px solid var(--hs-border); }
.dept-row .gmap .ctl { position: absolute; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: var(--hs-navy); box-shadow: 0 1px 3px rgba(0,36,56,.2); }
.dept-row .gmap .btn-fullscreen { top: 8px; right: 8px; }
.dept-row .gmap .btn-pluss { bottom: 48px; right: 8px; }
.dept-row .gmap .btn-minus { bottom: 8px; right: 8px; }
.show-more { min-height: 38px; padding: 10px 14px; font-size: 13px; }
@media (min-width: 768px) {
  .gruppe-body { padding-top: 30px; }
  .dept-row .gmap { height: 220px; }
  .dept-row .logo-box { width: 84px; height: 42px; }
}
@media (min-width: 1200px) {
  .gruppe-body { padding-top: 36px; }
  .dept-row .row-main { padding: 14px 18px; }
  .dept-row .name { font-size: 15px; }
}

/* ---------- Tips oss ---------- */
.tips { margin-top: 8px; padding-left: var(--hs-gutter); padding-right: var(--hs-gutter); }
.tips .btn { width: 100%; }
@media (min-width: 768px) {
  .tips { border: 1px solid var(--hs-border); border-radius: 16px; padding: 24px 20px; }
  .tips .btn { width: auto; }
}
