/* Resources, Pathline marketing (bento index + article) */
body.pl-landing-resources {
    --pl-res-ink: #0e0e0e;
    --pl-res-muted: #666;
    --pl-res-line: #e4e4e4;
    --pl-res-inset: clamp(20px, 5vw, 48px);
    --pl-res-max: 1120px;
    background: #fff;
}

body.pl-landing-resources .pl-res-kicker {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

body.pl-landing-resources .pl-res-kicker a {
    color: inherit;
    text-decoration: none;
}

body.pl-landing-resources .pl-res-kicker a:hover {
    color: var(--pl-res-ink);
}

/* ── Bento grid ── */
body.pl-landing-resources .pl-res-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    max-width: var(--pl-res-max);
    margin: 0 auto;
    padding: calc(var(--pl-marketing-header-h, 72px) + 24px) var(--pl-res-inset) 32px;
}

body.pl-landing-resources .pl-res-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: 220px;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--pl-res-line);
    background: #fafafa;
    color: var(--pl-res-ink);
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

body.pl-landing-resources .pl-res-tile:hover {
    border-color: #0e0e0e;
    transform: translate3d(0, -2px, 0);
}

body.pl-landing-resources .pl-res-tile[aria-disabled='true'] {
    cursor: default;
    pointer-events: none;
    opacity: 0.72;
}

body.pl-landing-resources .pl-res-tile[aria-disabled='true']:hover {
    transform: none;
    border-color: var(--pl-res-line);
}

body.pl-landing-resources .pl-res-tile--feature {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 420px;
    padding: 32px;
    background: #0e0e0e;
    border-color: #0e0e0e;
    color: #fff;
}

body.pl-landing-resources .pl-res-tile--feature:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

body.pl-landing-resources .pl-res-tile--feature .pl-res-tile-tag {
    color: rgba(255, 255, 255, 0.55);
}

body.pl-landing-resources .pl-res-tile--feature .pl-res-tile-deck,
body.pl-landing-resources .pl-res-tile--feature .pl-res-tile-meta {
    color: rgba(255, 255, 255, 0.68);
}

body.pl-landing-resources .pl-res-tile--wide {
    grid-column: span 4;
}

body.pl-landing-resources .pl-res-tile--tall {
    grid-row: span 2;
    min-height: 360px;
}

body.pl-landing-resources .pl-res-tile:not(.pl-res-tile--feature):not(.pl-res-tile--wide):not(.pl-res-tile--tall) {
    grid-column: span 2;
}

body.pl-landing-resources .pl-res-tile--tall {
    grid-column: span 2;
}

body.pl-landing-resources .pl-res-tile--mint {
    background: #d8eee4;
    border-color: #c5e2d6;
}

body.pl-landing-resources .pl-res-tile--sand {
    background: #f0ebe3;
    border-color: #e2d9cc;
}

body.pl-landing-resources .pl-res-tile--sky {
    background: #dce8f5;
    border-color: #c8d9ec;
}

body.pl-landing-resources .pl-res-tile--ink {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

body.pl-landing-resources .pl-res-tile--ink .pl-res-tile-tag,
body.pl-landing-resources .pl-res-tile--ink .pl-res-tile-deck,
body.pl-landing-resources .pl-res-tile--ink .pl-res-tile-meta {
    color: rgba(255, 255, 255, 0.55);
}

body.pl-landing-resources .pl-res-tile-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

body.pl-landing-resources .pl-res-tile-title {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.pl-landing-resources .pl-res-tile--feature .pl-res-tile-title {
    font-size: clamp(28px, 4vw, 44px);
    max-width: 14em;
}

body.pl-landing-resources .pl-res-tile-deck {
    margin: 0;
    max-width: 36em;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pl-res-muted);
}

body.pl-landing-resources .pl-res-tile-meta {
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

body.pl-landing-resources .pl-res-tile--feature .pl-res-tile-meta {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Article ── */
body.pl-landing-resources--article .pl-res-article {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--pl-marketing-header-h, 72px) + clamp(48px, 8vh, 88px)) var(--pl-res-inset) clamp(56px, 8vh, 88px);
}

body.pl-landing-resources .pl-res-article-date {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

body.pl-landing-resources .pl-res-article-title {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--pl-res-ink);
}

body.pl-landing-resources .pl-res-article-deck {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
}

body.pl-landing-resources .pl-res-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 40px;
}

