/* Articles v0.1 */

.public-content-body {
    background: var(--bg);
}

.articles-all-link {
    color: #0a7f44;
    font-size: 14px;
    font-weight: 600;
}

.articles-all-link:hover {
    text-decoration: underline;
}

.article-card-link {
    display: block;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.article-card-link:hover {
    transform: translateY(-2px);
    border-color: #d4dce5;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .08);
}

.article-image-media {
    overflow: hidden;
    background: #eef2f5;
}

.article-image-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-image-auto-1 {
    background:
        radial-gradient(circle at 70% 30%, rgba(20, 232, 118, .5), transparent 22%),
        linear-gradient(135deg, #0b2831, #102f25);
}

.article-image-auto-2 {
    background:
        radial-gradient(circle at 30% 60%, rgba(52, 120, 246, .55), transparent 22%),
        linear-gradient(135deg, #081625, #13273b);
}

.article-image-auto-3 {
    background:
        radial-gradient(circle at 65% 40%, rgba(124, 77, 255, .45), transparent 20%),
        linear-gradient(135deg, #171127, #0c1b2a);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #8a94a2;
    font-size: 11px;
}

.home-articles-empty,
.content-empty-state {
    padding: 30px;
    border: 1px dashed #d6dde5;
    border-radius: 16px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.content-hero {
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 232, 118, .12), transparent 28%),
        linear-gradient(135deg, #06131d, #092330);
}

.compact-content-hero {
    padding: 64px 0 58px;
}

.content-hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.content-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 17px;
    line-height: 1.65;
}

.content-kicker {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.content-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .54);
    font-size: 13px;
}

.content-breadcrumbs a:hover {
    color: #fff;
}

.articles-page-section {
    padding: 46px 0 72px;
}

.articles-grid-page {
    margin-top: 26px;
}

.category-browser {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.category-browser-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.category-browser-inline {
    margin-top: 28px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #dfe5eb;
    border-radius: 999px;
    color: #536070;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
}

.category-chip.root {
    color: #083922;
    border-color: #ccefdc;
    background: #eafff3;
    font-weight: 600;
}

.category-chip:hover {
    border-color: #b7c2ce;
    color: #17212b;
}

.articles-pagination {
    margin-top: 34px;
}

/* Article page */

.article-page-header {
    padding: 58px 0 34px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(20, 232, 118, .12), transparent 26%),
        linear-gradient(135deg, #06131d, #092330);
}

.article-reading-container {
    width: min(calc(100% - 32px), 820px);
    margin: 0 auto;
}

.article-pretitle {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.article-page-header h1 {
    margin: 0;
    font-size: clamp(38px, 5.3vw, 64px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.article-lead {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .73);
    font-size: 18px;
    line-height: 1.65;
}

.article-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .46);
    font-size: 12px;
}

.article-cover {
    overflow: hidden;
    margin-top: 30px;
    border-radius: 20px;
    background: #0b1d27;
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 470px;
    object-fit: cover;
}

.article-page-body {
    padding-top: 38px;
    padding-bottom: 64px;
}

.article-toc {
    margin-bottom: 34px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.article-toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.article-toc ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: #526172;
    font-size: 13px;
    line-height: 1.55;
}

.article-toc .toc-level-3 {
    margin-left: 18px;
}

.article-toc a:hover {
    color: #087442;
}

.article-rich-content {
    color: #202a34;
    font-size: 17px;
    line-height: 1.76;
}

.article-rich-content > :first-child {
    margin-top: 0;
}

.article-rich-content h2 {
    scroll-margin-top: 92px;
    margin: 46px 0 16px;
    color: #101820;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.6px;
}

.article-rich-content h3 {
    scroll-margin-top: 92px;
    margin: 34px 0 13px;
    color: #17212b;
    font-size: 23px;
    line-height: 1.3;
}

.article-rich-content p {
    margin: 0 0 20px;
}

.article-rich-content ul,
.article-rich-content ol {
    margin: 0 0 22px;
    padding-left: 26px;
}

.article-rich-content li {
    margin: 6px 0;
}

.article-rich-content a {
    color: #087442;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-rich-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--green-dark);
    border-radius: 0 14px 14px 0;
    color: #465463;
    background: #effaf4;
}

.article-rich-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.article-rich-content th,
.article-rich-content td {
    padding: 11px 12px;
    border: 1px solid #e1e6eb;
    text-align: left;
}

.article-rich-content th {
    background: #f5f7f9;
    font-weight: 600;
}

.related-articles-section {
    padding: 52px 0 72px;
    border-top: 1px solid #e5eaf0;
}

/* Embedded calculator */

.article-calculator-widget {
    margin: 34px 0;
    padding: 24px;
    border: 1px solid #dce5e0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 232, 118, .08), transparent 30%),
        #fff;
    box-shadow: 0 12px 36px rgba(16, 24, 40, .06);
}

.article-widget-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.article-widget-head span {
    color: #0a8b4a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.article-widget-head h3 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.3;
}

.article-widget-full-link {
    flex: 0 0 auto;
    color: #087442;
    font-size: 12px;
    font-weight: 600;
}

.article-widget-switch {
    display: inline-flex;
    gap: 4px;
    margin-top: 20px;
    padding: 4px;
    border-radius: 12px;
    background: #eef2f5;
}

.article-widget-switch button {
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    color: #5e6a78;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.article-widget-switch button.active {
    color: #06381f;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}

.article-widget-fields {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr;
    gap: 12px;
    margin-top: 18px;
}

.article-widget-fields label {
    display: grid;
    gap: 7px;
}

.article-widget-fields label > span {
    color: #687586;
    font-size: 11px;
    font-weight: 500;
}

.article-widget-fields input,
.article-widget-fields select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dce3e9;
    border-radius: 11px;
    outline: 0;
    color: #14202a;
    background: #fff;
}

.article-widget-fields input:focus,
.article-widget-fields select:focus {
    border-color: #54cf8b;
    box-shadow: 0 0 0 3px rgba(20, 232, 118, .1);
}

.article-widget-input-suffix {
    position: relative;
}

.article-widget-input-suffix input {
    padding-right: 34px;
}

.article-widget-input-suffix > span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #8b95a0;
    font-size: 13px;
}

.article-widget-freebet-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #6e5b21;
    background: #fff8df;
    font-size: 11px;
    line-height: 1.5;
}

.article-widget-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.article-widget-results > div {
    padding: 15px;
    border: 1px solid #e3e8ed;
    border-radius: 13px;
    background: #f8fafb;
}

.article-widget-results span {
    display: block;
    margin-bottom: 5px;
    color: #74808d;
    font-size: 10px;
}

.article-widget-results strong {
    color: #102019;
    font-size: 22px;
    font-weight: 700;
}

.article-widget-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.article-widget-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 12px;
}

