* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Pro', 'Linux Libertine', Georgia, 'Times New Roman', serif;
}

.wiki-link {
  color: #0645ad;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.wiki-link:hover {
  text-decoration: underline;
  color: #0b0080;
}

.wiki-link.red-link {
  color: #ba0000;
}

.wiki-link.red-link:hover {
  color: #a00000;
}

.tooltip-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  pointer-events: none;
}

.tooltip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #a2a9b1;
}

.article-body p {
  margin-bottom: 0.8em;
}

.article-body blockquote {
  border-left: 3px solid #a2a9b1;
  padding: 4px 12px;
  margin: 8px 0 8px 16px;
  color: #54595d;
  font-style: italic;
}

sup.reference {
  font-size: 0.75em;
  line-height: 0;
  cursor: pointer;
  color: #0645ad;
}

sup.reference:hover {
  color: #0b0080;
  text-decoration: underline;
}

.section-heading {
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 2px;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  cursor: pointer;
}

.section-heading h2 {
  font-size: 1.5em;
  font-weight: 400;
}

.section-heading h3 {
  font-size: 1.2em;
  font-weight: 400;
}

.edit-btn {
  font-size: 0.75em;
  color: #0645ad;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  background: none;
  border: none;
  padding: 0;
  font-weight: 400;
}

.edit-btn:hover {
  text-decoration: underline;
}

.infobox {
  float: right;
  clear: right;
  margin: 0 0 12px 16px;
  width: 280px;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
  background: #f8f9fa;
  font-size: 0.88em;
  line-height: 1.5;
}

.infobox-header {
  background: #2E8B57;
  color: white;
  text-align: center;
  padding: 6px 8px;
  font-size: 1.1em;
  font-weight: 700;
  font-family: 'Crimson Pro', Georgia, serif;
}

.infobox-image {
  text-align: center;
  padding: 6px;
  background: #fff;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.infobox-caption {
  text-align: center;
  font-size: 0.85em;
  color: #54595d;
  padding: 2px 6px 6px;
  font-style: italic;
}

.infobox-row {
  display: flex;
  border-top: 1px solid #ddd;
}

.infobox-label {
  background: #e8f5e9;
  padding: 4px 8px;
  font-weight: 600;
  width: 95px;
  flex-shrink: 0;
}

.infobox-data {
  padding: 4px 8px;
  background: #fff;
  flex: 1;
}

.toc-box {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 10px 14px;
  display: inline-block;
  margin: 0 0 12px 0;
  min-width: 200px;
  max-width: 100%;
}

.toc-box h2 {
  font-size: 1em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-box ol {
  margin: 0;
  padding-left: 24px;
}

.toc-box li {
  margin: 2px 0;
  font-size: 0.92em;
}

.toc-box a {
  color: #0645ad;
  text-decoration: none;
}

.toc-box a:hover {
  text-decoration: underline;
}

.ambox {
  border: 1px solid #c8ccd1;
  background: #fbfbfb;
  margin: 8px 0;
  padding: 0;
}

.ambox-header {
  background: #fee7e6;
  border-bottom: 1px solid #c8ccd1;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ambox-body {
  padding: 8px 10px;
  font-size: 0.88em;
}

.ambox-body ul {
  margin: 4px 0 0 20px;
}

.ambox-body li {
  margin: 2px 0;
}

.categories-bar {
  border-top: 1px solid #a2a9b1;
  padding: 8px 0;
  margin-top: 24px;
  font-size: 0.88em;
}

.categories-bar span.cat-label {
  font-weight: 600;
  margin-right: 4px;
}

.categories-bar a {
  color: #0645ad;
  text-decoration: none;
  margin-right: 8px;
}

.categories-bar a:hover {
  text-decoration: underline;
}

.greenpedia-banner {
  background: #fff;
  border-bottom: 1px solid #a2a9b1;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.greenpedia-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.greenpedia-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.6em;
  font-weight: 400;
  color: #202122;
}

.greenpedia-subtitle {
  font-size: 0.72em;
  color: #54595d;
  font-style: italic;
}

.lang-selector {
  margin-left: auto;
  font-size: 0.85em;
}

.lang-selector select {
  border: 1px solid #a2a9b1;
  background: #fff;
  padding: 2px 6px;
  font-size: 0.92em;
  border-radius: 2px;
}

.ref-list {
  font-size: 0.9em;
}

.ref-list li {
  margin: 4px 0;
  padding-left: 4px;
}

.last-edited {
  font-size: 0.8em;
  color: #72777d;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eaecf0;
}

@media (max-width: 768px) {
  .infobox {
    float: none;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 360px;
  }
  
  .greenpedia-banner {
    flex-wrap: wrap;
  }
  
  .lang-selector {
    margin-left: 62px;
    margin-top: -4px;
  }
}

.section-collapsed .section-content {
  display: none;
}

.collapse-indicator {
  font-size: 0.7em;
  color: #72777d;
  margin-left: 8px;
  transition: transform 0.2s;
}

.ref-back {
  color: #0645ad;
  text-decoration: none;
  font-size: 0.85em;
  cursor: pointer;
}

.ref-back:hover {
  text-decoration: underline;
}

.pixel-globe {
  image-rendering: pixelated;
}

.notable-clock-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.92em;
}

.notable-clock-table th {
  background: #e8f5e9;
  padding: 6px 10px;
  text-align: left;
  border: 1px solid #a2a9b1;
  font-weight: 600;
}

.notable-clock-table td {
  padding: 6px 10px;
  border: 1px solid #a2a9b1;
  vertical-align: top;
}

.notable-clock-table tr:nth-child(even) {
  background: #f8f9fa;
}

.see-also-list {
  columns: 2;
  -webkit-columns: 2;
  list-style: disc;
  padding-left: 20px;
}

.see-also-list li {
  margin: 2px 0;
}

@media (max-width: 600px) {
  .see-also-list {
    columns: 1;
  }
}