* { margin: 0; padding: 0; }
body {
  font-size: 11pt;
  font-family: sans-serif;
  margin: 1rem 1rem 2rem 1rem;
  background-color: #fafafa;
  color: #111;
}
a {
  color: #222;
  text-decoration: underline;
  text-decoration-color: #d02529;
}
a:hover { color: #d02529; }
#head {
  margin: 0 auto;
  max-width: 1000px;
  min-width: 250px;
  min-height: 8rem;
  background-image: url('logo.png');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
}
#head img { display: none; }
#head h1 {
  font-size: 1.6rem;
  padding: 3rem 0 0.5rem 0;
}
#head h1 span {
  margin-top: -1.5rem;
  font-size: 1.5rem;
  line-height: 1.5rem;
  display: block;
}
#head > * { margin-right: 7.5rem; }
#head h1 a {
  text-decoration: none;
  color: inherit;
}
menu {
  padding: 0.5rem auto 1rem auto;
  list-style-type: none;
  line-height: 150%;
}
menu li { display: inline; }
menu li:before { content: ' · '; }
menu li:first-child:before { content: ''; }
menu li a { text-decoration: none; }
menu li.current a { border-bottom: 0.2rem solid #d02529; }
#main {
  margin: 0 auto 2rem auto;
  max-width: 1000px;
  min-width: 250px;
}
#main h2, #main h3, #main h4, #main h5, #main h6 {
  margin: 1.5rem 0 0.5rem 0;
  position: relative;
}
#main h2 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid #d02529;
}
#main h2:first-of-type { margin-top: 0; }
#main h3 {
  font-size: 1.5rem;
  font-weight: normal;
}
@keyframes hilite-target {
  0% { background-color: transparent; }
  20% { background-color: #ffc; }
  60% { background-color: #ffc; }
  100% { background-color: transparent; }
}
#main h2 a:target, #main h3 a:target, #main h4 a:target, #main h5 a:target, #main h6 a:target {
  position: absolute;
  display: block;
  height: 100%;
  padding: 0.5rem;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  z-index: -1;
  height: 100%;
  animation-duration: 4.2s;
  animation-name: hilite-target;
}
@supports not (animation-name: hilite-target) {
  #main h2 a:target, #main h3 a:target, #main h4 a:target, #main h5 a:target, #main h6 a:target { background-color: #ffc; }
}
#main h4 {
  font-size: 1.3rem;
  font-weight: bold;
}
#main h5 {
  font-size: 1.3rem;
  font-weight: normal;
}
#main h6 {
  font-size: 1.1rem;
  font-weight: bold;
}
#main h2 a, #main h3 a, #main h4 a, #main h5 a, #main h6 a {
  text-decoration: inherit;
  color: inherit;
  font-size: inherit;
}
#main p, #main ul, #main ol {
  margin: 0 0 1rem 0;
  line-height: 150%;
  text-align: justify;
}
#content > p:last-child, #content > ul:last-child, #content > ol:last-child { margin-bottom: 0; }
#main p + ul, #main p + ol { margin-top: -0.5rem; }
#main ul, #main ol {
  padding-left: 2rem;
  display: table;
}
#main ul li, #main ol li { margin-top: 0.5rem; }
#main ul li p, #main ol li p, #main { margin-bottom: 0.5rem; }
#main ul li:first-child, #main ol li:first-child { margin-top: 0; }
#main li ul li:first-child, #main li ol li:first-child { margin-top: 0.5rem; }
#main hr {
  width: 80%;
  margin: 1rem auto;
  border: none;
  border-top: 1px solid #aaa;
  height: 0;
  clear: both;
}
#main .hidden { display: none; }
#main .floatleft { float: left; }
#main .floatright { float: right; }
#main .centered {
  display: block;
  text-align: center;
}
#main a.nodec { text-decoration: none; }
#main table {
  width: 100%;
  border-top: 2px solid #aaa;
  border-bottom: 2px solid #aaa;
}
#main table tr th {
  font-weight: normal;
  text-align: left;
  font-style: italic;
  border-bottom: 1px solid #aaa;
  padding: 0.25rem 0;
}
#main table tr td {
  border-bottom: 1px solid #ddd;
  padding: 0.25rem 0;
}
#main table tr:last-child td { border-bottom: none; }
#main article {
  clear: both;
  background: #eee;
  border: 1px solid #aaa;
  padding: 1rem;
  margin-top: 1.5rem;
}
#main article header { margin-bottom: 1rem; }
#main article header h2 {
  font-size: 1.3rem;
  border-bottom: none;
  margin-bottom: 0;
}
#main article header time {
  color: #666;
  font-size: 0.9rem;
  text-align: right;
}
#main article p:last-child, #main article ul:last-child, #main article ol:last-child { margin-bottom: 0; }
#cigala_footer { display:none; }
@media (max-width: 500px) {
  #head { background: none !important; }
  #head > * { margin-right: 0; }
  #head h1 { padding-top: 1rem; }
  #head h1 span { margin-top: 0rem; }
  menu li { display: block; }
  menu li:before { content: ''; }
  menu li a {
    display: block;
    font-size: 1rem !important;
    padding: 0.2rem 0.5rem;
    background-position: 0 0.35rem !important;
  }
  menu li.current a {
    color: #fff;
    background-color: #d02529;
  }
  #main { margin-top: 0.5rem; }
  #main img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem auto !important;
  }
  #main .floatright, #main .floatleft {
    float: none;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
