@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html {
  scroll-padding-top: 140px;
}

body {
  background-color: #FFFFE0;
  font-size: 15px;
  line-height: 120%;
}

sup {
  line-height: 0;
}

@media (min-width:400px) {
  body {
    font-size: 16px;
  }
}

@media (max-width:700px) {
  div.intro {
    margin-left: 2em;
    margin-right: 2em;
  }
}

@media (max-width:500px) {
  div.intro {
    margin-left: 0em;
    margin-right: 0em;
  }
}

@media (min-width:800px) {
  body {
    font-size: 17px
  }
}

article {
  position: relative;
  max-width: 40em;
  margin: 9.5em auto 0 auto;
	padding-left: 10px;
}

img#logo {
  display: block;
  margin: 20px auto 20px auto;
}

img#bnet-logo {
  display: inline-block;
}

img.inline-icon {
  display: inline;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin: 0;

}

h3, h4, h5, h6 {
  font-family: Cambria, Georgia, serif;
  font-weight: normal;
}

h1 {
  text-align: center;
  font-family: Cambria, Georgia, serif;
  font-weight: bold;
  line-height: normal;
}

h2 {
  text-align: center;
  font-family: Cambria, Georgia, serif;
  font-weight: bold;
}

p, ol, ul, table, span {
  font-family: Cambria, Georgia, serif;
}

hr {
  border-style: dotted none none none;
  border-width: 1px;
  margin: 20px 0 20px 0;
}

.bold {
  font-weight: bold;
}

