/**
 * These variables are only used in a handful of places so far.
 */
:root {
  --bg-color: #fff;
  --text-color: #000;
  --text-color-muted: #999999;
  --text-color-error: #c00;

  --font-size-base: 0.875rem; /* 14px */

  --font-weight-base: 400;
  --font-weight-link: 400;
  --font-weight-bold: 700;

  --line-height: 1.5;

  --form-field-padding-h: 10px;
  --form-field-padding-t: 0.2em;
  --form-field-padding-b: 0.3em;
  --form-field-border-width: 1px;
  --form-field-border-color: #999;

  --button-bg: var(--bg-color);
  --button-bg-hover: #eee;
  --button-bg-active: #ddd;
  --button-color: var(--text-color);
  --button-border-width: 1px;
  --button-border-color: #999;
  --button-border-radius: 0.3em;

  --button-padding-h: var(--form-field-padding-h);
  --button-padding-t: var(--form-field-padding-t);
  --button-padding-b: var(--form-field-padding-b);

  /* e.g. after paragraphs */
  --margin-v: calc(var(--font-size-base) * var(--line-height));
  --margin-h: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,body {
  height:100%;
  }

body {
  width: 100%;
  font-family: "Lucida Grande","bitstream vera sans","trebuchet ms",sans-serif,verdana;
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  border: 0;
  background-image: url("/static/img/strype-athena2.43b2b6cd27ef.jpg");
  background-repeat: no-repeat;
  background-position: 5px 120px;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--font-color);
}

#flashcontent {
  z-index:0;
  width:98%;
  height:100%;
  margin-top:10px;
  /*margin:0;
  margin:0 auto; */
  text-align: left;
  }

a {
  /*color:#9b3526;*/
  color: #9a1107;
  text-decoration:none;
  }

a:hover {
  text-decoration:underline;
  }


p {
  margin:.4em 0 .8em 0;
  padding:0;
  }

.cite {
  text-align: right;
  display: block;
}

img {
  margin:10px 0 5px;
  }

:link img {
  border: none;
}

blockquote {
  margin-left:25px;
}

hr {
  background-color:#d4d4d4;
  color:#d4d4d4;
  height:1px;
  border:0px;
  clear:both;
}

details summary {
  cursor: pointer;
  margin-bottom: calc(var(--margin-v) / 2);
}

.center {
  text-align:center;
}

#toggleText {
  border-style:solid;
  border-width:1px;
  border-color:#d4d4d4;
  padding:20px;
  margin: 10px 30px 0px 30px;
}

.colright li {
  margin-bottom: 12px;
}

/* Header styles */

#headerwrapper {
  background-image:url("img/bodybgtop.63550c03123c.gif");
  background-repeat:repeat-x;
    width: 100%;
    /* overflow: hidden; */
    padding-bottom: 10px;
}

#headerwrapper.sub-page {
  height:55px;
}

#header {
  background-color:#000;
  background-image:url("/static/img/scroll.d404bb39f0af.gif");
  background-position:right;
  background-repeat:no-repeat;
  float:left;
  width:100%;
  color:#FFF;
  white-space:nowrap;
  -moz-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
  }

#header h1, h2 {
  padding: 25px 0px 10px 15px;
  margin:0;
  }

#header h2 {
  padding: 25px 0px 15px 15px;
  margin:0;
  }

#header a {
  color:#FFF;
  text-decoration:none;
}

/* header text */
.gradient {
  padding: 0;
  margin: 0;
  }

.gradient h1 { /* font-size/line-height */
  font: normal 300%/100% Georgia,"Times New Roman",Times,serif;
  position: relative;
  margin: 0;
  color: #fff;
  }

.gradient h2 { /* font-size/line-height */
  font: normal 150%/40% Georgia,"Times New Roman",Times,serif;
  position: relative;
  margin: 0;
  color: #fff;
}


.gradient h1 span {
  background: url("/static/img/gradient-dark.f354e7bf81c7.png") repeat-x;
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 29px;
}


.gradient h2 span {
  background: url("/static/img/gradient-dark.f354e7bf81c7.png") repeat-x;
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 23px;
  background-image: url("/static/img/gradient-dark.f354e7bf81c7.png");
}

.homelink {
  position:absolute;
  top: 14px;
  left: 14px;
  width: 175px;
  height: 28px;
  z-index: 100;
}

