@font-face {
  font-family: Schibsted;
  src: url("assets/font.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #102432;
  --muted: #425b6a;
  --line: #bfd3df;
  --blue: #1473a9;
  --tint: #e3f2fc;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1rem/1.5 Schibsted, system-ui, -apple-system, sans-serif;
  background: #edf4f8;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1376b1; outline-offset: 3px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.page { width: min(100% - 40px, 1060px); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 20px; }
.brand { display: block; width: 89px; height: auto; }
.share, .download-image, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 640; }
.share {
  color: var(--ink);
  background: transparent;
  border: 1px solid #b3c9d6;
  border-radius: 100px;
  padding: 9px 16px;
  min-height: 44px;
  font-size: .875rem;
}
.share svg, .download-image svg { width: 17px; height: 17px; }
.card { background: #fff; border: 1px solid #bacdd8; border-radius: 24px; overflow: clip; box-shadow: 0 20px 65px -42px #20475e70; }
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 24px 29px;
  background: linear-gradient(125deg, #eaf6ff 0%, #d9eefb 62%, #b7dff8 100%);
}
/* Concentric chart lines are clipped to the corner, behind the content. */
.identity::after {
  position: absolute;
  content: "";
  z-index: -1;
  top: -160px;
  right: -195px;
  width: 370px;
  height: 320px;
  border-radius: 44%;
  border: 1px solid #368bb132;
  box-shadow: 0 0 0 13px #c3e4f4, 0 0 0 14px #3694bd38,
    0 0 0 27px #c7e7f6, 0 0 0 28px #3694bd38,
    0 0 0 42px #cae8f7, 0 0 0 43px #3694bd38,
    0 0 0 59px #cdebf9, 0 0 0 60px #3694bd38;
  transform: rotate(-27deg);
}
.role { position: relative; font-size: .9rem; font-weight: 635; color: #275c79; }
h1, h2, p { margin: 0; }
h1 {
  max-width: 8ch;
  font-size: clamp(3.15rem, 11vw, 5.35rem);
  letter-spacing: -.07em;
  line-height: .96;
  font-weight: 700;
  margin: 15px 0 18px;
}
.surname { white-space: nowrap; }
.period { color: #1683bc; }
.intro { font-size: 1rem; line-height: 1.52; max-width: 40ch; color: #294658; }
.primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { border-radius: 10px; padding: 13px 16px; min-height: 48px; font-size: .92rem; white-space: nowrap; }
.button svg { width: 19px; height: 19px; }
.save { background: var(--ink); color: white; border: 1px solid var(--ink); }
.qr-trigger { background: #ffffffb5; border: 1px solid #97b8cc; }
.scan-panel { display: none; }
.contact { display: grid; padding: 0 20px; }
.contact a { display: flex; gap: 15px; align-items: center; min-width: 0; position: relative; padding: 16px 4px; min-height: 74px; }
.contact a + a { border-top: 1px solid #dce5eb; }
.contact .icon-wrap { width: 41px; height: 41px; border-radius: 12px; background: #eef4f8; color: #285675; display: grid; place-items: center; flex: 0 0 auto; }
.contact .appointment .icon-wrap { background: #c7e7fb; color: #0f537b; }
.contact strong { font-size: 1.03rem; font-weight: 680; display: block; }
.detail { font-size: .89rem; color: var(--muted); overflow-wrap: anywhere; display: block; }
.scan-image { display: block; width: 100%; height: auto; object-fit: contain; aspect-ratio: 1; background: white; image-rendering: pixelated; }
.download-image { min-height: 44px; color: #185d87; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
footer { display: flex; justify-content: flex-end; gap: 16px; padding: 8px 2px 26px; color: #4f6878; font-size: .8rem; }
footer a { display: inline-flex; min-height: 42px; align-items: center; }
dialog {
  border: 1px solid #bed0dc; border-radius: 20px; padding: 21px;
  width: min(410px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  background: #fff; color: var(--ink); box-shadow: 0 22px 80px #061e3480;
}
dialog::backdrop { background: #081d2bcf; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
dialog h2 { font-size: 1.5rem; font-weight: 690; line-height: 1.2; letter-spacing: -.04em; }
dialog p { color: var(--muted); margin: 8px 0; font-size: .94rem; }
.close { width: 44px; height: 44px; display: grid; place-items: center; background: #eff5f8; border: 0; border-radius: 50%; color: var(--ink); }
dialog .download-image { display: flex; margin-top: 8px; }
dialog label { display: block; color: var(--muted); margin: 16px 0 8px; }
textarea { width: 100%; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.toast:not(:empty) { position: fixed; z-index: 2; bottom: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); padding: 11px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .92rem; }
@media (hover: hover) {
  .save:hover { background: #20445c; }
  .qr-trigger:hover, .share:hover { background: white; }
  .contact a:hover strong, footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 550px) {
  .page { width: min(100% - 24px, 1060px); }
  .masthead { padding: 16px 5px; }
  .brand { width: 74px; }
  .card { border-radius: 18px; }
  .primary-actions { gap: 8px; }
  .button { font-size: .84rem; padding: 12px 10px; gap: 6px; }
}
@media (max-width: 370px) {
  .identity { padding: 27px 15px 24px; }
  .primary-actions { gap: 6px; }
  .button { font-size: .79rem; padding-inline: 8px; }
  .button svg { width: 16px; }
  .contact { padding-inline: 12px; }
}
@media (min-width: 760px) {
  .page { padding-top: max(6px, min(4vh, 40px)); }
  .masthead { padding: 20px 4px 24px; }
  .card { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(235px, 1fr); }
  .identity { padding: clamp(38px, 5vw, 66px); display: flex; flex-flow: column; align-items: start; justify-content: center; }
  .identity::after { width: 430px; height: 325px; top: -200px; right: -220px; }
  .role { font-size: 1rem; }
  h1 { font-size: clamp(4.2rem, 7vw, 6rem); margin: 22px 0; }
  .intro { font-size: 1.08rem; }
  .primary-actions { margin-top: 29px; }
  .qr-trigger { display: none; }
  .scan-panel { display: flex; flex-flow: column; align-items: center; justify-content: center; border-left: 1px dashed var(--line); padding: 26px clamp(24px, 4vw, 62px); text-align: center; }
  .scan-panel .scan-image { max-width: 270px; }
  .scan-panel p { font-size: .94rem; color: var(--muted); margin: 10px 0 4px; max-width: 26ch; }
  .contact { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 12px 22px; column-gap: 20px; }
  .contact a { padding: 16px 12px; min-height: 84px; }
  .contact a:nth-child(2) { border-top: 0; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.qr-picker {
  border: 0; padding: 0; margin: 0; min-width: 0; width: 100%; position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center;
}
.qr-picker label {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: .82rem; line-height: 1.25; padding: 7px 4px; margin: 0;
  min-height: 44px; font-weight: 630; border: 1px solid #a9c4d4; color: #34546a;
}
.qr-picker label:first-of-type { border-radius: 10px 0 0 10px; }
.qr-picker label:last-of-type { border-radius: 0 10px 10px 0; border-left: 0; }
.qr-picker input:checked + label { background: #19384d; color: #fff; }
.qr-picker input:focus-visible + label { outline: 3px solid #2282bc; outline-offset: 2px; z-index: 1; }
.qr-body { display: none; grid-column: 1 / -1; padding-top: 10px; }
.web-choice:checked ~ .web-code, .offline-choice:checked ~ .offline-code { display: block; }
.qr-picker .scan-image { margin: 0 auto; }
.qr-picker p { margin: 8px auto 4px; }
#scan-dialog .qr-picker { margin-top: 17px; }
.offline-fallback { display: inline-flex; min-height: 44px; align-items: center; color: #185d87; text-decoration: underline; font-size: .875rem; }
