@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    --dairy-ink: 22 56 48;
    --dairy-mint: 232 246 238;
    --dairy-cream: 249 250 246;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

body.fi-body {
    background:
        radial-gradient(ellipse at 92% 0%, rgb(var(--dairy-mint) / 0.58), transparent 34rem),
        rgb(var(--dairy-cream));
    color: rgb(var(--dairy-ink));
    font-size: 0.975rem;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* ----------------------------------------------------
   Filament Base Enhancements
---------------------------------------------------- */
.fi-sidebar {
    border-inline-end-color: rgb(20 83 45 / 0.1);
    background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

.fi-sidebar-item a,
.fi-sidebar-group-button {
    min-height: 2.85rem;
    border-radius: 0.9rem;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
    font-family: 'Cairo', sans-serif !important;
}

.fi-sidebar-item a:hover {
    transform: translateX(-2px);
}

.fi-sidebar-item.fi-active a {
    background: linear-gradient(100deg, rgb(16 185 129 / 0.13), rgb(16 185 129 / 0.04));
    font-weight: 700;
}

.fi-topbar {
    background: rgb(255 255 255 / 0.88);
    backdrop-filter: blur(14px);
}

.fi-page {
    animation: dairy-page-enter 360ms ease both;
}

.fi-section,
.fi-ta,
.fi-wi-stats-overview-stat,
.fi-fo-component-ctn {
    border-radius: 1.15rem;
}

.fi-section,
.fi-ta,
.fi-wi-stats-overview-stat {
    box-shadow: 0 5px 22px rgb(21 56 42 / 0.045);
}

.fi-btn {
    min-height: 2.65rem;
    border-radius: 0.8rem;
    font-weight: 650;
    font-family: 'Cairo', sans-serif !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.fi-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.fi-input-wrp {
    min-height: 2.85rem;
    border-radius: 0.8rem;
}

.fi-ta-header-cell,
.fi-ta-cell {
    padding-block: 0.9rem;
}

/* ----------------------------------------------------
   Grid Column Span Fixes for Dashboard Widgets
---------------------------------------------------- */
.fi-wi-widgets,
.fi-page-widgets > .grid,
.grid.fi-wi-widgets {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .fi-wi-widgets,
    .fi-page-widgets > .grid,
    .grid.fi-wi-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    .fi-wi-widgets,
    .fi-page-widgets > .grid,
    .grid.fi-wi-widgets {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Full Width Widgets */
.fi-wi-widget:has(.dairy-welcome),
.fi-wi-widget:has(.dairy-help-card),
div:has(> .dairy-welcome),
div:has(> .dairy-help-card),
.fi-wi-widget:has(.fi-wi-stats-overview),
div:has(> .fi-wi-stats-overview),
.col-span-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* 2-Column Widgets (Charts & Activity) */
.fi-wi-widget:has(.dairy-activity-widget),
div:has(> .dairy-activity-widget),
.fi-wi-widget:has(.fi-wi-chart),
div:has(> .fi-wi-chart) {
    grid-column: span 2 / span 2 !important;
}

@media (max-width: 1024px) {
    .fi-wi-widget:has(.dairy-activity-widget),
    div:has(> .dairy-activity-widget),
    .fi-wi-widget:has(.fi-wi-chart),
    div:has(> .fi-wi-chart) {
        grid-column: 1 / -1 !important;
    }
}

/* Stats Overview Cards Grid */
.fi-wi-stats-overview > div,
.fi-wi-stats-overview-stat-ctn {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

/* ----------------------------------------------------
   1. Dairy Welcome Banner Widget
---------------------------------------------------- */
.dairy-welcome {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    background:
        radial-gradient(ellipse at 85% 12%, rgba(110, 231, 183, 0.28), transparent 28rem),
        linear-gradient(118deg, #064e3b 0%, #047857 56%, #0f766e 100%);
    box-shadow: 0 14px 40px rgba(6, 78, 59, 0.22);
    width: 100%;
    box-sizing: border-box;
}

.dairy-welcome__orb {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    pointer-events: none;
}

.dairy-welcome__orb--one {
    top: -7rem;
    inset-inline-end: 8%;
    width: 20rem;
    height: 20rem;
    animation: dairy-float 9s ease-in-out infinite;
}

.dairy-welcome__orb--two {
    top: -4rem;
    inset-inline-end: 14%;
    width: 13rem;
    height: 13rem;
    animation: dairy-float 11s ease-in-out infinite reverse;
}

.dairy-welcome-content {
    position: relative;
    z-index: 10;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    width: 100% !important;
}

@media (min-width: 1100px) {
    .dairy-welcome-content {
        flex-direction: row !important;
        align-items: center !important;
    }
}

.dairy-welcome-text {
    max-width: 36rem !important;
    flex: 1 1 auto !important;
}

.dairy-welcome-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0.95rem !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #ecfdf5 !important;
    margin-bottom: 0.85rem !important;
    backdrop-filter: blur(6px) !important;
}

.dairy-welcome-badge svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
}

.dairy-welcome h2 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.35 !important;
}

.dairy-welcome p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    color: rgba(236, 253, 245, 0.92) !important;
    margin: 0 !important;
}

.dairy-welcome-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    min-width: 440px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .dairy-welcome-nav {
        grid-template-columns: 1fr !important;
        min-width: 100% !important;
    }
}

.dairy-quick-link {
    display: flex !important;
    min-height: 3.25rem !important;
    align-items: center !important;
    gap: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 0.95rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    padding: 0.75rem 1.1rem !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    backdrop-filter: blur(8px) !important;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.dairy-quick-link:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16) !important;
    color: #ffffff !important;
}

.dairy-quick-link svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
}

