.atlas-hub-public {
    --atlas-hub-accent: var(--wp--preset--color--primary, #d5672f);
    --atlas-hub-accent-contrast: #ffffff;
    --atlas-hub-button-hover: #2fdc9b;
    --atlas-hub-number: var(--atlas-hub-accent);
    --atlas-hub-content-width: 900px;
    --atlas-hub-radius: 16px;
    --atlas-hub-radius-mobile: 12px;
    --atlas-hub-card-shadow: 0 12px 32px rgb(61 38 23 / 8%);
    --atlas-hub-border: #eadfd7;
    --atlas-hub-surface: #ffffff;
    --atlas-hub-muted-surface: #f8f5f2;
    box-sizing: border-box;
    width: min(calc(100% - 32px), var(--atlas-hub-content-width));
    margin: 0 auto;
    padding: 48px 0 72px;
    color: inherit;
    font-family: inherit;
}

.atlas-hub-public *,
.atlas-hub-public *::before,
.atlas-hub-public *::after {
    box-sizing: border-box;
}

.atlas-hub-public-layout {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1200px);
    margin: 0 auto;
}

.atlas-hub-public-layout *,
.atlas-hub-public-layout *::before,
.atlas-hub-public-layout *::after {
    box-sizing: border-box;
}

.atlas-hub-public-layout--with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
    gap: 40px;
}

.atlas-hub-public-layout__main,
.atlas-hub-public-layout__sidebar {
    min-width: 0;
}

.atlas-hub-public-layout__main > .atlas-hub-public {
    width: 100%;
}

.atlas-hub-public-layout__sidebar {
    padding: 48px 0 72px;
}

.atlas-hub-public-layout__sidebar > * {
    width: 100%;
    max-width: 100%;
}

.atlas-hub-public__header {
    margin-bottom: 48px;
}

.atlas-hub-public__title {
    margin: 0 0 24px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.atlas-hub-public__hero {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--atlas-hub-radius);
    background: var(--atlas-hub-muted-surface);
}

.atlas-hub-public__hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.atlas-hub-public__introduction {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.atlas-hub-public__introduction > :first-child,
.atlas-hub-public__recipe-excerpt > :first-child {
    margin-top: 0;
}

.atlas-hub-public__introduction > :last-child,
.atlas-hub-public__recipe-excerpt > :last-child {
    margin-bottom: 0;
}

.atlas-hub-public__recipes {
    display: grid;
    gap: 48px;
}

.atlas-hub-public__conclusion {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-top: 48px;
}

.atlas-hub-public__conclusion > :first-child {
    margin-top: 0;
}

.atlas-hub-public__conclusion > :last-child {
    margin-bottom: 0;
}

.atlas-hub-public__recipe {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--atlas-hub-border);
    border-radius: var(--atlas-hub-radius);
    background: var(--atlas-hub-surface);
    box-shadow: var(--atlas-hub-card-shadow);
}

.atlas-hub-public__recipe-card-link {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.atlas-hub-public__recipe-card-link:focus-visible {
    outline: 4px solid var(--atlas-hub-accent);
    outline-offset: -5px;
}

.atlas-hub-public__recipe:focus-within {
    border-color: var(--atlas-hub-accent);
}

.atlas-hub-public__recipe-title {
    margin: 0;
    padding: 24px 24px 18px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.25;
}

.atlas-hub-public__recipe-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    background: var(--atlas-hub-muted-surface);
}

.atlas-hub-public__recipe-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atlas-hub-public__recipe-image-wrapper--empty {
    display: grid;
    place-items: center;
}

.atlas-hub-public__recipe-image-placeholder {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 24px;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.68;
}

.atlas-hub-public__recipe-number {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 3px solid var(--atlas-hub-accent-contrast);
    border-radius: 50%;
    background: var(--atlas-hub-number);
    color: var(--atlas-hub-accent-contrast);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
}

.atlas-hub-public__recipe-action {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    margin-top: -24px;
    padding: 0 24px;
}

.atlas-hub-public__recipe--without-image .atlas-hub-public__recipe-action {
    margin-top: 0;
}