.sublink {
  position:absolute;
  top:14px;
  left: 210px;
  width: 60px;
  height: 28px;
  z-index: 100;
}


/* column container */
.colmask {
  position: relative;
  clear: both;
  float: left;
  width: 100%;
  overflow: hidden;
}


/* common column settings */
.columncontent {
  float:left;
  width:100%;
  position:relative;
  }

.colright,
.colleft {
  float:left;
  position:relative;
  padding:0 0 1em 0;
  /* overflow:hidden; */
  }

.colleft h2 {
  padding-left:0;
}

/* 2 Column (main content) settings */
.maincontent {
  color: #151414;
  padding-top: 20px;
}

.maincontent p, h1, h2, h3, ul, dl, ol, blockquote {
  padding-right:20px;
}

.maincontent h2 {
  padding-top:0;
  padding-left:0;
}

.maincontent .columncontent {
  right:75%;      /* right column width */
  }

.maincontent .colright {
  width:71%;      /* right column content width */
  left:102%;      /* 100% plus left column left padding */
  }

.maincontent .colleft {
  width:21%;      /* left column content width (column width minus left and right padding) */
  left:6%;      /* (right column left and right padding) plus (left column left padding) */
}


.maincontent h1 {
  font: normal 170%/100% Georgia,"Times New Roman",Times,serif;
  margin-top:20px;
  margin-bottom:20px;
  /*color:#727073;*/
  color: #6d6054;
}

.maincontent h2 {
  font: normal 150%/125% Georgia,"Times New Roman",Times,serif;
  /*color:#727073;*/
  color: #6d6054;
  margin-top:30px;
}

.maincontent h2 a[name]:not(:link) {
    color:#6d6054;
}

.maincontent h3 {
  font: normal 125%/100% Georgia,"Times New Roman",Times,serif;
  /*color:#727073;*/
  color: #6d6054;
  margin-top:30px;
}

.maincontent p, ol, ul, dl, blockquote, td.text {
  font-size:14px;
  line-height: 1.5;
}

.highlight {
  color:#C96;
}

.topmargin {
  margin-top:30px;
}

.caption {
  font-size:90%;
}

.indent {
  margin-left:25px;
}

p.biblio {
    margin-left: 30px;
    text-indent: -30px;
}

.list-inline {
  padding-left: 0;
  list-style: none;
  margin-left: -5px;
}
.list-inline > li {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}

.rotate {
  transform: rotate(-180deg);
  display: inline-block;
  /* Legacy vendor prefixes */
  /* Safari */
  -webkit-transform: rotate(-180deg);
  /* Firefox */
  -moz-transform: rotate(-180deg);
  /* IE */
  -ms-transform: rotate(-180deg);
  /* Opera */
  -o-transform: rotate(-180deg);
  /* Internet Explorer */
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
}

table.grid {
    border:1px solid #eee;
    border-collapse:collapse;
}

table.grid th,table.grid td {
    border-top: 1px solid #eee;
    padding:10px;
}

tr {
    vertical-align:top;
}

td .middle {
    vertical-align: middle;
}

.nowrap {
   white-space: nowrap;
}

em em {
  font-style: normal;
  }


.hangingindent {
  padding-left: 30px;
  text-indent: -30px;
}
li.hangingindent {
  list-style-type:none;
}

span.gloss {
  text-align: left;
  width: 120px;
  float: left;
  padding: 0.4em 0.8em 0.4em 0em;
  font-weight: bold;
  font-size: 85%;
  }

/*******************************************************************************
 * Lists
 */

.list-unstyled {
  list-style-type: none;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

.list-items-mb-0 li {
  margin-bottom: 0;
}
.list-items-mb-1 li {
  margin-bottom: calc(var(--margin-v) / 4) !important;
}


dl {
  margin-bottom: 1em;
}
dt {
  margin-top: 1em;
  font-weight: bold;
}
dd ul {
  margin: 0;
  padding-left: 0;
}

/*******************************************************************************
 * New form styles
 * NOTE: Also see media styles at end of this file.
 */

.form {
  margin-top: var(--margin-v);
  margin-bottom: var(--margin-v);
}

.form__group {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--margin-v);
}

.form__label {
  position: relative;
  width: 100%;
  font-weight: var(--font-weight-base);
  padding-top: calc(var(--form-field-padding-t) + var(--form-field-border-width));
  padding-right: calc(var(--margin-h) / 2);
  color: var(--text-color);
}

