/* Original approved desktop Home proportions; retain the added campaign section. */
@media (min-width: 1180px) {
  html body.kdd-home {
    background: #fff;
  }
  html body.kdd-home .kdd-header .kdd-top {
    min-height: 66px;
    gap: 24px;
  }
  html body.kdd-home .kdd-header .kdd-categories {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    box-sizing: border-box;
  }
  html body.kdd-home .kdd-header .kdd-categories > a {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }
  html body.kdd-home #kdd-main .khv-welcome {
    padding: 12px 0 16px;
    gap: 24px;
    grid-template-columns: minmax(480px, .82fr) minmax(0, 1.18fr);
  }
  html body.kdd-home #kdd-main .kdd-stories {
    gap: 8px;
    scrollbar-width: none;
  }
  html body.kdd-home #kdd-main .kdd-stories::-webkit-scrollbar {
    display: none;
  }
  html body.kdd-home #kdd-main .kdd-stories > a {
    flex: 0 0 112px;
    width: 112px;
    max-width: none;
    text-align: center;
  }
  html body.kdd-home #kdd-main .kdd-stories > a > span {
    width: 106px;
    height: 106px;
    padding: 4px;
    border: 2px solid #a3c83f;
    box-sizing: border-box;
  }
  html body.kdd-home #kdd-main .kdd-stories picture,
  html body.kdd-home #kdd-main .kdd-stories img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  html body.kdd-home #kdd-main .kdd-stories strong {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  html body.kdd-home #kdd-main .kdd-stories > a:last-child > span {
    position: relative;
    background: #f3f7e7;
  }
  html body.kdd-home #kdd-main .kdd-stories > a:last-child > span > * {
    visibility: hidden;
  }
  html body.kdd-home #kdd-main .kdd-stories > a:last-child > span::after {
    content: '';
    position: absolute;
    inset: 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M19 20h49l18 18-43 43L5 43Z' fill='%23a3c83f'/%3E%3Ccircle cx='60' cy='33' r='6' fill='white'/%3E%3Ccircle cx='29' cy='43' r='5' fill='white'/%3E%3Ccircle cx='49' cy='63' r='5' fill='white'/%3E%3Cpath d='M25 67 51 41' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  html body.kdd-home #kdd-main .khv-lifestyle-banner {
    height: 150px;
  }
  html body.kdd-home #kdd-feed {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) max-content max-content;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
  }
  html body.kdd-home #kdd-feed > .kdd-feed-title,
  html body.kdd-home #kdd-feed > .kdd-filter-row {
    display: contents;
  }
  html body.kdd-home #kdd-feed > .kdd-feed-title > div {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  html body.kdd-home #kdd-feed > .kdd-feed-title > div > p {
    display: none;
  }
  html body.kdd-home #kdd-feed #kdd-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.6px;
  }
  html body.kdd-home #kdd-feed > .kpa-browse-slot {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-width: 0;
    min-height: 0;
  }
  html body.kdd-home #kdd-feed .kpa-browse-bar:not(.is-floating) {
    padding: 3px;
    box-shadow: none;
    background: rgba(255, 255, 255, .65);
  }
  html body.kdd-home #kdd-feed .kpa-browse-bar:not(.is-floating) .kh-discovery-nav {
    padding: 2px;
    min-height: 0;
    box-shadow: none;
  }
  html body.kdd-home #kdd-feed .kpa-browse-bar:not(.is-floating) .kh-discovery-nav [data-kh-tab] {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 12px;
    line-height: 1.2;
  }
  html body.kdd-home #kdd-feed .kdd-filter-row > .kdd-tabs {
    grid-column: 3;
    grid-row: 1;
    gap: 6px;
    margin: 0;
    min-width: 0;
  }
  html body.kdd-home #kdd-feed .kdd-tabs > button {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  html body.kdd-home #kdd-feed #kdd-footer-link {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }
  html body.kdd-home #kdd-feed .kdd-tools button {
    min-height: 24px;
    height: 24px;
    padding: 0 3px;
    font-size: 11px;
    line-height: 1.2;
  }
  html body.kdd-home #kdd-feed .kdd-filter-row > .kdd-tools {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    font-size: 12px;
  }
  html body.kdd-home #kdd-feed > #kdd-grid,
  html body.kdd-home #kdd-feed > #kdd-status,
  html body.kdd-home #kdd-feed > .kdd-load,
  html body.kdd-home #kdd-feed > noscript,
  html body.kdd-home #kdd-feed > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }
  html body.kdd-home #kdd-feed > .woocommerce-notices-wrapper:empty {
    display: none;
  }
  html body.kdd-home #kdd-grid {
    margin-top: 5px;
  }
  html body.kdd-home #kdd-grid > .kdd-card {
    border: 1px solid #e7e8e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  }
  html body.kdd-home #kdd-grid > .kdd-card:not(:has(.kfinish-demo-link, video)) > .kdd-image {
    aspect-ratio: 6 / 5;
  }
  html body.kdd-home #kdd-grid > .kdd-card:not(:has(.kfinish-demo-link, video)) > .kdd-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  html body.kdd-home #kdd-grid .kdd-card-body {
    padding: 9px 10px 10px;
  }
  html body.kdd-home #kdd-grid .kdd-card-body h2 {
    min-height: 34px;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.2;
  }
  html body.kdd-home #kdd-grid .kdd-price {
    color: #15281b;
    font-size: 18px;
    font-weight: 700;
  }
  html body.kdd-home #kdd-grid .kdd-add button {
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 7px;
    background: #b2d84b;
    color: #142c19;
    font-size: 13px;
    box-shadow: none;
  }
  /* Keep the campaign addition compact beside its native action. */
  html body.kdd-home #kdd-main .kma-home-slot {
    margin: 0 0 16px !important;
  }
  html body.kdd-home #kdd-main .kma-home-slot > .kma-home-feature {
    display: grid !important;
    max-width: none !important;
    width: 100% !important;
    grid-template-columns: 100px minmax(0, 1fr) 300px !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 24px !important;
    row-gap: 4px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    text-align: left !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-campaign-link {
    grid-column: 1 !important;
    grid-row: 1 / 5 !important;
    align-self: start !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-campaign-link > .kcp-campaign-photo,
  html body.kdd-home #kdd-main .kma-home-feature > .kda-campaign-link > .kcp-campaign-photo img {
    display: block !important;
    width: 100px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy {
    display: contents !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy > small {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    align-self: end !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy > h2 {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy > .kda-card-price {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy > .kda-terms {
    grid-column: 2 !important;
    grid-row: 4 !important;
    align-self: start !important;
    margin: 0 !important;
    padding-top: 0 !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature > .kda-card-copy > .kda-actions {
    grid-column: 3 !important;
    grid-row: 1 / 5 !important;
    margin: 0 !important;
    align-self: center !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature .kda-buy {
    display: flex !important;
    align-items: end !important;
    gap: 10px !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature .kda-buy label {
    flex: 0 0 70px !important;
    width: 70px !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature .kda-buy input[type=number] {
    width: 70px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  html body.kdd-home #kdd-main .kma-home-feature .kda-buy button {
    flex: 1 1 auto !important;
    min-height: 44px !important;
  }
}
