/* STANDALONE BREADBOARD: layered on top of tokens.css and style.css, which
   are copied unchanged from the CSC workshop site (SLCCE Web Design Guide).
   The header is the CSC .site-header; this file only makes the page a
   full-height tool and adds the Examples menu. */

/* The page is the tool: header on top, the breadboard fills the rest. */
html,body.tool{height:100%;}
body.tool{display:flex;flex-direction:column;min-height:100dvh;height:100dvh;overflow:hidden;}
.tool-main{flex:1;min-height:0;display:flex;flex-direction:column;}
.tool-main slcce-breadboard{flex:1;min-height:0;height:100%;}
slcce-breadboard:not(:defined){display:block;}
.noscript-note{margin:var(--space-6) var(--gutter);background:var(--tint);border-radius:var(--radius-lg);padding:var(--space-4) var(--space-5);font-weight:600;}

/* HEADER: the CSC header, full width, with the tool's name by the icon. */
.site-header .header-inner{padding-left:var(--gutter);padding-right:var(--gutter);}
.app-logo{display:flex;align-items:center;gap:var(--space-3);text-decoration:none;}
.app-name{font-size:var(--fs-h4);font-weight:700;color:var(--navy);letter-spacing:-0.01em;}
.app-logo:hover .app-name{color:var(--teal-ink);}
/* Beta: the brand's yellow tag. */
.beta-tag{display:inline-flex;align-items:center;align-self:center;background:var(--yellow);color:var(--navy);font-size:11.5px;font-weight:700;line-height:1;letter-spacing:0.08em;text-transform:uppercase;padding:5px 9px;border-radius:999px;margin-left:calc(var(--space-1) * -1);}
.site-nav button.nav-link{font-family:var(--font-sans);}
/* The way back to the ECE workshops, at the far end of the menu. */
@media (min-width:1001px){.nav-item-site{margin-left:auto;}}
/* Wide screens have room for every label on one line. */
@media (min-width:1280px){.site-nav .nav-link{white-space:nowrap;}}
.nav-link .chev{width:16px;height:16px;transition:transform var(--fast) var(--ease);}
.nav-link[aria-expanded="true"] .chev{transform:rotate(180deg);}
.nav-link[aria-expanded="true"]{background:var(--tint);}

/* Examples menu */
.menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(340px,90vw);list-style:none;margin:0;padding:var(--space-2);background:var(--page);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-md);}
.menu-item{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;font-family:var(--font-sans);color:var(--navy);background:none;border:0;border-radius:var(--radius-sm);padding:10px 12px;min-height:44px;cursor:pointer;}
.menu-item:hover,.menu-item:focus-visible{background:var(--tint);}
.menu-title{font-size:16px;font-weight:600;}
.menu-text{font-size:14px;color:var(--ink-muted);line-height:1.4;}

/* Below 1000px the CSC header folds its links under a toggle; the menu
   then opens in place instead of floating. */
@media (max-width:1000px){
  .menu{position:static;width:auto;box-shadow:none;border:0;padding:0 0 var(--space-2) var(--space-3);}
}
/* Phones and small tablets: let the page scroll instead of fitting. */
@media (max-width:899px){
  body.tool{height:auto;overflow:visible;}
  .tool-main{display:block;}
  .tool-main slcce-breadboard{height:auto;}
}
