/* ProduceTrends site header + footer: ONE look for /home and every public
   page (/prices, /ports, /report, /guides and their Spanish twins).
   Markup: src/public_site.py site_header() / site_footer(). Behaviour:
   web/assets/sitenav.js. Every selector is scoped under header.site or
   footer.site, so neither page's own .btn, .wrap or link rules reach in, and
   these rules reach nothing else.

   Collapse widths were MEASURED in a browser (the full row's natural width
   plus about 16px of spare room); Spanish labels are longer, so Spanish has
   its own breakpoint keyed on html[lang^="es"]. If a label changes, measure
   again: the row must never wrap. */

/* ---------------- header ---------------- */
/* --pt-stagebar: set by brand.js on STAGING only (height of the fixed warning bar) */
header.site { position:sticky; top:var(--pt-stagebar,0px); z-index:40; background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line,#E4ECE6);
  font:400 15px/1.4 -apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color:var(--ink,#152119); }
header.site a:hover { text-decoration:none; }
header.site .sn-bar { max-width:1280px; margin:0 auto; padding:0 22px; height:64px;
  display:flex; align-items:center; gap:14px; }

/* wordmark (class "brand": brand.js swaps it for a customer logo on a white-label host) */
header.site .brand { display:flex; align-items:center; flex:none; font-weight:800; font-size:20px;
  line-height:1; color:var(--ink,#152119); white-space:nowrap; }
header.site .wm .p, footer.site .wm .p { color:#F97316; }
header.site .wm .t, footer.site .wm .t { color:#16A34A; }
header.site .wm .ewm, footer.site .wm .ewm { height:1em; width:auto; vertical-align:-.05em;
  margin:0 -.05em 0 -.01em; }

/* the six menu items */
header.site .sn-nav { display:flex; align-items:center; gap:2px; min-width:0; }
header.site .sn-link { color:var(--ink2,#2C3B33); font-size:14.5px; font-weight:600; padding:8px 10px;
  border-radius:9px; white-space:nowrap; }
header.site .sn-link:hover { background:var(--bg2,#F6FAF6); color:var(--grn-d,#12833C); }
header.site .sn-link.on { color:var(--grn-d,#12833C); background:var(--grn-s,#EBFAF0); }

/* right side: language, Log in, Start free trial, Menu */
header.site .sn-right { margin-left:auto; display:flex; align-items:center; gap:8px; flex:none; }
header.site .sn-lang { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 11px;
  border:1px solid var(--line,#E4ECE6); border-radius:9px; background:#fff; color:var(--ink2,#2C3B33);
  font-family:inherit; font-size:13.5px; font-weight:700; line-height:1; white-space:nowrap; cursor:pointer; }
header.site .sn-lang:hover { border-color:var(--grn,#16A34A); color:var(--grn-d,#12833C); }
header.site .sn-ico { flex:none; display:block; }
header.site .sn-btn { display:inline-flex; align-items:center; justify-content:center; height:38px;
  padding:0 16px; border-radius:10px; border:1px solid transparent; font-size:14px; font-weight:700;
  white-space:nowrap; line-height:1; }
header.site .sn-ghost { background:#fff; border-color:var(--line,#E4ECE6); color:var(--ink2,#2C3B33); }
header.site .sn-ghost:hover { border-color:var(--grn,#16A34A); color:var(--grn-d,#12833C); }
header.site .sn-primary { background:linear-gradient(180deg,#22B357,#16A34A); color:#fff;
  box-shadow:0 2px 10px rgba(22,163,74,.28); }
header.site .sn-primary:hover { background:linear-gradient(180deg,#1FA750,#12833C); color:#fff; }
header.site .sn-menu { display:none; align-items:center; gap:7px; height:38px; padding:0 13px;
  border:1px solid var(--line,#E4ECE6); border-radius:10px; background:#fff; color:var(--ink,#152119);
  font-family:inherit; font-size:14px; font-weight:700; line-height:1; cursor:pointer; white-space:nowrap; }
header.site .sn-menu:hover, header.site.sn-open .sn-menu { border-color:var(--grn,#16A34A);
  color:var(--grn-d,#12833C); }
header.site .sn-link:focus-visible, header.site .sn-btn:focus-visible, header.site .sn-lang:focus-visible,
header.site .sn-menu:focus-visible, header.site .sn-dlink:focus-visible, header.site .brand:focus-visible {
  outline:2px solid var(--grn,#16A34A); outline-offset:2px; }

/* drawer: the menu when the row does not fit */
header.site .sn-drawer { position:absolute; left:0; right:0; top:100%; background:#fff;
  border-bottom:1px solid var(--line,#E4ECE6); box-shadow:0 18px 40px rgba(16,40,25,.12);
  max-height:calc(100vh - 66px); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
header.site .sn-drawer[hidden] { display:none; }
header.site .sn-dwrap { max-width:1280px; margin:0 auto; padding:10px 22px 18px; }
header.site .sn-dnav { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:2px 18px; }
header.site .sn-dlink { display:flex; align-items:center; min-height:48px; padding:0 12px; border-radius:10px;
  color:var(--ink,#152119); font-size:16px; font-weight:600; }
header.site .sn-dlink:hover { background:var(--bg2,#F6FAF6); color:var(--grn-d,#12833C); }
header.site .sn-dlink.on { color:var(--grn-d,#12833C); background:var(--grn-s,#EBFAF0); }
header.site .sn-dfoot { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:8px;
  padding-top:10px; border-top:1px solid var(--line2,#F0F5F1); }
header.site .sn-dfoot .sn-lang { height:44px; padding:0 14px; font-size:15px; }

/* collapse: the full row measured 1096px in English and 1209px in Spanish
   (Chromium, Segoe UI, 11/13/2026); breakpoints are those plus 16px. A system
   font wider than Segoe UI could still overrun them, so sitenav.js also adds
   .sn-force when the row does not fit, whatever the width. */
@media (max-width:1112px) {
  header.site .sn-nav, header.site .sn-login { display:none; }
  header.site .sn-menu { display:inline-flex; }
}
@media (max-width:1225px) {
  html[lang^="es"] header.site .sn-nav, html[lang^="es"] header.site .sn-login { display:none; }
  html[lang^="es"] header.site .sn-menu { display:inline-flex; }
}
header.site.sn-force .sn-nav, header.site.sn-force .sn-login { display:none; }
header.site.sn-force .sn-menu { display:inline-flex; }
@media (min-width:1113px) {
  html:not([lang^="es"]) header.site:not(.sn-force) .sn-drawer { display:none !important; }
}
@media (min-width:1226px) {
  header.site:not(.sn-force) .sn-drawer { display:none !important; }
}
@media (max-width:560px) {
  header.site .sn-bar { padding:0 14px; gap:8px; height:60px; }
  header.site .brand { font-size:16px; }
  header.site .sn-right { gap:6px; }
  header.site .sn-hlang, header.site .sn-mt { display:none; }
  header.site .sn-menu { padding:0; width:40px; justify-content:center; }
  header.site .sn-btn { padding:0 12px; font-size:13.5px; }
  header.site .sn-drawer { max-height:calc(100vh - 62px); }
  header.site .sn-dwrap { padding:8px 14px 16px; }
}
@media (max-width:380px) {
  header.site .brand { font-size:15px; }
  header.site .sn-btn { padding:0 10px; font-size:13px; }
}

/* ---------------- footer ---------------- */
footer.site { background:#fff; border-top:1px solid var(--line,#E4ECE6); padding:40px 0 46px;
  font:400 14px/1.55 -apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--muted,#5F7168); text-align:left; }
footer.site .sf-wrap { max-width:1280px; margin:0 auto; padding:0 22px; display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,2fr); gap:28px 48px; }
footer.site .sf-wm { font-weight:800; font-size:19px; line-height:1; color:var(--ink,#152119); }
footer.site .sf-src { margin:12px 0 0; color:var(--faint,#8B9B92); font-size:13.5px; max-width:42ch; }
footer.site .sf-cols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
footer.site .sf-h { margin:0 0 10px; font-size:11.5px; font-weight:800; letter-spacing:.9px;
  text-transform:uppercase; color:var(--faint,#8B9B92); }
footer.site ul { list-style:none; margin:0; padding:0; }
footer.site li { margin:0 0 7px; }
footer.site a { color:var(--ink2,#2C3B33); text-decoration:none; }
footer.site a:hover { color:var(--grn-d,#12833C); text-decoration:underline; }
footer.site .sn-lang { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; margin-top:2px;
  border:1px solid var(--line,#E4ECE6); border-radius:9px; background:#fff; color:var(--ink2,#2C3B33);
  font-family:inherit; font-size:13.5px; font-weight:700; line-height:1.2; cursor:pointer; white-space:nowrap; }
footer.site .sn-lang:hover { border-color:var(--grn,#16A34A); color:var(--grn-d,#12833C); text-decoration:none; }
footer.site .sn-ico { flex:none; display:block; }
@media (max-width:860px) {
  footer.site .sf-wrap { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  footer.site { padding:32px 0 38px; }
  footer.site .sf-wrap { padding:0 14px; }
  footer.site .sf-cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
}
@media (max-width:380px) {
  footer.site .sf-cols { grid-template-columns:1fr; }
}
