.programa-page{--programa-blue:#1e4096;--programa-red:#c8102e;--programa-ink:#18243a;--programa-muted:#536176;color:var(--programa-ink);overflow-wrap:anywhere}
.programa-shell{width:min(100% - 3rem,1200px);margin-inline:auto;min-width:0}
.programa-hero{background:linear-gradient(115deg,#f5f7fb 0%,#fff 72%);border-bottom:1px solid #e4e9f1}
.programa-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(2rem,5vw,5rem);align-items:center;padding-block:clamp(2rem,5vw,4.5rem)}
.programa-hero-sem-foto{grid-template-columns:minmax(0,1fr);max-width:1000px}
.programa-kicker{display:inline-flex;gap:.6rem;flex-wrap:wrap;font-size:.76rem;line-height:1.7;letter-spacing:.075em;font-weight:700;text-transform:uppercase;color:var(--programa-blue);text-decoration:none}
.programa-kicker span{color:var(--programa-red)}
.programa-hero h1{font-family:var(--font-heading,inherit);font-weight:800;font-size:clamp(2.7rem,5.5vw,4.8rem);line-height:1.04;letter-spacing:-.025em;margin:1rem 0 1.5rem;color:var(--programa-ink);max-width:12ch}
.programa-red-rule{display:block;background:var(--programa-red);width:4.5rem;height:4px;margin-bottom:1.75rem}
.programa-lead{font-size:clamp(1.1rem,1.8vw,1.4rem);line-height:1.7;color:var(--programa-muted);max-width:42ch;margin:0}
.programa-hero-actions{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap;margin-top:2rem}
.programa-primary{display:inline-flex;align-items:center;justify-content:center;gap:.75rem;background:var(--programa-blue);color:#fff;padding:.9rem 1.2rem;min-height:48px;font-size:.92rem;font-weight:700;border-radius:4px;text-decoration:none}
.programa-primary:hover{background:#172f6e}.programa-photo-hint{font-size:.78rem;color:var(--programa-muted);display:inline-flex;align-items:center;gap:.4rem}
.programa-cover{min-width:0;margin:0;background:white;border:1px solid #dce4ef;border-radius:8px;overflow:hidden;box-shadow:0 20px 45px -30px #142c5d66}
.programa-cover-image{display:block;position:relative;background:#e9eef6;overflow:hidden}
.programa-cover img{width:100%;height:clamp(360px,42vw,540px);object-fit:contain;display:block}
.programa-zoom-label{position:absolute;right:.75rem;bottom:.75rem;background:#fff;color:var(--programa-blue);font-size:.74rem;line-height:1.4;padding:.55rem .7rem;border-radius:3px;display:inline-flex;align-items:center;gap:.4rem;box-shadow:0 2px 8px #18243a22}
.programa-cover figcaption{padding:1rem 1.15rem;font-size:.8rem;line-height:1.7;color:var(--programa-muted);border-top:1px solid #e4e9f1}
.programa-reading-grid{display:grid;grid-template-columns:minmax(0,1fr) 17rem;gap:clamp(2.5rem,6vw,6rem);padding-block:clamp(2.5rem,6vw,5rem);align-items:start;scroll-margin-top:180px}
.programa-body{font-size:1.0625rem;line-height:1.9;min-width:0;max-width:70ch}
.programa-body p{margin:0 0 1.4rem;color:#435066;text-align:left}
.programa-body h2{color:var(--programa-blue);font-size:clamp(1.55rem,2.7vw,2rem);line-height:1.25;margin:2.6rem 0 1rem;font-weight:800;scroll-margin-top:180px}
.programa-body>:first-child{margin-top:0}
.programa-body .programa-figure{margin:2rem 0;background:#f7f9fc;border:1px solid #dce4ef;border-radius:6px;overflow:hidden}
.programa-body .programa-figure img{display:block;width:100%;max-width:100%;height:auto!important;object-fit:contain!important;margin:0!important;border-radius:0}
.programa-body .programa-figure figcaption{font-size:.84rem;line-height:1.75;color:var(--programa-muted);padding:1rem 1.25rem;background:#fff;border-top:1px solid #e4e9f1}
.programa-photo-link{display:block;cursor:zoom-in}.programa-body .uz-editor-button{margin-top:.5rem}
.programa-sidebar{position:sticky;top:calc(var(--navbar-h,90px) + var(--topnav-h,40px) + 24px);min-width:0;border-top:3px solid var(--programa-red);padding-top:1.3rem}
.programa-aside-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;font-weight:700;color:var(--programa-muted);margin:0 0 .4rem}
.programa-sidebar h2,.programa-index summary{font-size:1.4rem;font-weight:800;color:var(--programa-ink);margin:0 0 1rem}
.programa-sidebar ol{list-style:none;padding:0;margin:0}.programa-sidebar li{border-bottom:1px solid #e4e9f1}
.programa-sidebar li a{display:block;padding:.75rem 0;font-size:.87rem;line-height:1.6;color:var(--programa-muted);text-decoration:none}
.programa-sidebar li a:hover{color:var(--programa-blue)}
.programa-related{display:flex;flex-direction:column;gap:.75rem;margin-top:2rem;padding:1.25rem;background:#eef3fb;border:1px solid #dce4ef;border-radius:5px;color:var(--programa-blue);text-decoration:none}
.programa-related>span:first-child{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase}.programa-related strong{font-size:1.12rem;line-height:1.45}.programa-related-link{font-size:.82rem;font-weight:700;display:flex;gap:.5rem;align-items:center}
.programa-lightbox{width:min(100% - 2rem,1200px);max-height:94dvh;border:0;border-radius:6px;padding:1rem;background:#fff;color:var(--programa-ink);margin:auto;overflow:auto}
.programa-lightbox::backdrop{background:#071328dd}.programa-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.programa-lightbox-toolbar h2{font-size:1rem;font-weight:700}.programa-lightbox-close{min-width:44px;min-height:44px;border:1px solid #dce4ef;border-radius:4px;font-size:1.8rem;line-height:1;cursor:pointer}.programa-lightbox>img{display:block;max-width:100%;width:auto;max-height:72dvh;object-fit:contain;margin:auto}.programa-lightbox-caption{font-size:.85rem;line-height:1.7;color:var(--programa-muted);margin:.75rem 0 0}
.programa-page a:focus-visible,.programa-page button:focus-visible{outline:3px solid var(--programa-red);outline-offset:4px}
@media(max-width:900px){.programa-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:2rem}.programa-reading-grid{grid-template-columns:minmax(0,1fr)}.programa-sidebar{position:static;order:-1}.programa-sidebar ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}.programa-related{display:none}}
@media(max-width:600px){.programa-shell{width:calc(100% - 2rem)}.programa-hero-grid{grid-template-columns:minmax(0,1fr);padding-block:2rem;gap:2rem}.programa-hero h1{font-size:2.9rem;max-width:none}.programa-cover img{height:410px}.programa-sidebar ol{grid-template-columns:minmax(0,1fr)}.programa-hero-actions{gap:1rem}.programa-primary{width:100%}.programa-body{font-size:1rem;line-height:1.85}.programa-body h2{margin-top:2rem}.programa-lightbox{padding:.75rem}.programa-cover figcaption,.programa-body .programa-figure figcaption{padding:.9rem 1rem}}
@media(prefers-reduced-motion:reduce){.programa-page{scroll-behavior:auto}}

.programa-index summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer}.programa-index summary::-webkit-details-marker{display:none}.programa-index summary i{font-size:.8rem}.programa-index[open] summary i{transform:rotate(180deg)}.programa-index summary:focus-visible{outline:3px solid #c8102e;outline-offset:4px}

.programa-hero h1{max-width:22ch;font-size:clamp(2.2rem,4.7vw,4rem)}
.programa-hero-sem-foto{max-width:1200px;padding-block:3.25rem}.programa-hero-sem-foto .programa-lead{max-width:65ch}.programa-location{font-size:.85rem;color:#536176;margin-top:1rem;display:block}
.programa-directorio .programa-reading-grid{grid-template-columns:minmax(0,1fr)}.programa-directorio .programa-body{max-width:none}
.programa-unit-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin:1.5rem 0 3rem}.programa-unit-cards>a{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;border:1px solid #dce4ef;border-top:3px solid #c8102e;border-radius:6px;text-decoration:none;background:#f6f8fc;color:#1e4096;min-width:0}.programa-unit-cards strong{font-size:1.35rem;line-height:1.4}.programa-unit-cards span{font-size:.85rem}.programa-unit-cards a:hover{background:#eaf0fb}
.programa-investigacao .programa-hero{background:linear-gradient(115deg,#142e6e,#1e4096)}.programa-investigacao .programa-hero h1,.programa-investigacao .programa-kicker{color:white}.programa-investigacao .programa-lead{color:#e1e8f6}.programa-investigacao .programa-primary{background:white;color:#1e4096}
.programa-body ul{list-style:disc;padding-left:1.5rem;margin-bottom:1.5rem}.programa-body li{margin-bottom:.65rem}.programa-body a{color:#1e4096}.programa-body a.uz-editor-button{display:inline-flex;padding:.8rem 1rem;background:#1e4096;color:#fff;border-radius:4px;text-decoration:none}.programa-body table{display:block;max-width:100%;overflow-x:auto}
.doutorandos-directory{border-top:1px solid #dce4ef;padding-block:3rem;margin-bottom:1rem;scroll-margin-top:170px}.doutorandos-directory h2{font-size:clamp(1.7rem,3vw,2.3rem);color:#1e4096;font-weight:800;margin-bottom:1rem}.doutorandos-filter{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0}.doutorandos-filter label{flex:1 1 240px}.doutorandos-filter input{display:block;border:1px solid #cbd5e1;padding:.8rem;width:100%;border-radius:4px}.doutorandos-filter button{align-self:flex-end}.doutorandos-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.doutorando-card{display:flex;flex-direction:column;gap:.7rem;padding:1.5rem;border:1px solid #dce4ef;border-radius:6px;min-width:0}.doutorando-card h3{font-size:1.25rem;color:#1e4096;font-weight:700}.doutorando-card p{font-size:.9rem;line-height:1.7;color:#536176}.doutorando-card>a{color:#1e4096;font-size:.9rem;font-weight:700;margin-top:auto}.doutorando-card img,.doutorando-avatar{height:64px;width:64px;border-radius:50%;object-fit:cover}.doutorando-avatar{display:grid;place-items:center;background:#edf2fb;color:#1e4096;font-weight:800}.doutorandos-empty{padding:2rem;background:#f5f7fb;border:1px solid #e4e9f1;line-height:1.8;color:#536176}.doutorandos-pager{display:flex;justify-content:center;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:2rem}.doutorandos-pager a{border:1px solid #dce4ef;padding:.65rem .9rem;color:#1e4096}
@media(max-width:900px){.programa-unit-cards,.doutorandos-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.programa-unit-cards,.doutorandos-cards{grid-template-columns:minmax(0,1fr)}.programa-hero h1{font-size:2.35rem}.programa-hero-sem-foto{padding-block:2rem}}

/* Fotografias de actividades mantêm a sua proporção natural. */
.programa-cover img{height:auto;max-height:540px;object-fit:contain}
