/* Title-Background Version 11.7 */

:root
{
   --font-family: Verdana, Tahoma, Helvetica, Arial, sans-serif;

   --jump-margin: 6rem;
   --nav-standard-padding: 1.4rem 1rem 1.4rem 1rem;
   
   --sunburst-font-size: 11;
   --sunburst-maximum-depth: 6;
   --sunburst-outer-depth: 5;
}

html
{
   font-size: 10px; /* Root em */
}

body
{
   font-family: var(--font-family);
   font-size: 1.4rem;
   line-height: 1.4;
   background: var(--theme-body-bg-color);
   margin: 0;
}

h1, h2, h3
{
   white-space: nowrap;
   margin: 0;
   padding-top: 2rem;
   padding-bottom: 1rem;
}

h1
{
   font-weight: normal;
   font-size: 1.8rem;
   text-align: center;
}

h2
{
   font-weight: normal;
   font-size: 1.6rem;
}

h3
{
   font-weight: bold;
   font-size: 1.4rem;
}

p
{
   margin: 0 0 1rem 0;
}

ol, ul
{
   padding-left: 4rem;
   margin: 0 0 1rem 0;
}

input, textarea
{
   font-family: var(--font-family);
}

li, input, textarea
{
   background: inherit;
}

a:link,
a:visited
{
   color: var(--theme-link-color);
   text-decoration: none;
}

a:active,
a:hover
{
   text-decoration: underline;
}

table
{
   empty-cells: show;
}

*
{
   box-sizing: border-box;
}

/***********************************************************
* Container, content and footer
***********************************************************/
.atm-container
{
   background: var(--theme-page-bg-color);
   margin: 0 auto;
   padding-bottom: 2rem;
}

.atm-content
{
   display: inline-block;
   width: 100%;
   min-height: 70vh;
   padding: 0 2rem;
}

footer
{
   font-size: 1.2rem;
   text-align: center;
   margin-top: 2rem;
}

/***********************************************************
* Header and separator below header
***********************************************************/
h1.header-ss
{
   background: var(--theme-body-bg-color);
   padding: 5rem 1rem 1rem 1rem;
}

h1.header-ls
{
   background: var(--theme-body-bg-color);
   padding: 6rem 1rem 1rem 1rem;
}

.large-screen hr
{
   display: none;
}

/***********************************************************
* Navigation for small screen
***********************************************************/
nav.limited
{
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1100;   /* Always on top */
}

nav.limited ul
{
   background: var(--theme-main-color);
   list-style-type: none;
   display: flex;
   position: relative;
   padding: 0;
}

nav.limited li
{
   white-space: nowrap;
   text-align: left;
   padding: 0.5rem 1rem;
}

nav.limited ul li ul li
{
   padding: 0.5rem 1rem 0 1rem;
}

nav.limited a:link,
nav.limited a:visited
{
   color: var(--theme-text-color);
}

nav.limited li.active,
nav.limited a:active,
nav.limited a:hover
{
   color: var(--theme-text-hover-color);
   text-decoration: none;
}

nav.limited ul ul
{
   display: none;   /* Hide when not needed */
   position: absolute;
   top: 100%;
   left: 0;
   padding: 0 0 1.4rem 0;
}

nav.limited ul li:hover > ul
{
   display: block;   /* Display on hover */
   border: 2px solid var(--theme-text-color);
}

.hamburger
{
  width: 2.4rem;
  height: 0.3rem;
  background: var(--theme-text-color);
  margin: 0.5rem 0;
}

/***********************************************************
* Navigation for large screen
***********************************************************/
nav.standard
{
   position: fixed;
   top: 0;
   width: inherit;
   z-index: 1100;   /* Always on top */
}

nav.standard > ul > li
{
   padding: var(--nav-standard-padding);   /* The bar itself */
}

nav.standard ul
{
   background: var(--theme-main-color);
   list-style-type: none;
   display: flex;
   position: relative;
   justify-content: center;
   padding: 0;
   z-index: 1100;   /* Always on top */
}

nav.standard li
{
   white-space: nowrap;
   text-align: left;
   padding: 0.72rem 1.4rem 0.72rem 1rem;
}

nav.standard a:link,
nav.standard a:visited
{
   color: var(--theme-text-color);
}

nav.standard li.active,
nav.standard a:active,
nav.standard a:hover
{
   color: var(--theme-text-hover-color);
   text-decoration: none;
}

nav.standard ul ul
{
   display: none;   /* Hide when not needed */
   position: absolute;
   top: 100%;
   padding: 0;
}

