/* HC home. Uses the --hc-* tokens defined by layouts/hc. */
.hc-home { min-width: 0; }
.hc-home a { color: inherit; text-decoration: none; }
.hc-home a:hover { color: var(--hc-accent); }
/* Top: popular feed (wide) + side column (latest, news). Below: one box per board. */
.hc-home__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 8px 32px; align-items: start; margin-bottom: 28px; }
.hc-home__main, .hc-home__side { min-width: 0; }
.hc-home__main .hc-list { border-top: 0; }
.hc-home__main .hc-list__row { min-height: 68px; padding: 6px 4px; }
.hc-home__main .hc-list__thumb, .hc-home__main .hc-list__thumb img { width: 72px; height: 56px; }
.hc-home__main .hc-list__title { font-size: 16px; }
.hc-home__side .hc-sec { margin-bottom: 16px; }
.hc-home__side .hc-sec__row { min-height: 34px; }
.hc-home__side .hc-sec__link { font-size: 13px; }
.hc-home__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin-bottom: 20px; }

/* Flat sections: an underlined title, then plain rows. */
.hc-sec { min-width: 0; }
.hc-sec__head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--hc-border-soft); }
.hc-sec__title { margin: 0 0 -1px; padding: 14px 0 12px; border-bottom: 1px solid var(--hc-text); font-size: 20px; font-weight: 400; line-height: 1.2; }
.hc-sec__more { padding-bottom: 12px; }
.hc-sec__more { color: var(--hc-text-3) !important; font-size: 12px; }
.hc-sec__rows { margin: 0; padding: 0; list-style: none; }
.hc-sec__row { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 0; border-bottom: 1px dashed var(--hc-border-soft); }
.hc-sec__row:hover { background: var(--hc-surface-2); }
.hc-sec__thumb { flex: none; }
.hc-sec__thumb img { display: block; width: 30px; height: 30px; border-radius: 3px; object-fit: cover; }
.hc-sec__main { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
.hc-sec__board { flex: none; color: var(--hc-text-3); font-size: 12px; }
.hc-sec__board::after { content: "\00b7"; margin-left: 4px; color: var(--hc-border); }
.hc-sec__link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.hc-sec__cmt { flex: none; color: var(--hc-accent); font-size: 12px; font-weight: 700; }
.hc-sec__vote { flex: none; display: inline-flex; align-items: center; gap: 3px; color: var(--hc-accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.hc-sec__empty { margin: 0; padding: 28px 12px; color: var(--hc-text-3); font-size: 13px; text-align: center; list-style: none; }

.hc-news { margin-bottom: 20px; background: var(--hc-surface-2); border-radius: var(--hc-radius); }
.hc-news[hidden], .hc-news__list[hidden], .hc-news-restore[hidden] { display: none; }
.hc-news__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 12px; }
.hc-news__title { margin: 0; font-size: 14px; font-weight: 700; }
.hc-news__title em { color: var(--hc-accent); font-style: normal; }
.hc-news__btns { display: flex; gap: 2px; }
.hc-news__btn { height: 28px; padding: 0 8px; border: 0; border-radius: var(--hc-radius); background: transparent; color: var(--hc-text-3) !important; font: inherit; font-size: 12px; line-height: 28px; cursor: pointer; }
.hc-news__btn:hover { background: var(--hc-surface-2); color: var(--hc-text) !important; }
.hc-news__list { margin: 0; padding: 4px 12px 8px; border-top: 1px solid var(--hc-border-soft); list-style: none; }
.hc-news__list li { padding: 5px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-news__time { margin-left: 4px; color: var(--hc-text-3); font-size: 12px; font-weight: 400; }
.hc-news__list--events li { padding: 7px 0; white-space: normal; }
.hc-news__list--events li a { display: block; font-weight: 600; line-height: 1.45; }
.hc-news__meta { display: block; margin-top: 1px; color: var(--hc-text-3); font-size: 12px; }
.hc-news__list--events .hc-news__more { padding-top: 8px; border-top: 1px solid var(--hc-border-soft); }
.hc-news__list--events .hc-news__more a { color: var(--hc-accent); font-weight: 400; font-size: 13px; }
.hc-news-restore { margin: 0 0 10px; text-align: right; }

.hc-integrated__note { margin: 0; color: var(--hc-text-3); font-size: 12px; }

@media (max-width: 1023px) {
	.hc-home__top { grid-template-columns: minmax(0, 1fr); }
	.hc-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.hc-home__grid { grid-template-columns: minmax(0, 1fr); }
}
