/*
 * DoctorErio V3 PageSpeed / Asclepius Press
 * Clean editorial medical theme: compact article mode, lighter CSS, optimized media and accessibility.
 */
:root {
    --ap-bg: #07101f;
    --ap-bg-soft: #0e1a2d;
    --ap-surface: rgba(255,255,255,.075);
    --ap-surface-strong: rgba(255,255,255,.12);
    --ap-border: rgba(255,255,255,.16);
    --ap-text: #f5f7fb;
    --ap-muted: #9fb0c8;
    --ap-muted-2: #c8d3e2;
    --ap-blue: #4fb8ff;
    --ap-cyan: #71f7ff;
    --ap-gold: #f4c76b;
    --ap-red: #ff647c;
    --ap-green: #6de6a5;
    --ap-shadow: 0 24px 70px rgba(0,0,0,.30);
    --ap-radius-lg: 28px;
    --ap-radius-md: 20px;
    --ap-radius-sm: 14px;
    --ap-container: 1240px;
    --ap-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ap-title-font: "Old English Text MT", "UnifrakturCook", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ap-text);
    font-family: var(--ap-font);
    background:
        radial-gradient(circle at 15% 10%, rgba(79,184,255,.16), transparent 30%),
        radial-gradient(circle at 84% 0%, rgba(113,247,255,.10), transparent 28%),
        linear-gradient(180deg, #060b16 0%, var(--ap-bg) 45%, #070d18 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.ap-light-mode {
    --ap-bg: #f5f7fb;
    --ap-bg-soft: #eef3f8;
    --ap-surface: rgba(255,255,255,.82);
    --ap-surface-strong: rgba(255,255,255,.96);
    --ap-border: rgba(14,31,54,.12);
    --ap-text: #0c1727;
    --ap-muted: #5d6c82;
    --ap-muted-2: #32445c;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 50%, #edf3f8 100%);
}
body.admin-bar .ap-header { top: 32px; }
body.admin-bar .ap-single-topbar { top: 42px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.ap-container { width: min(calc(100% - 38px), var(--ap-container)); margin-inline: auto; }
.ap-site-shell { min-height: 100vh; overflow-x: clip; }
.ap-main { padding: 22px 0 54px; }
.screen-reader-text, .skip-link {
    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:focus {
    position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto;
    clip: auto; padding: 10px 14px; background: #fff; color: #000; border-radius: 10px;
}

/* Header */
.ap-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 16px 0 10px;
    background: linear-gradient(180deg, rgba(6,11,22,.94), rgba(6,11,22,.78));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ap-border);
    transition: padding .22s ease, box-shadow .22s ease;
}
body.ap-light-mode .ap-header { background: rgba(255,255,255,.92); }
.ap-header.is-compact { padding: 8px 0 7px; box-shadow: 0 10px 36px rgba(0,0,0,.22); }
.ap-header__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}
.ap-date, .ap-time {
    color: var(--ap-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ap-time { text-align: right; }
.ap-brand { text-align: center; min-width: 0; }
.ap-logo-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.ap-logo-wrap img { max-height: 54px; width: auto; }
.ap-title {
    display: block;
    font-family: var(--ap-title-font);
    font-size: clamp(34px, 5vw, 68px);
    line-height: .92;
    letter-spacing: .02em;
    color: var(--ap-text);
    text-shadow: 0 0 24px rgba(113,247,255,.12);
}
.ap-header.is-compact .ap-title { font-size: clamp(28px, 3.2vw, 42px); }
.ap-tagline { margin: 6px 0 0; color: var(--ap-muted); font-size: 13px; }
.ap-header.is-compact .ap-tagline { display: none; }

.ap-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.ap-nav__menu { flex: 1; min-width: 0; }
.ap-primary-menu,
.ap-primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ap-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.ap-primary-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--ap-muted-2);
    font-size: 13px;
    font-weight: 800;
    border: 1px solid transparent;
}
.ap-primary-menu a:hover,
.ap-primary-menu .current-menu-item > a,
.ap-primary-menu .current_page_item > a {
    color: var(--ap-text);
    background: var(--ap-surface);
    border-color: var(--ap-border);
}
.ap-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    color: var(--ap-text);
    background: var(--ap-surface);
}
.ap-menu-toggle b { font-size: 12px; letter-spacing: .06em; }
.ap-menu-toggle__bars { display: grid; gap: 4px; }
.ap-menu-toggle__bars span {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.ap-nav__tools { display: flex; align-items: center; gap: 8px; }
.ap-search-form { display: flex; align-items: center; gap: 6px; }
.ap-search-field {
    width: 190px;
    height: 38px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--ap-text);
    background: var(--ap-surface);
    outline: none;
}
.ap-search-field:focus { border-color: rgba(113,247,255,.55); }
.ap-search-submit,
.ap-theme-toggle {
    min-width: 44px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    background: var(--ap-surface);
}
.ap-mobile-category-strip { display: none; }

/* Home hero */
.ap-lead-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 12px;
}
.ap-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
    background: #07101d;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
}
.ap-hero__glow {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: radial-gradient(circle at 25% 20%, rgba(113,247,255,.18), transparent 28%);
    z-index: 3;
}
.ap-slider { position: absolute; inset: 0; }
.ap-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.ap-slide.is-active { opacity: 1; visibility: visible; }
.ap-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ap-image-fit-contain .ap-slide__image,
.ap-image-fit-contain .ap-card__media img,
.ap-image-fit-contain .ap-related-card__media img,
.ap-image-fit-contain .ap-lead-category__media img {
    object-fit: contain;
    background: #08101d;
}
.ap-slide__link,
.ap-slide__overlay { position: absolute; inset: 0; }
.ap-slide__link { z-index: 5; }
.ap-slide__overlay {
    z-index: 2;
    background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.40) 50%, rgba(0,0,0,.10) 100%),
                linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72) 100%);
}
.ap-slide__content {
    position: absolute;
    z-index: 4;
    left: clamp(18px, 4vw, 46px);
    bottom: clamp(22px, 4vw, 46px);
    width: min(680px, calc(100% - 38px));
}
.ap-chip,
.ap-panel__eyebrow,
.ap-card__badge,
.ap-related-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(113,247,255,.28);
    background: rgba(113,247,255,.09);
    color: var(--ap-cyan);
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ap-slide h1 { margin: 12px 0 10px; font-size: clamp(30px, 4vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.ap-slide p { max-width: 620px; margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; }
.ap-readline { color: var(--ap-gold); font-weight: 900; }
.ap-slider-btn {
    position: absolute;
    z-index: 8;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.32);
    backdrop-filter: blur(10px);
    font-size: 30px;
    line-height: 1;
}
.ap-slider-btn--prev { left: 14px; }
.ap-slider-btn--next { right: 14px; }
.ap-slider-dots {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.ap-slider-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.38);
}
.ap-slider-dots button.is-active { width: 24px; background: var(--ap-cyan); }

.ap-lead-category {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-surface);
    box-shadow: var(--ap-shadow);
    padding: 18px;
    min-height: 462px;
}
.ap-mini-section-head h2,
.ap-panel__header h2,
.ap-related__head h2,
.ap-archive-head h1,
.ap-faq h2,
.ap-med-table h2 {
    margin: 8px 0 0;
    letter-spacing: -.04em;
    line-height: 1.05;
}
.ap-lead-category__list { display: grid; gap: 11px; margin-top: 14px; }
.ap-lead-category__item a {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px;
    padding: 9px;
    border: 1px solid var(--ap-border);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}
