/**
 * Classic Editor Page Content Styles
 *
 * Loaded only on standard WordPress pages that use the classic editor
 * (not on WooCommerce pages, cart, checkout, my-account, wishlist, etc.).
 *
 * All rules are scoped to .krokus-content-page .entry-content to prevent
 * any leakage to other page types.
 */

/* -------------------------------------------------------
   Content wrapper spacing
   ------------------------------------------------------- */
.krokus-content-page .entry-content {
    padding: 40px 0 60px;
}

@media screen and (max-width: 768px) {
    .krokus-content-page .entry-content {
        padding: 30px 0 40px;
    }
}

/* -------------------------------------------------------
   Paragraphs
   ------------------------------------------------------- */
.krokus-content-page .entry-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* -------------------------------------------------------
   Headings – restore margin that the global reset removes
   ------------------------------------------------------- */
.krokus-content-page .entry-content h1,
.krokus-content-page .entry-content h2,
.krokus-content-page .entry-content h3,
.krokus-content-page .entry-content h4,
.krokus-content-page .entry-content h5,
.krokus-content-page .entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.krokus-content-page .entry-content h1:first-child,
.krokus-content-page .entry-content h2:first-child,
.krokus-content-page .entry-content h3:first-child,
.krokus-content-page .entry-content h4:first-child,
.krokus-content-page .entry-content h5:first-child,
.krokus-content-page .entry-content h6:first-child {
    margin-top: 0;
}

/* -------------------------------------------------------
   Lists – restore bullet/number markers stripped globally
   ------------------------------------------------------- */
.krokus-content-page .entry-content ul {
    padding-left: 1.5em;
    margin-bottom: 1rem;
    list-style: disc;
}

.krokus-content-page .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1rem;
    list-style: decimal;
}

.krokus-content-page .entry-content ul li,
.krokus-content-page .entry-content ol li {
    margin-bottom: 0.3em;
    list-style: inherit;
}

/* Nested lists */
.krokus-content-page .entry-content ul ul,
.krokus-content-page .entry-content ol ol,
.krokus-content-page .entry-content ul ol,
.krokus-content-page .entry-content ol ul {
    margin-top: 0.3em;
    margin-bottom: 0;
}

/* -------------------------------------------------------
   Links – always underlined inside editor content
   ------------------------------------------------------- */
.krokus-content-page .entry-content a {
    text-decoration: underline;
}

.krokus-content-page .entry-content a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------
   Images – WordPress Classic Editor alignment classes
   ------------------------------------------------------- */
.krokus-content-page .entry-content img {
    height: auto;
}

.krokus-content-page .entry-content .alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.krokus-content-page .entry-content .alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.krokus-content-page .entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image captions */
.krokus-content-page .entry-content .wp-caption {
    max-width: 100%;
}

.krokus-content-page .entry-content .wp-caption-text {
    font-size: 0.85em;
    color: rgba(37, 31, 31, 0.65);
    text-align: center;
    margin-top: 0.4em;
}

/* -------------------------------------------------------
   Tables
   ------------------------------------------------------- */
.krokus-content-page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95em;
}

.krokus-content-page .entry-content table th,
.krokus-content-page .entry-content table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.krokus-content-page .entry-content table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* -------------------------------------------------------
   Blockquotes
   ------------------------------------------------------- */
.krokus-content-page .entry-content blockquote {
    border-left: 4px solid #C0080B;
    padding: 0.5rem 1rem;
    margin: 1rem 0 1rem 0;
    color: rgba(37, 31, 31, 0.7);
    font-style: italic;
}

/* -------------------------------------------------------
   Horizontal rules
   ------------------------------------------------------- */
.krokus-content-page .entry-content hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

/* -------------------------------------------------------
   Clear floats after content blocks
   ------------------------------------------------------- */
.krokus-content-page .entry-content::after {
    content: "";
    display: table;
    clear: both;
}
