/*!
 * ANP Market Day — Market Stand hero (homepage). Ported from concepts/home-a2.html.
 * Every rule is scoped under .amd-st and every class is prefixed amd-st-.
 */
.amd-st {
  --beige: #EFE3C6; --paper: #F8F2E3; --tan-2: #E8D6A8; --brown: #6B4B2B; --brown-85: rgba(107, 75, 43, .85);
  --green: #009639; --green-dk: #0A6B2E; --green-ink: #0E4A25; --pumpkin: #D48B2E; --charcoal: #1A1617; --ink-2: #4A3F36;
  --line: rgba(107, 75, 43, .28); --white: #FFFDF8;
  --slab: "Zilla Slab", "Museo Slab", Georgia, serif;
  --sans: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --kraft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42 0 0 0 0 .29 0 0 0 0 .17 0 0 0 .10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  position: relative; overflow: hidden; color: var(--charcoal); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(60% 70% at 74% 46%, rgba(255,250,236,.95), rgba(255,250,236,0) 70%), radial-gradient(40% 40% at 88% 90%, rgba(221,119,63,.10), transparent 70%), var(--beige) var(--kraft);
}
/* layout responds to the block's own width (theme column, full-width page, editor) */
.amd-st { container: amdst / inline-size; }
.amd-st *, .amd-st *::before, .amd-st *::after { box-sizing: border-box; }
.amd-st .amd-ic { width: 1em; height: 1em; font-size: inherit; flex: none; }
.amd-st :focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; border-radius: 6px; }
/* low-specificity resets so theme button/input styles don't leak in */
:where(.amd-st) button { background: none; border: 0; border-radius: 0; color: inherit; padding: 0; margin: 0; font: inherit; line-height: inherit; letter-spacing: inherit; text-transform: none; box-shadow: none; min-height: 0; cursor: pointer; }
:where(.amd-st) input { margin: 0; box-shadow: none; border-radius: 0; }
:where(.amd-st) h1, :where(.amd-st) h2, :where(.amd-st) p { margin: 0; text-transform: none; letter-spacing: normal; }
:where(.amd-st) img { max-width: 100%; height: auto; }

.amd-st-in { max-width: 1240px; margin: 0 auto; padding: 56px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }

/* ---------- copy (Concept A hero, unchanged) ---------- */
.amd-st-eyebrow { display: block; font: 700 12px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }
.amd-st .amd-st-h1 { font-family: var(--slab); color: var(--green-ink); line-height: 1.08; text-wrap: balance; font-size: clamp(38px, 4.6cqi, 62px); font-weight: 700; letter-spacing: -.015em; margin: 18px 0; }
.amd-st .amd-st-h1 em { display: block; font-style: italic; font-weight: 500; color: var(--brown); font-size: .6em; margin-top: 10px; letter-spacing: 0; }
.amd-st .amd-st-lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 30px; max-width: 530px; }
.amd-st-cta { --cta-h: 58px; display: flex; flex-wrap: nowrap; gap: 14px; align-items: stretch; }
.amd-st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--green); color: #fff; font: 700 17px/1 var(--sans); text-decoration: none; height: var(--cta-h); padding: 0 30px; white-space: nowrap; transition: background .25s, transform .2s; }
.amd-st-btn:hover, .amd-st-btn:focus { background: var(--brown); color: #fff; }
.amd-st-zip { display: flex; align-items: center; gap: 8px; height: var(--cta-h); padding: 0 5px 0 18px; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--brown-85); margin: 0; }
.amd-st-zip:focus-within { box-shadow: 0 0 0 3px var(--pumpkin); }
.amd-st-zip > .amd-ic { font-size: 20px; color: var(--brown); }
.amd-st .amd-st-zip input { width: 84px; border: 0; background: transparent; font: 600 16px var(--sans); color: var(--charcoal); padding: 0; height: auto; outline: none; }
.amd-st .amd-st-zip button { height: calc(var(--cta-h) - 10px); padding: 0 20px; border-radius: 999px; background: var(--brown); color: #fff; font: 700 15px/1 var(--sans); white-space: nowrap; }
.amd-st .amd-st-zip button:hover { background: var(--green-ink); color: #fff; }
.amd-st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amd-st-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; font: 600 14px/1.3 var(--sans); color: var(--ink-2); }
.amd-st-mini a { color: var(--green-dk); }
.amd-st .amd-stars { display: inline-flex; gap: 2px; color: var(--pumpkin); font-size: 17px; }
.amd-st-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--brown-85); }

