/* Hoi An Roastery – menu page search and filters (see menu-filter.js). Uses the site's own colours and fonts. */
/* Compact photo header on the menu pages: the menu starts right below it. (Scoped to .hr-compact, added by app/site.php.) */
.page-header.has-image.hr-compact { min-height: clamp(200px, 22vw, 280px); grid-template-columns: minmax(0, 1fr); }
.page-header.hr-compact .ph-text { padding-block: clamp(24px, 3.5vw, 40px); }
.page-header.hr-compact h1 { margin-bottom: 0; }
.page-header.hr-compact .lead { margin-top: .6rem; }

/* Search box and chips inside the header. */
.hr-mf { position: relative; z-index: 1; margin-top: clamp(16px, 2.2vw, 24px); padding-right: var(--gutter, 16px); }
.hr-mf[hidden] { display: none; }
.hr-mf .container { padding: 0; margin: 0; width: auto; max-width: 820px; }
/* Less empty space between the category buttons and the first category. */
nav[data-hr-cats] + .section { padding-top: clamp(28px, 4vw, 48px); }
.page-header .hr-chips-label { color: rgb(255 255 255 / 0.85); }
.page-header .hr-chip { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.35); color: #fff; }
.page-header .hr-chip .hr-n { color: var(--gold-500, #c9a063); }
.page-header .hr-chip:hover { border-color: var(--gold-500, #c9a063); }
.page-header .hr-chip[aria-pressed="true"] { background: var(--gold-500, #c9a063); border-color: var(--gold-500, #c9a063); color: var(--roast-900, #2a1913); }
.page-header .hr-chip[aria-pressed="true"] .hr-n { color: var(--roast-900, #2a1913); }
.page-header .hr-search input { box-shadow: 0 4px 18px rgb(0 0 0 / 0.25); border-color: transparent; }

/* The introduction texts, now below the menu. */
.hr-intro-below { border-top: 1px solid var(--cream-200, #eadfce); }
.hr-search { position: relative; max-width: 820px; }
.hr-search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted, #7a6a5f); pointer-events: none; }
.hr-search input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--roast-800, #301d17); background: #fff; border: 1px solid var(--cream-200, #eadfce); border-radius: 999px; padding: 0.95rem 3rem 0.95rem 3.1rem; box-shadow: 0 2px 10px rgb(48 29 23 / 0.06); -webkit-appearance: none; appearance: none; }
.hr-search input::-webkit-search-cancel-button { display: none; }
.hr-search input::placeholder { color: #9c8b7e; }
.hr-search input:focus { outline: 3px solid rgb(201 160 99 / 0.45); border-color: var(--gold-600, #a97f43); }
.hr-clear-q { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: var(--cream-100, #f5eee3); color: var(--roast-800, #301d17); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hr-clear-q[hidden] { display: none; }
.hr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 1rem; }
.hr-chips-label { font-weight: 700; font-size: 0.85rem; color: var(--muted, #7a6a5f); margin-right: 0.2rem; }
.hr-chip { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--roast-800, #301d17); background: #fff; border: 1px solid var(--cream-200, #eadfce); border-radius: 999px; padding: 0.35rem 0.85rem; cursor: pointer; }
.hr-chip:hover { border-color: var(--gold-500, #c9a063); }
.hr-chip .hr-n { color: var(--gold-600, #a97f43); font-weight: 600; margin-left: 0.15rem; }
.hr-chip[aria-pressed="true"] { background: var(--roast-800, #301d17); border-color: var(--roast-800, #301d17); color: #fff; }
.hr-chip[aria-pressed="true"] .hr-n { color: var(--gold-500, #c9a063); }

/* Category buttons: "All" appears only when the filters are active; the selected one is dark. */
.jump .hr-all { display: none; }
.jump.hr-cats .hr-all { display: block; }
.jump.hr-cats .jump-label { display: none; }
.jump.hr-cats a.hr-on, .jump.hr-cats a.hr-on:hover { background: var(--roast-800, #301d17); border-color: var(--roast-800, #301d17); color: #fff; }

.hr-off { display: none !important; }
.hr-status { min-height: 0; }
.hr-status p { margin: 0 0 1.5rem; color: var(--muted, #7a6a5f); font-weight: 600; }
.hr-reset { font: inherit; font-weight: 600; margin: -0.75rem 0 2rem; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--roast-700, #4a3128); background: #fff; color: var(--roast-800, #301d17); cursor: pointer; }
@media (max-width: 700px) {
	.hr-search input { font-size: 1rem; padding-block: 0.8rem; }
	.hr-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter, 16px)); padding-right: var(--gutter, 16px); }
	.hr-chips::-webkit-scrollbar { display: none; }
	.hr-chip, .hr-chips-label { white-space: nowrap; flex: none; }
}
