/**
 * Homepage - New UI Components (hp-*)
 * Fresh design system for npipublicdata.org homepage
 */

/* ===== Hero image (avoid checkerboard from PNG transparency) ===== */
.hero-img-wrap {
    background: linear-gradient(135deg, #e8eef5 0%, #dde6f0 100%);
}

/* Home hero only: bolder "Search Now" (overrides .hero-cta-btn font-weight from main / overrides) */
.hero-home .hero-cta-btn {
    font-weight: 800;
}

/* ===== Section base ===== */
.hp-section {
    padding: 56px 0;
    background: #fff;
}
.hp-section-alt {
    background: #f8f9fa;
}
.hp-section-header {
    text-align: center;
    margin-bottom: 2rem;
}
@media (min-width: 992px) {
    .hp-section-header.text-lg-start {
        text-align: left;
        margin-bottom: 1.65rem;
    }
}
.hp-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.hp-prose {
    max-width: none;
    margin-bottom: 2rem;
}
.hp-prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a4a4a;
    margin-bottom: 1rem;
}
.hp-prose p:last-child {
    margin-bottom: 0;
}
.hp-prose--centered {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
}

/* ===== Search section (matches --npi-hero-gradient from npipublicdata-overrides.css) ===== */
.hp-search {
    background: #071a2e;
    background: var(--npi-hero-gradient);
    padding: 52px 0 64px;
}
.hp-search .hp-section-header {
    margin-bottom: 1.5rem;
}
.hp-search .hp-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}
.hp-search .hp-subtitle {
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.hp-search .card {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
}

/* ===== Split cards (Type 1 / Type 2) ===== */
.hp-split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .hp-split-cards { grid-template-columns: 1fr; }
}
.hp-split-card {
    padding: 1.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-split-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26,115,232,0.08);
}
.hp-split-card-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}
.hp-split-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.hp-split-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}
.section-grey .hp-split-card,
.hp-section-alt .hp-split-card {
    border-color: #e5e7eb;
    background: #fff;
}

/* ===== Icon grid (Who Uses) ===== */
.hp-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .hp-icon-grid { grid-template-columns: 1fr; }
}
.hp-icon-item {
    padding: 1.75rem;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.hp-icon-item:hover {
    border-color: #d0d7de;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.hp-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 auto 1rem;
}
.hp-icon-box--blue { background: linear-gradient(135deg, #1a73e8, #4285f4); }
/* Legacy class name: same brand blue as --blue (not clinical green) */
.hp-icon-box--green { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.hp-icon-box--slate { background: linear-gradient(135deg, #334e68, #486581); }
.hp-icon-box--orange { background: linear-gradient(135deg, #f29900, #f5b041); }
.hp-icon-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.hp-icon-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}

/* ===== Use cases ===== */
.hp-use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
@media (max-width: 768px) {
    .hp-use-cases { grid-template-columns: 1fr; }
}
.hp-use-case {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #1a73e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hp-use-case h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}
.hp-use-case p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}
.hp-section-alt .hp-use-case {
    background: #fff;
    border-color: #e5e7eb;
    border-left-color: #1a73e8;
}

/* ===== How to use search (bento cards) ===== */
.hp-how .hp-section-header {
    margin-bottom: 1.5rem;
}
.hp-how-panel {
    background: linear-gradient(145deg, #f1f5f9 0%, #e8eef5 45%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.15rem 1.35rem;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .hp-how-panel {
        padding: 1.5rem 1.5rem 1.65rem;
    }
}
.hp-how-panel__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0 0 1rem;
    max-width: 48rem;
}
.hp-how-panel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a73e8;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}
.hp-how-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (max-width: 767.98px) {
    .hp-how-bento {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
@media (min-width: 992px) {
    .hp-how-bento {
        gap: 1.1rem;
    }
}
.hp-how-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.25rem 1.35rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    height: 100%;
}
.hp-how-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.hp-how-card__icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.hp-how-card--npi .hp-how-card__icon-wrap {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}
.hp-how-card--name .hp-how-card__icon-wrap {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
}
.hp-how-card--org .hp-how-card__icon-wrap {
    background: linear-gradient(135deg, #c2410c, #fb923c);
}
.hp-how-card--adv .hp-how-card__icon-wrap {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
}
.hp-how-card__num {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
    line-height: 1.2;
    padding-top: 0.2rem;
}
.hp-how-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.hp-how-card__hint {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a73e8;
    margin: 0 0 0.55rem;
    line-height: 1.35;
}
.hp-how-card--name .hp-how-card__hint {
    color: #0f766e;
}
.hp-how-card--org .hp-how-card__hint {
    color: #c2410c;
}
.hp-how-card--adv .hp-how-card__hint {
    color: #6d28d9;
}
.hp-how-card__text {
    font-size: 0.9rem;
    line-height: 1.58;
    color: #475569;
    margin: 0;
}
.hp-how-card__text strong {
    color: #334155;
    font-weight: 600;
}

/* ===== Accordion FAQ ===== */
.hp-accordion {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    padding: 0 1.25rem;
}
.hp-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}
.hp-accordion-item:last-child {
    border-bottom: none;
}
.hp-accordion-item:first-child {
    border-top: none;
}
.hp-accordion-item summary {
    padding: 1.25rem 0;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hp-accordion-item summary::-webkit-details-marker {
    display: none;
}
.hp-accordion-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: #1a73e8;
    font-weight: 400;
}
.hp-accordion-item[open] summary::after {
    content: '−';
}
.hp-accordion-item p {
    padding: 0 0 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5a5a5a;
    margin: 0;
}
.hp-accordion-item a {
    color: #1a73e8;
    text-decoration: underline;
}

/* ===== API / Downloads resource cards ===== */
.hp-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.25rem;
}
@media (max-width: 767px) {
    .hp-resource-grid {
        grid-template-columns: 1fr;
    }
}
.hp-resource-card {
    display: block;
    padding: 1.65rem 1.75rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.hp-resource-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
    color: inherit;
}
.hp-section-alt .hp-resource-card {
    background: #fff;
}
.hp-resource-card__icon {
    display: inline-flex;
    color: #1a73e8;
    margin-bottom: 0.85rem;
}
.hp-resource-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}
.hp-resource-card__text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0 0 1rem;
}
.hp-resource-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a73e8;
}
.hp-resource-card:hover .hp-resource-card__cta {
    color: #1557b0;
}
.hp-resource-card:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}
.hp-resource-card__chevron {
    opacity: 0.85;
    vertical-align: -0.125em;
}

/* ===== Knowledge base spotlight ===== */
.hp-kb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0.25rem;
}
@media (min-width: 768px) {
    .hp-kb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .hp-kb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.hp-kb-card {
    padding: 1.5rem 1.6rem;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e8eaed;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-kb-card:hover {
    border-color: #c5d7f5;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.06);
}
.hp-kb-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}
.hp-kb-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}
.hp-kb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1a1a1a;
    text-decoration: none;
}
.hp-kb-card__link:hover {
    color: #1a73e8;
}
.hp-kb-card__link:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
    border-radius: 4px;
}
.hp-kb-card__link-icon-wrap {
    display: inline-flex;
    align-items: center;
}
.hp-kb-card__link-icon {
    flex-shrink: 0;
    color: #1a73e8;
    transition: transform 0.2s ease;
}
.hp-kb-card:hover .hp-kb-card__link-icon-wrap .hp-kb-card__link-icon {
    transform: translateX(4px);
}
.hp-kb-card__link:hover .hp-kb-card__link-icon-wrap .hp-kb-card__link-icon {
    transform: translateX(4px);
}
.hp-kb-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}

