/* The sub pages (priser.html, dataskydd.html, for-skolor.html): the start page's sky, header, sheets and footer. Loaded after direction.css and sections.css.
   Their only script is visit.js (the source of a visit) and, on for-skolor, for-skolor.js (the contact form); the header works without either.
   Their content is set in the sans throughout, large and centred, with much air and few lines: a plan page and a document, not a brochure. */

/* One family, as on the start page (clean.css): the word in the header and the footer, and the footer's note, are in the sans too */
:root { --serif: var(--sans); --display: var(--sans); }
.wordmark { font-weight: 600; letter-spacing: -0.03em; }
.footer-note { font-style: normal; }

/* Header: the octopus and the word are one link home; the current page reads as the start page's section in view */
.brand-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.site-nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.site-nav > a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; letter-spacing: -0.007em; }

/* One material: the page is plain white, and the content lies on it directly. The sky is a band at the top that fades into the white (the header's glass floats over it);
   there are no sheets here, so a tile is the only box on the page, light grey, one radius. */
html:has(body.page) { background: #fff; }
body.page::before, body.page::after {
  position: absolute; height: 620px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 100%);
}
body.page::before { background-image: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 30%, var(--sky-2) 62%, var(--sky-3) 100%); }
.page .section, .page .site-footer { padding: var(--s7) 0; }
.page .section::before, .page .site-footer::before { display: none; }
.page .section:first-child { padding-top: var(--s5); }
.page .section + .section { padding-top: 0; }
.page .site-footer { padding: var(--s6) 0; border-top: 1px solid var(--rule); }
.page main { font-family: var(--sans); }
.page-sheet .wrap { max-width: calc(1040px + 2 * var(--gutter)); }
.page-sheet a:not(.button) { color: var(--ink); text-decoration-color: var(--line-strong); }
.page-sheet a:not(.button):hover { text-decoration-color: var(--ink); }
.button.pill { min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); font-size: 17px; white-space: normal; }

/* A head: one large line, one grey line, at most one button. More space above it than below */
.page-head { display: grid; justify-items: center; gap: var(--s2); max-width: 46rem; margin: var(--s4) auto var(--s6); text-align: center; }
.page-head :is(h1, h2) { font: 600 clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem)/1.03 var(--sans); letter-spacing: -0.04em; text-box: none; text-wrap: balance; }
.page-head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.page-head p { max-width: 30em; color: var(--ink-2); font: 400 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.4 var(--sans); text-wrap: balance; }
.page-head .button { margin-top: var(--s2); }
.page-head.page-foot { margin: var(--s8) auto var(--s3); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s2); }
.page-head .page-actions .button { margin-top: 0; }

/* What a school gets: plain lists side by side, no boxes. A wide tile (.many) holds an add-on or a note for one kind of visitor */
.incl-grid { display: grid; gap: var(--s5); }
.incl h2 { padding-bottom: var(--s2); font: 600 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem)/1.15 var(--sans); letter-spacing: -0.03em; text-box: none; }
.incl li { padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font: 400 16px/1.45 var(--sans); }
.incl strong { display: block; margin-bottom: 2px; color: var(--ink); font: 600 17px/1.35 var(--sans); letter-spacing: -0.015em; }
.many { display: grid; gap: var(--s3); align-items: center; margin-top: var(--s6); padding: var(--s4) var(--s3); border-radius: 28px; background: var(--tile); }
.many h2 { font: 600 clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem)/1.08 var(--sans); letter-spacing: -0.035em; text-box: none; }
.many p { margin-top: 10px; max-width: 34em; color: var(--ink-2); font: 400 17px/1.45 var(--sans); }
.many .button { justify-self: start; background: #fff; }
.plans-note { max-width: 40em; margin: var(--s5) auto 0; color: var(--ink-2); font: 400 14px/1.55 var(--sans); text-align: center; text-wrap: balance; }

.assure-links.center { justify-content: center; margin: var(--s3) 0 var(--s2); }
.page-sheet .assure-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-accent); text-decoration: none; }
.page-sheet .assure-links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Dataskydd: a document. Three short heads, the table of sub-processors, four notes */
.prose-grid { display: grid; gap: var(--s4); margin-top: var(--s6); }
.prose-three { margin-top: 0; }
.prose-grid :is(h2, h3) { font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.2 var(--sans); letter-spacing: -0.025em; text-box: none; }
.prose-grid p { margin-top: 8px; max-width: 34em; color: var(--ink-2); font: 400 16px/1.55 var(--sans); }
.subs-note { margin-top: var(--s3); max-width: 44em; color: var(--ink-2); font: 400 14px/1.55 var(--sans); }
.subs { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--sans); }
.subs thead { display: none; }
.subs tr { display: block; padding: 18px 0; border-top: 1px solid var(--rule); }
.subs tbody tr:last-child { border-bottom: 1px solid var(--rule); }
.subs th[scope="row"] { display: block; text-align: left; font: 600 17px/1.3 var(--sans); letter-spacing: -0.01em; }
.subs td { display: block; margin-top: 10px; padding: 0; color: var(--ink-2); }
.subs td::before { content: attr(data-label); display: block; color: var(--ink); font: 500 13px/1.4 var(--sans); }

