/* ═══════════════════════════════════════════════════════════
   GEORGIADIS PROPERTIES — Frontend v2.1
   Built with 2026 CSS: container queries, @starting-style,
   :has(), scroll-driven animations, view transitions
   ═══════════════════════════════════════════════════════════ */

:where(.gp-g, .gp-car, .gp-card, .gp-car-card, .gp-feat, .gp-list, .gp-cats, .gp-count) {
    /* Falls back to admin-set CSS vars (--gp-*) injected from settings */
    --accent: var(--gp-accent, #D4875A);
    --accent-soft: color-mix(in oklch, var(--accent) 70%, white);
    --ink: var(--gp-dark, #0C0B09);
    --ink-soft: var(--gp-text, #1E1E1E);
    --muted: var(--gp-muted, #8A8478);
    --line: rgba(0,0,0,.06);
    --warm: var(--gp-warm, #F5EFE6);
    --cream: var(--gp-light, #FAF7F2);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ─── GRID ─── */
.gp-g {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
    container-type: inline-size;
}
.gp-g-c2 { grid-template-columns: repeat(2, 1fr); }
.gp-g-c3 { grid-template-columns: repeat(3, 1fr); }
.gp-g-c4 { grid-template-columns: repeat(4, 1fr); }
.gp-g--list { grid-template-columns: 1fr; }
.gp-g--list .gp-card { display: grid; grid-template-columns: 320px 1fr; gap: 0; }
.gp-g--masonry { columns: 3; column-gap: 1.25rem; display: block; }
.gp-g--masonry .gp-card { break-inside: avoid; margin-bottom: 1.25rem; }

/* Container-query responsive — adapts to container width, not viewport */
@container (max-width: 900px) {
    .gp-g-c3, .gp-g-c4 { grid-template-columns: repeat(2, 1fr); }
    .gp-g--list .gp-card { grid-template-columns: 1fr; }
    .gp-g--masonry { columns: 2; }
}
@container (max-width: 560px) {
    .gp-g-c2, .gp-g-c3, .gp-g-c4 { grid-template-columns: 1fr; }
    .gp-g--masonry { columns: 1; }
}
/* Fallback for browsers without container queries */
@media (max-width: 900px) { .gp-g:not(:has(*)) + .gp-g-c3 { grid-template-columns: repeat(2, 1fr); } }

/* ─── CARD ─── */
.gp-card {
    position: relative;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s;
    view-transition-name: var(--vt, none);
    /* Entry animation (progressive enhancement) */
    animation: gpCardIn .6s var(--ease-out) both;
}

@supports (animation-timeline: view()) {
    .gp-card {
        animation: gpCardReveal linear;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

@keyframes gpCardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gpCardReveal {
    from { opacity: 0; transform: translateY(30px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hover — kinetic: image zooms, card lifts, border warms */
.gp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -20px rgba(30, 24, 16, .18);
    border-color: color-mix(in oklch, var(--accent) 35%, transparent);
}

.gp-card-a { text-decoration: none; color: inherit; display: block; }

.gp-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: color-mix(in oklch, var(--warm) 80%, var(--accent) 20%);
}

.gp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out), filter .5s;
    will-change: transform;
}

.gp-card:hover .gp-card-img img {
    transform: scale(1.06);
}

/* Image gradient scrim — appears on hover for badge readability */
.gp-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 30%);
    opacity: .6;
    transition: opacity .4s;
    pointer-events: none;
}
.gp-card:hover .gp-card-img::after { opacity: 1; }

.gp-card-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e0d4, #d4c5ad, #c4b299);
    position: relative;
}
.gp-card-ph::after {
    content: '⬚';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: rgba(0,0,0,.15);
}

/* Badge — refined glassmorphism */
.gp-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .35rem .8rem;
    background: rgba(12, 11, 9, .75);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,.08);
    z-index: 2;
}

.gp-card-body { padding: 1.25rem; }

.gp-card-meta {
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .35rem;
}

.gp-card-t {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .6rem;
    color: var(--ink-soft);
    text-wrap: balance;
    transition: color .3s;
}

.gp-card:hover .gp-card-t {
    color: var(--accent);
}

.gp-card-det {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    margin-bottom: .75rem;
    font-size: .78rem;
    color: var(--muted);
}

.gp-card-det span {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.gp-card-det span:not(:last-child)::after {
    content: '';
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
    margin-left: .6rem;
    opacity: .4;
}

.gp-en {
    padding: 1px 7px;
    border-radius: 2px;
    font-weight: 700;
    font-size: .65rem;
    color: #fff;
    background: #558b2f;
}
.gp-en::after { display: none !important; }

.gp-card-pr {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

/* ─── CAROUSEL ─── */
.gp-car {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    container-type: inline-size;
}

.gp-car--dark {
    background: var(--ink);
    color: #E8E2D6;
}

.gp-car--dark .gp-card-pr,
.gp-car--dark .gp-car-name { color: #E8E2D6; }

.gp-car-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 3rem 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.gp-car-head-left { flex: 1; min-width: 0; }
.gp-car-head-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gp-car-eyebrow {
    font-size: .65rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .6rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gp-car-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
    font-family: 'Cormorant Garamond', 'Instrument Serif', Georgia, serif;
}

.gp-car-title em {
    font-style: italic;
    color: var(--accent);
}

.gp-car-viewall {
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: color .3s, border-color .3s;
    opacity: .65;
}

.gp-car-viewall:hover {
    opacity: 1;
    color: var(--accent);
    border-color: var(--accent);
}

.gp-car-nav {
    display: flex;
    gap: .4rem;
}

.gp-car-prev,
.gp-car-next {
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in oklch, currentColor 20%, transparent);
    border-radius: 50%;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .4s var(--ease-out);
    color: inherit;
    font-family: inherit;
}

.gp-car-prev:hover,
.gp-car-next:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.08);
}

.gp-car-prev:disabled,
.gp-car-next:disabled {
    opacity: .3;
    cursor: not-allowed;
    transform: none;
    background: transparent;
    border-color: color-mix(in oklch, currentColor 15%, transparent);
    color: inherit;
}

.gp-car-track {
    display: flex;
    padding: 0 3rem;
    transition: transform .65s var(--ease-out);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gp-car-track:active { cursor: grabbing; }

/* Carousel card — responsive width via CSS custom props set by JS */
.gp-car-card {
    flex-shrink: 0;
    width: calc((100% - var(--car-gap, 20px) * (var(--car-cols, 3) - 1)) / var(--car-cols, 3));
    animation: gpCardIn .5s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.gp-car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gp-car-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--img-ratio, 3/4);
    border-radius: 3px;
    background: var(--ink-soft);
}

.gp-car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out), filter .5s;
}

.gp-car-card:hover .gp-car-card-img img {
    transform: scale(1.07);
}

.gp-car-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6B5B45, #8B7B65, #a89b85);
}

