/*
 * Text pages (terms, privacy, shipping...) and the admin editor share these rules,
 * so what the owner sees while editing is what the visitor reads.
 * The accent colour comes from the store's primary colour (--pg-accent).
 */
.pg { padding: 48px 0 72px; background: #fff; }
/* The reading column starts at the same edge as the logo and breadcrumb (right in Arabic, left in English) */
.pg__article { max-width: 860px; }

.pg__title {
    margin: 0 0 28px;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    color: #1f2937;
    text-align: start;
}
.pg__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--pg-accent, #1b5e20);
}

.pg-content {
    text-align: start;
    color: #374151;
    font-size: 1.02rem;
    line-height: 2;
    overflow-wrap: anywhere;
}
.pg-content > :first-child { margin-top: 0; }
.pg-content h1,
.pg-content h2 { margin: 2.2rem 0 .8rem; font-size: 1.45rem; font-weight: 800; line-height: 1.5; color: #1f2937; }
.pg-content h3 { margin: 2rem 0 .6rem; font-size: 1.2rem; font-weight: 700; line-height: 1.5; color: #1f2937; }
.pg-content h4 { margin: 1.6rem 0 .5rem; font-size: 1.05rem; font-weight: 700; color: #1f2937; }
.pg-content p { margin: 0 0 1rem; }
.pg-content ul,
.pg-content ol { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.pg-content li { margin-bottom: .4rem; }
.pg-content strong { color: #111827; }
.pg-content a { color: var(--pg-accent, #1b5e20); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pg-content blockquote {
    margin: 1.4rem 0;
    padding: 12px 18px;
    border-inline-start: 4px solid var(--pg-accent, #1b5e20);
    border-radius: 8px;
    background: #f4f7f4;
}
.pg-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pg-content hr { margin: 2rem 0; border: 0; border-top: 1px solid #e5e7eb; }
.pg-content table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; }
.pg-content th,
.pg-content td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: start; }
.pg-content th { background: #f9fafb; font-weight: 700; }

.pg__gallery { margin-top: 40px; }
.pg__gallery img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; }
.pg__gallery h4 { margin-top: 10px; font-size: 1rem; text-align: start; }

/* The editor's own content area (CKEditor adds this class to the editable body) */
body.cke_editable { padding: 16px 20px; background: #fff; }