.ap-lead-category__media { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 12px; background: #08101d; }
.ap-lead-category__media img { width: 100%; height: 100%; object-fit: cover; }
.ap-lead-category__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ap-lead-category__body small { color: var(--ap-cyan); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ap-lead-category__body strong { font-size: 14px; line-height: 1.25; }
.ap-lead-category__more,
.ap-panel__more,
.ap-related__all,
.ap-card__read {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 14px;
    color: var(--ap-gold);
    font-weight: 900;
}

/* Panels / cards */
.ap-panel { margin-top: 30px; }
.ap-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    padding: 0 2px 14px;
    border-bottom: 1px solid var(--ap-border);
}
.ap-panel__header h2 { font-size: clamp(26px, 3vw, 42px); }
.ap-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 16px;
    margin-top: 16px;
}
.ap-card {
    overflow: hidden;
    border-radius: var(--ap-radius-md);
    border: 1px solid var(--ap-border);
    background: var(--ap-surface);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ap-card:hover { transform: translateY(-3px); border-color: rgba(113,247,255,.32); background: var(--ap-surface-strong); }
.ap-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; min-height: 100%; }
.ap-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #08101d;
}
.ap-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ap-card__badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    padding: 6px 8px;
    background: rgba(6,11,22,.72);
    backdrop-filter: blur(8px);
}
.ap-card__body { padding: 14px; }
.ap-card__meta,
.ap-related-card__meta,
.ap-article__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 700;
}
.ap-card h3 { margin: 8px 0 8px; font-size: 17px; line-height: 1.22; letter-spacing: -.02em; }
.ap-card:hover h3,
.ap-related-card:hover h3 { color: var(--ap-cyan); }
.ap-card p { margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.5; }
.ap-empty-panel {
    margin-top: 18px;
    padding: 28px;
    border-radius: var(--ap-radius-md);
    border: 1px dashed var(--ap-border);
    background: var(--ap-surface);
    color: var(--ap-muted-2);
}