.gp-car-card-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(12,11,9,.85) 0%,
        rgba(12,11,9,.4) 40%,
        transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    opacity: 0;
    transition: opacity .5s;
    color: #fff;
}

.gp-car-card:hover .gp-car-card-ov { opacity: 1; }

.gp-car-card-body { padding: 1rem 0 0; }

.gp-car-tag {
    font-size: .6rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .4rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gp-car-name {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.25;
    font-family: 'Cormorant Garamond', 'Instrument Serif', Georgia, serif;
    text-wrap: balance;
}

.gp-car-details {
    display: flex;
    gap: .85rem;
    font-size: .75rem;
    color: var(--muted);
    margin-top: .45rem;
    font-variant-numeric: tabular-nums;
}

.gp-car-price {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: .5rem;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.gp-car-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1.75rem 0 .5rem;
}

.gp-car-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in oklch, currentColor 25%, transparent);
    transition: all .35s var(--ease-out);
    cursor: pointer;
    border: 0;
    padding: 0;
}

.gp-car-dots .dot.on {
    background: var(--accent);
    width: 24px;
    border-radius: 3px;
}

.gp-car-nav--bottom {
    justify-content: center;
    padding: 1.5rem 0 0;
}

/* Carousel container-query responsive */
@container (max-width: 900px) {
    .gp-car-track { padding: 0 1.5rem; }
    .gp-car-head { padding: 0 1.5rem 2rem; }
    .gp-car-card { width: calc((100% - var(--car-gap, 20px)) / 2); }
}

