/* ═══════════════════════════════════════════════════════
   css/quantum-exposure-checker.css: what /quantum-exposure-checker adds to css/tool.css.
   A same-origin file, like the page's scripts, so the page's CSP stays free of inline code.
   ═══════════════════════════════════════════════════════ */

/* The answer card: the check panel and the verdict side by side, stacked below 1000px */
.qec-answer { align-items: start; }
@media (max-width: 999px) {
    .qec-answer { grid-template-columns: minmax(0, 1fr); }
}

/* Check panel */
.qec-check h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--tl-text); }
.qec-row { display: flex; gap: 10px; align-items: stretch; margin-top: 8px; }
.qec-input { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0 14px; background: var(--tl-field); border: 1px solid var(--tl-outline); border-radius: 10px; color: var(--tl-text); font-family: var(--mono); font-size: 15px; letter-spacing: 0.01em; }
.qec-input:focus { border-color: var(--orange); }
.qec-btn { flex: none; min-height: 50px; padding: 0 18px; border: 1px solid var(--orange); border-radius: 10px; background: var(--orange); color: var(--tl-ink); font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; }
.qec-btn:hover:not(:disabled):not([aria-disabled="true"]) { background: #ffa53d; border-color: #ffa53d; }
.qec-btn:disabled, .qec-btn[aria-disabled="true"] { background: transparent; border-color: var(--tl-outline); color: var(--tl-muted); cursor: not-allowed; }
.qec-btn[aria-pressed="true"] { background: transparent; border-color: var(--orange); color: var(--orange); cursor: default; }
.qec-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.qec-help { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--tl-muted); }
.qec-noscript { margin: 14px 0 0; padding: 14px 16px; border: 1.5px dashed var(--tl-outline); border-radius: 10px; font-size: 15px; line-height: 1.6; color: var(--tl-text); }
.qec-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.qec-examples-label { margin-right: 2px; font-family: var(--mono); font-size: 12px; color: var(--tl-muted); }
.qec-pill { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.qec-privacy { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--tl-line); font-size: 14px; line-height: 1.6; color: var(--tl-quiet); }

/* Verdict column: the result, a warning or a notice */
.qec-alerts:empty { display: none; }
.qec-big { font-size: 56px; line-height: 1.02; }
.qec-big[data-tone="fill-orange"] { color: var(--orange); }
.qec-big[data-tone="dashed"] { color: var(--tl-quiet); }
.qec-addr { display: block; margin-top: 2px; font-family: var(--mono); font-size: 14px; color: var(--tl-muted); overflow-wrap: anywhere; }
.qec-alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; }
.qec-alert--warning { border: 2px solid var(--orange); background: rgba(247, 147, 26, 0.06); }
.qec-alert--notice { border: 1.5px dashed var(--tl-outline); }
.qec-alert svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.qec-alert--warning svg { color: var(--orange); }
.qec-alert--notice svg { color: var(--tl-muted); }
.qec-alert-title { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--tl-text); }
.qec-alert-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tl-quiet); }
#qec-lookup-slot:focus { outline: none; }
.qec-lookup { margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--tl-outline); border-radius: 12px; }
.qec-lookup-title { margin: 0 0 4px; font-weight: 700; color: var(--tl-text); }
.qec-lookup-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tl-quiet); }
.qec-lookup .qec-btn { margin-top: 12px; min-height: 44px; }

/* Under the answer: the facts (sentences, so they read left to right) and what to do */
.qec-more:empty { display: none; }
.qec-facts .tl-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.qec-facts .tl-row dd { text-align: left; font-weight: 500; line-height: 1.5; }
.tl-story .qec-k2 { margin-top: 18px; }
.qec-todo { margin: 0; padding: 0; list-style: none; }
.qec-todo li { position: relative; margin-bottom: 6px; padding-left: 18px; font-size: 16px; line-height: 1.6; color: var(--tl-soft); }
.qec-todo li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.qec-nowrap { white-space: nowrap; }

/* Reading column: three ways, the prefix table, the Legacy panel */
.qec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.qec-card { padding: 18px; border: 1px solid var(--tl-line); border-radius: 14px; }
.qec-card-num { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--orange); }
.tl-read .qec-card h3 { margin: 0 0 8px; font-size: 18px; }
.tl-read .qec-card p { margin: 0; font-size: 15px; line-height: 1.65; }
.tl-read .qec-prefixes td:first-child { font-family: var(--mono); color: var(--tl-text); white-space: nowrap; }
.tl-read .qec-visible { color: var(--orange); font-weight: 600; }
.qec-legacy { margin-top: 52px; padding: 32px; background: var(--tl-text); border-radius: 16px; }
.tl-read .qec-legacy h2 { margin: 0 0 10px; color: #0b0a09; }
.tl-read .qec-legacy p { margin: 0; font-size: 17px; color: #3b362e; }
.tl-read .qec-legacy-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 20px; padding: 0 22px; border-radius: 10px; background: #0b0a09; color: var(--tl-text); font-size: 15px; font-weight: 700; text-decoration: none; }
.tl-read .qec-legacy-btn:hover { background: #2a2620; color: var(--tl-text); }
.tl .qec-legacy-btn:focus-visible { outline-color: #0b0a09; }
.qec-legacy + .tl-read-more { margin-top: 28px; }

@media (max-width: 760px) {
    .qec-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .qec-row { flex-direction: column; }
    .qec-btn { width: 100%; }
    .qec-big { font-size: 44px; }
    .qec-legacy { padding: 24px 20px; }
}
