/* Results entry (/upload/enter/) and the existing-results landing page. */
.er-container { max-width: 820px; margin: 0 auto; padding: 2rem 20px 4rem; }
.er-header { text-align: center; margin-bottom: 2.5rem; }
.er-title { font-size: 2.3rem; font-weight: 700; color: #343a40; margin-bottom: 0.75rem; }
.er-subtitle { font-size: 1.1rem; color: #6c757d; line-height: 1.6; margin: 0 auto; max-width: 640px; }
.er-card { background: #fff; border-radius: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 2rem; margin-bottom: 2rem; }
.er-card h2 { font-size: 1.3rem; font-weight: 700; color: #343a40; margin-bottom: 0.75rem; }
.er-muted { color: #6c757d; }
.er-note { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.er-warning { background: #fff3cd; border: 1px solid #ffeaa7; color: #6b5103; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.er-errors { background: #fdecee; border: 1px solid #f5c2c7; color: #842029; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.er-errors ul { margin: 0; padding-left: 1.2rem; }

.er-provider { max-width: 320px; margin-bottom: 1.75rem; }
.er-provider label { font-weight: 600; display: block; margin-bottom: 0.4rem; }

.er-genes { width: 100%; border-collapse: collapse; }
.er-genes th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6c757d; font-weight: 600; padding: 0 0.5rem 0.5rem; text-align: left; }
.er-genes td { padding: 0.55rem 0.5rem; border-top: 1px solid #edf0f2; vertical-align: middle; }
.er-genes .er-gene { font-weight: 700; font-style: italic; color: #343a40; width: 30%; }
.er-genes select, .er-combo { width: 100%; max-width: 160px; box-sizing: border-box; }
.er-genes select.er-copies { margin-top: 0.35rem; font-size: 0.9rem; }
.er-genes .er-slash { color: #98a2ad; width: 1.5rem; text-align: center; }
.er-field-error td { border-top: none; padding-top: 0; color: #b02a37; font-size: 0.9rem; }

.er-review-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; }
.er-review-list li { background: #f8f9fa; border-radius: 8px; padding: 0.6rem 0.85rem; }
.er-review-list strong { font-style: italic; margin-right: 0.4rem; }
.er-drugs { columns: 3 180px; color: #495057; font-size: 0.95rem; margin: 0.5rem 0 0; padding-left: 1.1rem; }
.er-drugs li { break-inside: avoid; }

.er-check { display: flex; justify-content: flex-start; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.85rem; text-align: left; font-weight: 400; }
.er-check input[type="checkbox"] { margin: 0.3rem 0 0; width: 1.1rem; min-width: 1.1rem; max-width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; }
.er-check span { flex: 1 1 auto; }
.er-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.75rem; }
.er-btn { display: inline-block; width: auto; white-space: nowrap; box-shadow: none; background: #00ACD0; color: #fff; border: none; border-radius: 10px; padding: 0.85rem 1.75rem; font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.er-btn:hover { background: #0096b5; color: #fff; text-decoration: none; }
.er-link { color: #00ACD0; font-weight: 600; }

/* Landing page */
.er-steps { list-style: none; counter-reset: er-step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.er-steps li { counter-increment: er-step; }
.er-steps li::before { content: counter(er-step); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e3f4f9; color: #007c96; font-weight: 700; margin-bottom: 0.5rem; }
.er-steps h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.er-included { padding-left: 1.2rem; margin: 0; }
.er-included li { margin-bottom: 0.4rem; }
.er-gene-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.er-gene-tags span { background: #e3f4f9; color: #007c96; border-radius: 999px; padding: 0.25rem 0.75rem; font-weight: 600; font-style: italic; font-size: 0.95rem; }
.er-price { font-size: 2rem; font-weight: 700; color: #343a40; }
.er-faq h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.35rem; }

@media (max-width: 600px) {
  .er-title { font-size: 1.8rem; }
  .er-card { padding: 1.25rem; }
  .er-genes .er-gene { width: auto; }
}

.er-crumb { font-size: 0.9rem; color: #6c757d; margin-bottom: 0.5rem; }
.er-find-steps { padding-left: 1.2rem; margin-bottom: 1rem; }
.er-find-steps li { margin-bottom: 0.5rem; }

/* Typeable allele pickers (static/js/entered_results.js); the native select stays as the submitted field.
   style.css gives every input a 300px min-width and every button full-width styles, so both are reset here. */
.er-genes td { vertical-align: top; }
.er-genes .er-gene label, .er-genes .er-slash { line-height: calc(1.5em + 0.75rem + 2px); }
.er-combo { position: relative; }
.er-combo-input.form-control { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; height: auto; border-radius: 0.25rem; }
.er-combo-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.er-combo-list { position: absolute; z-index: 20; top: calc(100% + 2px); left: 0; min-width: 100%; max-height: 240px; overflow-y: auto; margin: 0; padding: 0.25rem 0; list-style: none; background: #fff; border: 1px solid #ced4da; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.er-combo-list li { padding: 0.35rem 0.75rem; cursor: pointer; white-space: nowrap; }
.er-combo-list li.is-active { background: #e3f4f9; color: #007c96; }
.er-combo-list li[aria-selected="true"] { font-weight: 700; }
.er-combo-list .er-combo-empty { color: #6c757d; cursor: default; }

.er-sort { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.85rem; color: #6c757d; }
/* Segmented control: a gray track with the chosen option raised as a white pill. */
.er-sort .er-sort-buttons { display: inline-flex; gap: 2px; padding: 3px; background: #eef1f4; border-radius: 999px; }
.er-sort .er-sort-buttons button { display: inline-block; width: auto; margin: 0; border: 0; border-radius: 999px; box-shadow: none; background: transparent; color: #5f6872; padding: 0.3rem 0.9rem; font-size: 0.82rem; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.er-sort .er-sort-buttons button:hover { filter: none; background: transparent; color: #343a40; }
.er-sort .er-sort-buttons button[aria-pressed="true"] { background: #fff; color: #007c96; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.er-sort .er-sort-buttons button:focus { outline: none; }
.er-sort .er-sort-buttons button:focus-visible { outline: 2px solid #00ACD0; outline-offset: 1px; }

.er-more { margin-top: 1.25rem; border-top: 1px solid #edf0f2; }
.er-more > summary { cursor: pointer; padding: 0.9rem 0.5rem; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.er-more > summary::-webkit-details-marker { display: none; }
.er-more > summary::before { content: "\25B8"; color: #00ACD0; transition: transform 0.15s; display: inline-block; }
.er-more[open] > summary::before { transform: rotate(90deg); }
.er-more-title { font-weight: 600; color: #007c96; }
.er-more-genes { color: #6c757d; font-size: 0.85rem; font-style: italic; }
.er-more[open] .er-more-genes { display: none; }
.er-more-note { font-size: 0.9rem; margin: 0 0.5rem 1rem; }

.er-pheno { font-style: normal; font-weight: 400; font-size: 0.8rem; line-height: 1.4; margin-top: 0.15rem; }
.er-pheno:empty { display: none; }
.er-pheno-pill { display: inline-block; background: #e3f4f9; color: #007c96; border-radius: 999px; padding: 0.05rem 0.55rem; font-weight: 600; }
.er-pheno-score { color: #6c757d; margin-left: 0.3rem; white-space: nowrap; }
.er-pheno-alt { display: block; margin-top: 0.2rem; color: #6b5103; }
.er-pheno.is-error { color: #b02a37; }
.er-sort > span:first-child { white-space: nowrap; }
.er-sort-buttons { flex-shrink: 0; }

/* Phones: gene name and phenotype on their own line, then the two alleles side by side. */
@media (max-width: 600px) {
  .er-genes thead { display: none; }
  .er-genes tr[data-gene] { display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr); column-gap: 0.25rem; border-top: 1px solid #edf0f2; padding: 0.6rem 0; }
  .er-genes tr[data-gene] td { border-top: none; padding: 0; }
  .er-genes tr[data-gene] .er-gene { grid-column: 1 / -1; margin-bottom: 0.35rem; }
  .er-genes tr[data-gene] .er-gene label { line-height: 1.5; }
  .er-genes select, .er-combo { max-width: none; }
  .er-genes .er-field-error { display: block; }
}
