/* rtl.css */
p, li, ul, h1, h2, h3, h4 {
    direction: rtl; 
    text-align: right;
}

/* .cell:has(img) {
    direction: rtl;
} */

:root {
    --pst-font-family-base: "Alef", sans-serif; /* optional: Hebrew font */
}

/*
 .bd-article-container {
    min-width: 59vw; 
}
*/
/* .bd-container__inner {
  min-width: 100vw;
} */
.bd-container__inner {
  width: 100%;
  max-width: 100%;
  min-width: auto; /* removes the over-stretching */
}

/* .bd-sidebar-secondary {
  min-width: 17vw;
} */

.section-nav {
  padding-right: 0;
}

.Quiz {
        direction: rtl !important;
        text-align:right !important;
}

/* Change admonition title font */
.admonition-title {
    font-family: inherit !important;
    font-weight: normal !important;   /* don't force all bold */
}

/* Only bold spans (from markdown **…**) should get bold */
.admonition-title strong,
.admonition-title b {
    font-weight: bold;
}

/* Fix tables for RTL (Hebrew / Arabic) content */
table.docutils,
div.table-wrapper,
table {
  direction: rtl;         /* Make table RTL */
  text-align: right;      /* Align text properly */
}

/* /* keep toolbar visible but hide the section outline only 
.bd-sidebar-secondary {
  width: auto !important;
  min-width: auto !important;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.bd-sidebar-secondary .bd-toc {
  display: none !important;   /* hide the "On this page" headings 
} */

@media (min-width: 992px) {
  /* Remove secondary column entirely */
  :root {
    --pst-sidebar-secondary: 0px;
    --sidebarW: var(--pst-sidebar-primary, 18rem);
  }
  .bd-sidebar-secondary { display: none !important; width:0 !important; }

  /* FIXED right sidebar */
  .bd-sidebar-primary {
    position: fixed !important;
    top: 0;              /* if a sticky header overlaps, change to the header height */
    right: 0 !important; /* stick to the right edge */
    left: auto !important;
    height: 100vh;
    width: var(--sidebarW);
    overflow: auto;
    border-left: 1px solid var(--pst-color-border);
    border-right: 0;
    box-shadow: -2px 0 5px rgba(0,0,0,.05);
    background: var(--pst-color-background);
    z-index: 1020;       /* above content */
  }

  /* Content uses viewport minus sidebar width (no gap possible) */
  .bd-container, .bd-page-width, .bd-container__inner, .bd-main {
    max-width: none !important;
    width: calc(100vw - var(--sidebarW)) !important;
    margin: 0 !important;
    padding-right: 1rem !important;  /* breathing room near sidebar */
    padding-left: 0 !important;
  }


  .bd-main .bd-content,
  .bd-main .bd-content .bd-article-container {
    max-width: 100% !important;
  }
}

html, body { overflow-x: hidden; }

/* Replace the error admonition icon */
.admonition.error > .admonition-title::after {
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;

  content: "\f06a" !important;  /* Font Awesome 'exclamation-circle' */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";

}


.admonition.error > .admonition-title::after {
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;

  content: "\f06a" !important;  
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";

}

.admonition.caution > .admonition-title::after {
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;

  content: "\f059" !important;  
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";

}



/* --- Custom text admonition --- */
.admonition.custom-text {
  border-color: #7a3fff;                  /* purple border */
  background-color: rgba(122, 63, 255, .05);
}

/* Title bar (header) */
.admonition.custom-text > .admonition-title {
  background-color: #7a3fff;              /* purple header background */
  color: white;
}

/* Custom purple admonition */
.admonition.custom-text {
  border-color: #7a3fff;       /* dark purple border */
  background-color: #ffffff;   /* white content background */
}

/* Header (title bar) */
.admonition.custom-text > .admonition-title {
  background-color: #ede3ff;   /* light purple header background */
  color: #4b0082;              /* dark purple title text */
  border-bottom: 1px solid #7a3fff;
}

/* Replace the icon */
.admonition.custom-text > .admonition-title::after {
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;

  /* Font Awesome icon */
  content: "\f518" !important;            /* lightbulb (example) */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  color: #5a00b3;                         /* dark purple icon */
  display: inline !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  margin-right: 0.4em;                    /* adjust for RTL/LTR later if needed */
  vertical-align: baseline !important;
}


.custom-text-content {
  color: purple
}



