/** Native Tips & trix articles. Scoped to the named post template. */
.post-template-template-tips-trix-native .egenbyggt-tips-native {
    --eb-tips-primary: var(--wd-primary-color, #4b7b2b);
    --eb-tips-heading: var(--wd-title-color, #242424);
    --eb-tips-text: var(--wd-text-color, #5b5b5b);
    --eb-tips-border: rgba(36, 36, 36, 0.12);
    width: min(100%, 980px);
    margin-inline: auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--eb-tips-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(36, 36, 36, 0.07);
    color: var(--eb-tips-text);
    font-size: 16px;
    line-height: 1.72;
}
.post-template-template-tips-trix-native .egenbyggt-tips-native :is(p, li) { font-size: inherit; line-height: inherit; }
.post-template-template-tips-trix-native .egenbyggt-tips-native :is(h1, h2, h3, h4, h5, h6) { color: var(--eb-tips-heading); line-height: 1.28; }
.post-template-template-tips-trix-native .egenbyggt-tips-native :is(h2, h3, h4) { margin-top: 34px; margin-bottom: 14px; }
.post-template-template-tips-trix-native .egenbyggt-tips-native h2 { font-size: 28px !important; font-weight: 700 !important; }
.post-template-template-tips-trix-native .egenbyggt-tips-native h3 { font-size: 21px !important; font-weight: 700 !important; }
.post-template-template-tips-trix-native .egenbyggt-tips-native a { color: var(--eb-tips-primary); text-underline-offset: 3px; }
.post-template-template-tips-trix-native .eb-tips-media { margin: 24px 0 34px; }
.post-template-template-tips-trix-native .eb-tips-image { display: block; width: 100%; height: auto; border-radius: 18px; }
.post-template-template-tips-trix-native .eb-tips-tools > * + * { margin-top: 22px; }
.post-template-template-tips-trix-native .eb-tips-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 36px; }
.post-template-template-tips-trix-native .eb-tips-gallery__item { margin: 0; }
.post-template-template-tips-trix-native .eb-tips-gallery .eb-tips-image { height: 100%; min-height: 220px; object-fit: cover; }
.post-template-template-tips-trix-native .eb-tips-products { margin-top: 22px; }

/* Dynor till utemöbler: native, content-preserving card layout. */
.post-template-template-tips-trix-native .eb-cushions { display: grid; gap: 28px; }
.post-template-template-tips-trix-native .eb-cushions__intro,
.post-template-template-tips-trix-native .eb-cushions__group {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(36, 36, 36, 0.12);
    border-radius: 22px;
    background: #fff;
}
.post-template-template-tips-trix-native .eb-cushions__intro { border-top: 4px solid var(--eb-tips-primary); }
.post-template-template-tips-trix-native .eb-cushions__intro > :first-child { margin-top: 0; }
.post-template-template-tips-trix-native .eb-cushions__intro > :last-child { margin-bottom: 0; }
.post-template-template-tips-trix-native .eb-cushions__heading { margin-bottom: 24px; }
.post-template-template-tips-trix-native .eb-cushions__heading h2 { margin: 6px 0 0; }
.post-template-template-tips-trix-native .eb-cushions__models {
    margin: 0;
    color: var(--eb-tips-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.post-template-template-tips-trix-native .eb-cushions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.post-template-template-tips-trix-native .eb-cushions__group:last-child .eb-cushions__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-template-template-tips-trix-native .eb-cushions__card {
    display: flex;
    min-height: 215px;
    flex-direction: column;
    padding: 24px 22px 20px;
    border: 1px solid rgba(36, 36, 36, 0.12);
    border-radius: 16px;
    background: #fff;
    color: var(--eb-tips-text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(36, 36, 36, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-template-template-tips-trix-native .eb-cushions__card:hover {
    transform: translateY(-2px);
    border-color: var(--eb-tips-primary);
    box-shadow: 0 12px 28px rgba(36, 36, 36, 0.10);
}
.post-template-template-tips-trix-native .eb-cushions__card h3 { margin: 0 0 12px; font-size: 21px; }
.post-template-template-tips-trix-native .eb-cushions__card-content { flex: 1; }
.post-template-template-tips-trix-native .eb-cushions__card-content > :first-child { margin-top: 0; }
.post-template-template-tips-trix-native .egenbyggt-tips-native a.eb-cushions__link {
    align-self: flex-start;
    margin-top: 18px;
    padding: 9px 15px;
    border-radius: 10px;
    background: var(--eb-tips-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* Tips & trix category archive. */
.egenbyggt-tips-archive { width: min(100%, 1180px); margin-inline: auto; padding: clamp(24px, 4vw, 52px) 0; }
.egenbyggt-tips-archive__header { margin-bottom: 30px; }
.egenbyggt-tips-archive__header h1 { margin: 0; color: var(--wd-title-color, #242424); }
.egenbyggt-tips-archive__description { max-width: 760px; margin-top: 12px; font-size: 16px; line-height: 1.7; }
.egenbyggt-tips-archive__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.egenbyggt-tips-card { overflow: hidden; border: 1px solid rgba(36,36,36,.12); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(36,36,36,.06); }
.egenbyggt-tips-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(36,36,36,.04); }
.egenbyggt-tips-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.egenbyggt-tips-card:hover .egenbyggt-tips-card__media img { transform: scale(1.025); }
.egenbyggt-tips-card__body { padding: 24px; }
.egenbyggt-tips-card__body h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.28; }
.egenbyggt-tips-card__body h2 a { color: var(--wd-title-color, #242424); }
.egenbyggt-tips-card__body p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; }
.egenbyggt-tips-archive__pagination { margin-top: 32px; }
@media (max-width: 767px) {
    .post-template-template-tips-trix-native .egenbyggt-tips-native { padding: 22px 18px; border-radius: 18px; }
    .post-template-template-tips-trix-native .eb-tips-media { margin-block: 18px 26px; }
    .post-template-template-tips-trix-native .eb-tips-gallery { grid-template-columns: 1fr; gap: 14px; }
    .post-template-template-tips-trix-native .eb-tips-gallery .eb-tips-image { min-height: 0; }
    .post-template-template-tips-trix-native .eb-cushions__intro,
    .post-template-template-tips-trix-native .eb-cushions__group { padding: 22px 18px; border-radius: 18px; }
    .post-template-template-tips-trix-native .eb-cushions__grid,
    .post-template-template-tips-trix-native .eb-cushions__group:last-child .eb-cushions__grid { grid-template-columns: 1fr; }
    .post-template-template-tips-trix-native .eb-cushions__card { min-height: 0; }
    .egenbyggt-tips-archive__grid { grid-template-columns: 1fr; gap: 20px; }
    .egenbyggt-tips-card__body { padding: 20px; }
}
