Spaces:
Running
Running
File size: 5,411 Bytes
1f92077 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | /* ============================================================
renderers/_shared/cell.css β the ONE owner of card chrome.
Loaded once (linked by the gallery, or auto-injected by
cell.js/ensureSharedCss). Per-renderer CSS owns only slot
placement INSIDE the card, scoped under the per-chart class
(= payload.meta.id) that createCard() adds to .cf-card.
Container-query sized: every card is its own inline-size
container, so a chart mounted in a half-width dashboard slot
fits β nothing here couples to the viewport.
============================================================ */
.cf-card {
container-type: inline-size;
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-three);
padding: var(--card-buffer);
background: var(--bg-page);
border: 1px solid var(--ink-25);
color: var(--text-body);
font-family: var(--font);
min-width: 0;
}
/* ββ header ββ */
.cf-card-title {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-three);
font-size: clamp(12px, 3.4cqi, var(--size-h4));
font-weight: 700;
border-bottom: 1px solid var(--ink-15);
padding-bottom: var(--space-two);
}
.cf-stamp {
font-size: var(--size-footnote);
font-weight: 400;
color: var(--text-muted);
text-transform: var(--lowercase);
white-space: nowrap;
}
.cf-card-body {
display: flex;
flex-direction: column;
gap: var(--space-three);
min-width: 0;
}
/* ββ stat-cell grid ββ */
.cf-cell-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 22cqi, 170px), 1fr));
gap: var(--space-two);
}
.cf-cell {
display: flex;
flex-direction: column;
gap: var(--space-one);
padding: var(--space-two) var(--space-three);
background: var(--bg-wash);
border: 1px solid var(--ink-15);
min-width: 0;
}
.cf-cell-label {
font-size: clamp(8px, 2cqi, var(--size-footnote));
line-height: 1.35;
color: var(--text-secondary);
text-transform: var(--lowercase);
letter-spacing: 0.02em;
}
.cf-cell-value {
font-size: clamp(15px, 5.5cqi, var(--size-stat-number));
font-weight: 700;
line-height: 1.1;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
/* ββ generic table (CONTRACT-2 table {columns,rows}) ββ */
.cf-table-wrap {
overflow-x: auto;
border: 1px solid var(--ink-15);
}
.cf-table {
width: 100%;
border-collapse: collapse;
font-size: clamp(10px, 2.6cqi, var(--size-table-cell));
line-height: 1.5;
}
.cf-table th {
font-size: clamp(9px, 2.2cqi, var(--size-table-header));
font-weight: 700;
text-align: left;
text-transform: var(--lowercase);
color: var(--text-secondary);
border-bottom: 1px solid var(--table-cell-border);
padding: var(--space-one) var(--space-three);
white-space: nowrap;
}
.cf-table td {
padding: var(--space-one) var(--space-three);
border-bottom: 1px solid var(--ink-08);
}
.cf-table tbody tr:hover {
background: var(--table-row-hover);
}
.cf-table .cf-num {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
/* ββ methodology block ({prose, equations, citations}) ββ */
.cf-method {
font-size: clamp(10px, 2.4cqi, var(--size-figure-max));
line-height: var(--line-height);
border-top: 1px solid var(--ink-15);
padding-top: var(--space-three);
}
.cf-method-heading {
font-size: var(--size-footnote);
font-weight: 700;
color: var(--text-secondary);
text-transform: var(--lowercase);
letter-spacing: 0.04em;
margin: 0 0 var(--space-two);
}
.cf-method p {
margin: 0 0 var(--space-two);
color: var(--text-body);
}
.cf-eq {
display: block;
margin: var(--space-two) 0;
padding: var(--space-two) var(--space-three);
background: var(--bg-wash);
border-left: 2px solid var(--callout-border-light);
font-variant-numeric: tabular-nums;
overflow-x: auto;
white-space: nowrap;
}
.cf-citations {
list-style: none;
margin: var(--space-two) 0 0;
padding: 0;
}
.cf-citation {
font-size: clamp(9px, 2.2cqi, 13px);
color: var(--text-secondary);
padding-left: 2ch;
text-indent: -2ch; /* APA hanging indent */
margin-bottom: var(--space-one);
}
/* ββ results scaffold (payload.results), mirrors .cf-method ββ */
.cf-results {
font-size: clamp(10px, 2.4cqi, var(--size-figure-max));
line-height: var(--line-height);
border-top: 1px solid var(--ink-15);
padding-top: var(--space-three);
margin-top: var(--space-three);
}
.cf-results-heading {
font-size: var(--size-footnote);
font-weight: 700;
color: var(--text-secondary);
text-transform: var(--lowercase);
letter-spacing: 0.04em;
margin: 0 0 var(--space-two);
}
.cf-results p {
margin: 0 0 var(--space-two);
color: var(--text-body);
}
.cf-findings {
list-style: none;
margin: var(--space-two) 0 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: var(--space-one) var(--space-three);
}
.cf-finding {
font-size: clamp(9px, 2.2cqi, 13px);
color: var(--text-secondary);
font-variant-numeric: tabular-nums;
}
.cf-finding::before {
content: "Β·";
margin-right: 0.5ch;
color: var(--ink-40);
}
/* ββ error / insufficient-data card states ββ */
.cf-error {
border: 1px dashed var(--chart_color_biased);
color: var(--chart_color_biased);
padding: var(--space-four);
font-size: var(--size-footnote);
font-family: var(--font);
overflow-wrap: anywhere;
}
|