@charset "utf-8";

/*
 * Calm visual layer for onco.club.
 * This file belongs only to the child theme and is loaded after theme-2.css.
 */

:root {
    --onco-bg: #f4f7f5;
    --onco-surface: #ffffff;
    --onco-surface-soft: #eef5f1;
    --onco-text: #24332d;
    --onco-muted: #6b7873;
    --onco-border: #dfe7e3;
    --onco-primary: #176b52;
    --onco-primary-dark: #0f533e;
    --onco-radius: 0.65rem;
}

body {
    background: var(--onco-bg);
    color: var(--onco-text);
    font-size: 1rem;
    line-height: 1.62;
}

body > .container,
body > .container-fluid {
    position: relative;
}

a:not(.btn):not([style*="background"]),
.text-primary {
    color: var(--onco-primary) !important;
}

a:not(.btn):not([style*="background"]):hover,
a:not(.btn):not([style*="background"]):focus {
    color: var(--onco-primary-dark) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--onco-text);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
}

p,
li {
    line-height: 1.65;
}

.icms-header {
    background: var(--onco-surface);
    box-shadow: 0 0.15rem 0.65rem rgba(25, 55, 43, 0.07);
}

.btn {
    border-radius: 0.5rem;
    box-shadow: none !important;
    font-weight: 600;
}

.btn-primary {
    border-color: var(--onco-primary);
    background: var(--onco-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--onco-primary-dark);
    background: var(--onco-primary-dark);
}

.btn-outline-primary {
    border-color: var(--onco-primary);
    color: var(--onco-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--onco-primary);
    background: var(--onco-primary);
    color: #fff;
}

main .card,
main .icms-widget.card {
    border: 1px solid var(--onco-border);
    border-radius: var(--onco-radius);
    background: var(--onco-surface);
    box-shadow: 0 0.2rem 0.8rem rgba(25, 55, 43, 0.045);
}

main .icms-widget__transparent {
    border: 1px solid var(--onco-border) !important;
    background: var(--onco-surface) !important;
}

main .card-header {
    border-bottom: 1px solid var(--onco-border);
    border-radius: var(--onco-radius) var(--onco-radius) 0 0 !important;
    background: transparent;
}

main .card-body {
    padding: 1.15rem 1.25rem;
}

main .card-header h1,
main .card-header h2,
main .card-header h3,
main .card-header h4,
main .card-header h5,
main .card-header h6 {
    margin-bottom: 0;
}

.nav-tabs {
    gap: 0.15rem;
}

.nav-tabs .nav-link {
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: var(--onco-muted) !important;
    font-weight: 600;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-bottom-color: var(--onco-primary) !important;
    background: transparent !important;
    color: var(--onco-primary) !important;
}

.badge,
.label {
    border-radius: 0.35rem;
}

/* Branded social buttons must keep white icons on their own colour. */
#share-widget a:not(.btn),
#widget_wrapper_241 .icms-widget__html_block a:not(.btn) {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 0.6rem !important;
    color: #fff !important;
    box-shadow: 0 0.15rem 0.5rem rgba(20, 35, 29, 0.13) !important;
}

#share-widget a:not(.btn):not([title*="MAX"]) svg,
#widget_wrapper_241 .icms-widget__html_block a:not(.btn):not([title="MAX"]) svg {
    width: 1.45rem !important;
    height: 1.45rem !important;
    color: #fff !important;
}

#share-widget a:not(.btn) svg[fill="currentColor"],
#widget_wrapper_241 .icms-widget__html_block a:not(.btn) svg[fill="currentColor"] {
    fill: currentColor !important;
}

#share-widget a[title*="MAX"] svg,
#widget_wrapper_241 .icms-widget__html_block a[title="MAX"] svg {
    width: 2.75rem !important;
    height: 2.75rem !important;
}

/* Footer: muted medical teal with clear, calm navigation. */
.icms-footer__middle {
    background-color: #4b7c75 !important;
    background-image:
        linear-gradient(rgba(75, 124, 117, 0.93), rgba(75, 124, 117, 0.93)),
        url("/templates/modern/images/word_map.png") !important;
    background-position: center !important;
    background-size: cover !important;
    color: #f8fbfa !important;
}

.icms-footer__middle > .container {
    padding-top: 0;
    padding-bottom: 0;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.icms-footer__middle > .container > .row {
    padding-top: 2rem !important;
    padding-bottom: 1.25rem !important;
}

.icms-footer__middle .icms-widget,
.icms-footer__middle .icms-widget .card-body {
    color: #f8fbfa;
}

.icms-footer__middle #widget_wrapper_241 .icms-widget__html_block > div {
    border-color: rgba(255, 255, 255, 0.48) !important;
    background: rgba(24, 67, 61, 0.2) !important;
    box-shadow: 0 0.3rem 1rem rgba(24, 55, 50, 0.09);
}

