/* Light text colours shared by the clinic's editorial pages. */
html:not([data-clinic-theme="dark"]) :where(.clinic-business, .clinic-insurance, .clinic-knowledge) {
  --clinic-heading: #352f27;
  --clinic-ink: #332e26;
  --clinic-intro: #544b3f;
  --clinic-secondary: #564d43;
  --clinic-link: #654636;
}

/* Controls for the imported clinic layout. */
.TbNlJb.clinic-search-open{opacity:1;visibility:visible;width:100%;height:48px}
.TbNlJb.clinic-search-open .E2UJ5{max-width:calc(100% - 96px);margin-inline:auto!important}
.BuY5Fd.upKXGe{opacity:1}
nav .mBHtvb{cursor:pointer}

/* On wide screens the original width cap cuts off the end of Hønefoss. */
@media (min-width: 1200px) {
  .GAuSPc .QTKDff { max-width: none; }
}

/* The exported button wrapper clips an outside outline. Draw it inside instead. */
.FKF6mc[href^="https://aniasklinikk.bestille.no/"]:focus-visible {
  position: relative;
}
.FKF6mc[href^="https://aniasklinikk.bestille.no/"]:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8px 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
  pointer-events: none;
}

/* This exported section is the home-page hero. Keep the type legible on short phones. */
@media (max-width: 400px) and (max-height: 740px) and (orientation: portrait) {
  #h\.INITIAL_GRID\.2g8mxf8mz1zt { padding-bottom: 8px; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt .jXK9ad { padding-bottom: 0; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt h1,
  #h\.INITIAL_GRID\.2g8mxf8mz1zt h1 span { font-size: clamp(36px, 11vw, 46px); line-height: 1.08; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt h2 { margin-top: 12px; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt h2,
  #h\.INITIAL_GRID\.2g8mxf8mz1zt h2 span { font-size: 21px; line-height: 1.2; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt + section .Kzv0Me:first-child .jXK9ad { padding-top: 14px; }
}

/* Use less space around the daytime offer on short phones. */
@media (max-width: 400px) and (max-height: 680px) and (orientation: portrait) {
  #h\.INITIAL_GRID\.2g8mxf8mz1zt + section .Kzv0Me:first-child .jXK9ad { padding-top: 6px; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt + section .Kzv0Me:first-child .tyJCtd { padding-block: 4px; }
  #h\.INITIAL_GRID\.2g8mxf8mz1zt + section .Kzv0Me:first-child p + p { margin-top: 6px; }
}

/* Size the small homepage header to its text while the first-visit banner is open. */
@media (max-width: 340px) and (max-height: 620px) and (orientation: portrait) {
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt {
    height: auto;
    min-height: 0;
    padding-bottom: 2px;
  }
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt .jXK9ad { padding-top: 26px; }
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt .tyJCtd { padding: 0 0 4px; }
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt :is(h1, h1 span) { font-size: 30px; line-height: 1.05; }
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt h2 { margin-top: 5px; }
  html:has(.clinic-choice-banner) #h\.INITIAL_GRID\.2g8mxf8mz1zt :is(h2, h2 span) { font-size: 18px; line-height: 1.15; }
}

.clinic-practitioner {
  display: grid;
  grid-template-columns: clamp(114px, 14vw, 152px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  max-width: 710px;
  margin: 12px auto;
}
.clinic-practitioner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.clinic-practitioner p {
  margin-block: 0 !important;
  text-align: start !important;
}
.clinic-practitioner p + p { margin-top: 12px !important; }
@media (max-width: 580px) {
  .clinic-practitioner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }
  .clinic-practitioner img { width: 110px; }
  .clinic-practitioner p { text-align: center !important; }
}

