File size: 8,624 Bytes
81e8580 | 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 207 208 209 210 211 | /* Identity: audit certificate. Paper, ink, rubber stamps. Loaded after styles.css. */
:root:root:root, html:root[data-theme="light"], html:root[data-theme="dark"] {
--bg: #f3eddc;
--bg-elev: #fffdf5;
--bg-soft: #f6f1e2;
--ink: #1b2620;
--muted: #4e5a53;
--faint: #6d766f;
--line: rgba(27, 38, 32, 0.16);
--line-strong: rgba(27, 38, 32, 0.32);
--accent: #1f5c43;
--accent-strong: #123d2c;
--allow: #1d7443;
--allow-bg: rgba(29, 116, 67, 0.09);
--allow-line: rgba(29, 116, 67, 0.45);
--block: #b0261c;
--block-bg: rgba(176, 38, 28, 0.08);
--block-line: rgba(176, 38, 28, 0.45);
--ask: #9a5a00;
--ask-bg: rgba(154, 90, 0, 0.09);
--ask-line: rgba(154, 90, 0, 0.45);
--shadow: 0 1px 0 rgba(27, 38, 32, 0.06), 0 10px 30px rgba(60, 48, 20, 0.08);
--radius: 4px;
--sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
color-scheme: light;
}
html, body { background: #f3eddc; }
body {
background-color: #f3eddc;
background-image:
repeating-linear-gradient(0deg, rgba(27, 38, 32, 0.035) 0, rgba(27, 38, 32, 0.035) 1px, transparent 1px, transparent 28px);
}
body::before { display: none; }
.topbar { display: none; }
main { padding-top: 1.6rem; }
/* Certificate hero */
.hero.cert {
position: relative;
background: #fffdf5;
border: 1px solid var(--line-strong);
outline: 1px solid var(--line-strong);
outline-offset: 5px;
padding: 1.6rem 1.6rem 1.2rem;
margin: 0.4rem 0.4rem 1.8rem;
}
.cert-kicker {
font-family: var(--mono);
font-size: 0.72rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--accent);
margin: 0 0 0.6rem;
padding-bottom: 0.55rem;
border-bottom: 3px double var(--line-strong);
padding-right: 9rem;
}
.hero h1 {
font-family: var(--serif);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.02;
padding-right: 9rem;
}
.promise { font-family: var(--serif); font-style: italic; color: var(--ink); }
.badge, .chip, .filter {
border-radius: 2px;
background: transparent;
border-color: var(--line-strong);
font-family: var(--mono);
font-size: 0.72rem;
letter-spacing: 0.02em;
}
.seal {
position: absolute;
top: 1rem;
right: 1.1rem;
width: 8.2rem;
height: 8.2rem;
transform: rotate(-8deg);
}
.seal svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
.hero.cert { padding: 1.1rem 1rem 0.9rem; }
.seal { position: static; width: 6.4rem; height: 6.4rem; margin: 0 0 0.6rem auto; transform: rotate(-6deg); }
.cert-kicker, .hero h1 { padding-right: 0; }
}
h2, .gallery-head h2, .corpus-head h2 {
font-family: var(--serif);
font-weight: 700;
letter-spacing: -0.01em;
}
.card {
border-radius: 3px;
border: 1px solid var(--line-strong);
border-top: 3px double var(--line-strong);
background: #fffdf5;
}
.label { color: var(--accent); letter-spacing: 0.16em; font-family: var(--mono); font-weight: 600; }
/* Verdict as a rubber stamp */
.verdict-word {
display: inline-block;
font-family: var(--mono);
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: clamp(1.5rem, 4.4vw, 2.4rem);
border: 4px solid currentColor;
border-radius: 6px;
padding: 0.15em 0.45em;
transform: rotate(-2.5deg);
margin: 0.3rem 0 0.2rem;
box-shadow: inset 0 0 0 2px rgba(255, 253, 245, 0.7);
opacity: 0.92;
}
#verdict-card[data-verdict=""] .verdict-word { border-color: transparent; transform: none; color: var(--faint); }
#verdict-card[data-verdict="ALLOW"],
#verdict-card[data-verdict="BLOCK"],
#verdict-card[data-verdict="REQUIRE_APPROVAL"] { background: #fffdf5; }
#verdict-card[data-verdict="ALLOW"] { border-left: 6px solid var(--allow); }
#verdict-card[data-verdict="BLOCK"] { border-left: 6px solid var(--block); }
#verdict-card[data-verdict="REQUIRE_APPROVAL"] { border-left: 6px solid var(--ask); }
.step { border-radius: 2px; background: var(--bg-soft); }
pre.output, textarea { border-radius: 2px; background: #f8f4e7; }
button { border-radius: 3px; background: #fffdf5; border-color: var(--line-strong); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fffdf5; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fffdf5; }
.scen { border-radius: 3px; background: #fffdf5; border-color: var(--line); }
.scen[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cell { border-radius: 2px; }
details.advanced { border-radius: 3px; background: #fffdf5; }
.progress > span { background: var(--accent); }
/* Insights: audit at a glance */
.insights { margin: 0 0 1.8rem; }
.insights-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.insights-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.prov {
display: inline-block;
font-family: var(--mono);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
border: 1px dashed var(--line-strong);
padding: 0.12rem 0.45rem;
color: var(--muted);
}
.ins-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; }
.ins-grid .wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .ins-grid { grid-template-columns: 1fr; } }
.panel h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 0.25rem; }
.panel .hint { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.85rem; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--sans); }
.ledger { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.ledger-row { display: grid; grid-template-columns: 8.6rem 1fr; gap: 0.6rem; align-items: start; }
.ledger-row b { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; padding-top: 0.2rem; }
.stamps { display: flex; flex-wrap: wrap; gap: 4px; }
.stamp {
width: 22px; height: 22px; padding: 0; border-radius: 50%;
border: 2px solid currentColor; background: transparent;
font: 700 10px/18px var(--mono); text-align: center;
}
.stamp[data-v="ALLOW"] { color: var(--allow); }
.stamp[data-v="BLOCK"] { color: var(--block); }
.stamp[data-v="REQUIRE_APPROVAL"] { color: var(--ask); }
.stamp[data-match="false"] { background: repeating-linear-gradient(45deg, var(--block-bg), var(--block-bg) 3px, transparent 3px, transparent 6px); }
.stamp:hover, .stamp:focus-visible { background: currentColor; outline: none; }
@media (max-width: 640px) { .ledger-row { grid-template-columns: 1fr; gap: 0.25rem; } }
.clauses { list-style: none; margin: 0; padding: 0; counter-reset: clause; }
.clauses li {
display: grid;
grid-template-columns: 2.4rem 1fr 3.2rem;
gap: 0.6rem;
align-items: start;
padding: 0.65rem 0;
border-bottom: 1px dotted var(--line-strong);
}
.clauses li:last-child { border-bottom: 0; }
.clause-no { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); font-weight: 700; }
.clause-title { font-family: var(--serif); font-weight: 700; }
.clause-text { color: var(--muted); font-size: 0.86rem; margin: 0.1rem 0 0.35rem; }
.clause-bar { height: 6px; background: var(--line); }
.clause-bar span { display: block; height: 100%; background: var(--block); }
.clause-tools { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.clause-tools code { font-family: var(--mono); font-size: 0.7rem; border: 1px solid var(--line); padding: 0.05rem 0.35rem; background: var(--bg-soft); }
.clause-count { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; text-align: right; color: var(--block); }
.clause-count small { display: block; font-size: 0.62rem; color: var(--faint); font-weight: 600; letter-spacing: 0.06em; }
.clause-count.ask { color: var(--ask); }
.tagbars { display: grid; gap: 0.32rem; }
.tagbar { display: grid; grid-template-columns: minmax(0, 11.5rem) 1fr 1.6rem; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.tagname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagtrack { height: 8px; background: var(--line); display: block; }
.tagtrack i { display: block; height: 100%; background: var(--block); opacity: 0.8; }
.tagbar b { font-family: var(--mono); font-size: 0.78rem; text-align: right; }
/* Keep long code and hashes inside the phone viewport */
pre { overflow-x: auto; max-width: 100%; }
.scen { overflow: hidden; min-width: 0; }
.scen-desc, .scen-title, .scen-id, .sub code, footer code, .details, .reason { overflow-wrap: anywhere; word-break: break-word; }
select { max-width: 100%; }
.ins-grid > * { min-width: 0; }
|