/* ----------------------------------------------------------------------------
 * /felanmalan — sends everybody to sign in: the Boinspekt app on a phone
 * or tablet, Kundportalen on a computer. No form (the anonymous one made a
 * second channel for the förvaltare to watch).
 *
 * Builds on the service-page vocabulary and the hero button of
 * /kundportalen. The inline script first in the view sets
 * html[data-app-store="ios" | "android"]; without it (a computer, or no
 * JavaScript) every way in shows.
 * ------------------------------------------------------------------------- */

/* ── Hero: one button, the visitor's own way in ── */
body.landing .header.service-hero .portal-hero__login.felanmalan-lead--ios,
body.landing .header.service-hero .portal-hero__login.felanmalan-lead--android,
html[data-app-store] body.landing .header.service-hero .portal-hero__login.felanmalan-lead--web {
  display: none;
}

html[data-app-store="ios"] body.landing .header.service-hero .portal-hero__login.felanmalan-lead--ios,
html[data-app-store="android"] body.landing .header.service-hero .portal-hero__login.felanmalan-lead--android {
  display: inline-flex;
}

body.landing .header.service-hero .felanmalan-lead .fa-brands {
  font-size: 1.15rem;
}

/* The jour number, on the first screen whatever the device. */
body.landing .header.service-hero .felanmalan-hero__urgent {
  margin: 28px 0 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sh-cream-soft);
}

body.landing .header.service-hero .felanmalan-hero__urgent a {
  margin-left: 4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--sh-cream);
  text-decoration: none;
  border-bottom: 1px solid var(--sh-brass);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.landing .header.service-hero .felanmalan-hero__urgent a:hover {
  color: var(--sh-brass-bright);
  border-bottom-color: var(--sh-brass-bright);
}

/* ── The ways in ── */
.felanmalan-ways {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

/* The outlined button sits right under its label. */
.felanmalan-ways a.felanmalan-way__login {
  margin-top: 6px;
  font-size: 1rem;
}

.felanmalan-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

a.felanmalan-store {
  display: inline-flex;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

a.felanmalan-store:hover {
  opacity: 0.85;
}

a.felanmalan-store:focus-visible {
  outline: 2px solid var(--sp-brass);
  outline-offset: 3px;
}

.felanmalan-store img {
  display: block;
  height: 48px;
  width: auto;
}

/* On a phone or tablet: its own store only, and the app before the web. */
html[data-app-store] .felanmalan-way--app {
  order: -1;
}

html[data-app-store="ios"] .felanmalan-store--android,
html[data-app-store="android"] .felanmalan-store--ios {
  display: none;
}

/* The jour number carries the page for someone with a leak. */
.contact-stack .service-page__phone.felanmalan-urgent__phone {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

/* Not ours to answer: fara för liv goes to 112. A line under the jour's
   hours, the number in the ink of the page. */
.contact-row__note.felanmalan-urgent__emergency {
  margin-top: 10px;
  color: var(--sp-ink);
}

.contact-row__note.felanmalan-urgent__emergency a {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
