/*
 * Routes: FAQ, pickup & shipping, and support.
 *
 * One stylesheet for three pages that are the same kind of thing — a heading, a
 * readable measure, and something to scan. Three near-identical files would
 * drift; these share a wrapper and differ only where the content does.
 */

.as-main.as-route-faq,
.as-main.as-route-ship,
.as-main.as-route-support { max-width: none; padding-inline: 0; }

.as-route-faq .as-section,
.as-route-ship .as-section,
.as-route-support .as-section { padding-inline: 0; }

.as-faq__wrap, .as-ship__wrap { max-width: 1100px; margin-inline: auto; padding-inline: var(--gutter); }
.as-support__wrap { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.as-faq-hero { padding-block: 48px 8px; text-align: center; }
.as-faq-hero__title { margin: 0; font-size: var(--text-h1); line-height: 1.05; letter-spacing: -0.02em; }
.as-faq-hero__sub { max-width: 52ch; margin: 16px auto 0; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-faq-hero__sub a { font-weight: 700; }

.as-faq__searchwrap { position: relative; max-width: 560px; margin: 22px auto 0; }
.as-faq__searchicon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--atomic-blue); }
.as-faq__search {
	width: 100%; padding: 14px 96px 14px 46px;
	border: 2px solid var(--atomic-blue); border-radius: var(--radius-pill);
	background: var(--color-surface); font-family: inherit; font-size: var(--text-body);
	box-shadow: var(--shadow-md);
}

.as-faq__clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: var(--color-surface-tint);
}
/* The button primitive gives it display: inline-flex, which beats the browser's
   [hidden] rule, so "Clear ×" showed in an empty field (2026-11-14). */
.as-faq__clear[hidden] { display: none; }

.as-faq-body { padding-block: 28px 40px; }

/* Six equal tiles, icon over label over count — the mock's, and the reason the
   first build read as a row of anonymous pills. */
