/* ==========================================================
   BETTER DOG LIVING — PREMIUM ARTICLE SIDEBARS
   Loaded only on single blog posts.
   ========================================================== */

/* ==========================================================
   MAIN 3-COLUMN ARTICLE LAYOUT
   ========================================================== */

.ddc-article-shell {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 84px;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 330px;
    justify-content: center;
    align-items: start;
    gap: 25px;
}

/* Keep center article clean inside the new shell */
.ddc-article-shell .single-article-content {
    min-width: 0;
    padding: 0;
}

.ddc-article-shell .single-article-content-inner {
    width: 100%;
    margin: 0;
}

/* ==========================================================
   SIDEBAR BASE
   ========================================================== */

.ddc-sidebar {
    min-width: 0;
    /* Stretch the sidebar to article height, so sticky is not trapped
       inside its own short grid row. */
    align-self: stretch;
}

/* Keep sidebar panels visible while reading long articles.
   If their combined height exceeds the window, scroll within the sidebar. */
.ddc-sidebar-sticky {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c5cbb9 transparent;
}

@media (max-height: 520px) and (min-width: 1281px) {
    .ddc-sidebar-sticky { top: 16px; max-height: calc(100vh - 32px); }
}

/* ==========================================================
   SIDEBAR CARD
   ========================================================== */

.ddc-sidebar-card {
    margin-bottom: 26px;
    padding: 24px;

    background: #f8f5ee;
    border: 1px solid #e4dccf;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(48, 40, 32, 0.06);
}

.ddc-sidebar-card:last-child {
    margin-bottom: 0;
}

