/* Shared layout for every Prompt Engineering (and future tutorial-track)
   article page: top progress bar, sticky left chapter sidebar, main
   article column, and a right internal-linking rail. Loaded after
   assets/css/styles.css and reuses its design tokens (--color-*, --space-*). */

:root {
    /* Darker, higher-contrast overrides used only inside the tutorial
       layout - the site-wide --color-text / --color-muted stay untouched
       so this never affects other pages. */
    --pe-text: #0b1220;
    --pe-text-soft: #1f2a3d;
    --pe-text-secondary: #3f4b62;
}

/* Adds a small 6px visual gap below the fixed nav bar on Prompt Engineering
   pages only - styles.css reserves exactly the header's own height
   (73px/65px) with zero gap; these add 6px on top of that, scoped to
   body.pe-page so the rest of the site's header clearance is untouched. */
body.pe-page {
    padding-top: 79px;
}

@media (max-width: 760px) {
    body.pe-page {
        padding-top: 71px;
    }
}

/* ---------- Fancy thin scrollbars for every scroll panel ---------- */
.pe-sidebar-scroll,
.pe-rail-col,
.pe-rail-card--toc .pe-toc-list {
    scrollbar-width: thin;
    scrollbar-color: #b9c4d6 transparent;
}

.pe-sidebar-scroll::-webkit-scrollbar,
.pe-rail-col::-webkit-scrollbar,
.pe-rail-card--toc .pe-toc-list::-webkit-scrollbar {
    width: 6px;
}

.pe-sidebar-scroll::-webkit-scrollbar-track,
.pe-rail-col::-webkit-scrollbar-track,
.pe-rail-card--toc .pe-toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.pe-sidebar-scroll::-webkit-scrollbar-thumb,
.pe-rail-col::-webkit-scrollbar-thumb,
.pe-rail-card--toc .pe-toc-list::-webkit-scrollbar-thumb {
    background-color: #b9c4d6;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.pe-sidebar-scroll::-webkit-scrollbar-thumb:hover,
.pe-rail-col::-webkit-scrollbar-thumb:hover,
.pe-rail-card--toc .pe-toc-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary);
}

.pe-code-body {
    scrollbar-width: thin;
    scrollbar-color: #38466b transparent;
}

.pe-code-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.pe-code-body::-webkit-scrollbar-track {
    background: transparent;
}

.pe-code-body::-webkit-scrollbar-thumb {
    background-color: #38466b;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.pe-code-body::-webkit-scrollbar-thumb:hover {
    background-color: #5b76ad;
}

/* ---------- Top progress bar ---------- */
.pe-progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    height: 3px;
    background: transparent;
}

.pe-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 80ms linear;
}

/* ---------- Page shell / breadcrumb strip ---------- */
.pe-shell {
    width: min(100% - 24px, 1680px);
    margin-inline: auto;
}

.pe-topbar {
    padding: var(--space-2) 0;
}

/* Only the site nav bar should read as a "bar" - this strip is now just an
   invisible positioning wrapper for the Solve MCQ / Guess the Answer
   buttons, at the same padding/offset as before, without its own
   background or border-bottom drawing a second bar beneath the nav. */
body.pe-page .pe-topbar {
    border-bottom: none;
    background: transparent;
}

.pe-topbar .breadcrumb ol {
    margin: 0;
    flex-wrap: wrap;
}

/* ---- Remove the "Home / Prompt Engineering / Topic" breadcrumb trail too
   - redundant now that the article's own H1, module/chapter badge, and
   sidebar already show where the page sits. On pages with the Solve MCQ /
   Guess the Answer buttons, only the breadcrumb goes and the bar stays
   (right-aligning the remaining buttons); on plain article pages the
   breadcrumb was the bar's only content, so the whole now-empty bar is
   removed instead of leaving a blank strip. ---- */
body.pe-page .pe-topbar .breadcrumb {
    display: none;
}

body.pe-page .pe-topbar-row:has(.pe-topbar-actions) {
    justify-content: flex-end;
}

