/* ==========================================================================
   1. GLOBAL SYSTEM VARIABLES (THEME CONFIGURATION)
   ========================================================================== */
:root {
    /* Brand Design Palette - Golden Bakery Theme */
    --color-primary: #d97706;
    --color-primary-hover: #b45309;
    --color-text-dark: #292524;
    --color-text-muted: #78716c;
    --color-text-label: #57534e;
    --color-border: #e7e5e4;
    --color-border-input: #d6d3d1;
    --color-bg-card: #ffffff;
    --color-bg-card-tp: #ffffff82;
    --color-bg-body: #fdfbfc;
    --color-bg-disabled: #f5f5f4;
    --color-page-title: #76554940;

    /* Theme Layout Color Tokens */
    --color-dark-bg: #2d1302;
    --color-dark-border: #5c2707;
    --color-profile-dark-btn: #5c2707;

    /* Global Typography System */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;

    /* Functional Notification & Alert Colors */
    --color-success-text: #14532d;
    --color-success-bg: #cfffde;
    --color-success-border: #bbf7d0;
    --color-success-raw: #22c55e;

    --color-danger-text: #7f1d1d;
    --color-danger-bg: #f5b5b5;
    --color-danger-border: #fecaca;
    --color-danger-raw: #ef4444;

    --color-info-text: #1e3a8a;
    --color-info-bg: #eff6ff;
    --color-info-border: #bfdbfe;

    --color-warn-text: #713f12;
    --color-warn-bg: #fef9c3;

    --color-badge-blue-text: #b45309;
    --color-badge-blue-bg: #fef3c7;

    /* Isolated Header, Footer & Backdrop Elements */
    --color-bg-head: #2d130280;
    --color-bg-head-light: #52220499;
    --color-bg-foot: #110600c2;
    --color-bg-backdrop: #421a05cc;

    /* Dedicated Text Color Tokens for Isolated Dark Components */
    --color-text-head: #fef9c3;
    --color-text-foot: #e7e5e4;

    --main-width: min(75rem, 100%);
}

/* ==========================================================================
   2. REUSABLE FOUNDATIONS & STRUCTURAL BASE
   ========================================================================== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--color-bg-backdrop);
    color: var(--color-text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url('/images/recipe_back.jpg');
    background-repeat: repeat;
    background-size: 45rem;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Header & Footer Visual Treatments */
.recipe-header {
    background-image: linear-gradient(
        to right,
        rgb(38 21 11 / 10%) 20%,
        rgba(22, 11, 5, 0.6) 60%,
        rgb(22 11 5 / 21%) 100%
    ), url(/images/crusty_bread.jpg);
    background-size: var(--main-width) auto !important;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 .5rem .5rem;
}

.recipe-header,
.recipe-footer {
    width: var(--main-width);
    margin: 0 auto;
}

.recipe-header .header-logo a,
.recipe-header .nav-link {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.recipe-header .nav-link:hover {
    color: #f39c12;
}

.recipe-header .dropdown-caret {
    font-size: 0.65rem;
    margin-left: 5px;
    vertical-align: middle;
    color: rgba(255, 250, 245, 0.7);
}

header, .site-header {
    background: linear-gradient(135deg, var(--color-bg-head) 0%, var(--color-bg-head-light) 100%);
    color: var(--color-text-head);
    position: relative;
    z-index: 200;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.3);
}

