@import "./config.css";

:root {
    --icon-color: #027df7
}



html, body {
    font-size: var(--base-font-size)
}

.main-content, aside, .title {
    padding: 20px
}

.title, h1 {
    font-size: 1.22rem;
    padding-top: 8px;
    padding-bottom: 8px
}

nav a {
    font-weight: 400 !important
}

footer {
    grid-area: footer
}

h1 {
    line-height: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding-top: 8px;
    padding-bottom: 0 !important;
    margin: 0
}

p {
    margin-top: 0
}

img {
    max-width: 100%;
    height: auto
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600
}

header {
    grid-area: header
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 2rem;
    margin: 10px 0
}

hr {
    display: none !important
}

p, ul {
    font-size: inherit;
    line-height: inherit
}

.main-content {
    grid-area: main;
    padding-top: .5rem
}

.title {
    grid-area: title
}

li::marker {
    color: var(--color-primary)
}

.intro, p {
    font-size: .89rem
}

.restrict-width_home {
 width: 100%;
}


.restrict-width {
    max-width: var(--content-width); 
    margin: 0 auto auto;
}


.restrict-width_article{
    max-width: var(--content-width);
    margin: 0 auto auto
}
.text-center {
    text-align: center
}

.font-weight-bold {
    font-weight: 700
}

.font-weight-medium {
    font-weight: 500
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem
}

.mb-0 {
    margin-bottom: 0
}

.mt-3 {
    margin-top: 1rem
}

.mx-3 {
    margin-left: 1rem;
    margin-right: 1rem
}

.mb-3 {
    margin-bottom: 1rem
}

.medium-screens {
    display: none
}

.aside-container {
    box-shadow: 2px 2px 10px var(--color-secondary);
    border-radius: 4px;
    padding: .5rem 1rem
}

.aside-container h2 {
    margin-bottom: 0;
    margin-top: .75rem
}

.aside-container, h2 {
    font-size: 1rem !important
}

.content-wrapper_home {
    /* display: grid !important; */
    grid-template-areas: 'title''info''toc''main''articles'
}


.content-wrapper {
    display: grid !important;
    grid-template-areas: 'title''info''toc''main''articles'
}

/* .content-wrapper_article {
    display: grid !important;
    grid-template-areas: 'title''info''toc''main''articles'
} */

@media(min-width:1260px) {
    .content-wrapper {
        grid-template-areas: 'title title title''info info info''toc main articles';
        grid-template-columns: 25% 50% 25%
    }
    .content-wrapper_xy {
        grid-template-areas: 'title title title''info info info''toc main articles';
        /* grid-template-columns: 25% 50% 25% */
    }
}

aside.table-of-contents {
    display: none;
    grid-area: toc
}

.table-of-contents .aside-container {
    position: sticky ;
    top: 1rem;
}

.table-of-contents hr {
    margin-top: .75rem
}

.aside-container a, .expandable-content a {
    color: inherit
}

.expandable {
    position: sticky;
    background: var(--color-light);
    top: 0;
    box-shadow: 2px 2px 10px var(--color-secondary);
    border-radius: 5px;
    top: 10px;
    margin-bottom: 1rem;
    background-color: initial
}

.expandable, .mobile, .desktop-none {
    position: relative;
    padding: 2px 9px
}

.expand-button-label {
    font-size: .78rem
}

#expand-button {
    display: none
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .9s ease;
    font-size: .78rem
}

.expandable-content ul {
    margin: 0
}

.expand-button-label {
    cursor: pointer;
    display: flex;
    font-weight: 700;
    align-items: center;
    justify-content: space-between
}

.expandable-button {
    width: 2rem;
    fill: var(--color-primary)
}

#expand-button:checked+.expandable-content {
    max-height: 100vh
}

.author .aside-container h2 {
    align-items: center;
    font-weight: 400;
    font-size: 1.5rem
}

.author .aside-container {
    padding-bottom: 1rem
}

.author hr {
    margin-top: .5rem
}

.author h2 .author-name {
    margin-left: .5rem;
    color: var(--mdl-primary)
}

.author-name {
    font-size: 1rem
}

aside .article-info h2 {
    align-items: center;
    display: flex
}

.published {
    font-style: italic;
    margin-bottom: 0;
    margin: 0 0 .25rem
}

.article-info {
    display: none;
    width: 100vw;
    max-width: var(--content-width)
}

.article-info hr {
    display: none
}

.article-info h2 {
    font-size: inherit;
    margin: 0 0 .25rem;
    font-weight: 500
}

.estimation svg {
    display: none
}

.estimation {
    display: none
}

span.time {
    display: none;
    display: flex !important;
    align-items: center;
    margin-bottom: 0;
    font-size: .67rem
}

.published, span.time {
    display: inherit !important
}

.author, .aside-container {
    padding-bottom: 0 !important
}

.aside-container {
    display: flex;
    flex-direction: column
}

.aside-container h2 {
    margin-top: 0 !important
}

