/* ==========================================================================
  HumanTooth's Wikipedia-Style CSS skin (No TOC version)
   ========================================================================== */

/* Wikipedia's h1/h2 font. Defaults to serif font if you don't have Linux Libertine
Linux Libertine is vailable on dafont.com 
Then convert to .woff on convertio.co and self-host 
Note: I placed mine in a sub-folder called 'fonts', which is reflected below. */

@font-face {
  font-family: 'Linux Libertine';
  src: url('fonts/LinLibertine_R.woff2') format('woff2'),
       url('fonts/LinLibertine_R.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* forces text to load first, even if font isnt applied */
}

@font-face {
  font-family: 'Linux Libertine';
  src: url('fonts/LinLibertine_RB.woff2') format('woff2'),
       url('fonts/LinLibertine_RB.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap; 
}


*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {

  font-family: sans-serif;
  font-size: 0.875rem;       
  line-height: 1.6;
  color: #202122;               
  background-color: #f8f9fa;    
  margin: 0;
}

/* ---------- Page Container ---------- */
/* Wrap your article in this div */
.mw-page {
  background-color: #ffffff;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25em 1.875em 2em;
  border-left: 1px solid #a7d7f9;
  border-right: 1px solid #a7d7f9;
  min-height: 100vh;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  margin: 0;
  padding: 0;
  font-weight: normal;
  overflow: hidden;
}


h1 {
  font-family: 'Linux Libertine', Georgia, 'Times New Roman', Times, serif;
  font-size: 1.8em;
  line-height: 1.3;
  margin-bottom: 0.25em;
  padding-top: 0;
  padding-bottom: 0.17em;
  border-bottom: 1px solid #a2a9b1;
}

h2 {
  font-family: 'Linux Libertine', Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5em;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.25em;
  padding-bottom: 0.17em;
  border-bottom: 1px solid #a2a9b1;
}


h3 { font-size: 1.2em;  font-weight: bold; margin-top: 0.3em; padding-bottom: 0; }
h4 { font-size: 1.0em;  font-weight: bold; margin-top: 0.3em; }
h5 { font-size: 0.95em; font-weight: bold; margin-top: 0.3em; }
h6 { font-size: 0.9em;  font-weight: bold; margin-top: 0.3em; }

/* website subtitle */
.site-sub {
  display: block;
  font-size: 0.92em;
  color: #54595d;
  margin-bottom: 1.2em;
}

/* ---------- Paragraphs & Body Text ---------- */
p {
  margin: 0.5em 0 0.5em 0;
}

/* ---------- Links ---------- */
a {
  color: #0645ad;               
  text-decoration: none;
  background: none;
}

a:visited {
  color: #0b0080;               
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:active {
  color: #faa700;               
}

/* redlinks (pages that "don't exist") */
a.redlink         { color: #ba0000; }
a.redlink:visited { color: #a55858; }

/* external links (+ icon) */
a.external {
  color: #3366bb;
  /* Inline SVG recreates WP's little external-link arrow */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%233366bb' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 13px;
}

/* ---------- Citation Brackets [superscript] ---------- */

.cite {
  font-size: 0.75em;
  line-height: 1;
  vertical-align: super;
  white-space: nowrap;
  unicode-bidi: isolate;
  color: #0645ad;              
}

.cite::before { content: "["; }
.cite::after  { content: "]"; }

/* Hatnote is the "This article is about X. For Y, see Z." line */
.hatnote {
  font-style: italic;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
  color: #54595d;
  font-size: 0.95em;
}

/* ---------- Table of Contents ---------- */

.toc {
  display: table;             
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 7px;
  margin: 1em 0;
  font-size: 0.95em;
}
.toc-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.3em;
}
.toc ol, .toc ul {
  list-style: none;
  margin: 0.3em 0;
  padding-left: 0;
  text-align: left;
}
.toc li { margin-bottom: 0.1em; }
.toc .tocnumber { color: #202122; padding-right: 0.5em; }

/* ---------- Infobox ---------- */

.infobox {
  float: right;
  clear: right;
  width: 22em;
  max-width: 100%;
  margin: 0.5em 0 1em 1em;
  padding: 0.2em;
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  font-size: 0.88em;
  line-height: 1.5em;
  border-spacing: 3px;
}
.infobox-title {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center;
  padding: 0.4em;
}

.infobox th,
.infobox td {
  vertical-align: top;
  border-top: 1px solid #eaecf0;
}
.infobox tr:first-child th,
.infobox tr:first-child td {
  border-top: none;
}


/* ---------- References Section ---------- */
.reflist {
  font-size: 0.9em;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  column-width: 30em; 
  column-gap: 2em;
}

ol.references {
  margin: 0;
  padding-left: 1.6em;
}

.references li {
  margin-bottom: 0.2em;
  word-wrap: break-word; 
}

/* The little back-arrow that jumps back up to the text */
.mw-cite-backlink a {
  color: #0645ad;
  font-family: sans-serif;
  font-weight: bold;
  text-decoration: none;
  padding-right: 0.2em;
}

.reference {
  font-size: 0.75em;
  line-height: 1;
  vertical-align: super;
  white-space: nowrap;
  unicode-bidi: isolate;
}


/* ---------- Misc elements ---------- */
hr {
  height: 1px;
  border: 0;
  background-color: #a2a9b1;
  margin: 0.25em 0;
}

blockquote {
  border-left: 4px solid #eaecf0;
  padding: 8px 32px;
  margin: 1em 0;
  color: #202122;
}

ul, ol { margin: 0.3em 0 0 1.6em; padding: 0; }
li     { margin-bottom: 0.1em; }

code, pre {
  font-family: 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}
code {
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  border-radius: 2px;
  padding: 1px 4px;
}
pre {
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 1em;
  line-height: 1.3;
  overflow-x: auto;
}

/* Poem-specific hatnote spacing */
.poem-line {
  margin-top: 0.1em;
  margin-bottom: 0.35em;
}

@media (max-width: 720px) {
  .mw-page { padding: 1em; border-left: none; border-right: none; }
  .infobox { float: none; width: 100%; margin: 1em 0; }
  h1 { font-size: 1.6em; }
}