.ffr-fieldset-loose { margin-top: 1rem; position: relative; z-index: 0; }
.ffr-fieldset-loose > legend {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    font-weight: 700;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgb(0 0 0 / 0.08);
}
.dark .ffr-fieldset-loose > legend { border-color: rgb(255 255 255 / 0.1); }
.ffr-fieldset-loose::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: -0.5rem;
    left: -0.5rem;
    width: 3rem;
    background: linear-gradient(to right, rgb(0 0 0 / 0.05), transparent);
    border-bottom-left-radius: 0.75rem;
}
.dark .ffr-fieldset-loose::before { background: linear-gradient(to right, rgb(255 255 255 / 0.06), transparent); }

.iban-ghost { color: rgba(156, 163, 175, 0.5); -webkit-text-fill-color: rgba(156, 163, 175, 0.5); }
.dark .iban-ghost { color: rgba(156, 163, 175, 0.45); -webkit-text-fill-color: rgba(156, 163, 175, 0.45); }
.iban-input { text-transform: uppercase; letter-spacing: 0.12em; }
.iban-ghost { letter-spacing: 0.12em; }

/* Markdown content styling */
.md-content {
    line-height: 1.7;
}

.md-content h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.md-content h1:first-child {
    margin-top: 0;
}

.md-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

.md-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.md-content h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.md-content p {
    margin-bottom: 1em;
}

.md-content ul,
.md-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.md-content li {
    margin-bottom: 0.25em;
}

.md-content code {
    background-color: rgba(156, 163, 175, 0.15);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.md-content pre {
    background-color: rgba(156, 163, 175, 0.1);
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.md-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.md-content blockquote {
    border-left: 4px solid rgba(156, 163, 175, 0.3);
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    font-style: italic;
    color: rgba(107, 114, 128, 1);
}

.dark .md-content blockquote {
    color: rgba(156, 163, 175, 1);
}

.md-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.md-content table th,
.md-content table td {
    border: 1px solid rgba(156, 163, 175, 0.3);
    padding: 0.5em 0.75em;
    text-align: left;
}

.md-content table th {
    background-color: rgba(156, 163, 175, 0.1);
    font-weight: 600;
}

.md-content a {
    color: rgb(59, 130, 246);
    text-decoration: underline;
}

.md-content a:hover {
    color: rgb(37, 99, 235);
}

.md-content hr {
    border: 0;
    border-top: 1px solid rgba(156, 163, 175, 0.3);
    margin: 2em 0;
}

.md-content strong {
    font-weight: 600;
}

.md-content em {
    font-style: italic;
}
