@import url('../assets/css/normalize.css');
@import url('../assets/css/fonts.css');
@import url('../assets/css/back-to-top.css');
@import url('../assets/css/header.css');
@import url('../assets/css/footer.css');

/* Post */
.post {
    display: block;
    background-color: #fff;
    width: 100%;
    padding-top: 130px;
    padding-bottom: 70px;
}

    @media (max-width: 960px) {
        .post {
            padding-top: 120px;
            padding-bottom: 60px;
        }
    }

    @media (max-width: 640px) {
        .post {
            padding-top: 110px;
            padding-bottom: 50px;
        }
    }

/* Article Header */
.post .article .article-header {
    margin: 30px 0 60px;
}

    @media (max-width: 960px) {
        .post .article .article-header {            
            margin: 30px 0;
        }
    }

    @media (max-width: 640px) {
        .post .article .article-header {            
            margin: 25px 0;
        }
    }

/* Article Title */
.post .article .article-header .article-title {
    color: #333;
    font-size: 46px;
    font-weight: 700;
    line-height: 66px;    
}
    
    @media (max-width: 960px) {
        .post .article .article-header .article-title {        
            font-size: 42px;
            line-height: 60px;        
        }
    }

    @media (max-width: 640px) {
        .post .article .article-header .article-title {
            font-size: 36px;
            line-height: 52px;        
        }
    }

    @media (max-width: 480px) {
        .post .article .article-header .article-title {
            font-size: 30px;
            line-height: 42px;        
        }
    }

/* Article Details */
.post .article .article-header .article-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.post .article .article-header .article-details > * {
    position: relative;
}

.post .article .article-header .article-details > *:not(:first-child) {
    padding-left: 13px;
}

.post .article .article-header .article-details > *:not(:first-child)::before {
    background-color: #a2aaad;
    content: '';
    display: inline-block;
    width: 1px;
    height: 9px;
    position: absolute;
    top: 7px;
    left: 0;
    pointer-events: none;
    user-select: none;
}

.post .article .article-header .article-details .article-date {
    color: #7a7a7a;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    white-space: nowrap;
}

/* Article Image */
.post .article .article-image {
    max-width: 960px;
    margin: 0 auto 45px;
}

    @media (max-width: 960px) {
        .post .article .article-image {
            margin: 0 -20px 40px;
        }
    }

    @media (max-width: 640px) {
        .post .article .article-image {
            margin: 0 -20px 35px;
        }
    }

    @media (max-width: 480px) {
        .post .article .article-image {
            margin: 0 -20px 30px;
        }
    }


/* --- Article Content --- */
/* First and Last Item */
.article-content > *:first-child {
    margin-top: 0 !important;
}

.article-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Text Align */
.text-align-left {
    text-align: left;
}

.text-align-center {
    text-align: center;
}

.text-align-right {
    text-align: right;
}

/* Spacer */
.spacer {
    clear: both;
}

/* Heading */
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > h5,
.article-content > h6 {    
    clear: both;
    color: #333;
    font-weight: 700;
}

.article-content > h2 {
    font-size: 40px;
    line-height: 56px;
    margin: 25px 0;
}

    @media (max-width: 960px) {
        .article-content > h2 {
            font-size: 36px;
            line-height: 52px;
            margin: 25px 0;
        }
    }

    @media (max-width: 640px) {
        .article-content > h2 {
            font-size: 30px;
            line-height: 42px;
            margin: 22px 0;
        }
    }

    @media (max-width: 480px) {
        .article-content > h2 {
            font-size: 24px;
            line-height: 34px;            
        }
    }    

.article-content > h3 {
    font-size: 32px;
    line-height: 46px;
    margin: 25px 0;
}

    @media (max-width: 960px) {
        .article-content > h3 {
            font-size: 28px;
            line-height: 40px;
            margin: 22px 0;
        }
    }

    @media (max-width: 640px) {
        .article-content > h3 {
            font-size: 24px;
            line-height: 34px;
        }
    }

    @media (max-width: 480px) {
        .article-content > h3 {
            font-size: 22px;
            line-height: 32px;            
        }
    }    

.article-content > h4 {
    font-size: 28px;
    line-height: 40px;
    margin: 25px 0;
}

    @media (max-width: 960px) {
        .article-content > h4 {
            font-size: 24px;
            line-height: 34px;
            margin: 22px 0;
        }
    }

    @media (max-width: 640px) {
        .article-content > h4 {
            font-size: 22px;
            line-height: 32px;
        }
    }

    @media (max-width: 480px) {
        .article-content > h4 {
            font-size: 20px;
            line-height: 30px;            
        }
    }    

.article-content > h5 {
    font-size: 24px;
    line-height: 34px;
    margin: 22px 0;
}

    @media (max-width: 960px) {
        .article-content > h5 {
            font-size: 22px;
            line-height: 32px;
        }
    }

    @media (max-width: 640px) {
        .article-content > h5 {
            font-size: 20px;
            line-height: 30px;
        }
    }

    @media (max-width: 480px) {
        .article-content > h5 {
            font-size: 18px;
            line-height: 28px;            
        }
    }    

.article-content > h6 {
    font-size: 20px;
    line-height: 30px;
    margin: 22px 0;
}

    @media (max-width: 640px) {
        .article-content > h6 {
            font-size: 18px;
            line-height: 28px;            
        }
    }

    @media (max-width: 480px) {
        .article-content > h6 {
            font-size: 16px;
            line-height: 26px;            
        }
    }

/* Link */
.article-content a {
    color: #1592e0;
    text-decoration: underline;
}

