@font-face {
    font-family: 'PonomarUnicode';
    font-display: swap;
    src: url('../fonts/PonomarUnicode.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --green: #3b7840;
    --blue: #224e9b;
}

.s {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.title {
    color: #333;
    font-family: 'PonomarUnicode';
    font-size: 36px;
}

.ch-num {
    position: relative;
    display: inline-block;
    margin: 36px 0 0 0;
    padding: 8px 42px 0 4px;
    color: #222;
    font-family: 'PonomarUnicode';
    font-size: 30px;
    line-height: 1;
    background-repeat: no-repeat;
    background-position: top 13px right 11px;
    cursor: pointer;
    transition: all 0.3s;
}
.ch-num:hover{
    background-color: rgba(244, 244, 244, 1);
    background-image: url(../img/link.svg);
}

.n {
    position: relative;
    justify-self: start;
    display: inline-block;
    margin: 8px 0;
    padding: 3px 30px 2px 5px;
    color: #2555a8;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
    font-size: 15px;
    background-repeat: no-repeat;
    background-position: top 4px right 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.n:hover {
    background-color: rgba(244, 244, 244, 1);
    background-image: url(../img/link.svg);
}

.msg{
    position: absolute;
    width: max-content;
    padding: 2px 7px;
    font-size: 12px;
    color: #222;
    background-color: rgba(244, 244, 244, 1);
    border-radius: 3px;
    font-family: medium-content-sans-serif-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    opacity: 0;
    transition: opacity 0.3s;
}

.c {
    margin-bottom: 4px;
    color: #333;
    font-family: 'PonomarUnicode';
    font-size: 30px;
    line-height: 1.5;
}

.t {
    color: var(--green);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
    font-size: 14px;
    line-height: 1.5;
}

.r {
    color: var(--blue);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
    font-size: 14px;
    line-height: 1.5;
}

.note {
    padding-left: 8px;
    color: var(--blue);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

.end {
     margin-top: 64px;
     padding-left: 8px;
}

@media screen and (max-width: 740px) {
    .ch-num{
        margin-bottom: 0;
    }
    .s{
        display: block;
    }
    .n{
        padding: 3px 30px 2px 5px;
        text-align: right;
    }
}

@media screen and (min-width: 741px) {
    .ch-num{
        margin-bottom: 10px;
    }
    .s{
        display: grid;
        grid-template-columns: max-content 1fr;
    }
    .n{
        grid-row: 1 / span 3;
        align-self: start;
        min-width: 4.5em;
        margin-right: 9px;
        padding: 7px 5px 2px 24px;
        text-align: right;
        background-position: top 6px left 4px;
    }
}

@media print {
    .s + .ch-num {
        page-break-before: always;
    }
    .s{
        page-break-inside: avoid;
    }
}