/* Shared styles for every automation recipe page (copied from the service pages so they match). */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 130px 24px 40px;   /* top padding keeps content below the floating header */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);   /* keeps text sharp over the background video */
}

/* round green back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--green-dim);
    background-color: var(--green-soft);
    color: var(--green);                                   /* logo green */
    box-shadow: 0 0 14px rgba(126, 233, 111, 0.15);        /* faint glow */
    transition: background-color 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease;
}

/* the arrow drawing takes its color from the button */
.back-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* hover: fills green, arrow turns black, nudges left */
.back-btn:hover {
    background-color: var(--green);
    color: black;
    box-shadow: 0 0 22px var(--green-dim);
    transform: translateX(-3px);
}

/* small green label above the title */
.eyebrow {
    margin-top: 28px;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 3px;
}

h1 {
    font-size: 3rem;
    margin: 10px 0 20px;
}

/* section labels, same style as the About page */
main h2 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

main p {
    margin: 0 0 18px;
    color: #f2f6f2;
    font-size: 1.2rem;
    line-height: 1.75;
}

/* the opening paragraph a little larger */
main .lead {
    font-size: 1.4rem;
    line-height: 1.6;
}

main strong {
    color: var(--green);
}

/* faint line between sections */
.divider {
    border: 0;
    height: 1px;
    margin: 44px auto;
    background: linear-gradient(90deg, transparent, var(--green-dim), transparent);
}

main .pill-container {
    justify-content: flex-start;
    margin: 26px 0 0;
    text-shadow: none;
}

.muted {
    color: var(--text-muted) !important;
}

/* ---------- PAST PROJECTS ---------- */
/* one project: picture on the left, words on the right */
.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 10px;
}

.project img {
    width: 100%;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--green-soft);
}

.project h3 {
    font-size: 1.6rem;
    margin: 0 0 10px;
}

.project p {
    font-size: 1.1rem;
}

.project a {
    color: var(--green);
    font-weight: bold;
}

/* checklist of what it does */
.project ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.project li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    color: #f2f6f2;
    line-height: 1.5;
}

.project li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* the parts and tools it uses */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background-color: var(--green-soft);
    border: 1px solid var(--green-dim);
    color: var(--green);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: none;
}

/* ---------- HOW IT WORKS: numbered steps ---------- */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 6px 0 10px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 22px 62px;
}

/* the green numbered circle */
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-soft);
    border: 1px solid var(--green-dim);
    color: var(--green);
    font-weight: bold;
    text-shadow: none;
}

/* faint line joining the circles */
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 4px;
    width: 1px;
    background-color: var(--green-dim);
}

.steps h3 {
    margin: 6px 0 4px;
    font-size: 1.2rem;
}

.steps p {
    margin: 0;
    font-size: 1.05rem;
    color: #d6ddd7;
}

@media (max-width: 760px) {
    .project {
        grid-template-columns: 1fr;   /* picture on top on smaller screens */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 110px 20px 30px 40px;   /* extra room on the left for the Menu tab */
    }

    h1 {
        font-size: 2.2rem;
    }

    main p {
        font-size: 1.1rem;
    }

    main .lead {
        font-size: 1.2rem;
    }
}
    

/* recipe-only bits */
.recipe-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.recipe-list a {
    display: block;
    height: 100%;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    text-shadow: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.recipe-list a:hover { border-color: var(--green); transform: translateY(-3px); }
.recipe-list strong { display: block; color: #fff; margin-bottom: 6px; }
.recipe-list span { color: var(--text-muted); line-height: 1.5; }
.control {
    background: var(--green-soft);
    border: 1px solid var(--green-dim);
    border-radius: 16px;
    padding: 18px 22px;
    text-shadow: none;
}
.control ul { margin: 8px 0 0; padding-left: 20px; }
.control li { line-height: 1.7; color: #e8eee8; }
@media (max-width: 600px) {
    .recipe-list { grid-template-columns: 1fr; }
}

.muted a { color: var(--green); font-weight: bold; }
.control { margin: 30px 0; }