.dairy-quick-link__arrow {
    margin-inline-start: auto !important;
    opacity: 0.75 !important;
    transition: transform 180ms ease, opacity 180ms ease !important;
}

.dairy-quick-link:hover .dairy-quick-link__arrow {
    transform: translateX(-3px) !important;
    opacity: 1 !important;
}

/* ----------------------------------------------------
   2. Recent Activity Widget
---------------------------------------------------- */
.dairy-activity-widget,
section[wire\:poll] {
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 1.25rem !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 4px 22px rgba(21, 56, 42, 0.05) !important;
}

.dark .dairy-activity-widget,
.dark section[wire\:poll] {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dairy-activity-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 1.15rem 1.4rem !important;
}

.dark .dairy-activity-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dairy-activity-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
}

.dark .dairy-activity-title {
    color: #ffffff !important;
}

.dairy-activity-subtitle {
    margin: 0.2rem 0 0 !important;
    font-size: 0.78rem !important;
    color: #6b7280 !important;
}

.dark .dairy-activity-subtitle {
    color: #9ca3af !important;
}

.dairy-activity-link {
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    color: #047857 !important;
    text-decoration: none !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 0.6rem !important;
    background: #ecfdf5 !important;
    transition: all 160ms ease !important;
}

.dairy-activity-link:hover {
    background: #d1fae5 !important;
    color: #065f46 !important;
    transform: translateY(-1px) !important;
}

.dark .dairy-activity-link {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
}

.dairy-activity-list {
    display: flex !important;
    flex-direction: column !important;
}

.dairy-activity-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.95rem !important;
    padding: 0.95rem 1.4rem !important;
    border-bottom: 1px solid #f9fafb !important;
    transition: background-color 150ms ease !important;
}

.dark .dairy-activity-item {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.dairy-activity-item:hover {
    background: #fbfdfc !important;
}

.dark .dairy-activity-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.dairy-activity-item:last-child {
    border-bottom: none !important;
}

.dairy-activity-icon {
    display: flex !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    margin-top: 0.15rem !important;
}

.dairy-activity-icon svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

.dark .dairy-activity-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
}

.dairy-activity-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.dairy-activity-event {
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.dark .dairy-activity-event {
    color: #f3f4f6 !important;
}

.dairy-activity-desc {
    margin: 0.15rem 0 0 !important;
    font-size: 0.8rem !important;
    color: #4b5563 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dark .dairy-activity-desc {
    color: #9ca3af !important;
}

.dairy-activity-meta {
    margin: 0.35rem 0 0 !important;
    font-size: 0.72rem !important;
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.dark .dairy-activity-meta {
    color: #6b7280 !important;
}

.dairy-activity-empty {
    padding: 2.5rem 1.5rem !important;
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 0.88rem !important;
}

/* ----------------------------------------------------
   3. Dashboard Help Widget
---------------------------------------------------- */
.dairy-help-card {
    overflow: hidden !important;
    border-radius: 1.5rem !important;
    border: 1px solid #d1fae5 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.06) !important;
    width: 100% !important;
}

.dark .dairy-help-card {
    background: #111827 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.dairy-help-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

@media (min-width: 1024px) {
    .dairy-help-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr) !important;
    }
}

.dairy-help-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 2rem 2.25rem !important;
}