body.pe-page .pe-topbar:not(:has(.pe-topbar-actions)) {
    display: none;
}

/* ---------- 3-column layout ---------- */
.pe-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr) 272px;
    column-gap: 4px;
    row-gap: 4px;
    align-items: start;
    /* No top padding - body.pe-page's own padding-top (styles.css override
       in this file) is the only thing reserved above this grid, so it
       alone controls the exact gap below the nav bar. */
    padding: 0 0 var(--space-8);
}

/* ---------- Sidebar (left) ---------- */
.pe-sidebar-col {
    position: sticky;
    /* Matches body.pe-page's own padding-top (nav-bar height + 6px gap) so
       the sidebar never sticks further down than where it naturally sits
       at the top of the page. */
    top: 79px;
    max-height: calc(100vh - 95px);
    display: flex;
    flex-direction: column;
}

.pe-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.pe-sidebar-head {
    padding: var(--space-2) var(--space-2) var(--space-1);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.pe-sidebar-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
}

.pe-sidebar-count {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    color: var(--color-muted);
}

.pe-search-wrap {
    padding: var(--space-1) var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.pe-search-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.pe-search-input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.pe-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-1) 6px var(--space-2);
    scrollbar-width: thin;
}


.pe-module {
    margin: var(--space-1) 4px;
}

.pe-module-title {
    margin: 10px 6px 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.pe-chapter {
    border-radius: 6px;
}

.pe-chapter + .pe-chapter {
    margin-top: 2px;
}

.pe-chapter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pe-text);
    list-style: none;
    cursor: pointer;
    border-radius: 6px;
}

.pe-chapter-title::-webkit-details-marker {
    display: none;
}

.pe-chapter-title:hover {
    background: var(--color-surface-muted);
}

.pe-chapter-title .pe-chevron {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
    color: var(--color-muted);
}

.pe-chapter[open] > .pe-chapter-title .pe-chevron {
    transform: rotate(90deg);
}

.pe-chapter.has-active > .pe-chapter-title {
    color: var(--color-primary-dark);
}

.pe-topic-list {
    margin: 2px 0 6px;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--color-border);
    margin-left: 16px;
}

.pe-topic-link,
.pe-topic-upcoming {
    display: block;
    padding: 6px 10px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--pe-text-secondary);
}

.pe-topic-link {
    color: var(--pe-text-soft);
    font-weight: 500;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.pe-topic-link:hover,
.pe-topic-link:focus-visible {
    color: var(--color-primary-dark);
    background: var(--color-surface-muted);
}

.pe-topic-link.is-active {
    color: var(--color-primary-dark);
    font-weight: 800;
    background: rgba(15, 118, 110, 0.16);
    border-left-color: var(--color-primary);
    border-left-width: 3px;
}

.pe-topic-upcoming {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--color-muted);
    opacity: 0.72;
    cursor: default;
}

.pe-topic-upcoming em {
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.pe-no-results {
    display: none;
    padding: var(--space-2);
    font-size: 0.82rem;
    color: var(--color-muted);
    text-align: center;
}

/* ---------- Mobile sidebar/rail toggle bar ---------- */
.pe-mobile-bar {
    display: none;
    gap: 10px;
}

.pe-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.pe-mobile-toggle[aria-expanded="true"] {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

.pe-mobile-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pe-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.5);
}

/* ---------- Article (center) ---------- */
.pe-article-col {
    min-width: 0;
}

.pe-article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-4) var(--space-5);
}

.pe-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-2);
}

.pe-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    background: var(--color-surface-muted);
    border-radius: 999px;
}

.pe-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pe-text-secondary);
}

.pe-article-title {
    margin: 0 0 var(--space-2);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    line-height: 1.18;
}

.pe-article-lede {
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--pe-text-soft);
    margin-bottom: var(--space-3);
}

.pe-article-body h2 {
    margin: var(--space-5) 0 var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    font-size: 1.4rem;
    scroll-margin-top: 96px;
}