.form__label__note {
  color: var(--text-color-muted);
  font-weight: var(--font-weight-base);
}

.form__field {
  width: 100%;
}

.form__field__range input,
.form__field__input {
  border: var(--form-field-border-width) solid var(--form-field-border-color);
  padding: var(--form-field-padding-t) var(--form-field-padding-h)
    var(--form-field-padding-b);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  border-radius: 0;
  font-size: var(--font-size-base);
}

.form__field .form__field__input {
  width: 100%;
  max-width: 50ch;
}

.form__field input[type="checkbox"] {
  margin-top: 0.7em;
}

.form__field__input[type="number"] {
  width: auto;
}

.form__field__input::placeholder {
  color: var(--text-color-muted);
}

/* The django-filter RangeWidget for years. */
.form__field__range input {
  width: 5em;
}
.form__field__range input:not(:first-child) {
  /* Fix lack of space after dash in default template */
  margin-left: 0.3em;
}

select.form__field__input {
  display: block;
  width: 100%;
  padding: var(--form-field-padding-t) var(--form-field-padding-h)
    var(--form-field-padding-b);
  -moz-padding-start: calc(var(--form-field-padding-h) - 3px);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  border-radius: 0;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.form__field__input[multiple],
select.form__field__input[size]:not([size="1"]) {
  background-image: none;
}

.form__field__text {
  display: block;
  color: var(--text-color-muted);
  padding: 0 calc(var(--form-field-padding-h) + var(--form-field-border-width));
}
.form__field__text--invalid {
  color: var(--text-color-error);
}


/*******************************************************************************
 * Buttons
 */

.button {
  background: var(--button-bg);
  color: var(--button-color);
  border: var(--button-border-width) solid var(--button-border-color);
  padding: var(--button-padding-t) var(--button-padding-h)
    var(--button-padding-b);
  font-weight: var(--font-weight-link);
  font-size: var(--font-size-base);
  cursor: pointer;
  border-radius: var(--button-border-radius);
}

.button:hover {
  background-color: var(--button-bg-hover);
  text-decoration: none;
}

.button:active {
  background-color: var(--button-bg-active);
  box-shadow: 0 0 var(--hilite-blur-radius) var(--hilite-spread-radius)
    var(--bg-color-hilite);
}


/*******************************************************************************
 * People front page
 */

.featured-list,
.featured-list ul {
  list-style: none;
  padding-left: 0;
}

.featured-list-item {
  display: flex;
  align-items: flex-start;
  padding: 0 !important;
  margin: 0 0 1em 0;
}

.featured-list-item-imglink {
  /* Prevent extra space below image */
  line-height: 1px;
}

.featured-list-item-img {
  margin: 0 20px 0 0;
  width: 115px;
  height: auto;
}
.featured-list-item-img-empty {
  /* In addition to .featured-list-item-img */
  width: 113px;
  height: 113px;
  border: 1px solid #ccc;
}

.featured-list-item-body {
  flex: 1;
  margin-top: 0.5em;
}


/*******************************************************************************
 * Search results table
 */

.results {
  border-collapse: collapse;
}

.results th,
.results td {
  padding: 15px;
  border: 2px solid #f0efed;
  line-height: 1.5;
}
.results th {
  font: normal 110%/100% Georgia, "Times New Roman", Times, serif;
  color: #6d6054;
  text-align: left;
}
.results td {
  vertical-align: top;
}

.results h3 {
  font-size: 1.375rem;
  margin-top: 0px;
  margin-bottom: 0.5em;
  color: #6d6054;
}

/* table.description is used in some PlaceDescription.place_description fields' text. */
.results table.description,
.place-description table.description {
  border-collapse: collapse;
}
.results table.description td,
.place-description table.description td {
  border: none;
  padding: 0 15px 15px 15px;
}
.results table.description td:first-child,
.place-description table.description td:first-child {
  padding-left: 0
}
.results table.description td:last-child,
.place-description table.description td:last-child {
  padding-right: 0
}
.results table.description td.gloss,
.place-description table.description td.gloss {
  font-size: 80%;
}

/* Page search results */
.hilite {
  font-weight: var(--font-weight-bold);
  background-color: #f5ef98;
}

/*******************************************************************************
 * Places
 * NOTE: Also see the table.description definitions in Search results.
 */

div.place-description section.footnotes {
  font-size: 12px;
}

div.place-description {
  min-width: 400px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(190, 187, 191, 0.3);
}

div.place-description:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

div.place-description dt {
  padding-bottom: 5px;
}
div.place-description dd {
  padding-bottom: 20px;
}

/*******************************************************************************
 * Pagination
 */

.pagination {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.pagination__item {
  position: relative;
  display: block;
  padding: 0.5rem 1em;
  margin: 0;
}

.pagination__item:first-child {
  padding-left: 0;
}
.pagination__item:last-child {
  padding-right: 0;
}

.pagination__item--active {
  font-weight: var(--font-weight-link);
}

.pagination__item--disabled {
  color: var(--text-color-muted);
}

/* Variation for our Older / Newer time-based pagination */

.pagination--time {
  justify-content: space-between;
}

/*******************************************************************************
 * Utility styles
 */

.util-mb-0 {
  margin-bottom: 0 !important;
}
.util-mb-1 {
  margin-bottom: calc(var(--margin-v) / 4) !important;
}
.util-mb-2 {
  margin-bottom: calc(var(--margin-v) / 2) !important;
}

.util-visually-hidden,
.util-visually-hidden-focusable:not(:focus):not(:focus-within) {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.util-visually-hidden:not(caption),
.util-visually-hidden-focusable:not(:focus):not(:focus-within):not(caption) {
  position: absolute !important;
}


/*******************************************************************************
 * Footer styles
 */

#footer {
  background-image: url("/static/img/pagebg.0db4938364dd.jpg");
  width: 100%;
  min-height: 140px;
  clear: both;
  float: left;
  border-top: 1px solid #b3aa9f;
  padding: 20px;
  left: 0;
  bottom: 0;
}


#footer-emblem p {
  font-size:90%;
  padding-left:40px;
  padding-top:5px;
  color:#867f78;
}

#footer-emblem a {
  color:#867f78;
}