@media (min-width: 900px) {
  .page-head { margin-top: var(--s6); margin-bottom: var(--s7); }
  .incl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s5); }
  .many { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4); padding: var(--s5); }
  .prose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s5); }
  .prose-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subs thead { display: table-header-group; }
  .subs tr { display: table-row; padding: 0; border: 0; }
  .subs :is(th, td) { display: table-cell; padding: 18px 20px 18px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
  .subs thead th { border-top: 0; color: var(--ink-2); font: 500 13px/1.4 var(--sans); }
  .subs tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--rule); }
  .subs th[scope="row"] { display: table-cell; width: 16%; }
  .subs td { margin: 0; }
  .subs td::before { display: none; }
}
@media (forced-colors: active) {
  .many { border: 1px solid CanvasText; }
}

/* The ways in (for-skolor.html: two .doors; priser.html: three .plans). Plain white, no icons; a tile is the one box (light grey, one radius), a field the one
   control with an edge. A tile reads top to bottom: who it is for, its name, the price, a short list, one button, one fine line. From 900 px the tiles share
   their rows (subgrid), so names, prices, lists and buttons line up across the row whatever wraps. */
.doors, .plans { display: grid; gap: var(--s2); }
.door, .plan { display: flex; flex-direction: column; align-items: flex-start; padding: var(--s4) var(--s3); border-radius: 28px; background: var(--tile); }
:is(.door, .plan) h2 { font: 600 clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem)/1.08 var(--sans); letter-spacing: -0.035em; text-box: none; }
.door-for { color: var(--ink-2); font: 500 15px/1.4 var(--sans); text-wrap: balance; }
.door .door-for { margin-bottom: 6px; }
.plan .door-for { margin-top: 6px; }
.price { margin-top: var(--s3); color: var(--ink-2); font: 400 15px/1.45 var(--sans); }
.price strong { display: block; margin-bottom: 4px; color: var(--ink); font: 600 clamp(2.25rem, 1.8rem + 1.6vw, 2.75rem)/1.05 var(--sans); letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.door-text { margin-top: var(--s3); color: var(--ink-2); font: 400 16px/1.5 var(--sans); }
.door-text strong { color: var(--ink); font-weight: 600; }
.door-list { align-self: stretch; justify-self: stretch; margin-top: var(--s2); color: var(--ink); font: 400 16px/1.4 var(--sans); }
.door-list li { padding: 11px 0; border-top: 1px solid var(--rule); text-wrap: pretty; }
.door-steps { counter-reset: door-step; }
.door-steps li { position: relative; padding-left: 28px; counter-increment: door-step; }
.door-steps li::before { content: counter(door-step); position: absolute; left: 0; color: var(--ink-2); font-weight: 600; font-variant-numeric: lining-nums; }
:is(.door, .plan) .button { margin-top: var(--s3); }
:is(.door, .plan) .button.secondary { background: #fff; }
.door-fine { margin-top: 14px; color: var(--ink-2); font: 400 14px/1.5 var(--sans); }
.try-first { max-width: 46em; margin: var(--s4) auto 0; color: var(--ink-2); font: 400 17px/1.5 var(--sans); text-align: center; text-wrap: balance; }
.try-first strong { color: var(--ink); font-weight: 600; }
.page-sheet .try-first a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; color: var(--app-accent); font-weight: 600; text-decoration: none; }
.page-sheet .try-first a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* An add-on's label */
.tag { margin-bottom: 8px; color: var(--ink-2); font: 600 13px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.many .tag { margin-top: 0; }

.docs { max-width: 46rem; margin: var(--s6) auto 0; text-align: center; }
.docs > p:first-child { color: var(--ink); font: 600 17px/1.4 var(--sans); }
.docs-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--s3); margin-top: 4px; }
.page-sheet .docs-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-accent); font: 500 16px/1.3 var(--sans); text-decoration: none; }
.page-sheet .docs-links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.film { display: block; width: 100%; height: auto; border-radius: 22px; background: #000; }

.incl h3 { padding-bottom: var(--s2); font: 600 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem)/1.15 var(--sans); letter-spacing: -0.03em; text-box: none; }
/* Wide tiles under each other (the workshop, "Är du lärare?") */
.tiles { display: grid; gap: var(--s2); }
.tiles .many { margin-top: 0; }
.page-sheet .price a { color: var(--app-accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.page-sheet .price a:hover, .page-sheet .door-fine a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.page-sheet .door-fine a { color: var(--app-accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.many-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.many-actions .button { background: #fff; }

/* "Är du lärare?": the page's address in a field, and a button that copies it */
.share-link { display: grid; gap: 12px; min-width: 0; }
.share-link .button { justify-self: start; }
.share-done { min-height: 1.4em; margin-top: 0; color: var(--ink-2); font: 400 14px/1.4 var(--sans); }
.many .share-done { margin-top: 0; font-size: 14px; }

/* Frågor om priset (priser.html): the start page's question list, in one narrow column */
.price-faq { max-width: 46rem; margin: 0 auto; }
.faq .price-faq details p { max-width: none; }

/* Kontakta oss: the words on the left, the one form on the right; one column on a phone. The subject is three radio buttons drawn as pills. */
.contact { display: grid; gap: var(--s4); }
.contact-copy h2 { font: 600 clamp(2rem, 1.3rem + 3vw, 3.25rem)/1.03 var(--sans); letter-spacing: -0.04em; text-box: none; }
.contact-copy p { margin-top: var(--s2); max-width: 22em; color: var(--ink-2); font: 400 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.4 var(--sans); }
.topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.topics legend { padding: 0; color: var(--ink); font: 600 15px/1.35 var(--sans); }
.topic-list { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topic-list input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topic-list label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font: 500 15px/1.2 var(--sans); cursor: pointer;
}
.topic-list label:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.topic-list input:checked + label { background: var(--btn); box-shadow: none; color: var(--btn-ink); font-weight: 600; }
.topic-list input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The form: one column of labelled fields; the error under its field, in the pen's red with the word, never the colour alone */
.lead form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--ink); font: 600 15px/1.35 var(--sans); }
.field .optional { color: var(--ink-2); font-weight: 400; }
.field :is(input, textarea) {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: #fff;
  color: var(--ink); font: 400 17px/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field :is(input, textarea):hover { border-color: var(--ink-2); }
.field :is(input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field :is(input, textarea)[aria-invalid="true"] { border-color: var(--pen); }
.field input[readonly] { background: #fff; color: var(--ink-2); font-size: 16px; text-overflow: ellipsis; }
.field-hint { color: var(--ink-2); font: 400 14px/1.45 var(--sans); }
.field-error, .form-error { color: var(--pen); font: 500 15px/1.4 var(--sans); }
.form-error { padding: 12px 14px; border-radius: var(--radius-ctl); background: #fdf1f1; }
.form-note { color: var(--ink-2); font: 400 15px/1.45 var(--sans); }
.lead form .button { justify-self: start; }
.lead form .button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.turnstile:empty { display: none; }
.turnstile { max-width: 100%; overflow: hidden; }
.lead-done { padding: var(--s4) var(--s3); border-radius: 28px; background: var(--tile); color: var(--ink-2); font: 400 17px/1.5 var(--sans); }
.lead-done-title { margin-bottom: 6px; color: var(--ink); font: 600 clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem)/1.15 var(--sans); letter-spacing: -0.03em; }
.lead-noscript { margin-bottom: var(--s4); padding: 12px 14px; border-radius: var(--radius-ctl); background: var(--tile); color: var(--ink); font: 400 16px/1.5 var(--sans); text-align: center; }
.form-fine { max-width: 40em; margin: var(--s6) auto 0; color: var(--ink-2); font: 400 14px/1.55 var(--sans); text-align: center; text-wrap: balance; }

/* The Prisunderlag: a list of facts that prints on its own */
.facts { max-width: 52rem; margin: 0 auto; }
.facts h2 { margin-bottom: var(--s4); font: 600 clamp(1.75rem, 1.3rem + 2vw, 2.75rem)/1.08 var(--sans); letter-spacing: -0.035em; text-align: center; text-box: none; text-wrap: balance; }
.facts dl > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule); }
.facts dl > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink); font: 600 15px/1.4 var(--sans); }
.facts dd { color: var(--ink-2); font: 400 16px/1.5 var(--sans); overflow-wrap: anywhere; }
.facts .button { display: flex; margin: var(--s4) auto 0; }

@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .door, .plan { padding: var(--s4); }
  @supports (grid-template-rows: subgrid) {
    .door, .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-items: start; }
    :is(.door, .plan) .button { align-self: end; }
  }
  .incl-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: var(--s6); align-items: start; }
  .facts dl > div { grid-template-columns: 14rem minmax(0, 1fr); column-gap: var(--s3); }
}
@media (forced-colors: active) {
  .door, .plan, .lead-done, .form-error { border: 1px solid CanvasText; }
  .topic-list label { border: 1px solid CanvasText; }
  .topic-list input:checked + label { border: 3px solid Highlight; }
}
@media print {
  .site-header, .site-footer, .skip { display: none !important; }
  body.page::before, body.page::after { display: none; }
  body.print-facts main > :not(#prisunderlag), body.print-facts .docs { display: none !important; }
  .facts .button { display: none !important; }
  .facts a { color: inherit; text-decoration: none; }
}
