/* Public carrier directory — shared styles for the state + city geo pages.
   The hub + carrier detail pages keep their own scoped CSS (higher specificity);
   these global rules style the state/city pages, which carry no scoped sheet. */

.dir-geo {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.dir-geo-head {
    margin-bottom: 1.5rem;
}

.dir-geo-lede {
    max-width: 52rem;
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

/* Aggregate "answer-first" stat band */
.dir-stat-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-standard);
    border-radius: 0.75rem;
    background: var(--bg-surface);
}

.dir-stat-band div {
    text-align: center;
}

.dir-stat-band dt {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.dir-stat-band dd {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* State page — city grid */
.dir-city-grid {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.4rem 1.25rem;
}

.dir-city-grid li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.dir-city-grid a {
    color: var(--accent);
    text-decoration: none;
}

.dir-city-grid a:hover { text-decoration: underline; }

.dir-city-count {
    color: var(--text-quaternary);
    font-variant-numeric: tabular-nums;
}

/* City page — carrier rows */
.dir-carrier-rows {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.dir-carrier-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.dir-carrier-row-name {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.dir-carrier-row-name:hover { text-decoration: underline; }

.dir-carrier-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.dir-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.dir-pagination a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.dir-page-of {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.dir-notfound {
    max-width: 48rem;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

/* Shared bits (also defined in hub/carrier scoped CSS at higher specificity). */
.dir-geo .dir-breadcrumb,
.dir-notfound + * .dir-breadcrumb,
.dir-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--text-tertiary);
}

.dir-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.dir-breadcrumb a:hover { text-decoration: underline; }

.dir-geo .muted,
.dir-notfound .muted { color: var(--text-tertiary); }

.dir-cta {
    margin-top: 2.5rem;
    border: 1px solid var(--border-standard);
    border-radius: 0.75rem;
    padding: 1.75rem;
    background: var(--bg-surface);
}

.dir-cta-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Carrier detail tabs — progressively enhanced by directory-tabs.js. The tab
   strip + .dir-tabpanel/.is-active classes are JS-injected (unscoped), so these
   live in the global sheet. Before JS, sections stack and all are visible. */
.dir-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-standard);
}

.dir-tab {
    border: 0;
    background: none;
    padding: 0.6rem 1rem;
    font: inherit;
    font-weight: var(--fw-med, 510);
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.dir-tab:hover { color: var(--text-primary); }

.dir-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.dir-tabpanel[hidden] { display: none; }

/* Lead-capture meter modal (injected client-side by directory-meter.js). */
.dir-meter-open { overflow: hidden; }

.dir-meter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.dir-meter-modal {
    position: relative;
    max-width: 30rem;
    width: 100%;
    background: var(--bg-panel);
    border-radius: 0.9rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.dir-meter-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-quaternary);
    cursor: pointer;
}

.dir-meter-title {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}

.dir-meter-body {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.dir-meter-cta {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.dir-meter-sub {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.dir-meter-sub a { color: var(--accent); }
