/* Design language of classroomtools.io: white page, black 13px Inter,
   browser-default link colors, fixed top bar and left nav, bordered tables. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

a {
  color: -webkit-link;
  color: linktext;
  text-decoration: underline;
  cursor: pointer;
}
a:visited {
  color: -webkit-activelink;
  color: visitedtext;
}

/* ---- Fixed top bar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.25rem;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #fff;
  z-index: 10;
}
.topbar a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

/* ---- Frame below the bar ---- */
.frame { margin-top: 2.25rem; }

/* ---- Fixed left nav ---- */
.sidebar {
  position: fixed;
  top: 2.25rem;
  left: 0;
  width: 11rem;
  height: calc(100vh - 2.25rem);
  overflow-y: auto;
  padding: 0.75rem;
}
.sidebar .group { margin-bottom: 1rem; }
.sidebar .group:last-child { margin-bottom: 0; }
.sidebar .nav-label { color: #9ca3af; margin: 0 0 0.25rem; }
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li { margin: 0 0 0.125rem; }
.sidebar a[aria-current="page"] { font-weight: 700; }

/* ---- Main column ---- */
main {
  margin-left: 11rem;
  max-width: 56rem;
  padding: 0.75rem 6rem 6rem 2.5rem;
}

main section { margin: 0 0 2rem; scroll-margin-top: 3rem; }
main section:last-child { margin-bottom: 0; }

p { margin: 0 0 0.75rem; }
section > p:last-child { margin-bottom: 0; }

h1 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.bold-label {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.kicker { color: #6b7280; margin: 0 0 0.25rem; }
.muted { color: #9ca3af; }
.gray { color: #6b7280; }

.tag {
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-right: 0.5rem;
}

/* ---- Tables ---- */
table.list {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
table.list td {
  border-top: 1px solid #e5e7eb;
  padding: 0.25rem 1.5rem 0.25rem 0;
  vertical-align: top;
}
td.name { white-space: nowrap; }
td.tagline { color: #9ca3af; }
td.status {
  width: 110px;
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}
td.status .state {
  color: #9ca3af;
  font-size: 0.75rem;
}
.dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  margin-right: 0.375rem;
  vertical-align: 0.0625rem;
}
.dot.live { background: #22c55e; }
.dot.testing { background: #3b82f6; }
.dot.dev { background: #eab308; }

/* ---- In-page footer ---- */
.foot {
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  color: #9ca3af;
}

/* ---- Small screens ---- */
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 0.75rem 0.75rem 0;
  }
  .sidebar .group-extra { display: none; }
  .sidebar .group { margin-bottom: 0; }
  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
  main {
    margin-left: 0;
    padding: 0.75rem 1rem 4rem;
  }
}

@media (max-width: 560px) {
  td.status { display: none; }
  td.name { white-space: normal; }
}
