/* The binder card: one binder, over whatever opened it.

   The table rules are the manage-binders ones, scoped to `.bcard` rather than loaded from
   `construct_wizard.css` and `upload_wizard.css`: those two stylesheets carry a page's worth of
   wizard layout, and pulling them into a detail page to borrow four rules is how `plate.css`
   rounded every container on the landing page earlier today. */
.bcard-back { position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,.45);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 24px;
  overflow-y: auto; }
.bcard { background: #fff; border-radius: 12px; width: min(880px, 100%);
  box-shadow: 0 18px 48px rgba(15,23,42,.28); }
.bcard-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--border-light, #e5e7eb); }
.bcard-head h3 { margin: 0; font-size: 16px; color: var(--dark-navy, #1f2340); }
.bcard-x { border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--grey-text, #6b7280); padding: 0 2px; }
.bcard-x:hover { color: var(--dark-navy, #1f2340); }
.bcard-body { padding: 14px 18px 18px; overflow-x: auto; }
.bcard-note { font-size: 11px; color: var(--grey-text, #6b7280); margin-top: 3px; }

.bcard .cn-table { width: 100%; border-collapse: collapse; }
.bcard .cn-table th { background: #fafafa; font-size: 11px; text-transform: uppercase;
  letter-spacing: .3px; padding: 8px 10px; text-align: left; font-weight: 600;
  border-bottom: 2px solid var(--border-light, #e5e7eb); }
.bcard .cn-table td { padding: 10px; border-bottom: 1px solid var(--border-light, #e5e7eb);
  font-size: 13px; vertical-align: top; }
.bcard .cn-table .row-num { color: var(--grey-text, #6b7280); width: 36px; }
/* THE NAME COLUMN IS NOT ENTITLED TO HALF THE CARD. Left alone it took about 435px of the
   card's 880 and squeezed the sequence it sits next to, which is the column the reader opened
   this for. Capped on an inner block, for the same reason as the scheme grid. */
.bcard .cn-table .cn-name { display: inline-block; max-width: 280px; overflow-wrap: anywhere; }
.bcard .seq-block { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px;
  line-height: 1.5; word-break: break-all; color: var(--dark-navy, #1f2340); }
.bcard .chain-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--grey-text, #6b7280); margin: 6px 0 2px; }

/* A construct's facts, above its sequence. */
.bcard-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 12px; }
.bcard-facts dt { font-size: 9.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #9ca3af; align-self: baseline; }
.bcard-facts dd { margin: 0; font-size: 13px; color: var(--dark-navy, #1f2340); }
.bcard-nt { margin-top: 12px; }
/* The marked-up sequence, drawn by seq_render.js. These four rules are the wizard's, scoped
   here rather than loading construct_wizard.css into a detail page for them. */
.bcard .seqml { font-family: 'Monaco', 'Menlo', monospace; font-size: 11px; line-height: 1.7;
  word-break: break-all; }
.bcard .seg { padding: 1px 0; border-radius: 2px; }
.bcard .seqml .chain-label { display: inline-block; font-weight: 700; font-size: 10px;
  color: var(--grey-text, #6b7280); margin: 4px 6px 2px 0; text-transform: uppercase;
  letter-spacing: .3px; }

/* A NAME THAT OPENS SOMETHING SAYS SO. The underline is the only thing separating a binder with
   a record from one that is just a name on this page (Xi, 2026-10-12). */
/* TWO COLUMNS THAT SHARE THE WIDTH THEY HAVE. A binder name carries its accession and its
   residue range, so it runs to 60 characters, and under the default auto layout the first
   column took whatever it wanted and pushed the construct column off the right of the panel.
   Fixed layout makes the split a decision rather than a consequence, and the names wrap. */
.spec-binders { border-collapse: collapse; margin-top: 6px; width: 100%; table-layout: fixed; }
.spec-binders th { font-size: 9.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #9ca3af; text-align: left; padding: 0 18px 4px 0; }
.spec-binders td { padding: 3px 18px 3px 0; vertical-align: top; font-size: 13px;
  overflow-wrap: anywhere; }
.spec-binders th:first-child, .spec-binders td:first-child { width: 62%; }
.spec-binders td.sb-con { color: var(--grey-text, #6b7280); }
.sb-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--dark-navy, #1f2340); text-decoration: underline;
  text-decoration-color: rgba(236,58,148,.55); text-underline-offset: 2px;
  /* A button centres its text and will not wrap one long word; this is a name in a table
     cell and has to behave like the text beside it. */
  text-align: left; overflow-wrap: anywhere; }
.sb-link:hover { color: #EC3A94; }
