/* Shared hub pages — Blog index & Financial Tools index */

.hub-page {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37, 99, 235, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 0%, rgba(14, 165, 233, 0.06), transparent 45%),
        #f8fafc;
    min-height: 60vh;
}

.hub-hero {
    position: relative;
    padding: 3.5rem 1rem 2.75rem;
    overflow: hidden;
}

.hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, transparent 100%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 28px,
            rgba(37, 99, 235, 0.03) 28px,
            rgba(37, 99, 235, 0.03) 29px
        );
    pointer-events: none;
}

.hub-hero__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hub-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.hub-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.hub-breadcrumb a:hover { text-decoration: underline; }

.hub-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.hub-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hub-hero__lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 auto;
    max-width: 38rem;
}

.hub-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.hub-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hub-stats i { color: #2563eb; }

.hub-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.hub-section__head {
    margin-bottom: 1.75rem;
}

.hub-section__head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
}

.hub-section__head p {
    margin: 0;
    color: #64748b;
    font-size: 0.975rem;
    line-height: 1.6;
    max-width: 40rem;
}

/* Topic filters */
.hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    justify-content: center;
}

.hub-filter {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hub-filter:hover {
    border-color: #93c5fd;
    color: #1e40af;
}

.hub-filter.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

/* Blog article cards */
.hub-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.hub-article {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.hub-article:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
}

.hub-article__accent {
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
}

.hub-article__accent.green { background: linear-gradient(90deg, #065f46, #10b981); }
.hub-article__accent.teal { background: linear-gradient(90deg, #115e59, #14b8a6); }
.hub-article__accent.amber { background: linear-gradient(90deg, #92400e, #f59e0b); }
.hub-article__accent.rose { background: linear-gradient(90deg, #9f1239, #f43f5e); }
.hub-article__accent.indigo { background: linear-gradient(90deg, #312e81, #6366f1); }
.hub-article__accent.sky { background: linear-gradient(90deg, #0c4a6e, #0284c7); }
.hub-article__accent.red { background: linear-gradient(90deg, #7f1d1d, #dc2626); }
.hub-article__accent.slate { background: linear-gradient(90deg, #334155, #64748b); }
.hub-article__accent.cyan { background: linear-gradient(90deg, #155e75, #06b6d4); }
.hub-article__accent.purple { background: linear-gradient(90deg, #4c1d95, #7c3aed); }

.hub-article__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hub-article__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.hub-article__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
}

.hub-article__meta {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.hub-article h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
}

.hub-article p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.hub-article__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

.hub-article:hover .hub-article__cta { color: #1e3a8a; }

.hub-article.is-hidden { display: none; }

/* Tool cards */
.hub-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.hub-tool {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.hub-tool:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.07);
}

.hub-tool__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.hub-tool h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.hub-tool p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.hub-related {
    margin-top: 2.5rem;
    padding: 1.5rem 1.5rem 1.6rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.hub-related h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.hub-related > p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.hub-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.hub-related a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #1e40af;
    font-weight: 500;
    font-size: 0.925rem;
    text-decoration: none;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.hub-related a:last-child { border-bottom: none; }
.hub-related a:hover { color: #2563eb; }
.hub-related a i { color: #94a3b8; font-size: 0.75rem; }

.hub-extra-tools {
    margin-top: 1.5rem;
}

.hub-extra-tools .editorial-card__body {
    padding-top: 0.75rem;
}

.hub-extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}

.hub-extra-grid a {
    color: #334155;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.hub-extra-grid a:hover {
    color: #2563eb;
}

.hub-footer-note {
    max-width: 720px;
    margin: 2.5rem auto 0;
}

/* Info / About / Contact cards */
.info-stack {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 3rem;
}

.info-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.info-card--accent {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-color: #dbeafe;
}

.info-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.info-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.info-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.975rem;
    margin: 0 0 0.85rem;
}

.info-card p:last-child { margin-bottom: 0; }

.info-card ul {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.info-card ul li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.35rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    border-bottom: 1px solid #f1f5f9;
}

.info-card ul li:last-child { border-bottom: none; }

.info-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #2563eb;
}

.info-card a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.info-card a:hover { text-decoration: underline; }

.info-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.info-feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.9rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
}

.info-feature i {
    color: #2563eb;
    margin-top: 0.15rem;
}

.info-feature strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.info-feature span {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}

.process-list { margin: 0; padding: 0; list-style: none; }

.process-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.process-item:last-child { border-bottom: none; padding-bottom: 0; }
.process-item:first-child { padding-top: 0.25rem; }

.process-num {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #1e3a8a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-item h3 {
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.process-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
}

.deny-list li::before { background: #ef4444 !important; }

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 720px) {
    .split-grid { grid-template-columns: 1fr; }
}

/* Contact form */
.contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form .field { margin-bottom: 1rem; }

.contact-form .btn-submit {
    width: 100%;
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: background 0.15s;
}

.contact-form .btn-submit:hover { background: #2563eb; }

.contact-meta-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-meta-row:last-child { border-bottom: none; }

.contact-meta-row i {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.can-help h3 { color: #047857; }
.cannot-help h3 { color: #b91c1c; }

/* Legal / policy document */
.legal-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.legal-doc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.legal-doc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.65rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    letter-spacing: -0.01em;
}

.legal-doc h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-doc h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 1.15rem 0 0.5rem;
}

.legal-doc p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.975rem;
    margin: 0 0 0.85rem;
}

.legal-doc ul {
    margin: 0.35rem 0 1rem;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-doc li { margin-bottom: 0.35rem; }

.legal-doc a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.legal-doc a:hover { text-decoration: underline; }

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.legal-toc a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    text-decoration: none;
}

.legal-toc a:hover {
    color: #1e40af;
    border-color: #bfdbfe;
    background: #eff6ff;
}

@media (max-width: 640px) {
    .hub-hero { padding: 2.5rem 1rem 2rem; }
    .hub-article-grid { grid-template-columns: 1fr; }
    .hub-filters { justify-content: flex-start; }
    .info-card { padding: 1.25rem; }
    .legal-doc { padding: 1.25rem 1.15rem 1.5rem; }
}