#footer-emblem {
  height:60px;
  margin-left:20px;
  margin-top:10px;
  background-image: url("/static/img/footerowl.cb029de4c9ee.png");
  background-repeat:no-repeat;
}

#footer-emblem p {
  margin-left:35px;
}

  /* the overlayed popup */
.popup_overlay {

  /* must be initially hidden */
  display:none;

  /* place overlay on top of other elements */
  z-index:10000;

  /* styling */
  background-color:#f2f2f2;
  padding:20px 0 0 0;
  width:600px;
  max-height:400px;
  border:1px solid #666;
  position:absolute; /* needed for overlay to show above swf */
    left:50px;
    top:50px;
  color:#111;


  /* CSS3 shadow styling */
  -moz-box-shadow:0 0 90px 5px #000;
  -webkit-box-shadow: 0 0 90px #000;
  }

/* close button positioned on upper right corner */
.popup_overlay .close {
  background-image:url(/img/overlay/x.png);
  background-repeat:no-repeat;
  position:absolute;
  right:0px;
  top:3px;
  cursor:pointer;
  height:22px;
  width:17px;
  }

.popup_overlay .overlaycontent {
  top:30px;
  padding:20px;
  background-color:#fff;
  max-height:375px;
  overflow:auto;
  }

  .popup_overlay h1 {
  margin:0 0 5px 0;
  font-size:16px;
  color:#456;
  font-weight:normal;
  }

  .popup_overlay h2 {
  font-size:12px;
  padding-top:20px;
  }

  .dropshadow {
   border:none;
   -moz-box-shadow: 3px 3px 4px #999; /* Firefox */
   -webkit-box-shadow: 3px 3px 4px #999; /* Safari/Chrome */
   box-shadow: 3px 3px 4px #999; /* Opera and other CSS3 supporting browsers */
   -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";/* IE 8 */
   : progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999');/* IE 5.5 - 7 */
  }

#copyright {
  display:none;
}


/* NAVIGATION */

/* sub nav (across the top) */
.subnav {
  margin: 0;
  float: right;
  font-size: 12px;
  padding: 10px 20px 0 0;
}

.subnav__item {
  list-style: none;
  padding: 0 0 10px;
  margin: 0 0 0 17px;
  float: left;
  position: relative;
}

.subnav__item a {
  color: #989699;
  text-decoration: none;
}

.subnav__item a:hover {
  color: #fff;
  text-decoration: none;
}

.subnav .open-login a.active {
  color: #fff;
  cursor: text;
}


