/*
 * TPDG Coaching — Client portal styles
 * Editorial design matching the TPDG website.
 * Fraunces / Georgia for display, Manrope / Calibri for body.
 */

.tpdg-portal {
    background: #FBF7EE;
    min-height: 70vh;
    padding: 40px 20px;
    font-family: 'Manrope', 'Calibri', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1A1614;
}

.tpdg-portal__container {
    max-width: 720px;
    margin: 0 auto;
}

.tpdg-portal__header {
    border-bottom: 1px solid #E5DDC9;
    padding-bottom: 30px;
    margin-bottom: 40px;
    position: relative;
}

.tpdg-portal__greeting {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 12px 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tpdg-portal__sub {
    color: #5C5A55;
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

.tpdg-portal__logout {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 13px;
}

.tpdg-portal__logout a {
    color: #5C5A55;
    text-decoration: none;
}

.tpdg-portal__logout a:hover {
    color: #B08D3F;
}

.tpdg-portal__notice {
    background: #FFFFFF;
    border-left: 4px solid #B08D3F;
    padding: 30px 36px;
    margin-bottom: 24px;
    border-radius: 2px;
}

.tpdg-portal__notice h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 16px 0;
}

.tpdg-portal__notice p {
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.tpdg-portal__notice ul {
    margin: 16px 0;
    padding-left: 20px;
}

.tpdg-portal__notice ul li {
    line-height: 1.6;
    margin-bottom: 8px;
}

.tpdg-portal__notice a {
    color: #B08D3F;
    text-decoration: none;
    border-bottom: 1px solid #E5DDC9;
}

.tpdg-portal__notice a:hover {
    border-bottom-color: #B08D3F;
}

.tpdg-portal__btn {
    display: inline-block;
    background: #0F2A44;
    color: #FBF7EE !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none !important;
    transition: background 150ms ease;
}

.tpdg-portal__btn:hover {
    background: #1A3F5F;
}

/* Mobile */
@media (max-width: 600px) {
    .tpdg-portal {
        padding: 20px 12px;
    }
    .tpdg-portal__greeting {
        font-size: 28px;
    }
    .tpdg-portal__notice {
        padding: 20px 22px;
    }
    .tpdg-portal__logout {
        position: static;
        margin-top: 16px;
    }
    .tpdg-portal__header {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }
}

/* ===== Stage 2: tabs, sessions, profile ===== */

.tpdg-portal__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid #E5DDC9;
}
.tpdg-portal__tab {
    padding: 14px 22px;
    color: #5C5A55;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
    margin-bottom: -1px;
}
.tpdg-portal__tab:hover {
    color: #0F2A44;
}
.tpdg-portal__tab.is-active {
    color: #0F2A44;
    border-bottom-color: #B08D3F;
}

.tpdg-portal__main {
    min-height: 200px;
}

.tpdg-portal__empty {
    background: #FFFFFF;
    border-left: 4px solid #B08D3F;
    padding: 30px 36px;
    border-radius: 2px;
    color: #5C5A55;
    line-height: 1.6;
}
.tpdg-portal__empty p {
    margin: 0;
    font-size: 16px;
}

/* Session list cards */
.tpdg-portal__session-card {
    background: #FFFFFF;
    padding: 26px 32px;
    margin-bottom: 16px;
    border-radius: 2px;
    border-left: 3px solid #E5DDC9;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tpdg-portal__session-card:hover {
    border-left-color: #B08D3F;
    box-shadow: 0 1px 4px rgba(15, 42, 68, 0.06);
}
.tpdg-portal__session-card h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #0F2A44;
    line-height: 1.25;
}
.tpdg-portal__session-card h2 a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
.tpdg-portal__session-card h2 a:hover {
    color: #B08D3F;
}
.tpdg-portal__session-meta {
    color: #5C5A55;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-style: italic;
}
.tpdg-portal__session-meta span[aria-hidden="true"] {
    margin: 0 8px;
    color: #ccc;
    font-style: normal;
}

.tpdg-portal__btn-text {
    color: #B08D3F;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #E5DDC9;
    padding-bottom: 1px;
    transition: border-color 150ms ease;
}
.tpdg-portal__btn-text:hover {
    border-bottom-color: #B08D3F;
}

/* Session detail */
.tpdg-portal__back {
    color: #5C5A55;
    text-decoration: none;
    font-size: 14px;
}
.tpdg-portal__back:hover {
    color: #B08D3F;
}

.tpdg-portal__session-detail {
    background: #FFFFFF;
    padding: 36px 44px;
    border-radius: 2px;
    border-left: 3px solid #B08D3F;
    margin-top: 16px;
}
.tpdg-portal__session-detail header {
    border-bottom: 1px solid #E5DDC9;
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.tpdg-portal__session-detail header h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Markdown content (prose styling) */
.tpdg-prose {
    line-height: 1.7;
    font-size: 16px;
    color: #1A1614;
}
.tpdg-prose h1, .tpdg-prose h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #0F2A44;
    margin: 32px 0 12px 0;
    line-height: 1.3;
}
.tpdg-prose h1 { font-size: 24px; }
.tpdg-prose h2 { font-size: 20px; }
.tpdg-prose h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #0F2A44;
    margin: 26px 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}
