/* ============================================================
   Астролошка Работилница — active theme styles
   Cleaned for the current WordPress theme.
   ============================================================ */

:root {
    --ar-text: #171717;
    --ar-heading: #0b263d;
    --ar-accent: #d1e709;
    --ar-link: #263800;
    --ar-link-hover: #637900;
    --ar-surface: #ffffff;
    --ar-border: #d9dfb8;
    --ar-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    --ar-radius: 14px;
    --ar-content-width: 92rem;
}

/* ---------- Base ---------- */

html {
    box-sizing: border-box;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    color: var(--ar-text);
    background: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

main {
    display: block;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
    border-style: none;
}

figure {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--ar-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--ar-link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.75rem;
    color: var(--ar-heading);
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.65rem, 4vw, 2.3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

p,
ul,
ol,
blockquote,
pre,
table {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul,
ol {
    padding-left: 1.5rem;
}

/* ---------- Current header and navigation ---------- */

.site-header {
    position: relative;
    z-index: 100;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    min-width: 0;
}

.site-logo a {
    display: inline-block;
    color: var(--ar-accent);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.site-logo a:hover,
.site-logo a:focus-visible {
    color: #ffffff;
}

.site-nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 8px 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.main-menu a:hover,
.main-menu a:focus-visible,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    color: var(--ar-accent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 38px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--ar-accent);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: #050505;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-header-inner {
        min-height: 78px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 16px;
        background: #050505;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
        z-index: 1000;
    }

    .site-nav.is-open {
        display: block;
    }

    .main-menu {
        display: block;
        width: 100%;
    }

    .main-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-menu li:last-child {
        border-bottom: 0;
    }

    .main-menu a {
        padding: 13px 4px;
    }
}

/* ---------- Main layout ---------- */

.site-main {
    width: 100%;
}

.wv-boxed > .inner {
    width: 100%;
    max-width: var(--ar-content-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.wv-content > .inner,
.wv-spacer > .inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.content-area {
    width: 100%;
    max-width: var(--ar-content-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 575px) {
    .wv-content > .inner,
    .wv-spacer > .inner {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .content-area {
        padding: 1.25rem 0.75rem;
    }
}

/* ---------- Posts, pages and archives ---------- */

.blog-post,
.single-post,
.page-content,
.no-results,
.error-404 {
    margin: 0 0 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(11, 38, 61, 0.08);
    border-radius: 10px;
    background: var(--ar-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.post-list {
    display: grid;
    gap: 1.75rem;
}

.post-header,
.page-header,
.archive-header {
    margin-bottom: 1rem;
}

.post-title,
.page-title,
.archive-title {
    color: var(--ar-heading);
}

.post-title {
    font-size: clamp(1.45rem, 3vw, 1.8rem);
}

.page-title,
.archive-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.archive-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover,
.post-title a:focus-visible {
    color: var(--ar-link-hover);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 1rem;
    color: #666666;
    font-size: 0.88rem;
}

.post-meta span,
.post-meta time {
    margin: 0;
}

.post-thumbnail {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
    background: #eeeeee;
}

.post-thumbnail a,
.post-thumbnail img {
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--ar-link);
    font-weight: 700;
    text-decoration: none;
}

.read-more:hover,
.read-more:focus-visible {
    color: var(--ar-link-hover);
}

.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    padding: 0.5rem 0.8rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    color: #333333;
    background: #ffffff;
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible,
.pagination .page-numbers.current {
    border-color: var(--ar-heading);
    color: #ffffff;
    background: var(--ar-heading);
}

/* ---------- Article content ---------- */

.post-content,
.entry-content {
    min-width: 0;
}

.post-content > *:first-child,
.entry-content > *:first-child {
    margin-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.post-content p,
.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.post-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content figure,
.entry-content figure {
    max-width: 100%;
    margin: 1.5rem auto;
}

.post-content figcaption,
.entry-content figcaption {
    margin-top: 0.5rem;
    color: #666666;
    font-size: 0.9rem;
    text-align: center;
}

.post-content blockquote,
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--ar-accent);
    background: #f6f7ef;
}

.post-content table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.post-content th,
.post-content td,
.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid #dddddd;
    vertical-align: top;
}

.post-content th,
.entry-content th {
    background: #f3f4ed;
    text-align: left;
}

.post-pages,
.page-links {
    margin-top: 2rem;
}

/* ---------- Current pricing-page components ---------- */

.ar-important-tab {
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid rgba(139, 30, 45, 0.30);
    border-left: 7px solid #8b1e2d;
    border-radius: var(--ar-radius);
    background: #fff8f9;
}

.ar-important-tab summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
}

.ar-important-tab summary::-webkit-details-marker {
    display: none;
}

.ar-important-label {
    flex: 0 0 auto;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #8b1e2d;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.ar-important-title {
    color: #4b111b;
    font-weight: 800;
    line-height: 1.4;
}

.ar-important-content {
    padding: 0 1.1rem 1.1rem;
    line-height: 1.75;
    white-space: pre-line;
}

.ar-order-info-wrap {
    max-width: 100%;
}

.ar-order-info-table {
    width: 100%;
}

/* ---------- Search and 404 ---------- */

.site-search,
.search-form {
    margin-top: 1.25rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-form label {
    flex: 1 1 260px;
}

.search-field {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
}

.search-submit,
.button,
.wp-element-button {
    display: inline-flex;
    min-height: 44px;
    padding: 0.65rem 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ar-heading);
    border-radius: 7px;
    background: var(--ar-heading);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible,
.button:hover,
.button:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible {
    border-color: var(--ar-link-hover);
    background: var(--ar-link-hover);
    color: #ffffff;
}

/* ---------- WordPress utilities ---------- */

.alignleft {
    float: left;
    margin: 0.25rem 1.25rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.25rem;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption,
.gallery-caption {
    max-width: 100%;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 5px;
    left: 5px;
    z-index: 100000;
    display: block;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    background: #ffffff;
    color: #000000;
}

/* ---------- Optional watermark used by copy protection ---------- */

#wmLayer {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    pointer-events: none;
    user-select: none;
    background-repeat: repeat;
    background-size: 760px 420px;
    opacity: 0.09;
}

#wmCorner {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2147483647;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.10);
    font: 600 8px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.2px;
    pointer-events: none;
    user-select: none;
}

/* ---------- Responsive content ---------- */

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .blog-post,
    .single-post,
    .page-content,
    .no-results,
    .error-404 {
        padding: 1rem;
        border-radius: 8px;
    }

    .ar-important-tab summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .entry-content table,
    .post-content table {
        font-size: 0.94rem;
    }

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 1rem auto;
    }
}

@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;
    }
}

/* ---------- Facebook share button: single posts only ---------- */

.single-post .post-share {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 44, 64, 0.14);
}

.single-post .facebook-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid #166fe5;
    border-radius: 8px;
    background: #1877f2;
    color: #ffffff !important;
    font: 700 15px/1.2 Arial, sans-serif;
    text-decoration: none !important;
    box-shadow: 0 2px 7px rgba(24, 119, 242, 0.18);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.single-post .facebook-share-button:hover,
.single-post .facebook-share-button:focus-visible {
    background: #166fe5;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.single-post .facebook-share-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #1877f2;
    font: 800 18px/1 Arial, sans-serif;
}

@media (max-width: 600px) {
    .single-post .facebook-share-button {
        width: 100%;
        min-height: 44px;
    }
}

/* ============================================================
   Single post layout: wider article canvas on desktop.
   Scoped only to individual WordPress posts.
   ============================================================ */
@media (min-width: 761px) {
    body.single-post main#primary.wv-boxed > .inner {
        width: min(1480px, calc(100% - 40px));
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    body.single-post main#primary .content-area {
        width: 100%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        padding-right: 0;
        padding-left: 0;
    }

    body.single-post main#primary article.single-post {
        width: 100%;
        max-width: none;
    }
}
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 32px;
}