/* TOP: unified app grid, category badges and gradient cards. */
.tn-home-apps{min-width:0}
.tn-home-section-title{margin:0 0 16px;font-weight:450;line-height:1.4;letter-spacing:.025em;font-size:clamp(1.05rem,2vw,1.5rem)}
.tn-home-apps>.tn-home-section-title{text-align:center}
.tn-home-app-grid{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:14px}
.tn-home-app-item{display:flex;flex-direction:column;gap:7px;min-width:0}
.tn-home-app__category{align-self:flex-start;display:inline-block;max-width:100%;padding:3px 7px;border-radius:4px;background:var(--tn-category-color,#4A6075);color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-weight:650;line-height:1.3}
.tn-home-app{background:var(--tn-app-color,#4A6075);background:linear-gradient(135deg,color-mix(in srgb,var(--tn-app-color,#4A6075) 89%,white),color-mix(in srgb,var(--tn-app-color,#4A6075) 88%,black));border:1px solid #c5c5c5;border-radius:0;aspect-ratio:1/1;min-width:0;padding:6px;text-decoration:none;color:var(--tn-app-text,#fff);overflow:hidden;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;text-align:center;transition:filter .15s ease,border-color .15s ease}
@supports (color:hsl(from #66508f h s l)){.tn-home-app{background:linear-gradient(135deg,hsl(from var(--tn-app-color,#4A6075) h calc(s - 7) calc(l + 4)),hsl(from var(--tn-app-color,#4A6075) h calc(s + 7) calc(l - 4)))}}
.tn-home-app:is(:hover,:focus-visible){filter:brightness(1.12);border-color:#fff}
.tn-home-app__icon{width:44px;height:44px;max-height:45%;object-fit:contain}
.tn-home-app__label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;font-size:.78rem;font-weight:650;line-height:1.28;text-shadow:0 1px 2px rgb(0 0 0 / .18)}
.tn-home-empty { grid-column: 1 / -1; }
.tn-home-about, .tn-home-news { margin-top: 34px; }
.tn-home-about__copy { width: 100%; min-width: 0; font-size: .88rem; color: var(--tn-muted); line-height: 1.7; }
.tn-home-about__copy h3 { color: var(--tn-text); margin: 0 0 6px; font-size: .96rem; font-weight: 650; }
.tn-home-about__copy p { margin: 0 0 12px; }
.tn-home-about__copy p + h3 { margin-top: 18px; }
.tn-home-about__copy a { text-underline-offset: .2em; }
.tn-home-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tn-home-news__column { min-width: 0; }
.tn-home-news__column h3 { margin: 0 0 12px; font-size: .98rem; font-weight: 600; }
.tn-home-news__column ul { list-style: none; padding: 0; margin: 0; }
.tn-home-news__column li { margin-bottom: 8px; }
.tn-home-news__column a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; font-size: .86rem; }
.tn-home-news__column a:hover span { text-decoration: underline; }
.tn-home-news__column time { flex: none; font-variant-numeric: tabular-nums; color: var(--tn-muted); }
.tn-home-news__column a span { min-width: 0; overflow-wrap: anywhere; }
.tn-home-news__empty { color: var(--tn-muted); font-size: .82rem; }
.tn-home-news__all { text-align: right; margin-top: 16px; font-size: .86rem; }
@media(max-width: 1150px) {
    .tn-home-app-grid { grid-template-columns: repeat(8, minmax(0,1fr)); gap: 12px; }
}
@media(max-width: 840px) {
    .tn-home-app-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
    .tn-home-news__grid { grid-template-columns: 1fr; gap: 22px; }
}
@media(max-width: 600px) {
    .tn-home-apps { gap: 22px; }
    .tn-home-app-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
    .tn-home-app { padding: 4px; }
    .tn-home-app__category { font-size: .59rem; padding: 3px 5px; }
    .tn-home-app-item { gap: 5px; }
    .tn-home-app__icon { width: 34px; height: 34px; }
    .tn-home-app__label { font-size: .7rem; line-height: 1.25; }
    .tn-home-about, .tn-home-news { margin-top: 28px; }
    .tn-home-news__column a { font-size: .82rem; }
}
@media(max-width: 350px) {
    .tn-home-app-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media(prefers-reduced-motion: reduce) {
    .tn-home-app { transition: none; }
}
