.tools-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tool card - a skinnier variant of .project, no banner.
   Uses the same border.png frame at the same scale as .project/.contact-form
   (96px corners); min-height keeps the frame tall enough that the corners
   don't overlap on a card this short. */
.tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;

    width: 80%;
    max-width: 1000px;
    min-height: 190px;

    margin-top: 15px;
    margin-bottom: 15px;

    padding: 20px 25px;

    border: 11px solid transparent;
    background-color: transparent;
    box-sizing: border-box;

    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35);

    position: relative;
    isolation: isolate;
}

.tool::before, .tool::after {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 96px solid transparent;
    pointer-events: none;
}

.tool::before {
    z-index: -2;
    border-image: url('../images/border.png') 127 fill;
}

.tool::after {
    z-index: -1;
    background-color: rgb(34, 35, 37);
    mix-blend-mode: multiply;
    -webkit-mask-box-image: url('../images/border.png') 127 fill;
}

.tool .context {
    background-color: transparent;
}

.tool h2 {
    font-size: 26px;
    font-weight: normal;
    color: rgb(255, 255, 255);

    margin-bottom: 4px;

    background-color: transparent;
}

.tool p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);

    background-color: transparent;

    line-height: 1.6;
}

.tool .tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    color: white;

    padding: 5px 20px;
    padding-right: 15px;

    border-radius: 10px;

    text-decoration: none;
    background-color: rgb(87, 114, 172);

    user-select: none;

    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;

    transition: background-color 0.3s ease;
}

.tool .tool-link:hover {
    background-color: rgb(87, 114, 172, 0.65);
}

.tool .tool-link .icon {
    transform: translateY(1px);
    width: 30px;
}

/* Larger screens: same stacked layout, just narrower to match other sections */
@media ((min-width: 768px) and (min-aspect-ratio: 7/10)) {
    .tool {
        width: 60%;
        max-width: 1000px;
    }
}
