/* CSS Variables */
:root {
    --content-max-width: 780px;
}

/* Article webpage styles */
.articles-page-main {
    max-width: var(--content-max-width);
    margin: 20px auto 0;
    padding: 0 25px;
    overflow: visible;
}

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 .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;
}

article .featured-article-image img {
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 20px;
}

/* On large screens, break out even further */
@media (min-width: 900px) {
    .featured-article-image {
        width: 112%;      /* 10% wider than the main container */
        margin-left: -6%; /* Pull left by 5% to center it */
        margin-right: -6%;
    }
}

article .strap-line {
    font-size: 1.4rem;
    font-style: italic;
    margin: 0px;
    font-weight: 100;
}

article .author-date {
    font-size: 1rem;
    margin: 0px;
    color: var(--secondary-text-color);
}

article .author-date a {
    color: var(--secondary-text-color);
    text-decoration: underline;
}

article .author-date a:hover {
    text-decoration: underline;
}

article a {
    color: var(--primary-color);
    text-decoration: underline;
}

article .divider-line-horizontal,
.divider-line-horizontal-top,
.divider-line-horizontal-bottom {
    border: none;
    border-top: 1px solid var(--divider-color);
    width: calc(100% + 16px);
    margin: 20px -8px 30px;
}

.divider-line-horizontal-top {
    margin-bottom: 14px;
}

.divider-line-horizontal-bottom {
    margin-top: 10px;
}

article .article-sharing-exporting ul {
    list-style: none;
    padding: 0;
    margin: 0px;
    display: flex;
    gap: 15px;
}

article .article-sharing-exporting ul li {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.7;
}

article .article-sharing-exporting ul li:hover {
    opacity: 1;
    transform: scale(1.05);
}

article .article-sharing-exporting ul a {
    color: white;
}

article .article-sharing-exporting ul li img {
    height: 20px;
}

article footer {
    margin: 0 0 100px;
    padding: 0;
}

/* Article Elements */

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 ul li {
    margin-bottom: 7px;
}

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

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;
}

/* Article pdf view */
.pdf-viewer {
    width: calc(100% + 100px);
    margin: 0px -50px;
    height: 820px;
    border: none;
    border-radius: 10px;
}


@media (max-width: 1024px) {}

@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;
    }

    article .strap-line {
        font-size: 1.27rem;
        font-weight: 91;
    }

    article .author-date {
        font-size: 1.03rem;
    }
}

@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;
    }

    article .strap-line {
        font-size: 1.16rem;
        font-weight: 82.81;
    }

    article .author-date {
        font-size: 0.95rem;
    }
}