/**
 * ============================================================================
 * GEC Frontend Framework
 * ============================================================================
 *
 * File        : reset.css
 * Layer       : 01-base
 * Status      : Production
 *
 * Description:
 * Defensive browser normalization for basic HTML elements.
 *
 * This theme is standalone: it has no parent theme, so every browser-level
 * normalization the site depends on MUST live here. Sections 07-09 were
 * internalized from the former Hello Elementor parent reset when the parent
 * dependency was removed; they are expressed in GEC tokens, not parent values.
 *
 * This file MUST NOT:
 * - Apply Design System styling
 * - Remove semantic spacing or list markers globally
 * - Style plugin-specific markup
 * - Override Academy LMS or WooCommerce components
 *
 * ============================================================================
 */


/* ==========================================================================
   01. Box Model
   ========================================================================== */

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


/* ==========================================================================
   02. Document
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
}


/* ==========================================================================
   03. Media
   ========================================================================== */

img,
picture,
video,
canvas {
    max-inline-size: 100%;
    block-size: auto;
}


/* ==========================================================================
   04. Form Controls
   ========================================================================== */

button,
input,
optgroup,
select,
textarea {
    font: inherit;
}

textarea {
    resize: vertical;
}


/* ==========================================================================
   05. Hidden Content
   ========================================================================== */

[hidden] {
    display: none !important;
}


/* ==========================================================================
   06. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
}


/* ==========================================================================
   07. Interactive Controls

   A bare <button> renders with the browser's own chrome (2px outset border,
   1px 6px padding) unless a theme normalizes it. WooCommerce, Academy and
   WordPress core all emit bare buttons, so the baseline lives here rather
   than in any component file. `.gec-*` components override freely.
   ========================================================================== */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
    display: inline-block;
    width: auto;
    padding: var(--form-padding-y-sm) var(--form-padding-x-md);
    border: var(--form-border-width) var(--form-border-style) var(--color-border-strong);
    border-radius: var(--button-radius);
    background-color: transparent;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--line-height-normal);
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    transition: var(--button-transition);
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover {
    border-color: var(--color-primary-500);
    color: var(--color-primary-500);
}

button:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible),
[type="reset"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
[type="button"]:focus-visible,
[type="reset"]:focus-visible,
[type="submit"]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}


/* ==========================================================================
   08. Text Inputs

   Scoped to textual inputs only. Checkbox and radio keep their native
   presentation.
   ========================================================================== */

input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select,
textarea {
    width: 100%;
    padding: var(--form-padding-y-sm) var(--form-padding-x-md);
    border: var(--form-border-width) var(--form-border-style) var(--form-border-color);
    border-radius: var(--form-radius);
    background-color: var(--form-background);
    color: var(--form-text-color);
    transition: var(--form-transition);
}

input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
    border-color: var(--form-focus-border);
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    outline-offset: -2px;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

label {
    display: inline-block;
    vertical-align: middle;
}

fieldset {
    padding: var(--space-2) var(--space-3) var(--space-3);
}

legend {
    box-sizing: border-box;
    display: table;
    max-width: 100%;
    padding: 0;
    color: inherit;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}


/* ==========================================================================
   09. Content Elements

   Defaults for markup WordPress emits through `the_content()`, which no
   component file owns.
   ========================================================================== */

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
    white-space: pre-wrap;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

abbr[title] {
    border-block-end: none;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

details {
    display: block;
}

summary {
    display: list-item;
}

figcaption {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: transparent;
}

table th,
table td {
    padding: var(--space-3);
    border: var(--border-width) var(--border-style) var(--color-border);
    line-height: var(--line-height-normal);
    vertical-align: top;
}

table th {
    font-weight: var(--font-weight-bold, 700);
    text-align: start;
}


/* ==========================================================================
   End of File
   ========================================================================== */
