FR-Data-Analysis / src /App.css
ashish
feat: refresh explorer UI and six-card results
07e8924
Raw History Blame Contribute Delete
18.6 kB
#root {
min-height: 100vh;
}
.page-shell {
width: min(1160px, calc(100% - 48px));
margin: 0 auto;
}
.masthead {
min-height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--line);
}
.wordmark {
display: inline-flex;
align-items: center;
gap: 11px;
color: var(--ink);
font-size: 15px;
font-weight: 700;
text-decoration: none;
}
.wordmark-mark {
width: 36px;
height: 36px;
display: grid;
place-items: center;
border-radius: 10px;
background: var(--forest);
color: white;
font-family: var(--serif);
font-size: 15px;
}
.masthead-note,
.eyebrow,
.scope-label,
.result-meta,
.page-footer,
.schema-row span {
color: var(--muted);
font-size: 12px;
}
.masthead-note {
text-transform: uppercase;
}
.masthead-actions {
display: flex;
align-items: center;
gap: 14px;
}
.masthead-playground,
.document-explore {
min-height: 38px;
padding: 8px 13px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: var(--surface);
color: var(--forest-dark);
font: inherit;
font-size: 12px;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.masthead-playground:hover,
.document-explore:hover {
border-color: var(--forest);
background: #eaf3f3;
color: var(--forest-dark);
}
.masthead-playground:active,
.document-explore:active,
.run-button:active,
.secondary-button:active:not(:disabled) {
transform: translateY(1px);
}
.masthead-playground:focus-visible,
.document-explore:focus-visible,
.run-button:focus-visible,
.secondary-button:focus-visible,
.scope-modes label:focus-within,
.schema-details summary:focus-visible {
outline: 3px solid color-mix(in srgb, var(--water) 35%, transparent);
outline-offset: 2px;
}
.intro {
max-width: 760px;
padding: 52px 0 34px;
}
.eyebrow {
margin: 0 0 10px;
color: var(--forest-dark);
font-family: var(--mono);
font-size: 10px;
font-weight: 700;
}
.intro h1,
.section-heading h2 {
margin: 0;
color: var(--ink);
font-family: var(--serif);
font-weight: 500;
}
.intro h1 {
font-size: 42px;
line-height: 1.12;
}
.intro-copy {
max-width: 660px;
margin: 15px 0 0;
color: var(--muted);
font-size: 15px;
line-height: 1.65;
}
.scope-strip {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
overflow: hidden;
border: 1px solid var(--line);
border-radius: 14px;
background: var(--surface);
box-shadow: var(--shadow-soft);
}
.scope-strip > div {
min-width: 0;
padding: 17px 18px;
display: grid;
align-content: start;
gap: 7px;
}
.scope-strip > div + div {
border-left: 1px solid var(--line);
}
.scope-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
.scope-strip strong,
.scope-strip code {
overflow-wrap: anywhere;
color: var(--ink);
font-size: 12px;
font-weight: 700;
}
.scope-strip code,
.schema-row code,
td,
.result-meta {
font-family: var(--mono);
}
.check-section {
margin-top: 22px;
padding: 26px 28px 28px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--surface);
box-shadow: var(--shadow);
}
.section-heading {
margin-bottom: 22px;
display: flex;
align-items: end;
justify-content: space-between;
gap: 24px;
}
.section-heading h2 {
font-size: 25px;
line-height: 1.2;
}
.run-button {
min-height: 42px;
padding: 0 17px;
flex: 0 0 auto;
border: 1px solid var(--forest);
border-radius: 10px;
background: var(--forest);
color: white;
font: inherit;
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: background 140ms ease, transform 140ms ease;
}
.run-button:hover:not(:disabled) {
background: var(--forest-dark);
}
.run-button:disabled {
cursor: wait;
opacity: 0.68;
}
.scope-modes {
min-width: 0;
margin: 0 0 21px;
padding: 0;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
border: 0;
}
.scope-modes legend {
width: 100%;
margin-bottom: 8px;
color: var(--muted);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
.scope-modes label {
min-height: 38px;
padding: 7px 11px;
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--line);
border-radius: 9px;
background: var(--surface);
color: var(--ink-soft);
font-size: 11px;
cursor: pointer;
}
.scope-modes label:has(input:checked) {
border-color: #b8d9d5;
background: #eaf4f2;
color: var(--forest-dark);
}
.scope-modes input {
width: 15px;
height: 15px;
margin: 0;
accent-color: var(--forest);
}
.date-range-fields {
margin: 0 0 20px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 220px));
gap: 14px;
}
.date-range-fields label,
.filter-grid label {
min-width: 0;
display: grid;
align-content: start;
gap: 7px;
}
.date-range-fields label > span,
.filter-grid label > span {
color: var(--muted);
font-size: 11px;
font-weight: 650;
}
.date-range-fields input,
.filter-grid input,
.filter-grid select {
width: 100%;
min-height: 41px;
padding: 8px 11px;
border: 1px solid var(--line-strong);
border-radius: 9px;
background: var(--surface);
color: var(--ink);
font: inherit;
font-size: 12px;
}
.date-range-fields input:focus-visible,
.filter-grid input:focus-visible,
.filter-grid select:focus-visible {
outline: 3px solid color-mix(in srgb, var(--water) 28%, transparent);
outline-offset: 1px;
border-color: var(--water);
}
.filter-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px 14px;
}
.filter-grid .search-field {
grid-column: span 2;
}
.search-field small {
color: var(--muted);
font-size: 10px;
line-height: 1.45;
}
.field-error {
grid-column: 1 / -1;
color: #9a3f36;
font-size: 11px;
}
.form-actions {
margin-top: 19px;
display: flex;
align-items: center;
gap: 14px;
}
.secondary-button {
min-height: 38px;
padding: 0 13px;
border: 1px solid var(--line-strong);
border-radius: 9px;
background: var(--surface);
color: var(--forest-dark);
font: inherit;
font-size: 11px;
font-weight: 700;
cursor: pointer;
}
.secondary-button:hover:not(:disabled) {
border-color: var(--forest);
background: var(--surface-muted);
}
.secondary-button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
.scope-hint {
color: var(--muted);
font-size: 10px;
line-height: 1.45;
}
.status-line,
.empty-state {
padding: 15px 0;
color: var(--muted);
font-size: 13px;
}
.error-panel {
margin-top: 17px;
padding: 16px 18px;
border: 1px solid #f0d5d1;
border-left: 4px solid var(--signal);
border-radius: 10px;
background: #fff8f7;
}
.error-panel strong {
color: #8b4139;
font-size: 13px;
}
.error-panel p {
margin: 7px 0;
color: var(--ink);
font-family: var(--mono);
font-size: 11px;
line-height: 1.55;
overflow-wrap: anywhere;
}
.error-panel span {
color: var(--muted);
font-size: 11px;
}
.result-meta {
padding: 12px 0;
display: flex;
flex-wrap: wrap;
gap: 8px 18px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 10px;
}
.table-wrap {
width: 100%;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
th,
td {
padding: 11px 10px;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
thead th {
color: var(--muted);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
tbody th {
color: var(--ink);
font-size: 13px;
font-weight: 700;
white-space: nowrap;
}
td {
color: var(--ink-soft);
font-size: 10px;
white-space: nowrap;
}
.total-row th,
.total-row td {
border-top: 1px solid var(--line-strong);
color: var(--forest-dark);
font-weight: 700;
}
.schema-details {
margin-top: 22px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.schema-details summary {
padding: 14px 0;
color: var(--forest-dark);
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
.schema-list {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
border-top: 1px solid var(--line);
}
.schema-row {
min-width: 0;
padding: 9px 12px 9px 0;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
border-bottom: 1px solid var(--line);
}
.schema-row code {
overflow-wrap: anywhere;
color: var(--ink-soft);
font-size: 10px;
}
.schema-row span {
flex: 0 0 auto;
font-family: var(--mono);
font-size: 9px;
}
.results-section {
margin-top: 30px;
border-top: 1px solid var(--line-strong);
}
.document-grid {
margin: 13px 0 8px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.document-card {
min-width: 0;
padding: 18px;
display: flex;
flex-direction: column;
align-items: flex-start;
border: 1px solid var(--line);
border-radius: 13px;
background: var(--surface);
box-shadow: var(--shadow-soft);
transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.document-card:hover {
border-color: var(--line-strong);
box-shadow: var(--shadow);
transform: translateY(-1px);
}
.document-card-meta {
width: 100%;
margin-bottom: 12px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.document-card-meta > div {
min-width: 0;
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 5px 9px;
}
.document-card-meta time {
color: var(--muted);
font-family: var(--mono);
font-size: 9px;
}
.document-number {
display: block;
margin-top: 5px;
color: var(--muted);
font-family: var(--mono);
font-size: 9px;
}
.document-card .document-number {
margin: 0;
color: var(--ink-soft);
}
.document-type-tag {
max-width: 48%;
padding: 5px 9px;
flex: 0 0 auto;
border: 1px solid transparent;
border-radius: 999px;
font-size: 9px;
font-weight: 700;
line-height: 1.25;
text-align: center;
overflow-wrap: anywhere;
}
.document-type-tag--notice { background: #e8f2f8; border-color: #cfe2ef; color: #315c75; }
.document-type-tag--rule { background: #e7f3ef; border-color: #cce5db; color: #2b6556; }
.document-type-tag--proposed { background: #fbf1e4; border-color: #f0ddc2; color: #825a28; }
.document-type-tag--presidential { background: #f8eae8; border-color: #efd3ce; color: #8e493f; }
.document-type-tag--other { background: var(--surface-muted); border-color: var(--line); color: var(--ink-soft); }
.document-title {
margin: 0;
display: block;
color: var(--forest-dark);
font-family: var(--serif);
font-size: 17px;
font-weight: 500;
line-height: 1.38;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
overflow-wrap: anywhere;
}
.document-card-details {
margin-top: 11px;
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.document-card-details span {
padding: 4px 7px;
border: 1px solid var(--line);
border-radius: 7px;
background: var(--surface-muted);
color: var(--muted);
font-size: 9px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.document-card-abstract {
margin: 11px 0 13px;
color: var(--ink-soft);
font-size: 11px;
line-height: 1.55;
overflow-wrap: anywhere;
}
.document-card .document-explore {
min-height: 34px;
margin-top: auto;
padding: 7px 10px;
}
.pagination {
padding: 15px 0;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
color: var(--muted);
font-family: var(--mono);
font-size: 10px;
}
.pagination > span {
padding: 0 3px;
}
.analytics-section {
margin: 26px 0 22px;
border-bottom: 1px solid var(--line);
}
.analytics-header {
min-height: 68px;
padding: 10px 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
border-top: 1px solid var(--line);
}
.analytics-header .eyebrow {
margin-bottom: 4px;
}
.analytics-header h3 {
margin: 0;
color: var(--ink);
font-family: var(--serif);
font-size: 21px;
font-weight: 500;
}
.analytics-header > span {
flex: 0 0 auto;
color: var(--muted);
font-family: var(--mono);
font-size: 10px;
}
.analytics-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
border-top: 1px solid var(--line);
}
.analytics-panel {
min-width: 0;
margin: 0;
padding: 18px 20px 20px 0;
border-bottom: 1px solid var(--line);
}
.analytics-panel:nth-child(even) {
padding-right: 0;
padding-left: 20px;
border-left: 1px solid var(--line);
}
.analytics-panel--monthly,
.analytics-panel--coverage {
grid-column: 1 / -1;
padding-right: 0;
border-left: 0;
}
.analytics-panel-title {
display: block;
margin: 0 0 11px;
color: var(--ink-soft);
font-size: 12px;
font-weight: 700;
}
.analytics-chart {
width: 100%;
height: 260px;
min-width: 0;
max-width: 100%;
overflow: hidden;
}
.analytics-chart--compact {
height: 235px;
}
.analytics-note {
margin: -4px 0 12px;
color: var(--muted);
font-size: 10px;
line-height: 1.4;
}
.agency-ranking {
margin: 0;
padding: 0;
display: grid;
gap: 11px;
list-style: none;
}
.agency-ranking li {
min-width: 0;
display: grid;
gap: 6px;
}
.agency-ranking-label {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
}
.agency-ranking-label span {
min-width: 0;
color: var(--ink-soft);
font-size: 10px;
line-height: 1.4;
overflow-wrap: anywhere;
}
.agency-ranking-label strong {
flex: 0 0 auto;
color: var(--muted);
font-family: var(--mono);
font-size: 9px;
font-weight: 600;
}
.agency-bar-track,
.coverage-track {
overflow: hidden;
background: #e7edf2;
}
.agency-bar-track {
height: 5px;
border-radius: 99px;
}
.agency-bar-track span {
height: 100%;
display: block;
border-radius: inherit;
background: var(--signal);
}
.chart-empty {
margin: 0;
color: var(--muted);
font-size: 11px;
}
.coverage-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px 28px;
}
.coverage-metric {
min-width: 0;
}
.coverage-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 9px;
color: var(--ink-soft);
font-size: 11px;
}
.coverage-heading strong {
color: var(--muted);
font-family: var(--mono);
font-size: 9px;
font-weight: 600;
text-align: right;
}
.coverage-track {
height: 9px;
margin: 9px 0 7px;
display: flex;
border-radius: 99px;
}
.coverage-segment {
height: 100%;
display: block;
}
.coverage-segment--forest,
.coverage-key--forest {
background: var(--forest);
}
.coverage-segment--water,
.coverage-key--water {
background: var(--water);
}
.coverage-segment--signal,
.coverage-key--signal {
background: var(--signal);
}
.coverage-legend {
display: flex;
flex-wrap: wrap;
gap: 6px 13px;
color: var(--muted);
font-family: var(--mono);
font-size: 9px;
}
.coverage-legend span {
display: inline-flex;
align-items: center;
}
.coverage-key {
width: 7px;
height: 7px;
margin-right: 5px;
display: inline-block;
border-radius: 2px;
}
.chart-data-details {
padding: 12px 0 16px;
color: var(--muted);
font-size: 11px;
}
.chart-data-details summary {
width: fit-content;
color: var(--forest-dark);
font-weight: 700;
cursor: pointer;
}
.chart-data-table {
margin-top: 10px;
}
.chart-data-table th,
.chart-data-table td {
padding: 8px 9px;
font-size: 10px;
}
.chart-data-table td:last-child {
text-align: right;
white-space: nowrap;
}
.documents-table th,
.documents-table td {
white-space: normal;
}
.documents-table tbody td {
min-width: 100px;
max-width: 290px;
line-height: 1.5;
}
.documents-table tbody td:last-child {
min-width: 260px;
color: var(--muted);
}
.documents-table .document-title {
font-size: 16px;
}
.page-footer {
min-height: 54px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border-top: 1px solid var(--line);
}
@media (max-width: 960px) {
.page-shell {
width: min(100% - 36px, 760px);
}
.scope-strip {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.scope-strip > div:nth-child(3) {
border-top: 1px solid var(--line);
border-left: 0;
}
.scope-strip > div:nth-child(4) {
border-top: 1px solid var(--line);
}
}
@media (max-width: 700px) {
.page-shell {
width: min(100% - 28px, 560px);
}
.masthead {
min-height: 68px;
}
.masthead-note {
display: none;
}
.intro {
padding: 38px 0 27px;
}
.intro h1 {
font-size: 34px;
}
.intro-copy {
font-size: 13px;
}
.scope-strip {
grid-template-columns: minmax(0, 1fr);
}
.scope-strip > div,
.scope-strip > div:nth-child(3),
.scope-strip > div:nth-child(4) {
padding: 12px 14px;
border-top: 1px solid var(--line);
border-left: 0;
}
.scope-strip > div:first-child {
border-top: 0;
}
.check-section {
margin-top: 16px;
padding: 18px 15px;
border-radius: 13px;
}
.section-heading {
align-items: stretch;
flex-direction: column;
}
.section-heading h2 {
font-size: 22px;
}
.run-button {
width: 100%;
}
.scope-modes {
gap: 6px;
}
.scope-modes label {
flex: 1 1 100%;
}
.date-range-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filter-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 13px 10px;
}
.filter-grid .search-field {
grid-column: 1 / -1;
}
.form-actions {
align-items: flex-start;
flex-direction: column;
}
.document-grid {
grid-template-columns: minmax(0, 1fr);
gap: 11px;
}
.document-card {
padding: 15px;
border-radius: 11px;
}
.document-title {
font-size: 16px;
}
.document-card-abstract {
font-size: 11px;
}
.analytics-grid {
grid-template-columns: minmax(0, 1fr);
}
.analytics-panel,
.analytics-panel:nth-child(even),
.analytics-panel--monthly,
.analytics-panel--coverage {
grid-column: 1;
padding: 16px 0;
border-left: 0;
}
.analytics-chart {
height: 238px;
}
.analytics-chart--compact {
height: 225px;
}
.coverage-grid {
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}
.pagination {
justify-content: space-between;
}
.page-footer {
align-items: flex-start;
flex-direction: column;
justify-content: center;
padding: 13px 0;
}
}