/* store results under the ZIP pill */
.amd-st-found { margin-top: 14px; max-width: 560px; background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -22px rgba(60,40,20,.6); padding: 12px 16px; font-size: 14px; }
.amd-st-found[hidden] { display: none; }
.amd-st-found .amd-st-fh { display: block; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 4px 0 8px; }
.amd-st-found ol { list-style: none; margin: 0; padding: 0; }
.amd-st-found li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.amd-st-found li:first-child { border-top: 0; }
.amd-st-found li b { font: 600 15px/1.25 var(--slab); color: var(--green-ink); }
.amd-st-found li small { grid-column: 1; color: var(--ink-2); font-size: 13px; }
.amd-st-found li .amd-st-mi { grid-row: 1; grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.amd-st-found li a { grid-column: 2; font-weight: 700; color: var(--green-dk); font-size: 13px; text-align: right; }
.amd-st-found .amd-st-all { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--green-dk); }

/* ---------- the stand ---------- */
.amd-st-stand { position: relative; padding: 0 6px; }
.amd-st-awning { height: 46px; margin: 0 4%; border-radius: 14px 14px 0 0; position: relative; z-index: 2; background: repeating-linear-gradient(90deg, #0E4A25 0 11.11%, #F8F2E3 11.11% 22.22%); box-shadow: 0 10px 18px -12px rgba(60,40,20,.55); }
.amd-st-awning::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.10)); }
/* scalloped valance: same stripes, masked into half-ellipses so each scallop matches its stripe */
.amd-st-awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: repeating-linear-gradient(90deg, #0E4A25 0 11.11%, #F8F2E3 11.11% 22.22%);
  -webkit-mask: radial-gradient(50% 100% at 50% 0, #000 97%, transparent 100%) 0 0 / 11.11% 100% repeat-x; mask: radial-gradient(50% 100% at 50% 0, #000 97%, transparent 100%) 0 0 / 11.11% 100% repeat-x;
  filter: drop-shadow(0 4px 3px rgba(60,40,20,.25)); }
/* hand-painted plank sign */
.amd-st-sign { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -46%) rotate(-1.5deg); background: linear-gradient(#FBF6EA, #F1E6CC); color: var(--green-ink); border-radius: 8px; padding: 8px 22px 9px; font: italic 600 20px/1 var(--slab); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 0 0 1.5px var(--brown-85), 0 0 0 4px #FBF6EA, 0 0 0 5.5px var(--brown-85), 0 8px 14px -8px rgba(60,40,20,.6); }
.amd-st-sign::before, .amd-st-sign::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--brown-85); }
.amd-st-sign::before { left: 8px; } .amd-st-sign::after { right: 8px; }

.amd-st-stamp { position: absolute; right: -22px; top: 70px; z-index: 5; width: 104px; height: 104px; transform: rotate(8deg); background: rgba(248,242,227,.96); border-radius: 50%; color: var(--brown); box-shadow: 0 12px 24px -14px rgba(60,40,20,.6); }
.amd-st-stamp text { font: 700 10.5px var(--sans); letter-spacing: .16em; fill: currentColor; text-transform: uppercase; }

.amd-st-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 318px; padding: 24px 1% 0; }
.amd-st-glow { position: absolute; left: 50%; bottom: 20px; width: 340px; height: 340px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--amd-gc, rgba(61,107,60,.35)), transparent 72%); transition: left .45s cubic-bezier(.2,.8,.2,1), background .45s; pointer-events: none; }
.amd-st .amd-st-bag { position: relative; flex: 0 0 auto; width: 19.5%; margin-inline: -2.4%; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s; transform-origin: 50% 100%; z-index: 1; }
.amd-st-bag img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 14px rgba(60,40,20,.35)); pointer-events: none; }
.amd-st-bag:nth-child(odd) { transform: rotate(-3deg); } .amd-st-bag:nth-child(even) { transform: rotate(2.5deg); }
.amd-st-bag:hover { transform: translateY(-8px) rotate(0); }
.amd-st-bag[aria-pressed="true"] { transform: translateY(-26px) scale(1.14) rotate(0); z-index: 3; }
.amd-st-bag[aria-pressed="false"] { filter: saturate(.85) brightness(.97); }
.amd-st-bag:focus-visible { outline: none; } .amd-st-bag:focus-visible img { filter: drop-shadow(0 0 0 var(--pumpkin)) drop-shadow(0 0 6px var(--pumpkin)); }

