h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Viewport preview (temporary dev tool) */
.viewport-preview-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.viewport-preview-bar button {
    padding: 0.4rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.viewport-preview-bar button.is-active {
    background: #2f7a5f;
    color: #fff;
    border-color: #2f7a5f;
}

.viewport-preview-frame {
    display: flex;
    justify-content: center;
    padding: 1rem 4.5rem;
    overflow-x: auto;
}

.viewport-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.viewport-card-label {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #ddd;
}

.viewport-card .post-editor {
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

/* Block editor */
.post-editor {
    max-width: 720px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-title-input {
    font-size: 2rem;
    font-weight: 700;
    border: none;
    outline: none;
    padding: 0.25rem 0;
}

.post-slug-input {
    font-size: 0.85rem;
    color: #777;
    border: none;
    outline: none;
}

.block-editor {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
}

.block-gap {
    position: relative;
    padding: 0.45rem 0;
    margin: -0.45rem 0;
}

.block-gap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0.45rem;
    height: 1px;
    background: #2f7a5f;
    opacity: 0;
    transition: opacity 0.15s;
}

.block-gap-plus {
    position: absolute;
    left: 50%;
    top: 0.45rem;
    transform: translate(-50%, -50%);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 1px solid #2f7a5f;
    background: #fff;
    color: #2f7a5f;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.block-gap:hover::before,
.block-gap:hover .block-gap-plus,
.block-gap.is-open::before,
.block-gap.is-open .block-gap-plus {
    opacity: 1;
}

.block-row {
    position: relative;
    border-radius: 6px;
}

.block-row.drag-over {
    outline: 2px dashed #1971c2;
}

.block-side-controls {
    display: contents;
}

.block-handle,
.block-replace-icon {
    opacity: 0;
    transition: opacity 0.12s;
    pointer-events: none;
}

.block-row:hover .block-handle,
.block-row:hover .block-replace-icon,
.block-row:focus-within .block-handle,
.block-row:focus-within .block-replace-icon {
    opacity: 1;
    pointer-events: auto;
}

.block-handle {
    position: absolute;
    left: -3.6rem;
    top: 0.2rem;
    cursor: grab;
    color: #aaa;
    user-select: none;
    font-size: 1.7rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-handle:hover {
    color: #555;
}

.block-replace-icon {
    position: absolute;
    left: -5.2rem;
    top: 0.35rem;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-replace-icon:hover {
    color: #555;
}

.block-content {
    flex: 1;
    min-width: 0;
}

.block-item {
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.block-item.is-editing {
    background: #f5f6f8;
}

.block-view {
    cursor: text;
    margin: 0.25rem 0;
}

.block-view:hover {
    background: #f0f1f3;
}

.block-input {
    width: 100%;
    border: 1px solid #d0d3d8;
    border-radius: 4px;
    padding: 0.4rem;
    font: inherit;
}

.block-edit-row, .block-edit-col {
    display: flex;
    gap: 0.5rem;
}

.block-edit-col {
    flex-direction: column;
}

.block-code {
    font-family: ui-monospace, Consolas, monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 0.9rem 1rem;
    box-sizing: border-box;
}

.block-code-wrapper {
    position: relative;
}

.code-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    color: #b8b8b8;
    padding: 0.3rem 0.6rem;
    border-radius: 6px 6px 0 0;
    font-size: 0.8rem;
}

.code-view-language {
    font-weight: 600;
}

.code-view-header + .block-code {
    border-radius: 0 0 6px 6px;
    margin-top: 0;
}

.code-view-toolbar {
    display: flex;
    gap: 0.4rem;
}

.code-view-toolbar button {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

.code-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1700;
}

.code-settings-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.code-settings-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.code-settings-drawer-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}

.code-settings-drawer-placeholder {
    color: #999;
    font-size: 0.9rem;
}

.code-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-toolbar button.is-active {
    font-weight: 700;
}

.block-code.with-line-numbers code {
    display: block;
    counter-reset: line;
}

.block-code.with-line-numbers .code-line {
    display: block;
    padding-left: 2.5rem;
    position: relative;
}

.block-code.with-line-numbers .code-line::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: 0;
    width: 2rem;
    text-align: right;
    color: #6e7681;
}

.block-image-placeholder {
    border: 1px dashed #aaa;
    padding: 2rem;
    text-align: center;
    color: #888;
}

.block-divider-wrapper {
    margin: 1.25rem 0;
}

.block-divider {
    border: none;
    cursor: pointer;
    margin: 0;
}

.block-divider-thin {
    border-top: 1px solid #ccc;
}

.block-divider-medium {
    border-top: 2px solid #ccc;
}

.block-divider-thick {
    border-top: 4px solid #ccc;
}

.block-divider-size-menu {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.block-divider-size-menu button {
    padding: 0.25rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.block-divider-size-menu button.is-active {
    background: #2f7a5f;
    color: #fff;
    border-color: #2f7a5f;
}

.block-toolbar {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.block-toolbar button {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

.block-columns {
    margin: 0.25rem 0;
}

.block-columns-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.block-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.block-column .block-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.block-column .block-edit-col,
.block-column .block-code-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.block-column .block-code {
    flex: 1;
}

.block-columns-add-menu {
    align-items: center;
}

.block-columns-add-menu span {
    font-size: 0.8rem;
    color: #777;
}

.block-add-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.block-add-trigger {
    margin-top: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px dashed #bbb;
    border-radius: 6px;
    background: transparent;
    color: #555;
    cursor: pointer;
    align-self: flex-start;
}

.add-block-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.add-block-panel {
    position: relative;
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.add-block-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #888;
    cursor: pointer;
}

.add-block-heading {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.add-block-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    margin-bottom: 0.9rem;
}

.add-block-search input {
    border: none;
    outline: none;
    flex: 1;
    font: inherit;
}

.add-block-section-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.add-block-recent {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-block-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #2f7a5f;
    border-radius: 8px;
    background: #eef7f1;
    color: #2f7a5f;
    cursor: pointer;
}

.add-block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.add-block-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.5rem;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.add-block-card:hover:not(.is-disabled) {
    border-color: #2f7a5f;
}

.add-block-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.add-block-icon {
    font-size: 1.4rem;
}

.add-block-title {
    font-weight: 600;
}

.add-block-desc {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.add-block-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.65rem;
    background: #eee;
    color: #888;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.richtext-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.richtext-floating-toolbar {
    position: fixed;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #2d2d2d;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 1500;
}

.richtext-floating-toolbar button {
    min-width: 1.8rem;
    padding: 0.15rem 0.4rem;
    background: transparent;
    border: none;
    color: #eee;
    cursor: pointer;
}

.richtext-toolbar-divider {
    width: 1px;
    height: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.1rem;
}

.richtext-floating-toolbar button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.richtext-floating-toolbar button.richtext-color-trigger {
    font-weight: 700;
}

.richtext-floating-toolbar button.richtext-type-trigger {
    font-weight: 700;
    font-size: 0.8rem;
}

.richtext-type-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0.4rem;
    width: 8rem;
    z-index: 1600;
}

.richtext-type-option {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.richtext-type-option:hover {
    background: #f0f1f3;
}

.richtext-type-option.is-active {
    background: #eef7f1;
    color: #2f7a5f;
    font-weight: 600;
}

.richtext-color-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0.65rem;
    width: 13rem;
    z-index: 1600;
}

.richtext-color-section-label {
    font-size: 0.75rem;
    color: #888;
}

.richtext-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
}

.richtext-preset-swatch {
    box-sizing: border-box;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #333;
}

.richtext-preset-swatch.is-bg {
    color: #333;
}

.block-size-body1 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.block-size-body2 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
}

.block-size-body3 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.block-size-h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.block-size-h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.block-size-h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.block-size-h4 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.richtext-input {
    border: none;
    outline: none;
    padding: 0;
    margin: 0.25rem 0;
}

/* Auth pages */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-title {
    text-align: center;
    margin: 0;
}

.auth-subtitle {
    text-align: center;
    margin: -0.5rem 0 0;
    color: #777;
}

.auth-error {
    color: #c0392b;
    font-size: 0.85rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.auth-field label {
    font-size: 0.8rem;
    color: #555;
}

.auth-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-submit {
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    background: #2f7a5f;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.auth-alt {
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #999;
    font-size: 0.8rem;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ddd;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-social-btn {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: not-allowed;
}

.post-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
/* ── 독자 페이지 (Reader) ─────────────────────────────────────────
   BREAKPOINTS.md: 데스크톱 1100px / 태블릿 720px / 모바일 전체폭 */
.post-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

@media (max-width: 960px) {
    .post-page {
        max-width: 720px;
    }
}

.site-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e4e6ea;
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

/* 글 목록 (홈) */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-list-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.post-list-title:hover {
    text-decoration: underline;
}

.post-list-summary {
    margin: 0.4rem 0 0;
    color: #555;
}

.post-list-date {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #999;
}

.post-list-empty {
    color: #888;
    text-align: center;
    padding: 3rem 0;
}

/* 글 보기 */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
}

.post-not-found {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.post-content {
    line-height: 1.75;
}

.reader-block {
    margin: 0.6rem 0;
}

.reader-quote {
    border-left: 4px solid #2f7a5f;
    margin: 1rem 0;
    padding: 0.4rem 1rem;
    color: #555;
    background: #f7f8f9;
}

.reader-quote cite {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #999;
}

.reader-image img {
    max-width: 100%;
    border-radius: 8px;
}

.reader-image {
    margin: 1.25rem 0;
    text-align: center;
}

.reader-image figcaption {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #888;
}

/* 독자 렌더러는 줄번호 여부와 무관하게 항상 줄 단위 span으로 코드를 그리므로,
   줄번호가 꺼져 있어도 각 줄이 제 줄에 표시되도록 보정 (에디터는 span을 줄번호 모드에서만 씀) */
.block-code .code-line {
    display: block;
    min-height: 1.4em;
}

/* ── 이미지 블록: FileStorage 공개 파일 픽커 ───────────────────── */
.image-picker-open {
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    border: 1px solid #2f7a5f;
    border-radius: 6px;
    background: #fff;
    color: #2f7a5f;
    cursor: pointer;
}

.image-picker-open:hover {
    background: #eef7f3;
}

.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #d0d3d8;
    border-radius: 6px;
    padding: 0.6rem;
}

.image-picker-item {
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f7f8f9;
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.image-picker-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.image-picker-item span {
    font-size: 0.7rem;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-picker-item:hover {
    border-color: #9fc9b9;
}

.image-picker-item.is-selected {
    border-color: #2f7a5f;
}

.image-picker-empty {
    grid-column: 1 / -1;
    color: #888;
    text-align: center;
    margin: 1rem 0;
}

.image-picker-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.image-picker-selected img {
    max-height: 120px;
    border-radius: 6px;
}

.image-picker-selected button {
    padding: 0.3rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* ── 글 관리 (admin) ─────────────────────────────────────────── */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-new-post-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    background: #2f7a5f;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-page-title {
    font-size: 1.6rem;
    margin: 0 0 1rem;
}

.admin-status-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.admin-status-tabs button {
    padding: 0.35rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-status-tabs button.is-active {
    background: #2f7a5f;
    border-color: #2f7a5f;
    color: #fff;
}

.admin-post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-post-table th,
.admin-post-table td {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #eceef1;
}

.admin-post-title a {
    color: #222;
    font-weight: 600;
}

.admin-status {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.admin-status-published {
    background: #e2f3ec;
    color: #1d6a4e;
}

.admin-status-draft {
    background: #eef0f3;
    color: #555;
}

.admin-status-trashed {
    background: #fdeaea;
    color: #b23b3b;
}

.admin-post-actions {
    display: flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.admin-post-actions a,
.admin-post-actions button {
    padding: 0.2rem 0.55rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
}

.admin-post-actions .admin-danger {
    border-color: #d9a0a0;
    color: #b23b3b;
}

.editor-chrome-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}
