/* ProducePulse house style: Roamler's colours and type, with a fresh produce accent. Shared by Ask and admin. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/montserrat.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/lato-700.woff2') format('woff2'); }

:root {
  color-scheme: light;
  /* Roamler */
  --orange: #ff6738; --orange-dk: #e8551f; --orange-soft: #fff0ea;
  --navy: #060d1f; --navy-mid: #0a1628; --navy-soft: #152340;
  /* Fresh produce */
  --leaf: #2d9a75; --leaf-dk: #1f7a5a; --leaf-soft: #e7f5ef; --tomato: #e8452c; --citrus: #f5a623;
  /* Surfaces */
  --page: #f8f7f3; --surface: #ffffff; --ink: #111827; --ink2: #3a4760; --ink3: #6b7a99;
  --line: rgba(10, 22, 40, .10); --line-md: rgba(10, 22, 40, .18); --chip: #f1f0ea;
  --red: #c62828;
  --shadow-sm: 0 2px 12px rgba(10, 22, 40, .06); --shadow-md: 0 8px 32px rgba(10, 22, 40, .10);
  --radius: 8px; --radius-lg: 16px;
  --head: 'Montserrat', system-ui, sans-serif; --body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* The hidden attribute always wins, also over components that set their own display. */
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0a1628; --surface: #111e36; --ink: #eef1f7; --ink2: #b7c0d4; --ink3: #8a96b0;
    --line: rgba(255, 255, 255, .09); --line-md: rgba(255, 255, 255, .18); --chip: #182844;
    --orange-soft: #3a1d14; --leaf: #3fbf93; --leaf-dk: #57d2a6; --leaf-soft: #12352b; --red: #ff7a7a;
    --shadow-sm: none; --shadow-md: 0 8px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, button, .button { font-family: var(--head); }
h1 { font-weight: 700; letter-spacing: -.02em; }
h2, h3 { font-weight: 700; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }

/* Header: Roamler navy, with a stripe in the colours of the produce. */
.topbar { background: var(--navy); color: #fff; padding: 12px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--tomato) 0 25%, var(--orange) 25% 50%, var(--citrus) 50% 75%, var(--leaf) 75% 100%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.brand small { display: block; font: 600 10.5px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.brand .product { color: var(--orange); }
/* Links on the right of the header, as on the product page. */
.toplinks { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 15px; }
.toplinks a { color: #fff; text-decoration: none; opacity: .85; white-space: nowrap; }
.toplinks a:hover { opacity: 1; }

/* Controls */
button, .button { font-weight: 600; font-size: 14.5px; line-height: 1.4; justify-content: center; padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius); background: var(--orange); color: #fff; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, color .15s; }
button:hover, .button:hover { background: var(--orange-dk); }
button.ghost, .button.ghost { background: transparent; color: var(--ink); border-color: var(--line-md); }
button.ghost:hover, .button.ghost:hover { border-color: var(--ink3); background: var(--chip); }
button.leaf { background: var(--leaf); } button.leaf:hover { background: var(--leaf-dk); }
button.danger { background: transparent; color: var(--red); border-color: var(--red); }
button.danger:hover { background: var(--red); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: 400 15px/1.4 var(--body); padding: 9px 12px; border: 1px solid var(--line-md); border-radius: var(--radius); background: var(--surface); color: var(--ink); min-width: 0; }
input:hover, select:hover, textarea:hover { border-color: var(--ink3); }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: var(--orange); inline-size: 17px; block-size: 17px; flex: none; }
main a:not(.button) { color: var(--orange-dk); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.muted { color: var(--ink3); }
.err { color: var(--red); }
.tag { display: inline-block; font: 600 11.5px/1.6 var(--head); padding: 1px 9px; border-radius: 99px; background: var(--chip); color: var(--ink2); }
.tag.good { background: var(--leaf-soft); color: var(--leaf-dk); }
.tag.warn { background: var(--orange-soft); color: var(--orange-dk); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
