/* IQCB team explorer (prototype). Colours follow the homepage network and plate. */
/* all rules are scoped to the block so it can sit inside the TYPO3 theme */
.tx {
  --ink: #11262a; --muted: #5f6b70; --line: #dde3e5; --soft: #eef2f3; --navy: #092455; --teal: #49bbaf; --teal-d: #3f7678;
  --core: #425159; --bio: #2f9e92; --imb: #1b6f8a; --med: #e07b54; --lir: #d39a12; --comp: #4a6fd6; --phys: #8b6fd6;
}
.tx, .tx * { box-sizing: border-box; }
.tx { color: var(--ink); font-size: 16px; line-height: 1.5; }
.tx-proto { margin: 0; padding: 8px 16px; background: #fff7e0; color: #6b5300; font-size: 13px; text-align: center; }
.tx { max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px; }
.tx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tx-kicker { margin: 0 0 6px; color: var(--teal-d); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.tx-head h1, .tx-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--navy); font-weight: 800; }
.tx-head h1 b, .tx-head h2 b { color: var(--teal-d); }
.tx-lead { margin: 0 0 28px; max-width: 760px; color: var(--muted); font-size: 17px; }

.tx-hero { text-align: center; padding: 8px 0 40px; }
.tx-hero .tx-kicker { margin: 0 0 18px; font: 600 14px/1 JosefinSansLight, Helvetica, Arial; letter-spacing: 3px; text-transform: uppercase; color: #2f9e92; }
.tx-hero .tx-lead-h { font-family: JosefinSansLight, Helvetica, Arial; font-weight: 600; color: #425159; font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.18; letter-spacing: .3px; max-width: 1050px; margin: 0 auto 22px; text-transform: none; }
.tx-hero .tx-lead-h em { font-style: normal; color: #2f9e92; }
.tx-hero .tx-sub { font-size: 17px; font-weight: 300; line-height: 1.65; color: #4a5a61; max-width: 760px; margin: 0 auto 34px; }
.tx-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px; margin: 0 0 60px; padding: 0; list-style: none; }
.tx-stats li { text-align: center; padding: 0; margin: 0; list-style: none; }
.tx-stats li::before, .tx-stats li::marker { content: none; display: none; }
.tx-stats b { display: block; font: 600 clamp(34px, 3.6vw, 48px)/1 JosefinSansLight, Helvetica, Arial; color: #2f9e92; }
.tx-stats span { display: block; margin-top: 6px; font-size: 14px; color: #4a5a61; letter-spacing: .3px; }
.tx-faces { display: flex; justify-content: center; gap: 10px; margin: 0 auto; max-width: 1100px; overflow: hidden; padding: 6px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tx-face { all: unset; flex: 0 0 auto; width: 76px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
  box-shadow: 0 2px 8px rgba(17, 38, 42, .12); transition: transform .2s, box-shadow .2s; }
.tx-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-face::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.tx-face:hover, .tx-face:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(17, 38, 42, .2); outline: none; }
.tx-face:nth-child(odd) { margin-top: 14px; }
.tx-hero-cta { margin-top: 30px; font-size: 15px; }
.tx-hero-cta a { color: #2f9e92; text-decoration: none; border-bottom: 1px solid currentColor; }
.tx-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: sticky; top: var(--tx-top, 0px); z-index: 5; background: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx-search { flex: 1 1 320px; }
.tx-search input { width: 100%; padding: 11px 14px; border: 1px solid #b8c2c6; border-radius: 10px; font: inherit; }
.tx-search input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.tx-seg { display: inline-flex; border: 1px solid #b8c2c6; border-radius: 10px; overflow: hidden; }
.tx-seg button { border: 0; background: #fff; padding: 9px 13px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.tx-seg button + button { border-left: 1px solid #b8c2c6; }
.tx-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tx-seg button:focus-visible, .tx-chip:focus-visible, .tx-well:focus-visible, .tx-card a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.tx-filters { margin: 16px 0 6px; }
.tx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.tx-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tx-chip span { color: var(--muted); font-size: 12px; }
.tx-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.tx-chip[aria-pressed="true"] i { background: #fff; }
.tx-chip[aria-pressed="true"] span { color: #fff; }

.tx-platebox { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--soft); }
.tx-platebox summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.tx-hint { color: var(--muted); font-weight: 400; }
.tx-plate { display: grid; grid-template-columns: minmax(150px, 230px) repeat(12, 32px); gap: 5px; margin: 12px 0 4px; font-size: 12px; overflow-x: auto; justify-content: start; }
.tx-plate .tx-ch { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); padding: 4px 0; justify-self: center; max-height: 130px; line-height: 1.1; }
.tx-plate .tx-rh { align-self: center; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.tx-plate .tx-rh[aria-pressed="true"] { color: var(--navy); font-weight: 800; }
.tx-well { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #c8d2d5; background: #fff; cursor: pointer; font: inherit; font-size: 11px; color: #fff; padding: 0; }
.tx-well[data-n="0"] { cursor: default; background: transparent; border-style: dashed; }
.tx-well:not([data-n="0"]) { background: color-mix(in srgb, var(--teal) calc(25% + var(--k) * 75%), #fff); border-color: transparent; color: var(--ink); }
.tx-well[aria-pressed="true"] { background: var(--navy) !important; color: #fff !important; }

.tx-status { color: var(--muted); font-size: 14px; margin: 14px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tx-status button { border: 0; background: none; color: var(--teal-d); text-decoration: underline; cursor: pointer; font: inherit; }
.tx-sec { margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--navy); }
.tx-sec i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--teal)); }
.tx-sec small { color: var(--muted); font-size: 14px; font-weight: 400; }

.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.tx-card { all: unset; box-sizing: border-box; display: block; cursor: pointer; border-radius: 16px; }
.tx-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.tx-pic { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, #fff); }
.tx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tx-card:hover .tx-pic img { transform: scale(1.03); }
.tx-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); }
.tx-ini { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c); font-weight: 800; font-size: 44px; letter-spacing: .02em; }
.tx-nm { display: block; margin: 10px 2px 0; font-weight: 800; font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.tx-rl { display: block; margin: 2px 2px 0; font-size: 12.5px; color: var(--teal-d); font-weight: 700; }
.tx-in { display: block; margin: 2px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.35; }

.tx-dlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 24px 60px rgba(17, 38, 42, .28); color: var(--ink); }
.tx-dlg::backdrop { background: rgba(9, 36, 85, .45); }
.tx-dlg-in { display: grid; grid-template-columns: 280px 1fr; }
.tx-dlg-pic { background: color-mix(in srgb, var(--c) 14%, #fff); min-height: 100%; position: relative; }
.tx-dlg-pic img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5; }
.tx-dlg-pic .tx-ini { font-size: 64px; }
.tx-dlg-body { padding: 28px 30px 26px; overflow: auto; max-height: calc(100vh - 48px); }
.tx-dlg h2 { margin: 0 34px 4px 0; font-size: 24px; line-height: 1.2; color: var(--navy); }
.tx-dlg .tx-rl { margin: 0 0 14px; font-size: 14px; }
.tx-dlg h4 { margin: 16px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tx-dlg ul { margin: 0; padding-left: 18px; }
.tx-dlg li { margin: 2px 0; }
.tx-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.tx-x:hover { background: #dde3e5; }
.tx-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tx-tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.tx-tag.tx-area { background: var(--navy); color: #fff; }
.tx-tag.tx-m { background: color-mix(in srgb, var(--teal) 22%, #fff); }
.tx-kw { margin: 0; color: var(--ink); font-size: 14px; }
.tx-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.tx-links a { color: var(--teal-d); }
.tx-cta { display: inline-block; margin-top: 22px; padding: 11px 18px; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; }
.tx-cta:hover { background: #0d3274; }
.tx-cta small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.tx-alumni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.tx-alumni li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.tx-alumni a { color: var(--ink); font-weight: 700; text-decoration: none; }
.tx-alumni a:hover { color: var(--teal-d); text-decoration: underline; }
.tx-alumni span { display: block; font-size: 12.5px; color: var(--muted); }
.tx-all { margin-top: 28px; font-size: 13px; }
.tx-all a { color: var(--teal-d); }
.tx mark { background: #fff1b8; color: inherit; padding: 0 1px; }
.tx-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

@media (max-width: 640px) {
  .tx-hero { padding: 40px 0 24px; }
  .tx-stats { gap: 14px 26px; margin-bottom: 40px; }
  .tx-face { width: 58px; }
  .tx { padding: 24px 16px 60px; }
  .tx-bar { position: static; }
  .tx-seg { width: 100%; }
  .tx-seg button { flex: 1; padding: 9px 6px; font-size: 13px; }
  .tx-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .tx-nm { font-size: 14px; }
  .tx-dlg-in { grid-template-columns: 1fr; }
  .tx-dlg-pic img { aspect-ratio: 16 / 11; object-position: 50% 25%; }
  .tx-dlg-body { padding: 20px; max-height: none; }
}
