/**
 * Portfolio Executive — components.css
 * Static component styles: page templates, prose, case study,
 * article, timeline, archive, cards, pagination, widgets, forms.
 */

/* Design tokens for the pe-* components, mapped to the TechLeader
   design system (these were previously undefined, leaving secondary
   templates unstyled). */
:root {
    --pe-bg:              #ffffff;
    --pe-surface:         #F8FAFC;
    --pe-border:          #E2E8F0;
    --pe-text:            #333333;
    --pe-text-secondary:  #3A3A3A;
    --pe-text-tertiary:   #6B7280;
    --pe-accent:          #C5A059;
    --pe-font-display:    'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
    --pe-font-heading:    'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
    --pe-font-mono:       'JetBrains Mono', 'Fira Code', monospace;
    --pe-font-sans:       'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
    --pe-header-h:        72px;
    --pe-radius-sm:       6px;
    --pe-radius:          10px;
    --pe-radius-lg:       16px;
    --pe-transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pe-transition-fast: 0.15s ease;
    --space-sm:           0.5rem;
    --space-md:           1rem;
    --space-lg:           1.5rem;
    --space-xl:           2rem;
    --space-2xl:          3rem;
    --space-3xl:          5rem;
}

/* ═══════════════════════════════════════════════════════
   PAGE TEMPLATES
════════════════════════════════════════════════════════ */

.pe-full-canvas,
.pe-blank-canvas {
    width: 100%;
}

.pe-page-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--pe-border);
}

.pe-page-hero__inner {
    max-width: 760px;
}

.pe-page-hero__title {
    font-family: var(--pe-font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--pe-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.pe-page-hero__lead {
    font-size: 1.2rem;
    color: var(--pe-text-secondary);
    line-height: 1.7;
}

.pe-page__body {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.pe-page__content {
    max-width: 760px;
}

/* ═══════════════════════════════════════════════════════
   PROSE / RICH TEXT
════════════════════════════════════════════════════════ */

.pe-prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--pe-text);
}

.pe-prose h1,
.pe-prose h2,
.pe-prose h3,
.pe-prose h4 {
    font-family: var(--pe-font-heading);
    font-weight: 600;
    color: var(--pe-text);
    margin: 2em 0 0.6em;
    letter-spacing: -0.01em;
}

.pe-prose h2 { font-size: 1.6rem; }
.pe-prose h3 { font-size: 1.25rem; }
.pe-prose h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; }

.pe-prose p { margin-bottom: 1.4em; }

.pe-prose a {
    color: var(--pe-accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--pe-transition-fast);
}

.pe-prose a:hover {
    text-decoration-color: var(--pe-accent);
}

.pe-prose blockquote {
    border-left: 3px solid var(--pe-accent);
    margin: 2em 0;
    padding: 1em 1.5em;
    background: var(--pe-surface);
    border-radius: 0 var(--pe-radius-sm) var(--pe-radius-sm) 0;
    font-style: italic;
    color: var(--pe-text-secondary);
    font-size: 1.1rem;
}

.pe-prose ul,
.pe-prose ol {
    margin: 1em 0 1.4em 1.5em;
}

.pe-prose li { margin-bottom: 0.5em; }

.pe-prose code {
    font-family: var(--pe-font-mono);
    font-size: 0.88em;
    background: var(--pe-surface);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--pe-accent);
    border: 1px solid var(--pe-border);
}

.pe-prose pre {
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.pe-prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--pe-text);
}

.pe-prose figure {
    margin: 2em 0;
}

.pe-prose figure img {
    width: 100%;
    border-radius: var(--pe-radius);
    border: 1px solid var(--pe-border);
}

.pe-prose figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--pe-text-tertiary);
    margin-top: 0.5rem;
    font-style: italic;
}

.pe-prose hr {
    border: none;
    border-top: 1px solid var(--pe-border);
    margin: 2.5em 0;
}

/* ═══════════════════════════════════════════════════════
   CASE STUDY (single-portfolio.php)
════════════════════════════════════════════════════════ */

.pe-case-hero {
    position: relative;
    padding: var(--space-3xl) 0 0;
    overflow: hidden;
}

.pe-case-hero__inner {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-3xl);
}

.pe-case-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-family: var(--pe-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pe-text-tertiary);
    margin-bottom: var(--space-lg);
}

.pe-case-hero__breadcrumb a {
    color: var(--pe-text-secondary);
    transition: color var(--pe-transition-fast);
}

.pe-case-hero__breadcrumb a:hover {
    color: var(--pe-accent);
}

