/* Jake's Fireworks stock list: page layout.
   Colours, type, spacing and radii come from brand/tokens.css and the components
   from brand/bundle.css, both copied unchanged from the Jake's Fireworks design
   system. No colour is named here except through a token. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font-text); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blue band: logo, headline, warehouse */
.top { padding: var(--space-3) 0; }
.top-row { display: flex; align-items: center; gap: var(--space-4); }
.logo { display: block; width: 132px; height: auto; flex: none; }
.top-headline { flex: 1; min-width: 0; }
.top-headline .jf-headline__main { font-size: 64px; line-height: 1; }
.top-headline .jf-headline__support { font-size: 40px; line-height: 1.05; }
.pick { display: flex; flex-direction: column; gap: var(--space-1); flex: none; }
.pick-label { font-size: 14px; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }

select, input[type="search"] {
  font-family: var(--font-text); font-size: 16px; line-height: 1.3; color: var(--black); background: var(--white);
  border: 3px solid var(--blue); border-radius: var(--radius-none); padding: var(--space-2) var(--space-3); min-height: 48px;
}
select { min-width: 280px; max-width: 100%; font-weight: 700; color: var(--blue); border-color: var(--white); }
select:focus-visible, input:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.jf-on-blue select:focus-visible { outline-color: var(--yellow); }

/* Tools row */
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0 var(--space-3); flex-wrap: wrap; }
.meta { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--blue); }
.tools { display: flex; gap: var(--space-2); align-items: stretch; flex-wrap: wrap; }
.find input { width: 320px; max-width: 100%; }
.tool-button { font-size: 20px; padding: var(--space-2) var(--space-3); min-height: 48px; white-space: nowrap; }

/* Grid */
.panel { border: 3px solid var(--blue); background: var(--white); margin-bottom: var(--space-5); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }
thead th {
  position: sticky; top: 0; background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.1; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap; padding-top: var(--space-3); padding-bottom: var(--space-3);
}
tbody td { border-top: 2px solid var(--gray-light); }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: var(--gray-light); }
.c-item { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
thead .c-item { color: var(--white); font-weight: 400; }
td.c-type { color: var(--blue); }
.c-qty { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.c-qty { font-weight: 700; }
td.c-qty.over { color: var(--red); font-weight: 900; text-transform: uppercase; }
td.c-qty.zero { font-weight: 400; opacity: 0.45; }
.type-inline { display: none; color: var(--blue); font-size: 14px; line-height: 1.45; }
.note { margin: 0; padding: var(--space-5) var(--space-3); text-align: center; font-size: 18px; font-weight: 700; color: var(--blue); }

/* Terms band */
.foot { background: var(--gray-light); padding: var(--space-3) 0; }
.foot .legal { margin: 0; color: var(--black); }
.foot a { color: var(--blue); font-weight: 700; }

@media (max-width: 820px) {
  .top-row { flex-wrap: wrap; gap: var(--space-3); }
  .logo { width: 96px; }
  .top-headline .jf-headline__main { font-size: 40px; line-height: 1.05; }
  .top-headline .jf-headline__support { font-size: 24px; line-height: 1.1; letter-spacing: 0.02em; }
  .pick { flex: 1 1 100%; }
  select { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .bar { align-items: stretch; flex-direction: column; }
  .tools { flex-direction: column; }
  .find input { width: 100%; }
  th, td { padding: var(--space-2); }
  thead .c-type, td.c-type { display: none; }
  .type-inline { display: block; }
  thead th { font-size: 14px; white-space: normal; padding-top: var(--space-2); padding-bottom: var(--space-2); }
  td.c-qty.over { white-space: normal; min-width: 76px; }
}
@media print {
  .pick, .tools { display: none; }
  thead th { position: static; }
  .panel { border-width: 1px; }
}
