/* ==========================================================================
   Vampyre Almanac - style.css
   Template: "wide" three-column table layout, black / silver / periwinkle
   Last revised 11.05.2026
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: #c0c0c0;
  font-family: Arial, Verdana, sans-serif;
  font-size: small;            /* 13px in most browsers */
  line-height: 1.5;
}

a:link    { color: #728fce; text-decoration: none; }
a:visited { color: #5f78b3; text-decoration: none; }
a:hover   { color: #ffffff; text-decoration: underline; }
a:active  { color: #cc0000; }

img { border: 0; }

hr {
  border: 0;
  border-top: 1px dashed #333333;
  margin: 16px 0;
}

/* ---------- page frame ---------- */

#frame {
  width: 980px;
  margin: 0 auto;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  border-collapse: collapse;
}

#frame td { vertical-align: top; }

#masthead {
  padding: 0;
  border-bottom: 1px solid #990000;
  background: #000000;
}
#masthead img { display: block; width: 980px; height: 118px; }

#topbar {
  background: #0a0a0a;
  border-bottom: 1px solid #222222;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777777;
  padding: 3px 12px;
}
#topbar a { color: #999999; }
#topbar a:hover { color: #ffffff; }
#topbar .right { float: right; }
#topbar .warn { color: #cc0000; font-weight: bold; }

#leftnav   { width: 176px; background: #050505; border-right: 1px solid #1e1e1e; padding: 10px 0 20px 0; }
#content   { padding: 18px 24px 30px 24px; }
#rightbar  { width: 212px; background: #050505; border-left: 1px solid #1e1e1e; padding: 12px 10px 20px 10px; }

/* ---------- left navigation ---------- */

#leftnav h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #728fce;
  margin: 14px 0 4px 0;
  padding: 0 10px 3px 10px;
  border-bottom: 1px solid #262626;
}
#leftnav h3:first-of-type { margin-top: 0; }
#leftnav ul { list-style: none; margin: 0; padding: 0; }
#leftnav li a {
  display: block;
  padding: 3px 10px 3px 14px;
  font-size: 12px;
  color: #c0c0c0;
  border-left: 3px solid transparent;
}
#leftnav li a:hover { background: #111111; color: #ffffff; text-decoration: none; }
#leftnav li a.active { color: #ffffff; border-left-color: #990000; background: #0d0d0d; }
#leftnav li a .cnt { color: #728fce; font-size: 10px; }
#leftnav li a.ext { color: #ffffff; font-weight: bold; }
#leftnav .sigil { display: block; margin: 8px auto 2px auto; width: 96px; height: 96px; opacity: .85; }
#leftnav .motto {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 11px;
  color: #777777;
  margin: 0 0 6px 0;
}

/* ---------- content typography ---------- */

#content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 4px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #990000;
}
#content h1 small { font-family: Arial, Verdana, sans-serif; font-size: 11px; color: #777777; letter-spacing: 1px; text-transform: uppercase; display: block; margin-top: 2px; }
#content h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  color: #728fce;
  margin: 22px 0 6px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #262626;
}
#content h3 {
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  margin: 16px 0 4px 0;
}
#content h4 { font-size: 12px; color: #c0c0c0; margin: 12px 0 2px 0; text-transform: uppercase; letter-spacing: 1px; }
#content p { margin: 0 0 10px 0; }
#content h1 + p { margin-top: 12px; }   /* a page with no "updated" line under its title */
#content ul, #content ol { margin: 0 0 10px 22px; padding: 0; }
#content li { margin-bottom: 4px; }
#content .updated { font-size: 10px; color: #666666; text-align: right; margin: -2px 0 12px 0; }

