/* Portrait windows belong to every tutor; Spotlight adds a burgundy mount. */
.tutor-portrait-frame {
 position:relative; padding:5px; border:1px solid #b49662;
 border-radius:50% 50% 7px 7px / 116px 116px 7px 7px;
 background:linear-gradient(125deg,#baa176,#eee0be 36%,#c4a575 72%,#ad8e5b);
 box-shadow:0 0 0 5px #c7a76a0b,0 10px 24px #4d1f2912;
}
.editorial-card .tutor-portrait-frame .card-portrait { height:288px; border-radius:50% 50% 3px 3px / 110px 110px 3px 3px; }
.tutor-portrait-frame .gallery-stage { border-radius:inherit; overflow:hidden; }
.editorial-card .tutor-portrait-frame .portrait { object-position:center 27%; }
.website-portrait {
 position:relative; padding:7px; border:1px solid #b49662;
 border-radius:50% 50% 9px 9px / 39% 39% 9px 9px;
 background:linear-gradient(125deg,#baa176,#eee0be 36%,#c4a575 72%,#ad8e5b);
 box-shadow:0 0 0 7px #c7a76a0b,0 16px 36px #4d1f2914;
}
.website-portrait > .portrait,.website-portrait > .photo-gallery { border-radius:50% 50% 3px 3px / 39% 39% 3px 3px; overflow:hidden; }
.website-portrait .photo-gallery .gallery-stage { border-radius:inherit; overflow:hidden; }

/* Place frames communicate context: university colour, college sandstone. */
[data-university=oxford] { --university-frame:#344958; }
[data-university=cambridge] { --university-frame:#734452; }
.editorial-card .university-identity { border:5px solid var(--university-frame,#59434a); box-shadow:0 0 0 1px #bba17a80; }
.editorial-card .university-banner { border:1px solid #eadbb99c; }
.editorial-card .university-crest { border:1px solid #bcaa8b; }
.editorial-card .card-college-photo { border:1px solid #a78d68; padding:4px; background:#d9c8aa; box-shadow:0 2px 6px #49352512; }
.editorial-card .card-college-photo::after { inset:4px; }
.editorial-card .card-college-photo img { border-radius:1px; }
.academic-photo[data-frame] { padding:6px; border:1px solid #ae9670; background:#d9c8aa; }
.academic-photo[data-frame=university] { padding:7px; border-color:#bca47c; background:var(--university-frame,#59434a); }
.academic-photo[data-frame] img { box-shadow:0 0 0 1px #fff9eb80; }
.education-college-preview img { border:4px solid #d9c8aa; outline:1px solid #ae9670; outline-offset:-1px; }

.tutor-card.editorial-card.is-spotlight {
 --spotlight-mat:10px; padding:var(--spotlight-mat); background:#471e2a;
 border:1px solid #8d6c5a; border-radius:13px;
 box-shadow:inset 0 0 0 2px #6d4650,inset 0 0 0 3px #c0a16b8c,0 16px 44px #421b2b17;
}
.is-spotlight .card-layout { background:#fffdf8; border-radius:4px; box-shadow:0 0 0 1px #c5aa7f; }
.is-spotlight .card-collapse-bar { background:#fffdf8; border-radius:0 0 4px 4px; }
.is-spotlight.is-expanded .card-layout { border-radius:4px 4px 0 0; }
.is-spotlight .spotlight-sheen {
 position:absolute; inset:0; z-index:4; pointer-events:none; border-radius:12px;
 padding:var(--spotlight-mat);
 background:linear-gradient(115deg,transparent 20%,#fce8b21f 34%,#fff2cf99 49%,#e3bd811f 65%,transparent 80%);
 background-size:300% 100%; background-position:150% 0; opacity:0;
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 mask-composite:exclude;
}
.card-spotlight-topline { margin-bottom:15px; }
.editorial-card .card-spotlight-topline .listing-label {
 display:inline-flex; align-items:center; gap:8px; min-height:34px; margin:0; padding:6px 11px;
 border:1px solid #b39561; border-radius:3px;
 background:linear-gradient(110deg,#d1b982,#f6e7be 42%,#d1b47c 75%,#e5d2a6);
 box-shadow:inset 0 1px 0 #fff8dfcc,0 2px 5px #5b302d0d;
 color:#4a252b; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
}
.is-spotlight .listing-label img { flex:none; width:18px; height:18px; }
@keyframes spotlight-soft-shine {
 0% { background-position:150% 0; opacity:0; }
 25% { opacity:.5; }
 65% { opacity:.5; }
 100% { background-position:-50% 0; opacity:0; }
}
@media(prefers-reduced-motion:no-preference) {
 .has-spotlight-shine .spotlight-sheen { animation:spotlight-soft-shine 4.8s cubic-bezier(.4,0,.2,1) 1 both; }
}
@media(max-width:1100px) {
 .tutor-portrait-frame { border-top-left-radius:50% 100px; border-top-right-radius:50% 100px; }
 .editorial-card .tutor-portrait-frame .card-portrait { height:248px; border-top-left-radius:50% 94px; border-top-right-radius:50% 94px; }
}
@media(max-width:640px) {
 .tutor-card.editorial-card.is-spotlight { --spotlight-mat:8px; padding:var(--spotlight-mat); border-radius:11px; }
 .editorial-card .card-layout { grid-template-columns:104px minmax(0,1fr); gap:0 14px; }
 .tutor-portrait-frame { grid-column:1; grid-row:2; align-self:start; width:104px; padding:4px; border-top-left-radius:50% 56px; border-top-right-radius:50% 56px; box-shadow:0 0 0 4px #c7a76a0b,0 8px 18px #4d1f2910; }
 .tutor-card.editorial-card .tutor-portrait-frame .card-portrait { width:100%; height:128px; margin:0; border-top-left-radius:50% 51px; border-top-right-radius:50% 51px; }
 .tutor-card.editorial-card.has-gallery .tutor-portrait-frame .card-portrait { height:216px; }
 .editorial-card .tutor-portrait-frame .gallery-stage,.editorial-card .tutor-portrait-frame .gallery-slide { height:128px; }
 .editorial-card .card-identity h3 { font-size:25px; }
 .editorial-card .university-identity { border-width:4px; }
 .editorial-card .university-banner-label { left:14px; bottom:14px; }
 .card-spotlight-topline { margin-bottom:12px; }
 .editorial-card .card-spotlight-topline .listing-label { gap:5px; padding:5px 7px; min-height:29px; font-size:8px; letter-spacing:.075em; }
 .is-spotlight .listing-label img { width:14px; height:14px; }
 .website-portrait { padding:5px; }
}
@media(max-width:360px) {
 .editorial-card .card-layout { grid-template-columns:104px minmax(0,1fr); gap:0 12px; padding:14px; }
 .editorial-card .card-identity h3 { font-size:23px; }
}
