/* Shared styles for the reference pages (printers, filaments, guides, troubleshooting):
   the "what to do next" block that links a page to the tools, and small notices.
   Loaded by the templates that use templates/learn/_tool_links.html. */

.next-step {
    background: rgba(94, 106, 210, 0.12);
    border: 1px solid rgba(130, 143, 255, 0.45);
    border-left: 4px solid #5e6ad2;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0 1.5rem;
    color: #e6e8ef;
}
.next-step h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.next-step p {
    color: #cfd3dc;
    margin: 0 0 1rem;
    max-width: 62ch;
}
.next-step-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.next-step-btn {
    display: inline-block;
    background: #5e6ad2;
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
}
.next-step-btn:hover,
.next-step-btn:focus {
    background: #828fff;
    color: #ffffff;
}
.tool-price {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e6e8ef;
}
.tool-price.is-free {
    background: rgba(40, 167, 69, 0.18);
    border-color: rgba(40, 167, 69, 0.55);
    color: #9be3ad;
}

.related-tools {
    margin: 1.5rem 0;
    color: #e6e8ef;
}
.related-tools h2,
.related-tools h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem;
}
.related-tools ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.related-tools li {
    margin: 0;
}
.related-tools a.related-tool {
    display: block;
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #cfd3dc;
    text-decoration: none;
}
.related-tools a.related-tool:hover,
.related-tools a.related-tool:focus {
    border-color: #828fff;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.related-tool-name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.related-tool-does {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
}
.tools-account-note {
    font-size: 0.875rem;
    color: #aab2c5;
    margin: 0.75rem 0 0;
}
.tools-account-note a {
    color: #c5cbff;
}

/* Notice on a printer that is no longer sold */
.discontinued-notice {
    border: 1px solid rgba(255, 193, 7, 0.55);
    background: rgba(255, 193, 7, 0.1);
    color: #ffe9a8;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
}
.discontinued-notice a {
    color: #ffffff;
    font-weight: 600;
}

.price-note {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Text-only legal pages */
.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
}
.legal-page table {
    width: 100%;
    margin: 0.5rem 0 1rem;
    border-collapse: collapse;
}
.legal-page th,
.legal-page td {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-page {
    padding-top: 2rem;
}
