/* CargoNews article ending: editorial cards and compact comments. */
.cn-related {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    max-width: 930px;
    margin: 38px 0 54px;
    padding: 0 30px;
    font-family: "Open Sans", Arial, sans-serif;
}
.cn-related, .cn-related * { box-sizing: border-box; }
.cn-related__header {
    margin: 0 0 21px;
    padding: 0 0 12px;
    border-bottom: 1px solid #dedede;
    position: relative;
}
.cn-related__header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 57px;
    height: 3px;
    background: #f38118;
}
.cn-related__header h2 {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    color: #191919;
    text-transform: none;
}
.cn-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.cn-related__card {
    min-width: 0;
    width: 100%;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
}
.cn-related__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f0ed;
}
/* Outrank the old theme's #content article img rules at every breakpoint. */
#content .cn-related__grid .cn-related__card .cn-related__image > img.cn-related__photo {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    float: none !important;
    object-fit: cover !important;
    transition: transform .2s ease;
}
.cn-related__card:hover .cn-related__image img {
    transform: scale(1.025);
}
.cn-related__category {
    display: block;
    margin: 12px 0 7px;
    color: #ad580c;
    font: 700 11px/1.3 "Open Sans", Arial, sans-serif;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.cn-related__card h3 {
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
    font: 700 17px/1.38 "Open Sans", Arial, sans-serif;
    letter-spacing: -.008em;
}
.cn-related__card h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1f1f1f;
    font: inherit;
    text-decoration: none;
}
.cn-related__card h3 a:hover, .cn-related__card h3 a:focus-visible {
    color: #b65b08;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body article#single div#comments {
    margin-top: 36px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}
body article#single div#comments .cn-comments-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    font: 700 21px/1.35 "Open Sans", Arial, sans-serif;
    color: #222;
}
body article#single div#comments .cn-comments-count {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}
body article#single div#comments .cn-comment-toggle {
    margin: 15px 0 0;
    border: 1px solid #dedede;
    background: #fff;
}
body article#single div#comments .cn-comment-toggle > summary {
    position: relative;
    display: block;
    padding: 15px 45px 15px 17px;
    cursor: pointer;
    color: #323232;
    font: 700 14px/1.4 "Open Sans", Arial, sans-serif;
    list-style: none;
}
body article#single div#comments .cn-comment-toggle > summary::-webkit-details-marker { display: none; }
body article#single div#comments .cn-comment-toggle > summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 24px;
    font-weight: 400;
    color: #c26b1e;
}
body article#single div#comments .cn-comment-toggle[open] > summary::after { content: "−"; }
body article#single div#comments .cn-comment-toggle > summary:focus-visible {
    outline: 2px solid #f38118;
    outline-offset: 2px;
}
body article#single div#comments .cn-comment-toggle__body {
    padding: 0 17px 20px;
    border-top: 1px solid #eee;
}
body article#single div#comments .cn-comment-toggle__body #reply-comment {
    margin-top: 19px;
    font-size: 18px;
}
@media (max-width: 1002px) {
    .cn-related { width: 100%; max-width: 100%; padding: 0 20px; margin-top: 36px; }
    .cn-related__grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
    .cn-related__card h3 { font-size: 15px; }
}
@media (max-width: 700px) {
    .cn-related { padding: 0 16px; margin: 30px 0 36px; }
    .cn-related__header { margin-bottom: 15px; }
    .cn-related__header h2 { font-size: 22px; }
    .cn-related__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 14px; }
    .cn-related__card h3 { font-size: 15px; }
    .cn-related__category { margin-top: 8px; }
}
@media (max-width: 480px) {
    .cn-related__grid { grid-template-columns: 1fr; gap: 20px; }
    .cn-related__card { display: grid; grid-template-columns: 116px 1fr; column-gap: 12px; align-items: start; }
    .cn-related__image { grid-row: 1 / span 2; }
    .cn-related__category { margin: 0 0 5px; }
    .cn-related__card h3 { grid-column: 2; font-size: 15px; }
    .cn-related__card h3 a { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .cn-related__image img { transition: none; }
}
