

/* Main article column */
 .article {
    max-width: 720px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Text selection inside article only */
 .article ::selection {
    background-color: yellow;
    color: black;
}

/* Lists */
 .article ul {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}
 .article ul li { margin-bottom: 0.5rem; }

/* Images */
 .article img {
    display: block;
    margin: auto auto;
    background-color: white;
    padding: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    max-height: 500px;
    max-width: 600px;
    transition: transform .2s;
}
 .article img:active { transform: scale(1.5); }

/* Embedded tweets */
 .article .twitter-tweet {
    margin-left: auto;
    margin-right: auto;
}

/* Headings */
 .article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccc;
}
 .article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(26,26,26,0.8);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ddd;
}
 .article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(26,26,26,0.7);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

/* Quotes */
 .article .quote-author {
    font-size: 12px;
    color: #777;
}
 .article .quote-text {
    font-size: 24px;
    font-style: italic;
    color: #333;
    font-family: Georgia, serif;
}

/* Collage */
 .article .collage {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}
 .article .collage img {
    max-width: 80%;
    height: auto;
    max-height: 130px;
}

/* Separators */
 .article .horizontal-separator { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
 .article .disable-horizontal-separator { border-bottom: 0; }

/* Body-specific image trim */
 .article .article-body img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* Links */
 .article a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: underline;
}

/* Disclaimer size */
 .article .disclaimer-text { font-size: 16px; }

/* Sections */
 .article section { margin-bottom: 1rem; }

/* Ordered lists with counters */
 .article ol { counter-reset: item; }
 .article ol li {
    list-style-type: none;
    counter-increment: item;
    margin-bottom: 1rem;
    line-height: 1.5rem;
    transition: 300ms;
}
 .article ol li:hover {
    background-color: rgb(240,240,240);
    transition: 300ms;
}
 .article ol li:hover:after {
    left: -.5em;
    border-left-color: #f9dd94;
}
 .article ol li:before {
    content: counter(item);
    margin-right: 5px;
    margin-left: 5px;
    font-size: 80%;
    background-color: #f9dd94;
    color: #123c61;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Utility image sizes */
 .article .article-image { max-width: 500px; max-height: 332px; }
 .article .two-columns { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
 .article .article-image-analyze {
    max-width: -webkit-fill-available;
    max-height: auto !important;
    object-fit: contain;
    height: unset !important;
}
 .article .article-image-button { max-width: 250px; max-height: 166px; margin-right: 0.5rem; }
 .article .sectionTitle {
    font-weight: bold;
    width: fit-content;
    background-color: #f9dd94;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin: 0;
}
 .article .article-image-scroll {
    max-width: 50rem;
    max-height: 332px;
    overflow-x: scroll;
    overflow-y: hidden;
}
 .article .buttom-line,
 .article .bottom-line {
    border: 3px solid red;
    font-weight: bold;
    padding: 0.5rem;
}

/* Tables */
 .article table {
    width: 100%;
    border-collapse: collapse;
    max-height: 500px;
}
 .article table,
 .article th,
 .article td {
    border: 1px solid black;
}
 .article tr:first-child {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: white;
}
/* First cell + (legacy) first row bold */
 .article td:first-of-type,
 .article th:first-of-type,
 .article tr:first-of-type { font-weight: bold; }

 .article td {
    padding-left: 0.5rem;
}
 .article td:last-child {
    font-weight: bold;
    text-align: center;
}

/* Highlightable tables */
 .article .highlight-table table {
    display: block;
    overflow-x: scroll !important;
    white-space: nowrap;
    cursor: pointer;
}
 .article .highlight-table tr:hover {
    background-color: #ffa;
    font-weight: bold;
    cursor: pointer;
}
 .article .highlight-table td,
 .article .highlight-table th {
    position: relative;
    cursor: pointer;
}
 .article .highlight-table td:hover::after,
 .article .highlight-table th:hover::after {
    background-color: #ffa;
    font-weight: bold;
    z-index: -1;
    cursor: pointer;
}

/* Photo caption */
 .article .photo-element {
    text-align: center;
    font-size: 0.75rem;
}

/* MQ: medium screens */
@media only screen and (min-width: 800px) and (max-width: 1350px) {
     { grid-template-columns: 1fr 3fr; }
     .article { margin-left: 5vh; }
     .side-to-article-twitter { display: none; }
}

/* MQ: mobile */
@media only screen and (max-width: 800px) {
     { grid-template-columns: 1fr; }
     .side-to-article { display: none; }

     .article {
        margin-left: auto;
        margin-right: auto;
    }
     .article img {
        max-width: 90%;
    }
     .article img:active { transform: none; }

     .article table {
        display: block;
        overflow-x: scroll !important;
        white-space: nowrap;
        max-width: 350px !important;
        cursor: pointer;
    }

     .article .highlight-table { font-size: 12px; }
     .article .highlight-table td { padding: 4px; }
     .article .highlight-table tr:hover { font-weight: normal; }
     .article .highlight-table td:hover::after,
     .article .highlight-table th:hover::after { font-weight: normal; }

     .article ol { padding-inline-start: 0; margin-block-start: 0; margin-block-end: 0; }
     .article li { padding-inline-start: 0; margin-block-start: 0; margin-block-end: 0; }

     .article .article-image { max-width: 320px !important; max-height: 200px !important; }
     .article .article-image-analyze { max-width: 320px !important; object-fit: contain; height: unset !important; }
     .article .article-image-scroll { max-width: 250px !important; max-height: 162px !important; overflow-x: scroll; overflow-y: hidden; }

     .article td { text-align: center; padding-left: 0; }
     .article .two-columns { display: block; }
}
