/* MC-Flashfold page components on top of the site tokens (site.css) and mcfold.css. */
/* same look as mcfold.css text inputs, for the textarea, number fields and untyped inputs */
.mcff-form textarea, .mcff-form input.num, .mcff-form input:not([type]), .plot-form input.num {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--divider); border-radius: var(--radius); padding: 8px 12px; }
.mcff-form textarea.wide { width: 100%; margin-top: 4px; display: block; }
.mcff-form textarea:hover, .mcff-form input.num:hover, .mcff-form input:not([type]):hover { border-color: var(--text-2); }
.mcff-form textarea:focus, .mcff-form input.num:focus, .mcff-form input:not([type]):focus,
.plot-form input.num:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.mcff-form input.num:disabled { opacity: .55; }
.mcff-form textarea { font-family: var(--mono); }
.mcff-form textarea#sequence { min-height: 5rem; line-height: 1.4; word-break: break-all; }
.mcff-form fieldset { border: 0; padding: 0; margin: 0 0 var(--s1); }
.mcff-form fieldset legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.mcff-form fieldset.sub { margin-left: 1.6em; }
.mcff-form input.num { width: 6.5em; }
.mcff-form p.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.mcff-form p.inline input[type="radio"] { margin: 0; }
.om-row { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: flex-end; margin-bottom: var(--s1); }
.om-row input[name^="om_name"] { width: 10em; margin-top: 4px; }
.om-row select { margin-top: 4px; }
.om-row label { display: block; }
.om-row .grow { flex: 1 1 16rem; min-width: 0; }
.om-row[hidden] { display: none; }
.mcff-form button[hidden] { display: none; }
.mask-hint { margin: 4px 0 0; white-space: pre; overflow-x: auto; font-size: .9rem; }
td.db { font-size: .9rem; letter-spacing: 0; }
.mask-filter { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; margin: var(--s1) 0; }
/* db2cm draws on white with fixed colours: keep a white frame in both themes */
.plot { margin: var(--s2) 0; }
.plot-frame { background: #fff; border-radius: var(--radius); padding: 8px; overflow-x: auto; }
.plot-frame img { display: block; max-width: 100%; height: auto; }
.plot figcaption { font-size: .9rem; margin-top: 4px; }
.plot-form h3 { font-size: 1rem; margin: var(--s2) 0 var(--s1); }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--s2); align-items: start; }
table.structures caption { text-align: left; font-weight: 600; padding: 4px 0; }
th.sort { cursor: pointer; }
button.btn-outlined, button.btn-text { background: transparent; cursor: pointer; font: inherit; font-weight: 500; }
/* sequence, ruler and masks must stay aligned: never wrap, scroll inside the panel */
pre.aligned { white-space: pre; overflow-x: auto; }
.seq-echo { margin: var(--s1) 0 0; padding: 8px 13px; background: var(--surface-2); border-radius: var(--radius); font-size: inherit; }
.mcff-form input.mask { font-family: var(--mono); }
/* phones: long option texts and wide controls must not widen the page */
.mcff-form select, .mask-filter select, .plot-form select { max-width: 100%; }
.cols-2 table { table-layout: fixed; }
.cols-2 td:first-child, .cols-2 th:first-child { width: 4.5em; }
figure.plot { max-width: 100%; }
/* visually hidden link text (position: absolute) must stay inside the scrolling table */
.table-wrap { position: relative; }
