/* ═══════════════════════════════════════════
   PM Arzt Page — Frontend Styles
   v1.1.0 — Scoped under .arzt
   ═══════════════════════════════════════════ */

.arzt {
    --arzt-accent: var(--color-accent, #7ab8d4);
    --arzt-accent-teal: #0d8b8b;
    --arzt-green: #6ec89b;
    --arzt-green-dim: rgba(110,200,155,0.15);
    --arzt-green-border: rgba(110,200,155,0.25);
    --arzt-bg: var(--color-bg, #0f1419);
    --arzt-bg-card: rgba(245,241,235,0.03);
    --arzt-border: rgba(122,184,212,0.15);
    --arzt-border-hover: rgba(122,184,212,0.4);
    --arzt-text: var(--color-text, #f0ede8);
    --arzt-text-dim: #a89a8f;
    --arzt-text-muted: rgba(245,241,235,0.5);
    --arzt-font-display: 'Cormorant Garamond', Georgia, serif;
    --arzt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    font-family: var(--arzt-font-body);
    color: var(--arzt-text);
    line-height: 1.65;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.arzt *, .arzt *::before, .arzt *::after {
    box-sizing: border-box;
}

/* ── Section structure ── */
.arzt-section {
    margin-top: 5rem;
}

.arzt-section__heading {
    font-family: var(--arzt-font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--arzt-text);
    margin: 0 0 0.5rem;
}

.arzt-section__line {
    width: 50px;
    height: 2px;
    background: var(--arzt-accent);
    margin-bottom: 2.5rem;
    border-radius: 1px;
}

.arzt-section__line--green {
    background: var(--arzt-green);
}

/* ═══════════ HERO ═══════════ */
.arzt-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
    align-items: center;
    padding: 4rem 0 2rem;
}

.arzt-hero__photo-wrap {
    position: relative;
}

.arzt-hero__photo {
    width: 280px;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(122,184,212,0.1);
}

.arzt-hero__label {
    font-family: var(--arzt-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--arzt-accent);
    margin-bottom: 1rem;
}

.arzt-hero__name {
    font-family: var(--arzt-font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--arzt-text);
}

.arzt-hero__title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--arzt-accent);
    margin: 0 0 0.4rem;
}

.arzt-hero__position {
    font-size: 0.95rem;
    color: var(--arzt-text-dim);
    margin: 0 0 1.2rem;
}

.arzt-hero__tagline {
    font-size: 0.85rem;
    color: var(--arzt-text-muted);
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── Hero Action Buttons ── */
.arzt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.arzt-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--arzt-font-body);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s ease;
    border: 1px solid var(--arzt-border);
    color: var(--arzt-text);
    background: var(--arzt-bg-card);
}

.arzt-hero__btn:hover {
    border-color: var(--arzt-accent);
    color: var(--arzt-accent);
    background: rgba(122,184,212,0.08);
    transform: translateY(-1px);
}

.arzt-hero__btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.arzt-hero__btn:hover svg {
    opacity: 1;
}

.arzt-hero__btn--email:hover {
    border-color: var(--arzt-accent);
    color: var(--arzt-accent);
}

.arzt-hero__btn--linkedin:hover {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10,102,194,0.08);
}

.arzt-hero__btn--linkedin:hover svg {
    fill: #0a66c2;
}

/* ═══════════ PAGE NAV ═══════════ */
.arzt-nav {
    z-index: 100;
    background: rgba(15,20,25,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--arzt-border);
    margin: 0 -2rem;
    padding: 0 2rem;
}

.arzt-nav.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    /* padding set dynamically by JS to match .arzt container */
}

.arzt-nav__spacer {
    display: none;
}

.arzt-nav__spacer.is-active {
    display: block;
}

.arzt-nav__list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.arzt-nav__list::-webkit-scrollbar {
    display: none;
}

.arzt-nav__link {
    display: block;
    padding: 0.85rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--arzt-font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--arzt-text-dim);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.arzt-nav__link:hover {
    color: var(--arzt-text);
}

.arzt-nav__link.active {
    color: var(--arzt-accent);
    border-bottom-color: var(--arzt-accent);
}

/* ═══════════ FOCUS AREAS ═══════════ */
.arzt-focus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.arzt-focus__card {
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.arzt-focus__card:hover {
    border-color: var(--arzt-border-hover);
    background: rgba(245,241,235,0.05);
    transform: translateY(-3px);
}

.arzt-focus__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
}