body.pl-landing-resources .pl-res-author-photo-link {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e8e8;
    text-decoration: none;
}

body.pl-landing-resources .pl-res-author-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.pl-landing-resources .pl-res-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.pl-landing-resources .pl-res-author-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--pl-res-ink);
    text-decoration: none;
}

body.pl-landing-resources .pl-res-author-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.pl-landing-resources .pl-res-author-meta {
    margin: 0;
    font-size: 13px;
    color: #888;
}

body.pl-landing-resources .pl-res-article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #2a2a2a;
}

body.pl-landing-resources .pl-res-article-body p,
body.pl-landing-resources .pl-res-article-body ul,
body.pl-landing-resources .pl-res-article-body ol,
body.pl-landing-resources .pl-res-article-body blockquote {
    margin: 0 0 1.25em;
}

body.pl-landing-resources .pl-res-article-body h2 {
    margin: 2em 0 0.75em;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--pl-res-ink);
}

body.pl-landing-resources .pl-res-article-body h3 {
    margin: 1.75em 0 0.5em;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--pl-res-ink);
}

body.pl-landing-resources .pl-res-article-body h3:first-child {
    margin-top: 0;
}

body.pl-landing-resources .pl-res-article-body li {
    margin: 0 0 0.65em;
}

body.pl-landing-resources .pl-res-article-body ul,
body.pl-landing-resources .pl-res-article-body ol {
    padding-left: 1.25em;
}

body.pl-landing-resources .pl-res-article-body blockquote {
    margin: 2em 0;
    padding: 0 0 0 1.1em;
    border-left: 2px solid #0e0e0e;
}

body.pl-landing-resources .pl-res-article-body blockquote p {
    margin: 0;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--pl-res-ink);
}

body.pl-landing-resources .pl-res-article-body a {
    color: var(--pl-res-ink);
    text-underline-offset: 3px;
}

body.pl-landing-resources .pl-res-article-body pre {
    margin: 0 0 1.25em;
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--pl-res-line);
    background: #f7f7f7;
    font-size: 13px;
    line-height: 1.55;
}

body.pl-landing-resources .pl-res-article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

body.pl-landing-resources .pl-res-article-body pre code {
    font-size: inherit;
}

body.pl-landing-resources .pl-res-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--pl-res-line);
}

body.pl-landing-resources .pl-res-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-res-ink);
    text-decoration: none;
}

body.pl-landing-resources .pl-res-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    body.pl-landing-resources .pl-res-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pl-landing-resources .pl-res-tile--feature,
    body.pl-landing-resources .pl-res-tile--wide,
    body.pl-landing-resources .pl-res-tile--tall,
    body.pl-landing-resources .pl-res-tile:not(.pl-res-tile--feature):not(.pl-res-tile--wide):not(.pl-res-tile--tall) {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 200px;
    }

    body.pl-landing-resources .pl-res-tile--feature {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    body.pl-landing-resources .pl-res-bento {
        grid-template-columns: 1fr;
    }

    body.pl-landing-resources .pl-res-tile--feature,
    body.pl-landing-resources .pl-res-tile--wide,
    body.pl-landing-resources .pl-res-tile--tall,
    body.pl-landing-resources .pl-res-tile:not(.pl-res-tile--feature):not(.pl-res-tile--wide):not(.pl-res-tile--tall) {
        grid-column: span 1;
    }
}
