/* Small-screen fixes shared by the guide pages. */
@media (max-width: 600px) {
  .header { padding: 0 14px; }
  .header-inner { gap: 8px; }
  .logo { font-size: 0.86rem; gap: 7px; min-width: 0; }
  .logo > :last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .logo-sub { display: none; }
  .header-right { flex-shrink: 0; gap: 4px; }
  .nav-link { padding: 5px 8px; font-size: 0.76rem; white-space: nowrap; }

  /* Dense reference tables become label/value cards instead of scrolling sideways. */
  table.data-table.is-stacked,
  table.comparison-table.is-stacked,
  table.stackable.is-stacked {
    display: block;
    width: 100%;
  }
  table.is-stacked thead,
  table.is-stacked tr.is-head-row { display: none; }
  table.is-stacked tbody { display: block; }
  table.is-stacked tr {
    display: block;
    background: #fff;
    border: 1px solid #E2EBFB;
    border-radius: 10px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }
  table.is-stacked td,
  table.is-stacked th {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    border: none;
    border-bottom: 1px solid #EEF3FC;
    padding: 7px 0;
    text-align: right;
    white-space: normal;
  }
  table.is-stacked tr > *:last-child { border-bottom: none; }
  table.is-stacked.has-row-labels td:first-child,
  table.is-stacked.has-row-labels th:first-child {
    text-align: left;
    font-weight: 700;
    color: #0D1B36;
  }
  table.is-stacked td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 55%;
    font-weight: 700;
    color: #64748B;
    text-align: left;
  }
  table.is-stacked td:not([data-label])::before { content: none; }
}

@media (max-width: 430px) {
  .header-right .nav-link:not(:last-child) { display: none; }
}
