/*
 * DailyEggRates — site styles
 *
 * Replaces the Tailwind Play CDN (cdn.tailwindcss.com), which was a
 * JIT compiler running in every visitor's browser on every page load.
 * Tailwind's own documentation says not to ship it to production.
 *
 * This file contains only the utilities the templates actually use, plus
 * the site's own components. It is ~6KB instead of ~400KB of blocking JS.
 *
 * Enqueue it from functions.php — see INSTALL.md.
 */

/* ---------------------------------------------------------------- base */
:root {
    --deggr-orange: #f97316;
    --deggr-amber: #f59e0b;
    --deggr-slate-900: #0f172a;
    --deggr-slate-800: #1e293b;
    --deggr-slate-700: #334155;
    --deggr-slate-600: #475569;
    --deggr-slate-500: #64748b;
    --deggr-slate-200: #e2e8f0;
    --deggr-slate-50: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--deggr-slate-50);
    color: var(--deggr-slate-700);
    margin: 0;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; }

/* Visible keyboard focus everywhere. */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.deggr-skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: #fff; padding: .75rem 1rem; font-weight: 600;
}
.deggr-skip:focus { left: 0; }

/* ------------------------------------------------------------ layout */
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: .5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-4\.5, .px-4 { }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-12 { margin-top: 3rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }

.flex { display: block; display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-10 { gap: 2.5rem; }
.gap-x-3 { column-gap: .75rem; } .gap-x-5 { column-gap: 1.25rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 640px) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:border-r { border-right: 1px solid var(--deggr-slate-200); }
    .sm\:mt-0 { margin-top: 0; }
    .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:h-80 { height: 20rem; }
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:text-7xl { font-size: 4.5rem; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:p-8 { padding: 2rem; }
}

.w-full { width: 100%; }
.h-64 { height: 16rem; }
.relative { position: relative; }
.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }

/* --------------------------------------------------------- typography */
.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; } .text-6xl { font-size: 3.75rem; }
.font-normal { font-weight: 400; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.7; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }
.decoration-slate-300 { text-decoration-color: #cbd5e1; }

.text-white { color: #fff; }
.text-slate-900 { color: var(--deggr-slate-900); }
.text-slate-800 { color: var(--deggr-slate-800); }
.text-slate-700 { color: var(--deggr-slate-700); }
.text-slate-600 { color: var(--deggr-slate-600); }
.text-slate-500 { color: var(--deggr-slate-500); }
.text-slate-400 { color: #94a3b8; }
.text-orange-500 { color: var(--deggr-orange); }
.text-amber-500 { color: var(--deggr-amber); }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.hover\:text-amber-400:hover { color: #fbbf24; }
.hover\:text-amber-600:hover { color: #d97706; }
.hover\:text-amber-700:hover { color: #b45309; }

.bg-white { background: #fff; }
.bg-amber-50 { background: #fffbeb; }
.bg-green-50 { background: #f0fdf4; }
.hover\:bg-amber-50:hover { background: #fffbeb; }

.border { border: 1px solid var(--deggr-slate-200); }
.border-slate-200 { border-color: var(--deggr-slate-200); }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-700 { border-color: #334155; }
.border-b { border-bottom: 1px solid var(--deggr-slate-200); }
.border-t { border-top: 1px solid var(--deggr-slate-200); }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-amber-500 { border-color: var(--deggr-amber); }
.last\:border-b-0:last-child { border-bottom: 0; }
.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.focus\:ring-2:focus { outline: 2px solid var(--deggr-amber); outline-offset: 0; }

/* --------------------------------------------------------- components */
.deggr-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    position: sticky; top: 0; z-index: 50;
}

.deggr-nav-link { position: relative; transition: color .2s; }
.deggr-nav-link[aria-current="page"] { color: #d97706; }
.deggr-nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--deggr-orange); border-radius: 1px;
    transform: scaleX(0); transition: transform .2s;
}
.deggr-nav-link:hover::after, .deggr-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.deggr-mobile-menu { position: absolute; left: 0; right: 0; z-index: 40; }
.deggr-mobile-menu[hidden] { display: none; }
.deggr-mobile-menu-inner {
    margin: 0 1rem; background: #fff; border: 1px solid var(--deggr-slate-200);
    border-radius: .5rem; box-shadow: 0 10px 25px rgba(0,0,0,.15); overflow: hidden;
}

.deggr-footer { background: var(--deggr-slate-800); color: #cbd5e1; margin-top: 2rem; }
.deggr-footer h2 { color: #fff; }

input[type="number"], input[type="search"] {
    font: inherit; color: inherit; background: #fff;
    border: 1px solid #cbd5e1; border-radius: .5rem;
}

/* ============================================================
   Site chrome — header and footer
   Kept here rather than inline so header.php and footer.php stay
   plain PHP. Some shared hosts block saving files that contain
   inline <script>, <style> or SVG data, writing a 0-byte file.
   ============================================================ */

.sh-bar { background: #12261D; color: #EDEFEA; border-bottom: 3px solid #E8A317; }
.sh-in {
    max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 62px;
}
.sh-brand { font-weight: 600; font-size: 1.0625rem; color: #FFFFFF; text-decoration: none; white-space: nowrap; }
.sh-brand span { color: #E8A317; }
.sh-nav { display: flex; gap: 1.1rem; align-items: center; }
.sh-nav a {
    color: #C7D6CB; text-decoration: none; font-size: .9375rem;
    padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: #E8A317; }
.sh-toggle {
    display: none; background: none; border: 1px solid rgba(255,255,255,.3);
    color: #EDEFEA; padding: .4rem .6rem; border-radius: 2px; cursor: pointer;
    font: inherit; font-size: .875rem;
}
.sh-drawer { display: none; background: #12261D; border-top: 1px solid rgba(255,255,255,.14); }
.sh-drawer[data-open="true"] { display: block; }
.sh-drawer a {
    display: block; padding: .8rem 1.25rem; color: #C7D6CB; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.09); font-size: .9375rem;
}
.sh-drawer a:hover { color: #FFFFFF; background: rgba(255,255,255,.05); }
.sh-skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: .75rem 1rem; font-weight: 600; }
.sh-skip:focus { left: 0; }

@media (max-width: 860px) {
    .sh-nav { display: none; }
    .sh-toggle { display: block; }
}

.sf-foot {
    background: #12261D; color: #9DB3A5;
    font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: .9375rem;
}
.sf-in { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem 2rem; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2.5rem; }
.sf-foot h2 { color: #FFFFFF; font-size: .9375rem; font-weight: 600; margin: 0 0 .9rem; }
.sf-about { line-height: 1.65; margin: 0; max-width: 34ch; }
.sf-foot ul { list-style: none; margin: 0; padding: 0; }
.sf-foot li { margin-bottom: .55rem; }
.sf-foot a { color: #C7D6CB; text-decoration: none; }
.sf-foot a:hover { color: #E8A317; text-decoration: underline; text-underline-offset: 3px; }
.sf-social { display: flex; gap: 1rem; margin-top: .6rem; }
.sf-social a { color: #C7D6CB; font-size: .875rem; }
.sf-base {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .875rem; line-height: 1.6;
}
.sf-base p { margin: 0 0 .4rem; }

.sh-nav a:focus-visible, .sh-brand:focus-visible, .sh-toggle:focus-visible,
.sf-foot a:focus-visible, .sh-drawer a:focus-visible {
    outline: 2px solid #E8A317; outline-offset: 3px;
}