Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1 +1,122 @@
|
|
| 1 |
-
:root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
color-scheme: light;
|
| 3 |
+
--ink: #172033;
|
| 4 |
+
--muted: #5d687a;
|
| 5 |
+
--line: #d8dee8;
|
| 6 |
+
--soft: #f5f7fa;
|
| 7 |
+
--hybrid: #4f46e5;
|
| 8 |
+
--graph: #0f766e;
|
| 9 |
+
--paths: #c25b16;
|
| 10 |
+
--both: #9a6700;
|
| 11 |
+
--gold: #dff7e7;
|
| 12 |
+
--gold-line: #43a968;
|
| 13 |
+
--page: #fff3c4;
|
| 14 |
+
--page-line: #d8a923;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
* { box-sizing: border-box; }
|
| 18 |
+
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; }
|
| 19 |
+
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
|
| 20 |
+
.topbar { color: #fff; background: #172033; border-bottom: 5px solid #19a7a0; padding: 34px 0 30px; }
|
| 21 |
+
.eyebrow, .step { margin: 0 0 5px; color: #34d0c6; font-size: 12px; font-weight: 800; text-transform: uppercase; }
|
| 22 |
+
h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
|
| 23 |
+
.lede { max-width: 760px; margin: 12px 0 0; color: #d9e1ee; font-size: 18px; }
|
| 24 |
+
main section { padding: 30px 0; border-bottom: 1px solid var(--line); }
|
| 25 |
+
.notice { margin-top: 24px; padding: 13px 16px; border: 1px solid #a8dcd8; border-left: 5px solid #159b94; background: #edfafa; }
|
| 26 |
+
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
|
| 27 |
+
.section-heading h2 { margin: 0; font-size: 23px; }
|
| 28 |
+
.count { color: var(--muted); font-weight: 700; }
|
| 29 |
+
.filter-grid { display: grid; grid-template-columns: 160px 260px 1fr; gap: 14px; }
|
| 30 |
+
label { display: grid; gap: 6px; color: #3f4b5f; font-size: 13px; font-weight: 700; }
|
| 31 |
+
select, input { width: 100%; min-height: 42px; border: 1px solid #b8c1cf; border-radius: 5px; background: #fff; color: var(--ink); padding: 9px 11px; font: inherit; }
|
| 32 |
+
select:focus, input:focus { outline: 3px solid #ccebea; border-color: #168b86; }
|
| 33 |
+
.question-picker { margin-top: 14px; }
|
| 34 |
+
.question-summary { padding: 17px 0 19px; }
|
| 35 |
+
.question-summary h3 { max-width: 930px; margin: 0 0 8px; font-size: 20px; }
|
| 36 |
+
.question-summary p { margin: 5px 0; color: var(--muted); }
|
| 37 |
+
.comparison { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
|
| 38 |
+
.metric-block { min-width: 0; padding: 15px; border-top: 5px solid var(--accent); border-right: 1px solid var(--line); background: #fff; }
|
| 39 |
+
.metric-block:last-child { border-right: 0; }
|
| 40 |
+
.metric-block h3 { min-height: 48px; margin: 0 0 12px; font-size: 15px; }
|
| 41 |
+
.metric-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #edf0f4; color: var(--muted); font-size: 13px; }
|
| 42 |
+
.metric-row strong { color: var(--ink); font-size: 16px; }
|
| 43 |
+
.inspect-heading { align-items: center; }
|
| 44 |
+
.method-picker { width: min(360px, 100%); }
|
| 45 |
+
.route-summary { margin-bottom: 14px; padding: 14px 16px; border-left: 5px solid var(--accent); background: var(--soft); }
|
| 46 |
+
.route-summary strong { display: block; margin-bottom: 5px; }
|
| 47 |
+
.graph-heading { margin: 24px 0 10px; }
|
| 48 |
+
.graph-heading h3 { margin: 0; font-size: 18px; }
|
| 49 |
+
.graph-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
|
| 50 |
+
.graph-view { margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); background: #fbfcfe; }
|
| 51 |
+
.graph-node { border: 1px solid #aeb9c8; border-radius: 5px; background: #fff; padding: 10px; font-size: 13px; }
|
| 52 |
+
.graph-node strong, .graph-node span { display: block; }
|
| 53 |
+
.graph-node span { margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
|
| 54 |
+
.graph-node.query { border-color: #5274df; background: #eef2ff; }
|
| 55 |
+
.graph-root { max-width: 620px; margin: 0 auto; text-align: center; }
|
| 56 |
+
.graph-down { width: 0; height: 22px; margin: 0 auto; border-left: 2px solid #7b8798; }
|
| 57 |
+
.graph-down::after { content: ""; display: block; width: 7px; height: 7px; margin: 13px 0 0 -5px; border-right: 2px solid #7b8798; border-bottom: 2px solid #7b8798; transform: rotate(45deg); }
|
| 58 |
+
.graph-cues { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
|
| 59 |
+
.graph-node.cue { min-width: 120px; text-align: center; }
|
| 60 |
+
.graph-node.cue.year { border-color: #288db3; background: #e9f7fc; }
|
| 61 |
+
.graph-node.cue.entity { border-color: #2e8b57; background: #edf9f0; }
|
| 62 |
+
.graph-node.cue.metric { border-color: #cc4f5e; background: #fff0f2; }
|
| 63 |
+
.graph-section-label { margin: 8px 0; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
|
| 64 |
+
.graph-paths { display: grid; gap: 9px; }
|
| 65 |
+
.graph-path-row { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(150px, .7fr) minmax(260px, 1.8fr); align-items: center; gap: 0; }
|
| 66 |
+
.graph-source { border: 1px solid #aeb9c8; border-radius: 5px; padding: 9px; background: #fff; font-size: 12px; font-weight: 750; text-align: center; }
|
| 67 |
+
.graph-source.hybrid { border-color: #4f46e5; background: #eef2ff; }
|
| 68 |
+
.graph-source.graph { border-color: #0f766e; background: #ecfdf8; }
|
| 69 |
+
.graph-source.metric { border-color: #cc4f5e; background: #fff0f2; }
|
| 70 |
+
.graph-source.entity { border-color: #2e8b57; background: #edf9f0; }
|
| 71 |
+
.graph-source.page { border-color: #2f6bbb; background: #edf5ff; }
|
| 72 |
+
.graph-edge { position: relative; height: 2px; margin: 0 13px; background: #4f46e5; color: #4f46e5; }
|
| 73 |
+
.graph-edge::after { content: ""; position: absolute; right: -2px; top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
|
| 74 |
+
.graph-edge span { position: absolute; left: 50%; bottom: 6px; width: max-content; max-width: 145px; transform: translateX(-50%); padding: 1px 5px; background: #fbfcfe; color: #344054; font-size: 10px; font-weight: 800; text-align: center; }
|
| 75 |
+
.graph-edge.graph { background: #0f766e; color: #0f766e; }
|
| 76 |
+
.graph-edge.metric { background: #cc4f5e; color: #cc4f5e; }
|
| 77 |
+
.graph-edge.entity { background: #2e8b57; color: #2e8b57; }
|
| 78 |
+
.graph-edge.page { background: #2f6bbb; color: #2f6bbb; }
|
| 79 |
+
.graph-node.evidence-node { border-left: 4px solid var(--accent); }
|
| 80 |
+
.graph-node.evidence-node.gold { border-color: var(--gold-line); background: var(--gold); }
|
| 81 |
+
.graph-node.evidence-node.page { border-color: var(--page-line); background: var(--page); }
|
| 82 |
+
.graph-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
|
| 83 |
+
.legend-line::before { content: ""; display: inline-block; width: 20px; margin-right: 5px; border-top: 2px solid currentColor; vertical-align: middle; }
|
| 84 |
+
.legend-line.graph { color: #0f766e; }.legend-line.path { color: #c25b16; }.legend-line.hybrid { color: #4f46e5; }
|
| 85 |
+
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
|
| 86 |
+
.chip { display: inline-block; border: 1px solid #c7d0dd; border-radius: 4px; background: #fff; padding: 3px 7px; color: #48556a; font-size: 12px; }
|
| 87 |
+
.ranking { display: grid; gap: 9px; }
|
| 88 |
+
.evidence { display: grid; grid-template-columns: 44px 160px 90px minmax(0, 1fr) 56px; gap: 12px; align-items: start; border: 1px solid var(--line); border-left: 5px solid #aab3c1; padding: 12px; }
|
| 89 |
+
.evidence.gold { border-left-color: var(--gold-line); background: var(--gold); }
|
| 90 |
+
.evidence.page { border-left-color: var(--page-line); background: var(--page); }
|
| 91 |
+
.rank { font-size: 19px; font-weight: 800; }
|
| 92 |
+
.match { font-size: 13px; font-weight: 800; }
|
| 93 |
+
.meta { color: var(--muted); font-size: 13px; }
|
| 94 |
+
.preview { min-width: 0; overflow-wrap: anywhere; }
|
| 95 |
+
.preview p { margin: 6px 0 0; color: #3f4b5f; font-size: 14px; }
|
| 96 |
+
.source { color: #315bd6; font-weight: 800; text-decoration: none; }
|
| 97 |
+
.source:hover { text-decoration: underline; }
|
| 98 |
+
.loading, .error { padding: 24px; border: 1px solid var(--line); background: var(--soft); }
|
| 99 |
+
.error { color: #a02b2b; border-color: #e2aaaa; background: #fff1f1; }
|
| 100 |
+
footer { padding: 24px 0 36px; color: var(--muted); font-size: 13px; }
|
| 101 |
+
|
| 102 |
+
@media (max-width: 860px) {
|
| 103 |
+
.filter-grid, .comparison { grid-template-columns: 1fr 1fr; }
|
| 104 |
+
.metric-block:nth-child(2) { border-right: 0; }
|
| 105 |
+
.metric-block:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
|
| 106 |
+
.evidence { grid-template-columns: 36px 1fr 54px; }
|
| 107 |
+
.evidence .meta { grid-column: 2; }
|
| 108 |
+
.evidence .preview { grid-column: 1 / -1; }
|
| 109 |
+
.graph-path-row { grid-template-columns: minmax(110px, .65fr) 120px minmax(220px, 1.5fr); }
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
@media (max-width: 560px) {
|
| 113 |
+
.filter-grid, .comparison { grid-template-columns: 1fr; }
|
| 114 |
+
.section-heading, .inspect-heading { align-items: stretch; flex-direction: column; }
|
| 115 |
+
.method-picker { width: 100%; }
|
| 116 |
+
.metric-block { border-right: 0; border-bottom: 1px solid var(--line); }
|
| 117 |
+
.metric-block:last-child { border-bottom: 0; }
|
| 118 |
+
.graph-path-row { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
|
| 119 |
+
.graph-edge { width: 2px; height: 25px; margin: 0 auto; }
|
| 120 |
+
.graph-edge::after { right: -4px; top: auto; bottom: -2px; border-right: 5px solid transparent; border-left: 5px solid transparent; border-top: 8px solid currentColor; border-bottom: 0; }
|
| 121 |
+
.graph-edge span { left: 8px; bottom: 6px; transform: none; }
|
| 122 |
+
}
|