/*
 * TPDG Tools Hub — Portal CSS
 *
 * Loaded on the client portal page where the Tools tab renders.
 */

.tpdg-hub-portal-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--tpdg-stone, #5C5A55);
}

.tpdg-hub-portal-empty h3 {
    font-family: Georgia, serif;
    color: var(--tpdg-navy, #0F2A44);
    font-size: 22px;
    margin: 0 0 8px;
}

.tpdg-hub-portal-empty p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.tpdg-hub-portal-section {
    margin-bottom: 40px;
}

.tpdg-hub-portal-section__title {
    font-family: Georgia, serif;
    color: var(--tpdg-navy, #0F2A44);
    font-size: 20px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tpdg-rule, #DDD6C5);
}

.tpdg-hub-portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tpdg-hub-portal-card {
    background: #fff;
    border: 1px solid var(--tpdg-rule, #DDD6C5);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpdg-hub-portal-card--pending {
    border-left: 3px solid var(--tpdg-gold, #B08D3F);
}

.tpdg-hub-portal-card--completed {
    border-left: 3px solid var(--tpdg-navy, #0F2A44);
}

.tpdg-hub-portal-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.tpdg-hub-portal-card__title {
    font-family: Georgia, serif;
    font-weight: 700;
    color: var(--tpdg-navy, #0F2A44);
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.tpdg-hub-portal-card__pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--tpdg-cream, #F0EBDC);
    color: var(--tpdg-navy, #0F2A44);
    white-space: nowrap;
}

.tpdg-hub-portal-card__date {
    font-size: 13px;
    color: var(--tpdg-stone, #5C5A55);
    white-space: nowrap;
}

.tpdg-hub-portal-card__desc {
    font-size: 14px;
    color: var(--tpdg-stone, #5C5A55);
    margin: 0;
    line-height: 1.5;
}

.tpdg-hub-portal-card__note {
    background: var(--tpdg-cream, #F0EBDC);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--tpdg-navy, #0F2A44);
    font-style: italic;
    line-height: 1.5;
}

.tpdg-hub-portal-card__note strong {
    display: block;
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tpdg-gold, #B08D3F);
    margin-bottom: 4px;
}

.tpdg-hub-portal-card__summary {
    font-size: 14px;
    color: var(--tpdg-stone, #5C5A55);
    line-height: 1.5;
}

.tpdg-hub-portal-card__cta {
    display: inline-block;
    background: var(--tpdg-navy, #0F2A44);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    transition: background 0.1s;
}

.tpdg-hub-portal-card__cta:hover {
    background: #1a3d5e;
    color: #fff;
}

.tpdg-hub-portal-card__cta--secondary {
    background: transparent;
    color: var(--tpdg-navy, #0F2A44);
    border: 1px solid var(--tpdg-navy, #0F2A44);
}

.tpdg-hub-portal-card__cta--secondary:hover {
    background: var(--tpdg-navy, #0F2A44);
    color: #fff;
}

/*
 * Defensive: belt-and-braces fix for the drop-cap issue that's been haunting
 * us. No paragraph or other text node anywhere inside the Tools tab gets
 * first-letter styling, regardless of what other CSS (theme or cache) tries
 * to add. This rule wins on specificity + !important + selector breadth.
 */
.tpdg-hub-portal-card *::first-letter,
.tpdg-hub-portal-section *::first-letter,
.tpdg-hub-portal-empty *::first-letter {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    float: none !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-transform: inherit !important;
}