.tpdg-prose h4 {
    font-family: 'Manrope', Calibri, sans-serif;
    font-weight: 600;
    color: #0F2A44;
    margin: 22px 0 8px 0;
    font-size: 16px;
}
.tpdg-prose p {
    margin: 0 0 16px 0;
}
.tpdg-prose ul, .tpdg-prose ol {
    margin: 0 0 18px 24px;
    padding: 0;
}
.tpdg-prose li {
    margin-bottom: 6px;
}
.tpdg-prose blockquote {
    border-left: 3px solid #B08D3F;
    padding: 6px 18px;
    margin: 18px 0;
    background: #FBF7EE;
    color: #5C5A55;
    font-style: italic;
}
.tpdg-prose blockquote p:last-child {
    margin-bottom: 0;
}
.tpdg-prose code {
    background: #F4EEDF;
    padding: 1px 6px;
    border-radius: 2px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}
.tpdg-prose a {
    color: #B08D3F;
    border-bottom: 1px solid #E5DDC9;
    text-decoration: none;
}
.tpdg-prose a:hover {
    border-bottom-color: #B08D3F;
}
.tpdg-prose hr {
    border: none;
    border-top: 1px solid #E5DDC9;
    margin: 30px 0;
}

/* Attachments block */
.tpdg-portal__attachments {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #E5DDC9;
}
.tpdg-portal__attachments h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 12px 0;
    font-size: 18px;
}
.tpdg-portal__attachments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tpdg-portal__attachments li {
    padding: 10px 0;
    border-bottom: 1px solid #F0EBDD;
}
.tpdg-portal__attachments li:last-child {
    border-bottom: none;
}
.tpdg-portal__attachments a {
    color: #0F2A44;
    text-decoration: none;
    font-size: 15px;
}
.tpdg-portal__attachments a:hover {
    color: #B08D3F;
}

/* ==========================================================================
   Summary tab — landing page with brand, meeting link, next session, actions
   ========================================================================== */
.tpdg-portal__summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* TPDG monogram block at top */
.tpdg-portal__summary-brand {
    text-align: center;
    padding: 8px 0 4px;
}
.tpdg-portal__summary-monogram {
    width: 140px;
    height: auto;
    display: inline-block;
}
.tpdg-portal__summary-tagline {
    margin: 4px 0 0;
    color: #5C5A55;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.02em;
}

.tpdg-portal__summary-intro {
    text-align: center;
    margin: 4px 0 14px;
    color: #0F2A44;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

/* Each card in the summary stack */
.tpdg-portal__summary-card {
    background: #FFFFFF;
    padding: 28px 32px;
    border-radius: 2px;
    border-left: 3px solid #E5DDC9;
}
.tpdg-portal__summary-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    color: #0F2A44;
    margin: 0 0 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tpdg-portal__summary-card-help {
    color: #5C5A55;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
}
.tpdg-portal__summary-card-empty {
    color: #5C5A55;
    margin: 0;
    font-size: 15px;
    font-style: italic;
}
.tpdg-portal__summary-card-action {
    margin: 14px 0 0;
}
.tpdg-portal__summary-card-action a {
    color: #0F2A44;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(176, 141, 63, 0.4);
    padding-bottom: 1px;
}
.tpdg-portal__summary-card-action a:hover {
    color: #B08D3F;
    border-bottom-color: #B08D3F;
}

/* Meeting card — gold left bar so it pops */
.tpdg-portal__summary-card--meeting {
    border-left-color: #B08D3F;
    background: #FBF7EE;
}
.tpdg-portal__meeting-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0F2A44;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid #B08D3F;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.tpdg-portal__meeting-link:hover,
.tpdg-portal__meeting-link:focus {
    color: #B08D3F;
    border-bottom-color: #0F2A44;
    text-decoration: none;
}

/* Next-session details */
.tpdg-portal__summary-next-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    margin: 0 0 4px;
}
.tpdg-portal__summary-next-title a {
    color: #0F2A44;
    text-decoration: none;
    font-weight: 600;
}
.tpdg-portal__summary-next-title a:hover {
    color: #B08D3F;
}
.tpdg-portal__summary-next-meta {
    color: #5C5A55;
    margin: 0;
    font-size: 14px;
}

