/*
 * The homepage's working parts (includes/states.php, home-tool.php, home-wave.php), in the theme's look (docs/DESIGN.md):
 * the answer as a door decal (bottle glass, white vinyl lettering, a brass push plate), the rule on a torn till slip, the
 * overlap dial (an enamel face in a brass rim, lit from the top left, at rest at three-quarters), the curfew wave as
 * tiles, states A to Z as a table that becomes cards on a phone. Every rule is under a .hx- class; the theme's tokens
 * (assets/css/site.css :root) give the colours, the face and the sizes. Words sit on flat colour at 7:1 or better.
 * Motion only for a reader who has not asked for less (the theme stops all of it otherwise).
 */

.hx-tool [hidden], .hx-wave [hidden], .hx-dial [hidden] { display: none !important; }
.hx-flag { display: inline-block; padding: 0 6px; border: 1.5px solid var(--saffron); border-radius: 3px; background: #FFF4DF; color: var(--ink); font: 600 var(--t-small)/1.3 var(--sans); white-space: nowrap; vertical-align: baseline; }
.hx-none { color: var(--ink-2); }

/* ---- Can you buy right now? ---------------------------------------------------------------------------------- */
.hx-tool:not(.hx-live) .hx-ask { display: none; }
.hx-tool.hx-live .hx-tool__nojs { display: none; }
.hx-ask__row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) and (max-width: 999px) { .hx-ask__row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
@media (min-width: 1000px) {
	.hx-ask__row { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
}
.hx-field label, .hx-modes legend { display: block; margin: 0 0 6px; padding: 0; font: 600 var(--t-small)/1.3 var(--sans); color: var(--ink); }
.hx-field select { display: block; width: 100%; min-height: 50px; padding: 10px 40px 10px 12px; font: 600 var(--t-small)/1.25 var(--sans); color: var(--ink); background-color: var(--white);
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 24px) 52%, calc(100% - 17px) 52%; background-size: 7px 7px, 7px 7px; background-repeat: no-repeat;
	border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 1px 2px 3px rgba(19, 32, 26, .1); appearance: none; -webkit-appearance: none; cursor: pointer; }
.hx-modes { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.hx-modes__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-modes label { position: relative; display: flex; min-width: 0; }
.hx-modes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hx-modes span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 4px; text-align: center; font: 600 var(--t-small)/1.15 var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-left-width: 0; }
.hx-modes label:first-of-type span { border-left-width: 2px; border-radius: 4px 0 0 4px; }
.hx-modes label:last-of-type span { border-radius: 0 4px 4px 0; }
.hx-modes input:checked + span { background: var(--glass); color: var(--white); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .4); }
.hx-modes input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; }
.hx-modes label:hover input:not(:checked) + span { background: var(--cream); }

/* The answer: a decal of white vinyl on the door's bottle glass, in a steel frame, a brass push plate on its right. */
.hx-decal { --hx-tone: var(--saffron); position: relative; overflow: hidden; margin: 18px 7px 0; padding: 22px 60px 20px 18px; background: var(--glass); color: var(--white); border-radius: 3px;
	box-shadow: inset 3px 4px 10px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .55), 0 0 0 6px #CDD3D6, 0 0 0 7px #98A0A5, 4px 8px 16px 6px rgba(19, 32, 26, .22); }