#sub-nav ul {
  position: absolute;
  margin: 0;
  padding: 5px 0;
  font-size: 95%;
  top: 35px;
  }

#sub-nav ul li {
  margin: 0;
  padding: 0;
  }

#sub-nav ul a {
  background: none;
  width: 100px;
  display: block;
  padding: 3px 10px 3px 10px;
  color: #a29ea4;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  }

#sub-nav a:hover {
  color: #575657;
  }


/* nav (down the side)  */

.nav {
  right: 15px;
  line-height: 130%;
  text-align: right;
  list-style-type: none;
  margin: 2.8em 0 0 0;
  padding: 0;
}

.nav__item {
  position: relative;
  padding: 0 0 6px;
  margin: 0 0 0 17px;
  list-style: none;
}
.nav__item--spaced {
  margin-bottom: 1em;
}

.nav__item a {
  /*color:#bebbbf;*/
  /*color:#989699;*/
  color: #6d6054;
  font: 14px/100% Georgia,"Times New Roman",Times,serif;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__item a:hover {
  color: #877768;
  /*color: #7b797c;*/
  /*color: #989699;*/
  background: none;
  text-decoration: none;
}



/* Content for people and organization pages */

section.entity .entity__info {
  display: flex;
}

.entity__info__image {
  margin: 0 20px 1.5em 0;
  height: 270px;
  width: auto;
}

section.entity .entity__info__details {
  font-size: 1em;
}
section.entity .entity__info__details h2 {
  font: inherit;
  font-weight: bold;
  color: #151414;
  margin-top: 0;
}

section.entity:after {
    content: '';
    display: block;
    clear: both;
}
section.entity .description {
  clear: both;
  margin-bottom: 1em;
}

section.entity .description summary {
  cursor: pointer;
  font: normal 140% Georgia,"Times New Roman",Times,serif;
  color: #6d6054;
  margin-top: 50px;
}

.author { /* used to indicate authors of Grub Street annotations */
  text-align: right;
}

#wikipedia {
  margin-top:50px;
}

#wikipedia img {
  border:none;
  }

#wikipedia h2 {
  margin-top:30px;
  padding-top:10px;
  border-top-style:solid;
  border-width:1px;
  border-color:#d4d4d4;
}


#wikipedia td, th {
  vertical-align:top;
}

#wikipedia .editsection {
  display:block;
  text-align:right;
  font-size:60%;
}

#wikipedia .infobox  {
  background-color:#fff;
  border:1px solid #d4d4d4;
    float:right;
    font-size:88%;
  padding:10px;
  margin:-15px 10px 10px 10px;
}


#wikipedia .thumbcaption {
  padding-bottom:20px;
}


#wikipedia table {
  background:none;
  background-image:none;
  background-color:none;
  border:none;
  padding-bottom:50px;
}

#wikipedia tbody {
  background:none;
  background-image:none;
  background-color:none;
  border:none;
  padding-bottom:50px;
}


/*editions*/

.colophon {
   width:475px;
   float:left;
}

.page-wrapper {
  display: inline;
}

.catchword {
  visibility:hidden;
}

.signature {
  visibility:hidden;
}

.smallcaps {
  font-variant: small-caps;
    font-size: 105%;
}

.nobullets ul {
  list-style:none;
  padding:0;
  margin:0;
}

.document {
  display:none;
}


.overline {
  text-decoration:overline;
}

sup {
  vertical-align:top;
}

table.maplist td {
  vertical-align: top;
  padding-right: 20px;
  padding-bottom: 10px;
}

table.maplist h3 {
  margin-top: 10px;
  margin-bottom: 5px;
}


/*******************************************************************************
 * All media queries
 */

@media (min-width: 576px) {
  .pagination {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .form__label {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: var(--margin-h);
  }
  .form__field {
    flex: 0 0 80%;
    max-width: 80%;
  }
  .form__buttons {
    margin-left: 20%;
  }

  /* Wider labels */
  .form__group--lg-label .form__label {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .form__group--lg-label .form__field {
    flex: 0 0 70%;
    max-width: 70%;
  }
  .form__group--lg-label .form__buttons {
    margin-left: 30%;
  }
}

@media (min-width: 992px) {
  .form__label {
    flex: 0 0 14%;
    max-width: 14%;
  }
  .form__field {
    flex: 0 0 86%;
    max-width: 86%;
  }
  .form__buttons {
    margin-left: 14%;
  }
}
