/* Page layout.
   Phones: one column, in document order.
   Computers (>=1024px): header across the top, result + goal on the left, month table + one-off items on the right. */

.wrap{max-width:760px;margin:0 auto;padding:20px 16px 48px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}   /* minmax(0,…): wide content (e.g. the plan dropdown) may not widen the page */
.col-left{display:contents}   /* phones: the wrapper disappears, its cards join the single column */

@media (min-width:1024px){
  .wrap{max-width:1320px;padding:28px 40px 56px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
  #headCard{grid-column:1 / -1}
  .col-left{display:grid;gap:20px;grid-column:1;grid-row:2 / span 2}
  /* Pinned while scrolling only when it fits on screen (js/ui/layout.js sets the class),
     so there is never a second scroll area. */
  .col-left.is-pinned{position:sticky;top:20px}
  #monthsCard,#itemsCard{grid-column:2}
  .big{font-size:48px}
}
