.market-section { position: relative; display: grid; grid-template-columns: .9fr 1.15fr; gap: 3.5rem; align-items: center; padding: 3rem 3.5rem; margin-bottom: 6rem; background: #ede1f6; border-radius: 9px; scroll-margin-top: 0; }
.market-legacy-anchor { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; pointer-events: none; }
.market-intro .eyebrow { font-size: .65rem; margin-bottom: 1.2rem; }
.market-intro h2 { font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
.market-intro h2 em { color: #81608e; }
.market-intro > p:not(.eyebrow) { font-size: .85rem; line-height: 1.8; margin-top: 1.4rem; color: #715d7d; max-width: 24rem; }
.market-stall-photo { margin: 1.4rem 0; padding: 8px 8px 0; background: var(--paper); border-radius: 5px; }
.market-stall-window { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 3px; }
.market-stall-window img { position: absolute; top: -35%; left: 0; width: 100%; height: auto; }
.market-stall-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.market-stall-slides::-webkit-scrollbar { display: none; }
.market-stall-frame { position: relative; }
.market-stall-zoom { flex: 0 0 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; }
.market-stall-slides .market-stall-zoom img { position: static; width: 100%; height: 100%; object-fit: cover; }
.market-stall-zoom:focus-visible { outline: 3px solid #8c65a0; outline-offset: -3px; }
.market-stall-zoom-hint { position: absolute; z-index: 2; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(250, 247, 241, .9); box-shadow: 0 2px 8px #29123422; pointer-events: none; }
.market-stall-zoom-hint svg { width: 16px; height: 16px; fill: none; stroke: #5e3f6d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.market-photo-dialog { width: auto; max-width: min(1200px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #1d1222; overflow: hidden; }
.market-photo-dialog img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 24px); object-fit: contain; }
.market-stall-dots { display: flex; justify-content: center; gap: .1rem; padding-top: .3rem; }
.market-stall-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.market-stall-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d8c2e2; transition: background .2s; }
.market-stall-dots button[aria-current="true"]::before { background: #81608e; }
.market-stall-photo figcaption { padding: .55rem .2rem; text-align: center; font: italic .75rem/1.4 var(--serif); color: #715d7d; }
.market-intro .button { font-size: .75rem; min-height: 46px; padding: .75rem 1.1rem; }
.market-board { padding: 1.5rem 1.6rem 1.1rem; background: #faf7f1; border: 1px solid #efe5ec; border-radius: 5px; box-shadow: 8px 8px 0 #cdb1dd; }
.market-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.market-board-heading h3 { font: 400 1.8rem/1.15 var(--serif); }
.market-board-heading svg { width: 25px; height: 25px; fill: none; stroke: #a280b1; stroke-width: 1.2; flex-shrink: 0; }
.market-count { font-size: .7rem; margin-top: .35rem; color: #9b849f; }
.market-filters { display: flex; gap: .4rem; margin: 1rem 0 .5rem; flex-wrap: wrap; }
.market-filters button { background: transparent; color: #83688e; border: 1px solid transparent; border-radius: 999px; min-height: 36px; padding: .4rem .7rem; font: 500 .75rem var(--sans); }
.market-filters button[aria-pressed="true"] { border-color: #d8c2e2; color: #5e3f6d; background: #eee2f4; }
.market-list { list-style: none; padding: 0; margin: 0; min-height: 300px; }
.market-date-row { display: grid; grid-template-columns: 50px 1fr auto; gap: .9rem; align-items: center; padding: 1rem 0; border-top: 1px solid #e9dfe8; }
.market-date-badge { align-self: center; display: flex; flex-direction: column; align-items: center; padding: .4rem .25rem; background: #efe5f3; color: #71527f; border-radius: 5px; }
.market-date-month { font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.market-date-badge strong { font: 400 1.7rem/1.1 var(--serif); color: #4e335c; }
.market-date-weekday { font-size: .55rem; margin-top: .15rem; }
.market-next { display: block; margin-bottom: .3rem; font-size: .55rem; color: #67816a; font-weight: 600; letter-spacing: .04em; }
.market-date-copy h4 { margin: 0 0 .25rem; font: 600 .9rem/1.35 var(--sans); letter-spacing: 0; }
.market-date-time { font-size: .8rem; line-height: 1.55; color: #7b6684; }
.market-date-venue { font-size: .75rem; line-height: 1.55; color: #9b859f; }
.market-detail-button { font: 500 .75rem var(--sans); color: #725280; padding: .5rem 0 .5rem .5rem; min-height: 44px; background: transparent; white-space: nowrap; }
.market-board-note { padding-top: .8rem; border-top: 1px solid #e9dfe8; color: #a38da5; font-size: .6rem; }
.market-empty { padding: 1.5rem 0; font-size: .8rem; color: #83688e; }
.market-dialog { width: min(510px, calc(100vw - 32px)); padding: 2.8rem 2rem 2rem; max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 12px; background: #faf7f1; color: var(--ink); }
.market-dialog::backdrop { background: #211027a8; backdrop-filter: blur(3px); }
.market-dialog .eyebrow { font-size: .65rem; color: #9876a8; }
.market-dialog h2 { font-size: 2.3rem; margin-bottom: 1.3rem; }
.market-dialog-date { font-size: .9rem; font-weight: 600; }
.market-dialog-meta { margin-top: .4rem; font-size: .85rem; color: #81688e; }
.market-dialog-note { margin: 1.25rem 0; color: #81688e; font-size: .85rem; line-height: 1.7; }
.market-directions-note { padding: 1rem; background: #eee3f4; color: #8b7198; border-radius: 6px; font-size: .75rem; line-height: 1.7; margin-bottom: 1.2rem; }
.market-dialog .button { width: 100%; font-size: .8rem; }
.market-dialog .text-link { display: block; width: fit-content; margin: 1rem auto 0; font-size: .75rem; }
.market-section :is(button,a):focus-visible, .market-dialog :is(button,a):focus-visible { outline: 3px solid #8c65a0; outline-offset: 4px; }
.market-section [hidden] { display: none; }
@media (max-width: 1050px) {
  .market-section { gap: 2rem; padding: 2.5rem 2rem; grid-template-columns: .85fr 1.15fr; }
  .market-board { padding-inline: 1rem; }
  .market-date-row { grid-template-columns: 45px 1fr; gap: .7rem; }
  .market-detail-button { grid-column: 2; justify-self: start; margin-top: -.55rem; padding: 0; min-height: 44px; }
}
@media (max-width: 760px) {
  .market-section { grid-template-columns: 1fr; padding: 2.2rem 1.4rem; gap: 2rem; margin-bottom: 3.5rem; }
  .market-intro h2 { font-size: clamp(2.6rem, 9vw, 3.5rem); }
  .market-intro > p:not(.eyebrow) { max-width: none; }
  .market-stall-photo { max-width: 28rem; }
  .market-date-row { grid-template-columns: 45px 1fr auto; }
  .market-detail-button { grid-column: auto; margin: 0; min-height: 44px; }
  .market-list { min-height: 0; }
}
@media (max-width: 420px) {
  .market-section { padding-inline: 1.1rem; }
  .market-date-row { grid-template-columns: 43px 1fr; }
  .market-detail-button { grid-column: 2; margin-top: -.55rem; min-height: 44px; }
  .market-board-heading h3 { font-size: 1.65rem; }
  .market-dialog { padding-inline: 1.4rem; }
}
/* A market still waiting on its date. */
.market-date-row.is-tbc .market-date-badge { background: #f4eef6; }
.market-date-row.is-tbc .market-date-badge strong { font-size: 1.15rem; letter-spacing: .04em; }
.market-directions-link { display: block; width: fit-content; margin: 0 0 1.1rem; font-size: .8rem; }
.market-dialog [hidden] { display: none !important; }
.market-filters[hidden] { display: none; }
/* A short update for visitors, such as a cancelled market. */
.site-notice { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .15rem 1rem; padding: .7rem 48px; background: #f8e3cf; color: var(--ink); border-bottom: 1px solid #e8cbb0; font-size: .8rem; line-height: 1.55; text-align: center; }
.site-notice[hidden], .market-notices[hidden] { display: none; }
.site-notice p { max-width: 68rem; }
.site-notice strong, .market-notices strong { display: block; font-weight: 650; }
.site-notice a { padding: .35rem 0; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-notice a:hover { color: var(--teal); }
.market-notices { margin: 1rem 0 .4rem; padding: .85rem 1rem; background: #f8e3cf; border-left: 3px solid var(--coral); border-radius: 4px; color: var(--ink); font-size: .8rem; line-height: 1.6; }
.market-notices p + p { margin-top: .6rem; }
@media (max-width: 800px) { .site-notice { padding: .7rem 24px; font-size: .78rem; } }
@media (max-width: 360px) { .site-notice { padding-inline: 16px; } }
