/* Mary DeMocker curriculum builder.
   Every colour and both fonts come from marydemocker.com; the evidence table is in
   DESIGN-marydemocker-2026-08-29.md. Self-hosted fonts, no third-party anything --
   this page holds a session. */

@font-face { font-family: Alice; src: url(/static/fonts/Alice-Regular.woff2) format('woff2');
             font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Regular.woff2) format('woff2');
             font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Medium.woff2) format('woff2');
             font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-SemiBold.woff2) format('woff2');
             font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Bold.woff2) format('woff2');
             font-weight: 700; font-display: swap; }

:root {
  --peri: #5F77BF;
  --peri-dark: #4A5F9E;
  --ink: #222222;
  --link: #0C71C3;
  --tint: rgba(12,113,195,0.18);
  --tint-solid: #EDF3FB;
  --hair: #E5E5E5;
  --muted: #878787;
  --white: #fff;
  --track: 1px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 500 16px/1.7 'Open Sans', Arial, sans-serif;
}
h1, h2, h3 { font-family: Alice, Georgia, 'Times New Roman', serif; font-weight: 400;
             letter-spacing: var(--track); line-height: 1.2; margin: 0; }
a { color: var(--link); }

/* --- header bar: her site's own #main-header --- */
.bar { background: var(--peri); color: #fff; }
.bar-in { max-width: 900px; margin: 0 auto; padding: 14px 22px;
          display: flex; align-items: center; gap: 12px; }
/* the lockup is the primary logo; the harp alone still carries the favicon, the
   booklet watermark and the "score coming" page, where a small mark suits better */
.bar .lockup { height: 44px; width: auto; color: #fff; flex: none; }
.bar .mark { width: 22px; height: 40px; color: #fff; flex: none; }
.bar .who { font: 600 11px/1 'Open Sans', Arial, sans-serif; letter-spacing: 2.2px;
            text-transform: uppercase; padding-left: 14px; margin-left: 2px;
            border-left: 1px solid rgba(255,255,255,.35); }
.bar .sp { flex: 1; }
/* which identity is signed in. Matters because Sam can be in as operator while the
   app still belongs to Mary, and the two views hold the same data. */
.bar .whoami { font-size: 12px; opacity: .8; white-space: nowrap; }
.bar .whoami .op { border: 1px solid rgba(255,255,255,.55); border-radius: 3px;
                   padding: 2px 6px; margin-left: 8px; font-size: 10px;
                   letter-spacing: 1.2px; text-transform: uppercase; }
.bar a { color: #fff; font-size: 13px; opacity: .85; text-decoration: none;
          display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px;
          white-space: nowrap; }
.bar a:hover { opacity: 1; text-decoration: underline; }

.wrap { max-width: 900px; margin: 0 auto; padding: 34px 22px 90px; }
.eyebrow { font: 600 10px/1 'Open Sans', Arial, sans-serif; letter-spacing: 2.2px;
           text-transform: uppercase; color: var(--muted); }
.rule { width: 54px; height: 2px; background: var(--peri); margin: 14px 0 22px; border: 0; }
h1 { font-size: 34px; color: var(--peri); margin-top: 10px; }
h2 { font-size: 22px; color: var(--peri); }
.sub { color: var(--muted); font-size: 14px; }

/* --- buttons --- */
button, .btn {
  font: 600 14px/1 'Open Sans', Arial, sans-serif; letter-spacing: .3px;
  border: 1.5px solid var(--peri); background: var(--peri); color: #fff;
  padding: 12px 20px; border-radius: 4px; cursor: pointer; text-decoration: none;
  display: inline-block; min-height: 44px;
}
button:hover, .btn:hover { background: var(--peri-dark); border-color: var(--peri-dark); }
button.ghost, .btn.ghost { background: transparent; color: var(--peri); }
button.ghost:hover, .btn.ghost:hover { background: var(--tint-solid); }
button.quiet { background: none; border: 0; color: var(--muted); padding: 8px 10px;
               font-weight: 500; min-height: 36px; }
button.quiet:hover { color: var(--link); background: none; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- module cards --- */
.card { border: 1px solid var(--hair); border-radius: 6px; padding: 20px 22px;
        margin-bottom: 14px; display: flex; align-items: center; gap: 16px; }
.card:hover { border-color: var(--peri); }
.card .grow { flex: 1; min-width: 0; }
.card h2 { font-size: 24px; }
.card .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* --- item list --- */
.item { border: 1px solid var(--hair); border-radius: 6px; margin-bottom: 10px;
        background: #fff; }
.item.child { margin-left: 28px; border-left: 3px solid var(--tint); }
.item.open { border-color: var(--peri); }
.item-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
             cursor: pointer; }
.item-head .grow { flex: 1; min-width: 0; }
/* the open/close control is a labelled button, not a chevron -- a small triangle is
   not a thing to make someone decode */
.open-btn { flex: none; padding: 9px 14px; min-height: 40px; font-size: 13px; }
.item-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis;
              white-space: nowrap; }
.kind { font: 600 9px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.8px;
        text-transform: uppercase; color: var(--muted); }
.dot { font-size: 11px; color: var(--muted); }
.st.has { color: var(--peri); }
.arrows { display: flex; flex-direction: column; gap: 2px; }
/* the reorder arrows are her primary sequencing control, so they are sized as
   real tap targets rather than as icons */
.arrows button { min-height: 40px; padding: 0 12px; line-height: 1;
                 background: none; border: 0; color: var(--muted); font-size: 13px; }
.arrows button:hover { color: var(--peri); background: none; }

.item-body { padding: 4px 16px 18px; border-top: 1px solid var(--hair); }
label.f { display: block; margin: 16px 0 6px; }
label.f .lb { font: 600 10px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.8px;
              text-transform: uppercase; color: var(--muted); }
label.f .hint { display: block; color: var(--muted); font-size: 12.5px;
                font-weight: 400; letter-spacing: 0; text-transform: none;
                margin-top: 3px; }
input[type=text], textarea {
  width: 100%; font: 500 15px/1.6 'Open Sans', Arial, sans-serif; color: var(--ink);
  border: 1px solid var(--hair); border-radius: 4px; padding: 10px 12px;
  background: #fff; margin-top: 6px;
}
input[type=text]:focus, textarea:focus { outline: 2px solid var(--peri);
                                         outline-offset: -1px; border-color: var(--peri); }
textarea { min-height: 96px; resize: vertical; }

/* --- score drop zone --- */
.drop { border: 1.5px dashed var(--peri); border-radius: 6px; background: var(--tint-solid);
        padding: 18px; text-align: center; margin-top: 8px; }
.drop.over { background: var(--tint); }
.drop .big { font-weight: 600; color: var(--peri); }
.drop .sm { font-size: 13px; color: var(--muted); }
.drop.has { border-style: solid; background: #fff; text-align: left;
            display: flex; align-items: center; gap: 12px; }
.drop.has .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; }

/* --- Mutopia search --- */
.mut-in { border: 1px solid var(--peri); border-radius: 6px; padding: 4px 16px 16px;
          margin-top: 10px; background: #fff; }
.hit { display: flex; gap: 14px; align-items: center; padding: 12px 0;
       border-bottom: 1px solid var(--hair); }
.hit:last-child { border-bottom: 0; }
.hit .grow { flex: 1; min-width: 0; }
.hit .thumb { width: 62px; height: 84px; object-fit: cover; object-position: top center;
              border: 1px solid var(--hair); border-radius: 3px; background: var(--tint-solid);
              flex: none; }
.hit .meta { color: var(--muted); font-size: 13px; }
.hit .lic { display: inline-block; margin-top: 5px; font: 600 9px/1 'Open Sans', Arial,
            sans-serif; letter-spacing: 1.4px; text-transform: uppercase;
            color: var(--peri); background: var(--tint-solid); padding: 5px 8px;
            border-radius: 3px; }

/* --- builds --- */
.build { display: flex; align-items: center; gap: 12px; padding: 12px 0;
         border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.build .grow { flex: 1; min-width: 180px; }
.build .when { color: var(--muted); font-size: 13px; }
.build .fname { color: var(--ink); text-decoration: none; display: inline-flex;
                align-items: center; min-height: 40px; }
.build .fname:hover { color: var(--link); text-decoration: underline; }
.tag { font: 600 9px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.6px;
       text-transform: uppercase; color: var(--peri); background: var(--tint-solid);
       padding: 5px 8px; border-radius: 3px; }

/* --- misc --- */
.saved { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: #fff;
         font-size: 13px; padding: 10px 16px; border-radius: 4px; opacity: 0;
         transition: opacity .25s; pointer-events: none; z-index: 20; }
.saved.on { opacity: .92; }
.empty { color: var(--muted); padding: 26px 0; }
.sec { margin-top: 46px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.undo { background: var(--tint-solid); border: 1px solid var(--peri); border-radius: 6px;
        padding: 12px 16px; margin-bottom: 12px; display: flex; align-items: center;
        gap: 12px; }
.undo .grow { flex: 1; }

@media (max-width: 620px) {
  .bar .whoami { display: none; }
  .bar .lockup { height: 36px; }
  .bar .who { display: none; }
  .wrap { padding: 24px 16px 80px; }
  h1 { font-size: 27px; }
  .card { flex-direction: column; align-items: stretch; }
  .card .row { justify-content: flex-start; }
  .item-head { padding: 12px 10px; }
  button, .btn { padding: 12px 16px; }
  .arrows button { min-height: 44px; padding: 0 14px; }
}

/* --- the two tabs: the whole app is these two places, so they are named in
       words, sit under the header, and stay put on every screen --- */
.tabs { background: #fff; border-bottom: 1px solid var(--hair); position: sticky;
        top: 0; z-index: 15; }
.tabs-in { max-width: 900px; margin: 0 auto; padding: 0 22px; display: flex;
           align-items: center; gap: 4px; }
.tabs-in .sp { flex: 1; }
.tabs a { font: 600 13px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.2px;
          text-transform: uppercase; color: var(--muted); text-decoration: none;
          padding: 0 16px; min-height: 48px; display: inline-flex; align-items: center;
          border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--peri); }
.tabs a.on { color: var(--peri); border-bottom-color: var(--peri); }
.tab-help { background: none; border: 0; color: var(--link); font-weight: 500;
            font-size: 13px; padding: 0 8px; min-height: 44px; }
.tab-help:hover { background: none; text-decoration: underline; }

/* --- a link that is really a button: used for the nesting control, which has to
       read as a sentence rather than as an icon --- */
/* sized as a real tap target, not a footnote: on a phone this is how nesting is
   discovered, so it has to be as pressable as any other control */
.linky { background: none; border: 0; color: var(--link); font: 500 13px/1.4
         'Open Sans', Arial, sans-serif; padding: 10px 0; min-height: 40px;
         text-align: left; text-decoration: underline; }
.linky:hover { background: none; color: var(--peri-dark); }
.lead { margin: 0 0 22px; max-width: 62ch; }
.tiny { font-size: 12.5px; margin-top: 6px; }
.empty.small { padding: 14px 0; font-size: 14px; }

/* --- nesting, said out loud on the row itself --- */
.nest { margin-top: 2px; }
.nest .nest-note { color: var(--muted); font-size: 12.5px; }
.nest .linky { min-height: 40px; }
.item.child { position: relative; }
.item.child::before { content: '\21B3'; position: absolute; left: -20px; top: 14px;
                      color: var(--peri); font-size: 14px; }

/* --- search: chips, result groups --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { font: 600 12px/1 'Open Sans', Arial, sans-serif; letter-spacing: .4px;
        border: 1px solid var(--hair); background: #fff; color: var(--muted);
        border-radius: 999px; padding: 10px 14px; min-height: 40px; }
.chip:hover { background: var(--tint-solid); border-color: var(--peri); color: var(--peri); }
.chip.on { background: var(--peri); border-color: var(--peri); color: #fff; }
.find-in { border: 1px solid var(--peri); border-radius: 6px; padding: 4px 16px 16px;
           margin-top: 10px; background: #fff; }
.fgroup { margin-top: 10px; }
/* a search result may be the first time she sees a title, so it wraps rather than
   being cut off at the card edge */
.hit .item-title { white-space: normal; }
.fhead { font: 600 9px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.8px;
         text-transform: uppercase; color: var(--muted); padding: 14px 0 2px;
         border-top: 1px solid var(--hair); margin-top: 10px; }
.hit .thumb.pages { display: flex; flex-direction: column; align-items: center;
                    justify-content: center; color: var(--peri); background: var(--tint-solid); }
.thumb.pages span { font: 600 20px/1 'Open Sans', Arial, sans-serif; }
.thumb.pages small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* --- library cards --- */
.item.lib .item-head { cursor: default; align-items: flex-start; }
.item.lib .thumb { width: 54px; height: 72px; flex: none; border: 1px solid var(--hair);
                   border-radius: 3px; display: flex; flex-direction: column;
                   align-items: center; justify-content: center; color: var(--peri);
                   background: var(--tint-solid); }
.item.lib .meta { color: var(--muted); font-size: 13px; overflow: hidden;
                  text-overflow: ellipsis; white-space: nowrap; }
.item.lib .meta.used { color: var(--peri); }
.libacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
           flex: none; }
.libacts .btn, .libacts button { font-size: 13px; padding: 10px 14px; min-height: 40px; }
.libtools { display: flex; flex-direction: column; gap: 4px; margin: 24px 0 14px; }
.libtools input[type=text] { margin-top: 0; }
.addto-in { border: 1px solid var(--peri); border-radius: 6px; padding: 4px 16px 16px;
            margin: 0 0 10px; background: var(--tint-solid); }
.addto-in.done { padding: 14px 16px; }
select { font: 500 15px/1.6 'Open Sans', Arial, sans-serif; color: var(--ink);
         border: 1px solid var(--hair); border-radius: 4px; padding: 10px 12px;
         background: #fff; min-height: 44px; max-width: 100%; }
select:focus { outline: 2px solid var(--peri); outline-offset: -1px; }

/* --- the walkthrough --- */
body.modal-open { overflow: hidden; }
/* an author `display:flex` on a class beats the browser's own [hidden] rule, so
   the closed overlay stayed on top of the page and swallowed every click --
   the hidden state has to be spelled out here */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(34,34,34,.55); z-index: 40;
         display: flex; align-items: flex-start; justify-content: center;
         padding: 24px 16px; overflow: auto; }
.modal .sheet { background: #fff; border-radius: 8px; max-width: 620px; width: 100%;
                padding: 20px 26px 22px; margin: auto; }
.sheet-top { display: flex; align-items: center; gap: 12px; }
.sheet-top .eyebrow { flex: 1; }
.tourbody p { margin: 0 0 14px; }
.tourfoot { display: flex; align-items: center; gap: 12px; margin-top: 22px;
            flex-wrap: wrap; }
.dots { display: flex; gap: 8px; flex: 1; }
.dot { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%;
       border: 0; background: none; position: relative; }
.dot::after { content: ''; position: absolute; inset: 15px; border-radius: 50%;
              background: var(--hair); }
.dot.on::after { background: var(--peri); }
.dot:hover::after { background: var(--peri-dark); }
.demo { border: 1px solid var(--hair); border-radius: 6px; padding: 14px;
        margin: 4px 0 16px; background: var(--tint-solid); }
.demo-row { background: #fff; border: 1px solid var(--hair); border-radius: 4px;
            padding: 10px 12px; margin-bottom: 8px; }
.demo-row b { display: block; font-size: 14px; }
.demo-row i { font-style: normal; font-size: 11px; letter-spacing: 1.4px;
              text-transform: uppercase; color: var(--muted); }
.demo-row u { display: block; margin-top: 4px; color: var(--link); font-size: 12.5px; }
.demo-row.child { margin-left: 26px; border-left: 3px solid var(--peri); }
.demo-arrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
              color: var(--muted); margin: 10px 0 8px; }
.demo-tabs { display: flex; gap: 4px; }
.demo-tabs span { font: 600 12px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.2px;
                  text-transform: uppercase; color: var(--muted); padding: 10px 14px;
                  border-bottom: 3px solid transparent; background: #fff; }
.demo-tabs span.on { color: var(--peri); border-bottom-color: var(--peri); }

@media (max-width: 620px) {
  .tabs-in { padding: 0 12px; }
  .tabs a { padding: 0 12px; font-size: 12px; }
  .item.lib .item-head { flex-wrap: wrap; }
  .libacts { justify-content: flex-start; width: 100%; }
  .modal { padding: 12px 10px; }
  .modal .sheet { padding: 16px 18px 20px; }
}

/* --- the walkthrough has to fit the screen it is on ---
   It was one tall card centred with `margin:auto`, so on a 13-inch laptop the step
   that teaches nesting began 156px above the top of the window: no heading, no step
   count, and no Close button. */
.modal { align-items: flex-start; }
.modal .sheet { margin: 0 auto; max-height: calc(100vh - 48px); overflow-y: auto;
                position: relative; }
.sheet-top { position: sticky; top: 0; background: #fff; padding: 6px 0 8px;
             margin-bottom: 2px; z-index: 1; }

/* --- reorder buttons: her primary sequencing control on a touchscreen, where
       dragging does nothing at all --- */
.arrows button { min-height: 40px; padding: 0 10px; line-height: 1; color: var(--peri);
                 background: var(--tint-solid); border: 1px solid var(--hair);
                 border-radius: 4px; font-size: 15px; }
.arrows button:hover { color: #fff; background: var(--peri); border-color: var(--peri); }
.arrows button:disabled { color: var(--muted); background: none; border-color: transparent;
                          opacity: .45; }

/* --- the two things she is always reaching for, on a phone --- */
.stickybar { display: none; }
.savedline { color: var(--peri); font-size: 12.5px; font-weight: 600; min-height: 18px;
             opacity: 0; transition: opacity .2s; padding-top: 10px; }
.savedline.on { opacity: 1; }

/* --- the credit check before a build --- */
.creditcheck { border: 1.5px solid var(--peri); border-radius: 6px; padding: 6px 20px 20px;
               margin-top: 18px; background: var(--tint-solid); }
.creditcheck h3 { font-size: 19px; color: var(--peri); margin: 16px 0 8px; }
.creditcheck p { font-size: 14.5px; margin: 0 0 14px; }
.creditrow { display: flex; gap: 12px; align-items: center; padding: 6px 0;
             flex-wrap: wrap; }
.creditrow .grow { flex: 1 1 180px; font-weight: 600; font-size: 14px; min-width: 0; }
.creditrow input[type=text] { flex: 2 1 260px; margin-top: 0; width: auto; }

/* --- the shelf a score sits on, on the row rather than a click deeper --- */
.shelfpick { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.shelfpick select { font: 600 10px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.4px;
                    text-transform: uppercase; color: var(--peri);
                    background: var(--tint-solid); border-color: var(--tint-solid);
                    padding: 8px 10px; min-height: 36px; }
.shelfpick select:hover { border-color: var(--peri); }

/* --- a way to reach a person, on every screen --- */
.helpline { max-width: 900px; margin: 0 auto; padding: 0 22px 60px; color: var(--muted);
            font-size: 13px; }
.signin-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 18px 0 0; }

@media (max-width: 620px) {
  .wrap { padding-bottom: 96px; }
  .stickybar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0;
               background: rgba(255,255,255,.97); border-top: 1px solid var(--hair);
               padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
               z-index: 18; }
  .stickybar button { flex: 1; padding: 12px 8px; font-size: 13px; }
  .helpline { padding-bottom: 96px; }
  .creditrow input[type=text] { flex: 1 1 100%; }
}

/* --- moving a row: the grip, the lift, and the two things a drop can mean --- */
.grip { flex: none; width: 30px; align-self: stretch; display: flex; align-items: center;
        justify-content: center; color: var(--muted); cursor: grab;
        border-radius: 4px; margin: -4px 0;
        /* the browser must not claim the vertical gesture for scrolling, or a drag
           with a finger does nothing at all. It must be set on the element the
           pointerdown actually lands on -- touch-action does not inherit. */
        touch-action: none; -webkit-user-select: none; user-select: none; }
.grip::before { content: '\2059'; font-size: 19px; line-height: 1; }
.grip:focus-visible { outline: 2px solid var(--peri); outline-offset: -2px; }
.grip:hover { color: var(--peri); background: var(--tint-solid); }
.grip:active { cursor: grabbing; }
body.dragging-row { cursor: grabbing; -webkit-user-select: none; user-select: none; }
body.dragging-row .item { transition: none; }
.item.dragging { position: relative; z-index: 12; box-shadow: 0 10px 24px rgba(34,34,34,.18);
                 border-color: var(--peri); background: #fff; }
/* dropping on the MIDDLE of a row tucks the dragged row underneath it */
.item.nest-target { border-color: var(--peri); background: var(--tint-solid);
                    box-shadow: inset 3px 0 0 var(--peri); }
.item.nest-target::after { content: 'Tuck it under this one'; position: absolute;
                           right: 12px; bottom: -9px; font: 600 9px/1 'Open Sans',
                           Arial, sans-serif; letter-spacing: 1.4px;
                           text-transform: uppercase; color: #fff;
                           background: var(--peri); padding: 4px 7px; border-radius: 3px; }
.item { position: relative; }
#list { position: relative; }
/* dropping BETWEEN two rows moves it there */
.dropline { display: none; position: absolute; left: 0; right: 0; height: 3px;
            background: var(--peri); border-radius: 2px; z-index: 11; }
.dropline::before { content: ''; position: absolute; left: -3px; top: -3px;
                    width: 9px; height: 9px; border-radius: 50%; background: var(--peri); }

/* --- the drop zone is one big button --- */
.drop.pick { cursor: pointer; }
.drop.pick:hover { background: var(--tint); }
.drop.pick:focus-visible { outline: 2px solid var(--peri); outline-offset: 2px; }

/* --- genre --- */
.tag.genre { background: #fff; border: 1px solid var(--peri); }
.widened { margin: -6px 0 14px; color: var(--peri); }
#libq.thinking { background: var(--tint-solid); }