.hx-decal::before { content: ""; position: absolute; left: 18px; top: 0; width: 64px; height: 7px; background: var(--hx-tone); border-radius: 0 0 2px 2px; }
.hx-decal::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 46px; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .1) 45%, rgba(255, 255, 255, .03) 70%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.hx-decal--yes { --hx-tone: var(--jade); }
.hx-decal--no { --hx-tone: var(--tomato); }
.hx-decal--local, .hx-decal--card { --hx-tone: var(--saffron); }
.hx-decal--none, .hx-decal--unknown { --hx-tone: #A9B0B5; }
.hx-decal__plate { position: absolute; right: 16px; top: 50%; width: 16px; height: 62%; max-height: 150px; transform: translateY(-50%); border-radius: 3px; background: var(--brass-metal); box-shadow: 2px 3px 5px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .3); }
.hx-decal__plate::before, .hx-decal__plate::after { content: ""; position: absolute; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3CF, #9C7329 70%); }
.hx-decal__plate::before { top: 8px; }
.hx-decal__plate::after { bottom: 8px; }
.hx-decal__where { margin: 0 0 8px; font: 600 var(--t-small)/1.35 var(--sans); color: var(--cream); }
.hx-decal__say { margin: 0; line-height: 1.4; }
.hx-decal__verdict { display: block; font-size: var(--t-huge); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--white); text-wrap: balance; }
.hx-decal__line { display: block; margin-top: 10px; color: var(--white); }
@media (max-width: 340px) { .hx-decal { padding-right: 48px; padding-left: 16px; } .hx-decal__verdict { font-size: var(--t-h1); } }
.hx-tool__nojs { margin: 12px 0 0; font: 400 var(--t-small)/1.45 var(--sans); }

/* On a wide screen the hero is one grid: the door and, under it, the rule on its slip; beside them the question, the
   answer, the dial and what it means. The door runs down to where the slip begins. */
@media (min-width: 1000px) {
	.hero__grid--tool { grid-template-rows: auto auto auto auto auto auto 1fr; row-gap: 0; align-items: start; }
	.hero__grid--tool .hero__side, .hero__grid--tool .hx-tool { display: contents; }
	.hero__grid--tool .door { grid-column: 1; grid-row: 1 / 6; align-self: stretch; display: grid; }
	.hero__grid--tool .band-h, .hero__grid--tool .hx-ask, .hero__grid--tool .hx-decal, .hero__grid--tool .hx-tool__nojs, .hero__grid--tool .hx-dial, .hero__grid--tool .hx-dial__why, .hero__grid--tool .hx-tool__law { grid-column: 2; }
	.hero__grid--tool .hx-slip { grid-column: 1; grid-row: 6 / 8; margin-top: 34px; }
	.hero__grid--tool .hx-dial__why { grid-row: 6; margin-top: 12px; }
	.hero__grid--tool .hx-tool__law { grid-row: 7; }
}
@media (min-width: 1000px) and (max-width: 1199px) { .hx-dial { grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; } }