.dairy-help-badge {
    display: inline-flex !important;
    width: fit-content !important;
    align-items: center !important;
    gap: 0.45rem !important;
    border-radius: 9999px !important;
    background: #ecfdf5 !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #065f46 !important;
}

.dairy-help-badge svg {
    width: 1rem !important;
    height: 1rem !important;
}

.dark .dairy-help-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
}

.dairy-help-title {
    margin: 0.9rem 0 0 !important;
    font-size: 1.4rem !important;
    font-weight: 850 !important;
    color: #064e3b !important;
    letter-spacing: -0.02em !important;
    line-height: 1.4 !important;
}

.dark .dairy-help-title {
    color: #ffffff !important;
}

.dairy-help-desc {
    max-width: 40rem !important;
    margin: 0.65rem 0 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
    color: #4b5563 !important;
}

.dark .dairy-help-desc {
    color: #9ca3af !important;
}

.dairy-help-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin-top: 1.4rem !important;
}

.dairy-help-btn-primary {
    display: inline-flex !important;
    min-height: 2.75rem !important;
    align-items: center !important;
    gap: 0.55rem !important;
    border-radius: 0.85rem !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    padding: 0.65rem 1.25rem !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease !important;
}

.dairy-help-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.38) !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    color: #ffffff !important;
}

.dairy-help-btn-primary svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

.dairy-help-btn-secondary {
    display: inline-flex !important;
    min-height: 2.75rem !important;
    align-items: center !important;
    gap: 0.55rem !important;
    border-radius: 0.85rem !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    padding: 0.65rem 1.25rem !important;
    color: #374151 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

.dairy-help-btn-secondary:hover {
    transform: translateY(-2px) !important;
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

.dairy-help-btn-secondary svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

.dark .dairy-help-btn-secondary {
    border-color: #374151 !important;
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

.dairy-help-right {
    border-top: 1px solid #d1fae5 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    padding: 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 1024px) {
    .dairy-help-right {
        border-top: none !important;
        border-inline-start: 1px solid #d1fae5 !important;
    }
}

.dark .dairy-help-right {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.3) 0%, rgba(13, 148, 136, 0.2) 100%) !important;
}

.dairy-help-placeholder {
    display: flex !important;
    width: 100% !important;
    min-height: 13rem !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 1.15rem !important;
    border: 2px dashed #a7f3d0 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 1.5rem !important;
    text-align: center !important;
    backdrop-filter: blur(8px) !important;
}

.dark .dairy-help-placeholder {
    border-color: #047857 !important;
    background: rgba(17, 24, 39, 0.7) !important;
}

.dairy-help-play-bubble {
    display: flex !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 1rem !important;
    background: #d1fae5 !important;
    color: #047857 !important;
    margin-bottom: 0.65rem !important;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15) !important;
}

.dairy-help-play-bubble svg {
    width: 1.6rem !important;
    height: 1.6rem !important;
}

.dairy-help-video-title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #064e3b !important;
}

.dark .dairy-help-video-title {
    color: #ffffff !important;
}

.dairy-help-video-desc {
    max-width: 19rem !important;
    margin: 0.35rem 0 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
}

.dark .dairy-help-video-desc {
    color: #9ca3af !important;
}

.dairy-help-steps-badge {
    margin: 0.85rem 0 0 !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 9999px !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    color: #065f46 !important;
}

.dark .dairy-help-steps-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

/* ----------------------------------------------------
   4. User Guide Page Styles
---------------------------------------------------- */
.dairy-user-guide {
    max-width: 74rem;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.dairy-guide-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 18rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.75rem;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(110, 231, 183, 0.28), transparent 22rem),
        linear-gradient(118deg, #064e3b 0%, #047857 58%, #0f766e 100%);
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    box-shadow: 0 22px 50px rgba(6, 78, 59, 0.18);
}

.dairy-guide-hero::before,
.dairy-guide-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    content: "";
    pointer-events: none;
}

.dairy-guide-hero::before {
    top: -11rem;
    inset-inline-end: 6%;
    width: 27rem;
    height: 27rem;
}

.dairy-guide-hero::after {
    top: -7rem;
    inset-inline-end: 12%;
    width: 19rem;
    height: 19rem;
}

