/* =========================================================================
   lbc-frame.css - the slim LearnByConsequence bar (Views/Shared/_LayoutEdu.cshtml). LBC's own file.
   It takes the place of SIOP's menu bar: white, a hairline below, the Education base navy and fonts.
   Light only, like the Education base.
   ========================================================================= */

.lbc-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid #d8dce3;
  font-family: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
}

.lbc-bar a { text-decoration: none; }
.lbc-bar a:hover, .lbc-bar a:focus-visible { text-decoration: underline; }

.lbc-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #0e3a5c;
}
.lbc-brand:hover { color: #0b2f4a; }

.lbc-nav { display: flex; gap: 14px; margin-left: auto; }
.lbc-nav a { font-size: 13px; color: #5c636e; }
.lbc-nav a:hover { color: #0e3a5c; }

/* Who is here, and the Leave / Sign out buttons drawn as links. */
.lbc-nav { align-items: center; }
.lbc-who { font-size: 13px; color: #101820; }
.lbc-inline { display: inline; margin: 0; }
.lbc-linkbtn {
  border: 0; padding: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; color: #5c636e;
}
.lbc-linkbtn:hover, .lbc-linkbtn:focus-visible { color: #0e3a5c; text-decoration: underline; }

/* LBC's own pages (join, teach, messages, errors): they scroll inside the frame's fixed-height main box. The
   .edu-theme class on .lbc-page brings the Education base tokens and its edu-* components. */
.lbc-scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; box-sizing: border-box; }
.lbc-page {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0 16px;
  font-family: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  color: #101820;
}
.lbc-narrow { max-width: 520px; }
.lbc-page h1 { font-size: 22px; font-weight: 700; color: #0e3a5c; margin: 0 0 10px; }
.lbc-page h2 { font-size: 17px; font-weight: 700; color: #0e3a5c; margin: 26px 0 10px; }
.lbc-page p { font-size: 14px; color: #5c636e; }
.lbc-page code { font-family: "Spline Sans Mono", monospace; font-size: 12px; color: #101820; }
.lbc-gap { margin-bottom: 16px; }
.lbc-page .lbc-small { font-size: 12px; }

.lbc-form { display: flex; flex-direction: column; gap: 6px; }
.lbc-form .edu-fld { margin-top: 8px; }
.lbc-form .edu-btn-primary { align-self: flex-start; margin-top: 12px; }
.lbc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lbc-row .edu-input { flex: 1 1 260px; }
.lbc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lbc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #101820; margin: 4px 0; }
/* Activities on the new-code form: one column per hub section (three across, stacked on a phone). */
.lbc-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; padding-left: 22px; }
.lbc-acts.lbc-off { opacity: .45; }
.lbc-acts-head {
  font-family: var(--font-data); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-2); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin: 6px 0 4px;
}
.lbc-showcode { white-space: nowrap; font-size: 13px; }
.lbc-showcode code { color: inherit; }

/* "+ New class code": the button is the details' summary; open, it hides and the card shows. */
.lbc-newcode-panel > summary { display: inline-block; list-style: none; cursor: pointer; }
.lbc-newcode-panel > summary::-webkit-details-marker { display: none; }
.lbc-newcode-panel[open] > summary { display: none; }

/* Admin tabs and the error log. */
.lbc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 18px; }
.lbc-tabs a {
  padding: 8px 14px; font-size: 14px; color: #5c636e; text-decoration: none;
  border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px;
}
.lbc-tabs a:hover { color: #0e3a5c; }
.lbc-tabs a.on { color: #0e3a5c; font-weight: 600; background: #fff; border-color: var(--border); }
.lbc-count {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px;
  background: #b2452f; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.lbc-strong { font-weight: 700; }
.lbc-errlog summary { cursor: pointer; }
.lbc-pre {
  white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; margin: 6px 0 0;
  font-family: "Spline Sans Mono", monospace; font-size: 11px; background: #f4f6f8; padding: 8px; border-radius: 4px;
}
.lbc-errors ul { margin: 0 0 6px; padding-left: 18px; color: #b2452f; font-size: 13px; }
.lbc-errors.validation-summary-valid { display: none; }
.lbc-field-error { color: #b2452f; font-size: 12px; }
.lbc-code-input { font-family: "Spline Sans Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }

/* The new-code page and its printed handout. */
.lbc-handout { text-align: center; }
.lbc-handout .lbc-step { font-size: 16px; color: #101820; margin: 6px 0; }
.lbc-code {
  font-family: "Spline Sans Mono", monospace;
  font-size: 56px; font-weight: 500; letter-spacing: 6px; color: #0e3a5c;
  margin: 18px 0 10px;
}
.lbc-qr svg { width: 280px; height: 280px; }

@media (max-width: 600px) {
  .lbc-bar { gap: 10px; }
  .lbc-nav { gap: 10px; }
  .lbc-who { display: none; }
  .lbc-code { font-size: 34px; letter-spacing: 3px; }
}

@media print {
  .lbc-bar, .lbc-noprint, .edu-copyright, .edu-foot-tagline { display: none !important; }
  body.edu-body, .edu-frame-main, .lbc-scroll { display: block !important; height: auto !important; overflow: visible !important; }
}
