/* Quote Analyzer. Namespaced `qa-`, checked against the site's body classes. */
.qa-section { padding: 8px 0 60px; }

.qa-shared, .qa-quote, .qa-out {
   background: var(--bg-card);
   border: 1px solid var(--border-dark, rgba(255,255,255,.08));
   border-radius: var(--radius-lg, 16px);
   padding: 22px 24px;
   margin-bottom: 16px;
}
.qa-shared h2 { font-size: 17px; font-weight: 700; color: var(--text-bright); margin: 0 0 16px; }

.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 13px; }
.qa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qa-field--wide { grid-column: span 2; }
.qa-field > span { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.qa-field > span small { display: block; font-weight: 500; font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.qa-field input, .qa-field select {
   background: var(--bg-black); border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
   padding: 10px 11px; color: var(--text-bright); font: inherit; font-size: 14px;
   font-variant-numeric: tabular-nums; width: 100%; min-width: 0;
}
.qa-field input:focus, .qa-field select:focus { outline: none; border-color: rgba(240,165,30,.55); }

.qa-quote__head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.qa-quote__name {
   flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.14);
   color: var(--text-bright); font: inherit; font-size: 16px; font-weight: 700; padding: 4px 2px;
}
.qa-quote__name:focus { outline: none; border-bottom-color: var(--gold); }
.qa-quote__del {
   flex: none; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
   background: transparent; color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer;
}
.qa-quote__del:hover { color: #FF8A7A; border-color: var(--red-border); }

.qa-more { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }
.qa-more summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--gold-text,#F5BC45); list-style: none; }
.qa-more summary::-webkit-details-marker { display: none; }
.qa-more summary::before { content: '▸ '; }
.qa-more[open] summary::before { content: '▾ '; }
.qa-more__note { font-size: 12.5px; line-height: 1.6; color: var(--text-mid); margin: 10px 0 14px; }

.qa-add {
   width: 100%; border: 1px dashed rgba(240,165,30,.4); background: transparent;
   color: var(--gold-text,#F5BC45); font: inherit; font-size: 14px; font-weight: 650;
   padding: 14px; border-radius: 12px; cursor: pointer; margin-bottom: 22px;
}
.qa-add:hover { background: var(--gold-pale); }

.qa-verdict {
   margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.65;
   color: var(--text-mid); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.qa-verdict strong { color: var(--text-bright); }
.qa-verdict.is-flip { background: var(--gold-pale); border-color: rgba(240,165,30,.34); }
.qa-verdict.is-flip strong { color: var(--gold-text,#F5BC45); }

.qa-tablewrap { overflow-x: auto; }
.qa-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.qa-table th {
   text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
   color: var(--text-dim); padding: 0 10px 9px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.qa-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-mid); }
.qa-table tr.is-best td { background: rgba(34,197,94,.06); }
.qa-t__name { color: var(--text-bright); font-weight: 650; }
.qa-t__num { text-align: right; font-variant-numeric: tabular-nums; }
.qa-t__total { color: var(--text-bright); font-weight: 700; }
.qa-t__delta { color: #FF8A7A; }
tr.is-best .qa-t__delta { color: #4ADE80; }
.qa-warn {
   display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; color: #F5BC45;
   background: var(--gold-pale); border: 1px solid rgba(240,165,30,.3); border-radius: 100px; padding: 2px 8px;
}
.qa-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

@media (max-width: 620px) {
   .qa-shared, .qa-quote, .qa-out { padding: 16px; }
   .qa-field--wide { grid-column: span 1; }
}
