/* /devices (public/devices.php): the watches and GPS units the app works with.
   Built on site.css's colours and type and the walk pages' head; nothing here changes another page. */

.device-index { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.device-index a { color: var(--ink); text-decoration: none; font-weight: 600; }
.device-index a:hover { color: var(--pine); text-decoration: underline; }

.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; padding-top: 26px; }
.device-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 20px; display: grid; gap: 8px; align-content: start; scroll-margin-top: 90px; }
.device-page .device-card h2 { font-size: 23px; margin: 0; }
.device-models { font-size: 14px; color: var(--muted); margin: 0; }
.device-intro { font-size: 15.5px; color: var(--ink-soft); margin: 4px 0 6px; }
.device-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.device-lines li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15.5px; line-height: 1.5; }
.device-status { justify-self: start; font: 700 11.5px/1 var(--sans); letter-spacing: .03em; padding: 5px 9px; border-radius: 999px; }
/* The same four tints as the walk grades, so the page reads as part of the family. */
.device-status.is-now { background: #E3F1E6; color: #1F5A2C; }
.device-status.is-next { background: #E4ECF6; color: #1F4B7A; }
.device-status.is-planned { background: #F7EBD2; color: #7A4E00; }
.device-status.is-no { background: var(--paper-2); color: var(--muted); }

.device-summary { padding-top: 14px; }
.device-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.device-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.device-table th, .device-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.device-table thead th { border-top: 0; font: 700 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.device-table tbody th { font-weight: 700; white-space: nowrap; }
.device-note { margin: 16px 0 0; color: var(--ink-soft); max-width: 70ch; }
.device-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.device-marks { margin: 26px 0 0; font-size: 12.5px; color: var(--muted); max-width: 90ch; }

@media (max-width: 480px) {
  .device-grid { grid-template-columns: 1fr; }
  .device-card { padding: 18px 16px 16px; }
}
