/* Claim your listing: /claim-your-listing (Components/Pages/Directory/ClaimYourListing.razor).
   Every rule is scoped to .cl-page and uses the brand tokens from default.css. */

.cl-page {
    --cl-green: var(--serden-evergreen);
    --cl-green-hover: var(--serden-evergreen-hover);
    --cl-green-deep: var(--serden-evergreen-deep);
    --cl-soft: var(--serden-sage);
    --cl-ivory: var(--serden-ivory);
    --cl-ink: #10231B;
    --cl-muted: var(--serden-text-secondary);
    --cl-line: var(--serden-stone);
    --cl-radius: 16px;
    --cl-shadow: 0 2px 4px rgba(16, 35, 27, .04), 0 12px 32px rgba(16, 35, 27, .08);
    color: var(--cl-ink);
    overflow-x: clip;
}

.cl-page :is(h1, h2, h3) {
    margin: 0;
    color: var(--cl-ink);
    letter-spacing: -.015em;
}

.cl-page h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.12;
}

.cl-page h2 {
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.22;
}

.cl-page h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.cl-page p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--cl-muted);
}

.cl-page a:not(.cl-btn) {
    color: var(--cl-green);
    text-underline-offset: 3px;
}

.cl-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cl-wrap--narrow {
    max-width: 860px;
}

.cl-kicker {
    margin: 0 0 10px !important;
    font-size: 12.5px !important;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cl-green) !important;
}

/* ---------------------------------------------------------------- hero and search */

/* The site header is fixed (35px down, 60px tall), so the hero starts below it, as on the directory pages. */
.cl-hero {
    padding: 128px 0 48px;
    background: var(--cl-ivory);
    border-bottom: 1px solid var(--cl-line);
}

.cl-lead {
    margin-top: 14px !important;
    font-size: 18px !important;
}

.cl-search {
    margin-top: 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
}

.cl-search__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cl-ink);
}

.cl-search__row {
    display: flex;
    gap: 10px;
}

.cl-search__row input {
    /* "Search for your business" links here; stop below the fixed header. */
    scroll-margin-top: 140px;
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    color: var(--cl-ink);
    background: #fff;
    border: 1px solid #b9c2bc;
    border-radius: 10px;
}

.cl-search__row input:focus {
    outline: none;
    border-color: var(--cl-green);
    box-shadow: 0 0 0 3px rgba(var(--serden-evergreen-rgb), .18);
}

.cl-search__hint {
    margin-top: 10px !important;
    font-size: 14px !important;
}

/* ---------------------------------------------------------------- buttons */

.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cl-btn--sm {
    min-height: 42px;
    padding: 0 16px;
    font-size: 15px;
}

.cl-btn--primary {
    color: #fff;
    background: var(--cl-green);
    border-color: var(--cl-green);
}

.cl-btn--primary:hover,
.cl-btn--primary:focus-visible {
    color: #fff;
    background: var(--cl-green-hover);
    border-color: var(--cl-green-hover);
}

.cl-btn--outline {
    color: var(--cl-green);
    background: #fff;
    border-color: var(--cl-green);
}

.cl-btn--outline:hover,
.cl-btn--outline:focus-visible {
    color: #fff;
    background: var(--cl-green);
}

.cl-btn:focus-visible,
.cl-textlink:focus-visible {
    outline: 3px solid rgba(var(--serden-evergreen-rgb), .35);
    outline-offset: 2px;
}

.cl-textlink {
    font-size: 14px;
    font-weight: 600;
}

.cl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cl-actions--center {
    justify-content: center;
    margin-top: 32px;
}

/* ---------------------------------------------------------------- results */

.cl-results {
    padding: 40px 0 8px;
}

.cl-note {
    margin-top: 10px !important;
}

.cl-note--info {
    padding: 12px 16px;
    background: var(--cl-soft);
    border-radius: 10px;
    color: var(--cl-ink) !important;
}

.cl-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.cl-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius);
}

.cl-item__main {
    min-width: 0;
}

.cl-item__name {
    font-size: 19px !important;
    overflow-wrap: anywhere;
}

.cl-item__name a {
    color: var(--cl-ink) !important;
    text-decoration: none;
}

.cl-item__name a:hover {
    text-decoration: underline;
}

.cl-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px !important;
    font-size: 15px !important;
}

.cl-item__meta i {
    margin-right: 6px;
    color: var(--cl-green);
}

.cl-item__help {
    margin-top: 8px !important;
    font-size: 14px !important;
}

.cl-item__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    /* A fixed column, so every result's buttons line up whether or not it can be claimed. */
    flex: 0 0 236px;
    text-align: center;
}

.cl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
}

.cl-badge--open {
    color: var(--cl-green);
    background: var(--cl-soft);
}

.cl-badge--claimed {
    color: #5b4a12;
    background: #f6edcc;
}

.cl-notlisted {
    margin-top: 28px;
    padding: 20px;
    background: var(--cl-ivory);
    border: 1px dashed #b9c2bc;
    border-radius: var(--cl-radius);
}

.cl-notlisted .cl-actions {
    margin-top: 12px;
}

/* ---------------------------------------------------------------- benefits and steps */

.cl-benefits {
    padding: 64px 0;
}

.cl-grid {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cl-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
}

.cl-card h3 {
    margin-top: 14px;
}

.cl-card p {
    margin-top: 8px !important;
    font-size: 15px !important;
}

.cl-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 19px;
    color: #fff;
    background: var(--cl-green);
    border-radius: 12px;
}

.cl-steps {
    padding: 56px 0 72px;
    background: var(--cl-soft);
}

.cl-steps__list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: cl-step;
    display: grid;
    gap: 14px;
}

.cl-steps__list li {
    position: relative;
    padding: 18px 20px 18px 68px;
    background: #fff;
    border-radius: var(--cl-radius);
    counter-increment: cl-step;
}

.cl-steps__list li::before {
    content: counter(cl-step);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--cl-green);
    border-radius: 50%;
}

.cl-steps__list p {
    margin-top: 4px !important;
    font-size: 15px !important;
}

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 991.98px) {
    .cl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cl-wrap {
        padding: 0 16px;
    }

    .cl-hero {
        padding: 120px 0 32px;
    }

    .cl-search {
        padding: 16px;
    }

    .cl-search__row {
        flex-direction: column;
    }

    .cl-search__row .cl-btn,
    .cl-actions .cl-btn {
        width: 100%;
    }

    .cl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-item {
        flex-direction: column;
        padding: 16px;
    }

    .cl-item__actions {
        flex: none;
        width: 100%;
    }

    .cl-benefits {
        padding: 44px 0;
    }
}
