/* CKEditor Content Display Styles */
/* Common styles for displaying CKEditor content across all modules */

.content {
    line-height: 1.6;
    word-wrap: break-word;
    color: #333;
}

/* Headings */
.content h1 { font-size: 2.3em; font-weight: bold; margin: 1.2em 0 0.4em; }
.content h2 { font-size: 1.84em; font-weight: bold; margin: 1.2em 0 0.4em; }
.content h3 { font-size: 1.48em; font-weight: bold; margin: 1.2em 0 0.4em; }
.content h4 { font-size: 1.22em; font-weight: bold; margin: 1.2em 0 0.4em; }
.content h5 { font-size: 1.06em; font-weight: bold; margin: 1.2em 0 0.4em; }
.content h6 { font-size: 1em; font-weight: bold; margin: 1.2em 0 0.4em; }

/* Paragraphs */
.content p { margin: 0 0 1em 0; }

/* Text formatting */
.content strong,
.content b { font-weight: bold; }
.content em,
.content i { font-style: italic; }
.content u { text-decoration: underline; }
.content s,
.content strike,
.content del { text-decoration: line-through; }
.content sub { vertical-align: sub; font-size: 0.75em; }
.content sup { vertical-align: super; font-size: 0.75em; }

/* Links */
.content a { color: #1B69E6; text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* Lists */
.content ul,
.content ol { padding-left: 40px; margin: 1em 0; }
.content ul { list-style-type: disc; }
.content ol { list-style-type: decimal; }
.content li { margin-bottom: 0.5em; }

/* Code */
.content code {
    background-color: hsla(0, 0%, 78%, 0.3);
    padding: 0.15em;
    border-radius: 2px;
    font-family: 'Courier New', Courier, monospace;
}

.content pre {
    padding: 1em;
    color: #353535;
    background: hsla(0, 0%, 78%, 0.3);
    border: 1px solid hsl(0, 0%, 77%);
    border-radius: 2px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 1em 0;
}

.content pre code {
    background: transparent;
    padding: 0;
}

/* Blockquotes */
.content blockquote {
    overflow: hidden;
    padding-left: 1.5em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    border-left: 5px solid #ccc;
    margin: 1em 0;
}

/* Horizontal line */
.content hr {
    margin: 15px 0;
    height: 4px;
    background: hsl(0, 0%, 87%);
    border: 0;
}

/* Tables */
.content table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px double hsl(0, 0%, 70%);
    margin: 1em 0;
}

.content table td,
.content table th {
    min-width: 2em;
    padding: 0.4em;
    border: 1px solid hsl(0, 0%, 75%);
}

.content table th {
    font-weight: bold;
    background: hsla(0, 0%, 0%, 5%);
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
}

.content figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em;
}

.content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    min-width: 50px;
}

.content figure.image > figcaption {
    display: table-caption;
    caption-side: bottom;
    word-break: break-word;
    color: hsl(0, 0%, 20%);
    background-color: hsl(0, 0%, 97%);
    padding: 0.6em;
    font-size: 0.75em;
    outline-offset: -1px;
}

/* Image alignment styles */
.content .image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}

.content .image-style-align-left {
    float: left;
    margin-right: 1.5em;
}

.content .image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.content .image-style-align-right {
    float: right;
    margin-left: 1.5em;
}

.content .image img {
    max-width: 100%;
    height: auto;
}

/* Todo lists */
.content .todo-list {
    list-style: none;
    padding-left: 0;
}

.content .todo-list li {
    margin-bottom: 0.5em;
    position: relative;
    padding-left: 2em;
}

.content .todo-list li input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0.3em;
}

/* Media embeds */
.content .media {
    clear: both;
    margin: 1em 0;
    display: block;
    min-width: 15em;
}
