/* The supporter home's own additions on top of portal-ui.css (the mock's design). Ray, 2026-11-13: "match it exactly to the new mock".
   Only what the real page needs and the mock didn't have: the team medallion from team-pop.js, the calendar menu from addcal.js,
   the real bell's panel, and the message list from messages.js. */

/* the team medallion (team-pop.js) matches the supporter one: same size, type and badge; team members get the gold ring */
.bar .tp-av, .bar .tp-av.sup { width: 40px !important; height: 40px !important; margin: 0 0 0 6px !important; border-radius: 50%; background: var(--sign2) !important; color: var(--osd) !important;
  font: 900 13px/1 var(--sans) !important; letter-spacing: .04em; text-shadow: none !important; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px var(--barbg) !important; }
.bar .tp-av .tp-badge { top: -5px !important; right: -7px !important; min-width: 18px !important; height: 18px !important; padding: 0 5px !important; border-radius: 9px !important;
  background: var(--red) !important; color: #fff !important; font: 900 10.5px/18px var(--sans) !important; letter-spacing: 0 !important; box-shadow: 0 0 0 2px var(--barbg) !important; display: block; text-align: center; }

/* "Add to calendar" (addcal.js) drawn as the mock's ghost button, and its menu */
.addcal { display: inline-flex; align-items: center; gap: 7px; } .addcal svg { width: 14px; height: 14px; display: inline-block; }
.calmenu { position: fixed; z-index: 80; min-width: 210px; padding: 6px; border: 1.5px solid var(--prule); background: var(--sign2); box-shadow: var(--lift); display: grid; }
.calmenu[hidden] { display: none; }
.calmenu a { padding: 10px 12px; text-decoration: none; font: 900 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--osd); }
.calmenu a:hover, .calmenu a:focus-visible { background: var(--hov); color: var(--amber); outline: none; }

/* the bell's panel and count */
.bar .pbell i[hidden] { display: none; }
.bellpop[hidden] { display: none; }
.bellpop a { display: block; padding: 10px 18px; color: var(--osd); text-decoration: none; font: 400 14px/1.4 var(--sans); } .bellpop a:hover { background: var(--hov); }
.bellpop p { margin: 0; padding: 10px 18px; color: var(--pmut); font-size: 14px; }

/* the conversation (messages.js) inside the mock's chat panel */
.mlist .msg-empty, .mlist > p { color: var(--pmut); font-size: 14.5px; margin: 0; }
#msgStatus:empty { display: none; }
.mlist .bub.team { justify-self: start; background: var(--hov); border-left: 4px solid var(--blue); }
[data-theme="light"] .mlist .bub.team { background: var(--sign2); }
.mlist .bub p { margin: 0; } .mlist .bub time { display: block; margin-top: 6px; font: 700 11.5px/1 var(--sans); letter-spacing: .04em; opacity: .7; }
.mlist .bub .who-t { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font: 900 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pmut); } .mlist .bub .who-t i { display: none; }
.mlist .bub .msg-label { display: block; margin-bottom: 4px; font: 900 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.mlist .msg-day { justify-self: center; font: 900 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pmut); margin: 6px 0; }
.mlist .bub.run { margin-top: -4px; }

/* the tab line reads as tabs (Ray 2026-11-17, v3; v1 subtle in portal-home.tabs-v1.css, v2 boxed in .tabs-v2.css, rejected):
   no boxes. The selected stop glows in its colour with a bar on the bottom edge, and its label becomes a filled pill. */
.sline { overflow: hidden; }
.stp { isolation: isolate; }
.stp::before { content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: -12px; bottom: -12px;
  background: transparent; transition: background .2s; }
.stp::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -12px; height: 3px; background: var(--c); transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.stp:hover::before { background: color-mix(in srgb, var(--c) 10%, transparent); }
.stp[aria-selected="true"]::before { background: radial-gradient(ellipse 60% 120% at 50% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 75%); }
.stp[aria-selected="true"]::after { transform: scaleX(1); }
.stp > span:last-child { padding: 4px 10px; margin-top: 4px; border-radius: 999px; transition: background .2s, color .2s; }
.stp:hover > span:last-child { color: var(--lon); }
.stp[aria-selected="true"] > span:last-child { background: var(--c); color: #fff; }
.stp[aria-selected="true"] .bul.dk + span, .stp[aria-selected="true"] > .bul.dk ~ span:last-child { color: var(--lbg, #111); }
.stp:focus-visible { outline: none; } .stp:focus-visible > span:last-child { box-shadow: 0 0 0 2px var(--c); }
@media (max-width: 760px) { .stp::before, .stp::after { left: 1px; right: 1px; } .stp::before { top: -10px; bottom: -10px; } .stp::after { bottom: -10px; } .stp > span:last-child { padding: 3px 6px; } }
@media (prefers-reduced-motion: reduce) { .stp::before, .stp::after, .stp > span:last-child { transition: none; } }
/* pictures from the team on a message (Ray, 2026-11-20) */
.mlist .bub .msg-pics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mlist .bub .msg-pics a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--hov); cursor: zoom-in; }
.mlist .bub .msg-pics img { display: block; height: 160px; width: auto; max-width: min(260px, 100%); object-fit: cover; }