.pe-case-hero__cats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.pe-case-hero__title {
    font-family: var(--pe-font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--pe-text);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.pe-case-hero__impact {
    font-size: 1.2rem;
    color: var(--pe-accent);
    font-family: var(--pe-font-heading);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.pe-case-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--pe-border);
    border-bottom: 1px solid var(--pe-border);
}

.pe-case-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pe-case-hero__meta-item dt {
    font-family: var(--pe-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pe-text-tertiary);
}

.pe-case-hero__meta-item dd {
    font-size: 0.95rem;
    color: var(--pe-text);
    font-weight: 500;
}

.pe-case-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.pe-case-hero__cover {
    position: relative;
    margin-top: var(--space-2xl);
    max-height: 60vh;
    overflow: hidden;
    border-radius: var(--pe-radius-lg) var(--pe-radius-lg) 0 0;
}

.pe-case-hero__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe-case-hero__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--pe-bg) 0%, transparent 40%);
}

/* Body layout */
.pe-case-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-3xl);
    align-items: start;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

@media (max-width: 860px) {
    .pe-case-body {
        grid-template-columns: 1fr;
    }
    .pe-case-sidebar {
        order: -1;
    }
}

.pe-case-sidebar {
    position: sticky;
    top: calc(var(--pe-header-h, 72px) + var(--space-lg));
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.pe-case-sidebar__block {
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: var(--space-lg);
}

.pe-case-sidebar__heading {
    font-family: var(--pe-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pe-text-tertiary);
    margin-bottom: var(--space-md);
}

.pe-case-sidebar__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pe-case-sidebar__outcome {
    border-color: var(--pe-accent);
    border-left-width: 3px;
}

.pe-case-sidebar__outcome-text {
    font-size: 0.95rem;
    color: var(--pe-text);
    line-height: 1.6;
}

/* Outcome band */
.pe-case-outcome-band {
    background: var(--pe-surface);
    border-top: 1px solid var(--pe-border);
    border-bottom: 1px solid var(--pe-border);
    padding: var(--space-xl) 0;
    margin: var(--space-2xl) 0;
}

.pe-case-outcome-band__inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.pe-case-outcome-band__label {
    font-family: var(--pe-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pe-accent);
    white-space: nowrap;
}

.pe-case-outcome-band__text {
    font-size: 1.15rem;
    color: var(--pe-text);
    font-weight: 500;
    line-height: 1.5;
}

/* Related work */
.pe-case-related {
    padding-bottom: var(--space-3xl);
}

/* ═══════════════════════════════════════════════════════
   ARTICLE (single.php)
════════════════════════════════════════════════════════ */

.pe-container--narrow {
    max-width: 720px;
}

.pe-article-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.pe-article-hero__cats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.pe-article-hero__title {
    font-family: var(--pe-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.pe-article-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pe-text-secondary);
    font-size: 0.88rem;
    margin-bottom: var(--space-xl);
}

.pe-article-hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pe-border);
}

.pe-article-hero__sep {
    color: var(--pe-border);
}

.pe-article-hero__figure {
    margin: 0;
}

.pe-article-hero__image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--pe-radius-lg);
    border: 1px solid var(--pe-border);
    display: block;
}

.pe-article-hero__caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--pe-text-tertiary);
    margin-top: var(--space-sm);
    font-style: italic;
}

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

.pe-article__tags {
    border-top: 1px solid var(--pe-border);
    padding-top: var(--space-lg);
    margin-top: var(--space-2xl);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pe-article__tags a {
    font-size: 0.82rem;
    color: var(--pe-text-secondary);
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: border-color var(--pe-transition-fast), color var(--pe-transition-fast);
}

.pe-article__tags a:hover {
    border-color: var(--pe-accent);
    color: var(--pe-accent);
}

/* Author card */
.pe-article__author-card {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--pe-border);
    margin-top: var(--space-xl);
}

.pe-author-card {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: var(--space-lg);
}

.pe-author-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--pe-border);
}

.pe-author-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pe-author-card__label {
    font-size: 0.75rem;
    font-family: var(--pe-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pe-text-tertiary);
}

.pe-author-card__name {
    font-size: 1.05rem;
    color: var(--pe-text);
    font-weight: 600;
}