/* Archive / pages */
.ap-archive-head,
.ap-article__header,
.ap-article__hero--compact {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-surface);
    padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--ap-shadow);
}
.ap-archive-head { margin-top: 8px; }
.ap-archive-head h1,
.ap-article__header h1 { font-size: clamp(30px, 5vw, 58px); }
.ap-archive-description { color: var(--ap-muted); line-height: 1.65; }
.ap-card-grid--archive { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ap-subcategory-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.ap-subcategory-bar__label {
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.ap-subcategory-bar__scroller {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ap-subcategory-bar a {
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255,255,255,.05);
    font-size: 13px;
    font-weight: 800;
    color: var(--ap-muted-2);
}
.ap-subcategory-bar a.is-active,
.ap-subcategory-bar a:hover {
    color: var(--ap-text);
    border-color: rgba(113,247,255,.35);
    background: rgba(113,247,255,.10);
}
.ap-pagination { margin-top: 24px; }
.ap-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ap-pagination a,
.ap-pagination span {
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--ap-surface);
    color: var(--ap-muted-2);
}
.ap-pagination .current { color: var(--ap-text); background: var(--ap-surface-strong); }

/* Clean single article */
.ap-reading-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 200;
    background: transparent;
}
.ap-reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ap-cyan), var(--ap-gold)); }
.ap-single-main { padding-top: 78px; }
.ap-single-topbar {
    position: fixed;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    background: rgba(6,11,22,.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
body.ap-light-mode .ap-single-topbar { background: rgba(255,255,255,.92); }
.ap-back-home,
.ap-single-brand,
.ap-single-category {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid var(--ap-border);
    background: rgba(255,255,255,.055);
    font-size: 13px;
    font-weight: 900;
}
.ap-single-brand { font-family: var(--ap-title-font); font-size: 22px; letter-spacing: .02em; border-color: transparent; background: transparent; }
.ap-single-category { color: var(--ap-cyan); margin-left: auto; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-single-topbar .ap-menu-toggle { display: inline-flex; }
.ap-single-drawer {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    padding: 12px;
    border: 1px solid var(--ap-border);
    border-radius: 22px;
    background: rgba(6,11,22,.96);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
}
body.ap-light-mode .ap-single-drawer { background: rgba(255,255,255,.97); }
.ap-single-topbar.is-open .ap-single-drawer { display: block; }
.ap-single-drawer .ap-primary-menu { justify-content: flex-start; }
.ap-article--fullscreen,
.ap-article--post {
    width: min(calc(100% - 38px), 1080px);
    margin: 0 auto;
}
.ap-article__hero--compact {
    margin: 0 auto 20px;
    padding: clamp(22px, 4vw, 46px);
}
.ap-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--ap-muted);
    font-size: 13px;
    font-weight: 750;
}
.ap-breadcrumb a:hover { color: var(--ap-cyan); }
.ap-article__intro h1 {
    max-width: 920px;
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.ap-article-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.ap-article-toc {
    position: sticky;
    top: 82px;
    padding: 16px;
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    background: var(--ap-surface);
}
.ap-toc-toggle { display: none; }
.ap-article-toc h3 { margin: 0 0 12px; font-size: 15px; }
.ap-toc-links { display: grid; gap: 8px; }
.ap-toc-links a {
    color: var(--ap-muted-2);
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
}
.ap-content,
.ap-faq,
.ap-med-table,
.ap-author-box,
.ap-post-nav,
.ap-related {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-surface);
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
}
.ap-content { padding: clamp(22px, 4vw, 42px); }
.ap-content > :first-child { margin-top: 0; }
.ap-content > :last-child { margin-bottom: 0; }
.ap-content p,
.ap-content li {
    color: var(--ap-muted-2);
    font-size: 18px;
    line-height: 1.82;
}
.ap-content h2,
.ap-content h3,
.ap-content h4 {
    color: var(--ap-text);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin-top: 1.7em;
}
.ap-content h2 { font-size: clamp(28px, 3vw, 40px); }
.ap-content h3 { font-size: clamp(22px, 2.4vw, 30px); }
.ap-content a { color: var(--ap-cyan); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ap-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--ap-cyan);
    border-radius: 18px;
    background: rgba(113,247,255,.07);
}
.ap-content table { width: 100%; border-collapse: collapse; margin: 22px 0; overflow: hidden; border-radius: 16px; }
.ap-content th,
.ap-content td { padding: 12px; border: 1px solid var(--ap-border); text-align: left; vertical-align: top; }
.ap-content th { background: rgba(113,247,255,.08); }
.ap-content figure { margin: 24px 0; }
.ap-content figcaption { color: var(--ap-muted); font-size: 13px; text-align: center; margin-top: 8px; }
.ap-content img { border-radius: 18px; }
.ap-reader-mode {
    display: inline-flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    background: var(--ap-surface);
}
.ap-reader-mode button { border: 0; border-radius: 999px; padding: 8px 12px; color: var(--ap-muted-2); background: transparent; font-weight: 900; }
.ap-reader-mode button.is-active { color: var(--ap-text); background: var(--ap-surface-strong); }
.ap-doctor-note {
    display: none;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(113,247,255,.24);
    border-radius: 22px;
    background: rgba(113,247,255,.07);
}
body.ap-doctor-mode .ap-doctor-note { display: block; }
.ap-med-table { margin: 0 0 20px; padding: 22px; }
.ap-med-table table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.ap-med-table th,
.ap-med-table td { border: 1px solid var(--ap-border); padding: 12px; text-align: left; }
.ap-faq { margin-top: 20px; padding: clamp(20px, 3vw, 32px); }
.ap-faq details { margin-top: 12px; border: 1px solid var(--ap-border); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.04); }
.ap-faq summary { font-weight: 900; cursor: pointer; }
.ap-faq p { color: var(--ap-muted-2); line-height: 1.7; }
.ap-author-box {
    display: grid;
    grid-template-columns: 86px minmax(0,1fr);
    gap: 16px;
    margin: 22px auto 0;
    padding: 20px;
}
.ap-author-box__avatar img { border-radius: 999px; }
.ap-author-box span { color: var(--ap-cyan); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.ap-author-box h2 { margin: 6px 0; }
.ap-author-box p { margin-bottom: 0; color: var(--ap-muted-2); line-height: 1.65; }
.ap-author-verified { color: var(--ap-green); font-weight: 900; font-size: 13px; }
.ap-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin: 22px auto 0;
    padding: 14px;
}
.ap-post-nav__link { padding: 14px; border-radius: 18px; border: 1px solid var(--ap-border); background: rgba(255,255,255,.04); }
.ap-post-nav__link span { display: block; color: var(--ap-muted); font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.ap-post-nav__link--next { text-align: right; }
.ap-related { margin: 22px auto 0; padding: clamp(18px, 3vw, 26px); }
.ap-related__head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ap-related__subtitle { margin: 8px 0 0; color: var(--ap-muted); }
.ap-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.ap-related-card { overflow: hidden; border-radius: 18px; border: 1px solid var(--ap-border); background: rgba(255,255,255,.04); }
.ap-related-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.ap-related-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #08101d; }
.ap-related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ap-related-card__badge { position: absolute; left: 9px; bottom: 9px; font-size: 10px; background: rgba(6,11,22,.72); }
.ap-related-card__body { padding: 12px; }
.ap-related-card h3 { margin: 8px 0; font-size: 15px; line-height: 1.25; }
.ap-related-card p { margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.45; }

/* Footer */
.ap-prefooter {
    margin-top: 34px;
    display: grid;
    grid-template-columns: .9fr 1.4fr;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    background: var(--ap-surface);
}
.ap-prefooter h2 { margin: 8px 0; line-height: 1.1; letter-spacing: -.04em; }
.ap-prefooter p { color: var(--ap-muted); line-height: 1.65; }
.ap-prefooter__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ap-prefooter__grid a { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--ap-border); border-radius: 18px; background: rgba(255,255,255,.04); }
.ap-prefooter__grid span { color: var(--ap-muted); font-size: 13px; line-height: 1.45; }
.ap-footer { margin-top: 18px; padding: 24px 0 34px; border-top: 1px solid var(--ap-border); }
.ap-footer-premium__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ap-footer-minimal__brand { font-family: var(--ap-title-font); font-size: 28px; }
.ap-footer p { margin: 6px 0 0; color: var(--ap-muted); max-width: 460px; }
.ap-footer-minimal__links,
.ap-footer-minimal__social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-footer-minimal__links a,
.ap-social-link,
.ap-footer-minimal__domain {
    padding: 8px 11px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    font-size: 13px;
    font-weight: 800;
}
.ap-social-link--placeholder { opacity: .62; }
.ap-footer-social-title { color: var(--ap-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ap-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 130;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    background: var(--ap-surface-strong);
    color: var(--ap-text);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.ap-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Responsive */
@media (max-width: 1180px) {
    .ap-card-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .ap-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
    .ap-header__grid { grid-template-columns: auto 1fr auto; }
    .ap-title { font-size: clamp(34px, 8vw, 58px); }
    .ap-nav { justify-content: space-between; }
    .ap-menu-toggle { display: inline-flex; }
    .ap-nav__menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 12px;
        border: 1px solid var(--ap-border);
        border-radius: 22px;
        background: rgba(6,11,22,.96);
        box-shadow: 0 18px 55px rgba(0,0,0,.35);
        backdrop-filter: blur(18px);
    }
    body.ap-light-mode .ap-nav__menu { background: rgba(255,255,255,.97); }
    .ap-nav.is-open .ap-nav__menu { display: block; }
    .ap-primary-menu { justify-content: flex-start; }
    .ap-nav__tools { margin-left: auto; }
    .ap-search-field { width: 160px; }
    .ap-mobile-category-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-top: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .ap-mobile-category-strip::-webkit-scrollbar { display: none; }
    .ap-mobile-category-strip a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 8px 11px;
        border: 1px solid var(--ap-border);
        border-radius: 999px;
        background: rgba(255,255,255,.05);
        color: var(--ap-muted-2);
        font-size: 12px;
        font-weight: 900;
    }
    .ap-lead-layout { grid-template-columns: 1fr; }
    .ap-lead-category--desktop { display: none; }
    .ap-hero { min-height: 390px; aspect-ratio: 16 / 9; }
    .ap-card-grid, .ap-card-grid--archive { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ap-article-layout { grid-template-columns: 1fr; }
    .ap-article-toc { position: static; }
    .ap-toc-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        border: 0;
        color: var(--ap-text);
        background: transparent;
        font-weight: 900;
        padding: 0;
    }
    .ap-article-toc h3,
    .ap-toc-links { display: none; }
    .ap-article-toc.is-open h3,
    .ap-article-toc.is-open .ap-toc-links { display: grid; margin-top: 12px; }
    .ap-prefooter { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body.admin-bar .ap-single-topbar { top: 46px; }
    .ap-container { width: min(calc(100% - 24px), var(--ap-container)); }
    .ap-main { padding-top: 14px; }
    .ap-header { padding: 10px 0 8px; }
    .ap-header__grid { gap: 8px; }
    .ap-date, .ap-time { font-size: 11px; }
    .ap-tagline { display: none; }
    .ap-logo-wrap img { max-height: 42px; }
    .ap-title { font-size: clamp(32px, 11vw, 48px); }
    .ap-nav { margin-top: 8px; }
    .ap-nav__tools { gap: 6px; }
    .ap-search-field { width: min(44vw, 160px); height: 44px; }
    .ap-search-submit, .ap-theme-toggle, .ap-menu-toggle { min-height: 44px; height: 44px; }
    .ap-menu-toggle b { display: none; }
    .ap-hero { min-height: 300px; aspect-ratio: 16 / 9; border-radius: 22px; }
    .ap-slide__content { left: 16px; bottom: 28px; width: calc(100% - 32px); }
    .ap-slide h1 { font-size: clamp(26px, 8vw, 38px); }
    .ap-slide p { display: none; }
    .ap-slider-btn { display: none; }
    .ap-panel { margin-top: 24px; }
    .ap-panel__header { align-items: flex-start; }
    .ap-panel__header h2 { font-size: 25px; }
    .ap-panel__more { font-size: 13px; white-space: nowrap; }
    .ap-card-grid, .ap-card-grid--archive {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ap-card {
        display: block;
        border-radius: 16px;
    }
    .ap-card__link {
        display: grid;
        grid-template-columns: 116px minmax(0,1fr);
        grid-template-rows: none;
        height: 100%;
    }
    .ap-card__media { aspect-ratio: auto; min-height: 100%; height: 100%; }
    .ap-card__badge { display: none; }
    .ap-card__body { padding: 10px 12px; }
    .ap-card__meta { font-size: 11px; }
    .ap-card h3 { margin: 5px 0 5px; font-size: 15px; }
    .ap-card p { display: none; }
    .ap-card__read { margin-top: 5px; font-size: 12px; }
    .ap-prefooter { padding: 18px; }
    .ap-prefooter__grid { grid-template-columns: 1fr; }
    .ap-footer-premium__inner { align-items: flex-start; flex-direction: column; }

    .ap-single-main { padding-top: 70px; }
    .ap-single-topbar {
        width: min(calc(100% - 14px), 680px);
        top: 7px;
        min-height: 48px;
        padding: 7px 8px;
        border-radius: 20px;
        gap: 6px;
    }
    .ap-back-home { padding: 7px 9px; font-size: 12px; }
    .ap-single-brand { display: none; }
    .ap-single-category { display: none; }
    .ap-single-topbar .ap-theme-toggle { width: 44px; height: 44px; margin-left: auto; }
    .ap-single-drawer { left: 0; right: 0; border-radius: 18px; }
    .ap-article--fullscreen, .ap-article--post { width: min(calc(100% - 20px), 1080px); }
    .ap-article__hero--compact { padding: 20px; border-radius: 22px; margin-bottom: 14px; }
    .ap-breadcrumb { font-size: 12px; gap: 6px; }
    .ap-article__intro h1 { font-size: clamp(28px, 9vw, 42px); letter-spacing: -.045em; }
    .ap-article__meta { font-size: 12px; }
    .ap-content { padding: 20px; border-radius: 22px; }
    .ap-content p, .ap-content li { font-size: 17px; line-height: 1.78; }
    .ap-content h2 { font-size: 27px; }
    .ap-content h3 { font-size: 22px; }
    .ap-post-nav { grid-template-columns: 1fr; }
    .ap-post-nav__link--next { text-align: left; }
    .ap-author-box { grid-template-columns: 64px minmax(0,1fr); border-radius: 22px; }
    .ap-related { border-radius: 22px; }
    .ap-related__head { display: block; }
    .ap-related-grid { grid-template-columns: 1fr; }
    .ap-related-card { display: block; }
    .ap-related-card__link { display: grid; grid-template-columns: 112px minmax(0,1fr); grid-template-rows: none; height: 100%; }
    .ap-related-card__media { aspect-ratio: auto; height: 100%; }
    .ap-related-card__badge { display: none; }
}
@media (max-width: 390px) {
    .ap-date, .ap-time { display: none; }
    .ap-header__grid { grid-template-columns: 1fr; }
    .ap-brand { grid-column: 1; }
    .ap-search-field { width: 126px; }
    .ap-card__link { grid-template-columns: 100px minmax(0,1fr); }
}


/* PageSpeed v3.20.1: reduce rendering work below the fold */
.ap-panel, .ap-prefooter, .ap-related {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}
.ap-date, .ap-time { min-height: 18px; }
/* Links wrap each card once to avoid duplicate identical links in Lighthouse. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* =========================================================
   DoctorErio V3 FinalFix 3.20.2
   Stabilizim pas kontrollit real në desktop/single article.
   ========================================================= */

/* Mos lejo header-in e madh të shfaqet brenda artikullit, edhe nëse cache/template e vjetër e thërret. */
body.single .ap-header,
body.single-post .ap-header {
    display: none !important;
}

/* Desktop: homepage më kompakte, hero pa mbivendosje dhe pa crop agresiv të titullit. */
@media (min-width: 981px) {
    .ap-header {
        padding: 13px 0 9px;
    }

    .ap-title {
        font-size: clamp(40px, 4.3vw, 58px);
        line-height: .92;
    }

    .ap-tagline {
        margin-top: 4px;
        font-size: 12px;
    }

    .ap-primary-menu a {
        min-height: 40px;
        padding: 8px 12px;
    }

    .ap-search-field {
        height: 36px;
    }

    .ap-lead-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
        gap: 18px;
        width: min(100%, 1180px);
        margin: 16px auto 0;
    }

    .ap-hero {
        min-width: 0;
        min-height: 340px;
        max-height: 430px;
        aspect-ratio: 16 / 7.7;
    }

    .ap-slide__content {
        left: clamp(20px, 3vw, 38px);
        bottom: clamp(24px, 3vw, 34px);
        width: min(590px, calc(100% - 58px));
    }

    .ap-slide h1 {
        font-size: clamp(30px, 3.15vw, 46px);
        line-height: 1.04;
        max-width: 620px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ap-slide p {
        max-width: 540px;
        font-size: 15px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ap-lead-category {
        min-width: 0;
        min-height: 340px;
        max-height: 430px;
        overflow: hidden;
        padding: 16px;
    }

    .ap-lead-category__list {
        gap: 9px;
        margin-top: 12px;
    }

    .ap-lead-category__item a {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .ap-lead-category__body strong {
        font-size: 13px;
        line-height: 1.22;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ap-card-grid {
        gap: 14px;
    }

    .ap-card__body {
        padding: 13px;
    }
}

/* Single article: topbar kompakt, drawer i izoluar, pa përzierje me header/search të madh. */
.ap-single-main {
    padding-top: 74px;
}

.ap-single-topbar {
    width: min(calc(100% - 32px), 920px) !important;
    max-width: 920px;
    justify-content: flex-start;
}

.ap-single-topbar .ap-nav__tools,
.ap-single-topbar .ap-search,
.ap-single-topbar .ap-search-form {
    display: none !important;
}

.ap-single-drawer {
    display: none !important;
    left: 10px;
    right: 10px;
    max-height: min(68vh, 520px);
    overflow: auto;
    z-index: 220;
}

.ap-single-topbar.is-open .ap-single-drawer {
    display: block !important;
}

.ap-single-drawer .ap-primary-menu {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.ap-single-drawer .ap-primary-menu li,
.ap-single-drawer .ap-primary-menu a {
    width: 100%;
}

.ap-single-drawer .ap-primary-menu a {
    justify-content: center;
    min-height: 42px;
    background: rgba(255,255,255,.055);
    border-color: var(--ap-border);
}

.ap-single-category {
    max-width: 190px;
}

.ap-article__intro h1 {
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.05;
}

/* Artikulli të jetë më editorial dhe më pak “boxy”. */
.ap-article__hero--compact {
    padding: clamp(20px, 3.2vw, 36px);
}

.ap-content {
    background: color-mix(in srgb, var(--ap-surface) 92%, transparent);
}

/* Mobile: hero dhe topbar më të pastra, pa mbushje të tepërt. */
@media (max-width: 720px) {
    .ap-main {
        padding-top: 10px;
    }

    .ap-hero {
        min-height: 270px;
        aspect-ratio: 16 / 10;
    }

    .ap-slide__content {
        bottom: 20px;
    }

    .ap-slide h1 {
        font-size: clamp(24px, 7.5vw, 34px);
        line-height: 1.06;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ap-single-main {
        padding-top: 64px;
    }

    .ap-single-topbar {
        width: min(calc(100% - 12px), 680px) !important;
        border-radius: 18px;
    }

    .ap-single-drawer {
        left: 0;
        right: 0;
        max-height: 72vh;
        border-radius: 18px;
    }

    .ap-single-drawer .ap-primary-menu {
        grid-template-columns: 1fr;
    }

    .ap-article__hero--compact {
        padding: 18px;
    }

    .ap-article__intro h1 {
        font-size: clamp(26px, 8.2vw, 38px);
    }
}

/* =========================================================
   DoctorErio V3.21 MobileFix
   Burger në kolonë, light mode korrekt, topbar i pastër në artikull.
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --ap-z-header: 1000;
    --ap-z-singlebar: 1500;
    --ap-z-drawer: 2100;
    --ap-z-backtop: 900;
    --ap-tap: 44px;
}

.ap-header { z-index: var(--ap-z-header); }
.ap-single-topbar { z-index: var(--ap-z-singlebar); }
.ap-back-to-top { z-index: var(--ap-z-backtop); }

.ap-menu-toggle,
.ap-search-submit,
.ap-theme-toggle,
.ap-slider-btn,
.ap-back-home,
.ap-mobile-category-strip a,
.ap-primary-menu a,
.ap-toc-toggle,
.ap-post-nav__link,
.ap-panel__more,
.ap-related__all {
    min-height: var(--ap-tap);
}

.ap-menu-toggle,
.ap-search-submit,
.ap-theme-toggle,
.ap-slider-btn {
    min-width: var(--ap-tap);
}

/* Light mode: kontrast real, jo thjesht dark-mode i zbardhur. */
body.ap-light-mode {
    --ap-bg: #f3f7fb;
    --ap-bg-soft: #eaf1f7;
    --ap-surface: rgba(255,255,255,.92);
    --ap-surface-strong: #ffffff;
    --ap-border: rgba(9,25,43,.14);
    --ap-text: #071527;
    --ap-muted: #51637a;
    --ap-muted-2: #23384f;
    --ap-blue: #0969b3;
    --ap-cyan: #007f93;
    --ap-gold: #9a6500;
    --ap-shadow: 0 18px 48px rgba(35,54,76,.13);
    color: var(--ap-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(0,127,147,.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 44%, #edf3f8 100%);
}

body.ap-light-mode .ap-header,
body.ap-light-mode .ap-nav__menu,
body.ap-light-mode .ap-single-topbar,
body.ap-light-mode .ap-single-drawer {
    background: rgba(255,255,255,.96);
    color: var(--ap-text);
    border-color: var(--ap-border);
}

body.ap-light-mode .ap-panel,
body.ap-light-mode .ap-card,
body.ap-light-mode .ap-lead-category,
body.ap-light-mode .ap-article__hero--compact,
body.ap-light-mode .ap-content,
body.ap-light-mode .ap-article-toc,
body.ap-light-mode .ap-author-box,
body.ap-light-mode .ap-related,
body.ap-light-mode .ap-related-card,
body.ap-light-mode .ap-faq,
body.ap-light-mode .ap-subcategory-bar,
body.ap-light-mode .ap-prefooter {
    background: rgba(255,255,255,.94);
    color: var(--ap-text);
    border-color: var(--ap-border);
    box-shadow: 0 12px 36px rgba(32,49,70,.10);
}

body.ap-light-mode h1,
body.ap-light-mode h2,
body.ap-light-mode h3,
body.ap-light-mode h4,
body.ap-light-mode .ap-card h3,
body.ap-light-mode .ap-related-card h3,
body.ap-light-mode .ap-lead-category__body strong,
body.ap-light-mode .ap-panel__header h2,
body.ap-light-mode .ap-article__intro h1,
body.ap-light-mode .ap-content strong,
body.ap-light-mode .ap-content b {
    color: #061426;
}

body.ap-light-mode .ap-card p,
body.ap-light-mode .ap-related-card p,
body.ap-light-mode .ap-content p,
body.ap-light-mode .ap-content li,
body.ap-light-mode .ap-article__meta,
body.ap-light-mode .ap-card__meta,
body.ap-light-mode .ap-related-card__meta {
    color: #445870;
}

body.ap-light-mode .ap-primary-menu a,
body.ap-light-mode .ap-mobile-category-strip a,
body.ap-light-mode .ap-back-home,
body.ap-light-mode .ap-single-category,
body.ap-light-mode .ap-search-field,
body.ap-light-mode .ap-search-submit,
body.ap-light-mode .ap-theme-toggle,
body.ap-light-mode .ap-menu-toggle {
    color: #10243a;
    background: rgba(245,248,252,.94);
    border-color: rgba(11,34,57,.14);
}

body.ap-light-mode .ap-primary-menu a:hover,
body.ap-light-mode .ap-primary-menu .current-menu-item > a,
body.ap-light-mode .ap-primary-menu .current_page_item > a,
body.ap-light-mode .ap-mobile-category-strip a:hover {
    color: #04111f;
    background: #e8f4fb;
    border-color: rgba(0,127,147,.28);
}

body.ap-light-mode .ap-search-field::placeholder { color: #67798d; }
body.ap-light-mode .ap-slide h1,
body.ap-light-mode .ap-slide p,
body.ap-light-mode .ap-slide__meta,
body.ap-light-mode .ap-hero { color: #ffffff; }

/* Desktop/tablet burger drawer: kolonë profesionale, jo menu e shpërndarë. */
@media (max-width: 980px) {
    .ap-nav {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ap-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        justify-content: center;
        padding-inline: 13px;
    }

    .ap-nav__menu {
        display: none !important;
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;
        z-index: var(--ap-z-drawer);
        width: 100%;
        max-height: min(70vh, 560px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px;
        border: 1px solid var(--ap-border);
        border-radius: 20px;
        background: rgba(6,11,22,.97);
        box-shadow: 0 22px 65px rgba(0,0,0,.42);
        backdrop-filter: blur(18px);
    }

    .ap-nav.is-open > .ap-nav__menu,
    .ap-single-topbar.is-open > .ap-single-drawer {
        display: block !important;
    }

    .ap-nav__menu .ap-primary-menu,
    .ap-single-drawer .ap-primary-menu {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 7px;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .ap-nav__menu .ap-primary-menu li,
    .ap-single-drawer .ap-primary-menu li {
        width: 100%;
        margin: 0;
    }

    .ap-nav__menu .ap-primary-menu a,
    .ap-single-drawer .ap-primary-menu a {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 11px 14px;
        border-radius: 14px;
        border: 1px solid var(--ap-border);
        background: rgba(255,255,255,.055);
        color: var(--ap-text);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.2;
        white-space: normal;
        text-align: left;
    }

    .ap-nav__tools {
        margin-left: auto;
        min-width: 0;
    }
}

/* Mobile homepage/header: kompakt, pa rrëshqitje anësore. */
@media (max-width: 720px) {
    .ap-container {
        width: min(calc(100% - 20px), var(--ap-container));
    }

    .ap-header {
        padding: 8px 0 7px;
        border-bottom-color: var(--ap-border);
    }

    .ap-header__grid {
        grid-template-columns: 64px minmax(0, 1fr) 44px;
        gap: 6px;
    }

    .ap-date,
    .ap-time {
        font-size: 10px;
        line-height: 1.15;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ap-brand { min-width: 0; }
    .ap-logo-wrap { margin-bottom: 0; }
    .ap-logo-wrap img { max-height: 34px; }

    .ap-title {
        font-size: clamp(31px, 10vw, 43px);
        line-height: .92;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ap-tagline { display: none !important; }

    .ap-nav {
        margin-top: 7px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 7px;
        align-items: center;
    }

    .ap-nav > .ap-menu-toggle {
        grid-column: 1;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .ap-menu-toggle b { display: none !important; }

    .ap-nav__tools {
        grid-column: 2;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 7px;
        align-items: center;
        margin-left: 0;
    }

    .ap-search,
    .ap-search-form {
        min-width: 0;
        width: 100%;
    }

    .ap-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 6px;
    }

    .ap-search-field {
        width: 100% !important;
        min-width: 0;
        height: 44px;
        padding-inline: 13px;
        font-size: 14px;
    }

    .ap-search-submit,
    .ap-theme-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
    }

    .ap-nav__menu {
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        max-height: min(74vh, 560px);
        padding: 9px;
        border-radius: 18px;
    }

    .ap-mobile-category-strip {
        margin-top: 8px;
        gap: 7px;
        padding-bottom: 4px;
    }

    .ap-mobile-category-strip a {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 11px;
        line-height: 1.15;
    }

    .ap-hero {
        min-height: 250px;
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }

    .ap-slide__content {
        left: 14px;
        right: 14px;
        bottom: 18px;
        width: auto;
    }

    .ap-slide h1 {
        font-size: clamp(23px, 7.3vw, 32px);
        line-height: 1.06;
        letter-spacing: -.035em;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ap-card__link,
    .ap-related-card__link {
        grid-template-columns: 106px minmax(0, 1fr);
        min-height: 118px;
    }

    .ap-card__media,
    .ap-related-card__media {
        height: 100%;
        min-height: 118px;
    }

    .ap-card__body,
    .ap-related-card__body {
        padding: 10px 11px;
    }

    .ap-card h3,
    .ap-related-card h3 {
        font-size: 15px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Single article mobile: topbar fixed i qartë, drawer vetëm kolonë. */
.ap-single-topbar {
    isolation: isolate;
}

.ap-single-drawer {
    z-index: var(--ap-z-drawer);
}

@media (max-width: 720px) {
    body.admin-bar .ap-single-topbar { top: 46px; }

    .ap-single-main {
        padding-top: 62px;
    }

    .ap-single-topbar.ap-nav {
        width: min(calc(100% - 12px), 680px) !important;
        left: 50%;
        right: auto;
        top: 7px;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: auto 44px 44px;
        align-items: center;
        justify-content: stretch;
        gap: 6px;
        min-height: 50px;
        padding: 6px;
        border-radius: 18px;
    }

    .ap-single-topbar .ap-back-home {
        min-width: 0;
        min-height: 44px;
        height: 44px;
        padding: 0 12px;
        justify-content: center;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .ap-single-topbar .ap-single-brand,
    .ap-single-topbar .ap-single-category,
    .ap-single-topbar .ap-nav__tools,
    .ap-single-topbar .ap-search,
    .ap-single-topbar .ap-search-form {
        display: none !important;
    }

    .ap-single-topbar .ap-menu-toggle,
    .ap-single-topbar .ap-theme-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        margin: 0;
    }

    .ap-single-topbar .ap-theme-toggle {
        grid-column: 3;
    }

    .ap-single-drawer {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(72vh, 540px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 9px;
        border-radius: 18px;
    }

    .ap-single-drawer .ap-primary-menu {
        grid-template-columns: 1fr !important;
    }

    .ap-single-drawer .ap-primary-menu a {
        min-height: 48px;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 14px;
    }

    .ap-article--fullscreen,
    .ap-article--post {
        width: min(calc(100% - 16px), 1080px);
    }

    .ap-article__hero--compact {
        padding: 17px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .ap-article__intro h1 {
        font-size: clamp(25px, 8vw, 36px);
        line-height: 1.08;
        letter-spacing: -.035em;
    }

    .ap-content {
        padding: 18px;
        border-radius: 20px;
    }

    .ap-content p,
    .ap-content li {
        font-size: 16.5px;
        line-height: 1.74;
    }
}

@media (max-width: 430px) {
    .ap-header__grid {
        grid-template-columns: 50px minmax(0, 1fr) 38px;
    }

    .ap-date,
    .ap-time {
        font-size: 9px;
    }

    .ap-title {
        font-size: clamp(29px, 10.8vw, 38px);
    }

    .ap-nav {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .ap-search-field::placeholder {
        font-size: 0;
    }

    .ap-search-field::before {
        content: '';
    }

    .ap-card__link,
    .ap-related-card__link {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

/* =========================================================
   DoctorErio V3.22 — LIGHT EDITORIAL FINAL SYSTEM
   Light-only, wide hero, richer home panels, calmer reading UI.
   ========================================================= */
:root {
    --ap-bg: #f5f8fc;
    --ap-bg-soft: #edf4fa;
    --ap-surface: #ffffff;
    --ap-surface-strong: #ffffff;
    --ap-border: rgba(12, 32, 54, .13);
    --ap-text: #071527;
    --ap-muted: #53677d;
    --ap-muted-2: #24384f;
    --ap-blue: #0b6eb7;
    --ap-cyan: #007f93;
    --ap-gold: #a66f00;
    --ap-shadow: 0 14px 38px rgba(31, 53, 76, .10);
    --ap-container: 1320px;
}
html, body { overflow-x: hidden; }
body,
body.ap-light-mode {
    color: var(--ap-text);
    background:
        radial-gradient(circle at 12% -6%, rgba(0,127,147,.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 46%, #eef5fa 100%) !important;
}
body::before { display: none !important; }
.ap-container { width: min(calc(100% - 44px), var(--ap-container)); }
.ap-main { padding-top: 30px; }

/* Header: editorial, bright, stable. */
.ap-header,
body.ap-light-mode .ap-header {
    background: rgba(255,255,255,.96) !important;
    color: var(--ap-text) !important;
    border-bottom: 1px solid var(--ap-border) !important;
    box-shadow: 0 10px 28px rgba(26, 46, 67, .06);
    backdrop-filter: blur(14px);
}
.ap-header { padding: 14px 0 9px; }
.ap-header.is-compact { padding: 8px 0 7px; }
.ap-title { color: #071527 !important; text-shadow: none; }
.ap-tagline, .ap-date, .ap-time { color: #53677d !important; }
.ap-primary-menu a,
.ap-mobile-category-strip a,
.ap-search-field,
.ap-search-submit,
.ap-menu-toggle,
.ap-back-home,
.ap-single-category {
    color: #10243a !important;
    background: #f8fbfd !important;
    border-color: var(--ap-border) !important;
}
.ap-primary-menu a:hover,
.ap-primary-menu .current-menu-item > a,
.ap-primary-menu .current_page_item > a,
.ap-mobile-category-strip a:hover,
.ap-menu-toggle:hover,
.ap-search-submit:hover,
.ap-back-home:hover {
    background: #eaf6fb !important;
    color: #061426 !important;
    border-color: rgba(0,127,147,.24) !important;
}
.ap-nav__tools { margin-left: 8px; }
.ap-search-field { width: 210px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.ap-search-field::placeholder { color: #708399; }
.ap-theme-toggle { display: none !important; }

/* Homepage: hero full width, no side panel. */
.ap-lead-layout,
.ap-lead-layout.ap-lead-layout--wide {
    display: block !important;
    margin-top: 8px;
}
.ap-lead-category,
.ap-lead-category--desktop { display: none !important; }
.ap-hero {
    width: 100%;
    min-height: 0 !important;
    height: clamp(360px, 34vw, 510px);
    aspect-ratio: auto !important;
    border-radius: 26px;
    border: 1px solid rgba(12,32,54,.14);
    box-shadow: 0 20px 54px rgba(22, 43, 66, .14);
}
.ap-slide__image { object-fit: cover; }
.ap-image-fit-contain .ap-slide__image { object-fit: cover; background: #08101d; }
.ap-slide__overlay {
    background:
        linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.40) 46%, rgba(0,0,0,.10) 100%),
        linear-gradient(180deg, transparent 40%, rgba(0,0,0,.70) 100%);
}
.ap-slide__content { width: min(820px, calc(100% - 60px)); }
.ap-slide h1 {
    font-size: clamp(34px, 4.1vw, 62px);
    line-height: 1.02;
    max-width: 850px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ap-slide p {
    max-width: 720px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ap-slider-btn { background: rgba(0,0,0,.34); color: #fff; }
.ap-slider-dots button.is-active { background: #00a0b8; }

/* Panels: rich but not tiring. */
.ap-panel {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid var(--ap-border);
    border-radius: 26px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 14px 36px rgba(24, 47, 70, .08);
}
.ap-panel__header { border-bottom-color: rgba(12,32,54,.12); padding-bottom: 16px; }
.ap-panel__header h2 { color: #071527; font-size: clamp(25px, 2.4vw, 36px); }
.ap-panel__eyebrow, .ap-chip, .ap-card__badge, .ap-related-card__badge {
    color: #007f93;
    background: #eefaff;
    border-color: rgba(0,127,147,.20);
}
.ap-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.ap-card,
.ap-related-card,
.ap-content,
.ap-article-toc,
.ap-author-box,
.ap-related,
.ap-faq,
.ap-archive-head,
.ap-article__hero--compact,
.ap-subcategory-bar,
.ap-prefooter,
.ap-footer {
    background: #ffffff !important;
    color: var(--ap-text) !important;
    border-color: var(--ap-border) !important;
    box-shadow: 0 12px 34px rgba(31,53,76,.08);
}
.ap-card { border-radius: 18px; box-shadow: 0 10px 26px rgba(28,48,68,.08); }
.ap-card:hover { background: #ffffff !important; transform: translateY(-3px); border-color: rgba(0,127,147,.25) !important; }
.ap-card__media { aspect-ratio: 16 / 9; background: #eef4f8; }
.ap-image-fit-contain .ap-card__media img { object-fit: cover; }
.ap-card__body { padding: 13px; }
.ap-card h3,
.ap-related-card h3,
.ap-content h1,
.ap-content h2,
.ap-content h3,
.ap-article__intro h1,
.ap-archive-head h1,
.ap-related__head h2,
.ap-faq h2 { color: #061426 !important; }
.ap-card h3 { font-size: 16px; line-height: 1.24; }
.ap-card p { font-size: 13px; color: #53677d !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-card__meta, .ap-related-card__meta, .ap-article__meta { color: #62768c !important; }
.ap-card__read,
.ap-panel__more,
.ap-related__all { color: #9a6500 !important; }

/* Single article: calm reading, light-only. */
.ap-site-shell--single { background: linear-gradient(180deg, #ffffff 0%, #f7fafc 52%, #eef5fa 100%); }
.ap-single-topbar,
body.ap-light-mode .ap-single-topbar {
    background: rgba(255,255,255,.96) !important;
    color: #071527 !important;
    border: 1px solid var(--ap-border) !important;
    box-shadow: 0 10px 30px rgba(25,45,64,.10);
}
.ap-single-drawer,
body.ap-light-mode .ap-single-drawer,
.ap-nav__menu,
body.ap-light-mode .ap-nav__menu {
    background: #ffffff !important;
    color: #071527 !important;
    border-color: var(--ap-border) !important;
}
.ap-article__hero--compact { padding: clamp(22px, 4vw, 46px); }
.ap-article__intro h1 { font-size: clamp(32px, 5vw, 58px); }
.ap-content { font-size: 18px; line-height: 1.78; }
.ap-content p, .ap-content li { color: #24384f !important; }
.ap-content a { color: #006f9f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ap-reader-mode button { color: #10243a; background: #f8fbfd; border-color: var(--ap-border); }
.ap-reader-mode button.is-active { color: #061426; background: #eaf6fb; border-color: rgba(0,127,147,.25); }
.ap-reading-progress span { background: linear-gradient(90deg, #008da3, #f0b541); }

/* Footer: minimal and warm. */
.ap-footer { background: #f8fbfd !important; color: #24384f !important; }
.ap-footer a { color: #0b6eb7; }

/* Tablet and mobile: less clutter, proper drawer. */
@media (max-width: 1100px) {
    .ap-card-grid, .ap-card-grid--archive { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ap-hero { height: clamp(330px, 42vw, 440px); }
}

@media (max-width: 820px) {
    .ap-container { width: min(calc(100% - 24px), var(--ap-container)); }
    .ap-main { padding-top: 16px; }
    .ap-header { padding: 10px 0 8px; }
    .ap-header__grid { grid-template-columns: 1fr; gap: 4px; text-align: center; }
    .ap-date, .ap-time { display: none; }
    .ap-title { font-size: clamp(34px, 13vw, 48px); }
    .ap-tagline { font-size: 12px; margin-top: 3px; }
    .ap-nav { margin-top: 9px; align-items: stretch; flex-wrap: wrap; }
    .ap-menu-toggle { display: inline-flex; flex: 0 0 auto; }
    .ap-nav__tools { flex: 1 1 auto; margin-left: 0; justify-content: flex-end; }
    .ap-search { flex: 1 1 auto; }
    .ap-search-form { width: 100%; }
    .ap-search-field { width: 100%; min-width: 0; height: 44px; }
    .ap-search-submit { flex: 0 0 44px; }
    .ap-nav__menu {
        display: none;
        position: fixed;
        z-index: 2200;
        left: 12px;
        right: 12px;
        top: 112px;
        padding: 14px;
        border: 1px solid var(--ap-border);
        border-radius: 22px;
        box-shadow: 0 18px 48px rgba(20,40,60,.18);
        max-height: calc(100vh - 136px);
        overflow: auto;
    }
    .ap-nav.is-open .ap-nav__menu { display: block; }
    .ap-primary-menu { display: grid !important; grid-template-columns: 1fr; gap: 8px; justify-content: stretch; }
    .ap-primary-menu li, .ap-primary-menu a { width: 100%; }
    .ap-primary-menu a { justify-content: flex-start; min-height: 46px; padding: 12px 14px; border-radius: 14px; }
    .ap-mobile-category-strip { display: none !important; }
    .ap-hero { height: 315px; border-radius: 22px; }
    .ap-slide__content { left: 18px; bottom: 24px; width: calc(100% - 36px); }
    .ap-slide h1 { font-size: clamp(25px, 8vw, 36px); -webkit-line-clamp: 3; }
    .ap-slide p { font-size: 14px; -webkit-line-clamp: 2; }
    .ap-panel { margin-top: 22px; padding: 16px; border-radius: 22px; }
    .ap-panel__header { align-items: flex-start; }
    .ap-panel__header h2 { font-size: 25px; }
    .ap-card-grid, .ap-card-grid--archive { grid-template-columns: 1fr; gap: 12px; }
    .ap-card { border-radius: 18px; }
    .ap-card__link { grid-template-columns: 118px minmax(0,1fr); grid-template-rows: 1fr; min-height: 118px; }
    .ap-card__media { height: 100%; aspect-ratio: auto; }
    .ap-card__badge { left: 7px; bottom: 7px; max-width: calc(100% - 14px); font-size: 9px; }
    .ap-card__body { padding: 11px; }
    .ap-card h3 { margin-top: 4px; font-size: 15.5px; }
    .ap-card p { display: none; }
    .ap-card__read { margin-top: 8px; font-size: 13px; }
    .ap-slider-btn { width: 44px; height: 44px; font-size: 28px; }
}

@media (max-width: 640px) {
    .ap-single-topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        align-items: center;
        width: calc(100% - 20px);
        padding: 8px;
        top: 8px;
        border-radius: 18px;
    }
    .ap-single-brand { display: none !important; }
    .ap-single-category {
        justify-self: center;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .ap-single-topbar .ap-nav__menu {
        top: 66px;
        left: 10px;
        right: 10px;
    }
    .ap-article__hero--compact { padding: 20px; margin-top: 62px; }
    .ap-article__intro h1 { font-size: clamp(28px, 9vw, 38px); line-height: 1.06; }
    .ap-content { padding: 18px; font-size: 17px; line-height: 1.74; }
    .ap-related-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   DoctorErio V3.23 Editorial V2
   Hero i lexueshëm, nënkategori një rresht, infinite scroll.
   ========================================================= */

/* Hero: tituj gjithmonë të bardhë mbi imazh, edhe në light mode. */
.ap-hero .ap-slide__overlay {
    background:
        linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 39%, rgba(0,0,0,.23) 72%, rgba(0,0,0,.12) 100%),
        linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.14) 38%, rgba(0,0,0,.84) 100%) !important;
}
.ap-hero .ap-slide__content {
    bottom: clamp(24px, 3.4vw, 42px) !important;
    left: clamp(20px, 3.4vw, 44px) !important;
    width: min(780px, calc(100% - 70px)) !important;
    filter: none !important;
}
.ap-hero .ap-slide h1,
body.ap-light-mode .ap-hero .ap-slide h1,
body .ap-hero .ap-slide h1 {
    color: #ffffff !important;
    font-size: clamp(30px, 3.75vw, 52px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-shadow: 0 3px 18px rgba(0,0,0,.82), 0 1px 2px rgba(0,0,0,.9) !important;
    max-width: 760px !important;
    margin: 12px 0 10px !important;
    opacity: 1 !important;
}
.ap-hero .ap-slide p,
body.ap-light-mode .ap-hero .ap-slide p,
body .ap-hero .ap-slide p {
    color: rgba(255,255,255,.94) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.72) !important;
    font-size: 16px !important;
    line-height: 1.48 !important;
    max-width: 640px !important;
}
.ap-hero .ap-chip {
    background: rgba(255,255,255,.94) !important;
    color: #006c82 !important;
    border-color: rgba(255,255,255,.52) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.ap-hero .ap-readline {
    color: #f5c861 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

/* Homepage: hiq etiketën “Panel editorial” dhe bëj panelin më të qetë. */
.ap-panel__header > div { min-width: 0; }
.ap-panel__header h2 { margin-top: 0 !important; }
.ap-panel__eyebrow:empty { display: none !important; }

/* Archive: nënkategori në një rresht të gjatë horizontal, pa numra/counts. */
.ap-subcategory-bar,
body.ap-light-mode .ap-subcategory-bar {
    width: 100%;
    margin-top: 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}
.ap-subcategory-bar__label { display: none !important; }
.ap-subcategory-bar__scroller {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px !important;
    scrollbar-width: thin;
}
.ap-subcategory-bar__scroller::-webkit-scrollbar { height: 7px; }
.ap-subcategory-bar__scroller::-webkit-scrollbar-thumb { background: rgba(0,127,147,.24); border-radius: 999px; }
.ap-subcategory-bar__scroller a,
body.ap-light-mode .ap-subcategory-bar__scroller a {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(12,32,54,.13) !important;
    background: #ffffff !important;
    color: #10243a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    scroll-snap-align: start;
    box-shadow: 0 8px 22px rgba(31,53,76,.07);
}
.ap-subcategory-bar__scroller a.is-active,
.ap-subcategory-bar__scroller a:hover,
body.ap-light-mode .ap-subcategory-bar__scroller a.is-active,
body.ap-light-mode .ap-subcategory-bar__scroller a:hover {
    background: #eaf8fc !important;
    color: #006f85 !important;
    border-color: rgba(0,127,147,.28) !important;
}

/* Archive: infinite scroll në vend të pagination me numra. */
.ap-pagination { display: none !important; }
.ap-infinite-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    margin: 26px 0 8px;
    text-align: center;
}
.ap-infinite-next,
.ap-infinite-loader,
.ap-infinite-end {
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(12,32,54,.13);
    background: #ffffff;
    color: #10243a;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(31,53,76,.08);
}
.ap-infinite-next { display: inline-flex; }
.ap-infinite-loader,
.ap-infinite-end { display: none; }
.ap-infinite-nav.is-loading .ap-infinite-next { opacity: .45; pointer-events: none; }
.ap-infinite-nav.has-error .ap-infinite-next { color: #9a4500; border-color: rgba(154,69,0,.24); }
.ap-infinite-nav.is-complete { min-height: 54px; }
.ap-card--infinite { animation: apFadeUp .28s ease both; }
@keyframes apFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Archive/headline spacing. */
.ap-archive-head {
    padding: clamp(20px, 3vw, 30px) !important;
    border-radius: 24px !important;
}
.ap-archive-head h1 {
    margin-top: 6px !important;
    font-size: clamp(32px, 4vw, 52px) !important;
}
.ap-card-grid--archive { margin-top: 22px; }

/* Search më praktik dhe jo dominues. */
.ap-search-field { min-width: 0; }
@media (min-width: 981px) {
    .ap-search-field { width: 270px !important; }
    .ap-hero { height: clamp(380px, 31vw, 470px) !important; }
    .ap-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .ap-card-grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 980px) {
    .ap-card-grid, .ap-card-grid--archive { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 720px) {
    .ap-hero {
        height: 310px !important;
        min-height: 310px !important;
        border-radius: 20px !important;
    }
    .ap-hero .ap-slide__content {
        left: 16px !important;
        right: 16px !important;
        bottom: 22px !important;
        width: auto !important;
    }
    .ap-hero .ap-slide h1,
    body.ap-light-mode .ap-hero .ap-slide h1 {
        font-size: clamp(24px, 7.4vw, 34px) !important;
        line-height: 1.06 !important;
        -webkit-line-clamp: 3 !important;
    }
    .ap-hero .ap-slide p,
    body.ap-light-mode .ap-hero .ap-slide p {
        font-size: 14px !important;
        -webkit-line-clamp: 2 !important;
    }
    .ap-slider-btn { width: 38px !important; height: 38px !important; }
    .ap-card-grid, .ap-card-grid--archive { grid-template-columns: 1fr !important; gap: 12px !important; }
    .ap-subcategory-bar__scroller { padding-bottom: 8px !important; }
    .ap-subcategory-bar__scroller a { min-height: 38px; padding: 8px 12px !important; font-size: 12px !important; }
    .ap-archive-head { padding: 18px !important; }
    .ap-archive-head h1 { font-size: clamp(28px, 9vw, 40px) !important; }
    .ap-search-field::placeholder { font-size: 13px; }
}

/* =========================================================
   DoctorErio V3.24 Final Mobile Header + Sticky Reading Bar
   Vetëm patch estetik/mobile: data/ora/titulli + Kthehu/Burger fixed.
   ========================================================= */
@media (max-width: 820px) {
    .ap-header {
        padding: 8px 0 10px !important;
        background: rgba(255,255,255,.96) !important;
        border-bottom: 1px solid rgba(9,25,43,.10) !important;
        box-shadow: 0 8px 26px rgba(30,50,70,.06) !important;
    }

    .ap-header__grid {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) auto !important;
        grid-template-areas:
            "date time"
            "brand brand" !important;
        align-items: center !important;
        row-gap: 4px !important;
        column-gap: 8px !important;
        text-align: center !important;
        width: min(calc(100% - 24px), var(--ap-container)) !important;
    }

    .ap-date,
    .ap-time {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 24px !important;
        padding: 3px 8px !important;
        border: 1px solid rgba(9,25,43,.08) !important;
        border-radius: 999px !important;
        background: rgba(248,251,253,.86) !important;
        color: #5b6f86 !important;
        font-size: 10.5px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: .045em !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-shadow: 0 5px 14px rgba(31,53,76,.045) !important;
    }

    .ap-date {
        grid-area: date !important;
        justify-self: start !important;
        max-width: 64vw !important;
    }

    .ap-time {
        grid-area: time !important;
        justify-self: end !important;
        min-width: 58px !important;
        justify-content: center !important;
    }

    .ap-brand {
        grid-area: brand !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding-top: 0 !important;
    }

    .ap-title,
    body.ap-light-mode .ap-title {
        font-family: "Old English Text MT", "UnifrakturCook", "Cloister Black", "Blackletter", Georgia, serif !important;
        font-size: clamp(41px, 12vw, 56px) !important;
        line-height: .86 !important;
        letter-spacing: .002em !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        color: #071527 !important;
        text-shadow: 0 1px 0 #ffffff, 0 8px 24px rgba(22,41,62,.10) !important;
        transform: translateY(-1px) !important;
    }

    .ap-tagline { display: none !important; }

    .ap-nav.ap-container {
        margin-top: 8px !important;
        width: min(calc(100% - 24px), var(--ap-container)) !important;
        display: grid !important;
        grid-template-columns: 54px minmax(0,1fr) !important;
        gap: 9px !important;
        align-items: center !important;
    }

    .ap-nav > .ap-menu-toggle {
        grid-column: 1 !important;
        width: 54px !important;
        height: 54px !important;
        border-radius: 999px !important;
        justify-content: center !important;
        background: #f8fbfd !important;
        border-color: rgba(9,25,43,.10) !important;
        box-shadow: 0 8px 20px rgba(31,53,76,.055) !important;
    }

    .ap-nav > .ap-nav__tools {
        grid-column: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        display: flex !important;
    }

    .ap-search,
    .ap-search-form { width: 100% !important; }

    .ap-search-field {
        height: 54px !important;
        border-radius: 999px !important;
        background: #f8fbfd !important;
        border-color: rgba(9,25,43,.10) !important;
        color: #071527 !important;
    }

    .ap-search-submit {
        width: 54px !important;
        height: 54px !important;
        border-radius: 999px !important;
    }

    body.single .ap-single-main,
    body.single-post .ap-single-main {
        padding-top: 74px !important;
    }

    body.single .ap-single-topbar.ap-nav,
    body.single-post .ap-single-topbar.ap-nav {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: max(8px, env(safe-area-inset-top)) !important;
        transform: translateX(-50%) !important;
        z-index: 3000 !important;
        width: min(calc(100% - 18px), 680px) !important;
        min-height: 54px !important;
        margin: 0 !important;
        padding: 6px !important;
        display: grid !important;
        grid-template-columns: auto 50px !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        border-radius: 20px !important;
        background: rgba(255,255,255,.97) !important;
        border: 1px solid rgba(9,25,43,.12) !important;
        box-shadow: 0 12px 34px rgba(26,47,70,.14) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
    }

    body.admin-bar.single .ap-single-topbar.ap-nav,
    body.admin-bar.single-post .ap-single-topbar.ap-nav {
        top: 46px !important;
    }

    .ap-single-topbar .ap-back-home {
        grid-column: 1 !important;
        justify-self: start !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 15px !important;
        border-radius: 999px !important;
        background: #f8fbfd !important;
        color: #071527 !important;
        border: 1px solid rgba(9,25,43,.10) !important;
        font-size: 14px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        box-shadow: 0 6px 16px rgba(31,53,76,.055) !important;
        white-space: nowrap !important;
    }

    .ap-single-topbar .ap-menu-toggle {
        grid-column: 2 !important;
        justify-self: end !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 999px !important;
        background: #f8fbfd !important;
        color: #071527 !important;
        border: 1px solid rgba(9,25,43,.10) !important;
        box-shadow: 0 6px 16px rgba(31,53,76,.055) !important;
    }

    .ap-single-topbar .ap-menu-toggle b,
    .ap-single-topbar .ap-single-brand,
    .ap-single-topbar .ap-single-category,
    .ap-single-topbar .ap-theme-toggle,
    .ap-single-topbar .ap-nav__tools,
    .ap-single-topbar .ap-search,
    .ap-single-topbar .ap-search-form {
        display: none !important;
    }

    .ap-single-topbar .ap-single-drawer,
    .ap-single-topbar .ap-nav__menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: min(72vh, 540px) !important;
        overflow-y: auto !important;
        border-radius: 20px !important;
        padding: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(9,25,43,.12) !important;
        box-shadow: 0 18px 50px rgba(26,47,70,.18) !important;
    }

    .ap-single-topbar.is-open .ap-single-drawer,
    .ap-single-topbar.is-open .ap-nav__menu {
        display: block !important;
    }

    .ap-single-topbar .ap-primary-menu {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }

    .ap-single-topbar .ap-primary-menu a {
        min-height: 44px !important;
        border-radius: 14px !important;
        justify-content: flex-start !important;
        background: #f8fbfd !important;
        color: #071527 !important;
    }

    .ap-article__hero--compact {
        margin-top: 0 !important;
    }

    .ap-back-to-top {
        right: 14px !important;
        bottom: 18px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
    }
}

@media (max-width: 390px) {
    .ap-header__grid {
        grid-template-columns: minmax(0,1fr) auto !important;
        grid-template-areas:
            "date time"
            "brand brand" !important;
    }
    .ap-date,
    .ap-time { display: inline-flex !important; font-size: 9.5px !important; padding-inline: 7px !important; }
    .ap-title,
    body.ap-light-mode .ap-title { font-size: clamp(36px, 11.4vw, 46px) !important; }
    .ap-search-field::placeholder { font-size: 12.5px !important; }
}


/* =========================================================
   DoctorErio V3.25 — Mobile lighter homepage + stronger article interlink
   ========================================================= */
@media (max-width: 820px) {
    body.home .ap-panel {
        margin-top: 18px !important;
    }

    body.home .ap-panel__header {
        align-items: center !important;
        gap: 10px !important;
    }

    body.home .ap-panel__header h2 {
        font-size: clamp(26px, 8vw, 38px) !important;
        line-height: 1.02 !important;
    }

    body.home .ap-panel__more {
        white-space: nowrap !important;
        font-size: 14px !important;
    }

    body.single .ap-related,
    body.single-post .ap-related {
        margin-top: 18px !important;
        padding: 16px !important;
        border-radius: 24px !important;
    }

    body.single .ap-related__head,
    body.single-post .ap-related__head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    body.single .ap-related__head h2,
    body.single-post .ap-related__head h2 {
        font-size: clamp(24px, 7.4vw, 32px) !important;
        line-height: 1.08 !important;
        margin: 2px 0 0 !important;
    }

    body.single .ap-related__subtitle,
    body.single-post .ap-related__subtitle {
        display: none !important;
    }

    body.single .ap-related-grid,
    body.single-post .ap-related-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    body.single .ap-related-card__link,
    body.single-post .ap-related-card__link {
        grid-template-columns: 108px minmax(0, 1fr) !important;
        min-height: 106px !important;
    }

    body.single .ap-related-card h3,
    body.single-post .ap-related-card h3 {
        font-size: 15px !important;
        line-height: 1.22 !important;
        margin: 5px 0 0 !important;
    }

    body.single .ap-related-card p,
    body.single-post .ap-related-card p {
        display: none !important;
    }
}