.redquote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  color: #cc0000;
  text-align: center;
  margin: 14px 30px 6px 30px;
}
.redauthor { text-align: right; font-size: 11px; color: #990000; margin: 0 30px 16px 0; font-style: normal; }

blockquote {
  margin: 10px 24px 12px 24px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #333333;
  color: #a8a8a8;
  font-style: italic;
}

.note, .disclaimer {
  font-size: 11px;
  color: #8a8a8a;
  border: 1px dotted #444444;
  background: #070707;
  padding: 8px 10px;
  margin: 12px 0;
}
.disclaimer strong { color: #cc0000; }
.warn18 { color: #cc0000; font-weight: bold; }

.callout {
  border: 1px solid #333333;
  background: #0a0a0a;
  padding: 10px 14px;
  margin: 12px 0;
}
.callout h3 { margin-top: 0; }

dl.news dt { color: #ffffff; font-weight: bold; margin-top: 10px; }
dl.news dt .date { color: #728fce; font-weight: normal; font-size: 11px; margin-right: 6px; }
dl.news dd { margin: 2px 0 8px 0; }

dl.faq dt { color: #ffffff; font-weight: bold; margin: 14px 0 3px 0; }
dl.faq dt:before { content: "Q. "; color: #990000; }
dl.faq dd { margin: 0 0 6px 18px; }

dl.lex dt { color: #ffffff; font-weight: bold; margin-top: 10px; }
dl.lex dt .alt { color: #777777; font-weight: normal; font-size: 11px; }
dl.lex dd { margin: 0 0 4px 18px; }

.twocol { width: 100%; border-collapse: collapse; }
.twocol td { width: 50%; padding: 0 10px 0 0; vertical-align: top; }

/* a figure beside text: the first column is only as wide as its image, the text takes the rest */
.figcol { width: 100%; border-collapse: collapse; }
.figcol td { padding: 0; vertical-align: top; }
.figcol td.fig { width: 162px; padding-right: 22px; }
.figcol td.fig img { display: block; width: 160px; height: 160px; border: 1px solid #333333; margin: 2px 0 8px 0; }
/* nothing hangs below the last line of either column */
#content .figcol td > :last-child, #content .figcol li:last-child { margin-bottom: 0; }

table.data { border-collapse: collapse; width: 100%; margin: 8px 0 14px 0; font-size: 12px; }
table.data th { background: #111111; color: #728fce; text-align: left; padding: 4px 8px; border: 1px solid #333333; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
table.data td { padding: 4px 8px; border: 1px solid #262626; vertical-align: top; }
table.data tr:nth-child(even) td { background: #070707; }
table.data td.num { text-align: right; font-family: "Courier New", monospace; color: #ffffff; white-space: nowrap; }
/* the lunar table is five no-wrap columns; kept tight so it fits the content column */
table.lunar th, table.lunar td { padding-left: 5px; padding-right: 5px; }
table.lunar td.num { word-spacing: -3px; }

.press li { margin-bottom: 9px; }
.press .src { color: #888888; font-size: 11px; display: block; }
.press .url { color: #556b9e; font-size: 10px; display: block; word-break: break-all; }

.docs { margin: 8px 0; }
.docs a { display: inline-block; margin: 0 14px 6px 0; font-size: 11px; }
.docs img { vertical-align: middle; margin-right: 4px; width: 16px; height: 16px; }

.member { border-top: 1px dashed #333333; padding: 12px 0; }
.member:first-of-type { border-top: 0; }
.member .name { color: #ffffff; font-weight: bold; font-size: 14px; }
.member .role { color: #728fce; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.member .meta { font-size: 11px; color: #888888; margin: 2px 0 6px 0; }
.member .memoriam { color: #990000; font-size: 11px; }

.article { border-top: 1px dashed #333333; padding-top: 12px; margin-top: 18px; }
.article .meta { font-size: 11px; color: #888888; margin-bottom: 8px; }
.article .meta b { color: #c0c0c0; }

.gb-entry { border-bottom: 1px dotted #333333; padding: 8px 0; font-size: 12px; }
.gb-entry .who { color: #ffffff; font-weight: bold; }
.gb-entry .when { color: #728fce; font-size: 10px; }
.gb-entry .from { color: #888888; font-size: 11px; }

form.oldform { border: 1px solid #333333; background: #070707; padding: 10px 14px; margin: 10px 0; }
form.oldform label { display: block; margin-top: 8px; font-size: 11px; color: #999999; text-transform: uppercase; letter-spacing: 1px; }
form.oldform input[type=text], form.oldform input[type=email], form.oldform textarea, form.oldform select {
  width: 95%; background: #000000; color: #dddddd; border: 1px solid #444444; padding: 3px 5px; font-family: Arial, Verdana, sans-serif; font-size: 12px;
}
form.oldform textarea { height: 90px; }
form.oldform input[type=submit], form.oldform button, .btn {
  display: inline-block; margin-top: 10px; background: #1a0000; color: #ffffff; border: 1px solid #990000;
  padding: 4px 14px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
}
form.oldform input[type=submit]:hover, form.oldform button:hover, .btn:hover { background: #330000; text-decoration: none; color: #ffffff; }
textarea.code { width: 95%; height: 56px; font-family: "Courier New", monospace; font-size: 10px; background: #000; color: #aaa; border: 1px solid #444; }

/* quiz */
.quiz ol { list-style: none; margin: 0; }
.quiz li { border-bottom: 1px dotted #2a2a2a; padding: 7px 0; }
.quiz .q { color: #dddddd; }
.quiz .opts { font-size: 11px; color: #999999; margin-top: 3px; }
.quiz .opts label { margin-right: 14px; cursor: pointer; }
#quiz-result { display: none; }
#quiz-result .score { font-family: Georgia, serif; font-size: 26px; color: #ffffff; }
#quiz-result .band { color: #cc0000; font-weight: bold; }

/* forum board index */
table.forum { border-collapse: collapse; width: 100%; font-size: 12px; }
table.forum th { background: #111111; color: #728fce; padding: 5px 8px; border: 1px solid #333333; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
table.forum td { padding: 6px 8px; border: 1px solid #222222; vertical-align: top; }
table.forum td.cat { background: #0d0d0d; color: #ffffff; font-weight: bold; font-family: "Trebuchet MS", Arial, sans-serif; letter-spacing: 1px; }
table.forum .desc { color: #888888; font-size: 11px; }
table.forum .num { text-align: center; font-family: "Courier New", monospace; color: #ffffff; }
table.forum .last { font-size: 10px; color: #888888; }
table.forum .lock { color: #990000; font-size: 10px; }

/* ---------- right sidebar ---------- */

.box {
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  margin-bottom: 12px;
}
.box h4 {
  margin: 0;
  padding: 4px 8px;
  background: #111111;
  border-bottom: 1px solid #2a2a2a;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #728fce;
}
.box .in { padding: 8px; font-size: 11px; color: #aaaaaa; }
.box .in p { margin: 0 0 6px 0; }
.box img.banner { display: block; width: 190px; height: auto; margin: 0 auto; }
.box .stat { display: block; text-align: center; font-size: 11px; }
.box .stat b { color: #ffffff; font-family: "Courier New", monospace; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li { padding: 2px 0; border-bottom: 1px dotted #222222; }
.box li:last-child { border-bottom: 0; }

#online-count, #counter { text-align: center; }

.counter { display: inline-block; margin: 4px auto 2px auto; }
.counter span {
  display: inline-block; width: 13px; height: 18px; line-height: 18px; text-align: center;
  background: #111111; border: 1px solid #3a3a3a; color: #ffffff; font-family: "Courier New", monospace; font-size: 13px; margin-right: 1px;
}
.counter-label { font-size: 9px; color: #666666; text-transform: uppercase; letter-spacing: 1px; }

#moon { text-align: center; }
#moon svg { display: block; margin: 2px auto 4px auto; }
#moon .phase { color: #ffffff; font-size: 11px; }
#moon .illum { color: #777777; font-size: 10px; }

.poll label { display: block; font-size: 11px; cursor: pointer; padding: 1px 0; }
.poll .bar { height: 7px; background: #728fce; margin: 2px 0 5px 0; }
.poll .pct { color: #ffffff; font-family: "Courier New", monospace; font-size: 10px; margin-left: 4px; }
.poll .total { color: #666666; font-size: 10px; text-align: right; }

.social { text-align: center; }
.social img { width: 26px; height: 26px; margin: 0 3px; vertical-align: middle; }

.candle { text-align: center; margin: 4px 0 2px 0; }
.candle svg { width: 36px; height: 60px; }
.candle .flame { transform-origin: 50% 90%; animation: flicker 1.6s infinite ease-in-out; }
@keyframes flicker {
  0%   { transform: scaleY(1) scaleX(1); opacity: 1; }
  30%  { transform: scaleY(1.08) scaleX(.94) rotate(-2deg); opacity: .92; }
  55%  { transform: scaleY(.95) scaleX(1.05) rotate(2deg); opacity: 1; }
  80%  { transform: scaleY(1.04) scaleX(.97) rotate(-1deg); opacity: .95; }
  100% { transform: scaleY(1) scaleX(1); opacity: 1; }
}
.welcome { text-align: center; font-family: Georgia, serif; font-style: italic; font-size: 12px; color: #999999; }

/* ---------- footer ---------- */

#footer {
  border-top: 1px solid #333333;
  background: #050505;
  padding: 14px 20px 18px 20px;
  text-align: center;
  font-size: 10px;
  color: #777777;
  line-height: 1.7;
}
#footer .legal { color: #666666; }
#footer .admin { color: #888888; }
#footer .admin b { color: #aaaaaa; }
.flags { margin: 8px 0 4px 0; }
.flags span {
  display: inline-block; width: 18px; height: 12px; margin: 1px; border: 1px solid #444444; vertical-align: middle;
  font-size: 7px; line-height: 12px; color: #ffffff; text-align: center; font-family: Arial, sans-serif; font-weight: bold; letter-spacing: 0;
  background: #223;
}
.flags span.a { background: linear-gradient(#b22 50%, #fff 50%); color: #000; }
.flags span.b { background: linear-gradient(90deg, #138 33%, #fff 33%, #fff 66%, #b22 66%); color: #000; }
.flags span.c { background: linear-gradient(#000 33%, #c00 33%, #c00 66%, #fc0 66%); }
.flags span.d { background: linear-gradient(#c00 25%, #fc0 25%, #fc0 75%, #c00 75%); color: #000; }
.flags span.e { background: linear-gradient(90deg, #080 33%, #fff 33%, #fff 66%, #c00 66%); color: #000; }
.flags span.f { background: linear-gradient(#fff 33%, #138 33%, #138 66%, #c00 66%); color: #000; }
.flags span.g { background: linear-gradient(90deg, #080 50%, #c00 50%); }
.flags span.h { background: linear-gradient(#138 50%, #fc0 50%); }
.flags span.i { background: linear-gradient(#fff 50%, #c00 50%); color: #000; }
.flags span.j { background: linear-gradient(#fff, #fff); color: #c00; }
.flags span.k { background: #06c; color: #fc0; }
.flags span.l { background: linear-gradient(#c00 33%, #fff 33%, #fff 66%, #080 66%); color: #000; }
.flags span.m { background: linear-gradient(#c00 33%, #fff 33%, #fff 66%, #138 66%); }

.webring { text-align: center; font-size: 10px; border: 1px solid #333; background: #070707; padding: 6px; margin: 14px 0; }
.webring b { color: #ffffff; letter-spacing: 1px; }

.small { font-size: 11px; color: #999999; }
.tiny  { font-size: 10px; color: #777777; }
.white { color: #ffffff; }
.red   { color: #cc0000; }
.center { text-align: center; }
.right  { text-align: right; }

/* ---------- small screens ----------
   Nothing here applies at 1000px and wider, where the frame is the 980px
   table described above. Below that the frame stops behaving as a table:
   700-999px keeps the navigation beside the content and moves the sidebar
   underneath; under 700px the columns stack and site.js folds the navigation
   behind a "Site Menu" button. */

.navtoggle { display: none; }

@media screen and (max-width: 999px) {
  #frame, #frame > tbody { display: block; width: auto; }
  #frame { border-left: 0; border-right: 0; }
  #frame > tbody > tr { display: flex; flex-wrap: wrap; }
  #frame > tbody > tr > td { display: block; box-sizing: border-box; }
  #masthead, #topbar, #footer, #rightbar { flex: 0 0 100%; width: 100%; }
  #masthead img { width: 100%; height: auto; }
  #topbar { overflow: hidden; }
  #leftnav { flex: 0 0 177px; width: 177px; }
  #content { flex: 1 1 0%; min-width: 0; overflow-wrap: break-word; }
  #content img { max-width: 100%; height: auto !important; }
  #rightbar {
    border-left: 0; border-top: 1px solid #1e1e1e;
    -webkit-column-count: 3; column-count: 3; -webkit-column-gap: 12px; column-gap: 12px;
  }
  #rightbar > * { -webkit-column-break-inside: avoid; break-inside: avoid; }
  /* wide tables scroll inside the column instead of stretching the page */
  table.data, table.forum { display: block; overflow-x: auto; }
  table.data > tbody, table.forum > tbody { display: table; width: 100%; }
}

@media screen and (max-width: 799px) {
  /* the two halves of the top bar no longer fit on one line */
  #topbar { text-align: center; line-height: 1.9; padding: 4px 8px; }
  #topbar .right { float: none; display: block; text-align: center; }
}

@media screen and (max-width: 699px) {
  #frame > tbody > tr { display: block; }

  /* navigation: folded behind the button while site.js is running, open if it is not */
  #leftnav { width: auto; padding: 0; border-right: 0; border-bottom: 1px solid #1e1e1e; }
  .navtoggle {
    display: block; width: 100%; margin: 0; padding: 12px 14px; cursor: pointer;
    background: #0d0d0d; color: #ffffff; border: 0; border-bottom: 1px solid #262626;
    font-family: "Trebuchet MS", Arial, sans-serif; font-size: 12px; font-weight: bold;
    letter-spacing: 2px; text-transform: uppercase; text-align: left;
  }
  .navtoggle:after { content: "+"; float: right; color: #728fce; }
  .navtoggle[aria-expanded="true"]:after { content: "\2013"; }
  .js #leftnav > h3, .js #leftnav > ul, .js #leftnav > .sigil, .js #leftnav > .motto { display: none; }
  .js #leftnav.open > h3, .js #leftnav.open > ul, .js #leftnav.open > .sigil, .js #leftnav.open > .motto { display: block; }
  #leftnav h3:first-of-type { margin-top: 12px; }
  #leftnav ul { -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 0; column-gap: 0; }
  #leftnav li { -webkit-column-break-inside: avoid; break-inside: avoid; }
  #leftnav li a { padding: 9px 10px 9px 14px; font-size: 14px; }
  #leftnav .motto { margin-bottom: 14px; }

  /* content: larger type, tighter margins, nothing wider than the screen */
  #content { padding: 14px 14px 24px 14px; font-size: 15px; }
  #content h2 { font-size: 17px; }
  #content h3 { font-size: 15px; }
  #content h4 { font-size: 13px; }
  .note, .disclaimer, .small { font-size: 13px; }
  .redquote { margin-left: 8px; margin-right: 8px; }
  .redauthor { margin-right: 8px; }
  blockquote { margin-left: 8px; margin-right: 8px; }
  #content p > img[style*="float"] { float: none !important; display: block; margin: 0 auto 10px auto !important; }
  .twocol, .twocol > tbody, .twocol > tbody > tr, .twocol > tbody > tr > td,
  .figcol, .figcol > tbody, .figcol > tbody > tr, .figcol > tbody > tr > td { display: block; width: auto !important; padding-right: 0; }
  .figcol td.fig { padding: 0 0 12px 0; text-align: center; }
  .figcol td.fig img { margin-left: auto; margin-right: auto; }
  form.oldform input[type=text], form.oldform input[type=email], form.oldform textarea, form.oldform select { width: 100%; box-sizing: border-box; font-size: 16px; }
  form.oldform input[type=password] { width: 100% !important; box-sizing: border-box; font-size: 16px !important; }
  .quiz .opts { font-size: 14px; }
  .quiz .opts label { display: inline-block; padding: 5px 0; }

  /* sidebar and footer */
  #rightbar { -webkit-column-count: 2; column-count: 2; }
  .box .in, .box .stat, .poll label, #moon .phase { font-size: 13px; }
  .poll label { padding: 4px 0; }
  #footer { padding: 14px 12px 18px 12px; font-size: 11px; }
}

@media screen and (max-width: 479px) {
  #rightbar { -webkit-column-count: 1; column-count: 1; }
}

/* ---------- print: black on white, content only ---------- */
@media print {
  html, body { background: #fff; color: #000; }
  #leftnav, #rightbar, #topbar, #masthead img, .flags, .navtoggle { display: none; }
  #frame, #frame > tbody, #frame > tbody > tr, #masthead, #content, #footer { display: block; width: auto; }
  #frame { border: 0; }
  #masthead { background: none; border-bottom: 2px solid #000; padding: 0 0 4pt 0; margin: 0 0 10pt 0; }
  #masthead a:after {
    content: "Vampyre Almanac"; color: #000;
    font-family: Georgia, "Times New Roman", serif; font-size: 18pt; letter-spacing: 2pt; text-transform: uppercase;
  }
  #masthead:after { content: "vampyrealmanac.com"; display: block; font-size: 8pt; letter-spacing: 1pt; color: #444; }
  #content { padding: 0; }
  #footer { background: none; border-top: 1px solid #999; margin-top: 14pt; padding: 6pt 0 0 0; text-align: left; }
  /* every colour on the site assumes a black page; on paper all of it prints black */
  #content, #content *, #footer, #footer * { color: #000 !important; background: transparent !important; }
  #content h1 { border-bottom-color: #000; }
  #content h2, hr, blockquote, .note, .disclaimer, .callout, .member, .article, .gb-entry, form.oldform,
  table.data th, table.data td, table.forum th, table.forum td { border-color: #999 !important; }
  #content p > img[style*="float"] { display: none; }
  h1, h2, h3, h4, dt { page-break-after: avoid; break-after: avoid; }
  table.data tr, table.forum tr, table.lunar, .member, .gb-entry, .callout, .note, .disclaimer, blockquote, img { page-break-inside: avoid; break-inside: avoid; }
}