.amd-st-counter { position: relative; z-index: 2; margin-top: -26px; border-radius: 12px; background: linear-gradient(#B98A55, #9C6E3C); box-shadow: inset 0 3px 0 rgba(255,255,255,.22), 0 18px 30px -18px rgba(60,40,20,.7); padding: 12px 3% 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.amd-st .amd-st-chalk { background: #2B2A26; color: #F3EBD6; border-radius: 8px; padding: 8px 4px 7px; text-align: center; box-shadow: inset 0 0 0 2px #6B4B2B; transition: transform .2s, background .2s; }
.amd-st-chalk b { display: block; font: 700 14px/1.1 var(--slab); letter-spacing: .02em; }
.amd-st-chalk span { display: block; font: 600 11.5px/1.2 var(--sans); color: #CFC5AB; margin-top: 3px; font-variant-numeric: tabular-nums; }
.amd-st .amd-st-chalk:hover { background: #3a3833; color: #F3EBD6; }
.amd-st .amd-st-chalk[aria-pressed="true"] { background: var(--paper); color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green); transform: translateY(-3px); }
.amd-st-chalk[aria-pressed="true"] span { color: var(--brown); }

.amd-st-tag { position: relative; z-index: 4; margin: 18px 4% 0; background: var(--paper) var(--kraft); border-radius: 18px; padding: 18px 20px 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--paper), 0 0 0 7.5px var(--brown-85), 0 22px 40px -26px rgba(60,40,20,.6); }
.amd-st-tag::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--beige); box-shadow: inset 0 0 0 1.5px var(--brown-85); }
.amd-st-ey { font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brown); display: flex; gap: 8px; align-items: center; }
.amd-st-ey i { width: 9px; height: 9px; border-radius: 50%; background: var(--amd-gc2, #3d6b3c); flex: none; }
.amd-st .amd-st-name { font: 600 25px/1.1 var(--slab); color: var(--green-ink); margin: 6px 0 0; }
.amd-st .amd-st-name em { font-style: italic; font-weight: 500; color: var(--brown); font-size: .72em; }
.amd-st-facts { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font: 600 13.5px/1.3 var(--sans); color: var(--ink-2); }
.amd-st-facts b { color: var(--charcoal); font: 700 15px/1 var(--slab); margin-right: 3px; }
.amd-st-go { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 8px; justify-items: stretch; text-align: center; }
.amd-st-from { font: 600 13px var(--sans); color: var(--ink-2); } .amd-st-from b { font: 700 22px/1 var(--slab); color: var(--charcoal); }
.amd-st .amd-st-btn-sm { height: auto; padding: 13px 18px; font-size: 15px; }
.amd-st-txt { font: 700 13px var(--sans); color: var(--green-dk); }
.amd-st-swap { transition: opacity .2s; } .amd-st-tag.is-fading .amd-st-swap { opacity: 0; }
.amd-st-hint { text-align: center; font: 600 12.5px var(--sans); color: var(--brown); margin-top: 12px; }
.amd-st-hm { display: none; }

/* Theme button:hover/:focus fills — keep the stand's own looks. */
.amd-st .amd-st-bag:hover, .amd-st .amd-st-bag:focus, .amd-st .amd-st-bag:active { background: none; box-shadow: none; }
.amd-st .amd-st-bag, .amd-st .amd-st-chalk { -webkit-tap-highlight-color: transparent; }
.amd-st .amd-st-chalk:focus { background: #2B2A26; color: #F3EBD6; }
.amd-st .amd-st-chalk[aria-pressed="true"]:hover, .amd-st .amd-st-chalk[aria-pressed="true"]:focus { background: var(--paper); color: var(--green-ink); }
.amd-st .amd-st-zip button:focus { background: var(--brown); color: #fff; }

@container amdst (max-width: 1060px) {
  .amd-st-in { grid-template-columns: 1fr; padding-block: 36px 44px; }
  .amd-st-stand { max-width: 640px; margin-inline: auto; width: 100%; }
}
@container amdst (max-width: 640px) {
  .amd-st-in { padding-inline: 16px; }
  .amd-st-cta { --cta-h: 54px; flex-direction: column; }
  .amd-st .amd-st-zip input { flex: 1; min-width: 0; }
  .amd-st .amd-st-h1 { font-size: 40px; }
  .amd-st .amd-st-lede { font-size: 17px; }
  .amd-st-shelf { height: auto; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 58px 18px 0; gap: 4px; -ms-overflow-style: none; scrollbar-width: none; }
  .amd-st-shelf::-webkit-scrollbar { display: none; }
  .amd-st .amd-st-bag { width: 30%; margin-inline: 0; scroll-snap-align: center; }
  .amd-st-bag[aria-pressed="true"] { transform: translateY(-16px) scale(1.08); }
  .amd-st-counter { grid-template-columns: repeat(3, 1fr); margin-top: -18px; }
  .amd-st-tag { grid-template-columns: 1fr; margin-inline: 2px; }
  .amd-st-go { grid-column: 1; grid-row: auto; grid-template-columns: auto 1fr; align-items: center; text-align: left; }
  .amd-st-txt { grid-column: 1 / -1; text-align: center; }
  .amd-st-stamp { display: none; }
  /* The shelf scrolls sideways on phones, which clips the round glow into a tinted box — the lifted bag is cue enough. */
  .amd-st-glow { display: none; }
  .amd-st-hv { display: none; } .amd-st-hm { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .amd-st-bag, .amd-st-glow, .amd-st-swap { transition: none !important; } }
