@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   Course accent is set by a class on <body>:
     c-eng  Intro to Engineering   (teal)
     c-rob  Robotics and Machines  (amber)
     c-arc  Architecture and Design (blueprint blue)
   ============================================================ */

:root {
  --ink:        #1A1D21;
  --ink-2:      #5A626C;
  --paper:      #F7F7F5;
  --panel:      #FFFFFF;
  --rule:       #D6D8D3;
  --rule-hard:  #A9ADA8;
  --alert:      #9B2C2C;
  --alert-wash: #FBEEEE;

  --accent:      #3A3F45;
  --accent-ink:  #2A2E33;
  --accent-wash: #EEEEEB;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", var(--sans);

  --sp: 1rem;
  --radius: 3px;
  --shell: 1120px;
  --read: 68ch;
}

body.c-eng { --accent:#0F6E75; --accent-ink:#0A565C; --accent-wash:#E6F0F0; }
body.c-rob { --accent:#B45F06; --accent-ink:#8A4805; --accent-wash:#F7EDE0; }
body.c-arc { --accent:#1E4B8F; --accent-ink:#173C73; --accent-wash:#E7ECF5; }

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.35rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 2.2rem; }
h3 { font-size: 1.08rem; margin-top: 1.6rem; }

p, ul, ol { margin: 0 0 1.05rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 600; }

/* Eyebrow label — the mono/condensed voice used for every structural label */
.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: .35rem;
}

/* ============================================================
   TOP BAR  — fixed six items, never changes
   ============================================================ */

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem 1.15rem;
}
.brand {
  font-family: var(--cond);
  font-size: 1.16rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .7rem 0;
  margin-right: .4rem;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.topbar nav a {
  font-family: var(--cond);
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: .7rem 0;
  border-bottom: 3px solid transparent;
}
.topbar nav a:hover { color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ============================================================
   BREADCRUMB — replaces the title block. Carries the same
   information (where am I, which course, which sheet) in one
   line, and doubles as navigation.
   ============================================================ */

.crumbs {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.crumbs-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: .7rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .5rem;
  font-family: var(--cond);
  font-size: 1.2rem;
  letter-spacing: .02em;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.crumbs .sep { color: var(--rule-hard); }
.crumbs .here { color: var(--accent-ink); font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap { max-width: var(--shell); margin: 0 auto; padding: 1.5rem 1.1rem 3.5rem; }
.prose { max-width: var(--read); }

.sheet {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  margin-bottom: 1.1rem;
}
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }

.lede { font-size: 1.09rem; color: var(--ink-2); max-width: var(--read); }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ============================================================
   CARD GRIDS
   ============================================================ */

.grid { display: grid; gap: .9rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.15rem;
  text-decoration: none;
  color: inherit;
}
a.card:hover { border-color: var(--rule-hard); border-left-color: var(--accent); background: #fff; }
a.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; }
.card-title { font-family: var(--cond); font-size: 1.3rem; letter-spacing: .01em; margin: 0 0 .3rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }

.card.eng, .card.rob, .card.arc { border-left-width: 12px; }
.card.eng { border-left-color: #0F6E75; }
.card.rob { border-left-color: #B45F06; }
.card.arc { border-left-color: #1E4B8F; }

/* Current project — the whole block is one button */
.current {
  display: block;
  background: var(--accent-wash);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.4rem;
  margin-bottom: 1.8rem;
  text-decoration: none;
  color: inherit;
}
.current h2 { margin: 0 0 .3rem; font-family: var(--cond); font-size: 2rem; letter-spacing: .01em; color: var(--accent-ink); }
.current p { margin: 0 0 .9rem; max-width: var(--read); color: var(--ink); }
a.current:hover { border-width: 2.5px; padding: 1.29rem 1.39rem 1.39rem; }
a.current:hover .current-go { text-decoration: underline; text-decoration-thickness: 2px; }
.current-go {
  display: inline-block;
  font-family: var(--cond);
  font-size: 1.12rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.current.is-empty { background: var(--panel); border-color: var(--rule-hard); border-style: dashed; }
.current.is-empty h2 { color: var(--ink-2); }
.current.is-empty p { color: var(--ink-2); margin-bottom: 0; }

/* Project section toggle — the same four on every project page */
.projnav { max-width: var(--shell); margin: 1.2rem auto 1.6rem; padding: 0 1.1rem; }
.projnav-inner {
  display: grid;
  grid-template-columns: repeat(var(--tabs, 4), 1fr);
  gap: 1px;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.projnav a {
  font-family: var(--cond);
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--panel);
  padding: .62rem .5rem;
}
.projnav a:hover { background: var(--accent-wash); }
.projnav a[aria-current="page"] { background: var(--accent); color: #fff; }
@media (max-width: 700px) {
  .projnav-inner { grid-template-columns: 1fr 1fr; }
  /* with an odd number of tabs, let the last one span the row */
  .projnav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ============================================================
   RESOURCE LINKS — videos, quizzes, folders pulled from the
   Book of Knowledge. URLs live in assets/settings.js.
   ============================================================ */

ul.reslist { list-style: none; padding-left: 0; margin: 1rem 0; }
ul.reslist li {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  padding: .7rem .95rem;
  margin-bottom: .5rem;
}
ul.reslist li p { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.reslink { font-weight: 600; }
.reslink.missing {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px dotted var(--rule-hard);
  cursor: default;
}
.needlink {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A4805;
  background: #F7EDE0;
  border: 1px solid #B45F06;
  border-radius: 2px;
  padding: .05rem .4rem;
  margin-left: .5rem;
  vertical-align: .1em;
}
ul.reslist li.is-missing { border-left-color: var(--rule-hard); background: #FCFCFB; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btnrow { display: flex; flex-wrap: wrap; gap: .55rem; }
.btn {
  display: inline-block;
  font-family: var(--cond);
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-ink);
  background: var(--panel);
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* ============================================================
   SPEC BOX — formulas and values, styled like a drawing note
   ============================================================ */

.spec {
  border: 1px solid var(--rule-hard);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: #FCFCFB;
  padding: .85rem 1rem;
  margin: 1.1rem 0;
}
.spec .eyebrow { margin-bottom: .3rem; }
.formula {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  margin: .1rem 0 .35rem;
  overflow-x: auto;
}
.spec p:last-child { margin-bottom: 0; font-size: .95rem; color: var(--ink-2); }

.note {
  border-left: 4px solid var(--rule-hard);
  background: #FCFCFB;
  padding: .75rem 1rem;
  margin: 1.1rem 0;
  font-size: .96rem;
}
.note.warn { border-left-color: var(--alert); background: var(--alert-wash); }
.note > :last-child { margin-bottom: 0; }

/* ============================================================
   CHECKLIST
   ============================================================ */

ul.check { list-style: none; padding-left: 0; }
ul.check li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .5rem;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid var(--rule-hard);
  border-radius: 2px;
  background: var(--panel);
}

/* Question list on guidance pages */
ol.qs { padding-left: 1.3rem; }
ol.qs li { margin-bottom: .55rem; }

/* ============================================================
   DIAGRAMS (inline SVG)
   ============================================================ */

figure.dwg { margin: 1.4rem 0; }
figure.dwg svg { width: 100%; height: auto; display: block; }
.dwg-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  padding: .9rem;
}
figure.dwg figcaption {
  font-size: .87rem;
  color: var(--ink-2);
  margin-top: .5rem;
  max-width: var(--read);
}
svg .ln   { stroke: var(--ink); stroke-width: 1.6; fill: none; }
svg .ln-2 { stroke: var(--rule-hard); stroke-width: 1.2; fill: none; }
svg .dim  { stroke: var(--accent); stroke-width: 1.3; fill: none; }
svg .fill-l { fill: #EDEEEA; stroke: var(--ink); stroke-width: 1.6; }
svg .fill-a { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.6; }
svg .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  fill: var(--ink);
}
svg .lbl-a { font-family: "IBM Plex Mono", monospace; font-size: 12px; fill: var(--accent-ink); font-weight: 600; }
svg .lbl-s { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; fill: var(--ink-2); }

/* ============================================================
   IMAGE PLACEHOLDER
   Replace the whole block with <img src="..." alt="...">
   ============================================================ */

.imgph {
  border: 2px dashed var(--rule-hard);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #FCFCFB, #FCFCFB 9px, #F3F3F0 9px, #F3F3F0 18px);
  padding: 1.5rem 1.2rem;
  margin: 1.3rem 0;
  text-align: center;
}
.imgph .eyebrow { color: var(--ink-2); }
.imgph p { margin: 0 auto; max-width: 52ch; font-size: .92rem; color: var(--ink-2); font-style: italic; line-height: 1.5; }

/* ============================================================
   RUBRIC — table on wide screens, cards on phones
   ============================================================ */

.rubric { margin: 1.2rem 0 2rem; }
.rubric-stage {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 1rem;
  overflow: hidden;
}
.rubric-head {
  padding: .8rem 1.05rem;
  border-bottom: 1px solid var(--rule);
  background: var(--accent-wash);
}
.rubric-head h3 { margin: 0; font-family: var(--cond); font-size: 1.4rem; letter-spacing: .01em; }
.rubric-head .eyebrow { margin-bottom: .15rem; }
.rubric-head p { margin: .25rem 0 0; font-size: .93rem; color: var(--ink-2); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); }
.tier { padding: .85rem 1.05rem 1rem; border-right: 1px solid var(--rule); }
.tier:last-child { border-right: 0; }
.tier-score {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: .35rem;
}
.tier-5 .tier-score { color: var(--accent-ink); }
.tier p { margin: 0; font-size: .93rem; line-height: 1.5; }

@media (max-width: 720px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
}

.scoring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
  margin: 1.1rem 0;
}
.scorebox {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  padding: .8rem .95rem;
}
.scorebox .big { font-family: var(--cond); font-size: 1.5rem; display: block; }
.scorebox p { margin: .1rem 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* ============================================================
   BRIEF — printable one-pager
   ============================================================ */

.brief {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  max-width: 8.1in;
  margin: 1rem auto 2rem;
  padding: 1.6rem 1.8rem 1.8rem;
}
.brief-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1rem; }
.brief-co { font-family: var(--cond); font-size: 1.65rem; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.brief-co span { display: block; font-size: .78rem; letter-spacing: .16em; color: var(--ink-2); }
.brief-meta { font-family: var(--mono); font-size: .78rem; line-height: 1.7; color: var(--ink-2); text-align: right; }
.brief h2 { font-family: var(--cond); font-size: 1.3rem; margin: 1.35rem 0 .45rem; letter-spacing: .02em; }
.brief h2:first-of-type { margin-top: .6rem; }
.hooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; margin: .8rem 0 .3rem; }
.hook { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .7rem .9rem; }
.hook .name { font-family: var(--cond); font-size: 1.25rem; display: block; }
.hook .target { font-family: var(--mono); font-size: .85rem; color: var(--ink-2); }
.hook p { margin: .2rem 0 0; font-size: .92rem; }
.brief-foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: .9rem; }
.fill { display: inline-block; min-width: 9ch; border-bottom: 1px solid var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
}

/* ============================================================
   PRINT — rubrics and briefs get printed and taped in notebooks
   ============================================================ */

@media print {
  :root { --paper: #fff; }
  body { background: #fff; font-size: 11.5pt; line-height: 1.42; }
  .topbar, .skip, .crumbs, .btnrow, .projnav, .noprint, .foot { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .sheet, .brief, .rubric-stage, .spec, .card { border-color: #999; break-inside: avoid; box-shadow: none; }
  .brief { border: 0; max-width: none; padding: 0; margin: 0; }
  .rubric-head { background: #F2F2F2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .imgph { break-inside: avoid; }
  a { text-decoration: none; color: var(--ink); }
  h2, h3 { break-after: avoid; }
  @page { margin: 0.6in; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   PHOTO SLOTS
   <figure class="photo" data-shot="name" data-brief="what to shoot">
   Drop assets/img/name.jpg and it appears. See shots.html.
   ============================================================ */

figure.photo { margin: 1.4rem 0; }
figure.photo img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}
figure.photo figcaption {
  font-size: .87rem;
  color: var(--ink-2);
  margin-top: .5rem;
  max-width: var(--read);
}
figure.photo.is-empty figcaption { display: none; }

.photo-empty {
  border: 2px dashed var(--rule-hard);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #FCFCFB, #FCFCFB 9px, #F3F3F0 9px, #F3F3F0 18px);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.photo-empty .eyebrow { color: var(--ink-2); }
.photo-file {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .45rem;
  word-break: break-all;
}
.photo-brief {
  margin: 0 auto;
  max-width: 52ch;
  font-size: .9rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Size variants */
.photo-logo { max-width: 2.6in; margin: 0 0 .5rem; }
.photo-logo .photo-empty { padding: .7rem .8rem; }
.photo-logo .photo-file { font-size: .78rem; }
.photo-logo .photo-brief { font-size: .76rem; }
.photo-qr { width: 1.3in; margin: 0; }
.photo-qr .photo-empty { padding: .5rem .3rem; }
.photo-qr .photo-file { font-size: .6rem; margin-bottom: .2rem; }
.photo-qr .photo-brief { display: none; }
.photo-qr .eyebrow { font-size: .55rem; }

/* Shot list page */
.shot { display: grid; grid-template-columns: 1.4rem 1fr; gap: .1rem .7rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.shot:last-child { border-bottom: 0; }
.shot .mark { font-family: var(--mono); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.shot.done .mark { color: #1F6B3B; }
.shot.todo .mark { color: var(--ink-2); }
.shot .fname { font-family: var(--mono); font-weight: 600; font-size: .95rem; word-break: break-all; }
.shot.done .fname { color: var(--ink-2); text-decoration: line-through; }
.shot .desc { grid-column: 2; font-size: .9rem; color: var(--ink-2); line-height: 1.5; margin: .15rem 0 0; }
.shot .where { grid-column: 2; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-2); margin: .3rem 0 0; }
.tally { font-family: var(--mono); font-size: .95rem; }

/* Course-scope badge on the grading page standards */
.scope {
  display: inline-block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .16rem .5rem;
  border-radius: 2px;
  margin-bottom: .4rem;
}
.scope.all { color: var(--ink-2); background: #EDEEEA; }
.scope.eng { color: #0A565C; background: #E6F0F0; border: 1px solid #0F6E75; }
.scope.arc { color: #173C73; background: #E7ECF5; border: 1px solid #1E4B8F; }


/* ============================================================
   SHOP — logo mark and resource link lists
   ============================================================ */

.logomark { display: block; width: 92px; height: auto; margin: 0 0 1rem; }

ul.links { list-style: none; padding-left: 0; }
ul.links li {
  border-bottom: 1px solid var(--rule);
  padding: .7rem 0;
}
ul.links li:last-child { border-bottom: 0; }
ul.links a {
  font-family: var(--cond);
  font-size: 1.18rem;
  letter-spacing: .01em;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
ul.links a:hover { background: var(--accent-wash); }
ul.links .missing {
  font-family: var(--cond);
  font-size: 1.18rem;
  color: var(--ink-2);
}
ul.links .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule-hard);
  border-radius: 2px;
  padding: .08rem .4rem;
  margin-left: .5rem;
  vertical-align: .12em;
}
ul.links p { margin: .25rem 0 0; font-size: .92rem; color: var(--ink-2); }

/* Machine access levels */
.level {
  display: inline-block;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .14rem .45rem;
  border-radius: 2px;
  margin-bottom: .35rem;
}
.level.open   { color: #1F5F3A; background: #E4F0E8; border: 1px solid #2E7D51; }
.level.quiz   { color: #8A4805; background: #F7EDE0; border: 1px solid #B45F06; }
.level.direct { color: #7A1F1F; background: var(--alert-wash); border: 1px solid var(--alert); }

/* Caution-tape rule, used to mark direct-supervision machines */
.tape {
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #F2C200, #F2C200 8px, #1A1D21 8px, #1A1D21 16px);
  margin: 0 0 .9rem;
}
