/* TrackRestocks Stage 27: accessibility and polish fixes from the site score report. Markup/CSS only. */

/* skip link: hidden until it gets keyboard focus, then a visible pill at the top left */
.s11-sr.s27-skip:focus, .s11-sr.s27-skip:focus-visible {
  position: fixed !important; left: 12px; top: 10px; z-index: 1000; width: auto; height: auto; clip: auto; overflow: visible;
  padding: 10px 14px; border-radius: 10px; background: var(--green); color: #04130d; font-weight: 700; font-size: 14px;
  text-decoration: none; outline: 2px solid #fff; outline-offset: 2px; }

/* hero search box: a clear ring on the input itself (the console border also lights up) */
#urlInput:focus-visible { outline: 2px solid var(--green-2); outline-offset: -2px; border-radius: 8px; }
.s24-console:focus-within { border-color: var(--green-2); }

/* sample alert email: darker green for 4.5:1+ contrast on white (white on #15803d is 5.0:1) */
.s17-mail-body h3 { color: #15803d; }
.s17-mail-btn { background: #15803d; }

/* tap targets: at least 24px tall */
.s11-nav a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 4px; }
.s25-crumb a, #main nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 24px; }
.s25-crumb, #main > nav[aria-label="Breadcrumb"] { line-height: 24px; }
.s24-store { display: inline-flex; align-items: center; min-height: 24px; }
.s22-hist { display: inline-flex; align-items: center; min-height: 24px; }
.s25-card-foot a, .s25-storelinks a, .s25-jump a { min-height: 24px; }
.s25-storelinks a { display: inline-flex; align-items: center; }
.s11-footer a { display: inline-flex; align-items: center; min-height: 24px; }

/* hover states */
.s11-btn:not(:disabled):hover { border-color: #52525B; background: #232329; }
.s11-btn.s11-btn-green:not(:disabled):hover { background: var(--green-2); border-color: var(--green-2); }
.bg-berry:hover { background-color: var(--green-2) !important; }
.tr-table td a.text-berry:hover, .tr-table a.font-bold:hover { color: #6EE7B7 !important; text-decoration-thickness: 2px; }
.s11-btn:focus-visible, .bg-berry:focus-visible, .s18-btn-ghost:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }

/* footer column titles are h2 now (no h2 -> h4 jump); same look as before */
.s11-footer h2.s27-fh { color: var(--text); font-size: 13px; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; line-height: 1.4; }

/* comparison table: row headers keep the old look */
.s18-cmp tbody th { text-align: left; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 14px; font-weight: 600;
  padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* comparison table on phones: one card per row, each cell labelled */
@media (max-width: 640px) {
  .s18-cmp, .s18-cmp tbody, .s18-cmp tr, .s18-cmp th, .s18-cmp td { display: block; width: auto; }
  .s18-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .s18-log-wrap:has(.s18-cmp) { overflow: visible; border: 0; background: none; padding: 0; }
  .s18-cmp tbody { display: grid; gap: 10px; }
  .s18-cmp tr { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); overflow: hidden; }
  .s18-cmp tbody th { padding: 12px 14px 8px; border: 0; font-size: 15px; }
  .s18-cmp td { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); }
  .s18-cmp td::before { content: attr(data-label); color: var(--dim); font-size: 12.5px; font-weight: 600; }
  .s18-cmp td:nth-child(2)::before { color: #6EE7B7; }
}
