body.page-template-page-grants,
body.page-template-templatespage-grants-php {
display: flex;
flex-direction: column;
min-height: 100vh;
}
body.page-template-page-grants footer,
body.page-template-templatespage-grants-php footer {
margin-top: auto !important;
}
#grants-page-outer {
max-width: 1350px;
margin: 0 auto;
padding: 24px 20px 60px;
box-sizing: border-box;
flex: 1 0 auto;
width: 100%;
}
#grants-panel {
background: #fff;
border: 1px solid #e3e1d8;
border-radius: 12px;
padding: 1.25rem;
box-sizing: border-box;
width: 100%;
}
#grants-back-to-map {
display: inline-block;
font-size: 16px;
color: #2c7fc7;
text-decoration: none;
margin-bottom: 12px;
}
#grants-back-to-map:hover {
text-decoration: underline;
}
#grants-pref-heading {
font-size: 21px;
font-weight: 600;
color: #333;
margin: 0 0 16px;
} #grants-year-section {
margin-top: 20px;
border-top: 1px solid #e3e1d8;
padding-top: 16px;
}
#grants-year-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
gap: 8px;
max-width: 600px;
}
.grants-year-card {
background: #f1efe8;
border-radius: 6px;
padding: 0.5rem 0.4rem;
text-align: center;
cursor: pointer;
transition: background 0.15s ease, transform 0.1s ease;
}
.grants-year-card:hover {
background: #e6f1fb;
}
.grants-year-card:active {
transform: scale(0.98);
}
.grants-year-card.is-selected {
background: #2c7fc7;
}
.grants-year-card.is-selected .grants-year-card-year {
color: #fff;
}
.grants-year-card.is-selected .grants-year-card-count {
color: #e6f1fb;
}
.grants-year-card-year {
font-size: 14px;
font-weight: 600;
color: #0a3760;
margin: 0 0 2px;
}
.grants-year-card-count {
font-size: 11px;
color: #888780;
margin: 0;
}
#grants-empty-message {
color: #888780;
font-size: 17px;
text-align: center;
padding: 2rem 0;
}
.grants-section-heading {
font-size: 17px;
font-weight: 600;
color: #333;
margin: 0 0 14px;
}
.grants-block-label {
font-size: 14px;
color: #888780;
margin: 0 0 8px;
} #grants-category-section {
margin-top: 20px;
border-top: 1px solid #e3e1d8;
padding-top: 16px;
}
.grants-category-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 28px 24px;
}
.grants-category-col {
min-width: 0;
width: 100%;
}
.grants-category-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 14px;
}
.grants-category-table thead th {
background-color: #f1efe8;
color: #888780;
font-size: 13px;
font-weight: 600;
text-align: left;
padding: 6px 8px;
border-bottom: 1px solid #e3e1d8;
}
.grants-category-table tbody td {
padding: 6px 8px;
border-bottom: 1px solid #efede5;
color: #333;
}
.grants-category-table tbody tr:last-child td {
border-bottom: none;
}
.grants-category-table tbody tr:hover {
background: #f8f7f3;
}
@media (max-width: 900px) {
.grants-category-grid {
grid-template-columns: 1fr;
gap: 28px;
}
} #grants-table-section {
margin-top: 20px;
border-top: 1px solid #e3e1d8;
padding-top: 16px;
}
#grants-table-heading {
font-size: 17px;
font-weight: 600;
color: #333;
margin: 0 0 12px;
}
#grants-table-scroll {
overflow-x: auto;
overflow-y: auto;
max-height: 600px;
border-top: 1px solid #e3e1d8;
margin-top: 12px;
}
#grants-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 14.5px;
}
#grants-table thead {
background-color: #f1efe8 !important;
}
#grants-table thead th {
background-color: #f1efe8 !important;
color: #888780;
font-size: 13.5px;
font-weight: 600;
text-align: left;
padding: 8px 10px;
position: sticky;
top: 0;
z-index: 2;
white-space: nowrap;
border-bottom: 1px solid #e3e1d8;
box-shadow: 0 1px 0 #e3e1d8;
}
#grants-table tbody td {
padding: 8px 10px;
border-bottom: 1px solid #efede5;
color: #333;
max-width: 260px;
white-space: normal;
word-break: break-word;
}
#grants-table tbody tr:hover {
background: #f8f7f3;
}
.grants-cell-amount {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
#grants-pagination {
display: none;
align-items: center;
justify-content: center;
gap: 16px;
margin-top: 16px;
}
#grants-pagination button {
background: #e6f1fb;
color: #2c7fc7;
border: none;
font-size: 16px;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
}
#grants-pagination button:hover:not(:disabled) {
background: #b5d4f4;
}
#grants-pagination button:disabled {
opacity: 0.4;
cursor: default;
}
#grants-page-status {
font-size: 16px;
color: #888780;
}
#grants-table-empty-message {
color: #888780;
font-size: 17px;
text-align: center;
padding: 2rem 0;
} @media (max-width: 768px) {
#grants-page-outer {
padding: 16px 12px 40px;
}
#grants-panel {
padding: 1rem;
border-radius: 10px;
}
#grants-year-list {
grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
gap: 6px;
max-width: 100%;
}
.grants-year-card {
padding: 0.4rem 0.3rem;
}
.grants-year-card-year {
font-size: 13px;
}
#grants-table {
font-size: 13.5px;
}
} #grants-source-note {
margin-top: 20px;
padding-top: 14px;
border-top: 1px solid #e3e1d8;
}
#grants-source-note p {
font-size: 12px;
color: #888780;
margin: 0;
line-height: 1.6;
}
#grants-source-note a {
color: #2c7fc7;
text-decoration: underline;
}
#grants-source-note a:hover {
color: #1a5a96;
} #grants-table-scroll {
max-height: none !important;
overflow: visible !important;
}
#grants-table thead th {
position: static !important;
}
#grants-partial-note {
margin-top: 10px;
font-size: 13px;
color: #888780;
text-align: center;
}
@media (max-width: 768px) {
#grants-table thead th:nth-child(4),
#grants-table thead th:nth-child(5),
#grants-table tbody td:nth-child(4),
#grants-table tbody td:nth-child(5) {
display: none;
}
} #grants-share-bar {
margin-bottom: 12px;
}
#grants-share-x {
display: inline-block;
background: #000;
color: #fff;
font-size: 13px;
font-weight: 600;
padding: 5px 14px;
border-radius: 20px;
text-decoration: none;
cursor: pointer;
line-height: 1.6;
}
#grants-share-x:hover {
background: #333;
color: #fff;
text-decoration: none;
}