/* Open-actions list */
.tpdg-portal__summary-badge {
    display: inline-block;
    background: #0F2A44;
    color: #FBF7EE;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    line-height: 1.4;
}
.tpdg-portal__summary-actions {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tpdg-portal__summary-action {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #F0EBDC;
}
.tpdg-portal__summary-action:first-child {
    border-top: 0;
    padding-top: 0;
}
.tpdg-portal__summary-action a {
    color: #0F2A44;
    text-decoration: none;
    font-size: 15px;
    flex: 1;
}
.tpdg-portal__summary-action a:hover {
    color: #B08D3F;
}
.tpdg-portal__summary-action-due {
    color: #5C5A55;
    font-size: 13px;
    white-space: nowrap;
}
.tpdg-portal__summary-action.is-overdue .tpdg-portal__summary-action-due {
    color: #8B2E2E;
    font-weight: 600;
}

@media (max-width: 600px) {
    .tpdg-portal__summary-card {
        padding: 22px 20px;
    }
    .tpdg-portal__summary-action {
        flex-direction: column;
        gap: 4px;
    }
}

/* Profile tab */
.tpdg-portal__profile {
    background: #FFFFFF;
    padding: 36px 44px;
    border-radius: 2px;
    border-left: 3px solid #E5DDC9;
}
.tpdg-portal__profile h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #0F2A44;
    font-size: 24px;
    margin: 0 0 8px 0;
}
.tpdg-portal__profile-note {
    color: #5C5A55;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 24px;
}
.tpdg-portal__profile-list {
    margin: 0;
}
.tpdg-portal__profile-list dt {
    color: #5C5A55;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 18px;
}
.tpdg-portal__profile-list dt:first-child {
    margin-top: 0;
}
.tpdg-portal__profile-list dd {
    color: #1A1614;
    font-size: 16px;
    margin: 4px 0 0 0;
}

/* Mobile */
@media (max-width: 600px) {
    .tpdg-portal__tabs {
        gap: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tpdg-portal__tab {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    .tpdg-portal__session-card,
    .tpdg-portal__session-detail,
    .tpdg-portal__profile {
        padding: 22px 22px;
    }
    .tpdg-portal__session-detail header h2 {
        font-size: 22px;
    }
}

/* ===== Stage 3: Actions tab ===== */

.tpdg-portal__tab-count {
    display: inline-block;
    background: #B08D3F;
    color: #FBF7EE;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.5;
}
.tpdg-portal__tab.is-active .tpdg-portal__tab-count {
    background: #0F2A44;
}

.tpdg-portal__section-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #5C5A55;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tpdg-portal__action-card {
    background: #FFFFFF;
    padding: 22px 28px;
    margin-bottom: 12px;
    border-radius: 2px;
    border-left: 3px solid #E5DDC9;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tpdg-portal__action-card:hover {
    border-left-color: #B08D3F;
    box-shadow: 0 1px 4px rgba(15, 42, 68, 0.06);
}
.tpdg-portal__action-card.is-overdue {
    border-left-color: #8B2E2E;
}
.tpdg-portal__action-card.is-done {
    background: #FAFAF8;
    opacity: 0.85;
}
.tpdg-portal__action-card h3 {
    font-family: 'Manrope', Calibri, sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #0F2A44;
    line-height: 1.3;
}
.tpdg-portal__action-card.is-done h3 {
    text-decoration: line-through;
    color: #5C5A55;
}
.tpdg-portal__action-card h3 a {
    color: inherit;
    text-decoration: none;
}
.tpdg-portal__action-card h3 a:hover {
    color: #B08D3F;
}
.tpdg-portal__action-meta {
    color: #5C5A55;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

.tpdg-portal__action-status {
    font-style: normal;
    color: #5C5A55;
}
.tpdg-portal__action-status--overdue {
    color: #8B2E2E;
    font-weight: 600;
}
.tpdg-portal__action-status--done {
    color: #3F6B5C;
    font-weight: 600;
}

.tpdg-portal__action-detail {
    background: #FFFFFF;
    padding: 36px 44px;
    border-radius: 2px;
    border-left: 3px solid #B08D3F;
    margin-top: 16px;
}
.tpdg-portal__action-detail h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 8px 0;
    line-height: 1.25;
}
.tpdg-portal__action-description {
    margin-top: 24px;
}

.tpdg-portal__notice-inline {
    background: #E0EBE6;
    color: #2A4A40;
    padding: 12px 18px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid #3F6B5C;
}

@media (max-width: 600px) {
    .tpdg-portal__action-card,
    .tpdg-portal__action-detail {
        padding: 18px 20px;
    }
}

/* ===== Stage 4: Resources tab ===== */

.tpdg-portal__resource-card {
    background: #FFFFFF;
    padding: 28px 32px;
    margin-bottom: 16px;
    border-radius: 2px;
    border-left: 3px solid #B08D3F;
}
.tpdg-portal__resource-card h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #0F2A44;
    margin: 0 0 8px 0;
    line-height: 1.25;
}
.tpdg-portal__resource-meta {
    color: #5C5A55;
    font-size: 13px;
    margin: 0 0 14px 0;
    font-style: italic;
}
.tpdg-portal__resource-description {
    line-height: 1.6;
    color: #1A1614;
    margin-bottom: 14px;
}
.tpdg-portal__resource-description p {
    margin: 0 0 12px 0;
}
.tpdg-portal__resource-description p:last-child {
    margin-bottom: 0;
}
.tpdg-portal__resource-note {
    background: #FBF7EE;
    border-left: 3px solid #5C5A55;
    padding: 12px 16px;
    border-radius: 2px;
    color: #5C5A55;
    font-style: italic;
    margin-top: 14px;
}
.tpdg-portal__resource-note p {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .tpdg-portal__resource-card {
        padding: 22px 22px;
    }
    .tpdg-portal__resource-card h2 {
        font-size: 19px;
    }
}