.arzt-focus__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.75) sepia(1) saturate(3) hue-rotate(155deg);
    opacity: 0.85;
}

.arzt-focus__title {
    font-family: var(--arzt-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    color: var(--arzt-text);
}

.arzt-focus__desc {
    font-size: 0.9rem;
    color: var(--arzt-text-dim);
    margin: 0;
    line-height: 1.6;
}

/* ═══════════ PUBLICATIONS ═══════════ */
.arzt-pub__filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.arzt-pub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arzt-pub__year-filter {
    flex-shrink: 0;
}

.arzt-pub__year-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--arzt-border);
    color: var(--arzt-text-dim);
    padding: 0.4rem 2.2rem 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--arzt-font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a89a8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

.arzt-pub__year-select:hover,
.arzt-pub__year-select:focus {
    border-color: var(--arzt-accent);
    color: var(--arzt-text);
    outline: none;
}

.arzt-pub__year-select option {
    background: var(--arzt-bg, #0f1419);
    color: var(--arzt-text);
}

/* ── Citation sort button ── */
.arzt-pub__sort-citations {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--arzt-border);
    color: var(--arzt-text-dim);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--arzt-font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.arzt-pub__sort-citations:hover {
    border-color: var(--arzt-accent);
    color: var(--arzt-text);
}

.arzt-pub__sort-citations[data-sort="desc"],
.arzt-pub__sort-citations[data-sort="asc"] {
    border-color: var(--arzt-accent);
    color: var(--arzt-accent);
    background: rgba(122,184,212,0.08);
}

.arzt-pub__sort-arrow {
    transition: transform 0.2s ease;
}

.arzt-pub__sort-citations[data-sort="none"] .arzt-pub__sort-arrow {
    opacity: 0.4;
}

.arzt-pub__sort-citations[data-sort="desc"] .arzt-pub__sort-arrow {
    opacity: 1;
}

.arzt-pub__sort-citations[data-sort="asc"] .arzt-pub__sort-arrow {
    opacity: 1;
    transform: rotate(180deg);
}

.arzt-pub__no-results {
    text-align: center;
    color: var(--arzt-text-muted);
    font-style: italic;
    padding: 2rem 0;
}

.arzt-pub__filter {
    background: transparent;
    border: 1px solid var(--arzt-border);
    color: var(--arzt-text-dim);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--arzt-font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.arzt-pub__filter:hover {
    border-color: var(--arzt-accent);
    color: var(--arzt-text);
}

.arzt-pub__filter.active {
    background: var(--arzt-accent);
    border-color: var(--arzt-accent);
    color: #0f1419;
    font-weight: 500;
}

.arzt-pub__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arzt-pub__card {
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.arzt-pub__card:hover {
    border-color: var(--arzt-border-hover);
    background: rgba(245,241,235,0.04);
}

.arzt-pub__card.expanded {
    border-color: var(--arzt-accent);
    background: rgba(245,241,235,0.05);
}

.arzt-pub__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.arzt-pub__title {
    font-family: var(--arzt-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--arzt-text);
    line-height: 1.35;
    flex: 1;
}

.arzt-pub__badges {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.arzt-pub__year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--arzt-accent);
    background: rgba(122,184,212,0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
}

.arzt-pub__citations {
    font-size: 0.7rem;
    color: var(--arzt-text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(245,241,235,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}

.arzt-pub__citations svg {
    opacity: 0.7;
}

.arzt-pub__body {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(122,184,212,0.1);
}

.arzt-pub__card.expanded .arzt-pub__body {
    display: block;
}

.arzt-pub__authors {
    font-size: 0.85rem;
    color: var(--arzt-text-dim);
    margin: 0 0 0.4rem;
    line-height: 1.5;
}

.arzt-pub__journal {
    font-size: 0.85rem;
    color: var(--arzt-text-muted);
    margin: 0 0 0.8rem;
}

.arzt-pub__doi {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--arzt-accent);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--arzt-accent);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.arzt-pub__doi:hover {
    background: var(--arzt-accent);
    color: #0f1419;
}

/* ── Featured publications ── */
.arzt-pub__card--featured {
    border-color: rgba(122,184,212,0.3);
    background: rgba(122,184,212,0.04);
}

.arzt-pub__card--featured:hover {
    border-color: var(--arzt-accent);
}

.arzt-pub__featured-badge {
    display: inline-flex;
    align-items: center;
    color: var(--arzt-accent);
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ═══════════ MEDIA & PRESS ═══════════ */
.arzt-media__type-heading {
    font-family: var(--arzt-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--arzt-text-dim);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--arzt-border);
}

.arzt-media__type-heading:first-of-type {
    margin-top: 0;
}

.arzt-media__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.arzt-media__card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    transition: border-color 0.3s, transform 0.3s;
}

.arzt-media__card:hover {
    border-color: var(--arzt-border-hover);
    transform: translateY(-2px);
}

.arzt-media__visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0c0f;
}

.arzt-media__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.arzt-media__card:hover .arzt-media__thumb {
    transform: scale(1.04);
}

.arzt-media__video {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.arzt-media__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.arzt-media__play:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.arzt-media__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.arzt-media__thumb-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.arzt-media__type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    color: var(--arzt-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

.arzt-media__info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem 0;
    font-size: 0.75rem;
}

.arzt-media__source {
    color: var(--arzt-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.arzt-media__date {
    color: var(--arzt-text-muted);
}

.arzt-media__title {
    font-family: var(--arzt-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    padding: 0 1.25rem;
    line-height: 1.35;
}

.arzt-media__title a {
    color: var(--arzt-text);
    text-decoration: none;
    transition: color 0.2s;
}

.arzt-media__title a:hover {
    color: var(--arzt-accent);
}

.arzt-media__desc {
    font-size: 0.85rem;
    color: var(--arzt-text-dim);
    margin: 0.5rem 0 0;
    padding: 0 1.25rem 1.25rem;
    line-height: 1.5;
}

/* ═══════════ TIMELINE ═══════════ */
.arzt-timeline__track {
    position: relative;
    padding: 1rem 0 2rem;
}

.arzt-timeline__track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--arzt-green-border);
    transform: translateX(-0.5px);
}

.arzt-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.arzt-timeline__dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--arzt-green);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 3px solid var(--arzt-bg);
    box-shadow: 0 0 0 1px var(--arzt-green);
}

.arzt-timeline__card {
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.arzt-timeline__card:hover {
    border-color: var(--arzt-green-border);
}

.arzt-timeline__item--left .arzt-timeline__card {
    grid-column: 1;
    text-align: right;
}

.arzt-timeline__item--right .arzt-timeline__card {
    grid-column: 2;
}

.arzt-timeline__logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.8rem;
    opacity: 0.7;
    filter: grayscale(0.5);
}

.arzt-timeline__institution {
    font-family: var(--arzt-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: var(--arzt-text);
}

.arzt-timeline__role {
    font-size: 0.9rem;
    color: var(--arzt-green);
    margin: 0 0 0.5rem;
}

.arzt-timeline__years {
    font-size: 0.8rem;
    color: var(--arzt-text-dim);
    margin: 0 0 0.3rem;
    font-weight: 500;
}

.arzt-timeline__location {
    font-size: 0.8rem;
    color: var(--arzt-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.arzt-timeline__item--left .arzt-timeline__location {
    justify-content: flex-end;
}

/* ═══════════ AFFILIATIONS ═══════════ */
.arzt-affiliations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.arzt-affiliations__card {
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.arzt-affiliations__card:hover {
    border-color: var(--arzt-border-hover);
    transform: translateY(-2px);
}

.arzt-affiliations__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.75;
    filter: grayscale(0.3);
}

.arzt-affiliations__title {
    font-family: var(--arzt-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: var(--arzt-text);
}

.arzt-affiliations__org {
    font-size: 0.85rem;
    color: var(--arzt-text-dim);
    margin: 0 0 0.8rem;
}

.arzt-affiliations__link {
    font-size: 0.8rem;
    color: var(--arzt-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.arzt-affiliations__link:hover {
    opacity: 0.8;
}

/* ═══════════ ACADEMIC PROFILES ═══════════ */
.arzt-profiles__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.arzt-profiles__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: var(--arzt-bg-card);
    border: 1px solid var(--arzt-border);
    border-radius: 6px;
    color: var(--arzt-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.arzt-profiles__btn:hover {
    border-color: var(--arzt-accent);
    background: rgba(122,184,212,0.08);
    color: var(--arzt-accent);
    transform: translateY(-2px);
}

.arzt-profiles__btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.arzt-profiles__btn:hover svg {
    opacity: 1;
}

/* ═══════════ FOOTER ═══════════ */
.arzt-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--arzt-border);
    text-align: center;
}

.arzt-footer__contact {
    font-size: 0.9rem;
    color: var(--arzt-text-dim);
    margin: 0 0 0.8rem;
    line-height: 1.6;
}

.arzt-footer__link {
    font-size: 0.85rem;
    color: var(--arzt-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.arzt-footer__link:hover {
    opacity: 0.8;
}

/* ═══════════ SCROLL REVEAL ═══════════ */
@keyframes arztFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.arzt [data-reveal] {
    opacity: 0;
}

.arzt [data-reveal].in-view {
    animation: arztFadeUp 0.6s ease forwards;
}

/* ═══════════ LIGHT MODE ═══════════ */
body.light-mode .arzt {
    --arzt-accent: #1a7a9b;
    --arzt-accent-teal: #0a7070;
    --arzt-green: #2e9e6a;
    --arzt-green-dim: rgba(46,158,106,0.10);
    --arzt-green-border: rgba(46,158,106,0.25);
    --arzt-bg: #f8f8f8;
    --arzt-bg-card: rgba(0,0,0,0.025);
    --arzt-border: rgba(0,0,0,0.10);
    --arzt-border-hover: rgba(26,122,155,0.40);
    --arzt-text: rgba(0,0,0,0.85);
    --arzt-text-dim: rgba(0,0,0,0.55);
    --arzt-text-muted: rgba(0,0,0,0.40);
}

/* Page nav */
body.light-mode .arzt-nav {
    background: rgba(248,248,248,0.85);
}

/* Hero photo shadow */
body.light-mode .arzt-hero__photo {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}

/* Focus card hover */
body.light-mode .arzt-focus__card:hover {
    background: rgba(0,0,0,0.04);
}

/* Focus icon filter — invert for light bg */
body.light-mode .arzt-focus__icon img {
    filter: brightness(0) sepia(1) saturate(3) hue-rotate(155deg);
    opacity: 0.75;
}

/* Publication filter active */
body.light-mode .arzt-pub__filter.active {
    color: #fff;
}

body.light-mode .arzt-pub__year-select {
    border-color: var(--arzt-border);
    color: var(--arzt-text-dim);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.light-mode .arzt-pub__year-select option {
    background: #fff;
    color: #2c2c2c;
}

/* Publication card hover & expanded */
body.light-mode .arzt-pub__card:hover {
    background: rgba(0,0,0,0.035);
}
body.light-mode .arzt-pub__card.expanded {
    background: rgba(0,0,0,0.04);
}
body.light-mode .arzt-pub__body {
    border-top-color: rgba(0,0,0,0.08);
}

/* DOI link hover */
body.light-mode .arzt-pub__doi:hover {
    color: #fff;
}

/* Citations badge */
body.light-mode .arzt-pub__citations {
    background: rgba(0,0,0,0.04);
    color: var(--arzt-text-dim);
}

/* Year badge */
body.light-mode .arzt-pub__year {
    color: var(--arzt-accent);
    background: rgba(26,122,155,0.10);
}

/* Media card */
body.light-mode .arzt-media__type-badge {
    background: rgba(255,255,255,0.85);
    color: var(--arzt-accent);
}

/* Citation sort active */
body.light-mode .arzt-pub__sort-citations[data-sort="desc"],
body.light-mode .arzt-pub__sort-citations[data-sort="asc"] {
    background: rgba(26,122,155,0.08);
}

/* Featured publication */
body.light-mode .arzt-pub__card--featured {
    border-color: rgba(26,122,155,0.25);
    background: rgba(26,122,155,0.03);
}

/* Hero buttons */
body.light-mode .arzt-hero__btn:hover {
    background: rgba(26,122,155,0.06);
}

body.light-mode .arzt-hero__btn--linkedin:hover {
    background: rgba(10,102,194,0.06);
}

/* Profile buttons */
body.light-mode .arzt-profiles__btn:hover {
    background: rgba(26,122,155,0.08);
}

/* Timeline dot border */
body.light-mode .arzt-timeline__dot {
    border-color: var(--arzt-bg);
}

/* Timeline logo filter */
body.light-mode .arzt-timeline__logo {
    filter: none;
    opacity: 0.85;
}

/* Affiliations logo */
body.light-mode .arzt-affiliations__logo {
    filter: none;
    opacity: 0.85;
}

/* ═══════════ RESPONSIVE ═══════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .arzt-hero {
        gap: 2.5rem;
    }

    .arzt-hero__photo {
        width: 220px;
        height: 280px;
    }

    .arzt-timeline__item {
        gap: 2rem;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .arzt {
        padding: 0 1.25rem 3rem;
    }

    .arzt-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .arzt-hero__photo-wrap {
        display: flex;
        justify-content: center;
    }

    .arzt-hero__photo {
        width: 200px;
        height: 240px;
    }

    .arzt-hero__name {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .arzt-hero__title {
        font-size: 0.95rem;
    }

    .arzt-hero__position {
        font-size: 0.88rem;
    }

    .arzt-hero__tagline {
        font-size: 0.8rem;
    }

    .arzt-hero__actions {
        justify-content: center;
    }

    .arzt-nav {
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
    }

    .arzt-nav__link {
        font-size: 0.72rem;
        padding: 0.7rem 0.8rem;
    }

    .arzt-section {
        margin-top: 3.5rem;
    }

    .arzt-section__heading {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .arzt-focus__grid {
        grid-template-columns: 1fr;
    }

    .arzt-focus__card {
        padding: 1.5rem;
    }

    .arzt-focus__title {
        font-size: 1.1rem;
    }

    .arzt-focus__desc {
        font-size: 0.88rem;
    }

    .arzt-media__grid {
        grid-template-columns: 1fr;
    }

    .arzt-media__title {
        font-size: 1rem;
    }

    .arzt-media__desc {
        font-size: 0.82rem;
    }

    .arzt-pub__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .arzt-pub__badges {
        align-self: flex-start;
    }

    .arzt-pub__title {
        font-size: 0.95rem;
    }

    .arzt-pub__authors {
        font-size: 0.82rem;
    }

    .arzt-pub__journal {
        font-size: 0.82rem;
    }

    .arzt-pub__filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .arzt-pub__filters {
        gap: 0.4rem;
    }

    .arzt-pub__filter {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .arzt-pub__year-select {
        font-size: 0.75rem;
        padding: 0.35rem 1.8rem 0.35rem 0.8rem;
    }

    .arzt-pub__sort-citations {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    /* Timeline: single column */
    .arzt-timeline__track::before {
        left: 18px;
    }

    .arzt-timeline__item {
        grid-template-columns: 1fr;
        padding-left: 40px;
    }

    .arzt-timeline__dot {
        left: 18px;
    }

    .arzt-timeline__item--left .arzt-timeline__card,
    .arzt-timeline__item--right .arzt-timeline__card {
        grid-column: 1;
        text-align: left;
    }

    .arzt-timeline__item--left .arzt-timeline__location {
        justify-content: flex-start;
    }

    .arzt-timeline__card {
        padding: 1.2rem;
    }

    .arzt-timeline__institution {
        font-size: 1.05rem;
    }

    .arzt-timeline__role {
        font-size: 0.85rem;
    }

    .arzt-affiliations__grid {
        grid-template-columns: 1fr;
    }

    .arzt-affiliations__card {
        padding: 1.2rem;
    }

    .arzt-affiliations__title {
        font-size: 1rem;
    }

    .arzt-profiles__links {
        flex-direction: column;
    }

    .arzt-profiles__btn {
        justify-content: center;
    }

    .arzt-footer {
        margin-top: 3.5rem;
    }

    .arzt-footer__contact {
        font-size: 0.85rem;
    }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
    .arzt {
        padding: 0 1rem 2.5rem;
    }

    .arzt-hero__name {
        font-size: 1.6rem;
    }

    .arzt-nav {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .arzt-hero__photo {
        width: 160px;
        height: 200px;
    }

    .arzt-hero__title {
        font-size: 0.88rem;
    }

    .arzt-hero__position {
        font-size: 0.82rem;
    }

    .arzt-hero__tagline {
        font-size: 0.75rem;
    }

    .arzt-pub__card {
        padding: 1rem;
    }

    .arzt-pub__title {
        font-size: 0.9rem;
    }

    .arzt-focus__card {
        padding: 1.25rem;
    }

    .arzt-timeline__card {
        padding: 1rem;
    }

    .arzt-timeline__institution {
        font-size: 0.95rem;
    }

    .arzt-section {
        margin-top: 3rem;
    }
}