/* ===== NPI search tool (card) ===== */
.npi-search-card .card-header {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.npi-search-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem 0.35rem;
    scrollbar-width: thin;
}
.npi-search-tabs-scroll .nav {
    width: max-content;
}
@media (min-width: 768px) {
    .npi-search-tabs-scroll {
        overflow-x: visible;
        margin: 0;
        padding: 0 0 0.35rem;
    }
    .npi-search-tabs-scroll .nav {
        width: auto;
    }
}
.npi-search-card .nav-pills .nav-link {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a4480;
    background-color: #eef2f7;
    border: 1px solid transparent;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.npi-search-card .nav-pills .nav-link:hover:not(.active) {
    background-color: #e2e8f0;
    color: #153a6e;
}
.npi-search-card .nav-pills .nav-link:focus-visible {
    outline: 2px solid #1a4480;
    outline-offset: 2px;
}
.npi-search-card .nav-pills .nav-link.active {
    background-color: #1a4480;
    color: #fff;
    border-color: #1a4480;
}
@media (min-width: 768px) {
    .npi-search-card .nav-pills .nav-link {
        font-size: 0.95rem;
        white-space: normal;
    }
}
.npi-search-card label.label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.npi-search-card .npi-input-numeric {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.06em;
}
.npi-search-card button.npi-search-btn {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800 !important;
}
.npi-search-card .npi-search-btn {
    width: 100%;
    max-width: 100%;
}
@media (min-width: 768px) {
    .npi-search-card .npi-search-btn {
        width: 60%;
        max-width: 20rem;
    }
}
/* Search footer: centered button, capped width */
.npi-search-card .npi-search-footer-actions .npi-search-btn {
    width: 100%;
    max-width: 20rem;
}
@media (min-width: 768px) {
    .npi-search-card .npi-search-footer-actions .npi-search-btn {
        width: 60%;
        max-width: 20rem;
    }
}
.npi-display-msg:empty {
    display: none;
}
.npi-display-msg:not(:empty) {
    margin-bottom: 1rem !important;
}
.npi-advanced-rules {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    background: #f8f9fa;
    color: #5a5a5a !important;
}
.npi-advanced-rules__summary {
    cursor: pointer;
    font-weight: 600;
    color: #495057;
}
.npi-advanced-rules__summary:hover {
    color: #1a4480;
}
.npi-advanced-rules__list {
    line-height: 1.5;
}
.npi-advanced-rules__list li + li {
    margin-top: 0.35rem;
}
/* NPI lookup card: search button footer strip */
.npi-search-card .npi-result-footer {
    border-top: 1px solid rgba(25, 135, 84, 0.35) !important;
    box-shadow: inset 0 3px 0 0 rgba(25, 135, 84, 0.45);
}
.npi-search-card .npi-result-footer-inner {
    padding: 0.75rem 0.25rem;
}
/* NPI tool notice modal: base styles live in main.css (.npi-notice-modal-body, #npiSearchNoticeModalDesc) */
