/* management.css — Management page (map + live contact panel). Works with management.js. */
.mgmt {
  --mg-navy: #1e2e5e; --mg-navy2: #2b3d73; --mg-gold: #c6a361; --mg-ink: #151515; --mg-mute: #5b6478;
  --mg-line: #e3e6ee; --mg-card: #fff; --mg-soft: #f4f6fa; --mg-land: #c9cfdc; --mg-land-h: #aab3c7; --mg-sea: #f4f6fa;
  max-width: 1480px; margin: 150px auto 120px !important; padding: 0 24px; box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif; font-weight: 400; color: var(--mg-ink); text-align: left;
}
.dark-mode .mgmt {
  --mg-ink: #fff; --mg-mute: #b7bfd6; --mg-line: #3a4c82; --mg-card: #24366c; --mg-soft: #22346a; --mg-land: #3a4c82; --mg-land-h: #4f62a0; --mg-sea: #22346a;
}
.mgmt *, .mgmt *::before, .mgmt *::after { box-sizing: border-box; }
/* the old site styles every <svg> on phones (huge height + transform) — undo that here */
.mgmt svg { height: auto !important; transform: none !important; margin: 0 !important; max-width: none; }

.mg-head { text-align: center; margin: 0 0 26px; }
.mg-head h1, .mg-head h2 { font-size: 30px !important; font-weight: 300; margin: 0 0 8px; color: inherit; text-align: center !important; }
.mg-head p { margin: 0 auto; max-width: 640px; color: var(--mg-mute); font-size: 16px; line-height: 1.5; }

.mg-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(320px, 1fr); gap: 28px; align-items: center; }   /* map and panel centred on each other */

/* ---------- map box ---------- */
.mg-mapbox { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 14px; padding: 18px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.dark-mode .mg-mapbox { box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.mg-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mg-search { position: relative; flex: 1; max-width: 420px; }
.mg-sbox { display: flex; align-items: center; gap: 8px; margin: 0; border: 1.5px solid var(--mg-line); border-radius: 24px; padding: 8px 14px;
  background: var(--mg-card); cursor: text; transition: border-color .2s; font-weight: 400; }
.mg-sbox:focus-within { border-color: var(--mg-navy); }
.dark-mode .mg-sbox:focus-within { border-color: var(--mg-gold); }
.mg-sbox svg { width: 16px !important; height: 16px !important; fill: var(--mg-mute); flex: 0 0 auto; }
.mg-sbox input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--mg-ink); width: 100%; min-width: 0; padding: 0; margin: 0; box-shadow: none; height: auto; }
.mg-sbox input::placeholder { color: var(--mg-mute); opacity: 1; }
.mg-sbox input::-webkit-search-cancel-button { cursor: pointer; }
.mg-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 300px; overflow: auto; padding: 4px 0; }
.mg-sugg[hidden] { display: none; }
.mg-sugg button { display: block; width: 100%; text-align: left; padding: 8px 14px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--mg-ink); cursor: pointer; }
.mg-sugg button:hover, .mg-sugg button.is-on { background: var(--mg-soft); }
.dark-mode .mg-sugg button:hover, .dark-mode .mg-sugg button.is-on { background: #2e427e; }
.mg-sugg small { color: var(--mg-mute); font-size: 12px; margin-left: 4px; }
.mg-none { padding: 8px 14px; color: var(--mg-mute); font-size: 14px; }

.mg-zoom { display: flex; gap: 6px; margin-left: auto; }
.mg-zoom button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--mg-line); background: var(--mg-card); color: var(--mg-navy);
  font: 400 20px/1 "Segoe UI", Arial, sans-serif; display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .2s, background-color .2s, color .2s; }