nav.standard ul li:hover > ul
{
   display: block;   /* Display on hover */
}

nav.standard ul ul li
{
   float: none;
   position: relative;
}

nav.standard ul ul ul
{
   position: absolute;
   top: 0;
   left: 100%;
   border-left: 1px solid var(--theme-page-bg-color);
}

.arrow
{
   font-weight: bold;
   margin-left: 2rem;
   float: right;
}

/***********************************************************
* Bootstrap adjustments
***********************************************************/
.popover
{
   background: #F0F0F0;
   font-size: 1.4rem;
   min-width: 20rem;
   max-width: 50rem;
}

/***********************************************************
* Standard button
***********************************************************/
.atm-button
{
   white-space: nowrap;
   background: var(--theme-main-color);
   border: none;
   padding: 0.8rem 1.2rem;
   margin-right: 0.4rem;
   margin-bottom: 1rem;
}

.atm-button a:link,
.atm-button a:visited
{
   color: var(--theme-text-color);
}

.atm-button a:active,
.atm-button a:hover
{
   color: var(--theme-text-hover-color);
   text-decoration: none;
}

/***********************************************************
* Source button
***********************************************************/
a.source-button
{
   background: var(--theme-source-button-color);
   text-decoration: none;
   border-radius: 0.3rem;
   padding: 0.06rem 1rem;
   margin-left: 0.5rem;
}

/***********************************************************
* Image
***********************************************************/
img
{
   border: none;
   vertical-align: middle;
   max-width: 100%;
}

img.header
{
   height: 6rem;
   margin: 0 4rem;
}

img.info-icon
{
   margin-left: 1rem;
   margin-bottom: 0.4rem;
}

img.thumb
{
   height: 20rem;
   margin: 1rem 2rem 1.5rem 0;
}

/***********************************************************
* Lightbox enclosing division
***********************************************************/
.plain-link a:active,
.plain-link a:hover
{
   text-decoration: none;
}

/***********************************************************
* Reports
***********************************************************/
.start-block
{
   margin-top: 2.4rem;
}

/***********************************************************
* Tooltip
***********************************************************/
.atm-tooltip
{
   position: relative;
}

.atm-tooltip .tooltip-text
{
   visibility: hidden;

   font-size: 1.2rem;
   text-align: left;
   white-space: normal;
   color: black;
   background: white;
   border: 1px solid grey;
   padding: 0.5rem;

   position: absolute;
   top: 105%;
   left: 0;
   z-index: 1000;
}

.atm-tooltip:hover .tooltip-text
{
   visibility: visible;
}

.tip-long
{
   min-width: 30rem;
}

.tooltip-icon
{
   width: 1.2rem;
   height: 1.2rem;
   margin: 0 0 0.4rem 1rem;
}

/***********************************************************
* Person page
***********************************************************/
.person table
{
   border-collapse: collapse;
   float: left;
}

.person td
{
   padding: 0.3rem 0.8rem;
}

td.description
{
   vertical-align: top;
   width: 20%;
   color: var(--table-text-color);
   background: var(--table-bg-color);
   border: 1px solid var(--table-grid-color);
   padding-right: 2rem;
}

td.data
{
   vertical-align: top;
   border: 1px solid var(--table-grid-color);
}

td.dummy
{
   height: 1.5rem;
}

.person ol
{
   margin-top: 0.2rem;
   margin-bottom: 0.2rem;
   padding-left: 2.6rem;
}

.person ul
{
   list-style-type: none;
   padding-left: 0;
}

.portrait-block
{
   float: right;
   display: contents;
}

.portrait-block a:active,
.portrait-block a:hover
{
   text-decoration: none;
}

/***********************************************************
* Button(s) next to title
***********************************************************/
table.full-width
{
   width: 100%;
}

td.button-right
{
   float: right;
   padding: 0;
   margin-top: 2rem;
}

td.button-group
{
   white-space: nowrap;
}

/***********************************************************
* Note header
***********************************************************/
.note-header
{
   font-style: italic;
}

/***********************************************************
* Chart
* N.B. don't change any of the sizes!
***********************************************************/
.chart-position
{
   position: relative;
}

.chart-A-3,
.chart-A-4,
.chart-B-3
{
   height: 56.5rem;
}

.chart-B-4
{
   height: 64.4rem;
}

.chart-B-5
{
   height: 126.8rem;
}