.pe-article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pe-article-body h3 {
    margin: var(--space-3) 0 10px;
    font-size: 1.14rem;
    scroll-margin-top: 96px;
}

.pe-article-body h4 {
    margin: var(--space-2) 0 8px;
    font-size: 1.02rem;
    scroll-margin-top: 96px;
}

.pe-article-body blockquote {
    margin: 0 0 18px;
    padding: 12px 18px;
    background: var(--color-surface-muted);
    border-left: 4px solid var(--color-secondary);
    border-radius: 6px;
    font-style: italic;
}

.pe-article-body blockquote p {
    margin: 0;
    color: var(--pe-text-soft);
}

.pe-article-body p {
    margin: 0 0 14px;
    color: var(--pe-text);
    line-height: 1.75;
}

.pe-article-body ul,
.pe-article-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--pe-text);
    line-height: 1.7;
}

.pe-article-body li {
    margin-bottom: 6px;
}

.pe-article-body hr {
    margin: var(--space-4) 0;
    border: none;
    border-top: 1px solid var(--color-border);
}

.pe-task-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    list-style: none;
    margin-left: -22px;
}

.pe-task-box {
    flex: 0 0 auto;
    color: var(--pe-text-secondary);
    line-height: 1.7;
}

.pe-article-body strong {
    color: var(--pe-text);
    font-weight: 800;
}

.pe-article-body h2,
.pe-article-body h3,
.pe-article-body h4 {
    color: var(--pe-text);
}

.pe-callout {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    margin: 0 0 18px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--pe-text);
}

.pe-callout svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

/* ---------- Code snippet requirements ---------- */
.pe-code-block {
    margin: 0 0 18px;
    background: #0d1220;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.pe-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #131a2c;
    border-bottom: 1px solid #1e293b;
}

.pe-code-lang {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
}

.pe-code-file {
    margin-left: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.pe-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2a3752;
    border-radius: 6px;
    cursor: pointer;
    transition: background 140ms ease;
}

.pe-copy-btn:hover,
.pe-copy-btn:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.pe-copy-btn.is-copied {
    color: #052e1a;
    background: #4ade80;
    border-color: #4ade80;
}

.pe-copy-btn.is-copied:hover {
    background: #4ade80;
}

.pe-copy-btn.is-error {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.pe-copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.pe-code-body {
    display: flex;
    overflow-x: auto;
    max-height: 480px;
    overflow-y: auto;
}

.pe-code-lines {
    flex: 0 0 auto;
    padding: 12px 10px;
    color: #7487ad;
    text-align: right;
    -webkit-user-select: none;
    user-select: none;
    border-right: 1px solid #1e293b;
}

.pe-code-lines span {
    display: block;
    font: 13px/1.6 "Fira Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

.pe-code-pre {
    flex: 1 1 auto;
    margin: 0;
    padding: 12px 16px;
}

.pe-code-pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    font: 13px/1.6 "Fira Code", "JetBrains Mono", Consolas, "Courier New", monospace;
    color: #e2e8f0;
    white-space: pre;
    tab-size: 4;
}

.pe-tok-kw { color: #c084fc; }
.pe-tok-str { color: #86efac; }
.pe-tok-com { color: #64748b; font-style: italic; }
.pe-tok-num { color: #fca5a5; }
.pe-tok-fn { color: #93c5fd; }
.pe-tok-ann { color: #fbbf24; }

.pe-output-block {
    margin: -8px 0 18px;
    padding: 12px 16px;
    background: #0b1320;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font: 13px/1.6 "Fira Code", "JetBrains Mono", Consolas, "Courier New", monospace;
    color: #a5b4fc;
    white-space: pre-wrap;
    word-break: break-word;
}

.pe-output-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

/* ---------- Table ---------- */
.pe-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.pe-article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.pe-article-body th,
.pe-article-body td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.pe-article-body thead th {
    background: var(--color-surface-muted);
    font-weight: 800;
}

.pe-article-body tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- FAQ ---------- */
.pe-faq details {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.pe-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    color: var(--pe-text);
    cursor: pointer;
    list-style: none;
}

.pe-faq summary::-webkit-details-marker {
    display: none;
}

.pe-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary-dark);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: transform 160ms ease;
}

.pe-faq details[open] summary::after {
    content: '\2212';
    transform: rotate(180deg);
}

.pe-faq p {
    margin: 10px 0 0;
    color: var(--pe-text-secondary);
}

/* ---------- Prev / next ---------- */
.pe-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
}

.pe-prevnext-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.pe-prevnext-link:hover,
.pe-prevnext-link:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
}

.pe-prevnext-link.is-disabled {
    color: var(--color-muted);
    pointer-events: none;
    opacity: 0.55;
}

.pe-prevnext-dir {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.pe-prevnext-dir svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.pe-prevnext-next {
    text-align: right;
}

.pe-prevnext-next .pe-prevnext-dir {
    justify-content: flex-end;
}

.pe-prevnext-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
}

.pe-prevnext-top {
    margin-top: 0;
    margin-bottom: 4px;
}

/* ---------- Right rail ---------- */
.pe-rail-col {
    position: sticky;
    top: 79px;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
}

.pe-rail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-2) var(--space-2) var(--space-2);
}

.pe-rail-title {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.pe-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--color-border);
}

