/* User Provided Stylesheet */

/* MyST serves this stylesheet as myst-theme.css in each edition's root. */
html{direction:rtl}
#book-language-switcher{display:flex;align-items:center;gap:.55rem;white-space:nowrap;flex-shrink:0;padding:.35rem .6rem;margin-inline:.4rem;font-size:.88rem;border:1px solid #9eafb966;border-radius:.5rem;background:var(--myst-background-color,transparent)}
#book-language-switcher{color:#132e40}
.dark #book-language-switcher{color:#f1f5f9}
#book-language-switcher a{color:inherit;cursor:pointer;text-decoration:none;padding:.1rem .12rem}
#book-language-switcher a[aria-current=true]{font-weight:750;text-decoration:underline;text-underline-offset:.3rem}
#book-language-switcher a:focus-visible{outline:3px solid #16818b;outline-offset:3px}
html body{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
html article{line-height:1.95;text-align:start}
html h1,html h2,html h3{line-height:1.65;letter-spacing:normal}
html .myst-primary-sidebar,html .myst-secondary-sidebar{line-height:1.85;text-align:start}
html pre,html code,html .katex,html .katex-display,html mjx-container,html .myst-code-block{direction:ltr;unicode-bidi:isolate;text-align:left}
html .katex-display{overflow-x:auto;overflow-y:hidden;padding-block:.4rem}
html .katex-display>.katex{white-space:nowrap}
html code{display:inline-block;max-width:100%;vertical-align:baseline;overflow-wrap:anywhere}
html pre code{display:block;overflow-wrap:normal}
html th,html td{text-align:start}
html .cell-output table,html .output table,html .dataframe{direction:ltr;text-align:left}
html .myst-admonition{border-inline-start-width:4px;border-inline-end-width:0}
html article iframe,html article img{direction:ltr}
@media(max-width:640px){#book-language-switcher{font-size:.8rem;gap:.35rem;padding:.25rem .35rem;margin-inline:.2rem}html article{line-height:1.9}}
@media(max-width:640px){
  .myst-top-nav-bar>div:first-child{min-width:0;flex-shrink:1;margin-inline:0!important}
  .myst-top-nav-bar>div:nth-child(2){flex-grow:0;flex-shrink:0}
  .myst-home-link{min-width:0;flex-shrink:1;margin-inline:.2rem!important}
  .myst-home-link span{display:block;max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
}
@media(max-width:420px){.myst-home-link span{max-width:90px;font-size:.84rem}#book-language-switcher{font-size:.74rem;gap:.25rem;padding:.25rem}}


/* Give the Chapter 4 controls a usable viewport without affecting other figures. */
.floquet-explorer-frame div:has(> iframe) {
  /* MyST supplies an inline aspect-ratio wrapper; replace it for this tool. */
  padding-bottom: 0 !important;
  width: 100% !important;
  height: 900px;
}

.floquet-explorer-frame iframe {
  border: 1px solid #d9e2e8 !important;
  border-radius: 10px;
}

/* The Chapter 3 saved-data explorer needs room for its controls on phones. */
.unit-cell-explorer-frame div:has(> iframe) {
  padding-bottom: 0 !important;
  width: 100% !important;
  height: 1550px;
}

.unit-cell-explorer-frame iframe {
  border: 1px solid #d9e2e8 !important;
  border-radius: 10px;
}

.synthesis-explorer-frame div:has(> iframe) {
  padding-bottom: 0 !important;
  width: 100% !important;
  height: 1600px;
}

.synthesis-explorer-frame iframe {
  border: 1px solid #d9e2e8 !important;
  border-radius: 10px;
}

.foundations-explorer-frame div:has(> iframe) {
  padding-bottom: 0 !important;
  width: 100% !important;
  height: 1500px;
}

.foundations-explorer-frame iframe {
  border: 1px solid #d9e2e8 !important;
  border-radius: 10px;
}

.waves-explorer-frame div:has(> iframe) {
  padding-bottom: 0 !important;
  width: 100% !important;
  height: 1360px;
}

.waves-explorer-frame iframe {
  border: 1px solid #d9e2e8 !important;
  border-radius: 10px;
}
