* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: #f7f7f5;
    color: #222;
}

.site-header {
    background: #1f3d2b;
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.site-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    line-height: 0;
}

.site-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-link {
    color: #fff;
    text-decoration: none;
}

.tagline {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.search-page,
.results-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.mission {
    max-width: 560px;
    margin: 2rem auto 0;
    text-align: center;
    color: #444;
    line-height: 1.5;
}

.mission p {
    margin: 0 0 0.75rem;
}

.challenge {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    max-width: 560px;
    margin: 2rem auto 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    color: #444;
    line-height: 1.5;
}

.challenge h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #1f3d2b;
    border-bottom: 2px solid #1f3d2b;
    padding-bottom: 0.4rem;
}

.challenge p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.challenge p:last-child {
    margin-bottom: 0;
}

.challenge strong {
    display: block;
    color: #1f3d2b;
    border-left: 3px solid #e6c874;
    padding-left: 0.9rem;
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.cta-add-business,
.cta-add-worker {
    background: #fff;
    border: 1px solid #e6c874;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 480px;
    margin: 2rem auto 0;
    text-align: center;
}

.cta-add-business h2,
.cta-add-worker h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #1f3d2b;
}

.cta-add-business p,
.cta-add-worker p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.cta-add-business a,
.cta-add-worker a {
    color: #1f3d2b;
    font-weight: 600;
}

.recent-additions {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 480px;
    margin: 1.5rem auto 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.recent-additions h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #1f3d2b;
    border-bottom: 2px solid #1f3d2b;
    padding-bottom: 0.4rem;
}

.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    color: #1f3d2b;
    font-weight: 600;
    text-decoration: none;
}

.recent-list a:hover {
    text-decoration: underline;
}

.recent-location {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}

.zip-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 360px;
    margin: 2rem auto 0;
}

.zip-form.wide {
    max-width: 480px;
}

.zip-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.zip-form input,
.zip-form textarea {
    padding: 0.6rem 0.75rem;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

.zip-form textarea {
    font-size: 0.95rem;
}

.zip-form button {
    padding: 0.65rem;
    font-size: 1rem;
    background: #1f3d2b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.zip-form button:hover {
    background: #16291d;
}

.field-hint {
    margin: -0.4rem 0 0;
    color: #888;
    font-size: 0.8rem;
}

.field-divider {
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: -0.25rem 0;
}

/* occupation grouping on results.php — same visual role as .naics-group */
.naics-group,
.occ-group {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.naics-header,
.occ-header {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #1f3d2b;
    padding-bottom: 0.4rem;
    color: #1f3d2b;
}

.naics-header .count,
.occ-header .count {
    font-weight: normal;
    color: #777;
    font-size: 0.9rem;
}

.business-list,
.worker-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.business-item,
.worker-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
}

.business-item:last-child,
.worker-item:last-child {
    border-bottom: none;
}

.business-main,
.worker-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.business-name,
.worker-name {
    font-weight: 600;
}

.business-address,
.worker-headline {
    color: #555;
    font-size: 0.9rem;
}

.business-since,
.worker-location {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.business-links,
.worker-links {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-self: center;
    flex-wrap: wrap;
}

.business-links a,
.worker-links a {
    font-size: 0.85rem;
    color: #1f3d2b;
    text-decoration: none;
    border: 1px solid #1f3d2b;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
}

.business-links a:hover,
.worker-links a:hover {
    background: #1f3d2b;
    color: #fff;
}

.resume-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f3d2b;
    background: #eef3ee;
    border: 1px solid #cfe0d2;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    vertical-align: middle;
}

.no-resume-note {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 2rem 0;
    color: #666;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: #1f3d2b;
}

/* Honeypot field — invisible to real users, catches bots that
   auto-fill every form field. Never remove this. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.community-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8a6d1e;
    background: #fdf3d8;
    border: 1px solid #e6c874;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.support-block {
    background: #fff;
    border: 1px solid #e6c874;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    max-width: 560px;
    margin: 2rem auto 0;
    text-align: center;
}

.support-block h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #1f3d2b;
}

.support-block p {
    margin: 0 0 1.1rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.donate-button {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: #1f3d2b;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.donate-button:hover {
    background: #16291d;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: #888;
    font-size: 0.8rem;
}

.cross-promo {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #aaa;
}

.cross-promo a {
    color: #999;
}

.cross-promo a:hover {
    color: #1f3d2b;
}