.atlas-hub-public__recipe-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--atlas-hub-accent);
    color: var(--atlas-hub-accent-contrast);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 5px 16px rgb(0 0 0 / 14%);
    transition: background-color 160ms ease, transform 160ms ease;
}

.atlas-hub-public__recipe-button:hover {
    background: var(--atlas-hub-button-hover);
    color: var(--atlas-hub-accent-contrast);
    text-decoration: none;
    transform: translateY(-2px);
}

.atlas-hub-public__recipe-button:focus-visible {
    outline: 3px solid var(--atlas-hub-accent);
    outline-offset: 3px;
}

.atlas-hub-public__recipe-excerpt {
    padding: 24px;
    font-size: 1.075rem;
    line-height: 1.75;
}

.atlas-whatsapp-cta {
    --atlas-whatsapp-primary: #128c3a;
    --atlas-whatsapp-background: #eef9ef;
    --atlas-whatsapp-hover: #0d742f;
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 32px 0;
    padding: 18px 20px;
    border: 1px solid #bfe5c5;
    border-color: color-mix(in srgb, var(--atlas-whatsapp-primary) 28%, transparent);
    border-radius: 16px;
    background: var(--atlas-whatsapp-background);
    color: #173d22;
    font-family: inherit;
}

.atlas-whatsapp-cta *,
.atlas-whatsapp-cta *::before,
.atlas-whatsapp-cta *::after {
    box-sizing: border-box;
}

.atlas-whatsapp-cta::after {
    position: absolute;
    bottom: -9px;
    left: 25px;
    width: 16px;
    height: 16px;
    border-right: 1px solid #bfe5c5;
    border-bottom: 1px solid #bfe5c5;
    border-color: color-mix(in srgb, var(--atlas-whatsapp-primary) 28%, transparent);
    background: var(--atlas-whatsapp-background);
    content: '';
    transform: rotate(45deg);
}

.atlas-whatsapp-cta__icon {
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--atlas-whatsapp-primary);
    color: #ffffff;
    place-items: center;
}

.atlas-whatsapp-cta__icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.atlas-whatsapp-cta__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.35;
}

