/* Phone layout. Loaded last on every page. */
.ft-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ft-main, .ft-side, .ft-block, .ft-lead, .ft-pair > * { min-width: 0; }
.home-table-wrap, .ft-block table.home-table { max-width: 100%; }
img, svg { max-width: 100%; }

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ft-side { gap: 26px; }
}

@media (max-width: 700px) {
  /* masthead: one tidy row for the links */
  .mast { padding-top: 10px; margin-bottom: 18px; }
  .mast-top { gap: 8px 12px; padding-bottom: 8px; font-size: 12.5px; }
  .mast-date { display: none; }
  .mast-nav { order: 1; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .mast-nav::-webkit-scrollbar { display: none; }
  .mast .site-tools { order: 2; width: 100%; justify-content: space-between; }
  .mast-sub { font-size: 14px; }

  /* type that is too big for a phone */
  .ft-lead h2 { font-size: 1.7rem; }
  .ft-dek { font-size: 17px; }
  .mc-h1, .home h1 { font-size: 2rem; }
  .ft-block-head h3, .cal-sec-head h2 { font-size: 22px; }

  /* touch targets */
  .home-chips button, .cal-type, .cal-btn, .cal-views button, .site-theme button { min-height: 34px; }
  .home-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .home-chips::-webkit-scrollbar { display: none; }
  .home-chips button { flex: none; white-space: nowrap; }
  #news .home-chips { max-height: none; }

  .news-q, .news-src { width: 100%; max-width: none; font-size: 16px; }
  .site { padding-left: 14px; padding-right: 14px; }
  .site-foot { font-size: 12px; }
}

@media (max-width: 420px) {
  .cal-nav h3 { font-size: 17px; min-width: 0; }
  .cal-bar { gap: 8px; }
}
