.scope {
  margin: 0;
  padding: 0.25rem;
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.scope main header {
  padding: 1rem 1.25rem;
  margin: 0.25rem 0.75rem;
}

.scope header h1,
.scope header h2 {
  color: #2f438d;
  text-align: center;
}

.scope main h3,
.scope h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2f438d;
}

.scope main hr {
  max-width: 640px;
  margin: 0.5rem auto;
}

.scope main ::-webkit-scrollbar {
  width: 0.25rem;
}

.scope main ::-webkit-scrollbar-track {
  background: grey;
}

.scope main ::-webkit-scrollbar-thumb {
  background: white;
  width: 0.25rem;
}

.scope main .example {
  background-color: bisque;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin: 1em 0;
  overflow-x: scroll;
}

.scope main .example h3 {
  color: black;
}

.scope main .box {
  min-width: 40vw;
  padding: 0.25rem 0.75rem;
  border: 1px solid black;
  font-size: small;
}

.scope footer p * {
  font-style: italic;
}

.scope ul.dashed > li::marker {
  content: '- ';
}

.scope table {
  width: 100%;
  margin: 0.25rem auto;
  overflow-x: auto;
  border: 1px black solid;
  border-collapse: collapse;
}

.scope td,
.scope th {
  border: 1px black solid;
  padding: 0.5rem 0.75rem;
}

.scope table.list {
  border: 0;
  width: calc(100% - 2rem);
  margin: 0.25rem auto;
  padding: 0.25rem;
  table-layout: fixed;
}

.scope table.list *,
.scope table.list td:first-child {
  border: 0;
}

.scope table.list td:first-child {
  vertical-align: top;
  width: 2.5rem;
}

.scope table.list tr:not(:first-child) {
  width: auto;
}

.scope .fraction {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
}

.scope .fraction > span {
  display: block;
  padding: 0 0.2em;
}

.scope .fraction .numerator {
  border-bottom: 1px solid #000;
}

.scope .fraction .denominator {
  margin-top: -0.1em;
}

.scope #linktogtl,
.scope #linktogtl *,
.scope #gtlnotes h3,
.scope #gtlnotes h3 * {
  color: #43af76;
}

.scope .repeal,
.scope .repeal *,
.scope .attention {
  color: #c00000;
}

.scope p {
  padding: 0.25rem 1rem 0.25rem 0.5rem;
  margin: 0.25rem 0.5rem;
  line-height: 1.3rem;
  text-align: justify;
}

.scope a {
  color: #5948ca;
  text-decoration: none;
  font-weight: 600;
}

.scope a:hover {
  text-decoration: underline;
}

.scope main article,
.scope article {
  background-color: #f8f8f8;
  /* margin: 0 0.5rem 0.8rem; */
  margin: 0.8rem auto;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 2px rgba(0, 0, 0, 0.3);
}

.scope main article > *:nth-child(1) {
  text-align: center;
}

.scope main article p > *:nth-child(1) {
  text-align: left;
}

.scope article {
  /* margin-bottom: 0.8rem; */
  padding: 20px;
  background-color: #f0f0f0;
}

.scope article:nth-child(odd) {
  background-color: #e8e8e8;
}

.scope article:not(:last-child) {
  border-bottom: 2px solid #ddd;
  border-top: 2px solid #ddd;
}

.scope .chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #c7c6c6;
  margin: 0.8rem auto;
  border-radius: 10px;
  box-shadow: 0 5px 2px rgba(0, 0, 0, 0.3);
}

.scope .chapter > h3 {
  padding: 0.1rem;
}

.scope main .index {
  border: 2px solid black;
  padding: 10px;
  border-radius: 1rem;
  margin: 1rem 0;
  background-color: #fff;
  box-shadow: 0 5px 2px rgba(0, 0, 0, 0.2);
}

.scope main .index li {
  list-style: none;
  margin: 0.5rem 0;
}

.scope main .index ol {
  list-style-type: none;
  margin-top: 0;
  padding-left: 1rem;
}

.scope main .index a {
  display: inline-block;
  padding: 0.1rem 0;
  text-align: left;
}