.pe-author-card__bio {
    font-size: 0.9rem;
    color: var(--pe-text-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* Adjacent navigation */
.pe-article__adjacent {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.pe-adjacent-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.pe-adjacent-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: var(--space-lg);
    transition: border-color var(--pe-transition-fast), background var(--pe-transition-fast);
}

.pe-adjacent-nav__item:hover {
    border-color: var(--pe-accent);
    background: color-mix(in srgb, var(--pe-accent) 5%, var(--pe-surface));
}

.pe-adjacent-nav__item--next {
    text-align: right;
}

.pe-adjacent-nav__dir {
    font-size: 0.75rem;
    font-family: var(--pe-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pe-accent);
}

.pe-adjacent-nav__title {
    font-size: 0.95rem;
    color: var(--pe-text);
    font-weight: 500;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   TIMELINE WIDGET
════════════════════════════════════════════════════════ */

.pe-timeline {
    padding: var(--space-3xl) 0;
}

.pe-timeline__track {
    position: relative;
    margin-top: var(--space-2xl);
}

.pe-timeline__line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--pe-accent), var(--pe-border), transparent);
}

.pe-timeline--left .pe-timeline__line,
.pe-timeline--compact .pe-timeline__line {
    left: 0;
    transform: none;
}

.pe-timeline__entry {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    gap: 0;
    margin-bottom: var(--space-2xl);
}

.pe-timeline--left .pe-timeline__entry,
.pe-timeline--compact .pe-timeline__entry {
    grid-template-columns: 40px 1fr;
}

/* Left/right placement */
.pe-timeline__entry--left .pe-timeline__card { grid-column: 1; grid-row: 1; text-align: right; }
.pe-timeline__entry--left .pe-timeline__node { grid-column: 2; grid-row: 1; }
.pe-timeline__entry--left .pe-timeline__card:last-child { grid-column: 3; display: none; }

.pe-timeline__entry--right .pe-timeline__card:first-child { display: none; }
.pe-timeline__entry--right .pe-timeline__node { grid-column: 2; grid-row: 1; }
.pe-timeline__entry--right .pe-timeline__card:last-child { grid-column: 3; grid-row: 1; }

/* Compact / single-column */
.pe-timeline--left .pe-timeline__node,
.pe-timeline--compact .pe-timeline__node { grid-column: 1; }
.pe-timeline--left .pe-timeline__card,
.pe-timeline--compact .pe-timeline__card { grid-column: 2; }

/* Node */
.pe-timeline__node {
    display: flex;
    justify-content: center;
    padding-top: var(--space-lg);
}

.pe-timeline__node-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pe-border);
    border: 2px solid var(--pe-surface);
    transition: background var(--pe-transition);
    flex-shrink: 0;
}

.pe-timeline__node-dot--current {
    background: var(--pe-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pe-accent) 20%, transparent);
    animation: pe-pulse 2.5s ease-in-out infinite;
}

@keyframes pe-pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pe-accent) 20%, transparent); }
    50%       { box-shadow: 0 0 0 8px color-mix(in srgb, var(--pe-accent) 5%, transparent); }
}

/* Card */
.pe-timeline__card {
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: var(--space-lg);
    margin: var(--space-sm) var(--space-md);
    transition: border-color var(--pe-transition);
}

.pe-timeline__entry--current .pe-timeline__card {
    border-color: color-mix(in srgb, var(--pe-accent) 40%, transparent);
}

.pe-timeline__card-header { margin-bottom: var(--space-md); }

.pe-timeline__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.pe-timeline__period {
    font-family: var(--pe-font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pe-text-tertiary);
}

.pe-status-pill--sm {
    font-size: 0.68rem;
    padding: 0.1rem 0.5rem;
}

.pe-timeline__role {
    font-family: var(--pe-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pe-text);
    margin-bottom: 0.3rem;
}

.pe-timeline__company {
    font-size: 0.9rem;
    color: var(--pe-text-secondary);
}

.pe-timeline__company a {
    color: var(--pe-accent);
    transition: opacity var(--pe-transition-fast);
}

.pe-timeline__company a:hover { opacity: 0.8; }

.pe-timeline__location {
    color: var(--pe-text-tertiary);
    margin-left: 0.2rem;
}

.pe-timeline__description {
    font-size: 0.92rem;
    color: var(--pe-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.pe-timeline__highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: var(--space-md);
}

.pe-timeline__highlights li {
    font-size: 0.88rem;
    color: var(--pe-text);
    font-family: var(--pe-font-mono);
    padding-left: 1rem;
    position: relative;
}

.pe-timeline__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background: var(--pe-accent);
}

