:root {
  --site-ink: #232238;
  --site-heading: #000099;
  --site-purple: #2e2446;
  --site-link: #5d3a84;
  --site-accent: #f1ce78;
  --site-border: #e9e2eb;
  --site-panel-shadow: 0 .35rem .85rem rgb(35 34 56 / 14%), 0 .08rem .2rem rgb(35 34 56 / 7%);
  --bs-body-bg: #f7f4f7;
  --bs-body-color: var(--site-ink);
  --bs-link-color-rgb: 93, 58, 132;
  --bs-link-hover-color-rgb: 63, 35, 95;
}

body {
  background: var(--bs-body-bg) url("../bilder/pappersbakgrund.jpg") repeat;
}

.site-header .navbar {
  gap: .75rem;
  padding-block: .4rem;
}

.site-brand {
  flex: none;
  mix-blend-mode: multiply;
}

.site-brand img {
  display: block;
  height: auto;
  width: clamp(3.5rem, 7.4vw, 5.75rem);
}

.site-banner {
  background: #fff;
  border-radius: .85rem;
  box-shadow: var(--site-panel-shadow);
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  isolation: isolate;
  overflow: hidden;
}

.site-banner-copy {
  align-items: center;
  display: flex;
  gap: clamp(.85rem, 1.6vw, 1.4rem);
  padding: clamp(.8rem, 2vw, 1.35rem);
}

.site-banner-title {
  color: var(--site-heading);
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.03;
  margin: 0 0 .4rem;
}

.site-banner-tagline {
  color: var(--site-ink);
  margin: 0;
}

.site-banner-image {
  align-self: center;
  border-radius: .65rem;
  display: block;
  height: 7.75rem;
  margin: .55rem;
  object-fit: cover;
  opacity: .9;
  width: calc(100% - 1.1rem);
}

.site-header .nav-link {
  border-radius: .45rem;
  color: var(--site-ink);
  font-weight: 600;
  padding-inline: .65rem;
}

.site-header .nav-link:is(:hover, :focus-visible) {
  background: #eee8f1;
  color: var(--site-link);
}

.site-header .nav-link.active {
  color: var(--site-link);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.site-header .home-link {
  align-items: center;
  display: flex;
  gap: .4rem;
  padding-inline-start: .8rem;
}

.home-icon {
  flex: none;
}

.site-skip {
  background: white;
  color: var(--site-link);
  padding: .65rem;
  position: absolute;
  z-index: 10;
}

.site-main {
  padding-top: .5rem;
  padding-bottom: .65rem;
}

@media (min-width: 992px) {
  .site-header > .container,
  .site-main,
  .site-footer {
    padding-inline: calc(var(--bs-gutter-x) * .5 + .5rem);
  }

  .home-columns {
    --bs-gutter-x: .75rem;
  }
}

.site-main:focus {
  outline: none;
}

.site-main :is(h1, h2, h3) {
  color: var(--site-heading);
}

.site-panel {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: .95rem;
  box-shadow: var(--site-panel-shadow);
  margin-bottom: .65rem;
  padding: clamp(1rem, 3vw, 1.7rem);
}

.site-panel h2, .site-panel h3 {
  font-weight: 700;
}

.site-panel h2 { font-size: 1.45rem; }
.site-panel h3 { font-size: 1.09rem; }

.event-feature {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
}

.event-feature img, .venue-image {
  border-radius: .65rem;
  height: auto;
  max-width: 100%;
}

.venue-image {
  aspect-ratio: 4 / 3;
  margin-bottom: .7rem;
  object-fit: cover;
}

.event-date {
  color: var(--site-link);
  font-weight: 700;
  margin-bottom: .35rem;
}

.event-list li {
  padding-block: .45rem;
}

.event-list li + li {
  border-top: 1px solid var(--site-border);
}

.dance-resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 5rem));
  justify-content: center;
  gap: .7rem;
}

.dance-resource-links a,
.dance-resource-links img {
  display: block;
}

