/* Readable floor for inline keys and code in running text */

/* /encoders/atlas/ — ATLAS0 vs ATLAS1 overview. Builds on site.css (.demo shells, cards, tables, chips).
   Colours: trackball = cyan, mouse buttons = lime, ATLAS0 switches = amber, ATLAS1 cabinet keys = magenta. */
.ax-hero { --c-ball: var(--cyan); --c-btn: var(--lime); --c-sw: var(--amber); --c-key: var(--magenta); }
:root { --c-ball: var(--cyan); --c-btn: var(--lime); --c-sw: var(--amber); --c-key: var(--magenta); }

/* ---------- Hero ---------- */
.ax-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ax-hero h1 { font-size: var(--fs-hero); margin: 0 0 18px; }
.ax-hero .lead { max-width: 60ch; }
.ax-hero .lead b { color: var(--text); }
.ax-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 22px); align-items: end; }
.ax-tile { display: flex; flex-direction: column; gap: 14px; }
.ax-tile__img { display: block; padding: 0 6%; transition: transform 0.4s var(--ease); }

.ax-tile__img img { width: 100%; height: auto; display: block; }
.ax-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-height: 132px; }
.ax-tile__body strong { font: 600 1.3rem/1.1 var(--font-display); color: #fff; }
.ax-tile__buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.ax-tile__buy .price { font-size: 1.1rem; }

/* ---------- Quick pick ---------- */
.ax-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ax-pick { padding: clamp(20px, 3vw, 32px); }
.ax-pick__h { font-size: var(--fs-xl); margin: 0 0 14px; }
.ax-pick .checklist { margin-bottom: 16px; }
.ax-same { max-width: 80ch; margin: 16px 0 0; }

/* ---------- What is on each board ---------- */

.ax-why { display: flex; gap: 18px; align-items: flex-start; margin-top: clamp(24px, 4vw, 40px); padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.ax-why__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--surface-2); color: var(--cyan); }
.ax-why__ico .ico { width: 22px; height: 22px; }
.ax-why h3 { margin: 0 0 8px; font-size: var(--fs-xl); }
.ax-why p { margin: 0; max-width: 78ch; }

/* ---------- Settings ---------- */

.ax-real { max-width: 760px; margin: clamp(20px, 3vw, 28px) auto 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.ax-real a { display: block; cursor: zoom-in; }
.ax-real img { display: block; width: 100%; height: auto; }
.ax-real figcaption { margin: 8px 12px 10px; }

.ax-map { margin-top: clamp(28px, 4vw, 44px); }
.ax-map td small { display: block; margin-top: 3px; font-size: var(--fs-xs); }
.ax-map td:last-child { white-space: nowrap; }
.ax-map th.mono { font-size: 0.82rem; color: var(--text); white-space: nowrap; }
.ax-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ax-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.ax-note > .ico { flex: none; width: 20px; height: 20px; color: var(--cyan); margin-top: 2px; }
.ax-note p { margin: 0; font-size: 0.92rem; color: var(--text-2); }
.ax-note b { color: #fff; }

/* ---------- Optional software band ---------- */
.ax-util-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: clamp(24px, 4vw, 40px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.ax-util-band h3 { margin: 0 0 8px; }
.ax-util-band p { margin: 0 0 8px; max-width: 76ch; }
.ax-util-band__cta { --gap: 10px; flex-direction: column; align-items: stretch; }

/* ---------- Builds + compare ---------- */
.ax-builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ax-build h3 { margin: 0 0 8px; font-size: var(--fs-lg); }
.ax-build p { margin: 0 0 14px; }
.ax-cmp thead a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ax-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ax-duo { max-width: 560px; }
  .ax-notes { grid-template-columns: minmax(0, 1fr); }
  .ax-util-band { grid-template-columns: minmax(0, 1fr); }
  .ax-util-band__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .ax-picks, .ax-builds { grid-template-columns: minmax(0, 1fr); }
  .ax-why { flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .ax-duo { gap: 10px; }
  .ax-tile__body { padding: 12px; min-height: 0; }
  .ax-tile__body strong { font-size: 1.1rem; }
  .ax-tile__buy .btn { width: 100%; justify-content: center; }
  .ax-map table, .ax-map tbody, .ax-map tr, .ax-map td, .ax-map th { display: block; }
  .ax-map thead { display: none; }
  .ax-map tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ax-map td, .ax-map th { border: 0; padding: 2px 0; }
  .ax-map td[data-l]::before { content: attr(data-l) ': '; color: var(--dim); font-size: var(--fs-xs); }
  /* Keep both board columns on screen on a phone (the table used to scroll sideways and hide the ATLAS1). */
  .ax-cmp table { table-layout: fixed; font-size: 0.84rem; }
  .ax-cmp th, .ax-cmp td { padding: 10px 8px; overflow-wrap: break-word; }
  .ax-cmp thead th:first-child { width: 31%; }
  .ax-cmp table.spec tbody th { white-space: normal; overflow-wrap: normal; font-size: var(--fs-xs); }
  .ax-cmp .btn { width: 100%; justify-content: center; padding-inline: 8px; font-size: var(--fs-xs); }
  .ax-cmp .btn .ico { display: none; }
}

.ax-cmp { max-width: 900px; }