.article-info-mobile {
    padding: 5px 0
}

.published {
    display: none
}

.published-mobile {
    font-weight: 500;
    opacity: .6;
    font-size: 1rem
}

.ad-blocks {
    width: 100%;
    margin: 1rem 0;
    min-height: 550px
}

aside.latest-articles {
    width: 100%;
    grid-area: articles;
    background-color: initial;
    border-top: 1px solid var(--color-lt-gray);
    padding: 1rem
}

.latest-articles__section-header {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0;
    margin: 0;
    background: 0 0;
    box-shadow: none
}

.latest-articles__section-header>* {
    margin: 0;
    font-size: inherit;
    font-weight: inherit
}

.latest-articles-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.latest-article-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem
}

.latest-article-item__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px
}

.latest-article-item__title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-dark)
}

.latest-article-item__title a {
    color: inherit
}

.latest-article-item__read-more {
    margin: 0
}

.latest-article-item__read-more a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline
}

.ai-disclaimer {
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
    padding: 1.5rem 1rem;
    align-items: top;
    border-radius: 20px;
    opacity: .8;
    display: flex
}

.ai-disclaimer svg {
    margin-top: .2rem;
    margin-right: 1rem;
    width: 50px;
    height: max-content
}

.ai-disclaimer p {
    line-height: 1.3rem
}

.restrict-width aside.article-info {
    grid-area: info;
    padding-bottom: 0;
    padding-top: 0
}

.share {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    height: 50px;
    width: 100%;
    padding: 0 16px;
    background-color: inherit
}

.share-inner-container {
    display: flex;
    justify-content: space-between;
    width: 100%
}

.icon-container {
    display: flex;
    align-items: center;
    margin-left: 16px
}

.icon-container a {
    margin-left: 8px;
    opacity: 1;
    color: var(--icon-color)
}

.share svg, .share .icon svg * {
    fill: var(--icon-color) !important
}

.icon-container img, .icon-container svg {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    opacity: 1
}

@media(min-width:350px) {
    .article-info {
        flex-direction: row !important;
        align-items: center !important
    }
}

@media(min-width:500px) {
    hr {
        background-color: var(--color-primary);
        border: none;
        height: 4px;
        margin: 1rem 75% 0 0;
        display: block !important
    }

    .author .aside-container h2 {
        display: flex !important
    }

    .author, .aside-container {
        padding-bottom: 1rem !important;
        width: 100% !important
    }

    .author .medium-screens {
        display: block
    }

    .estimation svg {
        width: 1.25rem;
        color: var(--color-primary);
        fill: currentColor;
        margin-right: .25rem;
        opacity: 2;
        display: block
    }

    .estimation {
        display: flex !important;
        align-items: center;
        margin-bottom: 0
    }

    span.time {
        display: block
    }

    .article-info {
        align-items: center;
        margin-bottom: .5rem
    }

    .published, span.time {
        font-weight: 500;
        opacity: .6;
        font-size: .78rem
    }

    .published, span.time {
        font-size: .67rem;
        margin: 0
    }

    .article-info {
        display: flex;
        justify-content: space-between
    }
}

@media(min-width:760px) {
    h2 {
        font-size: 1.25rem !important
    }

    .article-info {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin: 0 !important
    }
}

@media(min-width:768px) {
    body {
        font-size: calc(var(--base-font-size) + .15rem);
        line-height: calc(20px + .6rem)
    }

    h1 {
        font-size: 2rem;
        line-height: 2.5rem
    }

    .expand-button-label {
        font-size: 1.15rem
    }

    .expandable-content {
        font-size: 1.15rem
    }

    .by-h2 {
        font-size: 1rem !important
    }

    .author-name {
        margin-left: 6px !important
    }
}

@media(min-width:1260px) {
    h1 {
        font-size: 3rem;
        line-height: 3.5rem
    }

    .intro, p {
        font-size: 1.15rem
    }

    [id^=header-] {
        font-size: 1.75rem
    }

    .aside-container {
        width: 16rem;
        height: inherit
    }

    .aside-container.h2 {
        font-size: 1.75rem !important
    }

    aside.table-of-contents, aside.latest-articles {
        display: block;
        border: none
    }

    .article-info {
        margin-bottom: .5rem
    }

    .estimation {
        display: flex !important;
        align-items: center !important;
        line-height: 2rem;
        margin: 0 0 .25rem
    }

    .estimation svg {
        width: 1.5rem
    }

    .estimation, .time {
        font-size: 1.15rem
    }

    .published, span.time {
        font-size: inherit;
        line-height: inherit
    }

    .table-of-contents-li {
        font-size: 1.15rem
    }

    .latest-articles__title {
        font-size: 1.75rem !important
    }

    .latest-article-item__title {
        font-size: 1rem !important
    }
}

.display-ad-block {
    width: 300px;
    height: 250px;
    margin-bottom: 1rem
}

@media(max-width:1260px) {
    .display-ad-block {
        justify-self: center
    }
}