/* === CSS Variables === */
:root {
    --color-primary: #1c3557;
    --color-accent: #e05c23;
    --color-accent-soft: #fdf0ea;
    --color-text: #232323;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-soft: #f8f5f1;
    --color-border: #e5e0da;
    --font-brand: 'Chewy', cursive;
    --font-heading: 'Poppins', sans-serif;
}

/* === Map Styles === */
#eventmap {
    height: 90vh;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    margin: 0;
}

/* === Typography === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1 {
    font-family: var(--font-brand);
    color: var(--color-primary);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.7rem;
    font-weight: 600;
}

h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
}

h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
}

p {
    color: var(--color-text);
}

h1 a, h2 a, h3 a, h4 a, td a {
    color: var(--color-primary) !important;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, td a:hover {
    color: var(--color-accent) !important;
    text-decoration: underline;
}

.lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.lead strong {
    font-weight: 700;
    color: var(--color-text);
}


/* === Navbar === */
.navbar {
    background-color: var(--color-bg) !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    padding: 0.65rem 1.5rem !important;
}

.navbar-brand {
    font-family: var(--font-brand);
    font-size: 1.9rem;
    color: var(--color-accent) !important;
    text-decoration: none;
    padding-right: 5px;
}

.navbar-brand:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

.navbar-brand-text-wrapper {
    display: inline-block;
    position: relative;
}

.navbar-brand-text {
    font-family: var(--font-brand);
    font-size: 1.9rem;
    display: block;
    text-align: center;
    z-index: 1;
    position: relative;
    color: transparent; /* set by JS random colour */
}

.navbar-brand-stroke {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted) !important;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse, .navbar-collapse .nav-link {
        padding-left: 0.5rem;
    }
}


/* === Layout Containers === */
.global-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding-bottom: 1.5rem;
}

.global-container p {
    text-align: center;
    margin: 0.5em 6% 0;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .global-container h1 { font-size: 2.4rem; }
    .global-container p { font-size: 0.95rem; margin: 0.5em 0 0; }
}


/* === Hero Section === */
.hero-section {
    padding: 2.5rem 1.5rem 2rem;
}

.hero-section.hero-home {
    background-color: #ffffff;
    background-image:
        radial-gradient(circle, rgba(255, 69, 0, 0.16) 7px, transparent 7px),
        radial-gradient(circle, rgba(255, 215, 0, 0.18) 6px, transparent 6px),
        radial-gradient(circle, rgba(50, 205, 50, 0.14) 6px, transparent 6px),
        radial-gradient(circle, rgba(30, 144, 255, 0.15) 7px, transparent 7px),
        radial-gradient(circle, rgba(147, 112, 219, 0.14) 5px, transparent 5px),
        radial-gradient(circle, rgba(255, 105, 180, 0.15) 5px, transparent 5px),
        radial-gradient(circle, rgba(255, 140, 0, 0.16) 6px, transparent 6px);
    background-size:
        180px 140px, 220px 200px, 160px 220px,
        200px 160px, 250px 180px, 170px 210px, 210px 170px;
    background-position:
        8% 25%, 88% 15%, 45% 85%,
        72% 55%, 18% 72%, 62% 28%, 92% 78%;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.hero-section.hero-home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        #ff4500 0%, #ff4500 14.3%,
        #ff8c00 14.3%, #ff8c00 28.6%,
        #e6c200 28.6%, #e6c200 42.9%,
        #32cd32 42.9%, #32cd32 57.1%,
        #1e90ff 57.1%, #1e90ff 71.4%,
        #9370db 71.4%, #9370db 85.7%,
        #ff69b4 85.7%, #ff69b4 100%
    );
}

.hero-section h1 {
    font-size: 4.5rem;
}

.hero-section.hero-home p {
    color: var(--color-text-muted);
    padding: 0 5%;
}

