/* Remembered Well only: 44px tap targets and a visible focus ring.
   Loaded by rememberedwell/** pages. Does not affect the rest of spartasite.com.
   Revert by removing this file and the <link> in the page heads. */

/* 2px outline, 2px offset, site burgundy. #6b3f5a on #fff is 8.45:1 (AA UI is 3:1). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #6b3f5a;
  outline-offset: 2px;
}

/* Nav, footer, and button links: 44px min height/width, type unchanged. */
nav a,
.cta,
footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 480px) {
  .cta {
    display: flex;
    text-align: center;
  }
}

/* List links (questions lists, Etsy lists, cards): block-level 44px row
   so wrapped text stays under the same hit box and list bullets stay
   on the first line. */
ul a:not(.cta),
ol a:not(.cta) {
  display: block;
  box-sizing: border-box;
  min-height: 44px;
}

/* Other inline links (for example, a lone sentence link): 44px hit area
   via a centered pseudo-element, so line height stays the same. */
a:not(.cta) {
  position: relative;
}

a:not(.cta)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: 44px;
  transform: translate(-50%, -50%);
}

/* Nav, footer, and list links already meet 44px; don't stack a second hit box. */
nav a::before,
footer a::before,
ul a::before,
ol a::before {
  content: none;
}