.empty-node,
.pedigree-node
{
   position: absolute;
   padding: 0.2rem;

   text-align: center;
   white-space: nowrap;
   font-size: 1.4rem;
   line-height: 1.8rem;

   color: black;
   background: var(--graph-node-bg-color);
   border: 0.2rem solid var(--graph-node-border-color);
   border-radius: 0.4rem;
}

.node-text
{
   overflow: hidden;
}

.lifespan
{
   font-size: 1.2rem;
}

.sideways
{
   position: absolute;
   border-top: 0.2rem solid var(--graph-line-color);
}

.bracket
{
   position: absolute;
   border-top: 0.2rem solid var(--graph-line-color);
   border-bottom: 0.2rem solid var(--graph-line-color);
   border-left: 0.2rem solid var(--graph-line-color);
}

.arrow-right
{
   position: absolute;
   border-top: 1rem solid transparent;
   border-bottom: 1rem solid transparent;
   border-left: 0.5rem solid var(--graph-line-color);
}

/***********************************************************
* Sunburst circle chart
***********************************************************/
.sunburst
{
   height: 80vh;
   overflow: hidden;
}

.sunburst-top-bottom
{
   --sunburst-horizontal: 1;
}

.sunburst-left-right
{
   --sunburst-horizontal: 0;
}

/***********************************************************
* Index selector
***********************************************************/
.selector
{
   margin-top: 2rem;
}

.selector td
{
   font-weight: bold;
   color: var(--index-selector-text-color);
   background: var(--index-selector-bg-color);
   border: 2px solid var(--theme-page-bg-color);
}

.selector td.active,
.selector td:hover
{
   color: var(--index-selector-text-hover-color);
   background: var(--index-selector-bg-hover-color);
}

.selector a
{
   color: inherit;
   background: inherit;
}

.selector a:active,
.selector a:hover
{
   text-decoration: none;
}

.selector a,
.selector td.active
{
   padding: 0.2rem 1rem;
}

/***********************************************************
* Index table
***********************************************************/
.index-table
{
   margin-top: 3rem;
}

.index-table th
{
   font-weight: bold;
   text-align: left;
   cursor: pointer;
   padding-bottom: 1rem;
   padding-right: 3rem;

   position: relative;
}

.index-table tr
{
   cursor: pointer;
}

.index-table tbody tr:hover
{
   background: var(--index-table-bg-hover-color);
}

.index-table td
{
   padding-right: 3rem;
}

.index-table th:focus
{
   outline: none; /* Get rid of the border */
}

.index-table .tablesorter-headerDesc:before,
.index-table .tablesorter-headerDesc:after
{
   border: 6px solid transparent;
   content: "";
   display: block;
   position: absolute;
   top: 40%;
   right: 15px;
   width: 0;
   height: 0;
}

.index-table .tablesorter-headerDesc:after
{
   border-top-color: #666;
   margin-top: 1px;
}

.index-table .tablesorter-headerAsc:before,
.index-table .tablesorter-headerAsc:after
{
   border: 6px solid transparent;
   content: "";
   display: block;
   position: absolute;
   top: 60%;
   right: 15px;
   width: 0;
   height: 0;
}

.index-table .tablesorter-headerAsc:before
{
   border-bottom-color: #666;
   margin-top: -13px;
}

td.dummy-selector
{
   visibility: hidden;
}

/***********************************************************
* Slideshow
***********************************************************/
#ss_timeout, #ss_select
{
   font-family: inherit;
   font-size: inherit;
   border: 2px solid var(--theme-main-color);
   padding: 0.2rem 0.5rem;
   margin-left: 2rem;
}

#ss_timeout
{
   min-width: 10rem;
}

#ss_select
{
   min-width: 50rem;
}

.slide-show-frame
{
   border: 2px solid var(--theme-main-color);
   padding: 1rem;
   margin-top: 2rem;
   margin-bottom: 3rem;
}

/***********************************************************
* Contact
***********************************************************/
.contact table
{
   margin-top: 2rem;
}

.contact input,
.contact textarea
{
   width: 100%;
}

.contact td
{
   padding-bottom: 0.5rem;
}

.contact button
{
   font-family: var(--font-family);
   font-size: 1.4rem;
   padding: 0.7rem 1rem 0.7rem 1rem;
}

.lowered
{
   border-top: 2px solid #A4A4A4;
   border-bottom: 1px solid silver;
   border-left: 2px solid #A4A4A4;
   border-right: 1px solid silver;
}

.raised
{
   border-top: 1px solid silver;
   border-bottom: 2px solid #A4A4A4;
   border-left: 1px solid silver;
   border-right: 2px solid #A4A4A4;
}