.pe-timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .pe-timeline__line {
        left: 20px;
        transform: none;
    }

    .pe-timeline__entry {
        grid-template-columns: 40px 1fr;
    }

    .pe-timeline__entry--left .pe-timeline__card,
    .pe-timeline__entry--right .pe-timeline__card:last-child {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        display: block !important;
    }

    .pe-timeline__entry--left .pe-timeline__card:last-child,
    .pe-timeline__entry--right .pe-timeline__card:first-child {
        display: none !important;
    }

    .pe-timeline__entry--left .pe-timeline__node,
    .pe-timeline__entry--right .pe-timeline__node {
        grid-column: 1;
    }
}

/* ═══════════════════════════════════════════════════════
   ARCHIVE PAGE
════════════════════════════════════════════════════════ */

.pe-archive-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.pe-archive-hero__inner {
    max-width: 640px;
}

.pe-archive-hero__title {
    font-family: var(--pe-font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    color: var(--pe-text);
    line-height: 0.95;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.pe-archive-hero__lead {
    font-size: 1.1rem;
    color: var(--pe-text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.pe-portfolio-archive__grid {
    margin-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
}

.pe-archive-empty {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--pe-text-secondary);
}

.pe-archive-cta {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.pe-archive-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-2xl);
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius-lg);
    gap: var(--space-lg);
}

.pe-archive-cta__text {
    font-size: 1.2rem;
    font-family: var(--pe-font-display);
    color: var(--pe-text);
    font-style: italic;
}

@media (max-width: 600px) {
    .pe-archive-cta__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════════ */

.pe-pagination {
    padding: var(--space-xl) 0;
    display: flex;
    justify-content: center;
}

.pe-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pe-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: var(--pe-radius-sm);
    font-size: 0.88rem;
    font-family: var(--pe-font-mono);
    color: var(--pe-text-secondary);
    border: 1px solid var(--pe-border);
    transition: all var(--pe-transition-fast);
    background: var(--pe-surface);
}

.pe-pagination .page-numbers:hover,
.pe-pagination .page-numbers.current {
    border-color: var(--pe-accent);
    color: var(--pe-accent);
    background: color-mix(in srgb, var(--pe-accent) 8%, var(--pe-surface));
}

.pe-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ═══════════════════════════════════════════════════════
   WIDGET STYLES
════════════════════════════════════════════════════════ */

.pe-widget-area .widget {
    margin-bottom: var(--space-xl);
}

.pe-widget-area .widget-title {
    font-family: var(--pe-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pe-text-tertiary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--pe-border);
}

.pe-widget-portfolio-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pe-widget-portfolio-list__item {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.pe-widget-portfolio-list__thumb {
    width: 52px;
    height: 40px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--pe-radius-sm);
    border: 1px solid var(--pe-border);
}

.pe-widget-portfolio-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pe-widget-portfolio-list__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pe-widget-portfolio-list__title {
    font-size: 0.9rem;
    color: var(--pe-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--pe-transition-fast);
}

.pe-widget-portfolio-list__title:hover { color: var(--pe-accent); }

.pe-widget-portfolio-list__meta {
    font-size: 0.75rem;
    color: var(--pe-text-tertiary);
    font-family: var(--pe-font-mono);
}

/* CTA Widget */
.pe-widget-cta {
    background: var(--pe-surface);
    border: 1px solid var(--pe-border);
    border-left: 3px solid var(--pe-accent);
    padding: var(--space-lg);
    border-radius: 0 var(--pe-radius) var(--pe-radius) 0;
}

.pe-widget-cta__headline {
    font-family: var(--pe-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pe-text);
    margin-bottom: var(--space-sm);
}

.pe-widget-cta__body {
    font-size: 0.88rem;
    color: var(--pe-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════
   PAGE LINKS (multi-page posts)
════════════════════════════════════════════════════════ */

.pe-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--pe-border);
    font-size: 0.88rem;
    color: var(--pe-text-secondary);
}

.pe-page-links a,
.pe-page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius-sm);
    background: var(--pe-surface);
    color: var(--pe-text-secondary);
    transition: all var(--pe-transition-fast);
}

.pe-page-links a:hover,
.pe-page-links > .post-page-numbers.current {
    border-color: var(--pe-accent);
    color: var(--pe-accent);
}

/* ═══════════════════════════════════════════════════════
   SECTION FOOTER (view-all CTA below grids)
════════════════════════════════════════════════════════ */

.pe-section-footer {
    text-align: center;
    padding-top: var(--space-2xl);
}

/* ═══════════════════════════════════════════════════════
   GRID UTILITIES
════════════════════════════════════════════════════════ */

.pe-grid {
    display: grid;
    gap: var(--space-lg);
}

.pe-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 600px) {
    .pe-adjacent-nav {
        grid-template-columns: 1fr;
    }
}
