.homepage-section > h2 {
    margin-top: 0;
}

.homepage-hero {
    display: grid;
    gap: 12px;
    text-align: left;
}

.homepage-hero h1,
.homepage-hero .lead {
    margin: 0;
}

.homepage-search-group {
    display: grid;
    gap: 12px;
    width: min(100%, 820px);
    margin-inline: auto;
}

.homepage-search-form {
    margin-top: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.homepage-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.homepage-feature-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--ui-border-soft);
    border-radius: var(--radius-md);
    background: var(--ui-surface-muted);
}

.homepage-feature-card h3,
.homepage-feature-card p {
    margin: 0;
}

.homepage-feature-card h3 a {
    overflow-wrap: anywhere;
}

.homepage-feature-card p {
    flex: 1;
    overflow-wrap: anywhere;
}

.homepage-feature-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.homepage-recent-filings__table-wrap {
    margin-top: 12px;
}

.homepage-recent-filings__table {
    min-width: 760px;
    table-layout: fixed;
}

.homepage-recent-filings__table th:nth-child(1),
.homepage-recent-filings__table td:nth-child(1) {
    width: 35%;
}

.homepage-recent-filings__table th:nth-child(2),
.homepage-recent-filings__table td:nth-child(2) {
    width: 20%;
}

.homepage-recent-filings__table th:nth-child(3),
.homepage-recent-filings__table td:nth-child(3) {
    width: 20%;
}

.homepage-recent-filings__table th:nth-child(4),
.homepage-recent-filings__table td:nth-child(4) {
    width: 25%;
}

.homepage-recent-filings__table th:first-child,
.homepage-recent-filings__table td:first-child {
    position: sticky;
    left: 0;
    min-width: 220px;
    width: 35%;
    white-space: nowrap;
    background: var(--ui-table-row-bg);
    background-clip: padding-box;
    box-shadow: inset -1px 0 0 var(--ui-border-subtle);
}

.homepage-recent-filings__table thead th:first-child {
    z-index: 4;
    background: var(--ui-table-head-bg);
}

.homepage-recent-filings__table tbody td:first-child {
    z-index: 3;
}

.homepage-recent-filings__table tbody tr:hover td:first-child {
    background: var(--ui-table-row-hover-bg);
}

.homepage-recent-filings__directory-link {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .homepage-search-form {
        grid-template-columns: 1fr;
    }

    .homepage-recent-filings__table {
        table-layout: fixed;
    }

    .homepage-recent-filings__table th:nth-child(1),
    .homepage-recent-filings__table td:nth-child(1) {
        width: 190px;
    }

    .homepage-recent-filings__table th:nth-child(2),
    .homepage-recent-filings__table td:nth-child(2) {
        width: 160px;
    }

    .homepage-recent-filings__table th:nth-child(3),
    .homepage-recent-filings__table td:nth-child(3) {
        width: 160px;
    }

    .homepage-recent-filings__table th:nth-child(4),
    .homepage-recent-filings__table td:nth-child(4) {
        width: 220px;
    }

    .homepage-recent-filings__table th:first-child,
    .homepage-recent-filings__table td:first-child {
        min-width: 190px;
        width: 190px;
        max-width: 190px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1100px) {
    .homepage-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .homepage-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
