/**
 * 01-reset.css — Minimal Modern CSS Reset
 * YDC Child Enterprise Theme
 *
 * Goals:
 *  - Remove browser inconsistencies
 *  - Establish a clean baseline
 *  - Override WordPress block theme defaults that conflict with design system
 *  - Never touch layout or color here — that belongs to base/tokens
 */

/* ─── Box sizing ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ─── Margins & Padding ──────────────────────── */
html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, figcaption,
blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* ─── List reset ─────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ─── Media defaults ─────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ─── Links ──────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: none !important;
}

a:hover {
  text-decoration: none;
}

/* ─── Text rendering ─────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── Overflow / Scroll ──────────────────────── */
html {
  overflow-x: hidden;
}

/* ─── WordPress Block Theme Resets ──────────────
   Override Gutenberg / Twenty Twenty-Four defaults
   that conflict with design system surfaces.
─────────────────────────────────────────────── */

/* Remove default WP block theme padding */
.wp-site-blocks,
.wp-block-group {
  padding-block: 0 !important;
  margin-block: 0 !important;
}

/* Compensate for #ydc-header being position:absolute (doesn't occupy flow space).
   Only applies to plain <main class="wp-block-group"> used by pages without a Hero
   (404, Policy, Single Workshop, Single Post) — NOT .ydc-main-container (home page,
   which has the Hero section providing its own clearance). */
main.wp-block-group:not(.ydc-main-container) {
  padding-top: 180px !important;
}

.wp-block-template-part {
  padding-block: 0 !important;
  margin-inline: auto !important;
}

/* Remove white background injected by WP */
.wp-site-blocks {
  background: none !important;
}

/* Remove WP block heading font override */
.wp-block-heading {
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Remove any WP-imposed underlines */
.wp-block-button__link,
.wp-element-button {
  text-decoration: none !important;
}

/* Prevent WP from injecting border-bottom on links inside blocks */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* ─── Focus outline reset (Accessibility) ──────── */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
