/* overrides that components.css does not cover */

/* period chips are links that keep the state in the address, so they carry aria-current instead of aria-pressed */
.chip[aria-current="page"] { border-color: var(--text); color: var(--text); background: var(--surface-2); font-weight: var(--fw-strong); }

/* the phone bar has as many entries as the level has pages (two or four), not the design's fixed four */
@container app (max-width: 720px) {
  .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* on a short page the phone bar sits at the bottom of the screen, not right under the content */
@container app (max-width: 720px) {
  .main { min-height: 100dvh; }
  .main > .page { flex: 1 0 auto; }
}

/* panels that a button opens carry the hidden attribute; their own display must not override it */
[hidden] { display: none !important; }
