/* Auction Hub clean CSS rebuild: base tokens, reset, typography. */
:root {
    --color-bg: #f5f7fb;
    --color-bg-soft: #edf2f8;
    --color-surface: #ffffff;
    --color-surface-2: #f8fbff;
    --color-surface-3: #edf3fb;
    --color-border: rgba(15, 23, 42, 0.1);
    --color-border-strong: rgba(15, 23, 42, 0.2);
    --color-text: #0f172a;
    --color-muted: #475569;
    --color-dim: #64748b;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-success: #18b65f;
    --color-danger: #e04d4d;
    --color-warning: #f6a623;
    --color-info: #0284c7;
    --shadow-panel: 0 14px 32px rgba(15, 23, 42, 0.08);
    --shadow-raised: 0 8px 20px rgba(15, 23, 42, 0.06);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --gutter: clamp(10px, 3vw, 28px);
    --page-max: 1180px;
    --nav-height: 64px;
    --font-main: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--color-bg);
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--color-text);
    background:
        radial-gradient(circle at 10% -8%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(circle at 100% -5%, rgba(14, 165, 233, 0.06), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 48%, #eef3f9 100%);
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-main);
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video,
canvas {
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--color-text);
}

h1 {
    font-size: clamp(1.2rem, 2.3vw, 1.7rem);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
}

h3 {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

h4,
h5 {
    font-size: 1rem;
}

p,
li,
small {
    color: var(--color-muted);
}

p {
    margin-bottom: 0.85rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

strong {
    color: var(--color-text);
}

main {
    display: block;
}

.hidden,
[hidden] {
    display: none !important;
}

.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;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
