/* Logo sizes shared by login and navigation; preserve the asset proportions. */
.podmat-brand-logo {
    display: inline-block;
    width: 164px;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}
.card-logo .podmat-brand-logo {
    width: 240px;
    padding: 0;
}
.podmat-brand-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    vertical-align: middle;
}

/* PodMAT palette "Blau führt": blue leads, yellow is the accent. */
:root {
    --podmat-blue: #527dda;
    --podmat-blue-deep: #355cae;
    --podmat-blue-soft: #e7eefb;
    --podmat-blue-line: #ccd9f2;
    --podmat-yellow: #ffe100;
    --podmat-yellow-hover: #f2d500;
    --podmat-yellow-active: #e6c900;
    --podmat-ink: #0d2233;
}
/* Primary buttons: yellow with navy text for readable contrast. */
body .btn-primary {
    --bs-btn-color: var(--podmat-ink);
    --bs-btn-bg: var(--podmat-yellow);
    --bs-btn-border-color: var(--podmat-yellow);
    --bs-btn-hover-color: var(--podmat-ink);
    --bs-btn-hover-bg: var(--podmat-yellow-hover);
    --bs-btn-hover-border-color: var(--podmat-yellow-hover);
    --bs-btn-focus-shadow-rgb: 255, 225, 0;
    --bs-btn-active-color: var(--podmat-ink);
    --bs-btn-active-bg: var(--podmat-yellow-active);
    --bs-btn-active-border-color: var(--podmat-yellow-active);
    --bs-btn-disabled-color: var(--podmat-ink);
    --bs-btn-disabled-bg: var(--podmat-yellow);
    --bs-btn-disabled-border-color: var(--podmat-yellow);
}
body .btn-outline-primary {
    --bs-btn-color: var(--podmat-blue-deep);
    --bs-btn-border-color: var(--podmat-blue);
    --bs-btn-hover-color: var(--podmat-ink);
    --bs-btn-hover-bg: var(--podmat-yellow);
    --bs-btn-hover-border-color: var(--podmat-yellow);
    --bs-btn-focus-shadow-rgb: 255, 225, 0;
    --bs-btn-active-color: var(--podmat-ink);
    --bs-btn-active-bg: var(--podmat-yellow-active);
    --bs-btn-active-border-color: var(--podmat-yellow-active);
    --bs-btn-disabled-color: var(--podmat-blue-deep);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--podmat-blue);
}
body .btn.btn-primary:focus,
body .btn.btn-outline-primary:focus {
    outline: 2px solid var(--podmat-ink) !important; /* Override Skote's important outline reset. */
    outline-offset: 3px;
}

/* Welcome card: headline, listening motif and audio moment. */
.podmat-welcome {
    background: #f7f5f1;
    color: var(--podmat-ink);
    container-type: inline-size;
}
.podmat-welcome-content {
    display: grid;
    grid-template-columns: 28% 40% 32%;
    align-items: center;
    min-height: 220px;
}
.podmat-welcome .podmat-welcome-copy {
    color: var(--podmat-ink);
    align-self: start;
}
.podmat-welcome .podmat-welcome-copy h5 {
    color: var(--podmat-blue);
}
.podmat-welcome-art {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.podmat-welcome-card {
    overflow: visible;
}
.podmat-welcome-portrait {
    position: relative;
    align-self: stretch;
    pointer-events: none;
}
.podmat-welcome-listener {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 72px);
    object-fit: contain;
    object-position: center bottom;
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
@container (max-width: 600px) {
    .podmat-welcome-content {
        grid-template-columns: 1fr;
    }
    .podmat-welcome-portrait {
        height: 280px;
    }
    .podmat-welcome-listener {
        height: 100%;
    }
    .podmat-welcome-art {
        max-height: 150px;
        margin-bottom: 20px;
    }
}

.podmat-page-wordmark {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}

/* One avatar treatment across dashboard, account menu and profile form. */
.podmat-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 3px solid #fff;
}
.podmat-avatar-initials {
    background: var(--podmat-yellow);
    color: var(--podmat-ink);
    font-weight: 600;
    line-height: 1;
}
.podmat-avatar-menu { width: 36px; height: 36px; font-size: 13px; }
.podmat-avatar-dashboard { width: 72px; height: 72px; font-size: 24px; }
.podmat-avatar-profile { width: 96px; height: 96px; font-size: 32px; }

/* Let long email addresses wrap beside the fixed-size profile image. */
.podmat-account-details { min-width: 0; overflow-wrap: anywhere; }

/* Shared content links, including sortable table headings. */
body {
    --bs-link-color: #0d2233;
    --bs-link-color-rgb: 13, 34, 51;
    --bs-link-hover-color: #355cae;
    --bs-link-hover-color-rgb: 53, 92, 174;
}
body main a:not(.btn):not(.podmat-section-nav-link):not(.page-link) {
    color: var(--podmat-ink, #0d2233);
}
body main a:not(.btn):not(.podmat-section-nav-link):not(.page-link):hover {
    color: var(--podmat-blue-deep);
    text-decoration: underline;
}
/* Table headings share the active navigation's soft blue. */
body .table > thead.table-light {
    --bs-table-bg: var(--podmat-blue-soft);
    --bs-table-color: #0d2233;
    --bs-table-border-color: var(--podmat-blue-line);
}