body {
    background-color: #EBEBEB;
    color: black;
    font-family: var(--theme-font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    scroll-behavior: smooth;
}

h1,h2,h3,h4,
.h1,.h2,.h3,.h4 {
    font-family: var(--theme-font-headings);
}

h1 {
    color: var(--theme-color-h1);
    background-color: #fff;
}

h2, .h2 {
    color: var(--theme-color-h2);
    background-color: #fff;
}

h3, .h3 {
    color: var(--theme-color-h3);
    background-color: #fff;
}


h4 {
    color: var(--theme-color-h4);
    background-color: #fff;
}

a {
    color: var(--theme-color-a);
    background-color: #fff;
}

strong {
    color: var(--theme-color-strong);
    background-color: #fff;
}

main li {
    margin-bottom: 1rem;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* main:not(.section-1) img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
} */

main {
    display: block;
    background-color: white;
    color: black;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-container {
    display: block;
    background-color: white;
    color: black;
    font-size: 1.25rem;

    max-width: 800px;
    margin: 0 auto;
}

main,
#section-navigation {
padding: 1rem 2rem;
}



header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    main,
    header,
    #section-navigation {
        padding: 0.5rem;
    }
}

.flex-between {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-rows {
    display: flex;
    flex-wrap: wrap;
}

.flex-group {
    display: flex;
}

[hidden] {
    display: none!important;
}

.align-top {
    align-items: flex-start;
}

@media (min-width: 600px) {
    .md\:flex-between {
        display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    }
}

.audio-player {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

#audio-player-controls {
    flex-shrink: 1;
}

h1,
.section-title {
    font-weight: bold;
}

a {
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

td {
    vertical-align: middle;
}

td:nth-child(2) {
    padding: 2rem;
}

td:nth-child(1) {
    width: 25%;
    text-align: center;
}

p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

tr {
    border: none;
}

@media (max-width: 600px) {

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 32px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    h3 {
        font-size: 24px;
    }
}

h1 {
    font-size: 36px;
}

h2, .h2 {
    font-size: 28px;
    font-weight: bold;
}

h3, .h3 {
    font-size: 24px;
    font-weight: bold;
}

h3.word-list-term {
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    td {
        display: block;
    }

    td:nth-child(1) {
        width: 100%;
    }

    td:nth-child(2) {
        padding: 0;
    }
}

button,
.button {
    -webkit-appearance: none;
    border-radius: 0;
    text-align: inherit;
    background: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    border: none;
    color: inherit;
    font: inherit;
    display: inline-block;
    margin: 0;
}

button {
    touch-action: manipulation; 
}

button,
.button {
    background-color: white;
    border: 2px solid var(--theme-color-accent);
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
}

button:hover,
.button:hover {
    background-color: var(--theme-color-accent);
    color: var(--theme-color-on-accent);
    text-decoration: none;
}

button:focus,
.button:focus,
a:focus,
input:focus {
    outline: 2px dashed var(--theme-color-accent);
    outline-offset: 2px;
}
  

header {
    background-color: white;
    border-bottom: 2px solid var(--theme-color-accent);
}

.sticky {
    position: sticky;
    top: 0;
}

[data-highlight="true"] {
    color: var(--theme-color-on-highlight);
    background-color: var(--theme-color-highlight);
    outline: 1px solid var(--theme-color-highlight);
}


#nav {
    border: 2px solid var(--theme-color-accent);
    border-radius: 10px;
}

#nav-container {
    position: absolute;
    top: 125%;
    right: 0.5rem;
    max-width: 400px;
    border-radius: 10px;

    z-index: 3;
    background-color: white;
}



/* @media (max-width: 768px) {
    #nav-container {
        width: calc(100% - 4rem);
    }
} */

.box-shadow {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

nav ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 0;
    max-width: 400px;

    max-height: 60vh;
    overflow-y: auto;
}

nav ul a {
    display: block;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #EBEBEB;
    color: black;
    font-weight: normal;
}

nav li a {
    background-color: transparent;
}

