/* Typsnitt som ligger på sajten. Licens: SIL Open Font License. */
@font-face {font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/karla-119e3bea.woff2) format('woff2')}
@font-face {font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/karla-119e3bea.woff2) format('woff2')}
@font-face {font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/karla-119e3bea.woff2) format('woff2')}
@font-face {font-family: 'Karla'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/karla-119e3bea.woff2) format('woff2')}

* { box-sizing: border-box; }
body { margin: 0; }
.site {
  --ink: #1B1F2A;
  --muted: #5A6070;
  --rule: #D8DCE4;
  --cobalt: #20408F;
  --cobalt-deep: #17306E;
  --tint: #EEF1F8;
  --paper: #FFFFFF;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}
.site a { color: inherit; text-underline-offset: 3px; }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible, .site [tabindex]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.inner { max-width: 54rem; margin: 0 auto; padding: 0 1rem; }
.site h1, .site h2, .site h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.site p { margin: 0 0 1rem; max-width: 60ch; }

.top { border-bottom: 1px solid var(--rule); }
.top .inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 2rem; padding-top: 1rem; padding-bottom: 0.9rem; }
.name { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }

.intro { padding-top: 2.5rem; padding-bottom: 2rem; }
.intro h1 { font-size: clamp(2rem, 5.4vw, 2.75rem); margin-bottom: 0.9rem; }
.intro p { margin-bottom: 0; }
.control { padding-bottom: 1.75rem; }
.site h2 { font-size: 1.625rem; margin-bottom: 0.9rem; }
.site section { padding-bottom: 2.75rem; }

/* Kurslistan */
.courses, .people, .log ol { list-style: none; margin: 0; padding: 0; }
.course { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); gap: 0.8rem 1.1rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.course:last-child { border-bottom: 1px solid var(--rule); }
.leaf { align-self: start; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; text-align: center; line-height: 1.1; }
.leaf .mon { display: block; background: var(--cobalt); color: #fff; font-size: 0.875rem; font-weight: 500; padding: 0.15rem 0 0.2rem; }
.leaf .day { display: block; font-weight: 800; font-size: 1.5rem; padding-top: 0.25rem; }
.leaf .dow { display: block; color: var(--muted); font-size: 0.875rem; padding-bottom: 0.3rem; }
.course h3 { font-size: 1.3125rem; margin-bottom: 0.25rem; }
.course .meta { color: var(--muted); margin: 0 0 0.5rem; max-width: 52ch; }
.seatline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; }
.seats { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
.seat { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--cobalt); border: 1.5px solid var(--cobalt); }
.seat.free { background: transparent; border-color: #8B93A6; }
.left { font-weight: 700; }
.buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price { font-weight: 800; font-size: 1.1875rem; white-space: nowrap; }
.btn { font: inherit; font-weight: 700; font-size: 1.0625rem; background: var(--cobalt); color: #fff; border: 2px solid var(--cobalt); border-radius: 4px; padding: 0.5rem 1.1rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn.quiet { background: transparent; color: var(--cobalt); }
.btn.quiet:hover { background: var(--tint); }
.btn.small { font-size: 0.9375rem; padding: 0.25rem 0.7rem; border-width: 1.5px; }
.panel { grid-column: 1 / -1; background: var(--tint); border-radius: 4px; padding: 1rem; }
.panel h4 { margin: 0 0 0.75rem; font-size: 1.0625rem; font-weight: 800; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: 0.9rem; }
.f { display: grid; gap: 0.25rem; min-width: 0; }
.f label { font-weight: 500; font-size: 1rem; }
.f input { font: inherit; width: 100%; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid #8B93A6; border-radius: 4px; background: #fff; color: var(--ink); }
.panel .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.textbtn { font: inherit; background: none; border: 0; padding: 0.3rem 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.err { color: #9B1C1C; font-weight: 700; margin: 0 0 0.75rem; }
.ok { grid-column: 1 / -1; background: var(--tint); border-left: 4px solid var(--cobalt); padding: 0.8rem 1rem; }
.ok p:last-child { margin-bottom: 0; }

/* Kursledarens sida */
.log { background: var(--tint); border-radius: 4px; padding: 0.9rem 1rem 0.35rem; margin-bottom: 1.75rem; }
.log h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.log li { border-top: 1px solid #D0D7E8; padding: 0.55rem 0; font-size: 1.0625rem; }
.log li b { font-weight: 700; }
.log .none { color: var(--muted); }
.group { margin-bottom: 1.75rem; }
.group h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.group .count { color: var(--muted); margin: 0 0 0.5rem; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding: 0.5rem 0; }
.people li:last-child { border-bottom: 1px solid var(--rule); }
.people .who span { display: block; color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.group h4 { margin: 0.9rem 0 0.25rem; font-size: 1rem; font-weight: 800; }

.plain { margin: 0; padding-left: 1.2rem; max-width: 58ch; }
.plain li { margin-bottom: 0.35rem; }
.bottom { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-size: 1.0625rem; color: var(--muted); }
.bottom p { margin: 0 0 0.2rem; }

@media (min-width: 42rem) {
  .intro { padding-top: 3.25rem; }
  .course { grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: start; }
  .buy { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }
}