.as-faq__tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(110px, 150px));
	gap: var(--space-3);
	justify-content: center;
	margin-bottom: 28px;
}
.as-faq__tab {
	display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
	padding: 16px 14px;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
	background: var(--color-surface); font: inherit; text-align: center;
	color: var(--color-text); cursor: pointer;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.as-faq__tab .as-faq__icon { color: var(--atomic-blue); flex: none; }
.as-faq__tablabel { font-size: var(--text-sm); font-weight: 700; line-height: 1.25; }
.as-faq__tabcount { font-size: var(--text-label); font-weight: 600; color: var(--color-text-muted); }
.as-faq__tab:hover { background: var(--color-surface-alt); }
.as-faq__tab.is-active {
	background: var(--atomic-dark); border-color: var(--atomic-dark);
	color: var(--color-text-invert); box-shadow: 0 10px 22px rgba(36, 41, 56, 0.25);
}
.as-faq__tab.is-active .as-faq__tabcount { color: #c3c8d2; }

.as-faq__list { max-width: 760px; margin-inline: auto; }
.as-faq__grouphead { display: flex; align-items: center; gap: var(--space-2-5); margin: 26px 0 10px; }
.as-faq__grouphead h2 { margin: 0; font-size: var(--text-body-lg); font-weight: 700; }
.as-faq__grouphead .as-faq__icon { flex: none; color: var(--atomic-blue); }
.as-faq__grouprule { flex: 1; height: 1.5px; background: var(--color-border-soft); }
.as-faq__group[hidden] { display: none; }

/*
 * The rows are the FAQ row recipe in primitives.css — the sticker pages' look
 * (Dennis, 2026-11-14); they were bordered cards with a chevron. What is left
 * here is what /faq/ does differently: a hairline UNDER every row, because the
 * search hides rows and a :last-child rule would leave the last visible one
 * open-ended; and a reset for the question, which is a <button>.
 */
.as-faq__item { border-bottom: 1px solid var(--color-border-soft); }
.as-faq__item h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.as-faq__q { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; color: inherit; }

.as-faq__noresults, .as-faq__empty {
	max-width: 760px; margin: 20px auto 0; padding: 36px;
	border-radius: var(--radius-lg); background: var(--color-surface-alt);
	color: var(--color-text-muted); text-align: center;
}
.as-faq__noresults p { margin: 0 0 8px; font-size: var(--text-sm); }
.as-faq__noresults p:last-child { margin: 12px 0 0; }
.as-faq__noresults-head { font-size: var(--text-body-lg); font-weight: 700; color: var(--color-text); }

.as-faq-stuck { padding-block: 8px 56px; }
.as-support__help {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-5); flex-wrap: wrap; padding: 24px;
}
.as-support__help strong { display: block; font-size: var(--text-body-lg); }
.as-support__help span { font-size: var(--text-sm); opacity: .8; }
.as-support__help p { display: flex; gap: var(--space-2-5); margin: 0; flex-wrap: wrap; }

/* The mock gives the hours their own column behind a rule — they are what a
   visitor scrolls this far to find, not a caption on the heading. */
.as-faq__stuckcard {
	max-width: 760px; margin-inline: auto;
	display: flex; align-items: center; gap: var(--space-7); flex-wrap: wrap;
	padding: 36px 44px; border-radius: var(--radius-xl);
}
.as-faq__stuckmain { flex: 1; min-width: 260px; }
.as-faq__stuckmain strong { display: block; font-size: var(--text-h3); font-weight: 800; }
.as-faq__stuckmain span { display: block; margin-top: 4px; font-size: var(--text-sm); line-height: 1.55; color: #c3c8d2; }
.as-faq__stuckmain p { display: flex; gap: var(--space-2-5); margin: 14px 0 0; flex-wrap: wrap; }

.as-faq__stuckhours {
	min-width: 220px; padding-left: 28px;
	border-left: 1.5px solid rgba(255, 255, 255, 0.15);
}
.as-faq__hourshead {
	margin: 0 0 8px;
	color: var(--atomic-blue);
}
.as-faq__stuckhours dl { margin: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.as-faq__stuckhours dl div { display: flex; justify-content: space-between; gap: var(--space-5); }
.as-faq__stuckhours dt { color: #c3c8d2; }
.as-faq__stuckhours dd { margin: 0; font-weight: 700; }
.as-faq__hoursaddr { margin: 10px 0 0; font-size: var(--text-xs); line-height: 1.5; color: #c3c8d2; }

/* ── Pickup & shipping ───────────────────────────────────────────────────── */
.as-ship-hero { padding-block: 52px 8px; }
.as-ship-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.as-ship-hero__title { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.as-ship-hero__sub { margin: 0; max-width: 56ch; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-ship__jump { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin: 6px 0 0; }
/* 15px here, 17px on the banner stand page — the two mocks differ, so the size
   belongs to the page rather than to the chip. */
.as-ship__jump .as-chip--jump { font-size: var(--text-body); }

.as-ship-pickup { padding-block: 40px 22px; }
.as-ship-shipping { padding-block: 22px 48px; }

/* Heading, badge, then a rule that runs to the edge — the mock's section head.
   A border under the whole row reads as a table caption instead. */
.as-ship__head { display: flex; align-items: center; gap: var(--space-3); }
.as-ship__head h2 { margin: 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.01em; }
.as-ship__rule { flex: 1; height: 1.5px; background: var(--color-border-soft); }

.as-badge-ok {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-tint);
  color: var(--atomic-blue);
}
.as-badge-ok--blue { background: var(--color-surface-tint); color: var(--atomic-blue); }

/* Photo, then hours, then how it works — 1.2 : 1 : 1, as drawn. */
.as-ship__pickgrid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-4-5); margin-top: 18px; align-items: stretch; }
.as-ship__photo { min-height: 230px; border-radius: var(--radius-md); }
/* The live map in the photo slot's cell — same footprint, real content. */
.as-ship__photo--map { position: relative; overflow: hidden; background: #e3f6fc; }
.as-ship__photo--map .as-ship__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.as-ship__where, .as-ship__how {
	display: flex; flex-direction: column; gap: var(--space-2);
	padding: 22px; border-radius: var(--radius-md);
}
.as-ship__where { background: var(--color-surface-alt); }
.as-ship__how { background: var(--atomic-dark); color: var(--color-text-invert); gap: var(--space-2-5); }

.as-ship__cardhead {
	margin: 0;
	color: var(--color-text-muted);
}
.as-ship__cardhead--blue { color: var(--atomic-blue); }

.as-ship__addr { margin: 0; font-size: var(--text-sm); font-weight: 700; line-height: 1.45; }
.as-ship__addr span { font-weight: 500; font-size: var(--text-xs); color: var(--color-text-muted); }

.as-ship__hours { margin: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.as-ship__hours div { display: flex; justify-content: space-between; gap: var(--space-4); }
.as-ship__hours dt { color: var(--color-text-muted); }
.as-ship__hours dd { margin: 0; font-weight: 700; }
.as-ship__directions { margin-top: auto; padding-top: 8px; font-size: var(--text-sm); font-weight: 700; }

.as-ship__how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2-5); }
.as-ship__how li { display: flex; gap: var(--space-2-5); align-items: flex-start; font-size: var(--text-sm); line-height: 1.5; color: #e6eaf0; }
.as-ship__step {
	flex: none; width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--atomic-blue); color: var(--atomic-white);
	font-size: var(--text-xs); font-weight: 800;
}
.as-ship__note { margin: auto 0 0; padding-top: 6px; font-size: var(--text-xs); line-height: 1.5; color: #c3c8d2; }

.as-ship__lede { max-width: 78ch; margin: 16px 0 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-text-muted); }

/* One card holding the table and its toggle; wide tables scroll inside it
   rather than widening the page. */
.as-ship__tablecard {
	margin-top: 18px; overflow: hidden;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
	background: var(--color-surface);
}
.as-ship__tablewrap { overflow-x: auto; }
.as-ship__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.as-ship__table th, .as-ship__table td { padding: 12px 24px; text-align: left; }
.as-ship__table tbody tr + tr td, .as-ship__table tbody td { border-top: 1px solid var(--color-border-soft); }
.as-ship__table thead th {
  padding: 13px 24px;
  background: var(--atomic-dark);
  color: var(--color-text-invert);
}
.as-ship__table tbody td:first-child { font-weight: 700; }
.as-ship__table tbody td:nth-child(3) { color: var(--color-text-muted); }
.as-ship__table tbody td:nth-child(4) { font-weight: 600; }
.as-ship__rush { text-align: right; font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); }
.as-ship__table td.as-ship__rush.is-yes { color: var(--atomic-blue); }
.as-ship__zone {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px;
	border-radius: var(--radius-pill);
	background: var(--color-surface-tint); color: var(--atomic-blue);
	font-size: var(--text-xs); font-weight: 800;
}
.as-ship__zone--none { background: var(--color-surface-alt); color: var(--color-text-muted); }

.as-ship__toggle {
	display: block; width: 100%; padding: 13px 24px;
	border: 0; border-top: 1px solid var(--color-border-soft);
	background: none; font: inherit; font-size: var(--text-sm); font-weight: 700;
	color: var(--atomic-blue); text-align: center; cursor: pointer;
}
.as-ship__toggle:hover { background: var(--color-surface-alt); }

.as-ship__warn {
	display: flex; gap: var(--space-3); align-items: flex-start;
	margin-top: 18px; padding: 14px 18px;
	border: 1.5px solid #e8c558; border-radius: var(--radius-md); background: #fff8e6;
	font-size: var(--text-sm); line-height: var(--leading-body);
}
.as-ship__warnicon { flex: none; color: #b78908; padding-top: 1px; display: flex; }
.as-ship__warn a { font-weight: 700; color: var(--atomic-blue); }

/* ── Support ─────────────────────────────────────────────────────────────── */
.as-support-hero { padding-block: 44px 4px; }
.as-support-body { padding-block: 20px 32px; }
.as-support__prose { line-height: var(--leading-body); }
.as-support__prose h2 { margin: 28px 0 8px; font-size: var(--text-h3); }
.as-support__prose h3 { margin: 22px 0 6px; font-size: var(--text-body-lg); }
.as-support__prose p, .as-support__prose li { color: var(--color-text); }
.as-support__prose ul, .as-support__prose ol { padding-left: 20px; }
.as-support-foot { padding-block: 8px 56px; }

@media (max-width: 900px) {
	.as-faq__wrap, .as-ship__wrap, .as-support__wrap { padding-inline: 24px; }
	.as-faq-hero__title { font-size: var(--text-h2); }
	.as-faq__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.as-ship-hero__title { font-size: var(--text-h2); }
	.as-ship__pickgrid { grid-template-columns: minmax(0, 1fr); }
	.as-faq__stuckcard { padding: 26px; }
	.as-faq__stuckhours { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1.5px solid rgba(255, 255, 255, 0.15); width: 100%; }
}
