/* InvestorMap hub-and-spoke content styles */

.im-cta-button,
a.im-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font);
    color: #fff;
    background-color: #49aec8;
    border: 3px solid #49aec8;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 100ms linear, color 100ms linear;
}

.im-cta-button:hover,
a.im-cta-button:hover {
    background-color: #fff;
    color: #49aec8;
    text-decoration: none;
}

.im-last-reviewed {
    font-size: 0.85rem;
    color: #636363;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.im-list {
    margin: 1rem 0 1.5rem 1.25rem;
    max-width: 66ch;
}

.im-list li {
    list-style: disc;
    margin-bottom: 0.6rem;
    line-height: 1.55;
    color: var(--text);
}

.im-list li::marker {
    color: var(--brand);
}

.im-numbered {
    margin: 1rem 0 1.5rem 1.25rem;
    max-width: 66ch;
}

.im-numbered li {
    list-style: decimal;
    margin-bottom: 0.75rem;
    line-height: 1.55;
    color: var(--text);
}

.im-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    max-width: 66ch;
}

.im-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.im-table th,
.im-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.im-table th {
    font-weight: 600;
    color: var(--brand);
    background: #f3f7fb;
}

.im-table td {
    color: var(--text);
}

.im-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 2rem;
    max-width: 66ch;
}

@media screen and (max-width: 700px) {
    .im-explore-grid {
        grid-template-columns: 1fr;
    }
}

.im-explore-card {
    display: block;
    padding: 1.1rem 1.25rem;
    background: #f3f7fb;
    border-left: 4px solid var(--brand);
    text-decoration: none;
    color: inherit;
    transition: background-color 120ms linear;
}

.im-explore-card:hover {
    background: #e8f1f9;
    text-decoration: none;
}

.im-explore-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.im-explore-card p {
    margin: 0;
    font-size: 0.95rem;
    max-width: none;
}

.im-explore-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-light);
    margin: 1.5rem 0 0.75rem;
}

.im-faq {
    margin: 1.5rem 0 2rem;
    max-width: 66ch;
}

.im-faq details {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.85rem 0;
}

.im-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand);
    list-style: none;
    line-height: 1.4;
}

.im-faq summary::-webkit-details-marker {
    display: none;
}

.im-faq summary::before {
    content: '+';
    display: inline-block;
    width: 1.25rem;
    color: var(--brand-light);
}

.im-faq details[open] summary::before {
    content: '–';
}

.im-faq details p {
    margin: 0.75rem 0 0.25rem;
    font-size: 1rem;
}

.im-cta-strip {
    margin-top: 1rem;
}

.im-cta-strip h2 {
    margin-bottom: 0.5rem;
}

.im-disclaimer {
    font-size: 0.9rem;
    color: #636363;
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    margin: 1.5rem 0;
    max-width: 66ch;
}

.im-inline-form {
    margin-top: 1.5rem;
    max-width: 600px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

.im-breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #636363;
}

.im-breadcrumbs a {
    color: var(--brand);
    text-decoration: none;
}

.im-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Subnav: allow wrapping for hub-and-spoke links */
.compare-header-nav {
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    padding: 0.5rem 0;
}

.compare-header-nav a,
.compare-header-nav a:visited,
.compare-header-nav a:link {
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
}

#contact-button a.im-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 2.2rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    border-radius: 6px;
    background-color: #49aec8;
    color: white;
    border: 3px solid #49aec8;
    text-decoration: none;
    transition: background-color 100ms linear, color 100ms linear;
}

#contact-button a.im-header-cta:hover {
    background-color: white;
    color: #49aec8;
    text-decoration: none;
}

@media screen and (max-width: 1100px) {
    #compare-header {
        grid-template-columns: 100px 1fr 160px;
    }

    #contact-button a.im-header-cta {
        font-size: 0.75rem;
        min-width: auto;
        padding: 0.35rem 0.5rem;
    }
}
