/* team-answers.css · the new answer card on the Multi-Search.ai company page (/team Ask). 2026-11-09. See team-answers.js.
   Only cards in the default 'chat' style carry .ta, so ?fx=drop & ?fx=boxes look exactly as before. Calm colors kept (persona round 2026-10-26). */

/* ---------- the question box & Ask button glow amber (Multi-Search.ai's action color, funnels/multi-search-ai accent-amber) ---------- */
html.ta-amber #askQ,html.ta-amber.look-calm #askQ{border:1.5px solid #B45309;border-radius:14px;box-shadow:0 0 0 3px rgba(255,176,32,.20),0 0 14px rgba(255,176,32,.38)}
html.ta-amber #askQ:focus,html.ta-amber.look-calm #askQ:focus{border-color:#B45309;outline:0;box-shadow:0 0 0 3px rgba(255,176,32,.40),0 0 18px rgba(255,176,32,.55)}
html.ta-amber #askGo{background:#FFB020;color:#1A1200;border:1.5px solid #B45309;box-shadow:0 6px 18px -8px rgba(180,83,9,.55),0 0 12px rgba(255,176,32,.40)}
html.ta-amber #askGo:hover{background:#ffbf47;border-color:#B45309;color:#1A1200}
html.ta-amber #askGo:focus-visible{outline:3px solid #B45309;outline-offset:2px}

/* ---------- the question as a chat bubble (right) ---------- */
.ask-card.ta .card-q{margin:0 0 .7rem auto;max-width:86%;width:fit-content;background:var(--teal-soft);color:var(--ink);padding:.5rem .9rem;border-radius:18px 18px 4px 18px;font-weight:600;line-height:1.35}

