/*
| Minimalist Dark Theme v1.0
| Based on mu framework v0.3.1
*/

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

body {
  font: 18px/1.6 Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: normal;
  margin: 40px auto;
  max-width: 640px;
  color: #ccc;
  background: #000;
  padding: 0 20px;
  position: relative;
}

/* Vertical lines beside the text column */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 0.5ch;
  background: linear-gradient(to bottom, #a86a2f, #c4863d);
  opacity: 0.8;
  z-index: -1;
}

body::before {
  left: calc(50% - 360px - 2ch);
}

body::after {
  right: calc(50% - 360px - 2ch);
}

/* On mobile devices */
@media (max-width: 1000px) {
  body {
    margin: 20px auto;
  }
  body::before,
  body::after {
    display: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  margin: 0.8rem 0;
}

a:visited {
  color: #70a080; /* muted verdigris tone */
}

h1, h2, h3, h4, h5, h6 {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: normal;
  line-height: 1.3;
}

h1 {
  color: #ededed; /* bright silver-white */
  text-shadow: 1.5px 1.5px 0 rgba(160, 85, 30, 0.6); /* copper offset, no blur */
  font-size: 2.6em;
  text-align: center;
}

/* Progressive metallic gradient from silver to reddish gold */
h2 { color: #ccccaa; } /* light silver */
h3 { color: #e6d47a; } /* lemon */
h4 { color: #d4af37; } /* gold */
h5 { color: #b06e2f; } /* bright golden amber */
h6 { color: #b06e2f; } /* reddish gold (same as bars) */

/* Links use the h6 tone */
a {
  color: #c4863d;
  text-decoration: none;
}

a:hover {
  color: #e4a650;
  text-decoration: underline;
}

a {
  color: #c4863d;
  text-decoration: none;
}

a:hover {
  color: #e4a650;
  text-decoration: underline;
}

hr {
  border: 0;
  border-bottom: 1px solid #333;
  margin: 25px 0;
}


/* --- Menu Bar --- */

.menu-bar {
  display: flex;
  justify-content: center;   /* centers the <nav> horizontally */
  align-items: center;       /* vertically aligns content if multi-line */
  text-align: center;        /* ensures inline text alignment */
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: normal;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  color: #c4863d;
  margin: 0.5rem 0 2rem 0;
}

.menu-bar nav {
  display: inline-block;
  border-bottom: 2px solid #c4863d;
  padding-bottom: 0.4em;
}

.menu-bar a {
  color: #c4863d;
  text-decoration: none;
  padding: 0 0.4em;
  transition: color 0.2s ease;
}

.menu-bar a:hover {
  color: #e6d47a;
}

.menu-bar a:visited {
  color: #70a080;
}



button, select {
  background: #222;
  color: #ccc;
  border: 1px solid #444;
  padding: 9px 20px;
  font-size: 14px;
}

button:hover {
  background: #333;
  color: #e4a650;
}

input, table {
  font-size: 16px;
}

input, textarea {
  background: #111;
  color: #ddd;
  border: 1px solid #333;
  padding: 5px;
}

code, pre {
  background: #111;
  color: #e4a650;
  font-family: Consolas, "Courier New", monospace;
}

pre {
  padding: 8px;
  white-space: pre-wrap;
}

textarea {
  border-color: #444;
}

/*
| GRID
*/
.row {
  display: block;
  width: auto;
  min-height: 1px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.row .c {
  float: left;
}

/*
| Media queries
| Responsive grid, mobile first
*/
@media (min-width: 768px) {
  .g2 {
    width: 50%;
  }

  .m2 {
    margin-left: 50%;
  }

  .g3 {
    width: 33.33%;
  }

  .g3-2 {
    width: 66.66%;
  }

  .m3 {
    margin-left: 33.33%;
  }

  .m3-2 {
    margin-left: 66.66%;
  }
}
'


/* TABLES */


figure.table-figure {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

figure.table-figure {
  margin: 0;
  padding: 0;
  width: 100%;
}

figure.table-figure table {
  margin: 0;
  padding: 0;
}

 table:not(.fancy) {
  border-collapse: collapse;
  border-spacing: 0;
}

 table:not(.fancy) td,
 table:not(.fancy) th {
  padding: 2px 6px;
  line-height: 1.1;
}

 table:not(.fancy) td *,
 table:not(.fancy) th * {
  margin: 0;
}


table.fancy  {
  padding-top: 6px;
  table-layout: auto;
  margin-left: 0;
  margin-right: 0;
  border-collapse: collapse;
  width: 100%;
  overflow: auto;
  word-break: keep-all;
  
    
  /* top + bottom borders always present */
  border-top: 2pt solid #b06e2f;
  border-bottom: 2pt solid #b06e2f;
}

/* header */
table.fancy  thead {
  background: #b06e2f;
  color: white;
  vertical-align: middle;
  font-weight: bold;

}

/* zebra striping */
table.fancy  tbody tr:nth-child(2n) {
  background: #E6D47A;
}

table.fancy  tbody tr:nth-child(2n+1) {
  background: #ECDF9C;
}

table.fancy  tbody tr:hover {
  background: #d4af37; ;
}


/* Hide header row if it has exactly one <th> — treat as blank */
thead.headless {
  display: none;
  border-top: 2pt solid #b06e2f; /* optional top rule */
}

/* cells */
table.fancy  th,
table.fancy  td {
  width: auto;
  vertical-align: text-top;
  padding-left: 6px;
  padding-right: 6px;
  color: #000; /* optional: improves contrast on light rows */
  border-bottom: none; /* override default row borders */
}



/* Blockquotes */
blockquote {
  font-style: italic;
  color: #ccc; /* matches body text */
  margin: 1.5em 0;
  padding-left: 1em; /* optional: indent */
  border-left: 2px solid #c4863d; /* optional: subtle accent line */
}