@media only screen and (max-width: 1200px) {
  .scope {
    font-size: medium;
  }

  .scope p {
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    margin: 0.25rem 0.5rem;
    line-height: 1.4rem;
  }
}

@media only screen and (max-width: 768px) {
  .scope {
    font-size: small;
    padding: 5px;
    margin: 2px;
  }

  .scope header {
    padding: 0.75rem 0.5rem;
    margin: 0.25rem 0.5rem;
  }

  .scope p {
    padding: 0.2rem 0.5rem 0.2rem 0.35rem;
    margin: 0.2rem 0.35rem;
    line-height: 1.2rem;
  }

  .scope table {
    display: block;
    overflow-x: auto;
  }

  .scope header h2,
  .scope header h3,
  .scope header h4 {
    font-size: 1.3rem;
  }

  .scope main h3 {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .scope header {
    padding: 0.3rem 0.2rem;
    margin: 0.2rem;
  }

  .scope main .index a {
    display: inline-block;
    text-align: left;
  }

  .scope article ol {
    padding-left: 1rem;
  }
}

.scope footer h3 a {
  padding: 0.25rem 1rem 0.25rem 0.5rem;
  margin: 0.25rem 0.5rem;
  color: #43af76;
  line-height: 1.3rem;
}

.gtl-notes-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: auto;
}

.gtl-notes-content h1,
.gtl-notes-content h2,
.gtl-notes-content h3,
.gtl-notes-content h4 {
  color: #2f438d;
}

@media (max-width: 768px) {
  .gtl-notes-content h1,
  .gtl-notes-content h2,
  .gtl-notes-content h3,
  .gtl-notes-content h4 {
    font-size: 1.2rem;
  }
}

.gtl-notes-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .gtl-notes-content h3 {
    font-size: 0.9rem;
  }
}

.gtl-notes-content ::-webkit-scrollbar {
  width: 0.25rem;
}

.gtl-notes-content ::-webkit-scrollbar-track {
  background: grey;
}

.gtl-notes-content ::-webkit-scrollbar-thumb {
  background: white;
  width: 0.25rem;
}

.gtl-notes-content p * {
  font-style: italic;
}

.gtl-notes-content ul.dashed > li::marker {
  content: '- ';
}

.gtl-notes-content ol,
.gtl-notes-content ul {
  padding-inline-start: 2rem;
}

@media (max-width: 768px) {
  .gtl-notes-content li::marker {
    font-size: 0.9rem;
  }
}

.gtl-notes-content #linktogtl,
.gtl-notes-content #linktogtl *,
.gtl-notes-content #gtlnotes h3,
.gtl-notes-content #gtlnotes h3 * {
  color: #43af76;
}

.gtl-notes-content .linktogtl a {
  color: #43af76;
}

.gtl-notes-content p {
  padding: 0.25rem 0;
  margin: 0.25rem auto;
  line-height: 1.5rem;
  text-align: justify;
}

@media (max-width: 768px) {
  .gtl-notes-content p {
    padding: 0.15rem 0;
    font-size: 0.9rem;
  }
}

.gtl-notes-content a {
  color: #5948ca;
  text-decoration: none;
  font-weight: 600;
}

.gtl-notes-content a:hover {
  text-decoration: underline;
}

.gtl-notes-content p:has(> span.gtl-space:first-child) {
  display: flex;
  flex-direction: row;
  align-items: start;
}

.gtl-notes-content p:has(> span.gtl-space:first-child) > span.gtl-space {
  margin-left: unset;
  margin-top: unset;
}

.gtl-notes-content .start {
  text-align: start;
}

.gtl-notes-content .end {
  text-align: end;
}

.gtl-notes-content p span {
  margin: auto 0.25rem;
  padding: auto 0.25rem;
}

.scope .footnote-space ol {
  margin: 0;
}

.scope .footnote-space ul {
  margin: 0;
}

.scope .footnote-space ol li {
  margin-left: 1.5%;
}

.scope .footnote-space ul li {
  margin-left: 1.5%;
}
@media (max-width: 768px) {
  .scope .footnote-space {
    padding: 0.15rem 0;
    font-size: 0.9rem;
  }
}

.scope .center {
  text-align: center;
}
