/**
 * LEDSEM Theme — Supplemental CSS
 * (style.css has the core; this file adds editor & print styles)
 */

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .nav-toggle, .btn, .hero__stats { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
}

/* ── Gutenberg editor styles ───────────────────────────────────────────── */
.editor-styles-wrapper {
    font-family: 'Lato', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1A1040;
}
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
    font-family: 'Cinzel', Georgia, serif;
    color: #0B1442;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #D8CFF0;
    color: #3D1172;
    transition: all 200ms ease;
}
.nav-links a:hover { background: #3D1172; color: #fff; border-color: #3D1172; }
.nav-links .current { background: #0B1442; color: #F0A520; border-color: #0B1442; }

/* ── Search form ───────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #D8CFF0;
    border-radius: 8px;
    font-family: inherit;
    min-height: 44px;
}
.search-form .search-submit {
    padding: 0.6rem 1.2rem;
    background: #F0A520;
    color: #0B1442;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* ── Tags ──────────────────────────────────────────────────────────────── */
.cat-links a, .tags-links a {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: #EDE5FA;
    color: #3D1172;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0.15rem;
    transition: background 200ms;
}
.cat-links a:hover, .tags-links a:hover { background: #3D1172; color: #fff; }

/* ── Social share ──────────────────────────────────────────────────────── */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #EDE5FA;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.social-share span { font-size: 0.85rem; font-weight: 700; color: #7B6FAA; }
.social-share a {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #EDE5FA;
    color: #3D1172;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 200ms;
}
.social-share a:hover { background: #3D1172; color: #fff; }

/* ── Header scroll state ───────────────────────────────────────────────── */
.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(11,20,66,0.25);
}

/* ── Accessibility: focus ring ─────────────────────────────────────────── */
:focus-visible {
    outline: 3px solid #F0A520;
    outline-offset: 3px;
}

/* ── WordPress alignment classes ───────────────────────────────────────── */
.alignleft  { float: left;  margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: #7B6FAA; text-align: center; }

/* ── Embeds ────────────────────────────────────────────────────────────── */
.wp-block-embed iframe,
.post-content iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* ── Screen reader text ─────────────────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
