body {
  padding: 0;
  margin: 0;
  font-family: 'Inter', 'Droid Sans', sans-serif;
  background: #f8f8f8;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a {color: #336699;}
a:hover {text-decoration: none; color: #003366;}
body.dark-mode {
  background: #101014;
  color: #e4e4e4;
}
body.dark-mode a {
  color: #66aaff;
}
body.dark-mode a:hover {
  color: #bcd8ff;
}
h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 4px;
}
#sidebar-subtitle {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
  margin: 0 0 12px;
}
body.dark-mode #sidebar-subtitle {
  color: #999;
}
#sidebar-photo {
  display: block;
  margin: 14px auto 0;
}
#contact-info {
  font-size: 13px;
  padding: 6px 14px 10px;
  line-height: 2;
}
#theme-toggle {
  display: inline-block;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: transparent;
  color: #555;
  cursor: pointer;
  margin-bottom: 14px;
}
#theme-toggle:hover,
#theme-toggle:focus {
  background: #eee;
  outline: none;
}
h2 {
  font-size: 17px;
  margin-top:30px;
  padding: 10px;
  text-align: left;
  background: #eee;
  color: #444;
}
body.dark-mode h2 {
  background: #1f1f28;
  color: #f0f0f0;
}
.local-links {
  font-size: 100%;
  margin: 10px 10px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  background: #eee;
  padding: 5px 0;
  border-radius: 4px;
  --fa-inverse: #666;
}
.local-links .fa-stack {
  width: 2em;
  flex-shrink: 0;
}
.local-links a {
  color: #eee;
}
.local-links a:hover {
  color: #ddd;
}
body.dark-mode .local-links {
  background: #1f1f28;
  --fa-inverse: #bbb;
}
body.dark-mode .local-links a {
  color: #1f1f28;
}
body.dark-mode .local-links a:hover {
  color: #2a2a38;
}
#fixed-bar {
  background: #fff;
  padding: 0;
  text-align: center;
}
body.dark-mode #theme-toggle {
  background: transparent;
  color: #ccc;
  border-color: #555;
}
body.dark-mode #theme-toggle:hover,
body.dark-mode #theme-toggle:focus {
  background: #2c2c39;
  color: #fff;
}
body.dark-mode #fixed-bar {
  background: #16161f;
  border-color: #333;
}
#fixed-content{
}
#fixed-content-inner{
  background: #fafafa;
}
body.dark-mode #fixed-content-inner {
  background: #181822;
}
hr {
  border: 0;
  border-top: 1px solid #ddd;
}
body.dark-mode hr {
  border-top-color: #333645;
}

.label {
  font-weight: normal;
  font-size: 65%;
}
.label-default {
  background: #aaa;
}
body.dark-mode .label-default {
  background: #555;
  color: #eee;
}

#connect {
  font-size: 160%;
  display: flex;
  justify-content: space-evenly;
  background: #eee;
  padding: 5px 0;
  border-radius: 4px;
  margin: 0 10px 10px;
}
#connect a {
  color: #666;
}
#connect a:hover {
  color: #333;
}
body.dark-mode #connect {
  background: #1f1f28;
}
body.dark-mode #connect a {
  color: #bbb;
}
body.dark-mode #connect a:hover {
  color: #eee;
}
#organization-logos {
  padding: 10px;
}
#organization-logos img {
  width: 100px;
  padding: 5px;
}
@media (min-width: 600px) {
 #fixed-bar{
  padding: 0;
  text-align: center;
  position: fixed;
  height: 100%;
  width: 270px;
  border-right: 1px dotted #aaa;
}
#fixed-content{
  position: relative;
  padding-left: 30px;
}
#fixed-content-inner{
  position:absolute;
  background: #fafafa;
  left: 270px;
}
 body.dark-mode #fixed-bar{
   border-right-color: #333;
 }
 body.dark-mode #fixed-content-inner{
   background: #181822;
 }
}
@media (max-width: 600px) {
  #fixed-bar{
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px dotted #aaa;
  }
  #fixed-content{

  }
  #fixed-content-inner{
    padding: 0px;
    position:inline;
    left: 0px;
  }
  body.dark-mode #fixed-bar{
    border-bottom-color: #333;
  }
}

ul.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 10px;
  margin: 0;
}
ul.tool-cards > li {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
ul.tool-cards > li > a:first-child,
ul.tool-cards > li > div:first-child {
  flex: 1;
  font-weight: 600;
}
ul.tool-cards > li > a:first-child {
  display: block;
}
small.tool-date {
  font-weight: normal;
  color: #999;
  font-size: 11px;
}
body.dark-mode small.tool-date {
  color: #666;
}
.tool-meta {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
}
body.dark-mode ul.tool-cards > li {
  background: #1e1e28;
  border-color: #303045;
}
