@import "https://assets.braindrop.dev/latest/css/index.css";

h1[id], h2[id], section[id], article[id] { scroll-margin-top: 140px; }
h3[id]                                    { scroll-margin-top: 80px; }

figure {
    margin: 0;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

figure:hover { transform: translateY(-5px); cursor: pointer; }
figure img   { display: block; max-width: 100%; }

figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

.comments {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.comments h3 { font-family: "Courier New", monospace; }

#comment-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid #ddd;
    font: inherit;
    resize: vertical;
}

#comment-form button[type="submit"] { margin: 0.5rem 0 1rem; }

#guest-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#guest-controls input {
    padding: 0.35rem 0.5rem;
    border: 1px solid #ddd;
    font: inherit;
    font-size: 0.9rem;
}

.guest-hint {
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #888;
}

.guest-badge {
    font-family: "Courier New", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #eee;
    padding: 1px 5px;
    color: #888;
}

.reply-form { margin: 0.5rem 0; }

.reply-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid #ddd;
    font: inherit;
    resize: vertical;
    margin-bottom: 0.4rem;
}

.comment { padding: 0.75rem 0; border-bottom: 1px solid #eee; }

.comment-meta {
    margin: 0 0 0.25rem;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #888;
}

.comment-author { font-weight: 600; color: #555; }

.comment-text { margin: 0; white-space: pre-wrap; }

.comment-empty { color: #888; font-size: 0.9rem; }

#comments-toggle { display: block; margin-top: 0.75rem; }

@media (max-width: 768px) {
    section[id], article[id] { scroll-margin-top: 160px; }
    h2, h3 { line-height: 1.7rem; }
}

.drop-edit { outline: none; cursor: text; }
.drop-edit:hover  { box-shadow: 0 1px 0 var(--border); }
.drop-edit:focus  { box-shadow: 0 1px 0 var(--accent); }

.drop-edit.drop-subtitle:empty::before {
    content: attr(data-placeholder);
    color: var(--text-light);
}
