@layer components {
/* Executive cards (About page). 250x300 visual frame; the inner container
   sits inside that frame and the image fills the container. Sized in rems
   so the frame scales with user font-size preference; spacing from tokens. */
/* Photo card in the first column, spanning both rows; the profile, then the
   links row ExecutiveTagHelper adds, stacked in the second. */
.app-executive {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    padding: var(--space-1);
    width: 100%;
    gap: var(--space-2);
}

.app-executive-card {
    grid-row: 1 / 3;
}

.app-executive-profile {
    grid-column: 2;
    padding: var(--space-1);
}

.app-executive-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    padding: 0 var(--space-1);
}

/* Base styles underline every <a>; a brand-icon link reads as a link without it,
   so the underline comes back only on hover, under the text and not the icon. */
.app-executive-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
}

.app-executive-link:hover span {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.app-executive-link .fa-brands {
    font-size: 1.25em;
}

.app-executive-card {
    width: 15.625rem;       /* 250px */
    min-width: 15.625rem;
    max-width: 15.625rem;
    height: 18.75rem;       /* 300px */
}

.app-executive-card-container {
    height: 80%;
    width: 80%;
    overflow: hidden;
    margin-inline: var(--space-1);
}

.app-executive-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Phones/tablets: stack the photo above the profile. Otherwise the fixed 250px
   image card stays put and the profile text is crushed into a narrow band beside
   it. 48rem matches the app's standard stacking breakpoint. */
@media (max-width: 48rem) {
    .app-executive {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        justify-items: center;
    }

    .app-executive-card {
        grid-row: auto;
    }

    .app-executive-profile,
    .app-executive-links {
        grid-column: 1;
        justify-self: stretch;
    }
}

.app-contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--app-background-color-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: var(--app-contact-card-width, 300px);
    max-width: var(--app-container-width, 300px);
    min-width: 300px;
    gap: 10px;
}

    .app-contact-card a {
        text-decoration: none;
        color: var(--app-brand-link-color, black);
    }
    /*.app-contact-card .icon {
    align-items: flex-start;
    margin: 0 40px auto 0;
}

.app-contact-card .icon {
    align-items: center;
    margin: 0 40px auto 0;
}
*/
    .app-card-link {
    }

    .app-card-link,
    .app-card-link:visited,
    .app-card-link:hover,
    .app-card-link:active,
    .app-card-link:focus {
        text-decoration: none;
        color: var(--app-brand-link-color, black);
    }


.app-quick-action-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    width: 100%;
    gap: 5px;
}
.app-quick-action-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px 5px 5px 10px;
    border-radius: 0.5rem;
    background-color: var(--app-background-color-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 210px;
    height: 36px;
}
.app-quick-action-content {
    color: black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 5px;
}
.app-quick-action-header {
    color: black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.00em;
    font-weight: 600;
    width: 100%;
    gap: 5px;
}

/* Account landing: the icon each card shows beside its heading. */
.app-account-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background-color: var(--color-surface-alt);
    color: var(--color-accent);
    font-size: 1.25rem;
}

}
