/* Utforska (js/explore.js). Färgerna kommer från tokens.css, så mörkt läge följer med.
   Sträckorna är en rad knappar (rullar i sidled på mobil, bryter rad på datorn) och resten rutor med ikon och namn,
   så att allt ryms på en skärm. */
.ex { display: grid; gap: 18px; padding: 4px 16px 20px; }
.ex section { display: grid; gap: 8px; min-width: 0; }
.ex-h { margin: 0; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.ex-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--fg); font: var(--fw-bold) var(--fs-md) var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ex-chip:hover { border-color: var(--accent); }
.ex-chip:active { background-image: linear-gradient(var(--press), var(--press)); }
.ex-new { border-style: dashed; color: var(--accent); }
.ex-new .ex-icon { width: 16px; height: 16px; }

.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ex-tile { display: grid; align-content: space-between; gap: 14px; width: 100%; height: 100%; min-height: 84px; padding: 12px 14px; border: 0; border-radius: var(--r-lg); background: var(--surface-2); color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform var(--dur-1) var(--ease); }
.ex-tile b { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.2; }
.ex-tile:hover { background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); }
.ex-tile:active { transform: scale(.97); box-shadow: inset 0 0 0 100vmax var(--press); }
.ex-tile:focus-visible, .ex-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .ex-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px -16px; padding: 4px 16px; }
  .ex-chips::-webkit-scrollbar { display: none; }
  .ex-chips li { flex: none; }
}
@media (forced-colors: active) { .ex-tile { border: 1px solid CanvasText; } }

.ex-list { list-style: none; margin: 0; padding: 0; background: var(--surface-2); border-radius: var(--r-lg); overflow: hidden; }
.ex-list li + li { border-top: 1px solid var(--line); }
.ex-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 0; background: none; color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.ex-row { min-height: 48px; }
.ex-item:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ex-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ex-icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
.ex-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ex-text b { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.ex-text span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.ex-go { flex: none; width: 16px; height: 16px; color: var(--muted); }

@media (min-width: 761px) {
  .ex { padding: 4px 20px 20px; }
}