.no-indent {
  text-indent: 0px;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.mar

.radindex > a:link {
  text-decoration: none;
}

.mar-bot-0 {
  margin-bottom: 0px;
}

.mar-vert-0 {
  margin-top: 0;
  margin-bottom: 0;
}

a:link {
  text-decoration: underline teal;
  color: black;
}

a:visited {
  color: black;
  text-decoration: underline teal;
}

a:hover {
  text-decoration: underline teal;
  color: teal;
}

/* Table of Contents */
ol {
  margin-bottom: 5px;
}

.varga {
  list-style-type: none;
}
.center {
  text-align: center;
}

.blockquote {
  padding-left: 2em;
}

.list-style-none {
  list-style-type: none;
  margin-left: 0px;
  text-indent: -30px;
}

.list-style-none > ul {
  list-style-type: none;
  margin-left: 0px;
  text-indent: -30px;
}

.list-style-none > ul > ul {
  list-style-type: none;
  margin-left: 0px;
  text-indent: -30px;
}

.list-style-none2 {
  list-style-type: none;
  margin-left: 30px;
  text-indent: -30px;
}

.list-style-none2 > ul {
  list-style-type: none;
  margin-left: 0px;
  text-indent: -30px;
}

.list-style-disc {
  margin: 0.7em 0 0.7em 0.3em;
  list-style-type: disc;
}

.index > dd {
  text-indent: -1em;
}

td > ul.verse, ul.blockquote-verse, ul.vagga-uddana {
  margin-top: -0.5em;
  margin-bottom: -0.5em;
}

td > ul.blockquote-verse li {
  padding-left: 2em;
}

td > ul.vagga-uddana li {
  font-style: italic;
}

/* Header Styles */


header {
  width: 100%;
  height: 5.5em;
  position: fixed;
  top: 0px; left: 0px;
  margin: 0;
  padding: 0;
  background-color: teal;
  color: white;
  z-index: 1;
  text-align: center;
  transition: top 0.25s;
}

header.hide {
  top: -4.76em;
}

header a {
  text-decoration: none;
  color: white;
}

header a:hover {
  color: white;
}

header > h1 {
  width: 100%;
  margin: 0.3em 0 0 0;
  padding: 0;
  text-shadow: 2px 2px 4px #000000;
  font-size: 2.5em;
  font-family: 'Merriweather', 'Georgia', sans-serif;
  line-height: normal;
}

header > h2 {
  width: 100%;
  margin: 0; padding: 0;
  font-size: 1.2em;
  font-family: cronos-pro;
  font-weight: normal;
  line-height: normal;
}

nav {
  position: fixed;
  height: 1.55em;
  width: 100%;
	top: 5.5em; left: 0px;
  text-align: center;
  font-family: cronos-pro, 'Cambria', serif;
  background-color: lightseagreen;
  transition: top 0.25s;
}

nav.hide {
  top: 0em;
}

.nav-list {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 40em;
  line-height: normal;
}

a.banner:link {
  color: white;
  text-decoration: none;
}

a.banner:visited {
  color: white;
  text-decoration: none;
}
a.banner:hover {
  color: black;
  background-color: teal;
  text-shadow: 1px 1px 2px #FFFFFF;
}

a.header:link {
  color: white;
  text-decoration: none;
}

a.header:visited {
  color: white;
  text-decoration: none;
}
a.header:hover {
  color: black;
  background-color: lightseagreen;
  text-shadow: 1px 1px 2px #FFFFFF;
}

a.title {
  font-weight: normal;
}

nav .nav-item  {
  position: relative;
  font-size: 1.1em;
  color: white;
  font-weight: 600;
  top: 0.2em;
  flex-grow: 1;
  flex-shrink: 1;
  text-shadow: 1px 1px 2px #000000;
}

nav .last {
  padding-right: 0;
}


/* Home Pages Stylesheet */

.home > h1 {
  font-size: 2em;
}

article.home > h2 {
  font-size: 1.5em
}

article.home > h3 {
  font-size: 1.3em;
  margin-top: 6px; margin-bottom: 6px;
}

article.home > h4 {
  font-size: 1.2em;
}

article.home > h5 {
  font-size: 1em;
  font-weight: bold;
}

.home > table {
  margin: auto;
  border: 1px solid black;
  border-collapse:collapse;
}

.home > th {
  background-color:teal;
  color: white;
  font-size: 1em;
  font-weight: bold;
  border-bottom: 1px solid black;
}

.home tr {
  padding: 0.25em;
}

/* Resources Page styles */

.resources h1 {
  font-size: 2em;
  text-align: center;
}

.resources h3 {
  font-size: 1.3em;
  margin: 6px 0 6px 0;
  text-align: left;
}

.resources hr {
  margin: 2em 0 2em 0;
}

.refs {
  color: grey;
}

.gloss {
  border-bottom: teal dotted 1px;
}

.synopsis {
  font-size: 1em;
  text-indent: 0px;
  margin: 0px 0px 1.25em 2.6em;
}

.pron > dt {
  float: left;
  clear: left;
  width: 25%;
  text-align: right;
  font-weight: bold;
  font-size: 1em;
}

.pron > dd {
  margin: 0 0 0 27%;
  padding: 0;
  font-size: 1em;
}

headword {
  font-size: 3em;
}

.whats-new > dt {
  float: left;
  clear: left;
  width: 25%;
  text-align: right;
  font-weight: bold;
  color: teal;
  font-size: 1em;
}

.whats-new > dt::after {
    content: ":";
}

.whats-new > dd {
  margin: 0 0 0 27%;
  padding: 0 0 0.5em 0;
  font-size: 1em;
}




/* Translation styles */

.sutra {
  max-width: 50em;
}

.sutra > h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

.sutra > h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.glossary > h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.sutra > h2 {
	font-size: 1.4em;
  margin-top: 2em;
  line-height: 1.4em;
}

.glossary > h2 {
  font-size: 2.5em;
  margin-bottom: 1em;
}

.glossary > h3 {
  font-size: 1.5em;
}

.sutra > h3 {
  font-size: 1.33em;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

.sutra > h4 {
  font-size: 1.25em;
  margin-bottom: 0.5em;
}

.sutra > h5 {
  font-size: 1.125em;
  margin-bottom: 0.5em;
}

.sutra > h6 {
  font-size: 1em;
  margin-bottom: 0.5em;
}

.sutra > h3 + p {
  margin-top: 0;
}

.sutra > h4 + p {
  margin-top: 0;
}

.sutra > h5 + p {
  margin-top: 0;
}

.sutra > h6 + p {
  margin-top: 0;
}

.sutra > h4 + h5 {
  margin-top: 0;
}

.sutra > h5 + h6 {
  margin-top: 0;
}

ol.notes-list {
  margin-left: 8%;
  margin-right: 12%;
  font-size: 1em;
}

.intro {
  margin-left: 5em;
  margin-right: 5em;
}

.verse {
  margin-left: 1.4em;
  margin-bottom: 1em;
  list-style-type: none;
  font-size: 1em;
}


.blockquote-verse {
  margin-left: 3.4em;
  margin-bottom: 1em;
  list-style-type: none;
  font-size: 1em;
}

.vagga-uddana {
  margin-left: 1.4em;
  margin-bottom: 1em;
  list-style-type: none;
  font-size: 1em;
}

li.verse p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1em;
}

.sutra > .translator, .revised {
  font-size: 0.9em;
}

.sutra > .translator {
  margin-bottom: 0em;
}

.sutra > .revised {
  margin-top: 0em;
}

table.footer-nav {
  width: 100%;
  height: 1%;
  margin-top: -0.5em;
  padding: 0;
}

table.footer-nav > td {
  margin: 0; padding: 0;
  height: 50px;
}

h3.previous {
  text-align: left;
  margin: 0;
  padding: 0;
}

h3.next {
  text-align: right;
  margin: 0;
}

.sutra ul {
  padding: 0.5em 0 0.5em 0;
  margin-left: 1.5em;
}




/* styles for translation index files */

.trans-ndx {
  max-width: 50em; 
}

ul.ma-toc-list {
  list-style-type: none;
  margin-left: 0px;
/*  text-indent: -30px;*/
}

.ma-toc-list > ol {
  list-style-type: decimal;
}

table.ma-toc {
  width: 100%;
  font-size: 0.95em;
  border-collapse: collapse;
}

table.ma-toc th {
  text-align: left;
  background-color: #FFFFE0;
  border-bottom: 3px double black;
}

table.ma-toc tr:nth-child(odd) {
  background-color: #eeeebf;
}


/* styles for bilingual table format - experimental */
table.trans {
  width: 100%;
  max-width: 58em;
  border: none;
  border-spacing: 1.25em;
}

table.trans th:first-child {
  width: 30%;
}

th {
  font-family: Cambria, Georgia, serif;
  font-size: 1.2em;
  vertical-align: top;
}

td {
  vertical-align: top;
  border: 0px grey dashed;
  font-size: 1em;
}

.ch {
  font-family: 'Noto Serif TC', PMingLiU;
  font-size: 1em;
}

.ch > ul {
  font-family: 'Noto Serif TC', PMingLiU;
  font-size: 1em;
}

.ch > a {
  text-decoration: none;
}

.en {
  font-family: Cambria, Georgia, serif;
}

.subheading {
  text-align: center;
  font-weight: bold;
}

.fasc_heading, .sutra_end {
  text-align: left;
  font-weight: bold;
}

.taisho_byline {
  text-align: left;
  font-style: italic;
}

.ch_heading {
  text-align: left;
  font-weight: bold;
}

.notes-list li > p {
  margin: 0.25em 0 0.25em 0;
  font-size: 1em;
}


/*            Essay Stylesheet                           */

article.essay {
  max-width: 40em;
}

.essay h1 {
  font-size: 3em;
  margin-top: 4em;
  margin-bottom: 0.5em;
}

.essay h2 {
  font-size: 2em;
  margin-top: 0.5em;
  margin-bottom: 2em;
}

.essay h3 {
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  text-align: left
}

figure {
  margin: 1.5em 0 1.5em 0;
}

figcaption {
  text-align: right;
}

table.comparison {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border: black solid 2px;
}

.comparison > thead tr {
  background-color: teal;
}

.comparison > thead th {
  color: white;
  border-bottom: black solid 2px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 20%));
}

.comparison > thead th:nth-child(1) {
  width: 33%;
}

.comparison > thead th:nth-child(2) {
  width: 33%;
}

.comparison > thead th:nth-child(3) {
  width: 33%;
}

table.comparison > tbody tr:nth-child(odd) {
  background-color: #eeeebf;
}

table.comparison > caption {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

table.comparison > th, td {
  padding: 0.25em;
}