nav li:last-child a {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

nav a[aria-current] {
    background-color: var(--theme-color-current-nav-bg);
    color: var(--theme-color-current-nav-color);
    font-weight: bold;
}

.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--theme-color-accent);
}

.visually-hidden {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
}

.disclaimer {
    font-size: smaller;
}

.nav-container h2 {
    font-size: 1.25rem;
    max-width: 400px;
    padding: 0 1rem;
    text-align: left;
    margin-left: auto;
    margin-bottom: -1rem;
}

#speed-controls {
    text-align: center;
    margin-right: 1rem;
    position: relative;
    margin-top: 1rem;
}

#speed-controls #speed-label {
    margin-top: 0;
    font-weight: bold;
    position: absolute;
    top: -1.6rem;
    left: 0.25rem;
    font-size: smaller;
}

#speed-buttons {
    display: flex;
    align-items: stretch;
    
}

#speed-buttons > * {
    padding: 0 10px;
    border: 2px solid var(--theme-color-accent);
    border-left-width: 0;
}

#speed-buttons > :first-child {
    border-left-width: 2px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#speed-buttons > :last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#speed-indicator {
    width: 4rem;
    text-align: center;
}

#speed-buttons button {
    border-radius: 0;
}

input[type="checkbox"] {
    accent-color: var(--theme-color-accent);
}

div[data-contains="controls"] {
    position: relative;
}

div[data-layout="bar"] {
    display: flex;
}

div[data-layout="bar"] > button {
    border-radius: 0;
    border-left-width: 1px;
    border-right-width: 1px;
}

div[data-layout="bar"] > button:first-child {
    border-left-width: 2px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

div[data-layout="bar"] > button:last-of-type {
    border-right-width: 2px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.button-with-icon, .button-with-icon [data-show-when] {
    display: flex;
    align-items: center;
}

.button-with-icon[aria-expanded="true"] [data-show-when="open"] {
    display: flex;
}

.button-with-icon[aria-expanded="true"] [data-show-when="closed"] {
    display: none;
}

.button-with-icon[aria-expanded="false"] [data-show-when="closed"] {
    display: flex;
}

.button-with-icon[aria-expanded="false"] [data-show-when="open"] {
    display: none;
}

[data-show-when] {
    color: inherit;
}

.button-with-icon *
{
    pointer-events: none;
}

.button-with-icon svg {
    width: 2rem;
    height: 2rem;

    margin-right: 0.5rem;
}

.button-with-icon svg:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

.button-with-icon svg,
.button-with-icon svg path {
    fill: currentColor;
}

[data-contains="options"] {
    position: absolute;
    top: 150%;

    background-color: white;
    border: 2px solid var(--theme-color-accent);
    border-radius: 10px;
    padding: 1rem;
}

@media (max-width: 768px) {
    .hide-text-on-mob span {
        display: none;
    }

    .hide-text-on-mob svg:first-child {
        margin-right: 0;
    }

    .hide-text-on-mob svg:last-child {
        margin-left: 0;
    }


}

#nav .buttons-with-icons > .button-with-icon {
    border-width: 0;
    border-radius: 0;
} 

#nav .buttons-with-icons > .button-with-icon:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

#nav .buttons-with-icons > .button-with-icon + .button-with-icon {
    border-top-width: 2px;
}

#nav .buttons-with-icons > .button-with-icon:last-child {
    border-bottom-width: 2px;
}

.button-with-icon.generous {
    padding: 0.5rem;
}

.button-with-icon.generous svg:first-child {
    margin-right: 1rem;
}

.button-with-icon.generous svg:last-child {
    margin-right: 0;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .hide-text-on-mob svg {
        margin: 0 !important;
    }
}


.sr-only-focusable:not(:focus):not(:active) {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
  }
  
  .skip-link:focus {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 4;
  }

.align-with-bullets {
    padding-left: 40px;
}

[id] {
    scroll-margin-top: 65px;
}

table.purple-border {
    border: 4px solid var(--theme-color-accent);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
}