/* Mine Brief — public demo summary shortcode */
.mb-demo-summary {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    color: #1f2937;
}

.mb-demo-summary__title {
    color: #1a3a5c;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.mb-demo-summary__limit {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.mb-demo-summary__form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mb-demo-field {
    margin-bottom: 1rem;
}

.mb-demo-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1a3a5c;
}

.mb-demo-field input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
}

.mb-demo-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.mb-demo-field--hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.mb-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.mb-demo-btn__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mb-demo-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.mb-demo-btn--loading .mb-demo-btn__spinner {
    display: inline-block;
}

.mb-demo-btn:hover:not(:disabled) {
    background: #142d47;
}

.mb-demo-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mb-demo-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.mb-demo-alert[hidden] {
    display: none;
}

.mb-demo-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
}

.mb-demo-loading[hidden] {
    display: none;
}

.mb-demo-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #cbd5e1;
    border-top-color: #1a3a5c;
    border-radius: 50%;
    animation: mb-demo-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes mb-demo-spin {
    to { transform: rotate(360deg); }
}

.mb-demo-result {
    display: none;
}

.mb-demo-output {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.mb-demo-output__header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mb-demo-output__title {
    margin: 0 0 0.5rem;
    color: #1a3a5c;
    font-size: 1.35rem;
    line-height: 1.35;
}

.mb-demo-output__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mb-demo-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e8f0f8;
    color: #1a3a5c;
}

.mb-demo-badge--muted {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
}

.mb-demo-output__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    color: #374151;
}

.mb-demo-output__section {
    margin-bottom: 1.25rem;
}

.mb-demo-output__section h4 {
    margin: 0 0 0.5rem;
    color: #1a3a5c;
    font-size: 1rem;
}

.mb-demo-output__section p {
    margin: 0;
    line-height: 1.65;
    color: #374151;
}

ul.mb-demo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.65;
    color: #374151;
}

ul.mb-demo-list > li {
    position: relative;
    padding-left: 1.15em;
}

ul.mb-demo-list > li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #1a3a5c;
    font-weight: 700;
}

ul.mb-demo-list > li + li {
    margin-top: 0.35rem;
}

.mb-demo-terms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-demo-term {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
}

.mb-demo-term__name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1a3a5c;
    margin: 0;
}

.mb-demo-term__def {
    display: block;
    font-size: 13px;
    color: #555;
    margin: 4px 0 0;
    line-height: 1.55;
}

.mb-demo-output__note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
}

.mb-demo-summary__footer {
    margin-top: 1.5rem;
    text-align: center;
}

.mb-demo-disclaimer {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* Modal */
.mb-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mb-demo-modal[hidden] {
    display: none;
}

.mb-demo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.mb-demo-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mb-demo-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mb-demo-modal__title {
    margin: 0;
    font-size: 1.1rem;
    color: #1a3a5c;
}

.mb-demo-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.mb-demo-modal__close:hover {
    color: #333;
}

.mb-demo-modal__body {
    padding: 22px;
    overflow-y: auto;
}

.mb-demo-modal__body .mb-demo-output__header {
    display: none;
}
