/* THE AGENT ROW IS A LINK (Steven 2026-11-09, his shot of the row under a
   want card's chart: "THis needs to be clickable."). templates/cards/
   _card.html (the row under the chart, the big card's byline at its foot)
   and cards/_agent_side.html (the agent's name on the dark side and the
   agent card) draw the row as one link to the agent's public page when it
   has one. The same look as the words it replaces: no underline, no new
   colour, no new chrome; a focus ring for a keyboard and a tap area at
   least 44px tall that moves nothing. */
.tb-card__agentlink {
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tb-card__agentlink:hover,
.tb-card__agentlink:active,
.tb-card__agentlink:visited { color: inherit; text-decoration: none; }
.tb-card__agentlink:focus { outline: none; }
.tb-card__agentlink:focus-visible {
    outline: 2px solid var(--interactive-focus-ring, var(--color-yellow-400, #f2e841));
    outline-offset: 3px;
    border-radius: var(--radius-sm, 6px);
}
/* the tap area: at least 44px tall around the row, drawn by nothing */
.tb-card__agentlink::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: max(100%, 44px);
    transform: translateY(-50%);
}
/* THE PILL IS THE AGENT DOOR (Steven 2026-11-10, the song want's card: "I
   want you to create an up chevron beside Nia in the image and remove the
   'Agent' above the green button."): on a card whose back is the plan the
   agent pill on the picture opens the agent inside the card, so it wears
   the foot's up chevron beside the name, on the name's line at the pill's
   right edge, in the name's colour; the model's line under it keeps its
   width, so the pill grows by nothing and the model never wraps
   (templates/cards/_card.html _want_art, .tb-card__chart-name). */
.tb-card__chart-name {
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    min-width: 0;
}
.tb-card__chart-open {
    flex: none;
    font-size: var(--text-base);
    color: var(--text-inverse);
}

/* THE AGENT IS TAPPABLE (Steven 2026-11-13, an agent's turn card, "Tilly ·
   Writing your plan": "there's nowhere for me to be able to click on tilly
   to learn more about her"). The agent's name reads as the site's links do:
   the pointer, and an underline under a hover or the keyboard's focus, in
   its own colour; nothing moves. The gathering card's circles and bidders
   and the plan's strip ([data-agent-tap], js/shell/page-over.js THE AGENT,
   TAPPED) take the pointer, and their names underline with them. */
.tb-side__namelink.tb-card__agentlink:hover,
.tb-side__namelink.tb-card__agentlink:focus-visible,
[data-agent-tap]:hover > .tb-gath__bidname,
.tb-gath__bidname[data-agent-tap]:hover,
.ck-strip[data-agent-tap]:hover .ck-strip__name,
.ck-strip[data-agent-tap]:focus-visible .ck-strip__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
[data-agent-tap] { cursor: pointer; }
[data-agent-tap][tabindex]:focus { outline: none; }
[data-agent-tap][tabindex]:focus-visible {
    outline: 2px solid var(--interactive-focus-ring, var(--color-yellow-400, #f2e841));
    outline-offset: 3px;
    border-radius: var(--radius-full, 999px);
}
/* a face that is the agent's door (the gathering circles, the plan's strip)
   never starts a drag of its picture */
[data-agent-tap] img,
[data-agent-tap] video { -webkit-user-drag: none; user-select: none; }

/* THE NAME IS THE DOOR, NOT THE PICTURE (Steven 2026-11-14: "I think you
   need to click on brees name and that brings up her passport. otherwise
   it should flip the card"). The picture that fills the dark side lets taps
   through to the card again (agent-side.css .tb-side--fill .tb-side__art),
   so a tap on it turns the card; the agent's name in the box ("Bree is
   writing your plan.") and on the state line reads as a link, underlined
   in its own colour as the card's other links are (.tb-side__operator a),
   its tap area at least 44px tall (.tb-card__agentlink::after above). */
.tb-side__lead > .tb-side__namelink.tb-card__agentlink,
.tb-side__statename > .tb-side__namelink.tb-card__agentlink,
.tb-side__lead > .tb-side__namelink.tb-card__agentlink:is(:hover, :active, :visited),
.tb-side__statename > .tb-side__namelink.tb-card__agentlink:is(:hover, :active, :visited) {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
