/* © TechNext Pte. Ltd. (technext.asia). All rights reserved. */
/* Team profile pages, team/<slug>.html (22 Oct 2026, owner: "each employee have different own page"). Generated by
   _src/team_pages.py from _src/advisors.py. Sits on home-fx.css: the glass tokens and the .pf-* avatar, ring, stats and
   skill chips come from there. Light theme only; no icon tiles; skills as chips, Odoo apps with their flat icons. */

/* ---------------------------------------------------------------- hero: who, role, office, bio + an at-a-glance card */
.tp-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.tp-copy { min-width: 0; padding-top: 6px; }
.tp-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; margin: 20px 0 20px; }
.tp-page .tp-ava { width: 120px; height: 120px; }
.tp-page .tp-ava .pf-ini { font-size: 40px; }
.tp-head h1 { margin: 0; font: 800 clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.tp-role { margin: 8px 0 0; font: 700 1.15rem/1.3 var(--font-body); color: var(--blue-700); }
.tp-head .pf-office { margin-top: 6px; font-size: 15px; }
.tp-bio { max-width: 62ch; }
.tp-act { margin-top: 26px; }
.tp-card { position: relative; padding: 26px; border-radius: 24px; background: var(--fx-glass); border: 1px solid var(--fx-edge);
  box-shadow: var(--fx-depth); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.tp-card-h { margin: 0 0 14px; font: 800 1.05rem/1.3 var(--font-display); color: var(--ink); }
.tp-page .tp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-sum { margin: 18px 0 12px; font-size: 15px; line-height: 1.4; color: var(--body); }
.tp-sum b { margin-right: 4px; font: 800 26px/1 var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.tp-areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-areas a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid #DCE3F1;
  font: 600 13px/1.2 var(--font-body); color: var(--ink); text-decoration: none; transition: border-color .25s var(--fx-ease), color .25s var(--fx-ease); }
.tp-areas a:hover { border-color: var(--blue-300); color: var(--blue-700); text-decoration: none; }
.tp-areas a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- skills: one glass panel per area, every skill shown */
.tp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.tp-group { padding: 20px 22px 22px; border-radius: 20px; background: var(--fx-glass); border: 1px solid var(--fx-edge); box-shadow: var(--fx-depth); }
.tp-group h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; font: 800 17px/1.25 var(--font-display); color: var(--ink); }
.tp-group h3 span { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--blue-050); font: 700 12.5px/1 var(--font-body); color: var(--blue-700); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the rest of the team */
.tp-mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tp-mate { display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--fx-glass); border: 1px solid var(--fx-edge); color: inherit; text-decoration: none;
  transition: transform .3s var(--fx-ease), border-color .3s var(--fx-ease), box-shadow .3s var(--fx-ease); }
.tp-mate:hover { transform: translateY(-3px); border-color: var(--blue-300); box-shadow: var(--fx-depth-h); text-decoration: none; }
.tp-mate:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tp-page .tp-mate-ava { width: 52px; height: 52px; }
.tp-page .tp-mate-ava .pf-ini { font-size: 17px; }
.tp-mate b { display: block; font: 700 15.5px/1.3 var(--font-display); color: var(--ink); }
.tp-mate small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--body); }
.tp-mate .ic { width: 18px; height: 18px; color: var(--blue); }
.tp-all { margin: 22px 0 0; }

@media (max-width: 960px) {
  .tp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .tp-head { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .tp-page .tp-ava { width: 84px; height: 84px; }
  .tp-page .tp-ava .pf-ini { font-size: 28px; }
  .tp-groups { grid-template-columns: minmax(0, 1fr); }
  .tp-card { padding: 20px; }
  .tp-act .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tp-mate, .tp-areas a { transition: none; } .tp-mate:hover { transform: none; } }

/* bigger profile circle (owner 22 Oct 2026) */
.tp-head { grid-template-columns: 180px minmax(0, 1fr); }
.tp-page .tp-ava { width: 180px; height: 180px; }
.tp-page .tp-ava .pf-ini { font-size: 60px; }
@media (max-width: 600px) {
  .tp-head { grid-template-columns: 120px minmax(0, 1fr); }
  .tp-page .tp-ava { width: 120px; height: 120px; }
  .tp-page .tp-ava .pf-ini { font-size: 40px; }
}

/* "For BIR compliance" panel leads the skills (owner 22 Oct 2026) */
.tp-group:has(.pf-skills--bir) { background: linear-gradient(180deg, rgba(232,245,238,.95), rgba(255,255,255,.85)); border-color: rgba(19,122,74,.25); }
.tp-group:has(.pf-skills--bir) h3 { color: #0F5C38; }
.tp-group:has(.pf-skills--bir) h3 span { background: #fff; color: #0F5C38; }

/* ---------------------------------------------------------------- optional detail: about + career timeline, selected projects */
.tp-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tp-about p { margin: 0 0 18px; max-width: 64ch; font-size: 17px; line-height: 1.65; color: var(--body); }
.tp-about p:first-child { font-size: 18.5px; color: var(--ink); }
.tp-time { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.tp-time::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--blue-050)); }
.tp-time li { position: relative; margin: 0 0 14px; padding: 16px 18px; border-radius: 18px; background: var(--fx-glass); border: 1px solid var(--fx-edge); box-shadow: var(--fx-depth); }
.tp-time li::before { content: ""; position: absolute; left: -26px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tp-time li:first-child::before { background: var(--blue); }
.tp-when { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 999px; background: var(--blue-050); font: 700 12.5px/1 var(--font-body); color: var(--blue-700); font-variant-numeric: tabular-nums; }
.tp-time b { display: block; font: 800 16px/1.3 var(--font-display); color: var(--ink); }
.tp-time p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
@media (max-width: 960px) { .tp-story { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .tp-about p, .tp-about p:first-child { font-size: 16px; } .tp-time li { padding: 14px 15px; } }
