@font-face {
    font-family: "bsm";
    src: url("/fonts/bsm.woff2");
}

@font-face {
    font-family: "tr";
    src: url("/fonts/TrajanPro3Regular.woff2");
    font-weight: normal;
}
@font-face {
    font-family: "tr";
    src: url("/fonts/TrajanPro3SemiBold.woff2");
    font-weight: 600;
}

@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-Regular.woff2");
    font-weight: normal;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-Italic.woff2");
    font-style: italic;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-Medium.woff2");
    font-weight: 500;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-MediumItalic.woff2");
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-SemiBold.woff2");
    font-weight: 600;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-SemiBoldItalic.woff2");
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-Bold.woff2");
    font-weight: bold;
}
@font-face {
    font-family: "ebg";
    src: url("/fonts/EBGaramond-BoldItalic.woff2");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "uth-hafs";
    src: url("/fonts/UthmanicHafs1-Ver13.woff2");
}

@font-face {
    font-family: "uth-naskh";
    src: url("/fonts/UthmanTN_v2-0.woff2");
}
@font-face {
    font-family: "uth-naskh";
    font-weight: bold;
    src: url("/fonts/UthmanTNB_v2-0.woff2");
}

@font-face {
    font-family: "sch";
    src: url("/fonts/ScheherazadeNew-Regular-C.woff2");
}

html { font-size: 2.6vw; }
@media all and (min-width:1000px) { html { font-size: 26px; } }
@media all and (max-width:520px) { html { font-size: 20px; } }

h1, h2, .post-content > h4:first-child {
    padding: 0;
    margin: 0 0 0.3rem 0;
    line-height: 1;
    text-wrap: balance;
}

.balance {
    text-wrap: balance;
}

h4 + h3 {
    margin-top: 0;
}

.w-fit { width: fit-content; display: block; margin: auto; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-75 { width: 75%; }
.h-0125 { height: 0.125rem; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

h1, h2, h3, h4 {
    font-weight: 500;
}

h5 {
    font-weight: normal;
}

h4 {
    color: #808080;
}

.small {
    font-size: 70%;
    position: relative;
    top: -0.08em;
}

h1 {
    font-size: 180%;
}

@media all and (min-width:331px) { .k-b-h1 { font-size: clamp(1.25rem, 7.5vw, 1.5rem); } }
@media all and (max-width:331px) { .k-b-h1 { font-size: 1.5rem; } }
@media all and (min-width:486px) { .w-b-v-t-h2 { font-size: clamp(1.125rem, 4.7vw, 1.25rem); } }
@media all and (max-width:486px) { .w-b-v-t-h2 { font-size: 1.25rem; } }

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-150 {
    font-size: 150%;
}
.text-90 {
    font-size: 90%;
}
.text-80 {
    font-size: 80%;
}

.font-semibold {
    font-weight: 600;
}

.tr {
    font-family: "tr";
}

.post-date {
    color: dimgrey;
    font-size: 90%;
}

p, ul {
    margin-block-start: 0;
}

.talk-list li {
    margin-bottom: 0.5rem;
}

.nowrap {
    text-wrap: nowrap;
}
@media all and (max-width:520px) { .link-list { text-align: center; } }

body {
    font-size: 1rem;
    font-family: "ebg";
    font-weight: 100;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    font-variant-numeric: oldstyle-nums;
}

.pnum {
    font-variant-numeric: proportional-nums;
}

.smcp {
    font-variant-caps: small-caps;
}

div#content {
    padding: 2rem 0 1rem 0;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}

div#content:has(div#registration iframe) {
    padding-bottom: 0;
}

@media all and (max-width:520px) {
    div#content {
        margin: 1.5rem;
        padding: 0;
    }
}

strong {
    font-weight: 600;
}

.bold strong {
    font-weight: bold;
}

.header {
    padding: 1rem 0;
}

.basmalah {
    text-align: center;
    font-family: "bsm";
    margin-bottom: 1em;
    color: dimgrey;
}

.quote, .dimgrey {
    color: dimgrey;
}

.ref {
    color: silver;
    font-size: 80%;
}

.ref a, .ref a:visited,
a .ref, a:visited .ref,
.lightblue a, .lightblue a:visited,
a .lightblue, a:visited .lightblue,
.lightblue {
    color: #5e8ccc;
}

.center {
    text-align: center;
}

.title, .home-title {
    font-family: "tr";
    text-align: center;
}

.large {
    font-size: 120%;
}
.home-title {
    font-size: 160%;
}

.home-link, .home-link:visited {
    color: inherit;
    text-decoration: none;
}

.title-link, .title-link:visited,
:is(h2, h3) :is(a, a:visited) {
    color: inherit;
    text-decoration-color: #e0e0e0;
    text-decoration-thickness: 5%;
    text-underline-offset: 0.1em;
}

a, a:visited {
    color: #0D47A1;
    text-decoration-color: #e0e0e0;
    text-decoration-thickness: 5%;
    text-underline-offset: 0.1em;
}

.q-title {
    text-align: center;
    font-family: "uth-hafs";
    font-size: 120%;
    color: dimgrey;
}

.ar-title {
    text-align: center;
    font-family: "uth-naskh";
    font-size: 120%;
    color: dimgrey;
}

.ar {
    text-align: center;
    font-family: "uth-naskh";
    color: dimgrey;
}

.ar-main {
    text-align: center;
    font-family: "uth-naskh";
}

.sch {
    font-family: "sch";
    font-size: 0.8em;
}

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.screen-height {
    min-height: 75vh;
}

.screen-height + hr {
    margin-top: 6em;
}

.gap + hr {
    margin-top: 3em;
}

.gap + div {
    margin-top: 2em;
}

hr {
    border: 0;
    height: 0.2rem;
    background-color: #e0e0e0;
}

hr + .gap {
    margin-bottom: 1em;
}

.icon {
    width: 0.9em;
    margin-inline-start: 0.5em;
    display: block;
}

.button, .button:visited {
  appearance: button;
  text-decoration: none;
  backface-visibility: hidden;
  background-color: #5e8ccc;
  border-radius: 6px;
  border-width: 0;
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif;
  font-size: 90%;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 2.4em;
  outline: none;
  overflow: hidden;
  position: relative;
  text-align: center;
  text-transform: none;
  transform: translateZ(0);
  transition: all .2s,box-shadow .08s ease-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 15em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.button:disabled {
  cursor: default;
}

.button:focus {
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}

@media all and (min-width:370px) {
    .button { float:right; max-width: 40%; margin-top: 0.25rem; margin-left: 0.5rem; }
}
@media all and (max-width:370px) {
    .button { max-width: 75%; display: block flex; margin-top: 1rem; margin-left: auto; margin-right: auto; }
}