:root {
  --uw-red: #c5050c;
  --uw-dark-red: #9b0000;
  --uw-gray: #646569;
  --uw-light-gray: #f7f7f7;
  --uw-link-blue: #0479a8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  color: #494949;
  background-color: var(--uw-light-gray);
  -webkit-text-size-adjust: 100%;
}

/* Link styles */
a {
  color: var(--uw-link-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--uw-link-blue);
}

.tab-container {
  border: 1px solid var(--uw-gray);
  border-radius: 4px;
  padding: 20px;
  margin-top: 0px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  min-height: 40px;
  margin-bottom: 20px;
  display: block;
}

.tab-button {
  padding: 0 12px; 
  display: inline-block;
  padding: 8px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  border: none;
  background: var(--uw-light-gray);
  cursor: pointer;
  border-radius: 4px;
  color: var(--uw-gray);
  font-size: 14px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

.tab-button:hover {
  background: #e7e7e7;
}

.tab-button.active {
  background: var(--uw-link-blue);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

h1:first-of-type {
  color: var(--uw-red);
  padding-bottom: 0em;
  font-size: 1.8em;
  word-wrap: break-word;
}

/* Style for h1 elements in markdown content */
.tab-content h1 {
  color: var(--uw-red);
  border-bottom: 3px solid var(--uw-red);
  padding-bottom: 0.3em;
  font-size: 1.8em;
  word-wrap: break-word;
}

.last-updated {
  margin-top: 40px;
  text-align: right;
  font-size: 0.8em;
  color: var(--uw-gray);
  opacity: 0.8;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }

  .tab-container {
    padding: 15px;
  }

  .tab-button {
    padding: 6px 10px;
    font-size: 13px;
  }
}