/* =========================================================
 * RankwellPress — Base Reset 
 * ========================================================= */

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

/* Remove default margin & padding */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
    padding: 0;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Add base line-height for better readability */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    background-color: var(--rw-bg-body, #f7f8fa);
}

/* ==========================================
 * UPGRADED: Global Link Reset
 * ========================================== */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

/* ADDED: Ensure keyboard focus visibility */
a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img, picture, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* ADDED: Remove list styles */
ul, ol {
    list-style: none;
}

/* ADDED: Reset table borders */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =========================================================
 * RANKWELLPRESS WIDGET SHIELD
 * ========================================================= */
.rankwellpress-shortcode-widget-wrapper a,
.rankwellpress-shortcode-widget-wrapper a:visited,
.rankwellpress-shortcode-widget-wrapper a:hover,
.rankwellpress-shortcode-widget-wrapper a:focus,
.rankwellpress-shortcode-widget-wrapper a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    outline-color: transparent;
}

/* ADDED: Remove button default styles */
button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* Accessibility: Remove animations for those who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ─────────────────────────────────────────────────────────
   Skip to Content — Accessibility
   Hidden by default, visible on keyboard focus.
   ───────────────────────────────────────────────────────── */

.rwp-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: #0d7c3e;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: top 0.2s ease, outline 0.2s ease;
}

.rwp-skip-link:focus,
.rwp-skip-link:focus-visible {
    top: 0;
    color: #ffffff;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Ensure the main target has no visible outline when jumped to */
#rwp-main:focus {
    outline: none;
}

.rwp-skip-link.screen-reader-text:focus,
.rwp-skip-link.screen-reader-text:focus-visible {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    font-size: 16px;
    line-height: 1;
}

