/* Post card — ported from modules/post-item-overlay.html.
   Canvas is fixed at 1200×630 (locked aspect ratio); inner measurements use
   container query units (cqw) so resizing the canvas scales everything inside. */

.single-post {
    .post-item-canvas {
        width: 49%;
        height: 310px;
    }

    .post-item-canvas .post-item-bullets {
        width: 60%;
    }
}

.post-item-canvas {
    position: relative;
    display: block;
    width: 1200px;
    height: 480px;
    overflow: hidden;
    background: #111;
    margin-bottom: 50px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 1cqw 3.333cqw rgba(0, 0, 0, 0.5);
    font-family: 'Oswald', system-ui, -apple-system, 'Segoe UI', sans-serif;
    container-type: inline-size;
}



.post-item-canvas, .post-item-canvas * { box-sizing: border-box; }
.post-item-canvas ul { list-style: none; margin: 0; padding: 0; }

.post-item-canvas .post-item-featured {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.post-item-canvas .post-item-brand-logo {
    position: absolute;
    z-index: 2;
    top: 3.333cqw;
    left: 4cqw;
    height: 7.5cqw;
    width: auto;
}

.post-item-canvas .post-item-title {
    position: absolute;
    z-index: 2;
    top: 12.5cqw;
    left: 4cqw;
    margin: 0;
    font-size: 7.083cqw;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
}
.post-item-canvas .post-item-title .variant {
    font-size: 4.167cqw;
    font-weight: 700;
    line-height: 1.05;
    margin-left: 0.667cqw;
}

.post-item-canvas .post-item-bullets {
    position: absolute;
    z-index: 2;
    top: 23.333cqw;
    left: 4cqw;
    right: 4cqw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 70%;
}
.post-item-canvas .post-item-bullets .dex-box {
    width: 49%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.post-item-canvas .post-item-bullets .dex-box h2 { font-size: 2.333cqw; line-height: 1; margin: 0; padding: 0.833cqw; color: #ee9531; text-transform: uppercase; }
.post-item-canvas .post-item-bullets .dex-box h5 { font-size: 1.333cqw; line-height: 1; margin: 0; }

.post-item-canvas .post-item-cta {
    position: absolute;
    z-index: 2;
    bottom: 4cqw;
    left: 4cqw;
    background: #ee9531;
    padding: 1.167cqw 2.333cqw;
    font-weight: 700;
    font-size: 2.333cqw;
    transform: skewX(-12deg);
    color: #fff;
}
.post-item-canvas .post-item-cta > span { display: inline-block; transform: skewX(12deg); }

.post-item-canvas .post-item-site-url {
    position: absolute;
    z-index: 2;
    right: 4cqw;
    bottom: 2.667cqw;
    font-size: 2.667cqw;
    opacity: 0.85;
}

.post-item-canvas .post-item-theme-logo {
    position: absolute;
    z-index: 2;
    bottom: 2.5cqw;
    right: 3.667cqw;
    width: 15.833cqw;
    height: auto;
}

/* Theme tokens that single.php's main CSS already provides; redeclared here
   so the card renders correctly even when the page CSS doesn't include them. */
.post-item-canvas .text-primary    { color: #ee9531 !important; }
.post-item-canvas .bg-primary      { background-color: #ee9531 !important; color: #fff; }
.post-item-canvas .text-uppercase  { text-transform: uppercase; }
.post-item-canvas .m-a0            { margin: 0; }
.post-item-canvas .m-r20           { margin-right: 1.667cqw; }
.post-item-canvas .m-b10           { margin-bottom: 0.833cqw; }
.post-item-canvas .p-a11           { padding: 0.833cqw; }
.post-item-canvas .p-lr15          { padding-left: 1.25cqw; padding-right: 1.25cqw; }
.post-item-canvas .p-tb10          { padding-top: 0.833cqw; padding-bottom: 0.833cqw; }
.post-item-canvas .border-2        { border-style: solid; border-width: 0.167cqw; }
.post-item-canvas .dlab-title,
.post-item-canvas .dlab-title-inner { position: relative; }
.post-item-canvas .dlab-title-inner { display: inline-block; }
.post-item-canvas .dlab-title-inner.skew-title:after {
    content: "";
    position: absolute;
    right: -3.333cqw;
    top: 0;
    width: 4.167cqw;
    height: 100%;
    z-index: 1;
    background-color: #ee9531;
    transform: skewX(20deg);
}
