/* ==========================================================================
   TECHSPEAK — RESET & NORMALISATION
   Clean browser defaults before any theme styles are applied.
   ========================================================================== */

/* Box sizing — apply universally */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root defaults */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Images and media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  object-fit: cover;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styles on ul/ol with class (accessibility safe) */
ul[class],
ol[class] {
  list-style: none;
}

/* Default link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Buttons reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Avoid text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Hidden 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-width: 0;
}

/* WordPress core image alignment classes */
.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: var(--space-4); }
.alignnone  { margin-bottom: var(--space-4); }

/* WordPress admin bar offset */
.admin-bar .ts-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .ts-header {
    top: 46px;
  }
}
