/* ==========================================================================
   Chris Wewerka - Consolidated Stylesheet
   Merged from legacy Joomla Milky Way template (black theme)
   ========================================================================== */

/* --- Core Setup --- */
html {
  height: 100%;
  margin-bottom: 1px;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.4em;
  margin: 0;
  font-size: 13px;
  color: #e0e0e0;
  /* Dark Mode Text */
  background: #0d0d0d;
  /* Dark Mode Background */
  padding: 10px 0;
}

a:link,
a:visited {
  text-decoration: none;
  font-weight: normal;
  color: #66b3ff;
  /* Lighter Blue for Dark Mode */
}

a:hover {
  text-decoration: underline;
  font-weight: normal;
  color: #99ccff;
}

p {
  margin-top: 0;
  margin-bottom: 5px;
}

img {
  border: 0 none;
}

/* --- Layout --- */
div.center {
  text-align: center;
}

div#wrapper {
  margin-left: auto;
  margin-right: auto;
  min-width: 750px;
  max-width: 1050px;
  background: #1a1a1a;
  /* Dark content background */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  border-radius: 10px;
  position: relative;
  /* Context for light cone */
  overflow: hidden;
  /* Contain light cone */
}

/* Light Cone Effect */
/* Light Cone Effect - Refined */
div#wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  /* Conic gradient to simulate a beam, radial gradient to fade it out */
  background: radial-gradient(circle at 120px 50px, rgba(255, 245, 200, 0.25) 0%, rgba(255, 245, 200, 0) 50%);
  filter: blur(15px);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
}

div#wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  /* Beam definition */
  background: conic-gradient(from 140deg at 120px 50px, transparent 0deg, rgba(255, 245, 200, 0.15) 15deg, transparent 30deg);
  filter: blur(20px);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
}

div#wrapper_r {
  /* Removed legacy background */
}

/* --- Header --- */
div#header {
  /* Removed legacy background */
  position: relative;
}

div#header_l {
  /* Removed legacy background */
  position: relative;
}

div#header_r {
  height: 90px;
  padding-left: 370px;
  padding-right: 30px;
  padding-top: 25px;
  overflow: hidden;
  text-align: left;
  /* Removed legacy background */
}

div#logo {
  position: absolute;
  left: 0;
  top: 0;
  float: left;
  width: 158px;
  height: 95px;
  background: url(../img/theme/desklamp.png) 0 0 no-repeat;
  margin-left: 30px;
  margin-top: 25px;
  z-index: 1000;
}

/* --- Tab Area / Navigation Bar --- */
div#tabarea {
  margin: 0 11px;
  border-bottom: 1px solid #444;
}

div#tabarea_l {
  padding-left: 32px;
}

div#tabarea_r {
  height: 42px;
  padding-right: 1px;
}

/* --- Pill Menu --- */
table.pill {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

td.pill_l {
  width: 20px;
  height: 32px;
}

td.pill_m {
  padding: 0;
  margin: 0;
  width: auto;
}

td.pill_r {
  width: 19px;
  height: 32px;
}

#pillmenu {
  white-space: nowrap;
  height: 32px;
  float: left;
}

#pillmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#pillmenu li {
  float: left;
  border-right: 1px solid #444;
  margin: 0;
  padding: 0;
}

#pillmenu li:last-child {
  border-right: none;
}

#pillmenu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  float: left;
  display: block;
  height: 24px;
  line-height: 24px;
  padding: 0 20px;
  color: #ccc;
  text-decoration: none;
}

#pillmenu a:hover {
  color: #135cae;
}

#pillmenu a#active_menu-nav {
  margin-top: 2px;
  height: 21px;
  line-height: 21px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
}

#pillmenu a#active_menu-nav:hover {
  color: #fff;
}

/* --- Content Area --- */
#whitebox {
  margin: 0 21px;
  background: transparent;
  width: auto;
}

#whitebox div {
  text-align: left;
}

#whitebox_t {
  /* Removed background */
}

#whitebox_tl {
  /* Removed background */
}

#whitebox_tr {
  height: 10px;
  overflow: hidden;
  /* Removed background */
}

