:root {
  --color-text:        #001100;
  --color-link:        #6B0000;
  --color-link-hover:  #EC6900;
  --color-heading-1:   #28394F;
  --color-heading-2:   #2A4E52;
  --color-bg:          #616161;
  --color-nav-bg:      #0C0C0C;
  --color-nav-accent:  #FFCC00;
  --color-biblio:      #336666;
  --font-stack:        Arial, Tahoma, 'Trebuchet MS', Verdana, sans-serif;
  --content-width:     900px;
  --content-padding:   10px;
}

/* Layout */
.content {
  width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  border-left: 3px solid black;
  border-right: 3px solid black;
  box-sizing: border-box;
}

#contentArea {
  padding: 25px var(--content-padding) 0 var(--content-padding);
  background: white;
  margin-left: auto;
  margin-right: auto;
}

/* Base */
body {
  font-family: var(--font-stack);
  font-size: 10pt;
  font-weight: normal;
  color: var(--color-text);
  background: var(--color-bg) url('../images/global/navigation/background.jpg') top center no-repeat fixed;
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
  font-size: 9pt;
}
a:visited { color: var(--color-link); }
a:hover   { color: var(--color-link-hover); }

img { border: 0; }

p, td {
  font-family: var(--font-stack);
  font-size: 10pt;
  font-weight: normal;
  color: var(--color-text);
}

h1 {
  font-weight: bold;
  font-size: 16pt;
  color: var(--color-heading-1);
  text-align: center;
  margin: 0 auto 10px;
}
h2, h3, h4 {
  font-weight: bold;
  font-size: 12pt;
  color: var(--color-heading-2);
  font-family: var(--font-stack);
  margin-left: 0;
}
h3, h4 { font-size: 10pt; }

/* Bibliography */
.biblio {
  color: #000022;
  font-weight: bold;
  font-size: 11px;
}
.biblio a:link,
.biblio a:visited {
  color: var(--color-biblio);
  font-weight: normal;
}
.biblio a:hover { color: red; }

/* Content classes */
.bodies        { padding: 0 30px 30px 30px; }
.subtitles     { font-weight: bold; font-size: 12pt; color: var(--color-heading-1); text-align: center; margin: 0 auto 10px; }
.emphasis      { font-weight: bold; font-size: 10pt; color: var(--color-heading-2); font-family: var(--font-stack); margin-left: 0; }
.citation      { font-weight: normal; font-size: 9pt; color: black; }
.center        { text-align: center; margin: 0 auto; }
.imageDiv      { margin: 10px auto; text-align: center; padding: 0; }
.float         { float: right; margin: 20px 30px 20px 40px; }
.logo          { float: right; text-align: center; padding: 0 25px 15px 25px; }
.blockquote    { padding: 13px 40px; }
.data          { background-color: #324685; text-align: center; color: white; }
.email         { font-weight: normal; }
.centered      { text-align: center; margin: 0 auto; border: 0; font-size: 0.8em; }
.upper         { vertical-align: top; font-size: 0.7em; position: relative; top: -0.2em; }
.lower         { vertical-align: bottom; font-size: 0.7em; position: relative; top: 0.2em; left: 0.5em; }
.glossary b    { color: #000066; }

.hr {
  width: 300px;
  height: 1px;
  background-color: #555555;
  text-align: center;
  margin: 0 auto;
  font-size: 0;
  line-height: 1px;
  border: 1px solid;
  border-color: #9D9DA1 #9D9DA1 #E0DFE3 #E0DFE3;
}
.hr1 { text-align: center; }

/* History timeline */
#history        { width: 100%; }
.whole          { background: url('../images/global/history-line.png') repeat-y center; }
.date           { text-align: center; font-weight: bold; width: 3%; }
.description    { text-align: justify; width: 40%; }
.yearspan       { line-height: 0.5em; position: relative; top: -2px; font-size: 14pt; font-weight: normal; }
.firstcolumn    { background-color: #A7B5C7; }
.timeL          { text-align: center; font-size: 8pt; font-weight: bold; color: Maroon; }

/* Iframes */
#productframe   { height: 210px; width: 615px; border: 0; }
#openingframe   { height: 400px; width: 700px; border: 0; }

.subheading {
  font-weight: bold;
  font-size: 10pt;
  color: var(--color-heading-2);
  font-family: var(--font-stack);
  position: relative;
  left: -3em;
}

/* --- Mobile ------------------------------------------------- */
@media (max-width: 768px) {
  /* Fluid layout — no horizontal scroll */
  .content {
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-right: 0;
  }

  #contentArea {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Tighter body padding */
  .bodies { padding: 0 12px 20px; }

  /* Images never overflow their container */
  img { max-width: 100%; height: auto; }

  /* Responsive iframes — preserve aspect ratio */
  #openingframe,
  #productframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 220px;
  }

  /* Floated elements stack instead of overflowing */
  .float,
  .logo {
    float: none;
    margin: 10px auto;
    text-align: center;
  }

  /* Readable font sizes */
  body, p, td   { font-size: 11pt; }
  a             { font-size: 10pt; }
  h1            { font-size: 14pt; }
  h2, h3, h4   { font-size: 11pt; }

  /* History timeline — let it scroll rather than break layout */
  #history { display: block; overflow-x: auto; }

  /* Divider stays contained */
  .hr { width: 80%; }
}
