/* Custom styles for Obec Dlouhá Lhota */

/* ── Prose / CMS content typography ── */

.prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    color: #111827;
}

.prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1.75em;
    margin-bottom: 0.6em;
    line-height: 1.35;
    color: #1e3a5f;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.35em;
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.4;
    color: #1f2937;
}

.prose h4, .prose h5, .prose h6 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.4em;
    color: #374151;
}

.prose a {
    color: #1e3a5f;
    text-decoration: underline;
    text-decoration-color: #93b5d5;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

.prose a:hover {
    text-decoration-color: #1e3a5f;
}

.prose strong {
    font-weight: 600;
    color: #1f2937;
}

.prose ul, .prose ol {
    margin-top: 0.75em;
    margin-bottom: 1.25em;
    padding-left: 1.75em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.35em;
}

.prose li::marker {
    color: #9ca3af;
}

.prose blockquote {
    border-left: 4px solid #1e3a5f;
    padding: 0.75em 1.25em;
    margin: 1.5em 0;
    background: #f8fafc;
    color: #4b5563;
    font-style: italic;
    border-radius: 0 0.375rem 0.375rem 0;
}

.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.25em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    font-size: 0.95rem;
}

.prose table th {
    background: #f3f4f6;
    font-weight: 600;
    text-align: left;
    color: #1f2937;
}

.prose table th,
.prose table td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
}

.prose table tr:nth-child(even) {
    background: #f9fafb;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

/* Summernote fix for daisyUI */
.note-editor {
    border-radius: 0.5rem;
    border-color: oklch(var(--bc) / 0.2);
}

.note-editor .note-editing-area .note-editable {
    background: oklch(var(--b1));
    color: oklch(var(--bc));
}

/* Sortable drag ghost */
.sortable-ghost {
    opacity: 0.4;
    background: oklch(var(--p) / 0.1);
}

/* Print-friendly */
@media print {
    .navbar, .drawer-side, footer, .btn {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
}
