/*
 * WordPress-specific styles layered on top of main.css (the original template styles):
 * admin bar offset, custom logo, contact form status, and inner pages (blog, posts, pages, 404).
 */

/* Admin bar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .header { top: 46px; }
}

/* Custom logo in the brand slot */
.nav-brand-logo { padding: 0.25rem 0.5rem; }
.nav-brand-logo img { display: block; max-height: 40px; width: auto; }

/* Rotating globe brand icon (assets/js/brand-globe.js), sized like the old shield icon */
.brand-icon .brand-globe {
    display: block;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.45));
}

/* Accessibility helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    z-index: 100000;
    background: var(--bg-card);
    color: var(--primary);
    padding: 1rem;
}

/* ---------- Section pages ---------- */

/* Editor content rendered inside template text blocks */
.hero-description p,
.about-text p { margin: 0; }
.hero-description > * + *,
.about-text > * + * { margin-top: 1rem; }

/* Optional intro (page content) under a section header */
.section-intro {
    max-width: 760px;
    margin: -2rem 0 3rem;
    font-size: 1.1rem;
}
[dir="rtl"] .section-intro { margin-inline-start: auto; }

/* Home: smaller "PROTECTING DIGITAL FRONTIERS" beside a framed content block */
/* Centred stack: badge → one-line headline → framed text */
.hero-content > .hero-badge { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.hero-headline.has-panel {
    display: block;
    text-align: center;
    margin-bottom: 1.25rem;
}
.hero-headline.has-panel .hero-title,
.home .hero-headline.has-panel .hero-title {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 0 1rem;
    white-space: nowrap;
}
.hero-headline.has-panel .title-word { display: inline-block; }
.hero-headline.has-panel .title-word + .title-word { margin-left: 0.35em; }
.hero-headline.has-panel .hero-panel { text-align: center; font-family: var(--font-code); }
.hero-headline.has-panel .hero-panel-title { font-family: var(--font-code); font-size: 0.95rem; font-weight: 700; }
.hero-headline.has-panel .hero-panel p { font-size: 0.9rem; font-weight: 500; line-height: 1.7; }
@media (max-width: 480px) {
    .hero-headline.has-panel .hero-title,
    .home .hero-headline.has-panel .hero-title { white-space: normal; font-size: 1.25rem; }
}
.hero-panel {
    position: relative;
    padding: 1.1rem 1.35rem;
    /* box at 15% opacity (text stays fully opaque) */
    background: rgba(15, 20, 25, 0.15);
    border: 2px solid rgba(0, 255, 136, 0.15);
    border-radius: 6px;
}
.hero-panel::before,
.hero-panel::after { content: ''; position: absolute; width: 16px; height: 16px; border: 3px solid var(--primary); pointer-events: none; }
.hero-panel::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.hero-panel::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.hero-panel-title {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-panel p { margin: 0; color: var(--text-primary); font-size: 0.92rem; line-height: 1.6; }
.hero-panel p + p { margin-top: 0.5rem; color: var(--text-secondary); }
[dir="rtl"] .hero-panel { text-align: right; }

/* "About Compyuta" frame directly under the About heading */
.about-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: -1rem 0 2.5rem;
    padding: 2rem 2.25rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.06) 0%, rgba(0,212,255,0.04) 100%), var(--bg-card);
    border: 2px solid rgba(0, 255, 136, 0.45);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 255, 136, 0.08), inset 0 0 30px rgba(0, 255, 136, 0.04);
    z-index: 1;
}
/* corner brackets, HUD-style */
.about-panel::before,
.about-panel::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid var(--primary);
    pointer-events: none;
}
.about-panel::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.about-panel::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.about-panel-solo { grid-template-columns: 1fr; }
.about-panel-title {
    font-family: var(--font-tech);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-panel-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-panel-facts {
    margin: 0;
    display: grid;
    gap: 0.55rem;
    padding-inline-start: 2rem;
    border-inline-start: 1px solid var(--border);
}
.about-fact {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
}
.about-fact dt {
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.about-fact dt i { width: 1.1em; text-align: center; margin-inline-end: 0.3rem; }
.about-fact dd { margin: 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 900px) {
    .about-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; margin-top: 0; }
    .about-panel-facts { padding-inline-start: 0; border-inline-start: 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
    .about-fact { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- One section per screen (home page, desktop) ----------
   Each home-page section fills the viewport and the page snaps section by section.
   Only on screens big enough to show a whole section; phones and short windows scroll normally. */
@media (min-width: 1024px) and (min-height: 650px) {
    /* Sections are sized to their content (no forced full-screen height, which left big
       empty gaps) and still fit one screen; scrolling settles gently on section starts. */
    html:has(> body.home) { scroll-snap-type: y proximity; scroll-padding-top: 84px; }
    .home .main { margin-top: 0; }
    .home .main > .section {
        padding: clamp(1.5rem, 3.5vh, 3rem) 0;
        margin-top: 0;
        scroll-snap-align: start;
    }
    /* the hero sits right under the fixed header */
    .home .main > .hero { padding: calc(84px + clamp(0.5rem, 2vh, 1.5rem)) 0 clamp(1rem, 2.5vh, 2rem); min-height: 0; }
    .home .main > .hero .scroll-hint { display: none; }
    .home .main > .section > .container,
    .home .main > .section > .hero-container { width: 100%; }
    .home .footer { scroll-snap-align: end; }

    /* Sizes below scale with the screen height so each section's content fits one screen. */
    .home .section-header { margin-bottom: clamp(1rem, 2.6vh, 2rem); }
    .home .section-title { font-size: clamp(1.8rem, 4.4vh, 2.5rem); }

    /* Hero */
    .home .hero-title { font-size: clamp(2.2rem, 5.6vh, 3.5rem); margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem); }
    .home .hero-badge { margin-bottom: clamp(0.6rem, 1.6vh, 1.5rem); padding: 0.5rem 1.2rem; }
    .home .hero-subtitle { font-size: clamp(0.8rem, 1.6vh, 1rem); margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem); }
    .home .hero-description { margin-bottom: clamp(0.8rem, 2vh, 2rem); }
    .home .hero-stats { margin-bottom: clamp(1rem, 2.4vh, 2rem); gap: 0.8rem; }
    .home .stat-card { padding: clamp(0.7rem, 1.6vh, 1.25rem) 0.9rem; }
    .home .stat-icon { width: clamp(34px, 5vh, 48px); height: clamp(34px, 5vh, 48px); font-size: clamp(0.95rem, 1.8vh, 1.3rem); margin-bottom: clamp(0.3rem, 1vh, 0.8rem); }
    .home .stat-number { font-size: clamp(1.4rem, 3.4vh, 2rem); }
    .home .hero-visual { max-height: calc(100vh - 150px); }
    .home .security-monitor { max-height: calc(100vh - 150px); }

    /* Operations slider */
    .home .slide-card { min-height: 0; padding: clamp(1.1rem, 2.4vh, 2rem) 2.5rem; }
    .home .slide-icon-container { width: clamp(56px, 7vh, 72px); height: clamp(56px, 7vh, 72px); margin-bottom: clamp(0.6rem, 1.4vh, 1rem); font-size: clamp(1.4rem, 2.8vh, 1.8rem); }
    .home .slide-title { margin-bottom: clamp(0.4rem, 1vh, 0.6rem); font-size: clamp(1.3rem, 2.8vh, 1.6rem); }
    .home .slide-description { margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem); }
    .home .slider-controls { margin-top: clamp(0.6rem, 1.6vh, 1.5rem); }
    .home .slider-footer { margin-top: clamp(0.4rem, 1.2vh, 1.25rem); }

    /* About */
    .home .about-panel { margin: -0.5rem 0 clamp(0.8rem, 1.8vh, 1.5rem); padding: clamp(0.9rem, 2.2vh, 1.75rem) 2rem; }
    .home .about-badge { padding: 0.4rem 1rem; }
    .home .about-panel-title { font-size: clamp(1.1rem, 2.4vh, 1.35rem); margin-bottom: 0.6rem; }
    .home .about-panel-text { font-size: clamp(0.92rem, 1.9vh, 1.05rem); line-height: 1.65; }
    .home .about-panel-facts { gap: clamp(0.25rem, 0.8vh, 0.55rem); }
    .home .about-fact dd { font-size: clamp(0.85rem, 1.7vh, 0.95rem); }
    .home .about-wrapper { gap: clamp(0.8rem, 2vh, 1.5rem); }
    .home .about-text { font-size: clamp(0.95rem, 1.9vh, 1.1rem); line-height: 1.55; margin-top: 0.5rem; }
    .home .about-grid { min-height: 0; gap: 1.5rem; }
    .home .about-visual { min-height: 0; }
    .home .about-features { gap: 1rem; }
    .home .feature-card { padding: 1rem 1.2rem; }
    .home .feature-icon { width: 46px; height: 46px; font-size: 1.15rem; flex-shrink: 0; }
    .home .feature-title { font-size: 1rem; margin-bottom: 0.35rem; }
    .home .feature-desc { font-size: 0.88rem; line-height: 1.5; }

    /* Services */
    .home .services-grid { gap: 1.5rem; }
    .home .service-card { padding: clamp(1.2rem, 2.6vh, 2rem) 1.6rem; }
    .home .service-header { margin-bottom: clamp(0.5rem, 1.4vh, 1.5rem); }
    .home .service-icon { width: clamp(48px, 7vh, 70px); height: clamp(48px, 7vh, 70px); font-size: clamp(1.2rem, 2.6vh, 1.8rem); }
    .home .service-title { font-size: clamp(1.05rem, 2.3vh, 1.4rem); margin-bottom: 0.5rem; }
    .home .service-description { font-size: 0.92rem; line-height: 1.6; margin-bottom: clamp(0.6rem, 1.6vh, 1.5rem); }
    .home .service-features { margin-bottom: clamp(0.6rem, 1.6vh, 2rem); }
    .home .service-features li { padding-top: clamp(0.15rem, 0.6vh, 0.5rem); padding-bottom: clamp(0.15rem, 0.6vh, 0.5rem); font-size: 0.92rem; }
    .home .service-footer { padding-top: clamp(0.6rem, 1.4vh, 1.5rem); }

    /* Contact */
    .home .contact-grid { gap: 3rem; align-items: start; }
    .home .contact-card { padding: clamp(1rem, 2.2vh, 1.75rem); }
    .home .contact-form { padding: clamp(1.2rem, 2.6vh, 2.5rem); }
    .home .form-group { margin-bottom: clamp(0.45rem, 1.3vh, 1.5rem); }
    .home .form-label { margin-bottom: 0.25rem; }
    .home .form-input { padding-top: clamp(0.5rem, 1.1vh, 1rem); padding-bottom: clamp(0.5rem, 1.1vh, 1rem); }
    .home .form-textarea { min-height: clamp(70px, 11vh, 150px); height: clamp(70px, 11vh, 150px); }
    .home .btn-submit { padding-top: clamp(0.7rem, 1.6vh, 1.1rem); padding-bottom: clamp(0.7rem, 1.6vh, 1.1rem); }
}
@media (min-width: 1024px) and (min-height: 650px) and (max-height: 1200px) {
    /* The About section carries the most content, so on all but very tall screens its
       decorative terminal steps aside and the four feature cards sit in one row. */
    .home .about-grid { grid-template-columns: 1fr; }
    .home .about-visual { display: none; }
    .home .about-features { grid-template-columns: repeat(4, 1fr); }
    .home .feature-card { flex-direction: column; gap: 0.6rem; }
}

@media (min-width: 1024px) and (min-height: 650px) and (max-height: 760px) {
    /* Compact tier for typical laptop viewports (a 768px screen minus browser toolbars). */
    .home .section-header { margin-bottom: 0.75rem; }
    .home .hero-title { font-size: 5vh; }
    .home .hero-badge { margin-bottom: 0.4rem; padding: 0.4rem 1rem; }
    .home .hero-subtitle { margin-bottom: 0.5rem; }
    .home .hero-description { margin-bottom: 0.7rem; font-size: 0.95rem; }
    .home .hero-stats { margin-bottom: 0.9rem; }
    .home .about-panel { padding: 0.8rem 1.75rem; gap: 2rem; }
    .home .about-panel-title { margin-bottom: 0.35rem; }
    .home .about-panel-text { font-size: 0.9rem; line-height: 1.55; }
    .home .about-wrapper { gap: 0.6rem; }
    .home .about-intro-section { display: flex; align-items: center; gap: 1.25rem; max-width: none; text-align: start; }
    .home .about-intro-section .about-badge { flex-shrink: 0; }
    .home .about-text { margin-top: 0; font-size: 0.9rem; line-height: 1.5; }
    .home .feature-card { padding: 0.8rem 1rem; gap: 0.4rem; }
    .home .feature-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .home .contact-form { padding: 0.9rem 1.25rem; }
    .home .form-group { margin-bottom: 0.3rem; }
    .home .form-label { font-size: 0.85rem; margin-bottom: 0.15rem; }
    .home .form-input { padding-top: 0.4rem; padding-bottom: 0.4rem; }
    .home .form-textarea { min-height: 56px; height: 56px; }
    .home .contact-card { padding: 0.8rem 1rem; }
}

/* About section without the terminal */
.about-grid-full { grid-template-columns: 1fr; min-height: 0; }
.about-grid-full .about-features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Free-form text section */
.section-text-content { max-width: 860px; }

/* Threat map section */
.threatmap-frame {
    position: relative;
    height: clamp(520px, var(--tm-h, 80vh), 920px);
    border: 2px solid rgba(0, 255, 136, 0.35);
    border-radius: 20px;
    overflow: hidden;
    background: #04121c;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15), 0 0 50px rgba(0, 212, 255, 0.1);
}
.threatmap-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.threatmap-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 1rem;
}
.threatmap-note {
    margin: 0;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.threatmap-note i { color: var(--primary); margin-inline-end: 0.25rem; }
.threatmap-credits { margin-top: 0.35rem; font-size: 0.72rem; }
.threatmap-credits a { color: var(--text-secondary); }
.threatmap-credits a:hover { color: var(--primary); }
@media (max-width: 768px) {
    .threatmap-frame { height: clamp(480px, 85vh, 760px); border-radius: 14px; }
}

/* A section page viewed on its own URL (e.g. Live Data): start just below the menu bar */
.section-standalone .section:not(.hero) { padding-top: calc(84px + 1rem); padding-bottom: 2.5rem; }
.section-standalone .section-header { margin-bottom: 1rem; }
.section-standalone .section-intro { margin: 0 0 1rem; }
/* Hero placed after another section (e.g. under the Live Data map): it no longer needs room
   for the fixed menu bar, so it follows the previous section closely (~1.5cm). */
.main > .section + .hero,
.home .main > .section + .hero { margin-top: 0; padding-top: 1.5rem; min-height: 0; }

/* Live Data: the map sits right under the menu bar (it has its own "Live Attack Map" title) */
.threatmap-section .section-header { display: none; }
.main > .threatmap-section,
.section-standalone .threatmap-section,
.home .main > .threatmap-section { padding-top: calc(84px + 0.6rem); padding-bottom: 1.5rem; }
.threatmap-section .threatmap-frame { height: clamp(520px, calc(100vh - 84px - 4.5rem), 920px); }

/* Tighter vertical rhythm between home-page sections (all screen sizes) */
.section:not(.hero) { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero { padding-bottom: 1.5rem; }
.section-header { margin-bottom: 2rem; }
@media (max-width: 768px) {
    .section:not(.hero) { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .main .hero { margin-top: 0; padding-top: calc(70px + 1rem); }
}

/* Operations slider: smaller, more compact block */
.hacks-slider { max-width: 860px; }
.slide-card { min-height: 0; padding: 2rem 2.5rem; }
.slide-icon-container { width: 72px; height: 72px; margin-bottom: 1rem; font-size: 1.8rem; }
.slide-title { font-size: 1.6rem; margin-bottom: 0.6rem; }
.slide-description { margin-bottom: 1.2rem; }
.slider-controls { margin-top: 1rem; }
.slider-footer { margin-top: 0.75rem; }
@media (max-width: 768px) {
    .slide-card { padding: 1.5rem 1.25rem; }
    .slide-title { font-size: 1.3rem; }
}

/* "Edit section" shortcut for logged-in editors */
.cs-edit-link {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(5, 8, 16, 0.85);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 20px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.cs-edit-link:hover,
.cs-edit-link:focus { opacity: 1; }
.hero .cs-edit-link { top: 6.5rem; }

/* Contact form */
.form-honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-status {
    font-family: var(--font-code);
    font-size: 0.9rem;
    min-height: 0;
    margin-bottom: 1rem;
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--primary); }
.form-status.is-error { color: var(--danger); }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Inner pages ---------- */
.inner-main {
    padding: 9rem 0 6rem;
    margin-top: 0;
}
.container-narrow { max-width: 860px; }

.inner-header { margin-bottom: 3rem; }
.inner-kicker {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.inner-kicker a { color: inherit; }
.inner-title {
    font-family: var(--font-tech);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.post-card-thumb img { display: block; width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.post-meta { font-family: var(--font-code); font-size: 0.8rem; color: var(--text-muted); }
.post-card-title { font-size: 1.25rem; line-height: 1.35; }
.post-card-title a { color: var(--text-primary); text-decoration: none; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-secondary); flex: 1; }
.post-card .service-link { margin-top: auto; }

/* Pagination */
.inner-pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-code);
}
.page-numbers.current,
.page-numbers:hover { border-color: var(--primary); color: var(--primary); }

/* Entry content */
.entry-thumb { margin-bottom: 2rem; }
.entry-thumb img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); }
.entry-content { color: var(--text-secondary); font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text-primary); line-height: 1.3; margin-top: 2.5rem; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content a { color: var(--primary); }
.entry-content a:hover { color: var(--secondary); }
.entry-content ul,
.entry-content ol { padding-inline-start: 1.5rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote {
    border-inline-start: 3px solid var(--primary);
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 0 12px 12px 0;
    color: var(--text-primary);
}
.entry-content code,
.entry-content pre { font-family: var(--font-code); }
.entry-content code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
    color: var(--primary);
}
.entry-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: var(--text-primary); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: start; }
.entry-content figcaption,
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide,
.alignfull { max-width: 100%; }

/* Entry footer */
.entry-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.entry-tags a {
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
}
.entry-tags a:hover { color: var(--primary); border-color: var(--primary); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--primary); text-decoration: none; }

/* Comments */
.comments-area { margin-top: 4rem; }
.comments-title,
.comment-reply-title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 2rem; }
.comment-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.comment-author img { border-radius: 50%; vertical-align: middle; margin-inline-end: 0.5rem; }
.comment-metadata a,
.comment-reply-link { color: var(--text-muted); font-size: 0.8rem; }
.comment-form label { display: block; color: var(--text-secondary); margin-bottom: 0.4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-form .search-field:focus { outline: none; border-color: var(--primary); }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit,
.search-form .search-submit {
    background: var(--gradient-1);
    color: var(--bg-dark);
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
}
.search-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* 404 */
.error-terminal .terminal-line { opacity: 1; animation: none; }
.error-actions { margin-top: 2.5rem; text-align: center; }