@container (max-width: 560px) {
    .gp-car-card { width: calc(100% - 40px); }
}

/* ─── FILTERS — refined glassmorphism ─── */
.gp-flt {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1.25rem 1.4rem;
    background: color-mix(in oklch, var(--warm) 92%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid color-mix(in oklch, var(--accent) 8%, transparent);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    align-items: flex-end;
    container-type: inline-size;
}

.gp-flt-g {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 140px;
}

.gp-flt-g label {
    font-size: .65rem;
    font-weight: 600;
    color: #4a4a4a;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gp-flt-sel,
.gp-flt-g input {
    padding: .5rem .75rem;
    border: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
    border-radius: 3px;
    font-size: .83rem;
    background: #fff;
    color: var(--ink-soft);
    transition: border-color .3s, box-shadow .3s;
    font-family: inherit;
}

.gp-flt-sel:focus,
.gp-flt-g input:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.gp-flt-rng {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.gp-flt-rng input { width: 78px; }
.gp-flt-rng span { color: var(--muted); font-size: .9rem; }

.gp-flt-acts {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
}

.gp-btn {
    padding: .55rem 1.25rem;
    background: var(--ink-soft);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: all .4s var(--ease-out);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.gp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform .4s var(--ease-out);
    z-index: -1;
}

.gp-btn:hover::before { transform: translateY(0); }
.gp-btn:hover { transform: translateY(-1px); }

.gp-btn-o {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid color-mix(in oklch, var(--ink) 15%, transparent);
}

.gp-btn-o::before { display: none; }
.gp-btn-o:hover {
    background: rgba(0, 0, 0, .04);
    color: var(--ink-soft);
    border-color: var(--ink-soft);
}

@container (max-width: 720px) {
    .gp-flt { flex-direction: column; }
    .gp-flt-g { width: 100%; }
    .gp-flt-rng input { flex: 1; width: auto; }
    .gp-flt-acts { width: 100%; }
    .gp-flt-acts .gp-btn { flex: 1; }
}

/* ─── MISC ─── */
.gp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
    font-size: .95rem;
    border: 1px dashed color-mix(in oklch, var(--muted) 30%, transparent);
    border-radius: 4px;
}

.gp-pag {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: .25rem;
    flex-wrap: wrap;
}

.gp-pag a,
.gp-pag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: .82rem;
    text-decoration: none;
    color: var(--ink-soft);
    transition: all .3s var(--ease-out);
}

.gp-pag a:hover {
    background: var(--ink-soft);
    color: #fff;
    border-color: var(--ink-soft);
    transform: translateY(-1px);
}

.gp-pag .current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.gp-sf {
    display: flex;
    gap: .5rem;
    padding: .9rem;
    background: var(--warm);
    border-radius: 4px;
    flex-wrap: wrap;
}

.gp-sf select {
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: .85rem;
    flex: 1;
    min-width: 140px;
}

.gp-sf button {
    padding: .5rem 1.4rem;
    background: var(--ink-soft);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
    font-family: inherit;
}

.gp-sf button:hover { background: var(--accent); }

/* Loading state with refined spinner */
.gp-loading {
    position: relative;
    min-height: 200px;
    pointer-events: none;
}

.gp-loading > * { opacity: .3; transition: opacity .3s; }

.gp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid color-mix(in oklch, var(--ink) 8%, transparent);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gpSpin .8s linear infinite;
}

