/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: >0.3%,last 6 version,not dead
*/

/* Table */
table {
    border-collapse: separate; /* Required for radius to work */
    border-spacing: 0;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    overflow: hidden; /* Crucial for containing rounded corners */
    width: 100%;
}
th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.24rem 0.6rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}
td {
    padding: 0.45rem 0.6rem;
    border-bottom: 2px solid var(--primary);
}
    td, th {
    border-right: 1px dashed var(--primary);
}
tr:last-child td {
    border-bottom: none;
}
td:last-child, th:last-child {
    border-right: none;
}
tr:first-child th:first-child {
    border-top-left-radius: 0.3rem;
}
tr:first-child th:last-child {
    border-top-right-radius: 0.3rem;
}
tr:last-child td:first-child {
    border-bottom-left-radius: 0.3rem;
}
tr:last-child td:last-child {
    border-bottom-right-radius: 0.3rem;
}
/* Blockquote */
blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--dark-gray);
    padding: var(--spacing);
    background-color: #ffffff;
    border-left: 3px solid var(--primary);
    border-radius: 0.5rem;
}
blockquote::before {
    position: relative;
    top: 3px;
    content: url('/assets/img/icons/quote-start.svg');
}
blockquote::after {
    position: relative;
    top: 3px;
    content: url('/assets/img/icons/quote-end.svg');
}
/* Other Styles */
.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}
.sb-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: #fff;
    padding: var(--spacing);
    border-radius: 1rem;
}
.sb-box h2 {
    line-height: 1;
    margin: -3px 0 5px 0;
}
.sb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}
/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: 0.16rem;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}
.cat-item:hover {
    color: var(--primary);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}
.cat-item svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.2s ease;
}
.cat-item:hover svg {
    margin-right: 0.15rem;
}
/* Small Article Cards */
.sm-art-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sm-art-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--black);
    min-height: 73px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: 0.16rem;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}
.sm-art-card:hover {
    color: var(--primary);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}
.sm-art-card img {
    display: block;
    aspect-ratio: 3/2;
    width: auto;
    height: 69px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    border-radius: 0.16rem;
    -webkit-filter: saturate(0.3);
            filter: saturate(0.3);
    transition: all 0.2s ease;
}
.sm-art-card:hover img {
    -webkit-filter: saturate(1);
            filter: saturate(1);
}
@media (min-width: 917px) and (max-width: 1280px) {
    .sm-art-card img {
        display: none;
    }
}
@media (max-width: 389px) {
    .sm-art-card img {
        display: none;
    }
}
/* Tags */
.article-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-weight: 400;
    line-height: 1;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
.article-tags li {
    display: inline-block;
    color: var(--primary);
    padding: 0.45rem;
    border: 1px solid var(--primary);
    border-radius: 0.16rem;
    transition: all 0.2s ease;
}
.article-tags li:hover {
    color: #fff;
    background-color: var(--primary);
}
/* Body */
.article-body {
    max-width: 1050px;
    margin: 0 auto;
}
.article-body > h2:first-child {
    margin-top: var(--spacing-sm);
}
.article-body > p:first-child {
    margin-top: var(--spacing-sm);
}
.article-body > p:last-child {
    margin-bottom: -0.5rem;
}
.article-body ol ul, ul ol, ul ul, ol ol {
    margin: 0 0 var(--spacing-sm);
}
.article-body li:not(:last-child) {
    margin-bottom: 0.375rem;
}
.article-body a {
  color: inherit;
  transition: color 0.2s ease;
}
.article-body a:hover,
.article-body a:focus {
  color: #00A376;
}
.article-body a:visited {
  color: inherit;
}
.special-list > li::marker {
    content: "❖ ";
}
.article-img {
    aspect-ratio: 4/2;
    width: 100%;
    border-radius: 1rem;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}
.author-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
    padding: 1.1rem 0.1rem 0.8rem;
    border-bottom: 1px solid var(--medium-gray);
}
.author-date .item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--dark-gray);
    line-height: 1;
    font-size: 0.8rem;
}
.author-date .item svg {
    height: 1.1rem;
    width: 1.1rem;
    margin: -3px 0 0;
}