/***********************************************************
* Content
***********************************************************/
.content-page ul
{
   padding-left: 2rem;
}

/***********************************************************
* Small screen
***********************************************************/
@media screen and (max-width: 599.99px)
{
   h1, h2, h3
   {
      white-space: normal;
   }

   td.description
   {
      white-space: normal;
   }

   .atm-container
   {
      width: 100%;
      min-height: 70rem;
      overflow: hidden;
   }

   .atm-content
   {
      padding: 0 1rem;
   }
   
   .atm-tooltip:hover .tooltip-text
   {
      visibility: hidden;
   }

   .large-screen
   {
      display: none;
   }

   .small-screen
   {
   }

   .hscroll
   {
      overflow-x: auto;
      overflow-y: hidden;
   }

   .person table
   {
      width: 100%;
      margin: 0.5rem 0 1.3rem 0;
   }

   .portrait-block img
   {
      height: 20rem;
      margin: 0.5rem 0 0.5rem 1rem;
   }

   .short-list
   {
      display: block;
   }

   .medium-list,
   .long-list
   {
      display: none;
   }

   .slide-show-frame
   {
      width: 100%;
   }

   .slide-show
   {
      height: 22rem;
   }

   .slide-show img
   {
      max-width: 95%;
      max-height: 20rem;
   }

   .restricted
   {
      display: none;
   }

   :root
   {
      --sunburst-maximum-depth:4;
      --sunburst-outer-depth: 4;
   }

   .sunburst
   {
      height: 60vh;
   }

   .jump
   {
      scroll-margin-top: 5rem;
   }

   .contact table
   {
      width: 100%;
   }

   .contact textarea
   {
      height: 20rem;
   }
}

/***********************************************************
* Medium screen
***********************************************************/
@media screen and (min-width: 600px) and (max-width: 1249.99px)
{
   h1, h2, h3
   {
      white-space: normal;
   }

   td.description
   {
      white-space: normal;
   }

   .atm-container
   {
      width: 100%;
      min-height: 70rem;
      overflow: hidden;
   }

   .large-screen
   {
      display: none;
   }

   .small-screen
   {
   }

   .hscroll
   {
      overflow-x: auto;
      overflow-y: hidden;
   }

   .chart-B-4
   {
      height: 74.4rem; /* 10rem extra room for tool tip */
   }

   .chart-B-5
   {
      height: 136.8rem; /* 10rem extra room for tool tip */
   }

   .person table
   {
      margin: 0.5rem 0 1.3rem 0;
   }

   .portrait-block img
   {
      height: 20rem;
      margin: 0.5rem 0 0.5rem 1rem;
   }

   .short-list,
   .long-list
   {
      display: none;
   }

   .medium-list
   {
      display: block;
   }

   .slide-show-frame
   {
      width: 46rem;
   }

   .slide-show
   {
      height: 29.5rem;
   }

   .slide-show img
   {
      max-width: 44rem;
      max-height: 27.5rem;
   }

   .restricted
   {
   }

   .jump
   {
      scroll-margin-top: 5rem;
   }

   .contact table
   {
      min-width: 56rem;
      max-width: 60rem;
   }
}

/***********************************************************
* Large screen
***********************************************************/
@media screen and (min-width: 1250px)
{
   .atm-container
   {
      width: 125rem;
      min-height: 100rem;
   }

   .large-screen
   {
      width: inherit;
   }

   .small-screen
   {
      display: none;
   }

   td.description
   {
      white-space: nowrap;
   }

   .hscroll
   {
   }

   .person table
   {
      min-width: 70rem;
      max-width: 85rem;
      margin: 0.5rem 1.3rem 1.3rem 0;
   }

   .portrait-block img
   {
      height: 20rem;
      margin: 0.5rem;
   }

   .short-list,
   .medium-list
   {
      display: none;
   }

   .long-list
   {
      display: block;
   }

   .slide-show-frame
   {
      width: 66rem;
   }

   .slide-show
   {
      height: 42rem;
   }

   .slide-show img
   {
      max-width: 64rem;
      max-height: 40rem;
   }

   .restricted
   {
   }

   .jump
   {
      scroll-margin-top: var(--jump-margin);
   }

   .contact table
   {
      width: 60rem;
   }
}

/***********************************************************
* Don't print irrelevant items
***********************************************************/
@media print
{
   .small-screen, .large-screen, footer, .selector, .atm-button, .source-button, .no-print
   {
      display: none;
   }
}

