/* extras.css 
   This file contains additional CSS rules to customize the appearance of the MkDocs Material theme.
   It is included in the mkdocs.yml configuration file under the 'extra_css' section.
*/
.md-header__button.md-logo {
    margin: 0;
    padding: 0;
}
.md-header__button.md-logo img, .md-header__button.md-logo svg {
    height: 60px;
    width: auto;
}

/* Make Maroon the Primary Color */
:root {
  --md-primary-fg-color: #800000;
  --md-primary-fg-color--light: #a04545;
  --md-primary-fg-color--dark: #600000;
}

/* Container to control the iframe size and scaling */
.iframe-container {
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  /* Iframe styles */
  iframe {
    width: 100%;
    border: solid 2px blue;
  }

  /* if a div with <div class="upper-alpha"> wraps a list, then number A.B.C.D etc */
  /* this requires that the markdown extension md_in_html is enabled in the mkdocs.yml file */
  .upper-alpha ol {
    list-style-type: upper-alpha;
  }

/* Styling for the Copy Button */
.admonition.prompt {
  position: relative;
}

.admonition.prompt .copy-button {
  position: absolute;
  top: 4px;
  right: 6px;
  background-color: #0056d6;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.3rem;
  cursor: pointer;
  font-size: 0.7rem;
}

.admonition.prompt .copy-button:hover {
  background-color: #0041a4; /* Darker blue on hover */
}

/* Circuit Symbol Gallery (appendices/symbol-gallery)
   Material's stock card grid fits as many 16rem columns as the viewport
   allows; this pins it to exactly five across on desktop and steps down
   on narrower screens.

   Every rule in this block — including the media queries — is scoped to the
   .symbol-grid class, so a plain `<div class="grid cards" markdown>` keeps
   Material's auto-fit behavior and any future 2-, 3-, or 4-column grid can
   define its own class without fighting these rules. Do NOT relax any of
   these selectors to bare .grid or .grid.cards. */
.md-typeset .grid.symbol-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 0.5rem;
}

.md-typeset .grid.symbol-grid > ul > li {
  padding: 0.6rem 0.4rem;
  text-align: center;
}

/* Symbols vary from wide-and-short to tall, so give each one the same
   drawing area and let it scale inside that box. */
.md-typeset .grid.symbol-grid img {
  display: block;
  margin: 0 auto 0.4rem;
  max-width: 100%;
  height: 4rem;
  object-fit: contain;
}

.md-typeset .grid.symbol-grid > ul > li > p {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  line-height: 1.35;
}

.md-typeset .grid.symbol-grid > ul > li > p:last-child {
  color: var(--md-default-fg-color--light);
  margin-bottom: 0;
}

@media screen and (max-width: 76.1875em) {
  .md-typeset .grid.symbol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .grid.symbol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------------------
   Page status markers

   Material renders <span class="md-status md-status--KEY"> next to a nav item
   when the page has `status: KEY` in its frontmatter and the key is listed
   under `extra.status` in mkdocs.yml. The icon itself is a mask image, so each
   custom key needs a --md-status--KEY variable plus a rule that applies it.

   Five levels, matching the quality bands in the hands-on-lab-evaluator skill:

     complete         green check    90-100  publish ready
     almost-complete  blue dot       80-89   minor gaps
     in-progress      amber dot      65-79   teachable but incomplete
     early-stage      red dot        40-64   draft
     stub             grey ring      0-39    little content yet

   The :hover rules exist because Material's base stylesheet resets the marker
   to currentcolor on hover, which would drop the color that carries the meaning.
   --------------------------------------------------------------------------- */

:root {
  --md-status--complete: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7z"/></svg>');
  --md-status--dot: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"/></svg>');
  --md-status--ring: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5" fill="none" stroke="black" stroke-width="2"/></svg>');

  --md-status-color--complete: #2e9e4f;
  --md-status-color--almost-complete: #1e88e5;
  --md-status-color--in-progress: #f0a020;
  --md-status-color--early-stage: #e04b3f;
  --md-status-color--stub: #9e9e9e;
}

.md-status--complete::after,
.md-status--complete:hover::after {
  -webkit-mask-image: var(--md-status--complete);
  mask-image: var(--md-status--complete);
  background-color: var(--md-status-color--complete);
}

.md-status--almost-complete::after,
.md-status--almost-complete:hover::after {
  -webkit-mask-image: var(--md-status--dot);
  mask-image: var(--md-status--dot);
  background-color: var(--md-status-color--almost-complete);
}

.md-status--in-progress::after,
.md-status--in-progress:hover::after {
  -webkit-mask-image: var(--md-status--dot);
  mask-image: var(--md-status--dot);
  background-color: var(--md-status-color--in-progress);
}

.md-status--early-stage::after,
.md-status--early-stage:hover::after {
  -webkit-mask-image: var(--md-status--dot);
  mask-image: var(--md-status--dot);
  background-color: var(--md-status-color--early-stage);
}

.md-status--stub::after,
.md-status--stub:hover::after {
  -webkit-mask-image: var(--md-status--ring);
  mask-image: var(--md-status--ring);
  background-color: var(--md-status-color--stub);
}