/* BakeCalc local utility layer. Replaces the subset of Tailwind utilities used by the static pages. */
:root {
  --cream: #FBF9F5;
  --caramel: #D97736;
  --terracotta: #C86D51;
  --dark: #2E282A;
  --soft: #F5EFE6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0, .flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.left-1\/2 { left: 50%; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.min-h-0 { min-height: 0; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.-mt-2 { margin-top: -.5rem; }
.-mx-5 { margin-left: -1.25rem; margin-right: -1.25rem; }
.p-1 { padding: .25rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pr-1 { padding-right: .25rem; }
.pr-2 { padding-right: .5rem; }
.pl-1 { padding-left: .25rem; }
.pl-2 { padding-left: .5rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1,minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }

/* Typography */
.font-sans { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-wider { letter-spacing: .05em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Colors */
.bg-white { background-color: #fff; }
.bg-cream { background-color: var(--cream); }
.bg-soft { background-color: var(--soft); }
.bg-soft\/40 { background-color: rgba(245,239,230,.4); }
.bg-soft\/60 { background-color: rgba(245,239,230,.6); }
.bg-caramel\/10 { background-color: rgba(217,119,54,.1); }
.bg-dark { background-color: var(--dark); }
.text-white { color: #fff; }
.text-cream { color: var(--cream); }
.text-dark { color: var(--dark); }
.text-caramel { color: var(--caramel); }
.text-red-500 { color: #ef4444; }
.text-dark\/30 { color: rgba(46,40,42,.3); }
.text-dark\/40 { color: rgba(46,40,42,.4); }
.text-dark\/50 { color: rgba(46,40,42,.5); }
.text-dark\/60 { color: rgba(46,40,42,.6); }
.text-dark\/70 { color: rgba(46,40,42,.7); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right,var(--caramel),var(--terracotta)); }
.from-caramel, .to-terracotta { }

/* Borders / radius / shadow */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-soft { border-color: var(--soft); }
.border-soft\/60 { border-color: rgba(245,239,230,.6); }
.border-dark\/10 { border-color: rgba(46,40,42,.1); }
.border-red-200 { border-color: #fecaca; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-tl-xl { border-top-left-radius: .75rem; }
.rounded-tr-xl { border-top-right-radius: .75rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1); }

/* Overflow / interaction */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transition-all { transition: all .2s; }
.transition-colors { transition: color .2s,background-color .2s,border-color .2s; }
.transition-transform { transition: transform .2s; }
.duration-300 { transition-duration: .3s; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bg-cream\/90 { background-color: rgba(251,249,245,.9); }
.translate-y-\[-200\%\] { transform: translateY(-200%); }
.translate-y-0 { transform: translateY(0); }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Screen reader only */
.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; }

/* Important modifiers used by legacy dynamic markup */
.\!h-10 { height: 2.5rem !important; }
.\!h-11 { height: 2.75rem !important; }
.\!text-sm { font-size: .875rem !important; line-height: 1.25rem !important; }
.\!px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }

/* Hover states */
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-caramel:hover { color: var(--caramel); }
.hover\:border-caramel:hover { border-color: var(--caramel); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1); }
.group:hover .group-hover\:text-caramel { color: var(--caramel); }

/* Responsive utilities used by the pages */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-nowrap { flex-wrap: nowrap; }
  .sm\:w-28 { width: 7rem; }
  .sm\:order-none { order: 0; }
  .sm\:inline { display: inline; }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .md\:text-sm { font-size: .875rem; line-height: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:mb-10 { margin-bottom: 2.5rem; }
  .md\:mt-10 { margin-top: 2.5rem; }
  .md\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
}


/* Coverage-complete utilities discovered by CI after Tailwind removal. */
.box-border { box-sizing: border-box; }
.items-end { align-items: flex-end; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.text-dark\/20 { color: rgba(46,40,42,.2); }

/* PortionCalc components moved into the shared local CSS layer. */
.portion-shape-card { border: 1px solid #E8E2D5; border-radius: 1rem; padding: 1rem; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.portion-shape-card:hover { border-color: var(--caramel); }
.portion-shape-active { border-color: var(--caramel); background: #FFF8F2; }
.portion-shape-card input { position: absolute; opacity: 0; pointer-events: none; }

@media (min-width: 768px) {
  .md\:gap-5 { gap: 1.25rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}
