/* ==========================================================================
   1. Global Styles
   ========================================================================== */

body {
  font-family: Tahoma, Geneva, sans-serif;
  background-color: #e9e9e9; 
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   2. Layout Styles
   ========================================================================== */

.main-container {
  max-width: 1320px;
  margin: 0 auto 20px auto; 
  background-color: #ffffff; 
  padding: 20px 40px;        
  border: 1px solid #dddddd; 
}

.navigation-ribbon {
  width: 100%;
  background-color: #ffffff;
  padding: 15px 0;
  text-align: center;
  margin-bottom: 30px;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

/* ==========================================================================
   3. Typography & Text Styles
   ========================================================================== */

h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 12px; }

h1.title {
  font-size: 38px;
  text-align: center;
  font-weight: bold;
}

h2.subtitle {
  font-size: 34px;
  text-align: center;
}

span.smallcaps { font-variant: small-caps; }
span.underline { text-decoration: underline; }
div.hanging-indent { margin-left: 1.5em; text-indent: -1.5em; }

#references a {
  overflow-wrap: break-word;
}

/* ==========================================================================
   4. Component Styles (Navigation, Code, Tabs)
   ========================================================================== */

/* --- Navigation Ribbon --- */
.navigation-ribbon ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navigation-ribbon li {
  display: inline-block;
  margin: 0 20px;
}

.navigation-ribbon a {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}

.navigation-ribbon a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.navigation-ribbon a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- Code Blocks --- */
code {
  color: inherit; 
  background-color: rgba(0, 0, 0, 0.04);
  white-space: pre-wrap;
}

pre:not([class]) { 
  background-color: white;
}

pre code {
  padding: 0;
}

/* Highlight.js Color Theme */
.hljs-literal { color: #c26cb2; }
.hljs-number { color: #cf7e66; }
.hljs-comment { color: #596e7e; font-style: italic; }
.hljs-keyword { color: #6291c0; font-weight: bold; }
.hljs-string { color: #48a83c; }

/* --- Tabsets --- */
.tabset-dropdown > .nav-tabs {
  display: inline-table;
  max-height: 500px;
  min-height: 44px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.tabset-dropdown > .nav-tabs > li {
  display: none;
}

.tabset-dropdown > .nav-tabs > li.active {
  display: block;
}

.tabset-dropdown > .nav-tabs > li.active:before {
  content: "\e259";
  font-family: 'Glyphicons Halflings';
  display: inline-block;
  padding: 10px;
  border-right: 1px solid #ddd;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
  display: block;
  float: none;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
  content: "\e259";
  font-family: 'Glyphicons Halflings';
  display: inline-block;
  padding: 10px;
  border-right: 1px solid #ddd;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
  content: "\e258";
  border: none;
}

.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
  border: none;
  display: inline-block;
  border-radius: 4px;
  background-color: transparent;
}

/* ==========================================================================
   5. Custom Tab Styles
   ========================================================================== */

.nav-tabs > li > a {
  border-radius: 0;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border-radius: 0;
}


.tab-pane > .nav-tabs {
  margin-top: 15px;
}

/* ==========================================================================
   6. Footer Styles
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #ffffff;
  padding: 20px 0;
  text-align: center; 
  border-top: 1px solid #dddddd;
  margin-top: 30px;
  color: #555555;
}

.site-footer p {
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer ul {
  list-style-type: none;
  margin: 0; 
  padding: 0; 
}

.site-footer li {
  display: inline-block;
  margin: 0 15px;
}

.site-footer a {
  text-decoration: none;
  color: #337ab7;
  font-size: 14px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. Social Media Icons (Footer)
   ========================================================================== */

.social-icons {
  text-align: center;
  margin-top: 15px; 
}

.social-icons a {
  display: inline-block;
  margin: 0 10px; 
}

.social-icons svg {
  width: 24px; 
  height: 24px;
  fill: #555555; 
  transition: fill 0.2s ease-in-out; 
}

.social-icons a:hover svg {
  fill: #337ab7; 
}