/* Фингазета-пресс 3.2.4 stabilization */

/* Media edit page is rendered through the standard admin layout. */
.media-usage { margin-top: 4px; }
.media-usage--empty { color: var(--admin-muted); }

/* Dashboard task checkbox is a state control, not a navigation link. */
.dashboard-task-row { transition: background .15s ease, opacity .15s ease; }
.dashboard-task-row--done { background: #fbfdfc; }
.dashboard-task-row--cancelled { background: #fafafa; }
.dashboard-task-row--done .dashboard-task-row__body strong { color: #667085; }
.dashboard-task-row--cancelled .dashboard-task-row__body strong { text-decoration: line-through; color: #8a93a1; }
.dashboard-task-check-form .check-box,
.dashboard-task-row > .check-box {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #cbd3dc;
    border-radius: 4px;
    display: grid;
    place-items: center;
    padding: 0;
    background: #fff;
    color: #fff;
    font: 700 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}
.dashboard-task-check-form .check-box:hover {
    border-color: var(--admin-accent);
    background: #eaf7f3;
}
.dashboard-task-row > .check-box--done {
    border-color: var(--admin-accent);
    background: var(--admin-accent);
}
.dashboard-task-row > .check-box--cancelled {
    border-color: #c9ced6;
    background: #eef0f3;
    color: #7c8798;
}
.dashboard-task-check-form { margin: 0; display: flex; align-items: center; }
.dashboard-task-row__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dashboard-task-row.is-saving { opacity: .55; pointer-events: none; }

/* Public home: exactly three popular materials in one row on desktop. */
.popular-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
}
.popular-list--three .popular-item {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    min-width: 0;
}
.popular-list--three .popular-item__title { font-size: 20px; }
@media (max-width: 900px) {
    .popular-list--three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .popular-list--three { grid-template-columns: 1fr; }
}

/* Public typography contract: body 18px; public H1 36px. */
.site-main h1,
.site-main .hero-story h1,
.site-main .article-title,
.site-main .archive-header h1 {
    font-size: 36px !important;
    line-height: 1.1 !important;
}