/* Paragraph */
.article-content p {    
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.article-content p:not(.quote p) {
    margin: 20px 0;
}

.article-content p:not(.quote p) + p:not(.quote p):has(> img) {
    margin: 30px 0;
}

/* List */
.article-content > ul,
.article-content > ol {
    padding-left: 0;
    margin: 20px 0;
}

ul ul,
ol ol,
ol ul,
ul ol,
.article-content > ul ul,
.article-content > ol ol,
.article-content > ol ul,
.article-content > ul ol {
    margin-top: 0;
    margin-bottom: 0;
}

ol ul {
    padding-left: 21px;
}

ol ul ol {
    padding-left: 22px;
}

ol ul ol ul {
    padding-left: 20px;
}

ol ul ol ul ol {
    padding-left: 21px;
}

ol ul ol ul ol ul {
    padding-left: 20px;
}

ol ul ol ul ol ul ol {
    padding-left: 20px;
}

ol ul ol ul ol ul ol ul {
    padding-left: 20px;
}

ol ul ol ul ol ul ol ul ol {
    padding-left: 22px;
}

ol ul ol ul ol ul ol ul ol ul {
    padding-left: 20px;
}

ul ol {
    padding-left: 22px;
}

ul ol ul {
    padding-left: 22px;
}

ul ol ul ol {
    padding-left: 22px;
}

ul ol ul ol ul {
    padding-left: 22px;
}

ul ol ul ol ul ol {
    padding-left: 22px;
}

ul ol ul ol ul ol ul {
    padding-left: 20px;
}

ul ol ul ol ul ol ul ol {
    padding-left: 22px;
}

ul ol ul ol ul ol ul ol ul {
    padding-left: 20px;
}

ul ol ul ol ul ol ul ol ul ol {
    padding-left: 22px;
}

ol ol {
    padding-left: 20px;
}

ul ul {
    padding-left: 23px;
}

ul,
.article-content > ul {
    list-style-type: '—  ';
}

ul > li,
ol > li,
.article-content > ul > li,
.article-content > ol > li {
    list-style-position: inside;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}

.article-content p:not(.quote p):not(:has(> img)) + ul,
.article-content p:not(.quote p):not(:has(> img)) + ol,
.article-content p:not(.quote p):not(:has(> img)) + ul,
.article-content p:not(.quote p):not(:has(> img)) + ol {
    margin-top: -20px;
}

/* Margin for Image, Video, Table */
.image,
.video,
.table {
    margin: 30px auto;
}

/* Figcaption for Image, Video, Table */
.image > figcaption,
.video > figcaption,
.table > figcaption {
    max-width: 600px;
    color: #7a7a7a;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    margin-top: 10px;
}

    @media (max-width: 900px) {
        .table:not(:has(> .fixed-layout)) > figcaption {
            max-width: 100%;
        }
    }

/* Link for Figcaption */
.image > figcaption a,
.video > figcaption a,
.table > figcaption a {
    color: #7a7a7a;
    text-decoration: underline;
}

/* Image, Video */
.image,
.video {
    display: grid;
    justify-items: center;
    max-width: 960px;
}

@supports (position:sticky) {
    .video [poster] {
        object-fit: cover;
    }
}

/* Quote */
.quote {
	padding: 0 0 3px 30px;
	border-left: 10px solid #1592e0;
    margin: 20px 0;
}

    @media (max-width: 640px) {
        .quote {
            padding: 0 0 1px 20px;
            border-left: 7px solid #1592e0;
        }
    }

    @media (max-width: 480px) {
        .quote {
            padding: 0 0 1px 18px;
        }
    }

.quote > p {
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.quote:not(:has(> cite)) > p:not(:first-child):not(:last-child),
.quote:has(> cite) > p:not(:first-child):not(:nth-last-child(2)) {
    margin: 20px 0;
}

.quote > cite {
    display: block;
    color: #1592e0;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin-top: 10px;
}

/* Table */
.table {
    display: grid;
    justify-items: center;
    width: auto;
}

    @media (max-width: 900px) {
        .table:not(:has(> .fixed-layout)) {
            display: block;
            overflow-x: auto;
        }
    }

.table table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.table .fixed-layout {
    table-layout: fixed;    
}

.table thead {
    border-bottom: 2px solid #333;
}

.table tfoot {
    border-top: 2px solid #333;
}

.table thead th,
.table tfoot td {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #333;    
}

.table th,
.table td {
    padding: 20px;
    border: 1px solid #efeff1;
}

.table td {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333;    
}

.table table a {
    color: #1592e0;
    text-decoration: none;
}

/* File */    
.file {
    max-width: 960px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 30px auto;
    padding: 30px;    
    background-color: #f4f4f7;
    border: 1px solid #c7c7c7;
}

    @media (max-width: 640px) {
        .file {
            flex-direction: column;
            gap: 18px;
            padding: 30px 46px;
        }
    }

.file + .file {
    margin-top: -30px;
    border-top: 0;
}

.file:not(:has(> .file__button)) {
    padding: 42px 30px;
}

    @media (max-width: 640px) {
        .file:not(:has(> .file__button)) {            
            padding: 30px 46px;
        }
    }

.file > a {
    display: inline-block;
    text-decoration: none;
}

.file > a[id^="file-"] {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
}

    @media (max-width: 640px) {
        .file > a[id^="file-"] {
            text-align: center;
        }
    }

.file > .file__button {    
    display: inline-block;
    background-color: #1592e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #fff;
    text-align: center;
    padding: 12px 26px;
    user-select: none;
}

.file > .file__button:hover {    
    background-color: rgba(21, 146, 224, 0.9);
}