#whitebox_m {
  border-left: none;
  border-right: none;
  width: auto;
  padding: 1px 8px;
}

#whitebox_b {
  margin-top: -5px;
  /* Removed background */
}

#whitebox_bl {
  /* Removed background */
}

#whitebox_br {
  height: 13px;
  /* Removed background */
}

/* --- Columns --- */
#area {
  padding: 0;
}

#leftcolumn {
  padding: 0;
  margin: 0;
  width: 20%;
  float: left;
}

#maincolumn {
  margin-left: 20%;
  padding-left: 15px;
  width: 75%;
}

#leftcolumn div.module {
  padding: 0 10px;
}

#leftcolumn div.module table {
  width: auto;
}

/* --- Footer --- */
div#footer {
  /* Removed background */
  border-top: 1px solid #333;
}

div#footer_l {
  /* Removed background */
}

div#footer_r {
  padding-top: 10px;
  height: 47px;
  overflow: hidden;
  /* Removed background */
}

div#footer_r div {
  text-align: center;
  font-size: .90em;
  color: #aaa;
}

div#footer_r a:link,
div#footer_r a:visited {
  color: #999;
}

div#footerspacer {
  height: 10px;
}

#syndicate {
  float: left;
  padding-left: 25px;
}

/* --- Typography --- */
h1 {
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  vertical-align: bottom;
  color: #fff;
  text-align: left;
  width: 100%;
}

h2,
.contentheading {
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6em;
  font-weight: normal;
  vertical-align: bottom;
  color: #eee;
  text-align: left;
  width: 100%;
}

h3,
.componentheading,
table.moduletable th,
legend {
  margin: 0;
  font-weight: bold;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  padding-left: 0;
  margin-bottom: 15px;
  text-align: left;
  color: #b3b3b3;
}

h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: #eee;
}

table.contentpaneopen h3 {
  margin-top: 25px;
}

table.contentpaneopen h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

/* --- Content Tables --- */
table.nopad {
  width: 100%;
  border-collapse: collapse;
  padding: 0;
  margin: 0;
  margin-bottom: 15px;
}

table.contentpaneopen,
table.contentpane {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Override legacy inline styles for Dark Mode */
table.contentpaneopen td,
table.contentpaneopen tr,
table.contentpaneopen table,
table.contentpaneopen tbody {
  background-color: transparent !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

/* Specific override for the grey headers in CV */
td[bgcolor="#e0e0e0"] {
  background-color: #333 !important;
  color: #fff !important;
}

table.contentpaneopen li {
  margin-bottom: 5px;
}

table.contentpaneopen fieldset {
  border: 0;
  border-top: 1px solid #ddd;
}

/* --- Sidebar Module --- */
div.moduletable,
div.module {
  margin-bottom: 25px;
}

/* --- Spacers & Utilities --- */
span.article_separator {
  display: block;
  height: 20px;
}

.clr {
  clear: both;
}

/* --- Small Text --- */
.small {
  font-size: .90em;
  color: #888;
  font-weight: normal;
  text-align: left;
}

/* --- Sidebar Menu (left column) --- */
#leftcolumn ul.menu {
  margin: 10px 0;
  padding-left: 20px;
  list-style: disc;
}

#leftcolumn ul.menu li {
  margin-bottom: 3px;
}

#leftcolumn ul.menu li a:link,
#leftcolumn ul.menu li a:visited {
  font-weight: bold;
}

/* --- Blog/Content table --- */
table.blog {
  width: 100%;
  border-collapse: collapse;
}

/* --- Pathway --- */
#pathway {
  padding: 0 10px 8px;
  width: auto;
  margin-top: -2px;
  text-align: left;
}

#search {
  float: right;
  width: 320px;
  margin-top: -20px;
  margin-right: 30px;
  height: 40px;
  overflow: hidden;
  text-align: right;
}

/* --- Fieldset --- */
fieldset {
  border: 1px solid #ccc;
  margin-top: 15px;
  padding: 15px;
}

legend {
  margin: 0;
  padding: 0 10px;
  color: #ccc;
}