/* ==========================================================================
   /esa-laws-by-state  — index of all 50 states + featured law guides
   Brand tokens: gradient #0f1f7a -> #0056b3, #333 text, #6c757d muted,
   #e9ecef borders, 700 max heading weight, 15px cards / 20px panels.
   ========================================================================== */

.nsp-laws-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
}

.lw-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lw-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #0f1f7a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lw-eyebrow-light {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* federal baseline */
.lw-base {
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.lw-base:hover {
    border-color: #0f1f7a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.lw-base i {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 1.6rem;
    color: #0f1f7a;
}

/* accordion tag */
.lw-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

/* featured guides */
.lw-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
}

.lw-feat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lw-feat-card:hover {
    color: #333;
    border-color: #0f1f7a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.lw-feat-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 1rem 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.lw-feat-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.lw-feat-abbr {
    position: absolute;
    top: -18px;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(15, 31, 122, 0.3);
}

.lw-feat-law {
    display: block;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    color: #0f1f7a;
    font-size: 0.78rem;
    font-weight: 600;
}

.lw-feat-go {
    margin-top: auto;
    color: #0f1f7a;
    font-size: 0.85rem;
    font-weight: 600;
}

/* state search */
.lw-search-wrap {
    position: relative;
    max-width: 460px;
    margin-inline: auto;
}

.lw-search-wrap i {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.lw-search-wrap input {
    width: 100%;
    padding: 0.8rem 1.1rem 0.8rem 2.9rem;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
}

.lw-search-wrap input:focus {
    outline: none;
    border-color: #0f1f7a;
    box-shadow: 0 0 0 4px rgba(15, 31, 122, 0.08);
}

/* the 50 state cards — richer than the network cards */
.lw-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    line-height: 1;
    cursor: pointer;
}

.lw-search-clear:hover {
    background: #dee2e6;
    color: #333;
}

.lw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1.25rem;
}

.lw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(15, 31, 122, 0.05);
    transition: all 0.3s ease;
}

.lw-card[hidden] {
    display: none !important;
}

.lw-card:hover {
    border-color: #0f1f7a;
    box-shadow: 0 14px 34px rgba(15, 31, 122, 0.14);
    transform: translateY(-5px);
}

.lw-card.has-guide {
    border-color: #c9d7ff;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.lw-ribbon {
    position: absolute;
    top: -11px;
    left: 1.5rem;
    padding: 4px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(15, 31, 122, 0.3);
}

.lw-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.lw-card-sub {
    color: #6c757d;
    font-size: 0.82rem;
}

.lw-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(15, 31, 122, 0.08);
    color: #0f1f7a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lw-card.has-guide .lw-pill {
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
}

.lw-note {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #eef3ff;
    color: #33436b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.lw-note i {
    margin-top: 0.15rem;
    color: #0f1f7a;
}

.lw-points {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.lw-points li {
    display: flex;
    gap: 0.55rem;
    padding: 0.3rem 0;
    color: #333;
    font-size: 0.85rem;
    line-height: 1.55;
}

.lw-points i {
    margin-top: 0.28rem;
    font-size: 0.72rem;
    color: #28a745;
}

.lw-cities {
    margin-bottom: 1.25rem;
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.55;
}

.lw-cities strong {
    color: #333;
}

/* constants */
.lw-const {
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
}

.lw-const-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lw-const-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.94rem;
}

.lw-const-list li:last-child {
    border-bottom: 0;
}

.lw-const-list i {
    margin-top: 0.28rem;
    color: #4ade80;
}

/* moving */
.lw-move {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
}

.lw-move p {
    line-height: 1.8;
}

/* cta */
.lw-cta {
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f1f7a 0%, #0056b3 100%);
    color: #fff;
}

@media (max-width: 575.98px) {
    .nsp-laws-hero {
        padding: 2.25rem 1.25rem;
    }
    .lw-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}


/* CTA panel: matches the /blog and /pricing treatment */
.lw-cta {
    background: rgb(15 31 122) !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.lw-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/static/images/pet-bg-pattern.png);
    background-repeat: repeat;
    background-size: 475px;
    filter: invert(1);
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}
.lw-cta > * { position: relative; z-index: 1; }
