/* The Tools panel — what the layer brings that the agent does not have.
   ------------------------------------------------------------------
   Every other capability tab shows something the visitor already owns
   being connected, run or held. This one is the opposite: five tools
   that arrive with Askpilot and need no setup, which is the whole
   argument for a layer rather than another integration.

   Drawn as a shelf inside the layer: five rows, each with what the
   tool is and one line of what a workflow does with it. A highlight
   travels down the rows on a 15s loop, one row at a time, so it reads
   as a workflow reaching for each in turn rather than five things
   blinking. The loop is decoration only — every word is in the markup,
   so the panel is complete with CSS and JS both off. */

.tk-stage {
    max-width: 940px;
    margin: 0 auto;
}

.tk-shelf {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.tk-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    /* the contact shadow the workflow cards use, at a quarter strength:
       these sit inside the layer, so they must not compete with it */
    box-shadow: 0 1px 2px rgba(22, 18, 26, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* the travelling highlight: one row lit at a time, 3s each on a 15s round */
.tk-row::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1.5px solid var(--ink);
    opacity: 0;
    pointer-events: none;
    animation: tk-lit 15s linear infinite;
    animation-delay: calc(var(--i) * 3s);
}

@keyframes tk-lit {
    0%          { opacity: 0; }
    1.5%, 18%   { opacity: 1; }
    20%, 100%   { opacity: 0; }
}

.tk-ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--soft);
    color: var(--ink);
    flex: none;
}

.tk-ico svg { width: 21px; height: 21px; display: block; }

/* Present Drive and SharePoint as a deliberate paired badge. The small,
   offset tiles keep both brand marks distinct while reading as one tool. */
.tk-ico--pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2px;
    isolation: isolate;
}

.tk-ico--pair img {
    width: 22px;
    height: 22px;
    display: block;
    box-sizing: border-box;
    padding: 3px;
    border: 1px solid rgba(18, 16, 24, 0.08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 16, 24, 0.08);
    object-fit: contain;
}

.tk-ico--pair img + img {
    margin-left: -7px;
}

.tk-ico--pair img:first-child { z-index: 1; }
.tk-ico--pair img:last-child { z-index: 2; }

.tk-name {
    /* a <b> is inline by default, so without this the name runs straight
       into the sentence after it */
    display: block;
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
}

.tk-what {
    display: block;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

/* the right column: one real thing a workflow does with the tool, set as
   a quiet aside so the row still reads name-first */
.tk-use {
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid var(--line);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
}

.tk-use b {
    display: block;
    margin-bottom: 2px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}


@media (max-width: 860px) {
    .tk-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px 14px;
        padding: 14px 16px;
        /* the block is several lines tall here, so a centred icon floats in
           the middle of it; line it up with the name instead */
        align-items: start;
    }
    .tk-ico { margin-top: 1px; }
    .tk-ico { width: 38px; height: 38px; border-radius: 10px; }
    .tk-ico svg { width: 19px; height: 19px; }
    .tk-ico--pair img { width: 20px; height: 20px; padding: 2px; }
    /* the example moves under the name rather than off the side, and takes
       a top rule instead of a left one so the row still reads as one block */
    .tk-use {
        grid-column: 2;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (prefers-reduced-motion: reduce) {
    /* park on the first row rather than hiding the highlight: a shelf with
       nothing lit reads as five inert boxes */
    .tk-row::before { animation: none; opacity: 0; }
    .tk-row:first-child::before { opacity: 1; }
}
