/*
Theme Name: YawnCato Groups Theme
Theme URI: https://yawncato.com/
Author: YawnCato
Author URI: https://yawncato.com/
Description: YawnCato Groups Theme - easy, clean and yawn theme
Version: 1.0.3
Requires at least: 6.0.0
Tested up to: 6.2
Requires PHP: 7.4
Text Domain: yawncato-groups-theme
Tags: YawnCato
*/

:root {
    --yctt-backdrop: #edecf7; /* фон сайта */
    --yctt-card-back: #fff; /* фон карточки */
    --yctt-color-primary: #212529; /* текст (параграфы) */
    --yctt-color-head: #505679; /* текст заголовков */
    --yctt-color-border: #d5d5d5; /* цвет бордеров */
    --yctt-color-link: #4442d7; /* цвет ссылок */
    --yctt-back-primary: #dee0ec; /* первый фон */
    --yctt-back-secondary: #f2f2f2; /* второстепенный фон */
    --yctt-danger: #CA1818;
    --yctt-success: #147b4c;
    --yctt-warning: #eeb306;
    --yctt-pink: #efaeae;
}

/* 1.0 Reset */
*, ::after, ::before {
    border: 0 solid var(--yctt-color-border);
    box-sizing: border-box;
}

body, h4, figure, blockquote, p {
    margin: 0;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

img, picture {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: .12s;
}

input, textarea, select {
    background: var(--yctt-back-secondary);
    border-width: 1px;
    padding: 3px 6px;
    margin: 6px 0;
}

[role=button], button, html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
    padding: 0 6px;
    border-radius: 3px;
    margin: 0 .25em .25em 0;
}

[role=button]:hover, button:hover, html input[type=button]:hover, input[type=reset]:hover, input[type=submit]:hover {
    opacity: .8;
}

[role=button]:not([class]), button:not([class]), html input[type=button]:not([class]), input[type=reset]:not([class]), input[type=submit]:not([class]) {
    background: var(--yctt-back-primary);
}

input[type="radio"], input[type="checkbox"] {
    margin: 3px 6px 12px 6px;
    min-height: 16px;
    min-width: 16px;
    vertical-align: baseline;
    accent-color: var(--yctt-color-primary);
    cursor: pointer;
}

input[type="radio"] + label, input[type="checkbox"] + label {
    cursor: pointer;
}

/* 2.0 Basic */
html {
    height: 100%;
    tab-size: 4;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--yctt-backdrop);
    color: var(--yctt-color-primary);
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, avenir next, avenir, "Segoe UI", helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeSpeed;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--yctt-color-head);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

h2 {
    font-size: calc(1.325rem + .9vw);
}

h3 {
    font-size: calc(1.3rem + .6vw);
}