.mg-zoom button:hover { border-color: var(--mg-navy); background: var(--mg-navy); color: #fff; }
.dark-mode .mg-zoom button { color: #fff; }
.dark-mode .mg-zoom button:hover { border-color: #fff; background: #fff; color: var(--mg-navy); }
.mg-zoom button:focus-visible { outline: 2px solid var(--mg-gold); outline-offset: 2px; }
.mg-zoom svg { width: 16px !important; height: 16px !important; fill: currentColor; }
.mg-zreset { opacity: .45; pointer-events: none; }
.mgmt.is-zoomed .mg-zreset { opacity: 1; pointer-events: auto; }

.mg-map { position: relative; background: var(--mg-sea); border: 1px solid var(--mg-line); border-radius: 12px; overflow: hidden; padding: 8px; }
.mg-svg { display: block; width: 100% !important; height: auto !important; user-select: none; -webkit-user-select: none; }
.mgmt.is-zoomed .mg-svg { cursor: grab; touch-action: none; }
.mgmt.is-dragging .mg-svg { cursor: grabbing; }
.mg-svg path[data-c] { fill: var(--mg-land); stroke: var(--mg-sea); stroke-width: .5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s; }
.mg-svg path[data-c]:hover { fill: var(--mg-land-h); }
.mg-svg path.is-rep { fill: var(--mg-navy2); }
.mg-svg path.is-rep:hover { fill: #3d529a; }
.dark-mode .mg-svg path.is-rep { fill: #8a9bd3; }
.dark-mode .mg-svg path.is-rep:hover { fill: #a7b5e3; }
.mg-svg path.is-hq { fill: #e2cfa5; }
.mg-svg path.is-hq:hover { fill: #d6bd86; }
.dark-mode .mg-svg path.is-hq { fill: #a48c5c; }
.dark-mode .mg-svg path.is-hq:hover { fill: #b79d68; }
.mg-svg path.is-sel { fill: var(--mg-gold) !important; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 0 3px rgba(30,46,94,.45)); }
.dark-mode .mg-svg path.is-sel { stroke: var(--mg-navy); }
.mg-pin { pointer-events: none; }
.mg-pin .p { fill: var(--mg-navy); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mg-pin .r { fill: none; stroke: var(--mg-navy); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: mg-ring 2.2s ease-out infinite; }
.dark-mode .mg-pin .p { fill: #fff; stroke: var(--mg-navy); }
.dark-mode .mg-pin .r { stroke: #fff; }
@keyframes mg-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mg-pin .r { animation: none; opacity: 0; } }

.mg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--mg-mute); }
.mg-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mg-legend .lg-hq::before { background: #e2cfa5; }
.dark-mode .mg-legend .lg-hq::before { background: #a48c5c; }
.mg-legend .lg-sel::before { background: var(--mg-gold); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--mg-gold); }
.mg-legend .lg-rep::before { background: var(--mg-navy2); }
.dark-mode .mg-legend .lg-rep::before { background: #8a9bd3; }
.mg-legend .lg-lead::before { background: var(--mg-land); }

.mg-tip { position: fixed; z-index: 1000; pointer-events: none; background: #0f1730; color: #fff; font: 12px/1.35 "Segoe UI", Arial, sans-serif; padding: 6px 10px;
  border-radius: 6px; opacity: 0; transition: opacity .15s; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ---------- contact panel ---------- */
.mg-side { scroll-margin-top: 90px; }
.mg-panel { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 14px; padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.08); scroll-margin-top: 90px; }
.dark-mode .mg-panel { box-shadow: 0 8px 30px rgba(0,0,0,.3); }
@keyframes mg-in { from { opacity: 0; transform: translateY(6px); } }
.mg-panel h3 { margin: 0; font-size: 26px; font-weight: 300; color: inherit; line-height: 1.2; }
.mg-sub { margin: 4px 0 16px; color: var(--mg-mute); font-size: 14px; line-height: 1.45; }
.mg-stack { display: grid; gap: 12px; }
.mg-hint { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--mg-mute); }
.mg-reset { border: 0; background: none; color: var(--mg-navy); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 6px; text-decoration: underline; text-underline-offset: 3px; }
.dark-mode .mg-reset { color: #fff; }
.mg-reset:hover { color: var(--mg-gold); }

.mg-office { display: flex; gap: 10px; align-items: flex-start; background: var(--mg-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.mg-office svg { width: 18px !important; height: 18px !important; flex: 0 0 auto; fill: var(--mg-gold); margin-top: 2px !important; }
.mg-link { display: inline-block; margin-top: 4px; color: var(--mg-navy) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dark-mode .mg-link { color: #fff !important; }
.mg-link:hover { color: var(--mg-gold) !important; }

.mg-card { display: flex; gap: 14px; align-items: center; background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; }
.mg-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-1px); }
.dark-mode .mg-card { background: #2a3d76; }
.mg-av { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--mg-navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; letter-spacing: .03em; }
.mg-card.is-lead .mg-av { background: var(--mg-gold); color: #16213f; }
.dark-mode .mg-av { background: #fff; color: var(--mg-navy); }
.dark-mode .mg-card.is-lead .mg-av { background: var(--mg-gold); color: #16213f; }
.mg-cb { min-width: 0; flex: 1; }
.mg-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.mg-role { font-size: 13px; color: var(--mg-mute); margin-top: 1px; }
.mg-base { font-size: 12px; color: var(--mg-mute); margin-top: 1px; }
.mg-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mg-btn { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; text-decoration: none !important; color: var(--mg-navy) !important; border: 1.5px solid var(--mg-navy);
  border-radius: 20px; padding: 6px 12px; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.mg-btn:hover, .mg-btn:focus-visible { background: var(--mg-navy); color: #fff !important; }
.dark-mode .mg-btn { color: #fff !important; border-color: #fff; }
.dark-mode .mg-btn:hover, .dark-mode .mg-btn:focus-visible { background: #fff; color: var(--mg-navy) !important; }
.mg-btn svg { width: 14px !important; height: 14px !important; fill: currentColor; }

/* ---------- tablets & phones ---------- */
@media (max-width: 900px) {
  .mgmt { margin: 0 auto 60px !important; padding: 0 12px; }
  .mg-head { margin: 22px 0 16px; }
  .mg-head h1, .mg-head h2 { font-size: 26px !important; }
  .mg-head p { font-size: 15px; }
  .mg-grid { grid-template-columns: 1fr; gap: 16px; }
  .mg-side { position: static; }
  .mg-mapbox { padding: 10px; }
  .mg-map { padding: 4px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .mg-tools { flex-wrap: wrap; }
  .mg-search { flex-basis: 100%; max-width: none; order: 2; }
  .mg-zoom { order: 1; margin-left: auto; }
  .mg-zoom button { width: 34px; height: 34px; }
  .mg-panel { padding: 18px 14px; }
  .mg-card { padding: 12px; gap: 12px; align-items: flex-start; }
  .mg-av { flex-basis: 44px; width: 44px; height: 44px; font-size: 15px; }
  .mg-legend { font-size: 12px; }
}
.mg-legend [hidden] { display: none; }

.mg-btn span { overflow: hidden; text-overflow: ellipsis; line-height: 1.35; padding-bottom: 1px; margin: -2px 0; }

/* =====================================================================
   Effects (management.js): first-view sweep, route network, flight arc,
   card swing-in with drawn avatar ring, local-time clocks
   ===================================================================== */

/* first view: colours fill in together after the sweep, then pins drop and routes appear */
.mgmt.mg-intro .mg-svg path.is-rep, .mgmt.mg-intro .mg-svg path.is-hq { fill: var(--mg-land); }
.mgmt.mg-colouring .mg-svg path.is-rep, .mgmt.mg-colouring .mg-svg path.is-hq { transition: fill .9s ease; }
.mg-marks .mg-pin, .mg-marks .mg-city, .mg-routes { opacity: 0; }
.mgmt.mg-live .mg-routes { opacity: 1; transition: opacity .9s ease .35s; }
.mgmt.mg-live .mg-marks .mg-pin { animation: mg-pin-drop .7s cubic-bezier(.3,1.6,.5,1) both; }
.mgmt.mg-live .mg-marks .mg-city { animation: mg-fade .6s ease both .45s; }
@keyframes mg-pin-drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes mg-fade { from { opacity: 0; } to { opacity: 1; } }

/* route network: HQ → each representative */
.mg-route { fill: none; stroke: var(--mg-gold); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 6; opacity: .5;
  animation: mg-flow 1.8s linear infinite; transition: opacity .3s, stroke-width .3s; pointer-events: none; }
.mg-route.is-hot { opacity: 1; stroke-width: 1.8; }
@keyframes mg-flow { to { stroke-dashoffset: -18; } }
.mg-city { cursor: pointer; }
.mg-city .glow { fill: var(--mg-gold); transform-box: fill-box; transform-origin: center; animation: mg-glow 2.4s ease-in-out infinite; }
.mg-city .dot { fill: var(--mg-gold); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dark-mode .mg-city .dot { stroke: var(--mg-navy); }
@keyframes mg-glow { 0%, 100% { transform: scale(1); opacity: .15; } 50% { transform: scale(2.4); opacity: .45; } }

/* flight from HQ to the chosen country */
.mg-flight { pointer-events: none; }
.mg-arc { fill: none; stroke: var(--mg-gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.mg-arc-glow { fill: none; stroke: var(--mg-gold); stroke-width: 6; opacity: .2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mg-plane path { fill: var(--mg-navy); stroke: #fff; stroke-width: .6; }
.dark-mode .mg-plane path { fill: #fff; stroke: var(--mg-navy); }
.mg-plane.is-landed { opacity: 0; transition: opacity .5s ease; }
.mg-dest .p { fill: var(--mg-gold); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mg-dest .r { fill: none; stroke: var(--mg-gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: mg-ring 1.6s ease-out infinite; }

.mg-legend .lg-route::before { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--mg-gold); vertical-align: 3px; }

/* panel: heading slides up, cards swing in one after another, a gold ring draws around each avatar */
.mg-panel.is-anim .mg-in > h3, .mg-panel.is-anim .mg-sub, .mg-panel.is-anim .mg-office { animation: mg-up .45s ease both; }
.mg-panel.is-anim .mg-sub { animation-delay: .06s; }
.mg-panel.is-anim .mg-office { animation-delay: .1s; }
@keyframes mg-up { from { opacity: 0; transform: translateY(8px); } }
.mg-stack { perspective: 900px; }
.mg-panel.is-anim .mg-card { animation: mg-card-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); transform-origin: left center; }
@keyframes mg-card-in { from { opacity: 0; transform: translateX(26px) rotateY(-14deg); } }
.mg-av { position: relative; }
.mg-ring { position: absolute; left: -5px; top: -5px; width: calc(100% + 10px) !important; height: calc(100% + 10px) !important; transform: rotate(-90deg) !important; pointer-events: none; overflow: visible; }
.mg-ring circle { fill: none; stroke: var(--mg-gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 183; stroke-dashoffset: 0; }
.mg-card.is-lead .mg-ring circle { stroke: var(--mg-navy); }
.dark-mode .mg-card.is-lead .mg-ring circle { stroke: #fff; }
.mg-panel.is-anim .mg-ring circle { animation: mg-ring-draw .9s ease both; animation-delay: calc(var(--i, 0) * 120ms + .4s); }
@keyframes mg-ring-draw { from { stroke-dashoffset: 183; } }
.mg-hint { animation: none; }
.mg-panel.is-anim .mg-hint { animation: mg-fade .5s ease both .45s; }

/* local time + office hours */
.mg-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mg-line); }
.mg-clock { width: 30px !important; height: 30px !important; flex: 0 0 30px; }
.mg-clock circle { fill: var(--mg-soft); stroke: #9aa5bf; stroke-width: 2; }
.dark-mode .mg-clock circle { stroke: #8a9bd3; }
.mg-clock line { stroke: var(--mg-ink); stroke-linecap: round; }
.mg-clock .h { stroke-width: 3; }
.mg-clock .m { stroke-width: 2; }
.mg-clock .s { stroke: var(--mg-gold); stroke-width: 1; }
.mg-tt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.mg-tplace { font-size: 11px; color: var(--mg-mute); letter-spacing: .03em; }
.mg-tplace:empty { display: none; }
.mg-tnow { white-space: nowrap; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mg-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.mg-chip.is-open { background: #dcfce7; color: #166534; }
.mg-chip.is-open::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; margin-right: 5px; vertical-align: 1px; animation: mg-blink 2s ease-in-out infinite; }
.mg-chip.is-closed { background: #eef1f6; color: #475569; }
.dark-mode .mg-chip.is-open { background: #14532d; color: #bbf7d0; }
.dark-mode .mg-chip.is-closed { background: #33457a; color: #e2e8f0; }
@keyframes mg-blink { 50% { opacity: .3; } }
.mg-day { position: relative; flex-basis: 100%; height: 4px; border-radius: 3px; margin-top: 4px;
  background: linear-gradient(90deg, var(--mg-line) 0 37.5%, #e2cfa5 37.5% 75%, var(--mg-line) 75%); }
.dark-mode .mg-day { background: linear-gradient(90deg, #3a4c82 0 37.5%, #a48c5c 37.5% 75%, #3a4c82 75%); }
.mg-day i { position: absolute; top: -3px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--mg-navy); }
.dark-mode .mg-day i { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .mg-route, .mg-city .glow, .mg-dest .r, .mg-chip.is-open::before { animation: none !important; }
  .mg-panel.is-anim .mg-card, .mg-panel.is-anim .mg-ring circle, .mg-panel.is-anim .mg-in > h3, .mg-panel.is-anim .mg-sub, .mg-panel.is-anim .mg-office, .mg-panel.is-anim .mg-hint { animation: none !important; }
  .mgmt.mg-live .mg-marks .mg-pin, .mgmt.mg-live .mg-marks .mg-city { animation: none !important; opacity: 1; }
}

/* team photo (from the admin) in the round badge; initials stay underneath as a fallback */
.mg-av.has-photo { color: transparent; }
.mg-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; z-index: 0; }
.mg-av .mg-ring { z-index: 1; }
/* "Digital card" button: gold outline so it stands apart from call / email */
.mg-btn.mg-vcard { border-color: #c6a361; }
.mg-btn.mg-vcard:hover, .mg-btn.mg-vcard:focus-visible { background: #c6a361; border-color: #c6a361; color: #16213f !important; }

/* profile ring: moving dotted flight path with a small jet circling it (as on the digital business cards) */
.mg-ring { transform: none !important; }
.mg-ring circle { stroke-width: 1.6; stroke-dasharray: 2.2 4.2; stroke-dashoffset: 0; animation: mg-dots 3s linear infinite; }
.mg-panel.is-anim .mg-ring circle { animation: mg-ring-in .8s ease both, mg-dots 3s linear infinite; animation-delay: calc(var(--i, 0) * 120ms + .4s), 0s; }
@keyframes mg-ring-in { from { opacity: 0; } }
@keyframes mg-dots { to { stroke-dashoffset: -12.8; } }
.mg-orbit { transform-origin: 31px 31px; animation: mg-orbit 12s linear infinite; }
.mg-orbit path { fill: var(--mg-gold); }
.mg-card.is-lead .mg-orbit path { fill: var(--mg-navy); }
.dark-mode .mg-card.is-lead .mg-orbit path { fill: #fff; }
.mg-card:nth-child(2n) .mg-orbit { animation-delay: -6s; }
@keyframes mg-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mg-ring circle, .mg-orbit { animation: none !important; } }

/* languages + about on each profile */
.mg-lang { font-size: 12px; color: #a8853f; margin-top: 3px; letter-spacing: .02em; }
.dark-mode .mg-lang { color: var(--mg-gold); }
.mg-about { font-size: 13px; line-height: 1.5; color: var(--mg-mute); margin: 6px 0 0; }
.mg-card.is-pick { animation: mg-pick 1.6s ease; }
@keyframes mg-pick { 0%, 60% { box-shadow: 0 0 0 3px var(--mg-gold), 0 12px 30px rgba(198,163,97,.35); } 100% { box-shadow: none; } }

/* "Our team" overview below the map */
.mg-team { margin-top: 70px; }
.mg-team h2 { font-size: 30px !important; font-weight: 300; margin: 0 0 6px; color: var(--mg-ink); text-align: center !important; }
.mg-team-sub { text-align: center; color: var(--mg-mute); margin: 0 auto 30px; max-width: 620px; font-size: 15px; }
.mg-tgroup { margin-bottom: 28px; }
.mg-tgroup h3 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mg-gold); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--mg-line); }
.mg-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mg-tp { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  background: var(--mg-card); border: 1px solid var(--mg-line); box-shadow: 0 6px 18px rgba(20,30,60,.05); transition: transform .2s, border-color .2s, box-shadow .2s; }
.mg-tp:hover, .mg-tp:focus-visible { transform: translateY(-2px); border-color: var(--mg-gold); box-shadow: 0 12px 26px rgba(20,30,60,.12); outline: none; }
.dark-mode .mg-tp { background: #2a3d76; }
.mg-tav { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  background: var(--mg-navy); color: #fff; border: 2px solid var(--mg-gold); }
.mg-tav.is-lead { background: var(--mg-gold); color: #16213f; border-color: var(--mg-navy); }
.dark-mode .mg-tav { background: #fff; color: var(--mg-navy); }
.mg-tav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-tx { min-width: 0; display: flex; flex-direction: column; }
.mg-tx b { font-size: 15px; font-weight: 600; color: var(--mg-ink); }
.mg-tx small { font-size: 12.5px; color: var(--mg-mute); }
.mg-tx em { font-style: normal; font-size: 12px; color: #a8853f; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark-mode .mg-tx em { color: var(--mg-gold); }
@media (max-width: 600px) { .mg-team { margin-top: 50px; } .mg-team h2 { font-size: 24px !important; } .mg-tgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mg-card.is-pick { animation: none; } }