footer, .site-footer {
    background-color: var(--color-bg-foot);
    color: var(--color-text-foot);
    position: relative;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

header::before, footer::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg' %3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

header > *, footer > * {
    position: relative;
    z-index: 2;
}
/* ==========================================================================
   3. SYSTEM STANDARD APP CONTAINER LAYOUTS
   ========================================================================== */
.full-page-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.content-cont {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content-cont > .container-fluid {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: var(--main-width);
    margin: 1rem auto;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1rem 2rem;
}

.content-cont > .container-fluid > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    margin: 1rem;
    justify-content: flex-start;
}

.content-cont.content-narrow > .container-fluid {
    background-color: var(--color-bg-card-tp);
}

.content-cont.content-narrow > .container-fluid > main.page-card {
    width: 28rem;
    margin: auto;
    background: transparent;
}

.page-card {
    flex: 1 0 auto;
    background-color: var(--color-bg-card);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* Centralized Small Form Card Layouts (Login & Registration) */
.auth-layout {
    max-width: 100%;
    background-color: var(--color-bg-card-tp);
}

.auth-layout .auth-container {
    padding: 2rem 3rem;
    background: var(--color-bg-card);
    border-radius: 1rem;
    min-height: 100%;
    margin: auto;
}

.auth-layout .page-title {
    text-align: center;
}

.auth-layout .page-subtitle {
    text-align: center;
    margin-bottom: 30px;
}

/* ==========================================================================
   4. SHARED FRAGMENTS (HEADER & FOOTER NAVIGATION)
   ========================================================================== */
.main-header {
    background-color: var(--color-bg-head);
    color: var(--color-bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-logo a {
    color: var(--color-bg-card);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--color-bg-card);
}

.nav-link--cta,
.nav-button--cta {
    color: #ffc107;
    font-weight: 600;
}

.nav-link--cta:hover,
.nav-button--cta:hover {
    color: #ffe082;
}

.nav-logout-form {
    margin: 0;
    display: inline;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0;
    transition: color 0.15s ease;
}

nav.header-nav div.nav-dropdown button.nav-button.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

nav.header-nav span.dropdown-caret {
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.recipe-footer {
    flex-shrink: 0;
    border-radius: .5rem .5rem 0 0;
    text-align: center;
    padding: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    background-color: var(--color-bg-foot);
    margin-top: auto;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-git-info {
    font-size: 0.75rem;
    color: #a8aeb4;
    margin-top: 6px;
}

.local-time {
    font-size: 0.75rem;
}

/* ==========================================================================
   5. CENTRAL UI COMPONENTS (FORMS, INPUTS & BUTTONS)
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group--last {
    margin-bottom: 28px;
}

.form-group--lastlast {
    margin-bottom: 0;
    display: none !important;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text-label);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border-input);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--color-bg-card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.btn {
    display: inline-block;
    width: auto;
    padding: 6px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.auth-layout .btn {
    width: 100%;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-bg-card);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
}

.btn--primary:active {
    transform: scale(0.98);
}

.add-primary-button {
    white-space: nowrap;
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 6px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
}

.form-error-msg {
    color: var(--color-danger-raw);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 600;
}

.form-input:disabled,
.profile-input-disabled {
    background-color: var(--color-bg-body);
    border-color: var(--color-border);
    color: #a8aeb4;
    cursor: not-allowed;
}

.btn:disabled {
    background-color: var(--color-bg-disabled);
    border-color: var(--color-border);
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* ==========================================================================
   6. ATOMIC VIEWS & REUSE BLOCKS
   ========================================================================== */
.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .5rem;
    margin-top: .5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.status-item:hover {
    border-color: #bce5c6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.status-icon {
    font-size: 1.75rem;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.dashboard-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: .5rem 0;
}

/* ==========================================================================
   7. GLOBAL NOTIFICATION BANNERS
   ========================================================================== */
.alert {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert--danger,
.danger-alert {
    color: var(--color-danger-text);
    background-color: var(--color-danger-bg);
    border-color: var(--color-danger-border);
}

.danger-alert .alert-text {
    color: var(--color-danger-text);
    font-weight: 700;
}

.alert--success,
.success-alert {
    color: var(--color-success-text);
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
}

.success-alert .alert-text {
    color: var(--color-success-text);
    font-weight: 700;
}

.alert--info {
    color: var(--color-info-text);
    background-color: var(--color-info-bg);
    border-color: var(--color-info-border);
}

/* ==========================================================================
   8. EXPLICIT ADMIN DROPDOWN LAYOUTS
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-dropdown .nav-button {
    background: none;
    border: none;
    color: #ffc107;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0 10px;
    margin: 0;
    line-height: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-dark-bg);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid var(--color-dark-border);
    z-index: 9999;
    padding: 6px 0;
    margin: 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.dropdown-item:hover {
    background-color: var(--color-dark-border);
    color: var(--color-bg-card);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* ==========================================================================
   9. INTERACTIVE DATATABLES OVERRIDES
   ========================================================================== */
table.dataTable {
    border-collapse: collapse;
    margin-bottom: 20px;
    width: 100%;
}

table.dataTable thead th {
    background-color: var(--color-bg-body);
    border-bottom: 2px solid var(--color-border);
    padding: 12px;
    font-size: 0.875rem;
    white-space: nowrap;
}

table.dataTable tbody td {
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
}

.table-responsive-wrapper {
    overflow-x: auto;
    width: 100%;
}

table.dataTable tbody td:first-child {
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--color-text-muted);
    margin: auto;
}

.page-card div.table-responsive-wrapper table#myRecipesTable {
    table-layout: fixed;
    width: 100%;
}

/* ==========================================================================
   10. ADMIN MATRIX, MODALS & PROFILE CONFIGS
   ========================================================================== */
.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 20px;
    background-color: var(--color-page-title);
    border-radius: 1rem;
}

.admin-header-flex .page-title {
    margin: 0;
    line-height: 1.2;
    font-size: 2rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

.admin-header-flex .page-subtitle {
    margin: 4px 0 0 0;
    font-size: 1.15rem;
    color: var(--color-text-muted, #78716c);
}

.admin-btn-group {
    display: inline-flex;
    gap: 10px;
}

.badge-permission {
    background-color: var(--color-badge-blue-bg);
    color: var(--color-badge-blue-text);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

dialog.admin-modal {
    border: none;
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--color-bg-card);
}

dialog.admin-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-actions-footer {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.modal-actions-footer .btn--cancel {
    background-color: #e9ecef;
    color: var(--color-text-label);
    width: auto;
}

.modal-actions-footer .btn--cancel:hover {
    background-color: #dee2e6;
}

.modal-actions-footer .btn--submit {
    width: auto;
}

.status-text--active {
    color: var(--color-success-raw);
    font-weight: 600;
}

.status-text--banned {
    color: var(--color-danger-raw);
    font-weight: 600;
}

.badge-locked {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
}

.hide-cell {
    display: none;
}

.auth-footer-links,
.auth-footer-text {
    text-align: center;
}

.auth-header-spacing {
    margin-bottom: 20px;
}

.auth-footer-links {
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-footer-links p {
    margin: 5px 0;
}

.profile-card {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px;
}

.profile-section-title {
    margin-top: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
}

.profile-input-hint {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.profile-password-btn {
    background-color: var(--color-profile-dark-btn);
}
/* ==========================================================================
   11. RECIPE CONTROLS, TOOLTIPS, HERO & ERROR PAGES
   ========================================================================== */
.amount-wrapper {
    position: relative;
    flex: 1;
}

.fraction-bubble {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.fraction-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

textarea {
    field-sizing: content;
    min-height: 3lh;
    max-height: 300px;
}

.ingredient-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.ingredient-row > select {
    flex: 3 1;
    min-width: 200px;
    height: 42px;
}

.form-actions-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.hero-flow-container {
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-flow-image-wrapper {
    float: left;
    width: min(100%, 380px);
    margin-right: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background-color: transparent !important;
}

.intro-paragraph {
    margin-bottom: 20px;
}

.search-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.brand-nobreak {
    white-space: nowrap;
}

.register-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, letter-spacing 0.2s ease;
}

.register-link:hover {
    text-transform: uppercase;
    font-size: .72rem;
}

/* Error Pages & Admin Debug Panel */
.page-card--error {
    text-align: center;
    padding: 5rem 3rem;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-danger-raw);
    margin-bottom: 10px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn--error-home {
    width: auto;
    padding: 10px 24px;
}

.admin-debug-panel {
    text-align: left;
    font-family: monospace;
    margin-top: 2rem;
}

.debug-header {
    margin-top: 0;
    border-bottom: 1px solid var(--color-danger-text);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-debug-status {
    font-size: 0.8rem;
    background: var(--color-danger-text);
    color: var(--color-bg-card);
    padding: 2px 6px;
    border-radius: 3px;
}

.debug-accordion {
    margin-top: 1rem;
    cursor: pointer;
}

.debug-summary {
    font-weight: bold;
    padding: 0.5rem 0;
    outline: none;
    user-select: none;
    color: var(--color-danger-text);
}

.debug-stacktrace {
    display: block;
    max-height: 350px;
    overflow: auto;
    background-color: #212529;
    color: #f8f9fa;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4rem;
    white-space: pre;
    word-break: normal;
    cursor: text;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Clickable Cards & Action Tray */
.clickable-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stretched-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: 6px;
    text-decoration: none;
    font-weight: 600;
}

.stretched-link::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
}

.header-grid {
    margin: 0 1rem 16px 1rem;
    width: auto;
    box-sizing: border-box;
}

/* Sticky Bottom Footer Tray */
.footer-tray {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin: 1.5rem 1rem 0 1rem; /* Matches <main>'s 1rem side margins */
    width: auto;
    background-color: var(--color-bg-card, #ffffff); /* Fixed variable name & hex */
    border-top: 1px solid var(--color-border, #e7e5e4); /* Fixed variable name */
}

/* Mobile / Portrait Mode: Full horizontal width, uncropped */
.hero-flow-image-wrapper {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
    padding: 0.5rem;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e4e0d5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-illustration {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Landscape / Tablet & Desktop (768px+): Float left so text wraps around it */
@media (min-width: 768px) {
    .hero-flow-image-wrapper {
        float: left;
        width: 48%;
        max-width: 520px;
        margin: 0.25rem 1.75rem 1rem 0;
    }
}


.hero-search-section {
    clear: both;
    padding-top: 20px;
}

/* ==========================================================================
   12. RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 75rem) {
    .recipe-header,
    .recipe-footer,
    .page-card {
        border-radius: 0;
    }
}

@media (max-width: 48rem) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .page-card {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable {
        display: block;
        width: 100%;
        border: none;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable thead {
        display: none;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable tbody,
    .page-card div.table-responsive-wrapper table#myRecipesTable tbody tr {
        display: block;
        width: 100%;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable tbody tr {
        background: #ffffff;
        border: 1px solid var(--color-border, #eef0f2);
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        box-sizing: border-box;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable tbody td {
        display: block;
        width: 100%;
        padding: 6px 0;
        text-align: left;
        border: none;
        box-sizing: border-box;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--color-text-muted, #777);
        display: inline-block;
        width: 90px;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable tbody td.actions-cell {
        margin-top: 12px;
        padding-top: 12px;
        order: 5;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable .admin-btn-group {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .page-card div.table-responsive-wrapper table#myRecipesTable .admin-btn-group a {
        flex: 1;
        text-align: center;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .container-fluid.py-3.page-card {
        padding: 0;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    span.shopping-item-text {
        white-space: normal;
    }
}

@media (max-width: 30rem) {

}