.dairy-guide-hero__content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.dairy-guide-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.45rem 0.85rem;
    color: #ecfdf5;
    font-size: 0.82rem;
    font-weight: 700;
}

.dairy-guide-hero__title {
    margin: 1rem 0 0;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.35;
}

.dairy-guide-hero__description {
    max-width: 43rem;
    margin: 0.75rem 0 0;
    color: rgba(236, 253, 245, 0.88);
    font-size: 0.98rem;
    line-height: 1.9;
}

.dairy-guide-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-top: 1.4rem;
}

.dairy-guide-hero__download {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.65rem 1rem;
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 750;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
    text-decoration: none;
}

.dairy-guide-hero__download:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.17);
    color: #065f46;
}

.dairy-guide-hero__note {
    color: rgba(236, 253, 245, 0.78);
    font-size: 0.78rem;
}

.dairy-guide-hero__visual {
    position: relative;
    display: flex;
    width: 10rem;
    min-width: 10rem;
    height: 10rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline-end: 2rem;
}

.dairy-guide-hero__visual-ring {
    position: absolute;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2.5rem;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(12deg);
}

.dairy-guide-hero__visual-icon {
    display: grid;
    width: 5.25rem;
    height: 5.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ecfdf5;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.dairy-guide-hero__visual-caption {
    position: relative;
    margin-top: 0.8rem;
    color: rgba(236, 253, 245, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
}

.dairy-guide-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    border: 1px solid #e1ebe4;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem 1.2rem;
    box-shadow: 0 5px 20px rgba(21, 56, 42, 0.04);
}

.dairy-guide-navigation__label {
    flex: 0 0 auto;
    color: #52685d;
    font-size: 0.78rem;
    font-weight: 750;
}

.dairy-guide-navigation__links {
    display: flex;
    flex: 1 1 38rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dairy-guide-navigation__links a {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e3ece6;
    border-radius: 0.8rem;
    background: #f8fbf8;
    padding: 0.45rem 0.75rem;
    color: #244337;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.dairy-guide-navigation__links a:hover {
    transform: translateY(-1px);
    border-color: #a7d7bd;
    background: #eff9f2;
}

.dairy-guide-navigation__links a span {
    color: #13845e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dairy-guide-section {
    border-color: #e3ebe5;
    box-shadow: 0 8px 26px rgba(21, 56, 42, 0.055);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dairy-guide-section:hover {
    transform: translateY(-1px);
    border-color: #c7dfcf;
    box-shadow: 0 12px 30px rgba(21, 56, 42, 0.075);
}

/* Animations */
@keyframes dairy-page-enter {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dairy-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

@media (max-width: 640px) {
    .dairy-welcome {
        padding: 1.5rem;
    }

    .dairy-guide-hero {
        min-height: 0;
        padding: 1.35rem;
    }

    .dairy-guide-hero__visual {
        display: none;
    }

    .dairy-guide-hero__description {
        font-size: 0.9rem;
    }

    .dairy-guide-navigation {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .dairy-guide-navigation__links {
        flex-basis: 100%;
    }

    .dairy-guide-navigation__links a {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* ====================================================
   Universal Utilities & Custom Page Layouts
   (Ensures pages render without Vite Tailwind compiler)
   ==================================================== */

/* SVG Dimensions & Constraints */
svg {
    box-sizing: content-box;
}
svg.h-3, .h-3 { height: 0.75rem !important; }
svg.w-3, .w-3 { width: 0.75rem !important; }
svg.h-4, .h-4 { height: 1rem !important; }
svg.w-4, .w-4 { width: 1rem !important; }
svg.h-5, .h-5 { height: 1.25rem !important; }
svg.w-5, .w-5 { width: 1.25rem !important; }
svg.h-6, .h-6 { height: 1.5rem !important; }
svg.w-6, .w-6 { width: 1.5rem !important; }
svg.h-8, .h-8 { height: 2rem !important; }
svg.w-8, .w-8 { width: 2rem !important; }
svg.h-9, .h-9 { height: 2.25rem !important; }
svg.w-9, .w-9 { width: 2.25rem !important; }
svg.h-10, .h-10 { height: 2.5rem !important; }
svg.w-10, .w-10 { width: 2.5rem !important; }
svg.h-11, .h-11 { height: 2.75rem !important; }
svg.w-11, .w-11 { width: 2.75rem !important; }
svg.h-12, .h-12 { height: 3rem !important; }
svg.w-12, .w-12 { width: 3rem !important; }
svg.h-16, .h-16 { height: 4rem !important; }
svg.w-16, .w-16 { width: 4rem !important; }

/* Flexbox utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-start { justify-content: flex-start !important; }
.flex-1 { flex: 1 1 0% !important; }
.shrink-0 { flex-shrink: 0 !important; }

/* Grid utilities */
.grid { display: grid !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:items-center { align-items: center !important; }
    .sm\:items-end { align-items: flex-end !important; }
    .sm\:items-start { align-items: flex-start !important; }
    .sm\:justify-between { justify-content: space-between !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-\[minmax\(150px\,1fr\)_minmax\(180px\,1fr\)_auto\] {
        grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) auto !important;
    }
    .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .sm\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .sm\:px-9 { padding-left: 2.25rem !important; padding-right: 2.25rem !important; }
    .sm\:py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .sm\:py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .sm\:p-6 { padding: 1.5rem !important; }
    .sm\:p-8 { padding: 2rem !important; }
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
    .md\:self-center { align-self: center !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-\[minmax\(0\,1fr\)_300px\] {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }
}

@media (min-width: 1280px) {
    .xl\:flex-row { flex-direction: row !important; }
    .xl\:items-end { align-items: flex-end !important; }
    .xl\:justify-between { justify-content: space-between !important; }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-\[minmax\(0\,1\.1fr\)_minmax\(0\,0\.9fr\)\] {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    }
}

/* Card & Container styling */
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-tr-md { border-top-right-radius: 0.375rem !important; }
.rounded-tl-md { border-top-left-radius: 0.375rem !important; }

.border { border: 1px solid #e5e7eb !important; }
.border-b { border-bottom: 1px solid #e5e7eb !important; }
.border-t { border-top: 1px solid #e5e7eb !important; }
.border-gray-100 { border-color: #f3f4f6 !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-300 { border-color: #d1d5db !important; }
.border-emerald-100 { border-color: #d1fae5 !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-600 { border-color: #059669 !important; }
.border-sky-100 { border-color: #e0f2fe !important; }
.border-amber-100 { border-color: #fef3c7 !important; }
.border-amber-200 { border-color: #fde68a !important; }
.border-teal-100 { border-color: #ccfbf1 !important; }
.border-rose-100 { border-color: #ffe4e6 !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }

.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-sky-50 { background-color: #f0f9ff !important; }
.bg-amber-50 { background-color: #fffbeb !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-teal-50 { background-color: #f0fdfa !important; }
.bg-teal-100 { background-color: #ccfbf1 !important; }
.bg-teal-700 { background-color: #0f766e !important; }
.bg-teal-800 { background-color: #115e59 !important; }
.bg-rose-50 { background-color: #fff1f2 !important; }
.bg-orange-50 { background-color: #fff7ed !important; }
.bg-violet-50 { background-color: #f5f3ff !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15) !important; }

.text-white { color: #ffffff !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-900 { color: #111827 !important; }
.text-gray-950 { color: #030712 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-950 { color: #022c22 !important; }
.text-sky-700 { color: #0369a1 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-900 { color: #78350f !important; }
.text-amber-950 { color: #451a03 !important; }
.text-teal-50 { color: #f0fdfa !important; }
.text-teal-100 { color: #ccfbf1 !important; }
.text-teal-700 { color: #0f766e !important; }
.text-rose-700 { color: #be123c !important; }
.text-orange-700 { color: #c2410c !important; }
.text-violet-700 { color: #6d28d9 !important; }

.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; }

.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-7 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.w-full { width: 100% !important; }
.max-w-6xl { max-width: 72rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-xl { max-width: 36rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, #0f766e, #115e59, #0f172a)) !important;
}
.from-teal-700 { --tw-gradient-from: #0f766e; --tw-gradient-stops: #0f766e, #115e59, #0f172a; }

/* Custom Guide Sections */
.dairy-guide-section {
    background: #ffffff !important;
    border: 1px solid #e2ebe4 !important;
    border-radius: 1.5rem !important;
    padding: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(21, 56, 42, 0.05) !important;
}
.dairy-guide-section ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.25rem 0 0 0 !important;
    display: grid !important;
    gap: 0.75rem !important;
}
@media (min-width: 768px) {
    .dairy-guide-section ol {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
.dairy-guide-section ol li {
    background: #f8faf8 !important;
    border: 1px solid #eef3ef !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
}

