/**
 * AroundManchester.com - Reset Stylesheet
 * Browser normalization, box-sizing, and base font styles
 * 
 * @charset UTF-8
 * @author AroundManchester.com Development Team
 * @version 1.0
 */

@charset "UTF-8";

/* ===== RESET AND NORMALIZATION ===== */

/* Box-sizing rules */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove default margin and padding */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY DEFAULTS ===== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Body text */
p {
  margin-bottom: 1em;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* ===== LINKS ===== */

a {
  text-decoration-skip-ink: auto;
}

a:not([class]) {
  text-decoration-underline-offset: 0.25em;
}

/* ===== MEDIA ELEMENTS ===== */

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* ===== TABLES ===== */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== ACCESSIBILITY ===== */

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focusable visually hidden - becomes visible when focused (for skip links, etc.) */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* WCAG 2.2 AA: Skip link pattern for keyboard navigation */
.skip-links {
  position: absolute;
  z-index: 100000;
}

.skip-links a {
  position: absolute;
  top: -100px;
  left: 6px;
  background: #000000;
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 100001;
  transition: top 0.2s ease;
}

.skip-links a:focus {
  top: 6px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.skip-links a:focus-visible {
  top: 6px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Remove all animations and transitions for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .skip-links a {
    transition: none;
  }
}

/* Force UTF-8 encoding for list icons */
.region-page-utf8-fix {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