.hero-section.hero-home p.lead {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.4rem; }
    .hero-section.hero-home p { padding: 0; }
    .hero-section.hero-home p.lead { font-size: 0.95rem; }
}

/* === Inner page hero tints === */
.hero-tint-1 { background-color: rgba(255, 69, 0, 0.05);   border-bottom: 3px solid rgba(255, 69, 0, 0.35); }
.hero-tint-2 { background-color: rgba(255, 140, 0, 0.05);  border-bottom: 3px solid rgba(255, 140, 0, 0.35); }
.hero-tint-3 { background-color: rgba(230, 194, 0, 0.06);  border-bottom: 3px solid rgba(230, 194, 0, 0.45); }
.hero-tint-4 { background-color: rgba(50, 205, 50, 0.05);  border-bottom: 3px solid rgba(50, 205, 50, 0.35); }
.hero-tint-5 { background-color: rgba(30, 144, 255, 0.05); border-bottom: 3px solid rgba(30, 144, 255, 0.35); }
.hero-tint-6 { background-color: rgba(147, 112, 219, 0.06); border-bottom: 3px solid rgba(147, 112, 219, 0.4); }
.hero-tint-7 { background-color: rgba(255, 105, 180, 0.05); border-bottom: 3px solid rgba(255, 105, 180, 0.35); }


/* === Search Form === */
.search-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: stretch;
    border-radius: 50px;
    overflow: hidden;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
    background: var(--color-bg);
}

.search-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 3px 16px rgba(224, 92, 35, 0.18);
}

.search-form__input {
    border: none;
    background: transparent;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    outline: none;
    min-width: 220px;
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__button {
    background: var(--color-accent);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    line-height: 1;
}

.search-form__button:hover {
    background: #c94d18;
}

.search-form__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.search-form__reset:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}