h4 {
    font-size: calc(1.275rem + .3vw);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

small {
    font-size: 13px;
}

b, strong {
    font-weight: 700;
}

a {
    color: var(--yctt-color-link);
    text-decoration: underline;
    transition: .12s;
}

a:hover,
a:active,
a:visited {
    outline: 0;
    text-decoration: none;
}

em {
    font-style: italic;
}

svg:not(:root) {
    overflow: hidden;
}

img {
    border: 0;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

nav,
header {
    display: block;
}

figure, embed, object, video {
    max-width: 100%;
}

iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    margin: 18px 0;
    border-width: 1px;
}

table tbody,
table thead {
    display: table;
    width: 100%;
}

th {
    font-weight: 600;
    padding: 10px;
    text-align: left;
    background: var(--yctt-back-secondary);
}

td {
    padding: 10px;
}

figure {
    padding: 6px;
    background: var(--yctt-back-secondary);
    transition: .12s;
}

figure:hover {
    background: var(--yctt-back-primary);
}

figcaption {
    font-size: 14px;
    padding: 6px 0 3px 3px;
}

blockquote {
    padding: 18px 6px 18px 30px;
}

blockquote::before {
    content: "``";
    font-size: 42px;
    left: 5px;
    letter-spacing: -5px;
    position: absolute;
    top: 0;
}

code, kbd, pre, samp {
    font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
    font-size: .9em;
}

code:not([class]) {
    border-left-width: 1px;
    border-right-width: 1px;
    padding: 3px 6px;
    background: var(--yctt-back-secondary);
}

blockquote,
pre {
    border-left-width: 3px;
    position: relative;
    margin: 18px 0;
    background: var(--yctt-back-secondary);
}

pre {
    line-height: 1.3;
    overflow: auto;
    padding: 12px 6px 12px 18px;
}

img:not(.emoji) {
    height: auto;
}

body :not(.smiles) > img.emoji {
    height: 24px;
    vertical-align: middle;
}

article {
    margin-bottom: 48px;
}

p:not(:last-child) {
    margin-bottom: 18px;
}

li {
    margin: 6px 0;
}

.yctt-wrap {
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.yctt_box {
    background: var(--yctt-card-back);
    border-width: 1px;
    padding: 18px;
    border-radius: 5px;
    margin: 0 auto 30px;
}

.screen-reader-text {
    display: none;
}

.bttn-primary {
    background: var(--yctt-back-primary);
}

.bttn-secondary {
    background: var(--yctt-back-secondary);
}

.bttn-danger {
    color: #fff;
    background: var(--yctt-danger);
}

.bttn-success {
    color: #fff;
    background: var(--yctt-success);
}

.bttn-warning {
    background: var(--yctt-warning);
    color: #212529;
}

.post_content hr {
    border-width: 1px;
    margin: 0 auto 18px;
    width: 92%;
}

.post_content hr.w_80 {
    width: 80%;
}

@keyframes yctt_anim {
    100% {
        opacity: 1;
    }
}

/*--------------------------------------------------------------
3.0 Alignments
--------------------------------------------------------------*/
.alignleft {
    float: left;
    margin: 6px 18px 18px -18px;
}

.alignright {
    float: right;
    margin: 6px -18px 18px 18px;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 18px auto;
}

p:last-child img {
    margin-bottom: 0;
}

/* todo: ниже стили проверить */

/*--------------------------------------------------------------
4.0 Layout
--------------------------------------------------------------*/
.yctt-middle {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.right-sidebar {
    box-sizing: border-box;
    padding: 0 12px;
}


.right-sidebar {
    flex-shrink: 1;
}

.middle_content {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 6px;
}

.full_middle_content {
    margin: 12px 0;
    width: calc(100% - 192px);
}

.yctt_una_page {
    animation: both .3s yctt_anim .5s;
    opacity: 0;
}

/*--------------------------------------------------------------
5.0 Side
--------------------------------------------------------------*/
.yct_widget {
    border-radius: 3px;
    margin: 12px 0;
}

/*--------------------------------------------------------------
8.0 right una menu
--------------------------------------------------------------*/
.right-sidebar .yctt_fixed_right {
    line-height: normal;
    margin: 12px 0;
    padding: 0;
    position: fixed;
    width: 194px;
    z-index: 2;
}

.yctt_fixed_right a {
    align-items: center;
    border-bottom: 2px solid transparent;
    display: flex;
    padding: 12px 6px 10px;
    transition: .12s;
}

.yctt_fixed_right a.active,
.yctt_fixed_right a:hover {
    color: #000;
    text-decoration: none;
}

.yctt_fixed_right a span {
    font-size: 14px;
    padding: 0 4px;
}

.yctt_dop_right {
    margin: 354px 0 0;
}

/*12.0 adaptive*/
@media screen and (max-width: 1024px) {
    .right-sidebar {
        order: 3;
    }

    .yctt_dop_right {
        margin: 0 0 10px;
    }

}

@media screen and (max-width: 800px) {
    .full_middle_content {
        width: 100%;
    }
}

@media screen and (max-width: 667px) {
    .rcb_wrapper {
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .yctt_top_logo {
        margin-left: -42px;
    }
}

@media screen and (max-width: 480px) {
    .js_center_title > span {
        font-size: 12px;
        hyphens: auto;
        line-height: 10px;
        overflow: hidden;
        word-wrap: break-word;
    }
}