@keyframes gpSpin {
    to { transform: rotate(360deg); }
}

.gp-btn-block {
    display: block;
    text-align: center;
    width: 100%;
    padding: .8rem;
    text-decoration: none;
}

/* ─── ENTRY ANIMATIONS — progressive enhancement with @starting-style ─── */
@supports (transition-behavior: allow-discrete) {
    .gp-card {
        @starting-style {
            opacity: 0;
            transform: translateY(30px);
        }
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .gp-card,
    .gp-car-card,
    .gp-card-img img,
    .gp-car-card-img img {
        animation: none !important;
        transition: opacity .2s !important;
    }
    .gp-card:hover { transform: none; }
    .gp-card:hover .gp-card-img img,
    .gp-car-card:hover .gp-car-card-img img { transform: none; }
}

/* Print styles */
@media print {
    .gp-flt,
    .gp-car-nav,
    .gp-car-dots,
    .gp-pag,
    .gp-badge { display: none !important; }
    .gp-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════════════════════
   NEW SHORTCODES (v2.2)
   gp_featured_project, gp_list, gp_count, gp_categories
   ═══════════════════════════════════════════════════════════ */

/* ─── [gp_featured_project] — Magazine spread ─── */
.gp-feat {
    margin: 3rem 0;
    container-type: inline-size;
}

.gp-feat-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: end;
    padding-bottom: 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.gp-feat-num {
    font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: .85;
    color: var(--ink);
    letter-spacing: -.04em;
}

.gp-feat-num em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.gp-feat-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.015em;
    max-width: 480px;
    margin: 0;
    text-wrap: balance;
}

.gp-feat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
    line-height: 1.5;
}

.gp-feat-spread {
    position: relative;
    margin-top: 0;
}

.gp-feat-image-link { display: block; cursor: pointer; }

.gp-feat-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: var(--ink);
    position: relative;
    overflow: hidden;
    transition: transform .8s var(--ease-out);
}

.gp-feat-image-link:hover .gp-feat-image {
    transform: scale(1.01);
}

.gp-feat-overlay-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    letter-spacing: .2em;
    color: var(--cream);
    background: color-mix(in oklch, var(--ink) 70%, transparent);
    backdrop-filter: blur(10px);
    padding: .4rem .8rem;
    border: 1px solid color-mix(in oklch, var(--cream) 20%, transparent);
}

.gp-feat-quote {
    position: absolute;
    bottom: 3rem;
    left: 8%;
    max-width: 480px;
    background: var(--ink);
    color: var(--cream);
    padding: 2.25rem 2.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    line-height: 1.35;
    border-left: 3px solid var(--accent);
}

.gp-feat-quote::before {
    content: '"';
    font-size: 4rem;
    line-height: .3;
    color: var(--accent);
    display: block;
    margin-bottom: .4rem;
}

.gp-feat-quote cite {
    display: block;
    margin-top: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--cream) 65%, transparent);
}

.gp-feat-specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1.75rem 2rem;
    background: var(--ink);
    color: var(--cream);
    gap: 2rem;
    margin-top: 0;
}

.gp-feat-spec-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    letter-spacing: .15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: .35rem;
    display: block;
}

.gp-feat-spec-v {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.gp-feat-spec-ok { color: var(--accent); }

@container (max-width: 800px) {
    .gp-feat-head { grid-template-columns: 1fr; gap: 1rem; }
    .gp-feat-label { text-align: left; }
    .gp-feat-quote {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: -3rem;
        max-width: calc(100% - 2rem);
        margin-left: 1rem;
        padding: 1.75rem;
    }
    .gp-feat-specs { grid-template-columns: 1fr 1fr; padding: 1.5rem; }
}

/* ─── [gp_list] — Editorial numbered list ─── */
.gp-list {
    margin: 2rem 0;
    container-type: inline-size;
    border-top: 1px solid var(--ink);
}

.gp-list-item {
    display: grid;
    grid-template-columns: 80px 160px 1fr 2fr auto;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: padding .4s var(--ease-out), background .3s;
    position: relative;
}

.gp-list-item:hover {
    padding-left: 1.5rem;
    background: color-mix(in oklch, var(--accent) 4%, transparent);
}

.gp-list-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    letter-spacing: .05em;
    color: var(--accent);
    font-weight: 500;
}