.icms-footer__middle #widget_wrapper_217 .nav-link {
    margin-bottom: 0.45rem;
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1.25;
}

.icms-footer__middle #widget_wrapper_217 .nav-link:hover,
.icms-footer__middle #widget_wrapper_217 .nav-link:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
}

.icms-footer__middle .widget_tags_cloud {
    margin-bottom: 0.85rem;
}

.icms-footer__middle .widget_tags_cloud .icms-btn-tag {
    padding: 0.42rem 0.65rem;
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fbfa !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}

.icms-footer__middle .widget_tags_cloud .icms-btn-tag:hover,
.icms-footer__middle .widget_tags_cloud .icms-btn-tag:focus {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

.icms-footer__middle #widget_wrapper_229 .box {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0.7rem;
    border-color: rgba(255, 255, 255, 0.38) !important;
    border-radius: 0.55rem !important;
    background: rgba(24, 67, 61, 0.18);
}

.icms-footer__middle #widget_wrapper_229 .track {
    margin-left: 0;
    color: #ffffff;
    font-weight: 600;
}

.icms-footer__middle #widget_wrapper_229 .btn-loc {
    margin: 0.25rem 0.1rem 0.55rem 0.5rem;
    border-radius: 0.4rem;
    background: #e9f2f0;
    color: #285e57;
}

.icms-footer__middle #widget_wrapper_229 .btn-loc:hover,
.icms-footer__middle #widget_wrapper_229 .btn-loc:focus {
    background: #ffffff;
    color: #1d514a;
}

.icms-footer__middle #widget_wrapper_229 .slct {
    width: 100%;
    min-width: 0;
    margin: 0.15rem 0 0 !important;
    border-color: rgba(255, 255, 255, 0.62);
    color: #40534f;
}

/* Front page: reduce the weight of the introduction and slider. */
.icms-frontpage #blocks_main_page_01 .container_bg,
.icms-frontpage #blocks_bind_second .container_bg {
    background: var(--onco-surface-soft) !important;
}

.icms-frontpage #blocks_main_page_01 h1 {
    margin: 0;
    padding: 0.2rem 0;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 600;
}

.icms-frontpage #amslider {
    overflow: hidden;
    height: 26rem !important;
    border-radius: var(--onco-radius);
    background: #10231c;
    box-shadow: 0 0.35rem 1.15rem rgba(15, 45, 34, 0.12);
}

.icms-frontpage #amslider .amslider-inner,
.icms-frontpage #amslider .amslider-item {
    height: 26rem !important;
}

.icms-frontpage #amslider .amslider-item > img {
    width: 100%;
    height: 26rem;
    object-fit: cover;
}

.icms-frontpage #amslider .amslider-btn {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    background: rgba(18, 70, 61, 0.78) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    box-shadow: 0 0.3rem 0.9rem rgba(5, 30, 25, 0.22);
}

.icms-frontpage #amslider .amslider-btn:hover,
.icms-frontpage #amslider .amslider-btn:focus {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--onco-primary-dark) !important;
    text-shadow: none;
}

.icms-frontpage #widget_wrapper_251 {
    overflow: hidden;
    margin-top: 0.25rem;
}

.icms-frontpage #widget_wrapper_251 .card-body {
    padding: 0;
}

.icms-frontpage #blocks_bind_second h2 {
    margin: 0;
    padding: 1rem 0;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.35;
}

.icms-frontpage main > article,
.icms-frontpage main > aside {
    min-width: 0;
}

.icms-frontpage main .icms-widget__tabbed .card-header {
    padding: 0.25rem 0.75rem 0;
}

.icms-frontpage main .icms-widget__tabbed .card-body.tab-pane {
    padding: 1rem 1.25rem 1.15rem !important;
}

/* Titles in homepage tabbed lists are list items, not page headings. */
.icms-frontpage .icms-widgets.tab-content .content_list_item .f_title h3 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.4;
}

.icms-frontpage main aside .card-header {
    padding: 0.9rem 1rem 0.65rem;
}

.icms-frontpage main aside .card-body {
    padding: 0.95rem 1rem;
}

/* Content pages: improve reading rhythm without changing their templates. */
.icms-content-header::before {
    background: none !important;
    opacity: 0 !important;
}

