/* [mode] home page trip-mode selector (js/home-mode.js). Square, one type system, calm. Owner: dynamic features. */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 460px; margin: var(--s3, 16px) auto 0; border: 1px solid rgba(239,230,210,.28); border-radius: 0; }
.mode-b { min-height: 44px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: var(--ivory-2); font-family: var(--text); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .3s var(--ease, ease), color .3s var(--ease, ease); }
.mode-b + .mode-b { border-left: 1px solid rgba(239,230,210,.28); }
.mode-b:hover { color: var(--ivory); }
.mode-b[aria-checked="true"] { background: var(--ivory); color: #0c0b09; }
.mode-b:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.field-label[hidden] { display: none; }
.field-label { grid-column: 1 / -1; }
@media (min-width: 821px) {
  body[data-mode="day"] .fields { grid-template-columns: 1fr 1fr 1fr; }
  .field-label { grid-column: auto; }
}
@media (max-width: 420px) { .mode-b { letter-spacing: .1em; padding: 0 4px; } }
@media (max-width: 340px) { .mode-b { font-size: 10px; letter-spacing: .06em; } }
@media (prefers-reduced-motion: reduce) { .mode-b { transition: none; } }
