/* N-ERGISE 2026: Meet the team (views/team.twig): the original design, in the 2026 fonts */
.tm-wrap{font-family:'Inter',system-ui,sans-serif;max-width:1100px;margin:0 auto;padding:10px 20px 60px;position:relative;z-index:0;}
.tm-lead{text-align:center;color:#555;max-width:620px;margin:0 auto 26px;font-size:16px;line-height:1.6;}
.tm-tiles{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));max-width:calc(var(--n,3) * 360px);margin-left:auto!important;margin-right:auto!important;gap:22px;margin:10px 0 20px;}
@media(max-width:760px){.tm-tiles{grid-template-columns:1fr;}}
.tm-tile{position:relative;border:0;border-radius:8px;overflow:hidden;cursor:pointer;aspect-ratio:4/5;color:#fff;text-align:left;padding:0;font-family:inherit;transition:transform .25s ease,box-shadow .25s ease;box-shadow:0 4px 14px rgba(0,0,0,.12);}
.tm-tile:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(0,0,0,.2);}
.tm-tile.is-active{outline:4px solid #fff;box-shadow:0 0 0 6px currentColor,0 10px 26px rgba(0,0,0,.25);}
.tm-tile-img{position:absolute;inset:0;}
.tm-tile-img img{width:100%;height:100%;object-fit:cover;}
.tm-tile-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 100%);}
.tm-tile-body{position:absolute;left:0;right:0;bottom:0;padding:20px;}
.tm-tile-name{font-size:24px;font-weight:700;line-height:1.1;margin:0;color:#fff;}
.tm-tile-meta{font-size:13px;opacity:.9;margin:6px 0 0;display:flex;align-items:center;gap:8px;color:#fff;}
.tm-stage-head{text-align:center;margin:10px 0 6px;}
.tm-stage-unit{font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;}
.tm-stage-title{font-size:26px;font-weight:700;color:#17459E;margin:2px 0 0;}
.tm-carousel{position:relative;}
.tm-track{display:flex;gap:26px;overflow-x:auto;scroll-snap-type:x mandatory;padding:34px calc(50% - 125px) 30px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.tm-track::-webkit-scrollbar{display:none;}
.tm-slide{flex:0 0 250px;scroll-snap-align:center;transition:opacity .2s linear;transform-origin:center 60%;will-change:transform;cursor:pointer;}
.tm-card{background:#fff;border:1px solid #e7e7e7;border-radius:10px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.10);}
.tm-photo{aspect-ratio:3/3.4;display:flex;align-items:center;justify-content:center;}
.tm-info{padding:16px 18px 20px;text-align:center;}
.tm-name{font-size:19px;font-weight:700;color:#17459E;margin:0;}
.tm-role{font-size:14px;color:#6D6D6D;margin:5px 0 0;}
.tm-readmore{font-size:12px;font-weight:700;color:#17459E;margin:8px 0 0;text-transform:uppercase;letter-spacing:.5px;}
.tm-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;background:#17459E;color:#fff;font-size:22px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.22);z-index:200;display:flex;align-items:center;justify-content:center;}
.tm-nav:hover{background:#103B8D;}
.tm-prev{left:6px;}.tm-next{right:6px;}
.tm-hint{text-align:center;color:#8A97AB;font-size:13px;margin:2px 0 0;}
.tm-profile{max-width:860px;margin:22px auto 0;}
.tm-profile-card{display:flex;gap:26px;background:#fff;border:1px solid #e7e7e7;border-radius:12px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.10);}
.tm-profile-photo{flex:0 0 230px;}
.tm-profile-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.tm-profile-photo svg{width:100%;height:100%;display:block;}
.tm-profile-body{padding:24px 28px;flex:1;}
.tm-profile-name{font-size:25px;font-weight:700;color:#17459E;line-height:1.1;}
.tm-profile-role{font-size:15px;font-weight:700;margin:3px 0 14px;color:#17459E;}
.tm-profile-bio{font-size:15px;line-height:1.65;color:#444;}
.tm-profile-bio p{margin:0 0 12px;}
.tm-profile-bio p:last-child{margin-bottom:0;}
@media(max-width:640px){.tm-profile-card{flex-direction:column;}.tm-profile-photo{flex:none;aspect-ratio:3/2;}}
.tm-seo-unit{margin:0 0 30px;}
.tm-seo-person{display:flex;gap:18px;align-items:flex-start;margin:0 0 22px;max-width:760px;}
.tm-seo-person img{width:120px;height:135px;object-fit:cover;border-radius:8px;flex:none;}
.tm-seo-name{font-size:19px;font-weight:700;color:#17459E;margin:0;}
.tm-seo-role{font-size:14px;color:#6D6D6D;margin:2px 0 8px;}

/* fit the original cards to the 2026 brand (colours, borders, corners); layout and behaviour unchanged */
.tm-lead{color:#3E4A5F}
.tm-tile{border-radius:14px}
.tm-stage-title,.tm-name,.tm-profile-name{color:var(--n26-navy);font-weight:800;letter-spacing:-.01em}
.tm-stage-unit{color:var(--n26-blue)}
.tm-card,.tm-profile-card{border-color:#E3E8F1;border-radius:14px;box-shadow:0 24px 44px -26px rgba(11,37,89,.35)}
.tm-role{color:var(--n26-grey)}
.tm-readmore{color:var(--n26-red)}
.tm-profile-role{color:var(--n26-blue)}
.tm-profile-bio{color:#3E4A5F}
.tm-nav{background:var(--n26-blue)}
.tm-nav:hover{background:var(--n26-navy)}

/* the unit's flag in the corner of each tile, card and profile photo (30 Nov 2026) */
.tm-photo,.tm-profile-photo{position:relative}
.tm-flag{position:absolute;top:10px;right:10px;z-index:3;width:36px;line-height:0;border-radius:3px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.6)}
.tm-flag svg{display:block;width:100%;height:auto}
.tm-tile .tm-flag{top:14px;right:14px;width:46px}
.tm-profile-photo .tm-flag{width:42px}
/* the profile pop-up (Martyn, 1 Dec 2026): opens in the middle of the screen when a person is clicked */
.tm-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.tm-modal[hidden]{display:none}
.tm-modal-back{position:absolute;inset:0;background:rgba(11,37,89,.55);backdrop-filter:blur(2px)}
.tm-modal-box{position:relative;width:min(900px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;animation:tmPop .18s ease-out}
.tm-modal-body{overflow:auto;min-height:0;border-radius:14px;overscroll-behavior:contain}
.tm-profile-bio ul{list-style:disc;padding-left:20px;margin:0 0 12px}.tm-profile-bio li{margin:0 0 4px}
.tm-modal-box .tm-profile-card{margin:0;box-shadow:0 30px 70px -20px rgba(11,37,89,.6)}
.tm-modal-x{position:absolute;top:12px;right:12px;z-index:2;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--n26-navy,#0b2559);display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 10px rgba(11,37,89,.2)}
.tm-modal-x:hover,.tm-modal-x:focus-visible{background:#EC312B;color:#fff;outline:none}
.tm-modal-nav{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 0 2px;color:#fff;font-weight:700;font-size:14px}
.tm-modal-nav button{width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--n26-navy,#0b2559);display:grid;place-items:center;cursor:pointer}
.tm-modal-x svg,.tm-modal-nav svg{display:block}
/* every profile photo the same shape at the top of the card, however long the bio (Jake, 2 Dec 2026) */
.tm-modal .tm-profile-card{align-items:stretch;height:min(540px,calc(100vh - 140px))}
.tm-modal .tm-profile-photo{flex:0 0 300px;align-self:stretch}
/* a long bio scrolls inside the card, so every profile is the same size (Jake, 2 Dec 2026: "Don't cut his bio, give it a scrollbar") */
.tm-modal .tm-profile-body{padding-right:64px;display:flex;flex-direction:column;min-height:0}
.tm-modal .tm-profile-bio{flex:1;min-height:0;overflow-y:auto;padding-right:12px;margin-right:-12px;scrollbar-width:thin;scrollbar-color:#9fb3d6 transparent;overscroll-behavior:contain}
.tm-modal .tm-profile-bio::-webkit-scrollbar{width:6px}.tm-modal .tm-profile-bio::-webkit-scrollbar-thumb{background:#9fb3d6;border-radius:3px}
.tm-modal-nav button:hover,.tm-modal-nav button:focus-visible{background:#EC312B;color:#fff;outline:none}
html.tm-modal-on{overflow:hidden}
@keyframes tmPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:640px){.tm-modal .tm-profile-card{align-items:stretch;height:calc(100dvh - 110px)}.tm-modal .tm-profile-photo{flex:none;width:100%;aspect-ratio:auto;height:38%}.tm-modal .tm-profile-body{padding-right:28px}.tm-modal{padding:12px}.tm-modal-box{max-height:calc(100dvh - 24px)}.tm-modal-box .tm-profile-photo{aspect-ratio:4/3}}
@media (prefers-reduced-motion:reduce){.tm-modal-box{animation:none}}