.icms-content-header__banner {
    background-color: #deece7 !important;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.82) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 86% 110%, rgba(86, 143, 132, 0.2) 0, rgba(86, 143, 132, 0) 36%),
        repeating-linear-gradient(135deg, rgba(50, 105, 94, 0.025) 0, rgba(50, 105, 94, 0.025) 1px, transparent 1px, transparent 18px),
        linear-gradient(120deg, #edf6f2 0%, #deece7 55%, #cfe3dc 100%) !important;
    background-position: center !important;
    background-size: cover !important;
}

.icms-content-header__banner h1 {
    margin-bottom: 0;
    color: #234b40;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: none;
}

main > article > .content_item.posts_item,
main > article > .content_item.pages_item,
main > article > .content_item.articles_item {
    margin-top: 1rem !important;
    padding: 1.6rem 2rem;
    border: 1px solid var(--onco-border);
    border-radius: var(--onco-radius);
    background: var(--onco-surface);
    box-shadow: 0 0.25rem 0.9rem rgba(25, 55, 43, 0.05);
}

main > article > .content_item.posts_item .field.f_content > .value,
main > article > .content_item.pages_item .field.f_content > .value,
main > article > .content_item.articles_item .field.f_content > .value {
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
}

main > article > .content_item.posts_item .field.f_content > .value p,
main > article > .content_item.pages_item .field.f_content > .value p,
main > article > .content_item.articles_item .field.f_content > .value p {
    line-height: 1.72;
}

main > article > .content_item blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.1rem 1.3rem 1.15rem 1.45rem;
    border: 1px solid #d9e7e2;
    border-left: 4px solid #6b9f91;
    border-radius: 0.55rem;
    background: #f2f7f5;
    color: var(--onco-text);
    font-style: normal;
    line-height: 1.7;
    box-shadow: 0 0.2rem 0.65rem rgba(31, 72, 61, 0.045);
}

main > article > .content_item blockquote::before {
    content: none;
}

main > article > .content_item blockquote strong {
    color: var(--onco-primary-dark);
}

main article img.img-fluid,
main article .content img {
    border-radius: 0.45rem;
}

main article p {
    margin-bottom: 1rem;
}

.text-muted,
.text-secondary {
    color: var(--onco-muted) !important;
}

/* Problem voting uses coloured links instead of Bootstrap buttons. */
body .problems_item_btns a:not(.btn),
body .problems_item_btns a:not(.btn):visited,
body .problems_item_btns a:not(.btn):hover,
body .problems_item_btns a:not(.btn):focus,
body .p_subs_btn a:not(.btn),
body .p_subs_btn a:not(.btn):visited,
body .p_subs_btn a:not(.btn):hover,
body .p_subs_btn a:not(.btn):focus {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

/* Keep the profile accordions in the same calm visual system. */
#information .profile_fields_spoiler {
    border-color: var(--onco-border);
    border-radius: var(--onco-radius);
    box-shadow: 0 0.15rem 0.65rem rgba(25, 55, 43, 0.04);
}

#information .profile_fields_spoiler > summary.fieldset_title {
    background: #f7f9f8;
}

#information .profile_fields_spoiler[open] > summary.fieldset_title {
    border-bottom-color: var(--onco-border);
    background: var(--onco-surface-soft);
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.97rem;
        line-height: 1.58;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    main .card-body {
        padding: 1rem;
    }

    main > article > .content_item.posts_item,
    main > article > .content_item.pages_item,
    main > article > .content_item.articles_item {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    main > article > .content_item blockquote {
        margin: 1.15rem 0;
        padding: 0.95rem 1rem 1rem 1.15rem;
    }

    .icms-frontpage #blocks_main_page_01 .wow {
        padding: 0.8rem 0.65rem !important;
    }

    .icms-frontpage #blocks_main_page_01 h1 {
        font-size: 1.65rem;
        line-height: 1.22;
    }

    .icms-frontpage #amslider {
        height: 14rem !important;
        border-radius: 0.45rem;
    }

    .icms-frontpage #amslider .amslider-inner,
    .icms-frontpage #amslider .amslider-item {
        height: 14rem !important;
    }

    .icms-frontpage #amslider .amslider-item > img {
        height: 14rem;
    }

    .icms-frontpage #blocks_bind_second h2 {
        padding: 0.85rem 0;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .icms-frontpage main .icms-widget__tabbed .card-header {
        overflow-x: auto;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .icms-frontpage main .icms-widget__tabbed .nav-tabs {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .icms-frontpage main .icms-widget__tabbed .nav-link {
        padding-right: 0.65rem !important;
        padding-left: 0.65rem !important;
    }

    .icms-frontpage main .icms-widget__tabbed .card-body.tab-pane {
        padding: 0.85rem 1rem 1rem !important;
    }

    .icms-footer__middle > .container > .row {
        padding-top: 1.5rem !important;
        padding-bottom: 0.75rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
