/*
 * Copyright (c) 2026 Energy Reform Ltd.
 * All Rights Reserved.
 *
 * This file is part of a proprietary software system owned by
 * Energy Reform Ltd.
 *
 * Unauthorized copying, distribution, disclosure, or use of this file
 * is strictly prohibited.
 *
 * See PROPRIETARY SOFTWARE LICENSE.txt for full terms.
 */

/* A template's documentation (Markdown rendered as HTML): the template's page, its public page and
   the admin editor's preview. */
.model-doc {
    font-size: 15px;
    line-height: 1.6;
    color: #1b2e4b;
    overflow-wrap: anywhere;
}
.model-doc h1, .model-doc h2, .model-doc h3, .model-doc h4 {
    margin: 1.4em 0 0.5em;
    font-weight: 700;
    color: #081420;
}
.model-doc h1 { font-size: 1.6em; }
.model-doc h2 { font-size: 1.35em; padding-bottom: 0.25em; border-bottom: 1px solid #e6e8ec; }
.model-doc h3 { font-size: 1.15em; }
.model-doc > :first-child { margin-top: 0; }
.model-doc p, .model-doc ul, .model-doc ol, .model-doc table, .model-doc blockquote, .model-doc pre { margin: 0 0 1em; }
.model-doc img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e6e8ec;
    display: block;
    margin: 0.5em 0;
}
.model-doc table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.model-doc th, .model-doc td { border: 1px solid #e0e6ed; padding: 6px 10px; text-align: left; vertical-align: top; }
.model-doc th { background: #f4f6f8; font-weight: 600; }
.model-doc code { background: #f1f2f3; padding: 1px 4px; border-radius: 4px; font-size: 0.9em; }
.model-doc pre { background: #f1f2f3; padding: 10px 12px; border-radius: 6px; overflow-x: auto; }
.model-doc pre code { background: none; padding: 0; }
.model-doc blockquote { border-left: 4px solid #6aa44b; padding: 0.25em 1em; color: #506690; background: #f7faf5; }
.model-doc a { color: #4f7f37; text-decoration: underline; }

.model-files { list-style: none; padding: 0; margin: 0; }
.model-files li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.model-files li:last-child { border-bottom: 0; }
.model-files .model-file-icon {
    flex: none; width: 34px; height: 34px; border-radius: 6px; background: #fff4e3; color: #c97c10;
    display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.model-files .model-file-meta { color: #888ea8; font-size: 12px; }
