:root { --sauce-coral: #dc542f; --sauce-blue: #2d536b; --sauce-paper: #fff7eb; }

body.recipe-template-page { background: var(--sauce-paper); color: var(--sauce-blue); }
.recipe-template-page header { margin: 0 auto; max-width: 1280px; }
.recipe-template-page nav a { color: var(--sauce-coral); }
.recipe-template-page main { margin: 0 auto; max-width: 1180px; padding: 48px 32px 82px; }
.recipe-template-page #what-we-do-detail { max-width: 100%; }
.recipe-template-page #what-we-do-detail > h1 { border-bottom: 3px solid var(--sauce-coral); color: var(--sauce-coral); font-size: clamp(2.5rem, 5.5vw, 4.2rem) !important; line-height: 0.9; margin: 0; max-width: 800px; padding: 0 0 28px; }
.recipe-template-page #what-we-do-detail > h1 + p { color: var(--sauce-coral); font-size: 1.1rem; line-height: 1.58; margin: 18px 0 0; max-width: 56ch; }
.recipe-template-page #what-we-do-detail > hr { display: none; }
.recipe-template-page .recipe-gallery { margin: 0 0 30px; max-width: 540px; }
.recipe-template-page .recipe-gallery figure { margin: 0; }
.recipe-template-page .recipe-gallery img { border: 1px solid rgba(45, 83, 107, 0.18); border-radius: 6px; display: block; height: auto; max-width: 100%; }
.recipe-template-page .content-container { background: #fff; border: 1px solid rgba(45, 83, 107, 0.18); border-radius: 6px; display: block; margin: 22px 0; max-width: 720px; overflow: hidden; }
.recipe-template-page .text-content { padding: 0; }
.recipe-template-page .text-content h2 { background: var(--sauce-blue); color: #fff !important; font-size: 1.15rem; font-weight: 700; line-height: 1.2; margin: 0; padding: 14px 18px; text-decoration: none !important; }
.recipe-template-page .text-content ul,
.recipe-template-page .text-content ol { color: #15242d !important; font-size: 1rem !important; line-height: 1.55; margin: 0; padding: 22px 28px 24px 45px; }
.recipe-template-page .text-content li + li { margin-top: 7px; }
.recipe-template-page #what-we-do-detail .text-content p { color: #15242d !important; font-size: 1rem !important; line-height: 1.55 !important; margin: 0; padding: 22px; }
.recipe-template-page .recipe-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; max-width: 720px; }
.recipe-template-page .recipe-actions a { border: 2px solid var(--sauce-blue); border-radius: 6px; color: var(--sauce-blue); font-size: 1rem; font-weight: 700; padding: 14px 18px; text-decoration: none; }
.recipe-template-page .recipe-actions a:first-child { background: var(--sauce-blue); color: #fff; }
.recipe-template-page .recipe-actions a:hover,
.recipe-template-page .recipe-actions a:focus-visible { background: #41677b; border-color: #41677b; color: #fff; outline: 3px solid rgba(220, 84, 47, 0.5); outline-offset: 3px; }

@media (min-width: 880px) {
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) { display: grid; gap: 22px 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) > h1,
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) > h1 + p { grid-column: 1 / -1; }
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) > .content-container { margin: 0; max-width: none; }
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) > .content-container:nth-of-type(odd) { grid-column: 1; }
    .recipe-template-page #what-we-do-detail:not(:has(.recipe-gallery)) > .content-container:nth-of-type(even) { grid-column: 2; }
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) { display: grid; gap: 12px 30px; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); }
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > h1,
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > h1 + p { grid-column: 1 / -1; }
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > h1 + p { margin-bottom: 0; }
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > .recipe-gallery { align-self: start; grid-column: 2; grid-row: 3 / span 4; margin: 0; max-width: none; }
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > .content-container { grid-column: 1; margin: 0; max-width: none; }
}

@media (max-width: 760px) {
    .recipe-template-page main { padding: 28px 18px 58px; }
    .recipe-template-page #what-we-do-detail > h1 { padding-bottom: 22px; }
    .recipe-template-page .recipe-actions { align-items: stretch; flex-direction: column; }
    .recipe-template-page .recipe-actions a { text-align: center; }
}

@media (max-width: 879px) {
    .recipe-template-page #what-we-do-detail:has(.recipe-gallery) > h1 + p { margin-bottom: 12px; }
}