/* Small green label */
.ddc-sidebar-eyebrow {
    margin: 0 0 10px;

    color: #6f8757;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* Sidebar titles */
.ddc-sidebar-card h2 {
    margin: 0 0 15px;

    color: #302820;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: -0.3px;
}

/* General sidebar paragraph */
.ddc-sidebar-card > p:not(.ddc-sidebar-eyebrow):not(.ddc-author-role) {
    margin: 0 0 16px;

    color: #625c57;

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   DOG TOOLS
   ========================================================== */

.ddc-tools-list {
    display: grid;
    gap: 12px;
}

.ddc-tool-item {
    display: block;

    padding: 15px 14px;

    background: #ffffff;

    border: 1px solid #e8e1d6;
    border-radius: 11px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ddc-tool-item:hover,
.ddc-tool-item:focus-visible {
    transform: translateY(-2px);

    border-color: #cbd6c0;

    box-shadow:
        0 8px 20px rgba(48, 40, 32, 0.08);
}

.ddc-tool-item-title,
.ddc-tool-item-copy,
.ddc-tool-item-link {
    display: block;
}

.ddc-tool-item-title {
    margin-bottom: 5px;

    color: #302820;

    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.35;
}

.ddc-tool-item-copy {
    margin-bottom: 8px;

    color: #6e675f;

    font-size: 12.8px;
    line-height: 1.5;
}

.ddc-tool-item-link {
    color: #60744f;

    font-size: 12px;
    font-weight: 800;
}


/* ==========================================================
   LATEST GUIDES
   ========================================================== */

.ddc-latest-list {
    display: grid;
    gap: 16px;
}

.ddc-latest-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

/* Latest guide thumbnail */
.ddc-latest-thumb {
    display: block;

    width: 82px;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eee8df;

    border-radius: 10px;
}

.ddc-latest-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Latest guide title */
.ddc-latest-copy a {
    display: block;

    margin-bottom: 5px;

    color: #302820;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.38;

    text-decoration: none;
}

.ddc-latest-copy a:hover,
.ddc-latest-copy a:focus-visible {
    color: #60744f;
}

.ddc-latest-copy span {
    color: #857c73;

    font-size: 11px;
    line-height: 1.35;
}


/* ==========================================================
   SIDEBAR BUTTONS
   ========================================================== */

.ddc-sidebar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 5px;
    padding: 12px 15px;

    background: #667a52;
    color: #ffffff;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ddc-sidebar-button:hover,
.ddc-sidebar-button:focus-visible {
    background: #526342;
    transform: translateY(-1px);
}

/* Secondary button */
.ddc-sidebar-button-secondary {
    margin-top: 15px;

    background: #ffffff;
    color: #60744f;

    border: 1px solid #cad4bf;
}

.ddc-sidebar-button-secondary:hover,
.ddc-sidebar-button-secondary:focus-visible {
    background: #f3f6ef;
    color: #526342;
}


/* ==========================================================
   TEXT LINKS
   ========================================================== */

.ddc-sidebar-text-link {
    display: inline-flex;
    align-items: center;

    margin-top: 3px;

    color: #60744f;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;

    text-decoration: none;
}

.ddc-sidebar-text-link:hover,
.ddc-sidebar-text-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================
   PINTEREST LIVE PROFILE CARD
   ========================================================== */

.ddc-pinterest-card {
    padding: 22px;

    background: #fff8f1;

    border: 1px solid #e8ddd0;
    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(48, 40, 32, 0.07);
}

.ddc-pinterest-card .ddc-sidebar-eyebrow {
    margin-bottom: 9px;

    color: #9a6b5b;

    font-size: 10.5px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.ddc-pinterest-card h2 {
    margin: 0 0 12px;

    color: #302820;

    font-size: 23px;
    font-weight: 800;
    line-height: 1.18;
}

.ddc-pinterest-card > p:not(.ddc-sidebar-eyebrow) {
    margin: 0 0 18px;

    color: #6b625a;

    font-size: 13.5px;
    line-height: 1.6;
}

/* Pinterest embedded feed */

.ddc-pinterest-feed {
    width: 100%;
    margin-top: 18px;
    overflow: hidden;
    min-height: 475px;

    background: #ffffff;

    border: 1px solid #e7ded4;
    border-radius: 14px;
}

/* Help Pinterest iframe fit sidebar */
.ddc-pinterest-feed iframe {
    display: block;

    max-width: 100% !important;
    width: 100% !important;

    margin: 0 auto;
}

/* Profile CTA */

.ddc-pinterest-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 16px;

    color: #49382d;

    font-size: 11.5px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;

    text-decoration: none;
}

.ddc-pinterest-profile-link:hover,
.ddc-pinterest-profile-link:focus-visible {
    color: #667a52;
}


/* ==========================================================
   AUTHOR CARD
   ========================================================== */

.ddc-author-card {
    text-align: center;
}

.ddc-author-image {
    display: block;

    width: 112px;
    height: 112px;

    margin: 4px auto 16px;

    object-fit: cover;
    object-position: center;

    border: 4px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 8px 22px rgba(48, 40, 32, 0.14);
}

.ddc-author-card h2 {
    margin-bottom: 9px;

    font-size: 22px;
}

.ddc-author-role {
    margin: -2px 0 12px;

    color: #6f8757;

    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.4;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}


/* ==========================================================
   TABLET / SMALL DESKTOP
   ========================================================== */

@media (max-width: 1280px) {

    .ddc-article-shell {
        width: min(1040px, calc(100% - 36px));

        grid-template-columns: minmax(0, 1fr);

        gap: 28px;
    }

    .ddc-sidebar-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
    }

    .ddc-article-shell .single-article-content {
        order: 1;
    }

    .ddc-sidebar-left {
        order: 2;
    }

    .ddc-sidebar-right {
        order: 3;
    }

    .ddc-sidebar-left .ddc-sidebar-sticky,
    .ddc-sidebar-right .ddc-sidebar-sticky {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .ddc-sidebar-card {
        margin-bottom: 0;
    }

    .ddc-latest-item {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .ddc-latest-thumb {
        width: 86px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .ddc-article-shell {
        width: calc(100% - 28px);

        padding: 30px 0 58px;

        gap: 24px;
    }

    .ddc-sidebar-left .ddc-sidebar-sticky,
    .ddc-sidebar-right .ddc-sidebar-sticky {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ddc-sidebar-card {
        padding: 20px;

        border-radius: 14px;
    }

    .ddc-sidebar-card h2 {
        font-size: 20px;
    }

    .ddc-sidebar-card > p:not(.ddc-sidebar-eyebrow):not(.ddc-author-role) {
        font-size: 14px;
    }

    .ddc-latest-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .ddc-latest-thumb {
        width: 78px;
    }

    .ddc-latest-copy a {
        font-size: 14px;
    }

    .ddc-author-image {
        width: 105px;
        height: 105px;
    }

    .ddc-pinterest-card {
        padding: 20px;
    }

    .ddc-pinterest-card h2 {
        font-size: 21px;
    }

    .ddc-pinterest-feed {
        min-height: 0;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

    .ddc-article-shell {
        width: calc(100% - 24px);
    }

    .ddc-sidebar-card {
        padding: 18px;
    }

    .ddc-latest-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .ddc-latest-thumb {
        width: 72px;
    }

    .ddc-latest-copy a {
        font-size: 13.5px;
    }

    .ddc-sidebar-button {
        padding: 12px 14px;
    }

    .ddc-pinterest-card {
        padding: 18px;
    }

    .ddc-pinterest-profile-link {
        font-size: 11px;
    }
}

/* PINTEREST — COMPACT SIDEBAR DESIGN */

.ddc-pinterest-card {
    padding: 18px;
    border-radius: 15px;
}

.ddc-pinterest-card .ddc-sidebar-eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
}

.ddc-pinterest-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.ddc-pinterest-card > p:not(.ddc-sidebar-eyebrow) {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.ddc-pinterest-feed {
    margin-top: 12px;
    border-radius: 10px;
}

.ddc-pinterest-profile-link {
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: 0.7px;
}

.ddc-pinterest-card h2 {
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 7px;
}

.ddc-pinterest-card > p:not(.ddc-sidebar-eyebrow) {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
}