/* Klippekort uses the same typefaces and content width as the treatment pages. */
.clip-intro, .clip-offers, .clip-notes {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1156px);
  margin-inline: auto;
  color: #212121;
  font: 400 19px/1.55 "Gentium Basic", Georgia, serif;
}
.clip-intro {
  margin-top: 8px;
  padding-top: clamp(22px, 3vw, 42px);
  border-top: 1px solid #d5d1cd;
  text-align: center;
}
.clip-intro p {
  max-width: 780px;
  margin: 0 auto;
  font: italic 400 clamp(18px, 1.5vw, 21px)/1.5 "Gentium Basic", Georgia, serif;
}
.clip-offers { padding-block: 22px clamp(40px, 5vw, 68px); }
.clip-offers h2, .clip-notes h2 {
  margin: 0 0 28px;
  color: #463833;
  font: 400 clamp(27px, 3vw, 38px)/1.22 Lora, Georgia, serif;
}
.clip-offers h2 { text-align: center; }
.clip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.clip-offer { min-width: 0; }
.clip-offer img { display: block; width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; object-position: center 38%; }
.clip-offer h3 {
  margin: 20px 0 12px;
  color: #463833;
  font: 400 clamp(22px, 2vw, 28px)/1.3 Lora, Georgia, serif;
  scroll-margin-block-start: 76px;
}
.clip-rate-key {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-block: 4px 6px;
  color: #554c45;
  font-size: 16px;
}
.clip-rate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 12px;
  padding-block: 15px;
  border-top: 1px solid #d5d1cd;
}
.clip-rate h4, .clip-rate strong { margin: 0; font: 400 20px/1.4 Lora, Georgia, serif; }
.clip-rate strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip-rate p { grid-column: 1 / -1; margin: 0; }
.clip-rate .clip-regular { color: #554c45; font-size: 17px; }
.clip-text-link {
  color: #463833;
  text-decoration: underline;
  text-decoration-color: #8a786c;
  text-underline-offset: .18em;
}
.clip-text-link:hover { text-decoration-color: currentColor; }
.clip-text-link:focus-visible, .clip-offer h3:focus-visible {
  outline: 2px solid #705c50;
  outline-offset: 3px;
}
.clip-availability { margin: 16px 0 0; text-align: center; }
.clip-availability a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; }
.clip-notes { max-width: 780px; padding-block: 32px; border-top: 1px solid #d5d1cd; }
.clip-notes h2 { margin-bottom: 16px; }
.clip-notes p { margin: 0 0 12px; }
.clip-notes ul { margin: 0 0 20px; padding-left: 1.3em; list-style: disc; }
.clip-notes li { margin: 0 0 10px; }
.clip-notes a { color: #463833; text-decoration: underline; text-underline-offset: 2px; }
.clip-terms { margin-bottom: 30px; }
.clip-offers, .clip-rate, .clip-notes { scroll-margin-top: 70px; }
@media (max-width: 767px) {
  .clip-hero.SBrW1 { height: clamp(220px, 35svh, 320px); }
}
@media (max-width: 480px) and (max-height: 740px) and (orientation: portrait) {
  .clip-hero.SBrW1 { height: clamp(150px, calc(65svh - 218px), 250px); padding-block: 44px 10px; }
  .clip-hero .jXK9ad { padding-block: 6px; }
  .clip-hero h1, .clip-hero h1 span { font-size: clamp(37px, 11.5vw, 48px); line-height: 1.1; }
  .clip-intro { width: calc(100% - 36px); padding-top: 12px; }
  .clip-intro p { line-height: 1.35; }
}
@media (max-width: 680px) {
  .clip-grid { grid-template-columns: 1fr; }
  .clip-offers { padding-top: 12px; }
  .clip-offers h2 { margin-bottom: 22px; }
  .clip-intro, .clip-offers, .clip-notes { font-size: 18px; }
  .clip-rate h4, .clip-rate strong { font-size: 18px; }
}

.clinic-price-overview { max-width: 42rem; margin: 1.25rem auto; text-align: left; color: #3b302c; font-family: Lora, Georgia, serif; }
.clinic-price-overview dl { margin: 0; }
.clinic-price-overview dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .65rem 0; border-bottom: 1px solid #d9cfca; }
.clinic-price-overview dt, .clinic-price-overview dd { margin: 0; line-height: 1.45; }
.clinic-price-overview dt { font-weight: 600; }
.clinic-price-overview p { margin: .75rem 0 0; font-size: .94rem; line-height: 1.5; }
.clinic-price-overview a, a.clinic-directions { color: #523b34; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 650px) {
  .clinic-price-overview dl > div { display: block; }
}

/* Show the exported accordion answers when the toggle script cannot run. */
@media (scripting: none) {
  .qUO6Ue.vhaaFf > .oKdM2c { display: block; }
  .qUO6Ue.vhaaFf .zGbri,
  .qUO6Ue .amZmwc { display: none; }
}