.pe-rail-card--toc .pe-toc-list {
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
}


.pe-toc-list a {
    display: block;
    padding: 5px 10px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--pe-text-secondary);
    line-height: 1.4;
}

.pe-toc-list a:hover {
    color: var(--color-primary-dark);
}

.pe-toc-list a.is-active {
    color: var(--color-primary-dark);
    font-weight: 700;
    background: rgba(15, 118, 110, 0.16);
    border-left-color: var(--color-primary);
    border-left-width: 3px;
    border-radius: 0 6px 6px 0;
}

.pe-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pe-link-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    transition: background 140ms ease;
}

.pe-link-item:hover,
.pe-link-item:focus-visible {
    background: var(--color-surface-muted);
}

.pe-link-item svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-primary);
}

.pe-link-item-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--pe-text);
}

.pe-link-item-text span {
    font-size: 0.76rem;
    color: var(--pe-text-secondary);
}

.pe-rail-note {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--pe-text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pe-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .pe-rail-col {
        grid-column: 1 / -1;
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        overflow: visible;
    }
}

@media (max-width: 960px) {
    .pe-layout {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .pe-mobile-bar {
        display: flex;
        position: sticky;
        top: 72px;
        z-index: 40;
        margin: 0 0 var(--space-2);
        padding: 8px 0;
        background: var(--color-background);
    }

    .pe-sidebar-col,
    .pe-rail-col {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 95;
        width: min(86vw, 360px);
        max-height: none;
        padding: var(--space-2);
        background: var(--color-background);
        transition: transform 220ms ease;
        overflow-y: auto;
    }

    .pe-sidebar-col {
        left: 0;
        transform: translateX(-100%);
    }

    .pe-rail-col {
        right: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
    }

    body.pe-sidebar-open .pe-sidebar-col {
        transform: translateX(0);
    }

    body.pe-rail-open .pe-rail-col {
        transform: translateX(0);
    }

    body.pe-sidebar-open .pe-backdrop,
    body.pe-rail-open .pe-backdrop {
        display: block;
    }

    .pe-sidebar {
        height: 100%;
    }
}

@media (max-width: 760px) {
    .pe-mobile-bar {
        top: 64px;
    }
}

@media (max-width: 640px) {
    .pe-article-card {
        padding: var(--space-3) var(--space-2) var(--space-4);
    }

    .pe-prevnext {
        grid-template-columns: 1fr;
    }

    .pe-prevnext-next {
        text-align: left;
    }

    .pe-prevnext-next .pe-prevnext-dir {
        justify-content: flex-start;
    }
}