.article-widget-table th,
.article-widget-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #e9edf1;
    text-align: right;
}

.article-widget-table th:first-child,
.article-widget-table td:first-child {
    text-align: left;
}

.article-widget-table th {
    color: #7b8794;
    font-weight: 500;
}

.article-widget-cta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e7ecef;
    color: #6c7885;
    font-size: 12px;
}

.article-widget-cta a {
    color: #087442;
    font-weight: 600;
}

@media (max-width: 760px) {
    .compact-content-hero {
        padding: 46px 0 42px;
    }

    .content-hero h1,
    .article-page-header h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .content-hero p,
    .article-lead {
        font-size: 15px;
    }

    .article-page-header {
        padding-top: 42px;
    }

    .article-rich-content {
        font-size: 16px;
        line-height: 1.72;
    }

    .article-rich-content h2 {
        margin-top: 38px;
        font-size: 26px;
    }

    .article-rich-content h3 {
        font-size: 21px;
    }

    .article-calculator-widget {
        padding: 18px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .article-widget-head {
        flex-direction: column;
        gap: 9px;
    }

    .article-widget-fields {
        grid-template-columns: 1fr;
    }

    .article-widget-results {
        grid-template-columns: 1fr;
    }

    .article-widget-cta {
        flex-direction: column;
        gap: 6px;
    }
}


.articles-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    color: #7a8693;
    font-size: 12px;
}

.articles-pager a {
    color: #087442;
    font-weight: 600;
}

.articles-pager a:last-child {
    text-align: right;
}

@media (max-width: 560px) {
    .articles-pager {
        grid-template-columns: 1fr 1fr;
    }

    .articles-pager > span:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}

/* Articles v0.1.1 — compact article widget + cleaner article header */

.article-page-header {
    padding-top: 48px;
}

.article-calculator-widget-compact {
    margin: 26px 0;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(16, 24, 40, .045);
}

.article-widget-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.article-widget-compact-head > div {
    min-width: 0;
}

.article-widget-compact-head span {
    display: block;
    margin-bottom: 2px;
    color: #0a8b4a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.article-widget-compact-head strong {
    display: block;
    color: #17212b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.article-widget-compact-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(132px, auto);
    align-items: end;
    gap: 12px;
    margin-top: 12px;
}

.article-calculator-widget-compact .article-widget-switch {
    margin-top: 0;
}

.article-calculator-widget-compact .article-widget-switch button {
    min-height: 38px;
    padding: 0 11px;
}

.article-calculator-widget-compact .article-widget-fields {
    display: grid;
    grid-template-columns: minmax(110px, 1.2fr) minmax(90px, .8fr) minmax(78px, .65fr);
    gap: 8px;
    margin-top: 0;
}

.article-calculator-widget-compact .article-widget-fields label {
    gap: 4px;
}

.article-calculator-widget-compact .article-widget-fields label > span {
    font-size: 10px;
}

.article-calculator-widget-compact .article-widget-fields input,
.article-calculator-widget-compact .article-widget-fields select {
    min-height: 38px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 13px;
}

.article-widget-compact-result {
    min-height: 56px;
    padding: 8px 11px;
    border: 1px solid #e3e8ed;
    border-radius: 11px;
    background: #f8fafb;
}

.article-widget-compact-result span,
.article-widget-compact-result small {
    display: block;
    color: #768290;
    font-size: 9px;
    line-height: 1.25;
}

.article-widget-compact-result strong {
    display: block;
    margin: 2px 0 1px;
    color: #102019;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.article-calculator-widget-compact .article-widget-freebet-note {
    margin-top: 9px;
    padding: 7px 10px;
    font-size: 10px;
}

@media (max-width: 760px) {
    .article-widget-compact-head {
        align-items: flex-start;
    }

    .article-widget-compact-main {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .article-calculator-widget-compact .article-widget-fields {
        grid-template-columns: 1.2fr .9fr .75fr;
    }

    .article-widget-compact-result {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        min-height: 44px;
    }

    .article-widget-compact-result strong {
        margin: 0;
        font-size: 17px;
    }

    .article-widget-compact-result small {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .article-calculator-widget-compact {
        padding: 14px;
    }

    .article-widget-compact-head {
        display: block;
    }

    .article-widget-full-link {
        display: inline-block;
        margin-top: 5px;
    }

    .article-calculator-widget-compact .article-widget-fields {
        grid-template-columns: 1fr 1fr;
    }

    .article-calculator-widget-compact .article-widget-fields label:last-child {
        grid-column: 1 / -1;
    }
}
