/* ==========================================================================
   Kishoreganj University — Single Teacher/Staff Profile  (/employee/{slug})
   Loaded alongside employee.css, which sets the shared token palette.
   ========================================================================== */

/* No top clearance here any more.

   The page used to start with a flat breadcrumb band and had to state the
   fixed navbar's height itself. It now opens with <x-person-hero>, which
   carries that clearance in its own padding so the photograph runs all the
   way up behind the navbar. See css/components/person-hero.css. */

.kiu-profile-former-banner {
    background: #FDF3E7;
    border-top: 1px solid #F1DCB8;
    border-bottom: 1px solid #F1DCB8;
    color: #8A5A17;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kiu-profile-hero {
    padding-block: 56px;
}

.kiu-profile-hero__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .kiu-profile-hero__grid {
        grid-template-columns: 1fr;
    }
}

.kiu-profile-card {
    background: var(--kiu-white);
    border: 1px solid var(--kiu-border);
    border-radius: var(--kiu-radius-lg);
    padding: 26px;
    text-align: center;
    box-shadow: var(--kiu-shadow);
    position: sticky;
    top: 96px;
}

/* Once the grid collapses to one column the card is no longer a sidebar — it
   is the top of the page, and sticking it pins the portrait over the content
   the reader is scrolling to. This override MUST stay after the rule above:
   same specificity, so source order decides. */
@media (max-width: 900px) {
    .kiu-profile-card {
        position: static;
        top: auto;
    }
}

/* main.css sets `p { margin-bottom: 30px; line-height: 28px }` globally, which
   would space these stacked one-line labels apart by a whole paragraph gap.
   Reset once here so each label below only has to state its own margin-top. */
.kiu-profile-card p {
    margin-bottom: 0;
    line-height: 1.5;
}

.kiu-profile-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--kiu-radius);
    margin-bottom: 18px;
}

/* The breadcrumb band that used to live here was replaced by
   <x-person-hero>, which renders the trail over the photograph. Its styles
   moved to css/components/person-hero.css. */

/* A <p>, not the page heading — the hero above carries the <h1>. main.css
   sets `p { margin-bottom: 30px }` globally, hence the reset. */
.kiu-profile-card__name {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--kiu-ink);
}

/* Bengali needs a taller line box than Latin — its marks sit above cap
   height and clip in a tight one. See docs/decisions_hridy.md D-7. */
.kiu-profile-card__name-bn {
    font-size: 16px;
    font-weight: 600;
    color: var(--kiu-ink);
    line-height: 1.7;
    margin-top: 2px;
    margin-bottom: 0;
}

.kiu-profile-card__affiliation {
    font-size: 13px;
    font-weight: 600;
    color: var(--kiu-navy);
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid var(--kiu-border);
}

/* Resets the global `p { margin-bottom: 30px; line-height: 28px }` from
   main.css, which otherwise inflates this block out of proportion. */
.kiu-profile-summary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--kiu-body);
    margin-bottom: 24px;
}

.kiu-profile-card__designation {
    font-size: 14px;
    font-weight: 600;
    color: var(--kiu-navy);
    margin-top: 4px;
}

.kiu-profile-card__dept {
    font-size: 13px;
    color: var(--kiu-muted);
    margin-top: 2px;
}

.kiu-profile-card__meta {
    font-size: 13px;
    color: var(--kiu-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.kiu-profile-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--kiu-navy);
}

/* Tabs ----------------------------------------------------------------- */

.kiu-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--kiu-border);
    margin-bottom: 28px;
}

.kiu-profile-tab {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--kiu-muted);
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
}

.kiu-profile-tab:hover {
    color: var(--kiu-navy);
}

.kiu-profile-tab.is-active {
    color: var(--kiu-navy);
    border-bottom-color: var(--kiu-accent);
}

.kiu-profile-panel {
    display: none;
}

.kiu-profile-panel.is-active {
    display: block;
}

.kiu-profile-panel__heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--kiu-ink);
    margin: 28px 0 16px;
}

.kiu-profile-panel__heading:first-child {
    margin-top: 0;
}

/* Education timeline ----------------------------------------------------- */

.kiu-profile-timeline {
    border-left: 2px solid var(--kiu-border);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kiu-profile-timeline li h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--kiu-navy);
}

.kiu-profile-timeline__org {
    font-size: 13.5px;
    color: var(--kiu-ink);
}

.kiu-profile-timeline__meta {
    font-size: 12.5px;
    color: var(--kiu-muted);
}

/* Experience table --------------------------------------------------------- */

.kiu-profile-table-wrap {
    overflow-x: auto;
}

.kiu-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.kiu-profile-table th,
.kiu-profile-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--kiu-border);
    text-align: left;
    vertical-align: top;
}

.kiu-profile-table th {
    color: var(--kiu-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.kiu-profile-table td:first-child,
.kiu-profile-table th:first-child {
    width: 40px;
}

/* Lists (other experience, publications, research) ------------------------ */

.kiu-profile-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--kiu-body);
    padding-left: 20px;
}

.kiu-profile-research p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.kiu-profile-list--awards li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kiu-profile-award__type {
    display: block;
    font-size: 13px;
    color: var(--kiu-body);
}

.kiu-profile-award__meta {
    display: block;
    font-size: 12.5px;
    color: var(--kiu-muted);
}

/* Research Interests Tags -------------------------------------------------- */

.kiu-profile-interests__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.kiu-profile-interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--kiu-radius-pill);
    background: var(--kiu-surface);
    color: var(--kiu-navy);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--kiu-border);
    transition: border-color var(--kiu-dur-fast) var(--kiu-ease-in-out), background-color var(--kiu-dur-fast) var(--kiu-ease-in-out);
}

.kiu-profile-interest-tag:hover {
    border-color: var(--kiu-accent);
    background: var(--kiu-white);
}

/* Publications list -------------------------------------------------------- */

.kiu-profile-pubs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 20px;
    margin: 0;
}

.kiu-profile-pub-item {
    font-size: 14px;
    line-height: 1.6;
    color: var(--kiu-body);
}

.kiu-profile-pub-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px;
}

.kiu-profile-pub-title a {
    color: var(--kiu-ink);
    text-decoration: none;
    transition: color var(--kiu-dur-fast) var(--kiu-ease-in-out);
}

.kiu-profile-pub-title a:hover {
    color: var(--kiu-accent);
}

.kiu-profile-pub-authors {
    font-size: 13.5px;
    color: var(--kiu-body);
    margin: 0 0 4px;
}

.kiu-profile-pub-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 12.5px;
    color: var(--kiu-muted);
    margin: 0;
}

.kiu-profile-pub-journal {
    color: var(--kiu-muted);
}

.kiu-profile-pub-year {
    font-weight: 600;
    color: var(--kiu-navy);
}

.kiu-profile-pub-doi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--kiu-accent);
    font-weight: 600;
    text-decoration: none;
}

.kiu-profile-pub-doi:hover {
    text-decoration: underline;
}
