/* Custom typography overrides for .prose blocks */

/* Paragraph spacing */
.prose p {
    margin-bottom: 0.5em;
    line-height: 1.75;
}

/* Heading styling and spacing */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #0f172a;
    /* slate-900 */
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

/* Remove top margin for first child to avoid extra gap */
.prose> :first-child {
    margin-top: 0;
}

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

/* Specific heading sizes for .prose context */
.prose h3 {
    font-size: 1.25rem;
}

.prose h4 {
    font-size: 1.125rem;
}

.prose h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    /* slate-700 */
}

/* List styling and spacing */
.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
    list-style-type: disc;
}

.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.3em;
}

/* Ensure nested lists are indented but managed */
.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


/* Global HTML styles */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

/* Fixed-size privacy checkbox with tick (works regardless of Tailwind peer variants) */
.privacy-box {
    position: relative;
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    border-radius: 0.42rem;
    background: #E98322;
}

.privacy-input:checked+.privacy-box::after {
    content: "";
    position: absolute;
    inset: 0.18rem 0.22rem 0.2rem 0.3rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.privacy-input:focus-visible+.privacy-box {
    outline: 2px solid rgba(233, 131, 34, .75);
    outline-offset: 2px;
}

/* Read More Toggle for Prose */
.prose-collapsed {
    max-height: 340px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.prose-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    color: #ea8323;
    /* brand-orange */
    cursor: pointer;
    transition: color 0.15s ease;
}

.prose-toggle:hover {
    color: #c26a1b;
    /* darker orange */
}

.prose-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.prose-toggle.expanded .fa-chevron-down {
    transform: rotate(180deg);
}