/* The overlap dial: an enamel face in a brass rim, lit from the top left, turned to three-quarters. */
.hx-dial { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; margin: 22px 0 12px; }
@media (min-width: 440px) { .hx-dial { grid-template-columns: 228px minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 16px; } }
.hx-dial__stage { width: 228px; padding: 14px 10px; perspective: 900px; }
.hx-dial__body { position: relative; width: 208px; height: 208px; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-26deg); transition: transform 1.3s cubic-bezier(.2, .7, .2, 1); }
.hx-dial--pre .hx-dial__body { transform: rotateX(4deg) rotateY(-78deg); transition: none; }
.hx-dial__rim, .hx-dial__edge { position: absolute; inset: -10px; border-radius: 50%; }
.hx-dial__rim { background: radial-gradient(circle at 30% 24%, #FFF1C8 0, #E2C37A 18%, #B08537 50%, #7C5B22 76%, #5A4219 100%); box-shadow: inset 2px 3px 3px rgba(255, 255, 255, .45), inset -3px -4px 6px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .3); }
.hx-dial__edge { background: linear-gradient(135deg, #8B6527, #4A3714); transform: translateZ(-10px); box-shadow: 12px 18px 24px rgba(19, 32, 26, .32); }
.hx-dial__face { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; transform: translateZ(1px); }
.hx-dial__enamel { fill: url(#hx-enamel); stroke: #C9B994; stroke-width: 1.5; }
.hx-dial__track { fill: none; stroke: #E8DFCB; stroke-width: 12; }
.hx-dial__law { fill: none; stroke: var(--jade); stroke-width: 12; }
.hx-dial__del { fill: none; stroke: var(--teal); stroke-width: 7; }
.hx-dial__ext { fill: none; stroke: var(--jade); stroke-width: 12; stroke-dasharray: 5 4; opacity: .55; }
.hx-dial__ticks line { stroke: var(--ink); }
.hx-t1 { stroke-width: 1; opacity: .45; }
.hx-t2 { stroke-width: 1.6; }
.hx-t3 { stroke-width: 3.2; }
.hx-dial__labels text { font: 600 22px var(--sans); fill: var(--ink); } /* 22 of 240 units on a 208 px face that is turned: drawn at 17 px */
.hx-dial__hand { transform: rotate(var(--a, 0deg)); transform-origin: 120px 120px; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) .3s; }
.hx-dial--pre .hx-dial__hand { transform: rotate(0deg); transition: none; }
.hx-dial__hand line { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.hx-dial__hand circle { fill: var(--saffron); stroke: var(--ink); stroke-width: 1.5; }
.hx-dial__pin { fill: #B08537; stroke: #5A4219; stroke-width: 1.5; }
.hx-dial__cap { font: 400 var(--t-small)/1.4 var(--sans); color: var(--ink); }
.hx-dial__key { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-key { position: relative; padding-left: 34px; font: 400 var(--t-small)/1.4 var(--sans); }
.hx-key b { display: inline-block; font-weight: 600; }
.hx-key::before { content: ""; position: absolute; left: 0; top: .5em; width: 24px; height: 9px; border-radius: 2px; }
.hx-key--law::before { background: var(--jade); height: 11px; }
.hx-key--del::before { background: var(--teal); }
.hx-key--ext::before { height: 11px; background: repeating-linear-gradient(to right, var(--jade) 0 5px, transparent 5px 9px); opacity: .7; }
.hx-key--now::before { height: 5px; background: linear-gradient(to right, var(--ink) 72%, var(--saffron) 72%); }
.hx-dial__why { margin: 0; font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }

/* The rule, printed on a till slip torn from the roll. */
.hx-slip { position: relative; margin: 20px 0 0; padding: 14px 16px 12px; background: var(--paper); box-shadow: var(--sh-1); }
.hx-slip::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; background: linear-gradient(-45deg, var(--paper) 5px, transparent 0) 0 0 / 10px 10px repeat-x, linear-gradient(45deg, var(--paper) 5px, transparent 0) 0 0 / 10px 10px repeat-x; }
.hx-slip p { margin: 0 0 9px; }
.hx-slip__head { padding-bottom: 7px; border-bottom: 1px dashed var(--line-2); font: 700 var(--t-small)/1.35 var(--sans); color: var(--ink); }
.hx-slip__head ~ .hx-slip__head { margin-top: 14px !important; }
.hx-slip__words { font: 400 var(--t-small)/1.45 var(--sans); }
.hx-slip__cite { font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }
.hx-slip__cite span { font-weight: 600; color: var(--ink); }
.hx-slip__src { font: 400 var(--t-small)/1.45 var(--sans); overflow-wrap: break-word; }
.hx-slip__note { padding-left: 12px; border-left: 3px solid var(--plum); font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }
.hx-slip__holiday { padding: 8px 12px; background: #FBEDEA; border-left: 4px solid var(--tomato-deep); font: 700 var(--t-small)/1.45 var(--sans); color: var(--tomato-deep); }
.hx-slip__read { margin: 12px 0 0 !important; padding-top: 9px; border-top: 1px dashed var(--line-2); font: 400 var(--t-small)/1.3 var(--sans); color: var(--ink-2); }
.hx-tool__law { margin: 14px 0 0; font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }

/* ---- Tonight's curfew wave (on the theme's bottle-glass band) ------------------------------------------------- */
.hx-wave { color: var(--cream); }
.hx-wave :focus-visible { outline-color: var(--cream); }
.hx-wave a { color: var(--white); }
.hx-wave__say { margin: 0 0 20px; max-width: 34em; font: 700 var(--t-h3)/1.3 var(--sans); color: var(--white); }
.hx-wave__say b { font-weight: 800; text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hx-wave__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 1000px) {
	.hx-wave__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "map side" "legend legend"; gap: 26px 34px; align-items: start; }
	.hx-wave__mapbox { grid-area: map; }
	.hx-wave__side { grid-area: side; }
	.hx-legend { grid-area: legend; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
}
.hx-map { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 2px; margin: 0 -8px; }
@media (max-width: 340px) { .hx-map { gap: 1px; margin: 0 -10px; } }
@media (min-width: 420px) { .hx-map { gap: 3px; margin: 0; } }
@media (min-width: 768px) { .hx-map { gap: 5px; } }
.hx-tile { aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; border-radius: 3px; transition: background-color .3s ease, color .3s ease; }
.hx-tile b { font: 600 var(--t-tick)/1 var(--sans); white-space: nowrap; }
.hx-tile i { display: none; font: 600 var(--t-tick-s)/1 var(--sans); white-space: nowrap; }
.hx-tile__r { display: none; }
@media (min-width: 600px) { .hx-tile__r { display: inline; } }
@media (min-width: 1200px) { .hx-map { gap: 3px; } .hx-tile i { display: block; } .hx-tile b { font-weight: 800; } }
.hx-tile--open, .hx-legend--open .hx-sw { background: #BFE3CC; color: var(--ink); box-shadow: inset 0 -4px 0 var(--jade-deep); }
.hx-tile--closed, .hx-legend--closed .hx-sw { background: var(--tomato-deep); color: var(--white); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .28); }
.hx-tile--local, .hx-legend--local .hx-sw { background: var(--saffron); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.hx-tile--nofile, .hx-legend--nofile .hx-sw { background: var(--kraft); color: var(--ink); outline: 1.5px dashed rgba(19, 32, 26, .6); outline-offset: -4px; }
.hx-tile--none, .hx-legend--none .hx-sw { background: #A9B0B5; color: var(--ink); }
.hx-tile--unknown, .hx-legend--unknown .hx-sw { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.hx-map__clk { display: none; }
@media (min-width: 1200px) { .hx-map__clk { display: inline; } }
.hx-map__note { margin: 12px 0 0; font: 400 var(--t-small)/1.45 var(--sans); color: var(--cream); }

.hx-clock { padding: 14px 14px 16px; background: var(--glass-2); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.hx-clock__read { margin: 0; color: var(--cream); }
.hx-clock__time { font: 800 var(--t-big)/1.05 var(--sans); color: var(--white); }
.hx-clock__zone { font: 600 var(--t-body)/1.05 var(--sans); color: var(--white); }
.hx-clock__you { display: block; margin-top: 6px; font: 400 var(--t-small)/1.3 var(--sans); color: var(--cream); }
.hx-clock__you:empty { display: none; }
.hx-clock__label { display: block; margin: 12px 0 2px; font: 400 var(--t-small)/1.4 var(--sans); color: var(--cream); }
.hx-clock__rail { position: relative; padding: 0 0 28px; }
.hx-clock input[type="range"] { display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.hx-clock input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(to bottom, #EED69A, #B08537 55%, #86642A); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); }
.hx-clock input[type="range"]::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(to bottom, #EED69A, #B08537 55%, #86642A); }
.hx-clock input[type="range"]::-webkit-slider-thumb { width: 44px; height: 44px; margin-top: -17px; border: 2px solid #3B2C10; border-radius: 50%; appearance: none; -webkit-appearance: none;
	background: linear-gradient(var(--ink), var(--ink)) 50% 8px / 3px 15px no-repeat, radial-gradient(circle at 36% 30%, #FFF6DA 0, #E9CB86 30%, #B08537 66%, #7A5A22 100%); box-shadow: 2px 3px 5px rgba(0, 0, 0, .5); }
.hx-clock input[type="range"]::-moz-range-thumb { width: 40px; height: 40px; border: 2px solid #3B2C10; border-radius: 50%;
	background: linear-gradient(var(--ink), var(--ink)) 50% 8px / 3px 14px no-repeat, radial-gradient(circle at 36% 30%, #FFF6DA 0, #E9CB86 30%, #B08537 66%, #7A5A22 100%); box-shadow: 2px 3px 5px rgba(0, 0, 0, .5); }
.hx-clock__ticks { position: absolute; left: 22px; right: 22px; bottom: 0; height: 22px; }
.hx-clock__ticks span { position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); font: 600 var(--t-tick)/1 var(--sans); color: var(--cream); white-space: nowrap; }
@media (max-width: 599px) { .hx-clock__ticks span:nth-child(even) { display: none; } }
.hx-clock__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.hx-clock__btns button { min-height: 48px; padding: 0 6px; font: 600 var(--t-small)/1.1 var(--sans); color: var(--ink); background: var(--cream); border: 0; border-radius: 4px; cursor: pointer; box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 0 rgba(0, 0, 0, .18), 2px 3px 5px rgba(0, 0, 0, .45); }
.hx-clock__btns button:hover { background: var(--white); }
.hx-clock__btns button:active { transform: translate(1px, 1px); box-shadow: inset 0 1px 0 #FFFFFF, 1px 1px 2px rgba(0, 0, 0, .45); }
.hx-wave:not(.hx-live) .hx-clock__label, .hx-wave:not(.hx-live) .hx-clock__rail, .hx-wave:not(.hx-live) .hx-clock__btns { display: none; }
.hx-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.hx-legend__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: start; column-gap: 10px; }
.hx-sw { grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 1px; border-radius: 3px; }
.hx-legend__item b { font: 600 var(--t-small)/1.35 var(--sans); color: var(--white); text-wrap: pretty; }
.hx-legend__list { font: 400 var(--t-small)/1.45 var(--sans); color: var(--cream); }
.hx-wave__src { max-width: 56em; margin: 22px 0 0; font: 400 var(--t-small)/1.5 var(--sans); color: var(--cream); }

/* ---- Holidays ahead (the theme's tear-off pages) --------------------------------------------------------------- */
.hx-cal { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .hx-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px) { .hx-cal > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Five pages: three, then two wider ones, so none stands alone. */
@media (min-width: 1000px) { .hx-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); } .hx-cal > li { grid-column: span 2; } .hx-cal > li:nth-child(n+4), .hx-cal > li:last-child:nth-child(odd):nth-child(n+4) { grid-column: span 3; } }
.hx-cal .cal__row { padding-bottom: 14px; }
.hx-cal__law { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.hx-cal__law li { padding-left: 10px; border-left: 4px solid var(--tomato-deep); font: 400 var(--t-small)/1.45 var(--sans); }
.hx-cal__law li.hx-cal__open { border-left-color: var(--jade-deep); }
.hx-cal__rest { margin: 10px 0 0; font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }
.hx-cal__note { margin: 18px 0 0; padding: 14px 18px; background: var(--white); color: var(--ink); border-radius: 3px; box-shadow: var(--sh-1); }
.hx-cal__head { margin: 0 0 8px; font: 700 var(--t-h3)/1.25 var(--sans); text-wrap: balance; }
.hx-cal__note ul { margin: 0; padding-left: 1.1em; font: 400 var(--t-small)/1.5 var(--sans); }
.hx-cal__note li + li { margin-top: 4px; }

/* ---- States A to Z: grouped by what each state sells, one dense row per state that opens in place ------------- */
.hx-az__lede { max-width: 42em; margin: 0 0 18px; line-height: 1.5; }
.hx-az__group + .hx-az__group { margin-top: 18px; }
.hx-az__gh { margin: 0 0 10px; text-wrap: balance; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 700 var(--t-h3)/1.25 var(--sans); color: var(--ink); }
.hx-az__n { margin-left: 4px; font-weight: 400; }
.hx-az__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.hx-az__list--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .hx-az__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hx-az__list--chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hx-az__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hx-az__list--chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hx-az__st { min-width: 0; background: var(--white); border-radius: 3px; box-shadow: var(--sh-1); }
.hx-az__st[open] { grid-column: 1 / -1; box-shadow: var(--sh-1), inset 0 0 0 2px var(--ink); }
.hx-az__st:target > .hx-az__sum { background: #FFF4DF; }
/* A row: the state's two letters, its name, and under it its legal hours or its status. */
.hx-az__sum { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "abbr name" "abbr hrs"; align-items: center; column-gap: 12px; row-gap: 1px; min-height: 48px; padding: 7px 34px 8px 10px; position: relative; cursor: pointer; list-style: none; border-radius: 3px; }
.hx-az__sum > .hx-az__abbr { grid-area: abbr; }
.hx-az__sum > .hx-az__name { grid-area: name; }
.hx-az__sum > .hx-az__hrs { grid-area: hrs; }
.hx-az__sum::-webkit-details-marker { display: none; }
.hx-az__sum::after { content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hx-az__st[open] > .hx-az__sum::after { margin-top: -2px; transform: rotate(-135deg); }
.hx-az__sum:hover { background: var(--cream); }
.hx-az__sum:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hx-az__abbr { display: inline-block; min-width: 44px; padding: 7px 0 8px; text-align: center; border-radius: 3px; background: var(--tomato-deep); color: var(--cream); font: 700 var(--t-small)/1 var(--sans); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.hx-az__st--adult .hx-az__abbr { background: var(--jade-deep); }
.hx-az__st--medical .hx-az__abbr { background: var(--plum); }
.hx-az__st--unknown .hx-az__abbr { background: #A9B0B5; color: var(--ink); }
.hx-az__name { min-width: 0; font: 700 var(--t-body)/1.2 var(--sans); }
.hx-az__hrs { font: 400 var(--t-small)/1.3 var(--sans); color: var(--ink); }
.hx-az__star { margin-left: 2px; text-decoration: none; border: 0; cursor: help; }
/* A state without adult-use sales: its status under its name, two to a row on a phone (its letters over its name there). */
.hx-az__list--chips .hx-az__name { font-size: var(--t-small); }
.hx-az__list--chips .hx-az__hrs { color: var(--ink-2); line-height: 1.25; }
@media (max-width: 699px) {
	.hx-az__list--chips .hx-az__sum { grid-template-columns: minmax(0, 1fr); grid-template-areas: "abbr" "name" "hrs"; justify-items: start; align-content: start; row-gap: 5px; padding: 9px 10px 10px; }
	.hx-az__list--chips .hx-az__sum::after { right: 13px; top: 24px; }
}
.hx-az__dl { margin: 0; padding: 4px 14px 14px; border-top: 1px dashed var(--line-2); font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink); }
.hx-az__dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0 0; }
@media (min-width: 560px) { .hx-az__dl > div { grid-template-columns: 11em minmax(0, 1fr); column-gap: 14px; } }
.hx-az__dl dt { font-weight: 600; color: var(--ink-2); }
.hx-az__dl dd { margin: 0; min-width: 0; }
.hx-az__rule, .hx-az__ext, .hx-az__more, .hx-az__city { display: block; margin-top: 4px; }
.hx-az__ext { padding-left: 10px; border-left: 3px solid var(--saffron); }
.hx-az__cite { display: block; margin-top: 4px; color: var(--ink-2); overflow-wrap: break-word; }
@media print { .hx-az__st::details-content { content-visibility: visible; } }

/* ---- Licensed stores near you (includes/finder.php): the form on the door's glass, the results under the hero ---- */
.fx-form { margin: 0 0 22px; padding: 16px 16px 14px; background: var(--paper); border-radius: 4px; box-shadow: 2px 4px 10px rgba(0, 0, 0, .45); }
.fx-form[hidden] { display: none; }
.fx-form__label { display: block; margin: 0 0 6px; font: 700 var(--t-body)/1.25 var(--sans); color: var(--ink); }
.fx-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 420px) { .fx-form__row { grid-template-columns: minmax(0, 1fr) auto; } }
.fx-form input { width: 100%; min-height: 54px; padding: 10px 12px; font: 600 var(--t-body)/1.2 var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 1px 2px 3px rgba(19, 32, 26, .1); }
.fx-form input::placeholder { color: #5A665F; font-weight: 400; opacity: 1; }
.fx-go { min-height: 54px; padding: 10px 22px; font: 700 var(--t-body)/1.2 var(--sans); color: var(--ink); background: var(--saffron); border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 0 var(--ink); cursor: pointer; }
.fx-go:hover { background: #F0AE48; }
.fx-go:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.fx-here { min-height: 48px; margin: 10px 0 0; padding: 8px 14px; font: 600 var(--t-small)/1.25 var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }
.fx-here[hidden] { display: none; }
.fx-here:hover { background: var(--cream); }
.fx-form__note { margin: 10px 0 0; font: 400 var(--t-small)/1.4 var(--sans); color: var(--ink-2); }
.door .fx-form :focus-visible { outline-color: var(--ink); }
.fx { scroll-margin-top: 12px; padding: 8px 0 14px; min-width: 0; }
.fx[hidden] { display: none; }
@media (min-width: 1000px) { .hero__grid--tool .fx { grid-column: 1 / -1; grid-row: 8; margin-top: 30px; } .hero__grid--tool .fx .band-h { grid-column: auto; } }
.fx .band-h:focus { outline: none; }
.fx-sum { margin: 0 0 6px; font: 400 var(--t-body)/1.5 var(--sans); }
.fx-src { margin: 0 0 16px; max-width: 900px; font: 400 var(--t-small)/1.5 var(--sans); color: var(--ink-2); }
.fx-kind { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fx-kind button { min-height: 48px; margin: 0; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink); font: 600 var(--t-small)/1.3 var(--sans); text-align: left; cursor: pointer; }
.fx-kind button:hover { background: var(--cream); }
.fx-link { display: inline; min-height: 48px; margin: 0 14px 0 0; padding: 8px 0; border: 0; background: none; color: var(--jade-deep, #14533A); font: 600 var(--t-small)/1.45 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fx-more { min-height: 48px; padding: 9px 16px; font: 600 var(--t-small)/1.25 var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }
.fx-kind button[aria-pressed="true"] { background: var(--glass); border-color: var(--glass); color: var(--white); }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .fx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.fx-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px 14px; background: var(--white); border-left: 8px solid var(--glass); border-radius: 3px; box-shadow: var(--sh-1); }
.fx-card:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.fx-card p { margin: 0; }
.fx-card__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; } /* a long distance ("in Arkadelphia, about 25 mi") goes under the name */
.fx-card__name { flex: 1 1 60%; margin: 0; font-size: var(--t-h3); font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.fx-card__far { flex: none; max-width: 100%; font: 700 var(--t-body)/1.2 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.fx-card__addr { font: 400 var(--t-body)/1.35 var(--sans); }
.fx-card__sign { font: 400 var(--t-small)/1.4 var(--sans); color: #3F4A45; }
.fx-card__st { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--cream); border-radius: 3px; font: 400 var(--t-small)/1.4 var(--sans); }
.fx-card__st b { font-size: var(--t-body); line-height: 1.3; }
.fx-card__st--open { box-shadow: inset 5px 0 0 var(--jade); }
.fx-card__st--shut { box-shadow: inset 5px 0 0 var(--tomato); }
.fx-card__st--none { box-shadow: inset 5px 0 0 #A9B0B5; }
.fx-card__bits { display: flex; flex-wrap: wrap; gap: 2px 0; font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }
.fx-card__bits span:not(:last-child)::after { content: "\00B7"; margin: 0 8px; }
.fx-card__warn { font-weight: 600; color: var(--tomato-deep); }
.fx-card__act { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto !important; padding-top: 4px; }
.fx-card__act a { display: inline-block; padding: 8px 0; font: 700 var(--t-body)/1.3 var(--sans); color: var(--link); }
.fx-card__week summary { display: inline-block; padding: 6px 0; font: 600 var(--t-small)/1.4 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-card__week ul { list-style: none; margin: 4px 0 0; padding: 0; columns: 2; column-gap: 18px; font: 400 var(--t-small)/1.6 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 420px) { .fx-card__week ul { columns: 1; } }
.fx-more { display: block; margin: 18px auto 0; }
.fx-out[aria-busy="true"] { opacity: .55; }
.hx-guess { margin: 6px 0 0; font: 400 var(--t-small)/1.4 var(--sans); color: var(--ink-2); }

.hx-cal__page--quiet .cal__name { font-size: var(--t-body); line-height: 1.3; }
@media (max-width: 560px) { .fx-card__bits { flex-direction: column; } .fx-card__bits span:not(:last-child)::after { content: none; } }
