.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-dark.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;
}

/* Frame: border-dark.png is border.png with the panel tint rgb(34, 35, 37) baked in.
   A single pre-tinted layer replaces the old multiply-blend layer, which showed seams
   and flickered white while scrolling in iOS in-app browsers (e.g. Instagram). */
.tool::before {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 96px solid transparent;
    pointer-events: none;
    z-index: -1;
    border-image: url('../images/border-dark.png') 127 fill;
    background-color: rgb(34, 35, 37); /* Matches the image's center, so gaps between slices can't show */
}

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

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

    margin-bottom: 10px;

    background-color: transparent;
}

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

    background-color: transparent;

    line-height: 1.6;
}

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

    font-size: 22px;
    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;
    }

    .tool h2 {
        font-size: 30px;
    }

    .tool p {
        font-size: 22px;
        line-height: 1.8;
    }
}
