/* HS2 – behandlerprofil (skjerm 47/48 + T/D, 47N). Mobil først; 768/1200 legger arbeidssted/sammendrag i sidekolonne. */

/* ---------- Profilhode ---------- */
.behandler-head { background: #fff; }
.behandler-head .inner { display: flex; align-items: flex-start; gap: 14px; padding-top: 24px; padding-bottom: 18px; }
.behandler-head .avatar { width: 68px; height: 68px; }
.behandler-head .avatar .initials { font-size: 22px; font-weight: 700; color: var(--hs-navy); }
.behandler-head .names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.behandler-head .hs2-h1 .prefix { font-weight: 500; color: var(--hs-muted); }
.behandler-head .chips { align-items: center; }
.behandler-head .trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.behandler-head .trust .rating-row:hover { text-decoration: none; }
@media (min-width: 768px) {
  .behandler-head { background: var(--hs-soft); }
  .behandler-head .inner { align-items: center; gap: 22px; padding-top: 32px; padding-bottom: 26px; }
  .behandler-head .avatar { width: 88px; height: 88px; background: #fff; }
  .behandler-head .avatar .initials { font-size: 30px; }
  .behandler-head .names { gap: 10px; }
}
@media (min-width: 1200px) {
  .behandler-head .inner { gap: 28px; padding-top: 44px; padding-bottom: 34px; }
  .behandler-head .avatar { width: 112px; height: 112px; }
  .behandler-head .avatar .initials { font-size: 38px; }
  .behandler-head .hs2-h1 { font-size: 40px; }
}

/* ---------- Grid: mobil = én kolonne i designets rekkefølge, 768+ = to kolonner ---------- */
.behandler-body { display: flex; flex-direction: column; }
.behandler-body > .col-main, .behandler-body > .col-side { display: contents; }
.behandler-body .section { order: 50; }
.behandler-body .waittime { order: 1; }
.behandler-body .summary { order: 1; }
.behandler-body .workplaces { order: 2; }
.behandler-body .about { order: 3; }
.behandler-body .qualifications { order: 4; }
.behandler-body .reviews { order: 5; }
.behandler-body .pause-note { order: 6; }
.behandler-body--tab .workplaces { order: 7; }
.pause-note { padding: 0 var(--hs-gutter) 20px; }
@media (min-width: 768px) {
  .behandler-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 24px; align-items: start; padding-top: 26px; padding-bottom: 8px; }
  .behandler-body > .col-main { display: flex; flex-direction: column; gap: 26px; grid-column: 1; min-width: 0; }
  .behandler-body > .col-side { display: flex; flex-direction: column; gap: 16px; grid-column: 2; }
  .behandler-body > .col-main > *, .behandler-body > .col-side > * { order: 0; }
  .behandler-body .section { padding: 0; }
  .behandler-body .section-soft { border: 1px solid var(--hs-border); border-radius: 16px; padding: 24px 20px; }
  .pause-note { padding: 0; }
}
@media (min-width: 1200px) {
  .behandler-body { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; padding-top: 40px; padding-bottom: 16px; }
  .behandler-body > .col-main { gap: 32px; }
  .behandler-body > .col-side { gap: 20px; }
}

/* ---------- Ventetidkort ---------- */
/* Ingen boks rundt boksen: ventetidkortet er kortet, båndet bare gir luft. */
.waittime { padding-top: 20px; padding-bottom: 20px; }
.wait-card { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 12px; background: #fff; border: 1px solid var(--hs-border); }
.wait-card .ico { display: inline-flex; flex: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: var(--hs-wait-soon-bg); color: var(--hs-wait-soon); }
.wait-card.now .ico { background: var(--hs-wait-now-bg); color: var(--hs-success); }
.wait-card > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wait-card .value { font-size: 15px; font-weight: 700; color: var(--hs-navy); line-height: 1.3; }
.wait-card .expl { font-size: 12px; color: var(--hs-muted); line-height: 1.45; }
@media (min-width: 768px) { .waittime { padding: 0; } }

/* ---------- Arbeidssted ---------- */
.workplace { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; }
.workplace:hover { text-decoration: none; background: var(--hs-soft); }
.workplace .logo-box { width: 84px; height: 42px; }
.workplace .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.workplace .name { font-size: 15px; font-weight: 700; color: var(--hs-navy); line-height: 1.3; }
.workplace .addr { font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.workplace .chev { color: var(--hs-border-strong); }
.workplaces .hint { display: block; margin-top: 8px; }

/* ---------- Kvalifikasjoner ---------- */
.qualifications .list-row { align-items: flex-start; }
.qualifications .list-row .ic { margin-top: 2px; }

/* ---------- Vurderinger (samme mønster som klinikk.css) ---------- */
.review { display: flex; flex-direction: column; gap: 11px; padding: 15px; }
.review .top { display: flex; align-items: center; gap: 11px; }
.review .top .info { display: flex; flex-direction: column; gap: 4px; }
.review .text { font-size: 15px; line-height: 1.55; color: var(--hs-text); }
.review .wait { align-self: flex-start; }
.reviews .btn-more { margin-top: 10px; }
.review-summary { display: flex; align-items: center; gap: 14px; padding: 14px; }
.review-summary > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.review-summary .big { font-size: 40px; font-weight: 700; color: var(--hs-navy); line-height: 1; }
.review-summary .bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.review-summary .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hs-muted); }
.review-summary .bar i { flex: 1; height: 8px; border-radius: 999px; background: var(--hs-border); overflow: hidden; }
.review-summary .bar i b { display: block; height: 100%; background: var(--hs-star); }
/* Vurderingssammendrag: kortet er eneste boks. Seksjonen har ingen egen flate/ramme (boks-i-boks-regelen) */
.summary { padding-top: 22px; padding-bottom: 8px; }
.summary-card { overflow: hidden; }
.summary-note { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--hs-border); font-size: 12px; line-height: 1.45; color: var(--hs-navy); }
.summary-note .ic { flex: none; margin-top: 1px; color: var(--hs-navy); }
.reviews-page .filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 14px; }
.reviews-page .filter-row .count { font-size: 14px; font-weight: 700; color: var(--hs-navy); }
@media (min-width: 768px) { .summary { padding: 0; } .review-summary { flex-direction: column; align-items: stretch; } }

