/*
Theme Name: Malmöhus 17 Legacy
Theme URI: https://brfpilot.se/
Description: Standalone legacy-style theme for the Malmöhus 17 migration test.
Author: BRF Malmöhus 17
Version: 0.3.0
Text Domain: malmohus17-legacy
*/

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background: #f1f1f1;
  color: #373737;
  font-family: Georgia, "Bitstream Charter", serif;
  font-size: 15px;
  line-height: 1.625;
  margin: 0;
  padding: 0 2em;
}

a {
  color: #1b67a6;
}

img {
  height: auto;
  max-width: 100%;
}

#page {
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
  margin: 2em auto;
  max-width: 1000px;
  min-height: 100vh;
}

#branding {
  border-top: 2px solid #bbb;
  padding: 3.65625em 7.6% 2.2em;
}

#site-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

#site-title a {
  color: #111;
  text-decoration: none;
}

#site-description {
  color: #7a7a7a;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 0.35em 0 0;
}

#access {
  background: linear-gradient(#252525, #0f0f0f);
  clear: both;
  display: block;
  margin: 0 auto 6px;
  min-height: 43px;
  padding: 0 7.6%;
}

#access ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#access li {
  display: inline-block;
  position: relative;
  vertical-align: top;
}

#access a {
  color: #eee;
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 3.333em;
  padding: 0 0.85em;
  text-decoration: none;
}

#access li:hover > a,
#access .current-menu-item > a {
  background: #333;
}

#main {
  display: grid;
  gap: 5.2%;
  grid-template-columns: 22.8% minmax(0, 1fr);
  padding: 3.125em 7.6%;
}

#primary {
  min-width: 0;
}

#secondary {
  color: #666;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}

.widget {
  border-bottom: 1px solid #ddd;
  margin: 0 0 2.2em;
  padding: 0 0 1.6em;
}

.widget-title {
  color: #666;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 0 0 1em;
  text-transform: uppercase;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget a {
  color: #555;
  text-decoration: none;
}

.widget li {
  border-top: 1px solid #eee;
  padding: 0.45em 0;
}

.widget li:first-child {
  border-top: 0;
}

.entry-title {
  color: #222;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 0.7em;
}

.entry-content {
  font-size: 15px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: #222;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  line-height: 1.3;
  margin: 1.25em 0 0.55em;
}

.entry-content h2 {
  font-size: 20px;
}

.entry-content h3 {
  font-size: 16px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.625em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content table {
  border-collapse: collapse;
  margin: 0 0 1.625em;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border-bottom: 1px solid #ddd;
  padding: 0.45em;
  vertical-align: top;
}

.entry-content .alignleft,
.entry-content img.alignleft {
  float: left;
  margin: 0.35em 1.625em 1em 0;
}

.entry-content .alignright,
.entry-content img.alignright {
  float: right;
  margin: 0.35em 0 1em 1.625em;
}

.entry-content .aligncenter,
.entry-content img.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #eee;
  margin-bottom: 1.625em;
  max-width: 96%;
  padding: 9px;
  text-align: center;
}

.wp-caption-text {
  color: #666;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  margin: 0.6em 0 0;
}

#primary::after,
.entry-content::after {
  clear: both;
  content: "";
  display: table;
}

#colophon {
  border-top: 1px solid #ddd;
  clear: both;
  color: #777;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  padding: 2em 7.6%;
}

.malmohus-test-notice {
  background: #fff8db;
  border-bottom: 1px solid #e5d58a;
  color: #5b4b00;
  font: 13px/1.4 Arial, sans-serif;
  padding: 8px 3.8%;
}

  @media (max-width: 760px) {
  body {
    padding: 0;
  }

  #page {
    margin: 0;
  }

  #branding,
  #main,
  #colophon {
    padding-left: 5%;
    padding-right: 5%;
  }

  #access li {
    display: block;
  }

  #access {
    padding: 0;
  }

  #main {
    display: block;
  }

  #secondary {
    margin-top: 3em;
  }
}