.dance-resource-links img {
  max-width: 100%;
  height: auto;
}

.event-calendar {
  background: #fffacd;
  border-color: #e9e4c1;
  overflow: hidden;
  padding: 0;
}

.event-calendar h2 {
  background: #f1ecc4;
  margin: 0;
  padding: .9rem 1rem;
}

.event-calendar .event-list li {
  background: #fffacd;
  border: 0;
  padding: .6rem 1rem;
}

.event-calendar .event-list li:nth-child(even) {
  background: #f1ecc4;
}

.support-logo {
  display: block;
  height: auto;
  margin-bottom: .6rem;
}

.site-table {
  --bs-table-bg: #fff;
  --bs-table-border-color: var(--site-border);
}

.site-table thead {
  --bs-table-bg: #f1eaf6;
}

.site-table :is(.dis_niva, .dis_brodtext) {
  --bs-table-bg: #ebe9ee;
}

.site-table .niva, .site-table .dis_niva {
  font-weight: 650;
}

.teacher-card {
  background: #f7f4f7;
  border-radius: .65rem;
  box-shadow: 0 .15rem .45rem rgb(35 34 56 / 10%);
  height: 100%;
  overflow-wrap: anywhere;
  padding: .85rem;
}

.teacher-card img {
  border-radius: 50%;
  margin-bottom: .65rem;
  object-fit: cover;
}

.footer-inner {
  background: #ffc34d;
  border-radius: .95rem;
  box-shadow: var(--site-panel-shadow);
  color: #171717;
  padding: 1rem;
  text-align: center;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.course-overview {
  width: 100%;
  border: 1px solid #a5a5a5;
  border-collapse: separate;
  border-spacing: 10px;
  font: 12px Verdana, Geneva, sans-serif;
  color: #000;
}

.course-overview :is(th, td) {
  padding: 10px;
  vertical-align: top;
}

.course-overview th {
  border: 1px solid #000099;
  background: #ffffcc;
  color: #000099;
  font-size: 14px;
  text-align: left;
}

.course-overview td {
  border: 1px solid #a5a5a5;
  background: #fff;
}

.course-overview .uddarad td {
  background: #eee;
}

.course-overview h4 {
  color: #000099;
  font: bold 14px Verdana, Geneva, sans-serif;
  margin: 0 0 .2rem;
}

.course-overview a:link { color: #0000ee; }
.course-overview a:visited { color: #551a8b; }

.course-program-view {
  position: relative;
}

.course-program-back {
  position: absolute;
  top: .65rem;
  right: .75rem;
  z-index: 1;
  padding: .25rem .45rem;
  border: 1px solid #c9c2d5;
  border-radius: .4rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(35 34 56 / 12%);
  color: var(--site-heading);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.course-program-back:hover {
  background: #f1edf6;
  color: var(--site-heading);
  text-decoration: none;
}

.course-program-back:focus-visible {
  outline: 2px solid var(--site-heading);
  outline-offset: 2px;
}

.course-program-frame {
  display: block;
  width: 100%;
  height: 80vh;
  border: 0;
}

.course-point-view .course-program-back {
  position: static;
  display: table;
  margin: 0 0 .5rem auto;
}

.course-pdf {
  display: grid;
  justify-items: center;
  gap: .75rem;
}

.course-pdf canvas {
  display: block;
  width: min(100%, 56rem);
  height: auto;
  background: #fff;
  box-shadow: var(--site-panel-shadow);
}

.archive-table {
  min-width: 30rem;
}

.archive-table select {
  width: 100%;
}

.archive-table .archive-year {
  background: #f1eaf6;
}

.dance-index {
  columns: 16rem;
}

.dance-index p {
  break-after: avoid;
}

.dance-index a {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .site-banner, .event-feature { grid-template-columns: 1fr; }
  .site-banner-image { height: 4.5rem; margin-top: 0; }
  .event-feature img { max-height: 11rem; object-fit: cover; width: 100%; }
}
