/* NanhiSmile — layout */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.page { min-height: 60vh; padding-bottom: calc(var(--ns-bottomnav-h) + 28px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .page { padding-bottom: 48px; } }

.section { margin-block: 26px; }
.section--tight { margin-block: 14px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head__title { font-size: 1.2rem; font-weight: 800; font-family: var(--ns-font-head); }
.section-head__sub { font-size: 0.82rem; color: var(--ns-text-muted); margin-top: 2px; }
.section-head__link { font-weight: 800; font-size: 0.875rem; color: var(--ns-primary-600); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.section-head__link:hover { color: var(--ns-primary-700); }

.page-head { display: flex; align-items: center; gap: 10px; padding-block: 14px 4px; flex-wrap: wrap; }
.page-head__title { font-size: 1.3rem; font-family: var(--ns-font-head); font-weight: 800; }
.page-head__sub { width: 100%; font-size: 0.85rem; color: var(--ns-text-secondary); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.skip-link { position: absolute; left: 8px; top: -56px; z-index: 200; background: var(--ns-primary-500); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top 0.15s ease; }
.skip-link:focus { top: 8px; }
