/* Santi Haex - personal encyclopedia profile
   Wikipedia Vector 2022 inspired styling. Self-contained, no external fonts. */

:root {
  --link: #0645ad;
  --link-visited: #0b0080;
  --link-red: #ba0000;
  --border: #a2a9b1;
  --border-light: #c8ccd1;
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --text: #202122;
  --serif: "Linux Libertine", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: var(--link-visited); }

/* Site header bar */
.site-header {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f8f9fa 0 38%, transparent 39%),
    conic-gradient(#54595d 0 25%, #c8ccd1 0 50%, #54595d 0 75%, #c8ccd1 0 100%);
  border: 1px solid var(--border);
  align-self: center;
  flex: none;
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
}
.logo-sub {
  font-style: italic;
  color: #54595d;
  font-size: 0.78rem;
}

/* Page wrapper */
.page {
  max-width: 1200px;
  margin: 0 auto;
}
.content {
  padding: 16px 24px 48px;
}

/* Title block */
.firstHeading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0 0 0.1em;
  padding: 0;
}
.siteSub {
  font-style: italic;
  font-size: 0.8125rem;
  color: #54595d;
}
.contentSub {
  font-size: 0.78rem;
  color: #72777d;
  margin-top: 1px;
}
.title-rule {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 4px 0 14px;
}

/* Body content can wrap the infobox */
.body-content::after {
  content: "";
  display: block;
  clear: both;
}

.body-content p {
  margin: 0 0 0.6em;
}

/* Infobox */
.infobox {
  float: right;
  clear: right;
  width: 22em;
  max-width: 100%;
  margin: 0 0 1em 1.4em;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.infobox-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.infobox-image {
  text-align: center;
  padding: 12px 10px 8px;
}
.avatar {
  width: 150px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8eaed 0%, #d3d7dc 100%);
  border: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: #72777d;
  letter-spacing: 2px;
}
.infobox-caption {
  font-size: 0.78rem;
  color: #54595d;
  margin-top: 6px;
  padding: 0 4px;
}
.infobox-table {
  width: 100%;
  border-collapse: collapse;
}
.infobox-table th,
.infobox-table td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-top: 1px solid var(--border-light);
}
.infobox-table th {
  width: 35%;
  font-weight: 700;
  padding-right: 10px;
}

/* Hatnote */
.hatnote {
  font-style: italic;
  padding: 4px 0 4px 1.6em;
  margin-bottom: 0.8em;
  color: #202122;
  font-size: 0.875rem;
}

/* Table of contents */
.toc {
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  padding: 8px 14px 12px;
  margin: 0 0 1.2em;
  font-size: 0.8125rem;
}
.toc-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
}
.toc-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0;
}
.toc-toggle {
  background: none;
  border: none;
  color: var(--link);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0;
}
.toc-toggle:hover { text-decoration: underline; }
.toc-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.toc-list ul {
  list-style: none;
  margin: 0;
  padding-left: 1.6em;
}
.toc-list li { margin: 4px 0; }
.toc-num {
  color: var(--text);
  margin-right: 0.5em;
}
.toc-list.toc-hidden { display: none; }

/* Section headings */
.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin: 1em 0 0.5em;
  clear: none;
}
.subsection-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0.9em 0 0.4em;
}

/* Edit section markers */
.mw-editsection {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.6em;
  color: #54595d;
  white-space: nowrap;
}
.mw-editsection a { color: var(--link); }

/* References */
sup.reference {
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: super;
}
.references {
  font-size: 0.8125rem;
  line-height: 1.6;
  padding-left: 2em;
  margin: 0.4em 0;
}
.references li {
  margin-bottom: 4px;
}
.cite-backlink {
  margin-right: 4px;
}
.cite-backlink a { font-weight: 700; }

/* Lists */
.see-also-list,
.external-links {
  margin: 0.3em 0 0.8em;
  padding-left: 1.6em;
}
.see-also-list li,
.external-links li {
  margin-bottom: 3px;
}

/* Footer meta */
.footer-meta {
  margin-top: 2.4em;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: #72777d;
}

/* Responsive: collapse infobox above content on mobile */
@media (max-width: 720px) {
  .content { padding: 12px 14px 36px; }
  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 1.2em;
  }
  .hatnote { padding-left: 0; }
  .firstHeading { font-size: 1.6rem; }
  .toc { display: block; }
}