.hs2-rating { margin-bottom: 14px; }
.rating-widget { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.rating-widget h3 { font-size: 14px; font-weight: 700; color: var(--hs-navy); }
.rating-widget br { display: none; }
.rating-widget .bar { display: flex; gap: 4px; }
.rating-widget .star { width: 30px; height: 30px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C3D2D8'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.rating-widget .star.hovered, .rating-widget .star.selected { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F0A500'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E"); }
.rating-form { padding: 14px; border-top: 1px solid var(--hs-border); }
.rating-form.hidden { display: none; }
.rating-form .schema { display: flex; flex-direction: column; gap: 6px; }
.rating-form .label { font-size: 13px; font-weight: 600; color: var(--hs-navy); margin-top: 8px; }
.rating-form .label i { font-style: italic; }
.rating-form select, .rating-form textarea, .rating-form input[type=text] { width: 100%; padding: 11px 13px; border: 1px solid var(--hs-border-strong); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.rating-form textarea { min-height: 110px; resize: vertical; }
.rating-form .mark { font-size: 12px; color: var(--hs-muted); }
.rating-form .error { font-size: 12px; font-weight: 600; color: var(--hs-danger); }
.rating-form .error.hidden { display: none; }
.rating-form .confirm .table { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.rating-form .confirm .col1 { display: inline-flex; flex: none; width: 20px; height: 20px; border: 1px solid var(--hs-border-strong); border-radius: 5px; background: #fff; }
.rating-form .confirm .col1.checked { background: var(--hs-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--hs-navy); }
.rating-form .buttons { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.rating-form .buttons.hidden { display: none; }
.rating-form .buttons .send { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 12px 20px; border-radius: 11px; background: var(--hs-navy); color: #fff; font-weight: 600; font-size: 14px; }
.rating-form .buttons .cancel { font-size: 14px; font-weight: 600; color: var(--hs-blue); }
.rating-form .spinner { display: flex; justify-content: center; padding: 8px; }
.rating-form .spinner.hidden { display: none; }
.rating-form .success { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 11px; background: var(--hs-wait-now-bg); color: var(--hs-success); }
.rating-form .success.hidden { display: none; }
.reviews-disabled-card { display: flex; gap: 12px; padding: 14px; }
.reviews-disabled-card .rd-icon { font-size: 24px; line-height: 1.2; }
.reviews-disabled-card h3 { font-size: 14px; font-weight: 700; color: var(--hs-navy); margin-bottom: 4px; }
.reviews-disabled-card p { font-size: 13px; color: var(--hs-muted); line-height: 1.5; }
