/* v1.1: wrapper spacing applies only to related guide blocks, not body HTML. */
.tttsm-related-group {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--tttsm-space-between, 24px);
    width: 100%;
    max-width: 100%;
    margin-block-start: var(--tttsm-space-top, 48px) !important;
    margin-block-end: var(--tttsm-space-bottom, 48px) !important;
    clear: both;
}
.tttsm-related-group > .tttsm-related {
    margin: 0 !important;
}
@media (max-width: 767px) {
    .tttsm-related-group {
        row-gap: var(--tttsm-space-mobile-between, 18px);
        margin-block-start: var(--tttsm-space-mobile-top, 28px) !important;
        margin-block-end: var(--tttsm-space-mobile-bottom, 28px) !important;
    }
}
/* All selectors stay inside the manager's own article sections. */
.tttsm-related {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border: 1px solid #d1dfdb;
    border-radius: 12px;
    background: #f4f8f6;
    color: #193d37;
    font-family: inherit;
    clear: both;
}
.tttsm-related.tttsm-related-2 {
    background: #faf8f1;
    border-color: #e3ddca;
}
.tttsm-related .tttsm-related-heading {
    margin: 0 0 1rem;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: normal;
}
.tttsm-related .tttsm-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tttsm-related .tttsm-related-item {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tttsm-related .tttsm-related-item::marker {
    content: "";
}
.tttsm-related .tttsm-related-item a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #d1dfdb;
    border-radius: 8px;
    background: #ffffff;
    color: #174b41;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    overflow-wrap: anywhere;
    box-shadow: none;
}
.tttsm-related .tttsm-related-item a:hover {
    color: #102f29;
    border-color: #54786f;
    background: #edf5f0;
}
.tttsm-related .tttsm-related-item a:focus-visible {
    outline: 3px solid #1b6b5b;
    outline-offset: 3px;
}
.tttsm-related .tttsm-related-arrow {
    flex: 0 0 auto;
    line-height: inherit;
}
@media (max-width: 480px) {
    .tttsm-related .tttsm-related-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media print {
    .tttsm-related {
        break-inside: avoid;
        box-shadow: none;
        background: #ffffff;
    }
}