.atlas-whatsapp-cta__eyebrow {
    margin-bottom: 2px;
    color: var(--atlas-whatsapp-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.atlas-whatsapp-cta__title {
    color: #173d22;
    font-size: 1.05rem;
    font-weight: 800;
}

.atlas-whatsapp-cta__description {
    margin-top: 2px;
    color: #385d41;
    font-size: 0.92rem;
}

.atlas-whatsapp-cta__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--atlas-whatsapp-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease, transform 160ms ease;
}

.atlas-whatsapp-cta__button:hover {
    background: var(--atlas-whatsapp-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.atlas-whatsapp-cta__button:focus-visible {
    outline: 3px solid #173d22;
    outline-offset: 3px;
}

.atlas-related-posts {
    width: 100%;
    margin: 48px 0 32px;
    font-family: inherit;
}

.atlas-related-posts *,
.atlas-related-posts *::before,
.atlas-related-posts *::after {
    box-sizing: border-box;
}

.atlas-related-posts__title {
    margin: 0 0 24px;
    color: inherit;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.atlas-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
}

.atlas-related-posts__card {
    min-width: 0;
    margin: 0;
}

.atlas-related-posts__image-link {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f1f1ef;
    color: inherit;
}

.atlas-related-posts__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 180ms ease;
}

.atlas-related-posts__image--empty {
    background: linear-gradient(135deg, #f3f3f1, #e4e4df);
}

.atlas-related-posts__card:hover .atlas-related-posts__image {
    transform: scale(1.025);
}

.atlas-related-posts__body {
    padding-top: 12px;
}

.atlas-related-posts__category {
    display: block;
    margin-bottom: 6px;
    color: #5b5b57;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.atlas-related-posts__card-title {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 700;
    line-height: 1.3;
}

.atlas-related-posts__card-title a {
    color: inherit;
    text-decoration: none;
}

.atlas-related-posts__card-title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.atlas-related-posts__card-title a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.atlas-hub-directory__header {
    margin-bottom: 40px;
}

.atlas-hub-directory .atlas-hub-public__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.atlas-hub-directory__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 48px;
}

.atlas-hub-directory__card {
    position: relative;
    min-width: 0;
}

.atlas-hub-directory__card-link {
    position: absolute;
    z-index: 3;
    inset: 0;
}

.atlas-hub-directory__card-link:focus-visible {
    outline: 3px solid var(--atlas-hub-accent);
    outline-offset: 5px;
}

.atlas-hub-directory__image-wrapper {
    display: grid;
    aspect-ratio: 7 / 5;
    margin: 0;
    place-items: center;
    overflow: hidden;
    background: var(--atlas-hub-muted-surface);
}

.atlas-hub-directory__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.atlas-hub-directory__card:hover .atlas-hub-directory__image,
.atlas-hub-directory__card:focus-within .atlas-hub-directory__image {
    transform: scale(1.025);
}

.atlas-hub-directory__placeholder {
    padding: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    opacity: 0.65;
}

.atlas-hub-directory__body {
    padding-top: 16px;
}

.atlas-hub-directory__meta {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
}

.atlas-hub-directory__title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.22;
    text-transform: none;
}

.atlas-hub-directory__excerpt {
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.atlas-hub-directory__empty {
    padding: 32px;
    border: 1px dashed var(--atlas-hub-border);
    border-radius: var(--atlas-hub-radius);
    background: var(--atlas-hub-muted-surface);
    text-align: center;
}

.atlas-hub-directory__empty p {
    margin: 0;
}

@media (max-width: 600px) {
    .atlas-hub-public {
        width: min(calc(100% - 24px), var(--atlas-hub-content-width));
        padding: 32px 0 48px;
    }

    .atlas-hub-public__header {
        margin-bottom: 36px;
    }

    .atlas-hub-public__title {
        margin-bottom: 18px;
    }

    .atlas-hub-public__hero,
    .atlas-hub-public__recipe {
        border-radius: var(--atlas-hub-radius-mobile);
    }

    .atlas-hub-public__recipes {
        gap: 32px;
    }

    .atlas-hub-public__recipe-title {
        padding: 20px 18px 16px;
    }

    .atlas-hub-public__recipe-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .atlas-hub-public__recipe-number {
        bottom: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        border-width: 2px;
        font-size: 0.9rem;
    }

    .atlas-hub-public__recipe-action {
        margin-top: -20px;
        padding: 0 16px;
    }

    .atlas-hub-public__recipe-button {
        width: auto;
        min-height: 44px;
        gap: 8px;
        padding: 10px 16px;
        font-size: clamp(0.78rem, 3.6vw, 0.85rem);
        white-space: nowrap;
    }

    .atlas-hub-public__recipe-excerpt {
        padding: 20px 18px 22px;
    }

    .atlas-hub-directory__header {
        margin-bottom: 30px;
    }

    .atlas-hub-directory__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .atlas-hub-directory__body {
        padding-top: 14px;
    }

    .atlas-whatsapp-cta {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        margin: 28px 0;
        padding: 16px;
        border-radius: 14px;
    }

    .atlas-whatsapp-cta__icon {
        width: 42px;
        height: 42px;
    }

    .atlas-whatsapp-cta__icon svg {
        width: 26px;
        height: 26px;
    }

    .atlas-whatsapp-cta__button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
    .atlas-hub-public-layout {
        width: min(calc(100% - 24px), 1200px);
    }

    .atlas-hub-public-layout--with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .atlas-hub-public-layout__sidebar {
        padding: 0 0 48px;
    }

    .atlas-related-posts {
        margin-top: 38px;
    }
}

@media (max-width: 560px) {
    .atlas-related-posts__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-hub-public__recipe-button,
    .atlas-hub-directory__image,
    .atlas-whatsapp-cta__button {
        transition: none;
    }

    .atlas-related-posts__image {
        transition: none;
    }

    .atlas-hub-directory__card:hover .atlas-hub-directory__image,
    .atlas-hub-directory__card:focus-within .atlas-hub-directory__image {
        transform: none;
    }

    .atlas-whatsapp-cta__button:hover {
        transform: none;
    }

    .atlas-related-posts__card:hover .atlas-related-posts__image {
        transform: none;
    }
}