.gp-list-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}

.gp-list-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.15;
    color: var(--ink-soft);
    letter-spacing: -.01em;
    transition: color .3s;
}

.gp-list-item:hover .gp-list-title { color: var(--accent); }

.gp-list-body {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 500px;
}

.gp-list-stat {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 80px;
}

@container (max-width: 900px) {
    .gp-list-item {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "num tag stat"
            "title title title"
            "body body body";
        gap: .5rem 1rem;
    }
    .gp-list-num   { grid-area: num; }
    .gp-list-tag   { grid-area: tag; }
    .gp-list-title { grid-area: title; }
    .gp-list-body  { grid-area: body; }
    .gp-list-stat  { grid-area: stat; }
    .gp-list-item:hover { padding-left: 1rem; }
}

/* ─── [gp_count] — Counter display ─── */
.gp-count {
    display: inline-flex;
    align-items: baseline;
    gap: .75rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.gp-count-n {
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    font-style: italic;
}

.gp-count-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
    max-width: 140px;
}

/* ─── [gp_categories] — Taxonomy navigation ─── */
.gp-cats {
    margin: 2rem 0;
    container-type: inline-size;
}

.gp-cats--grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--ink);
}

.gp-cats--grid.gp-cats-c2 { grid-template-columns: 1fr 1fr; }
.gp-cats--grid.gp-cats-c3 { grid-template-columns: repeat(3, 1fr); }
.gp-cats--grid.gp-cats-c4 { grid-template-columns: repeat(4, 1fr); }
.gp-cats--grid.gp-cats-c5 { grid-template-columns: repeat(5, 1fr); }
.gp-cats--grid.gp-cats-c6 { grid-template-columns: repeat(6, 1fr); }

.gp-cats--list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ink);
}

.gp-cats--inline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gp-cat {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transition: background .3s, color .3s, padding-left .3s var(--ease-out);
    position: relative;
}

.gp-cats--grid .gp-cat:nth-child(3n) { border-right: 0; }
.gp-cats--list .gp-cat { border-right: 0; }

.gp-cat:hover {
    background: var(--ink);
    color: var(--cream);
    padding-left: 1.75rem;
}

.gp-cats--inline .gp-cat {
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--warm);
}

.gp-cats--inline .gp-cat:hover {
    background: var(--accent);
    color: var(--cream);
    border-color: var(--accent);
    padding-left: 1rem;
}

.gp-cat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    color: var(--accent);
    font-weight: 500;
    flex-shrink: 0;
}

.gp-cat-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.2;
    flex: 1;
    letter-spacing: -.01em;
}

.gp-cats--inline .gp-cat-name {
    font-family: inherit;
    font-size: .85rem;
    font-weight: 500;
}

.gp-cat-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@container (max-width: 700px) {
    .gp-cats--grid.gp-cats-c4,
    .gp-cats--grid.gp-cats-c5,
    .gp-cats--grid.gp-cats-c6 { grid-template-columns: 1fr 1fr; }
    .gp-cats--grid .gp-cat:nth-child(3n) { border-right: 1px solid var(--line); }
    .gp-cats--grid .gp-cat:nth-child(2n) { border-right: 0; }
}
@container (max-width: 480px) {
    .gp-cats--grid.gp-cats-c2,
    .gp-cats--grid.gp-cats-c3,
    .gp-cats--grid.gp-cats-c4 { grid-template-columns: 1fr; }
    .gp-cats--grid .gp-cat { border-right: 0; }
}
