/* 820px is a deliberate prose measure, narrower than any Bootstrap column
   at this container width, so it stays bespoke; mx-auto centres it. */
.article-page { max-width: 820px; padding: var(--ta-hdr-pad) 0 var(--ta-sec-gap); }

.article-breadcrumb {
    font-size: 12px; color: var(--tx3); margin-bottom: var(--ta-sec-gap);
    display: flex; align-items: center; gap: 6px;
}
/* Underlined at rest: the accent against the crumb's own --tx3 is 1.28:1, so
   colour alone cannot mark the link inside the sentence (SC 1.4.1). */
.article-breadcrumb a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.article-cat {
    display: inline-block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    color: var(--blue-ink); background: var(--blue-lt);
    padding: 4px 12px; border-radius: 20px; margin-bottom: var(--ta-sec-gap);
    text-decoration: none; transition: opacity .15s;
}
a.article-cat:hover { opacity: .75; }

.article-title {
    font-size: 32px; font-weight: 900; line-height: 1.2;
    color: var(--tx); margin-bottom: var(--ta-sec-gap);
}

.article-excerpt {
    font-size: 17px; color: var(--tx2); line-height: 1.6;
    margin-bottom: var(--ta-sec-gap); font-weight: 400;
}

/* Flex behaviour comes from d-flex / flex-wrap utilities */
.article-meta {
    gap: 14px;
    padding: 16px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd);
    margin-bottom: var(--ta-sec-gap);
}
.meta-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--blue-lt); color: var(--blue-ink);
    font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bd);
}
.meta-author-name { font-size: 14px; font-weight: 700; color: var(--tx); }
.meta-author-role { font-size: 12px; color: var(--tx3); }
.meta-detail {
    font-size: 12px; color: var(--tx3);
    display: flex; align-items: center; gap: 5px;
}
.meta-spacer { flex: 1; }

.article-hero {
    width: 100%; border-radius: var(--r); margin-bottom: var(--ta-sec-gap);
    max-height: 440px; object-fit: cover; display: block;
    border: 1px solid var(--bd);
}

.article-body {
    font-size: 16px; line-height: 1.8; color: var(--tx);
}
.article-body h2 {
    font-size: 22px; font-weight: 800; margin: 32px 0 14px;
    color: var(--tx); line-height: 1.3;
}
.article-body h3 {
    font-size: 18px; font-weight: 700; margin: 24px 0 10px;
    color: var(--tx);
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
    margin-bottom: 16px; padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 4px solid var(--blue);
    background: var(--blue-lt);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 15px;
    color: var(--tx);
    font-style: italic;
}
.article-body strong { font-weight: 700; }
.article-body figure {
    margin: 24px 0;
}
.article-body figure img {
    width: 100%; border-radius: 8px; display: block;
    border: 1px solid var(--bd);
}
.article-body figcaption {
    font-size: 12px; color: var(--tx3); margin-top: 8px;
    text-align: center; font-style: italic;
}
.article-body em { color: var(--tx2); }

.key-takeaways {
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: var(--r); padding: 18px 20px; margin-bottom: var(--ta-sec-gap);
}
.key-takeaways-header {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .4px; color: var(--tx); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.key-takeaways-header i { color: var(--blue); }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { font-size: 14px; line-height: 1.6; color: var(--tx2); margin-bottom: 6px; }
.key-takeaways li:last-child { margin-bottom: 0; }

.article-body .session-table-wrap {
    overflow-x: auto; margin: 24px 0;
    border: 1px solid var(--bd); border-radius: 8px;
}
.session-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.session-table caption {
    caption-side: top; text-align: left;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .4px; color: var(--tx3);
    padding: 10px 14px; background: var(--bg2);
    border-bottom: 1px solid var(--bd);
}
.session-table th, .session-table td {
    padding: 8px 14px; border-bottom: 1px solid var(--bd);
    text-align: right; white-space: nowrap;
}
.session-table th {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: var(--tx3); background: var(--bg2);
}
.session-table th:first-child, .session-table td:first-child { text-align: left; }
.session-table td { color: var(--tx); }
.session-table tbody tr:last-child td { border-bottom: none; }
.session-table a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
/* The stored article body carries an inline colour on the change cell (see
   TradeAdviceService::renderSessionTable). The generator now writes the -ink
   roles, but bodies published before 2026-07-29 hold --green/--red, and an
   inline style can only be overridden with !important. The +/- sign in the
   cell text is what actually carries the direction, so colour is decorative. */
.session-table td[style*="--green"] { color: var(--green-ink) !important; }
.session-table td[style*="--red"]   { color: var(--red-ink)   !important; }

/* Both of these were inline style attributes on article.blade.php, which put a
   hand-typed 32px in the rhythm and a hard #fff plate outside the token set. */
.article-disclaimer {
    margin-top: var(--ta-sec-gap); padding: 18px 20px;
    background: var(--bg2); border: 1px solid var(--bd); border-radius: 8px;
    font-size: 12.5px; line-height: 1.7; color: var(--tx3);
}
.article-disclaimer strong { color: var(--tx2); }

/* The chart is an SVG drawn for a light ground, so its plate must not follow the
   theme — same reasoning as the register's logo plates, hence the shared token. */
.article-chart {
    margin-top: var(--ta-sec-gap); border: 1px solid var(--bd);
    border-radius: 8px; overflow: hidden; background: var(--ta-plate);
}
.article-chart img { width: 100%; display: block; }

.article-tags {
    padding: var(--ta-sec-gap) 0; border-top: 1px solid var(--bd); margin-top: var(--ta-sec-gap);
}
.article-tags-lbl {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .7px; color: var(--tx3); margin-right: 2px;
}
.article-tag {
    font-size: 11px; font-weight: 700; padding: 5px 14px;
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: 20px; color: var(--tx2); text-decoration: none;
    transition: color .15s, border-color .15s;
}
.article-tag:hover { color: var(--blue); border-color: var(--blue); }

.article-footer {
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: var(--r); padding: 20px; margin-top: var(--ta-sec-gap);
    gap: 14px;
}
.footer-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: var(--blue-lt); color: var(--blue-ink);
    font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bd);
}
.footer-info { flex: 1; }
.footer-name { font-size: 15px; font-weight: 700; color: var(--tx); }
.footer-role { font-size: 13px; color: var(--tx3); }
.footer-model { font-size: 11px; color: var(--tx3); margin-top: 4px; }

.related-articles { margin-top: var(--ta-sec-gap); padding-top: var(--ta-sec-gap); border-top: 1px solid var(--bd); }
.related-title { font-size: 18px; font-weight: 800; color: var(--tx); margin-bottom: var(--ta-sec-gap); }
/* Columns and gutters both come from .row .row-cols-* */
.related-card {
    display: flex; flex-direction: column; gap: 6px; height: 100%;
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: var(--r); padding: 16px; text-decoration: none;
}
.related-card:hover { border-color: var(--blue); }
.related-cat {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .6px; color: var(--blue-ink);
}
.related-headline { font-size: 14px; font-weight: 700; color: var(--tx); line-height: 1.4; }
.related-meta { font-size: 11px; color: var(--tx3); margin-top: auto; }

/* Typography-only scaling; layout responsiveness comes from the Bootstrap grid */
@media (max-width: 767px) {
    .article-title { font-size: 24px; }
    .article-excerpt { font-size: 15px; }
    .article-body { font-size: 15px; }
}
