/* JexMac — blog listing page (notes layout) */

.notes-page section {
    padding: 100px 0;
}

.notes-page section.notes-hero,
.notes-page section.notes-stream,
.notes-page section.notes-cta {
    padding: 0;
}

/* Hero — split: copy left, stats dock right */
.notes-hero {
    position: relative;
    overflow: hidden;
}

.notes-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 320px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    padding-top: 148px;
    padding-bottom: 48px;
}

.notes-hero__glow {
    position: absolute;
    top: 28%;
    left: 26%;
    transform: translate(-50%, -50%);
    width: 760px;
    height: 480px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.1) 0%, rgba(138, 43, 226, 0.07) 42%, transparent 72%);
    filter: blur(72px);
    pointer-events: none;
}

.notes-hero-main {
    text-align: left;
}

.notes-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.notes-crumb a {
    color: rgba(0, 240, 255, 0.75);
    transition: color 0.25s;
}

.notes-crumb a:hover {
    color: var(--neon-blue);
}

.notes-crumb-current {
    color: rgba(255, 255, 255, 0.55);
}

.notes-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: rgba(0, 240, 255, 0.06);
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--neon-blue);
}

.notes-hero h1 {
    font-family: var(--font-tech);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    max-width: 16em;
}

.notes-intro {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.notes-intro a {
    color: var(--neon-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notes-intro a:hover {
    color: #fff;
}

/* Stats dock */
.notes-panel {
    padding: 24px 22px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(165deg, rgba(13, 19, 36, 0.94), rgba(5, 9, 20, 0.9));
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notes-panel-label {
    margin-bottom: 14px;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.notes-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.28);
}

.notes-stats strong {
    font-family: var(--font-tech);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.notes-stats span {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.85);
    text-align: right;
}

/* Stream section */
.notes-stream .container {
    padding-top: 32px;
    padding-bottom: 88px;
}

.notes-stream-head {
    margin-bottom: 28px;
}

.notes-stream-title {
    margin-bottom: 18px;
}

.notes-stream-head h2 {
    font-family: var(--font-tech);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.notes-result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notes-filter-bar {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.notes-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.04em;
}

.notes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notes-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(226, 232, 240, 0.88);
    font-family: var(--font-body);
    font-size: 0.84rem;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.notes-filter:hover {
    border-color: rgba(0, 240, 255, 0.35);
    color: #fff;
}

.notes-filter.is-active {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
}

.notes-filter-count {
    font-family: var(--font-code);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: inherit;
}

.notes-filter.is-active .notes-filter-count {
    background: rgba(0, 240, 255, 0.15);
}

/* Featured card — latest article */
#notes-featured-slot {
    margin-bottom: 8px;
}

.notes-featured {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 0;
    margin-bottom: 32px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: var(--bg-panel);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.notes-featured:hover {
    border-color: rgba(0, 240, 255, 0.42);
    box-shadow: 0 12px 48px rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

.notes-featured-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 20px;
    border-right: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(0, 240, 255, 0.04);
}

.notes-featured-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-code);
    line-height: 1.2;
}

.notes-date-year {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.9);
}

.notes-date-md {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.notes-featured-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.1);
}

.notes-featured-body {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.notes-featured-cat {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(0, 240, 255, 0.85);
    letter-spacing: 0.04em;
}

.notes-featured-title {
    font-family: var(--font-tech);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.32;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.notes-link {
    color: inherit;
    transition: color 0.25s;
}

.notes-link:hover {
    color: var(--neon-blue);
}

.notes-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notes-featured-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.84rem;
    color: rgba(148, 163, 184, 0.9);
}

.notes-read-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.86rem;
}

.notes-soon {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
}

/* Timeline list */
.notes-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.notes-timeline::before {
    content: '';
    position: absolute;
    left: 108px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.3), rgba(0, 240, 255, 0.05));
}

.notes-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
    padding: 20px 12px 20px 0;
    border-radius: 10px;
    transition: background 0.25s;
}

.notes-entry + .notes-entry {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.notes-entry:hover {
    background: rgba(0, 240, 255, 0.03);
}

.notes-entry--soon {
    opacity: 0.72;
}

.notes-entry-rail {
    position: relative;
    padding-top: 2px;
    text-align: right;
    padding-right: 24px;
}

.notes-entry-rail::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-dark, #050914);
    border: 2px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.notes-entry-date {
    display: block;
    font-family: var(--font-code);
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.9);
}

.notes-entry-cat {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: rgba(0, 240, 255, 0.65);
}

.notes-entry-body {
    min-width: 0;
    padding-right: 4px;
}

.notes-entry-title {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.38;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.25px;
}

.notes-entry .notes-excerpt {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 8px;
}

.notes-entry-meta {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.75);
}

.notes-entry-arrow {
    margin-left: 6px;
    color: var(--neon-blue);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s;
    vertical-align: middle;
}

.notes-entry:hover .notes-entry-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Empty state */
.notes-empty {
    text-align: center;
    padding: 64px 24px;
    border-radius: 16px;
    border: 1px dashed rgba(0, 240, 255, 0.2);
    background: rgba(13, 19, 36, 0.4);
}

.notes-empty h3 {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.notes-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.notes-reset-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    background: transparent;
    color: var(--neon-blue);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s;
}

.notes-reset-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* CTA band */
.notes-cta .container {
    padding-top: 16px;
    padding-bottom: 100px;
}

.notes-cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 40px 44px;
    border-radius: 4px;
    border-left: 4px solid var(--neon-blue);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.07) 0%, rgba(13, 19, 36, 0.6) 38%, rgba(5, 9, 20, 0.85) 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    border-right: 1px solid rgba(0, 240, 255, 0.08);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.notes-cta-copy h2 {
    font-family: var(--font-tech);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.notes-cta-copy p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    max-width: 580px;
}

.notes-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.notes-cta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(0, 240, 255, 0.5);
    color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

/* Responsive */
@media (max-width: 960px) {
    .notes-hero-split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .notes-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .notes-stats li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .notes-stats span {
        text-align: center;
    }

    .notes-featured {
        grid-template-columns: 1fr;
    }

    .notes-featured-rail {
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(0, 240, 255, 0.12);
        padding: 16px 20px;
    }

    .notes-featured-date {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .notes-cta-band {
        grid-template-columns: 1fr;
        padding: 32px 28px;
    }

    .notes-cta-actions {
        width: 100%;
    }

    .notes-cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .notes-hero-split {
        padding-top: 130px;
        padding-bottom: 36px;
    }

    .notes-stats {
        grid-template-columns: 1fr;
    }

    .notes-timeline::before {
        display: none;
    }

    .notes-entry {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 8px;
    }

    .notes-entry-rail {
        text-align: left;
        padding-right: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .notes-entry-rail::after {
        display: none;
    }

    .notes-entry-cat {
        margin-top: 0;
    }

    .notes-featured-body {
        padding: 20px 18px;
    }

    .notes-filters {
        gap: 6px;
    }

    .notes-filter {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}
