/* The header takes the logo's orange, in both light and dark schemes. */
:root,
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #FF6200;
  --md-primary-fg-color--light: #FF8533;
  --md-primary-fg-color--dark: #CC4E00;
  --md-primary-bg-color: #FFFFFF;
  --md-primary-bg-color--light: #FFFFFFB3;
}

/* A larger header logo (the theme's default is 1.2rem tall). */
.md-header__button.md-logo {
  margin: 0.1rem;
  padding: 0.1rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2.4rem;
  /* A white glow sets the disc off from the header of the same orange. */
  filter: drop-shadow(0 0 0.1rem #FFFFFF) drop-shadow(0 0 0.3rem rgba(255, 255, 255, 0.8));
}

/* The home page logo: small, floated right, the pitch and first paragraph
   wrap to its left. On a narrow screen it sits centered above the text. */
.home-logo {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.home-logo img {
  width: 13rem;
  height: auto;
}

@media screen and (max-width: 44.9375em) {
  .home-logo {
    float: none;
    margin: 0 0 1rem 0;
    text-align: center;
  }

  .home-logo img {
    width: 9rem;
  }
}

/* The theme dims a header button on hover (opacity 0.7), which darkens it on
   the orange header. Brighten instead: full opacity plus a brighter glow on the
   logo, and a white glow on the light/dark toggle. */
.md-header__button.md-logo:hover,
.md-header__button.md-logo:focus {
  opacity: 1;
}

.md-header__button.md-logo:hover img,
.md-header__button.md-logo:focus img {
  filter: brightness(1.15) drop-shadow(0 0 0.15rem #FFFFFF) drop-shadow(0 0 0.6rem #FFFFFF);
}

.md-header__option .md-header__button:hover,
.md-header__option .md-header__button:focus {
  opacity: 1;
  filter: drop-shadow(0 0 0.3rem #FFFFFF);
}

/* The first section heading after the logo starts below it. */
.home-logo ~ h2 {
  clear: right;
}

/* The home page's Start Here table: the first column never wraps. Material
   wraps each table in a scroll container, so both forms are named. */
.home-logo ~ .md-typeset__scrollwrap td:first-child,
.home-logo ~ table td:first-child {
  white-space: nowrap;
}

/* Worked Examples: the Lantern Studio mark */
.md-typeset img.lantern-mark { float: left; width: 160px; margin: .2em 1.5em 1em 0; }
.md-typeset img.lm-dark { display: none; }
[data-md-color-scheme="slate"] .md-typeset img.lm-light { display: none; }
[data-md-color-scheme="slate"] .md-typeset img.lm-dark { display: inline; }
@media (max-width: 600px) { .md-typeset img.lantern-mark { width: 110px; margin-right: 1em; } }

/* Two-row tables at phone width (javascripts/tworow.js), styled as the alr-emit dashboard
   draws them: gray cell borders, plain gray buttons, and the row's other figures in a gray card. */
.md-typeset table.tworow-on { display: table; width: 100%; border-collapse: collapse; border: 0; }
.md-typeset table.tworow-on th, .md-typeset table.tworow-on td { border: 1px solid #8884; padding: .3em .55em; white-space: normal; vertical-align: top; text-align: left; }
.md-typeset table.tworow-on thead th { background: #8881; font-weight: 700; }
.md-typeset table.tworow-on tr > :first-child { min-width: 7.5em; }
.md-typeset table.tworow-on span.tworow-label { display: block; overflow: hidden; }
.md-typeset table.tworow-on tbody tr:hover { background: transparent; }
.md-typeset button.tworow-expandall, .md-typeset button.tworow-expander { font: inherit; color: var(--md-default-fg-color); background: #8882; border: 1px solid #8886; border-radius: 4px; cursor: pointer; }
.md-typeset button.tworow-expandall { display: inline-block; margin: .3em 0 .2em; padding: .15em .7em; font-size: .75rem; }
.md-typeset table.tworow-on button.tworow-expander { float: left; width: 1.6em; height: 1.6em; margin: 0 .45em 0 0; padding: 0; font-weight: 700; line-height: 1; }
.md-typeset tr.tworow-detailrow > td { padding: .35em .45em .45em; background: transparent; }
.md-typeset dl.tworow-detail { display: grid; grid-template-columns: 1fr; gap: .1em 0; margin: 0; padding: .45em .7em; background: #8881; border: 1px solid #8884; border-radius: 4px; }
.md-typeset dl.tworow-detail dt { margin: .25em 0 0; font-size: .82em; opacity: .8; }
.md-typeset dl.tworow-detail dd { margin: 0 0 .25em; overflow-wrap: anywhere; }
/* The script hides the two-row controls above phone width with the hidden attribute; keep it winning. */
.md-typeset button.tworow-expandall[hidden], .md-typeset button.tworow-expander[hidden], .md-typeset tr.tworow-detailrow[hidden] { display: none; }

/* Sidebar: a section's pages sit indented under its heading, as Install's pages do (no show/hide). */
@media screen and (min-width: 76.25em) {
  .md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav > .md-nav__list {
    margin-left: .8rem;
  }
}

/* Worked Example images (javascripts/zoom.js): a thumbnail in the page, full size on click. */
.md-typeset img[src*="examples/img/"], .md-typeset img[src^="img/"], .md-typeset img[src^="../img/"] {
  max-width: min(100%, 22rem); max-height: 18rem; width: auto; height: auto; border: 1px solid #8884; border-radius: 4px;
}
.md-typeset img.zoom-thumb { cursor: zoom-in; }
/* Dark mode: a soft white shadow sets the screenshots apart from the dark page. */
[data-md-color-scheme="slate"] .md-typeset img:is([src*="examples/img/"], [src^="img/"], [src^="../img/"]):not(.lantern-mark) {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 14px rgba(255, 255, 255, .28);
}
[data-md-color-scheme="slate"] .zoom-full { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 4px 28px rgba(255, 255, 255, .3); }
.md-typeset img.zoom-thumb:focus-visible { outline: 3px solid var(--md-accent-fg-color); outline-offset: 2px; }
.zoom-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1rem 1rem; background: rgba(0, 0, 0, .82); cursor: zoom-out; }
.zoom-overlay[hidden] { display: none; }
.zoom-full { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.zoom-close { position: absolute; top: .4rem; right: .8rem; font-size: 2rem; line-height: 1; color: #fff;
  background: transparent; border: 0; cursor: pointer; }
body.zoom-open { overflow: hidden; }

/* Per-page feedback link (punch list 18) */
.page-feedback { margin-top: 2.5rem; font-size: .7rem; opacity: .8; }

/* Footnote markers look the same after the footnote's back link is followed
   (Material outlines the :target marker); keyboard focus still shows. */
.md-typeset [id^="fnref:"]:target > .footnote-ref { outline: none; }
.md-typeset .footnote-ref:focus-visible { outline: 2px solid var(--md-accent-fg-color); outline-offset: 1px; }