/* === Card colour accent classes (cycling top borders) === */
.event-card--accent-1,  .country-card--accent-1  { border-top: 3px solid #ff4500; }
.event-card--accent-2,  .country-card--accent-2  { border-top: 3px solid #ff8c00; }
.event-card--accent-3,  .country-card--accent-3  { border-top: 3px solid #e6c200; }
.event-card--accent-4,  .country-card--accent-4  { border-top: 3px solid #32cd32; }
.event-card--accent-5,  .country-card--accent-5  { border-top: 3px solid #1e90ff; }
.event-card--accent-6,  .country-card--accent-6  { border-top: 3px solid #9370db; }
.event-card--accent-7,  .country-card--accent-7  { border-top: 3px solid #ff69b4; }


/* === Cards & Grids for country_list.html === */
.page-country-list {
    padding: 1.5rem 0;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 11rem);
    gap: 1.5rem;
    justify-content: center;
}

.country-card {
    border: none;
    border-radius: 10px;
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
}

.country-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

.country-card__box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.country-card__image-container {
    height: 120px;
    overflow: hidden;
}

.country-card__image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 0;
}

.country-card__body {
    overflow: hidden;
    padding: 0.8rem;
    transition: max-height 0.5s ease;
}

.country-card__title {
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.country-card__event-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-top: 0.5rem;
}

.country-card__event {
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.country-card__link {
    text-decoration: none;
    color: inherit;
}


/* === Cards & Grids for event_list.html === */
.event-section {
    padding: 1.5rem 0;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.75rem;
    justify-items: center;
}

.event-card {
    border: none;
    border-radius: 10px;
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    width: 18rem;
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
}

.event-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

.event-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.event-card__body {
    overflow: hidden;
    padding: 1rem;
    transition: max-height 0.5s ease;
}

.event-card__title {
    margin-bottom: 0.4rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.event-card__link {
    text-decoration: none;
    color: inherit;
}

.event-card__image-container {
    height: 155px;
    overflow: hidden;
}

.event-card__image {
    width: 100%;
    height: 155px;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card__image {
    transform: scale(1.04);
}

.event-card__country-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-top: 0.75rem;
}

.event-date-line {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.event-date-line i {
    color: var(--color-accent);
}


/* === Cards & Grids for recipe (event_location.html) === */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.recipe-card-wrapper {
    display: flex;
    justify-content: center;
}

.recipe-card.card {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
}

.recipe-card.card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}


/* === Buttons === */
.toggle-events-btn {
    background-color: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.toggle-events-btn:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-1px);
}

.toggle-events-btn:active {
    transform: translateY(0);
}

.toggle-events-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 92, 35, 0.25);
}

.button-wrapper {
    text-align: center;
}

.hidden {
    display: none;
}


/* === Event Location Image === */
.event-loc-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    .event-loc-image { max-width: 220px; }
}

@media (max-width: 767px) {
    .event-loc-image { display: none; }
}


/* === Brush Stroke Divider === */
.brush-stroke-container {
    display: block;
    margin: 0.75rem auto;
    width: 70%;
    height: auto;
    opacity: 0.5;
}

.brush-stroke {
    display: block;
    width: 100%;
    height: auto;
}

.line-color-1 { color: rgba(255, 69, 0, 0.8); }
.line-color-2 { color: rgba(255, 140, 0, 0.8); }
.line-color-3 { color: rgba(255, 215, 0, 0.8); }
.line-color-4 { color: rgba(50, 205, 50, 0.8); }
.line-color-5 { color: rgba(30, 144, 255, 0.8); }
.line-color-6 { color: rgba(147, 112, 219, 0.8); }
.line-color-7 { color: rgba(255, 105, 180, 0.8); }

.grid__divider {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0.25rem 0;
}

@media (max-width: 1400px) {
    .grid__divider { display: none; }
}

.page-event-detail .grid__divider {
    display: block;
}

@media (max-width: 768px) {
    .page-event-detail .grid__divider { display: none; }
}

@media (max-width: 768px) {
    .event-loc-page { justify-content: center; }
}

.event-loc-page .grid__divider {
    display: block;
}

@media (max-width: 1000px) {
    .event-loc-page .grid__divider { display: none; }
}


/* === Pills / Badges === */
.pill-color-1 { background: rgba(255, 69, 0, 0.12); border: 1px solid rgba(255, 69, 0, 0.5); color: #333; }
.pill-color-2 { background: rgba(255, 140, 0, 0.12); border: 1px solid rgba(255, 140, 0, 0.5); color: #333; }
.pill-color-3 { background: rgba(200, 160, 0, 0.12); border: 1px solid rgba(200, 160, 0, 0.5); color: #333; }
.pill-color-4 { background: rgba(50, 205, 50, 0.12); border: 1px solid rgba(50, 205, 50, 0.5); color: #333; }
.pill-color-5 { background: rgba(30, 144, 255, 0.12); border: 1px solid rgba(30, 144, 255, 0.5); color: #333; }
.pill-color-6 { background: rgba(147, 112, 219, 0.12); border: 1px solid rgba(147, 112, 219, 0.5); color: #333; }
.pill-color-7 { background: rgba(220, 80, 130, 0.12); border: 1px solid rgba(220, 80, 130, 0.5); color: #333; }


/* === Footer === */
footer {
    background-color: var(--color-bg-soft) !important;
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.5rem !important;
    margin-top: 4rem !important;
}

footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--color-accent);
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-bottom: 0;
}

footer .list-inline-item + .list-inline-item::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--color-border);
}


/* === Breadcrumb / Navigation links === */
.page-breadcrumb {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.page-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: var(--color-accent);
}

.page-breadcrumb .sep {
    color: var(--color-border);
    margin: 0 0.4rem;
}


/* === Recipe Detail === */
.recipe-intro-container {
    margin-bottom: 1.5rem;
}

.recipe-section {
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    text-align: left;
}

.recipe-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.4rem;
    display: inline-block;
}

li.lead {
    font-family: inherit;
    color: var(--color-text);
    font-size: 0.95rem;
}


/* === Alternating text sections === */
.alternating-text {
    padding: 1rem 2rem;
}

@media (max-width: 768px) {
    .alternating-text { padding: 1rem 0; }
    .alternating-text p { font-size: 1rem; }
}

.event-loc-list {
    align-self: flex-start;
}

.text-inset {
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .text-inset { padding-left: 0; }
}


/* === Misc / Legacy === */
.card-img-top {
    max-height: 200px;
    object-fit: cover;
}

.recipe-image {
    max-width: 400px;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    .recipe-image { max-width: 300px; }
}

@media (max-width: 768px) {
    .recipe-container li { font-size: 1rem; }
    .recipe-intro-container p.lead { font-size: 1.05rem; }
}

.form-section { margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1rem; }
.form-row .col { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-buttons { margin-bottom: 1rem; }
.error-message { color: #dc3545; font-weight: bold; margin-top: 10px; }

.global-text-container {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}


/* === Staff form pages (event/location/event-location/recipe create & edit) === */
.staff-form-page { max-width: 800px; margin: 0 auto; }
.staff-form-page h2 { font-size: 1.5rem; margin-bottom: 0.25rem; text-align: left; }
.staff-form-page .page-subtitle { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 2rem; }

.tool-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tool-section__title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.35rem;
    display: inline-block;
    margin-bottom: 1.1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.field-row.field-row--full { grid-template-columns: 1fr; }
.field-row.field-row--thirds { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
    .field-row, .field-row.field-row--thirds { grid-template-columns: 1fr; }
}

.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-sublabel {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.field-input,
.field-input select,
select.field-input {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg-soft);
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.field-input:focus,
select.field-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}

.field-input--error { border-color: #dc3545 !important; }

select.field-input[multiple] {
    min-height: 120px;
    padding: 0.4rem;
}

textarea.field-input { min-height: 80px; resize: vertical; }

.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

.form-non-field-errors {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: #842029;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.required { color: #dc3545; }

/* Django widget overrides inside tool-section */
.tool-section select,
.tool-section input[type=text]:not(.field-input),
.tool-section input[type=number]:not(.field-input) {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg-soft);
    font-family: inherit;
    box-sizing: border-box;
}

.tool-section select:focus,
.tool-section input[type=text]:focus,
.tool-section input[type=number]:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}

/* Date type toggle */
.date-toggle-row { display: flex; gap: 2rem; margin-bottom: 1.25rem; }
.date-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}
.date-toggle-label input[type=radio] { accent-color: var(--color-accent); width: 1rem; height: 1rem; }

/* Ingredient / step rows */
.list-rows { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }

.ingredient-row {
    display: grid;
    grid-template-columns: 3fr 1.5fr 1.5fr 2fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .ingredient-row { grid-template-columns: 1fr 1fr auto; }
}

.step-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: start;
}

.step-number {
    width: 1.8rem;
    text-align: center;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9rem;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.ingredient-col-headers {
    display: grid;
    grid-template-columns: 3fr 1.5fr 1.5fr 2fr auto;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.ingredient-col-headers span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}
@media (max-width: 640px) { .ingredient-col-headers { display: none; } }

/* Delete checkbox on formset rows */
.formset-delete {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-save {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-save:hover { background: #c94d18; transform: translateY(-1px); }

.btn-outline-small {
    background: transparent;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.btn-outline-small:hover { color: var(--color-accent); border-color: var(--color-accent); }

.btn-remove-row {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}
.btn-remove-row:hover { color: #dc3545; }


/* === Staff Navigation Bar === */
.staff-nav {
    background-color: var(--color-primary);
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
}
.staff-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    max-width: 1200px;
    margin: 0 auto;
}
.staff-nav__label {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.7rem;
    margin-right: 0.3rem;
}
.staff-nav__sep {
    color: rgba(255,255,255,0.3);
}
.staff-nav__link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.staff-nav__link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
