/* Shared company identity, loaded after the public and trainee themes. */
body.portal-identity {
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}
.portal-identity > main { flex: 1; }
.portal-identity .site-header,
.portal-identity .pds-portal-header,
.portal-identity .pds-site-nav,
.portal-identity .pds-portal-nav-panel {
    background: var(--identity-header);
    color: var(--identity-header-text);
}
.portal-identity .site-header .brand,
.portal-identity .site-header nav a,
.portal-identity .pds-portal-brand,
.portal-identity .pds-portal-brand small,
.portal-identity .pds-portal-links a {
    color: var(--identity-header-text);
}
.portal-identity .site-header nav a:hover,
.portal-identity .site-header nav a[aria-current],
.portal-identity .pds-portal-links a:hover,
.portal-identity .pds-portal-links a[aria-current] {
    color: var(--identity-header-text);
    background: color-mix(in srgb, var(--identity-header-text) 14%, transparent);
}
.portal-identity .pds-portal-links a[aria-current]::after { background: var(--identity-header-text); }
.portal-identity .pds-portal-brand,
.portal-identity .pds-site-brand { min-inline-size: 0; }
.portal-identity .pds-company-logo,
.portal-identity .pds-site-brand img,
.portal-identity .pds-footer-brand img {
    inline-size: 78px;
    block-size: 54px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 5px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px #0000000d;
}
.portal-identity > footer {
    background: var(--identity-footer);
    color: var(--identity-footer-text);
    border-block-start: 4px solid var(--brand);
}
.portal-identity > footer a,
.portal-identity > footer strong,
.portal-identity > footer p,
.portal-identity .pds-site-footer__meta { color: var(--identity-footer-text); }
.portal-identity > footer a:hover { color: var(--identity-footer-text); text-decoration: underline; }
.pds-footer-brand { display: inline-flex; align-items: center; gap: 1rem; margin-block-end: .75rem; text-decoration: none; }
.pds-portal-footer .pds-footer-brand { margin: 0; }
.pds-footer-brand span { display: grid; gap: .4rem; }
.pds-footer-brand small { font-size: .8rem; }
.portal-identity .dashboard-hero,
.portal-identity .exam-topbar { background: var(--pds-gradient-brand); }
.portal-identity .button.primary,
.portal-identity .pds-btn:not(.pds-btn--soft):not(.pds-btn--outline):not(.pds-btn--ghost):not(.pds-btn--danger) { color: var(--identity-primary-text); }
.portal-identity.pds-public .hero,
.portal-identity.pds-public .page-hero {
    background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 65%), var(--paper);
}
@media (max-width: 640px) {
    .portal-identity .pds-company-logo,
    .portal-identity .pds-site-brand img { inline-size: 60px; block-size: 44px; }
    .portal-identity .pds-site-brand > span,
    .portal-identity .pds-portal-brand > span { max-inline-size: 180px; overflow-wrap: anywhere; }
    .pds-footer-brand { flex-wrap: wrap; }
}
.portal-identity .site-header nav a.lang,
.portal-identity .site-header nav a.lang:hover { color: var(--brand-dark); background: #fff; }
.portal-identity .site-header nav a[aria-current]::after { background: var(--identity-header-text); }
.portal-identity.pds-public .portal-cta .button.primary { color: var(--brand-dark); }

/* Navy, warm ivory and gold echo the institute's book and flame logo. */
.portal-identity {
    --ink: #172c4b;
    --muted: #69768a;
    --line: #e3e5e9;
    --portal-ink: var(--ink);
    --portal-muted: var(--muted);
    --portal-line: var(--line);
    --pp-shadow: 0 18px 45px rgb(23 44 75 / 7%);
    --pp-shadow-lg: 0 28px 65px rgb(23 44 75 / 12%);
}
.portal-identity .site-header,
.portal-identity .pds-portal-header {
    border-block-end: 1px solid color-mix(in srgb, var(--identity-header-text) 12%, transparent);
    box-shadow: 0 8px 28px rgb(16 30 52 / 10%);
}
.portal-identity .pds-site-header__inner { min-block-size: 90px; }
.portal-identity .pds-company-logo,
.portal-identity .pds-site-brand img,
.portal-identity .pds-footer-brand img {
    inline-size: 88px;
    block-size: 64px;
    padding: 3px;
    background: #fbf7ec;
    border: 1px solid rgb(230 161 42 / 22%);
    border-radius: 10px;
}
.portal-identity .site-header nav a[aria-current]::after,
.portal-identity .pds-portal-links a[aria-current]::after { background: var(--identity-accent); }
.portal-identity .site-header nav a.lang {
    color: var(--identity-header-text);
    border-color: color-mix(in srgb, var(--identity-header-text) 24%, transparent);
    background: color-mix(in srgb, var(--identity-header-text) 7%, transparent);
}
.portal-identity .site-header nav a.lang:hover { color: var(--identity-header-text); background: color-mix(in srgb, var(--identity-header-text) 15%, transparent); }
.portal-identity.pds-public .button.primary { background: var(--pds-gradient-brand); }
.portal-identity.pds-public .button.primary:hover { background: var(--brand-dark); }
.portal-identity.pds-public .button.primary.pds-site-cta,
.portal-identity.pds-public .button.primary.pds-site-cta:hover {
    color: #172c4b;
    background: #e6a12a;
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
}
.portal-identity.pds-public .hero {
    background:
        radial-gradient(ellipse at 92% 5%, rgb(230 161 42 / 10%), transparent 55%),
        radial-gradient(ellipse at 5% 95%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 55%),
        var(--paper);
}
.portal-identity.pds-public .hero h1 { color: var(--ink); }
.portal-identity.pds-public .hero-panel { background: #fff; border-color: #ece6d9; }
.portal-identity.pds-public .hero .eyebrow { color: #805a16; background: #f6ecd8; }
.portal-identity.pds-public .section-head h2::after { background: var(--identity-accent); }
.portal-identity.pds-public .course-card::before,
.portal-identity.pds-public .institute-card::before,
.portal-identity.pds-public .pds-site-brand__mark { background: var(--pds-gradient-brand); }
.portal-identity.pds-public .benefits-grid article > span,
.portal-identity.pds-public .steps > div > span { color: var(--brand); background: var(--pds-brand-soft); }
.portal-identity.pds-public .portal-cta .shell {
    background: radial-gradient(ellipse at 95% 0%, rgb(230 161 42 / 14%), transparent 65%), var(--pds-gradient-brand);
    border: 1px solid color-mix(in srgb, var(--brand) 80%, #fff);
}
.portal-identity.pds-public .portal-cta .button.primary { color: #172c4b; background: #e6a12a; }
.portal-identity .dashboard-hero,
.portal-identity .exam-topbar {
    background: radial-gradient(ellipse at 90% 0%, rgb(230 161 42 / 16%), transparent 60%), var(--pds-gradient-brand);
    box-shadow: 0 20px 48px rgb(23 44 75 / 15%);
}
.portal-identity .hero-kicker,
.portal-identity .exam-eyebrow { color: #f4ce83; }
.portal-identity .section-link:hover { background: var(--pds-brand-soft); }
.portal-identity .pds-progress > span,
.portal-identity .exam-progress span { background: var(--pds-gradient-brand); }
.portal-identity > footer {
    border-block-start: 2px solid var(--identity-accent);
    box-shadow: none;
    padding-block: 2.5rem;
}
.portal-identity > footer .pds-footer-brand { gap: 1rem; }
.portal-identity > footer p,
.portal-identity .pds-site-footer__meta { color: color-mix(in srgb, var(--identity-footer-text) 72%, var(--identity-footer)); }
.portal-identity > footer a:hover { text-underline-offset: 5px; }
@media (max-width: 640px) {
    .portal-identity .pds-site-header__inner { min-block-size: 76px; }
    .portal-identity .pds-company-logo,
    .portal-identity .pds-site-brand img { inline-size: 64px; block-size: 48px; }
    .portal-identity .pds-site-brand { font-size: .95rem; }
}

.portal-identity.pds-public .portal-cta .eyebrow { color: #f4ce83; background: rgb(255 255 255 / 8%); }
.portal-identity .trainee-dashboard { --dash-navy: var(--brand-dark); }
.portal-identity .level-chip { color: var(--brand-dark); background: var(--pds-brand-soft); }
.portal-identity.pds-public .institute-directory .directory-number { background: var(--pds-gradient-brand); }

/* The default landing composition: clear copy, brand card and a short path to registration. */
.portal-identity.pds-public .portal-hero { min-block-size: 640px; }
.portal-identity.pds-public .portal-hero .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: clamp(2rem, 5vw, 5rem); }
.portal-hero-copy { min-inline-size: 0; }
.portal-identity.pds-public .portal-hero h1 { font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.2; max-inline-size: 780px; }
.portal-identity.pds-public .portal-brand-panel { padding: 1.4rem; border: 1px solid #e5dfd2; border-block-start: 4px solid var(--identity-accent); border-radius: 26px; box-shadow: 0 24px 64px rgb(11 37 69 / 9%); }
.portal-brand-panel__identity { display: grid; justify-items: center; gap: 1rem; padding: 1.2rem .5rem 1.8rem; }
.portal-brand-panel__identity img { inline-size: min(240px, 100%); block-size: 170px; object-fit: contain; border-radius: 14px; }
.portal-brand-panel__symbol { display: grid; place-items: center; inline-size: 110px; block-size: 110px; border-radius: 26px; color: var(--brand); background: var(--pds-brand-soft); font-size: 4rem; }
.portal-brand-panel__caption { font-weight: 700; color: var(--brand-dark); font-size: .9rem; }
.portal-brand-panel__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.portal-identity.pds-public .portal-brand-panel .metric { display: grid; gap: .45rem; justify-items: center; padding: 1.1rem .5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--pds-surface-alt); }
.portal-identity.pds-public .portal-brand-panel .metric strong { font-size: 2.2rem; }
.portal-identity.pds-public .portal-brand-panel .promise { display: flex; gap: .65rem; align-items: center; margin-block-start: .9rem; background: #fbf4e6; color: #604d2c; font-size: .82rem; }
.portal-brand-panel .promise i { flex-shrink: 0; font-size: 1.5rem; color: #946718; }
.portal-hero-steps { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-block-start: 1.6rem; }
.portal-hero-steps > span { display: inline-flex; align-items: center; gap: .5rem; font-size: .83rem; font-weight: 700; color: var(--muted); }
.portal-hero-steps b { display: grid; place-items: center; inline-size: 26px; block-size: 26px; border: 1px solid #dbcba9; border-radius: 50%; color: #805a16; font-size: .75rem; }
html[dir="ltr"] .portal-hero .button .bx-arrow-back { transform: rotate(180deg); }
@media (max-width: 900px) {
    .portal-identity.pds-public .portal-hero .hero-grid { grid-template-columns: 1fr; }
    .portal-identity.pds-public .portal-brand-panel { inline-size: 100%; max-inline-size: 540px; margin-inline: auto; }
    .portal-brand-panel__identity { padding-block: .5rem 1rem; }
    .portal-brand-panel__identity img { block-size: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-identity.pds-public .hero-panel:hover { transform: none; }
}
