/* The blog page builder in News. */
.news-blocks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.news-blocks[hidden] { display: none; }
.news-block { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.news-block header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.news-block-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.news-block-kind svg, .news-block-tools svg, .news-block-drop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-block-tools { display: inline-flex; gap: 2px; }
.news-block-tools button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.news-block-tools button:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.news-block-tools button[data-remove]:hover { color: var(--bad); }
.news-block-tools button:disabled { opacity: .35; cursor: default; }
.news-block > input, .news-block > textarea { margin: 0; }
.news-block[data-type="heading"] > input { font-size: 15px; font-weight: 600; }
.news-block[data-type="quote"] > textarea { font-style: italic; }
.settings .news-block textarea { min-height: 84px; }
.news-block label { margin: 10px 0 0; font-size: 12.5px; }
.news-block label > input, .news-block label > select, .news-block label > textarea { margin-top: 6px; font-weight: 400; }
.news-block-optional { font-weight: 400; color: var(--faint); }
.news-block-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.news-block[data-type="divider"] .news-block-hint { margin: 0; }
.news-block-status { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.news-block-status:empty { display: none; }
.news-block-status.bad { color: var(--bad); }
.news-block-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 0 10px; }
.news-block-grid label:first-child { margin-top: 0; }
.news-block-grid label { margin-top: 0; }
.news-block-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.news-block-thumb { position: relative; margin: 0; }
.news-block-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: var(--hover); }
.news-block-thumb input { margin-top: 6px; padding: 6px 8px; font-size: 12px; border-radius: 8px; }
.news-block-thumb-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(17,17,26,.72); color: #fff; font-size: 16px; line-height: 26px; cursor: pointer; }
.news-block-thumb-remove:hover { background: var(--bad); }
.news-block-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 100px; margin: 0; padding: 10px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 11.5px; font-weight: 400; text-align: center; cursor: pointer; }
.news-block label.news-block-drop { margin: 0; }
.news-block-drop strong { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.news-block-drop svg { width: 22px; height: 22px; margin-bottom: 2px; }
.news-block-drop:hover, .news-block-drop.drag, .news-block-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.news-block-link { display: flex; gap: 8px; margin-top: 10px; }
.news-block-link input { flex: 1; min-width: 0; }
.news-block-link .btn { flex: none; }
.news-block-add { display: flex; flex-wrap: wrap; gap: 6px; }
.news-block-add .btn { padding: 7px 11px; border-radius: 999px; font-size: 12.5px; }
@media (max-width: 760px) { .news-block-grid { grid-template-columns: minmax(0, 1fr); } .news-block-grid label { margin-top: 10px; } .news-block-grid label:first-child { margin-top: 0; } }
