article h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

article h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

article h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

article h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

article p {
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
}

article ul {
    margin-bottom: 30px;
    padding-left: 40px;
}

article ul li {
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
}

article ul li {
    margin-bottom: 7px;
}

article ul li p {
    margin: 7px 0 17px 0;
}

.article-content img {
    width: 95%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
}

.pdf-viewer {
    display: block;
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    height: 80vh;
    max-height: 900px;
    margin-left: -10px;
    margin-right: -10px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

@media (min-width: 900px) {
    .pdf-viewer {
        width: 112%;
        max-width: 112%;
        margin-left: -6%;
        margin-right: -6%;
    }
}

article .table-of-contents {
    color: var(--secondary-text-color);
}

article .table-of-contents ol li {
    margin: 0 0 5px 0;
}

article .table-of-contents a {
    color: var(--secondary-text-color);
    text-decoration: none;
}

article .table-of-contents a:hover {
    text-decoration: underline;
}

article code {
    background-color: var(--quaternary-contrast-color);
    padding: 0px 5px; /* Increased side padding slightly */
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;

    /* TEXT GAP FIXES: Makes sure code elements have proper gaps when inline */
    display: inline-block;
    vertical-align: baseline;
    margin: 0 3px;
}

article table {
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
}

article table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: inherit;
  font-size: 14px;
}

article th, td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

article thead th {
  font-weight: 600;
  border-bottom: 1.3px solid rgba(255, 255, 255, 0.7); /* thicker, clear divider */
}

/* row separators: thin and subtle */
article tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.20); /* thin, light line between rows */
}

article tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1024px) {
    .articles-page-main {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    article h1 {
        font-size: 2rem;
        margin-bottom: 9.1px;
        font-weight: 455;
    }

    article h2 {
        font-size: 1.44rem;
        margin-bottom: 9.1px;
    }

    article h3 {
        font-size: 1.17rem;
        margin-bottom: 9.1px;
    }

    article h4 {
        font-size: 0.99rem;
        margin-bottom: 9.1px;
    }

    article p {
        line-height: 1.56;
        margin-bottom: 27.3px;
        font-size: 1rem;
        font-weight: 182;
    }
}

@media (max-width: 680px) {
    article h1 {
        font-size: 1.82rem;
        margin-bottom: 8.28px;
        font-weight: 414.05;
    }

    article h2 {
        font-size: 1.29rem;
        margin-bottom: 8.28px;
    }

    article h3 {
        font-size: 1.05rem;
        margin-bottom: 8.28px;
    }

    article h4 {
        font-size: 0.89rem;
        margin-bottom: 8.28px;
    }
}