/* ---------- waiting: each AI answers as a chat bubble in its own color ---------- */
.ask-card.ta .ac-stage{display:flex;flex-direction:column;gap:.55rem;margin:.2rem 0 .4rem}
.ask-card.ta .ac-stage[hidden]{display:none}
.ask-card.ta .ac-stage .ai-row{position:relative;align-self:flex-start;max-width:88%;margin:0 0 0 34px;border-radius:16px 16px 16px 4px;padding:.45rem .8rem .5rem;animation:taPop .3s}
.ask-card.ta .ac-stage .ai-row::before{content:attr(data-ab);position:absolute;left:-34px;bottom:0;width:26px;height:26px;border-radius:50%;background:var(--ai,#94a3b8);color:#fff;font:800 9px/26px var(--sans,system-ui);text-align:center}
.ask-card.ta .ac-stage .ai-row.is-wait::before{content:"";background:var(--border)}
.ask-card.ta .ac-stage .ai-name{color:var(--ai,var(--ink))}
.ask-card.ta .ac-stage .ai-row.is-wait{min-width:12rem}
.ask-card.ta .ai-row.ta-go{transition:transform .45s ease-in,opacity .45s ease-in;transform:translateY(-26px) scale(.55);opacity:0;pointer-events:none}
@keyframes taPop{0%{transform:translateY(8px);opacity:0}100%{transform:none;opacity:1}}
/* the waiting line ("Asking 3 AIs", "2 of 3 AIs answered") stays as the status above the bubbles; once the best answer is in, the tabs take over */
.ask-card.ta .ac-said{border:0;background:none;margin-top:.2rem}
.ask-card.ta .ac-said>summary{padding:.2rem 0;min-height:32px;cursor:default;pointer-events:none;color:var(--muted);font-size:.86rem}
.ask-card.ta .ac-said>summary::after{display:none}
.ask-card.ta.has-best .ac-said>summary{display:none}
.ask-card.ta .ac-said .ac-ais{padding:0}
.ask-card.ta .ac-said .ai-row{border-left:3px solid var(--ai,var(--border-soft))}
.ask-card.ta .ac-said .ai-name{color:var(--ai,var(--ink))}

/* ---------- the tab strip: Best answer · each AI · Compare, 1 row that swipes ---------- */
.ta-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 .5rem;padding:1px 1px 3px;scrollbar-width:none}
.ta-tabs[hidden]{display:none}
.ta-tabs::-webkit-scrollbar{display:none}
.ta-tabs.ta-more{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
.ta-tab{flex:none;display:inline-flex;align-items:center;border:0;border-radius:99px;padding:5px 12px 5px 6px;background:var(--paper-2);color:var(--ink);font:600 .82rem var(--sans,system-ui);cursor:pointer;min-height:34px}
.ta-tab[data-k="best"],.ta-tab[data-k="all"]{padding-left:12px}
.ta-tab.on{background:var(--teal);color:#fff}
:root[data-theme="dark"] .ta-tab:not(.on){background:#1a2738}
:root[data-theme="dark"] .ta-tab.on{color:#05201d}
.ta-tab:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@media(max-width:767px),(hover:none) and (pointer:coarse){.ta-tab{min-height:44px}}
.ta-av{display:inline-block;width:20px;height:20px;border-radius:50%;margin-right:6px;color:#fff;font:800 8px/20px var(--sans,system-ui);text-align:center;font-style:normal;flex:none}
.ta-tab.ta-landed{animation:taLand .6s ease-out}
@keyframes taLand{0%{box-shadow:0 0 0 0 #7fe0d6}40%{box-shadow:0 0 0 4px #7fe0d6}100%{box-shadow:0 0 0 0 transparent}}

/* which tab is showing */
.ask-card.ta[data-ta="best"] .ac-said,.ask-card.ta[data-ta="best"].has-best .ac-said{display:none}
.ask-card.ta:not(.has-best) .ac-said{display:block}
.ask-card.ta[data-ta="ai"] [data-best],.ask-card.ta[data-ta="all"] [data-best],
.ask-card.ta[data-ta="ai"] [data-fups],.ask-card.ta[data-ta="all"] [data-fups],
.ask-card.ta[data-ta="ai"] [data-share],.ask-card.ta[data-ta="all"] [data-share],
.ask-card.ta[data-ta="ai"] .rs-ff,.ask-card.ta[data-ta="all"] .rs-ff,.ask-card.ta[data-ta="ai"] .rs-fc,.ask-card.ta[data-ta="all"] .rs-fc{display:none}
.ask-card.ta .ac-said .ai-row.ta-off{display:none}
.ask-card.ta[data-ta="ai"] .ac-said .ac-ais{grid-template-columns:1fr}

/* ---------- the dots on each line wear the AI's color, "N of M" under them ---------- */
.ask-card.ta .ba-dots.ta-dots{display:inline-flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:3px;width:3.6rem;min-width:3.6rem;margin:.3rem .5rem 0 0;cursor:pointer;letter-spacing:0;align-self:flex-start;border-radius:6px}
.ask-card.ta .ba-dots.ta-dots:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ask-card.ta .ba-dots.ta-dots::after{content:attr(data-n);flex:0 0 100%;text-align:center;font:600 .66rem/1.2 var(--sans,system-ui);color:var(--muted);margin-top:1px}
.ta-d{display:inline-block;width:10px;height:10px;border-radius:50%;border:1.5px solid #b9c7cc;box-sizing:border-box}
.ta-d.on{border-color:transparent}
.ask-card.ta .ba-list li{align-items:flex-start}
.ask-card.ta .ba-only{margin-left:4.1rem}
.ta-pop{position:absolute;z-index:30;left:0;top:2.6rem;width:min(320px,86vw);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:.55rem .75rem;font-size:.84rem;line-height:1.4;color:var(--ink)}
.ta-pop p{margin:.3rem 0}
.ta-src{display:inline-block;font-size:.8rem;color:var(--accent,#2563eb);text-decoration:underline;white-space:nowrap;margin-left:2px}
.ta-pd{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;vertical-align:middle}
.ta-pd.off{opacity:.25}

/* ---------- Compare, top: 1 colored dot per AI per line ---------- */
.ta-grid{overflow-x:auto;margin:.2rem 0 .8rem}
.ta-grid[hidden]{display:none}
.ta-grid table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0;font-size:.88rem}
.ta-grid th{font:700 .74rem var(--sans,system-ui);text-align:center;padding:6px;border-bottom:1px solid var(--border);white-space:nowrap;color:var(--ink)}
.ta-grid th.ta-gl-h{text-align:left;width:46%}
.ta-grid th.ta-gn-h{width:64px}
.ta-grid th .ta-av{margin-right:4px;vertical-align:middle}
.ta-grid td{padding:8px 6px;border-bottom:1px solid var(--border-soft);vertical-align:middle;color:var(--text)}
.ta-gl{text-align:left;color:var(--ink)!important;line-height:1.4}
.ta-gc{text-align:center}
.ta-gn{text-align:center;font-size:.75rem;color:var(--muted)!important;white-space:nowrap}
.ta-gd{display:inline-block;width:14px;height:14px;border-radius:50%;border:1.5px solid #b9c7cc;box-sizing:border-box}
.ta-gd.f{border-color:transparent}
@media(max-width:767px){
  .ta-grid table{font-size:.82rem}
  .ta-grid th.ta-gl-h{width:auto}
  .ta-grid th:not(.ta-gl-h),.ta-grid td.ta-gc{width:30px;padding:6px 2px}
  .ta-grid th .ta-av{display:block;margin:0 auto;width:22px;height:22px;line-height:22px}
  .ta-grid th .ta-gname{display:none}   /* the tabs above already name each color */
  .ta-grid td.ta-gn,.ta-grid th.ta-gn-h{width:38px;padding:6px 2px}
}
@media(prefers-reduced-motion:reduce){.ask-card.ta .ac-stage .ai-row,.ta-tab.ta-landed{animation:none}.ask-card.ta .ai-row.ta-go{transition:none}}

/* Compare: the grid first; each AI's answer opens from "More detail" (his ask 2026-11-09) */
.ask-card.ta.ta-gridded[data-ta="all"]:not(.ta-more-open) .ac-said{display:none}   /* only once the grid (& its "More detail") exists */
.ta-moredet{margin:10px 0 0}
.ta-moredet>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border:1px solid var(--line,#dfe5e8);border-radius:12px;padding:9px 14px;min-height:44px;box-sizing:border-box;font-weight:600;font-size:14px}
.ta-moredet>summary::-webkit-details-marker{display:none}
.ta-moredet>summary::after{content:"\25BE";opacity:.6;transition:transform .2s}
.ta-moredet[open]>summary::after{transform:rotate(180deg)}

/* 1 "Best answer" (his ask 2026-11-09): the stamp, smaller, is the 1st tab; the stamp on the card goes once the tabs show */
.ask-card.ta.ta-tabbed [data-best] .card-stamp{display:none}
.ta-tab.ta-stamp,.ta-tab.ta-stamp.on{background:transparent;color:var(--teal);border:2px solid var(--teal);border-radius:6px;font:900 .8rem/1 Impact,"Arial Black","Helvetica Neue",Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;padding:5px 9px 4px}
.ta-tab.ta-stamp:not(.on){opacity:.5}

/* THE CHAT LAYOUT (his yes 2026-11-09, the only layout since the ?layout=old switch was retired 2026-11-10). See team-answers.js "THE CHAT LAYOUT".
   The question box sits at the bottom, answers read top to bottom with the newest at the bottom. Computers (1024px & up):
   conversation + the team panel on the right. Under 1024px: the panel is a sheet the "Team" button slides up. */
.ta-chat-root{position:relative}
.ta-chat-root .ta-conv{display:flex;flex-direction:column;min-width:0}
.ta-chat-root #askFeed{display:flex;flex-direction:column-reverse;flex:1 0 auto}
.ta-chat-root #askFeed .ask-card{scroll-margin-top:76px}
.ta-chat-root .ta-dock{display:flex;flex-direction:column;gap:.5rem;background:var(--paper,#fff);z-index:40}
.ta-chat-root .ta-dock #askRelated:empty{display:none}
.ta-chat-root .ta-dock #askRelated .al,.ta-chat-root .ta-dock #askRelated .rs-ff-row{margin:0}
.ta-chat-root #askForm{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px;row-gap:4px;align-items:end;margin:0}
.ta-chat-root #askForm>*{grid-column:1 / -1}
.ta-chat-root #askForm .tm-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* still names the box for screen readers */
.ta-chat-root #askForm .ta-teambtn{grid-column:1}
.ta-chat-root #askForm #askQ{grid-column:2;min-height:44px;height:44px;max-height:132px;margin:0;resize:none;overflow-y:auto}   /* grows with the question (team-answers.js), never on focus alone, so Ask never moves under the finger */
.ta-chat-root #askForm .ask-row{display:contents}
.ta-chat-root #askForm #askGo{grid-column:3;min-height:44px;margin:0}
.ta-chat-root #askForm #askMsg{grid-column:1 / -1}
.ta-chat-root #askForm #askMsg:empty{display:none}
/* the "Team" button: phones & small tablets only */
.ta-teambtn{min-height:44px;padding:0 .8rem;border-radius:10px;border:1.5px solid var(--teal);background:var(--surface,#fff);color:var(--teal-deep,#0d6e6a);font:700 .88rem var(--sans,system-ui);cursor:pointer}
.ta-teambtn:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
:root[data-theme="dark"] .ta-teambtn{color:var(--teal)}
/* the as-you-type line: the same wording as the after-Ask list, the questions as small links in 1 row that swipes */
.ta-tline{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--muted);min-width:0}
.ta-tline[hidden]{display:none}
.ta-tline-h{flex:none;font-weight:600;color:var(--ink)}
.ta-tline-qs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.ta-tline-qs::-webkit-scrollbar{display:none}
.ta-tline-q{flex:none;max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--border);border-radius:99px;padding:.3rem .7rem;background:var(--surface,#fff);color:var(--teal-deep,#0d6e6a);text-decoration:none;min-height:32px;box-sizing:border-box;display:inline-flex;align-items:center}
:root[data-theme="dark"] .ta-tline-q{color:var(--teal)}
@media(max-width:767px){.ta-tline{flex-direction:column;align-items:stretch;gap:.3rem}.ta-tline-q{min-height:40px}}
/* the panel's pieces */
.ta-side{display:flex;flex-direction:column;gap:.9rem;font-size:.88rem;min-width:0}
.ta-side-x{display:none}
.ta-side-rel[hidden],.ta-side-a[hidden]{display:none}
.ta-side-rel .al{margin:0}
.ta-side-rel.ta-flash .al{animation:taFlash 1s ease-out}
@keyframes taFlash{0%{box-shadow:0 0 0 0 rgba(13,110,106,.5)}40%{box-shadow:0 0 0 4px rgba(13,110,106,.25)}100%{box-shadow:0 0 0 0 transparent}}
.ta-side-ans:empty{display:none}
.ta-side-a{background:var(--surface);border:1px solid var(--border-soft);border-left:4px solid var(--teal);border-radius:10px;padding:.7rem .85rem}
.ta-side-q{margin:0 0 .5rem;font-weight:600;color:var(--ink);line-height:1.35;overflow-wrap:anywhere}
.ta-side-a .card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.ta-side-a .tm-thread{flex-basis:100%}
.ta-side-msg:empty{display:none}
.ta-side .pick{margin:0}
.ta-side .ask-who{display:block;margin:0}
.ta-side #askRecent .ar{margin:0}
.ta-chat-root #askFeed .ask-card.ta-cur{box-shadow:inset 3px 0 0 var(--teal)}
.ta-chat-root #askFeed .ask-card:only-child.ta-cur{box-shadow:none}
.ta-scrim{display:none}

/* computers: conversation + the team panel on the right; the box sticks to the bottom of the screen */
@media(min-width:1024px){
  .tm-main:has(> .ta-chat-root){max-width:1240px}
  .ta-chat-root{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.8rem;align-items:start}
  .ta-chat-root .ta-conv{min-height:calc(100vh - 150px)}
  .ta-chat-root .ta-dock{position:sticky;bottom:0;padding:.7rem 0 1rem;margin-top:.6rem;border-top:1px solid var(--border-soft)}
  .ta-chat-root .ta-teambtn{display:none}
  .ta-chat-root #askForm{grid-template-columns:minmax(0,1fr) auto}
  .ta-chat-root #askForm #askQ{grid-column:1}
  .ta-chat-root #askForm #askGo{grid-column:2}
  .ta-side{position:sticky;top:76px;max-height:calc(100vh - 96px);overflow-y:auto;padding:0 2px 1rem}
}
/* under 1024px: the panel is a sheet that slides up from the bottom */
@media(max-width:1023px){
  .ta-side{position:fixed;left:0;right:0;bottom:0;z-index:1001;max-height:80vh;overflow-y:auto;background:var(--paper,#fff);border-radius:16px 16px 0 0;
    box-shadow:0 -10px 30px rgba(0,0,0,.22);padding:2.6rem 16px calc(1.2rem + env(safe-area-inset-bottom,0px));box-sizing:border-box;
    transform:translateY(105%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
  .ta-side.open{transform:none;visibility:visible;transition:transform .25s ease}
  .ta-side-x{display:block;position:absolute;top:.35rem;right:.5rem;width:44px;height:44px;border:0;background:none;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer}
  .ta-scrim{display:block;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s}
  .ta-scrim.open{opacity:1;pointer-events:auto}
  .ta-chat-root .ta-dock{position:sticky;bottom:0;padding:.6rem 0 .8rem;border-top:1px solid var(--border-soft)}
  .ta-chat-root .ta-conv{min-height:calc(100vh - 150px)}   /* the box starts at the bottom of the screen, as on a computer */
}
/* phones (the rail folds to 1 line here): the box is fixed above the menu bar, like a chat app */
@media(max-width:820px){
  .ta-chat-root .ta-dock{position:fixed;left:0;right:0;bottom:var(--ta-nav,0px);margin:0;padding:8px 12px 10px;box-sizing:border-box;
    border-top:1px solid var(--line,#dfe5e8);box-shadow:0 -6px 18px rgba(15,40,38,.08)}
  .ta-chat-root .ta-conv{min-height:0;padding-bottom:calc(var(--ta-form,110px) + 16px)}
  .ta-chat #rs-adv-fab{bottom:calc(var(--ta-nav,0px) + var(--ta-form,110px) + 12px)!important}
  .ta-chat-root .ta-dock #askRelated{max-height:45vh;overflow-y:auto}
}
@media(prefers-reduced-motion:reduce){.ta-side,.ta-side.open,.ta-scrim{transition:none}.ta-side-rel.ta-flash .al{animation:none}}

/* ---------- the ✓ ✗ ? boxes (his yes 2026-11-09), copied from /search: our call on each line ---------- */
.ask-card.ta .tri-wrap{flex:none;position:relative;align-self:flex-start;margin:.15rem .5rem 0 0}
.ask-card.ta .tri{width:28px;height:28px;border-radius:6px;border:1.5px solid;background:var(--surface,#fff);font:800 15px/1 var(--sans,system-ui);cursor:pointer;padding:0}
.ask-card.ta .tri.v-right{color:#0b5b4f;border-color:#0f766e;background:#e6f4f1}
.ask-card.ta .tri.v-wrong{color:#b42318;border-color:#b42318;background:#fdecea}
.ask-card.ta .tri.v-unsure{color:#8a5a00;border-color:#b8893d;background:#fdf3dc}
.ask-card.ta .tri.changed{box-shadow:0 0 0 3px rgba(20,40,40,.2)}
.ask-card.ta .tri:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ask-card.ta .tri-key{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:4px;border:1.5px solid;font:800 11px/1 var(--sans,system-ui);margin:0 2px 0 6px;vertical-align:-3px}
.ask-card.ta .tri-key.v-right{color:#0b5b4f;border-color:#0f766e;background:#e6f4f1}
.ask-card.ta .tri-key.v-wrong{color:#b42318;border-color:#b42318;background:#fdecea}
.ask-card.ta .tri-key.v-unsure{color:#8a5a00;border-color:#b8893d;background:#fdf3dc}
.ask-card.ta .ta-callkey{margin:0 0 8px;font-size:.8rem;line-height:1.5;color:var(--muted);grid-column:1/-1}
.ask-card.ta .ta-calls{list-style:none;margin:0 0 8px;padding:0}
.ask-card.ta .ta-calls li{display:flex;align-items:flex-start;gap:0;padding:3px 0;font-size:.88rem;line-height:1.4;color:var(--text)}
.ask-card.ta .ta-calls .tri-txt{flex:1;min-width:0}
.ask-card.ta[data-ta="best"] .ta-callkey{display:none}
/* his 2026-11-09 ask (less clutter): the "only ChatGPT" / "our summary" notes under a line are gone; the colored dots & "N of M" say it, tap them for who */
.ask-card.ta .ba-only{display:none}
