/*
 * HanoPalais Website V4 — design layer (V4-T28, hnp-c08-web).
 *
 * Printed LAST (HNPS_Chrome::enqueue_v4, after every HanoPalais and Elementor stylesheet on the request) so it settles the design
 * tokens and the polish of UX_DEFECTS_BEFORE without !important (two exceptions, marked). Scoped to body.hnps-chrome (every page
 * HanoPalais draws its chrome on). Source of truth: the --hnp-* tokens of hanopalais-ui.css — this file adds no new palette.
 * Booking internals (room dialog / checkout, V4-T29) use these tokens; they are not styled here.
 *
 *  1. Tokens (scoped)       HS1 theme / kit palette → brand · radius / shadow / heading-gap / float-safe tokens
 *  2. Type rhythm           G3 / N2 heading → lead spacing
 *  3. Floating UI           G1 / N1 / S1 / AC1 back-to-top, Fanpage bubble: never over content (safe area, compact, yield)
 *  4. Header / mega / drawer M1 / M3 / MN1 / MN2
 *  5. Footer                N4 / G2
 *  6. Search                H2 / PD1 (320) · S4 · S6 / S7 · G7 note · G8 sold-out state
 *  7. Pages                 H5 / H6 home · PL2 / PL4 brand hub · AB2 about · PD3 property · ML2 / ML3 / ML5 member · LG1 login ·
 *                           AC2 / AC3 account · CT1 contact · PA4 partnership · PT1 / PT2 terms · FQ1 FAQ · J3 / J4 / J5 journal ·
 *                           AR2 / AR3 areas · ST1 stay types · N3 404
 */

/* ===================================================================== 1. tokens */
/* HS1 — the Astra customizer palette (#ffba00 / #ffd014 / Quicksand …) and the Elementor kit's stock colours (#6EC1E4 …) still ship.
   On HanoPalais pages they now resolve to the brand tokens, so any element that falls back to a theme / kit colour (a link without its
   own :hover, an Elementor widget left on its default) can never paint yellow or sky blue again. body[class*="elementor-kit-"] beats
   Elementor's .elementor-kit-N variable block (0,1,1 > 0,1,0); the theme's :root block is overridden by inheritance from body. */
body.hnps-chrome,
body.hnps-chrome[class*="elementor-kit-"] {
	--ast-global-color-0: var(--hnp-color-ink, #0e1a26);        /* theme colour   (was #ffba00) */
	--ast-global-color-1: var(--hnp-color-accent-text, #7d5636); /* link hover     (was #ffd014) */
	--ast-global-color-2: var(--hnp-color-ink, #0e1a26);        /* headings */
	--ast-global-color-3: var(--hnp-color-text, #1b232c);       /* text */
	--ast-global-color-4: var(--hnp-color-bg, #fbfaf7);         /* site background */
	--ast-global-color-5: #ffffff;                              /* content background */
	--ast-global-color-6: var(--hnp-color-sand, #efe9df);
	--ast-global-color-7: var(--hnp-color-ink, #0e1a26);
	--ast-global-color-8: var(--hnp-color-ink, #0e1a26);
	--e-global-color-primary: var(--hnp-color-ink, #0e1a26);    /* was #6EC1E4 */
	--e-global-color-secondary: var(--hnp-color-ink-2, #24313d);
	--e-global-color-text: var(--hnp-color-text, #1b232c);      /* was #7A7A7A */
	--e-global-color-accent: var(--hnp-color-accent-text, #7d5636);
	--e-global-typography-primary-font-family: var(--hnp-font-display);
	--e-global-typography-secondary-font-family: var(--hnp-font-body);
	--e-global-typography-text-font-family: var(--hnp-font-body);
	--e-global-typography-accent-font-family: var(--hnp-font-body);

	/* One scale each (DESIGN_SYSTEM_AUDIT items 6–8): the two :root blocks of hanopalais-ui.css disagree; these names are the V4 ones. */
	--hnp-v4-radius-control: 8px;
	--hnp-v4-radius-card: 12px;
	--hnp-v4-radius-panel: 16px;
	--hnp-v4-shadow-card: 0 1px 2px rgba(14, 26, 38, 0.04), 0 8px 24px rgba(14, 26, 38, 0.06);
	--hnp-v4-heading-gap: clamp(12px, 0.6rem + 0.6vw, 20px);
	/* Space kept free at the bottom of every page for the floating buttons (back-to-top, Fanpage) + the phone booking bar. */
	--hnp-v4-float-safe: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* A link with no colour of its own never takes the theme's link-hover colour (HS1, measured 1.47:1 on the home area chips). */
body.hnps-chrome .hnps-destarea:hover,
body.hnps-chrome .hnps-destarea:focus-visible { color: var(--hnps-ink, var(--hnp-color-ink)); }
body.hnps-chrome .hnps-destarea.is-active:hover,
body.hnps-chrome .hnps-destarea.is-active:focus-visible { color: #ffffff; }

/* FB16-G03 — ONE text-selection colour for every HanoPalais page (central rule; nothing else on the site styles ::selection).
   Real cause of the solid black selection: Astra prints `::selection{background-color:var(--ast-global-color-0);color:<astra_get_foreground_color()>}`.
   The foreground is computed in PHP from the customizer's OLD yellow (#ffba00) -> `#000000`, while the background is the CSS variable that
   section 1 above now points at the brand ink (#0e1a26): black text on ink = 1.19:1, an unreadable slab. A fixed bg + text pair keeps the
   contrast on any surface (light, sand, white, dark bands) because ::selection paints its own colour over the text. Gold #d1b286 + ink
   #0e1a26 = 8.73:1. Selection and copy are untouched; inputs keep the same pair (readable). Specificity (0,1,2) beats Astra's (0,0,1). */
body.hnps-chrome ::selection { background-color: var(--hnp-color-gold, #d1b286); color: var(--hnp-color-ink, #0e1a26); text-shadow: none; }
body.hnps-chrome ::-moz-selection { background-color: var(--hnp-color-gold, #d1b286); color: var(--hnp-color-ink, #0e1a26); text-shadow: none; }

/* ===================================================================== 2. type rhythm */
/* G3 / N2 — the lead under a page title sat directly under its last line (policies, 404, contact, terms, auth). */
body.hnps-chrome :is(.hnp-h1, .hnp-h2) + :is(.hnp-lead, .hnps-lead) { margin-top: var(--hnp-v4-heading-gap); }
body.hnps-chrome .hnps-contact__intro .hnp-h1 + .hnp-lead { margin-top: var(--hnp-v4-heading-gap) !important; } /* overrides an inline style */
/* V4-T37b (NEW-4): at desktop the token resolved to ≈18 px, only ≈2 px more than the old gap (V4-T35 C237 / C209) — the lead still
   read as glued to a 900-weight title. From 1024 px the gap is 24–32 px. Same selector list as the token block (0,2,1). */
@media (min-width: 1024px) {
	body.hnps-chrome,
	body.hnps-chrome[class*="elementor-kit-"] { --hnp-v4-heading-gap: clamp(24px, 1rem + 0.8vw, 32px); }
}
body.hnps-chrome .hnp-404 .hnp-h2 { margin-bottom: 0; }
body.hnps-chrome .hnp-404 .hnp-lead { max-width: 52ch; }

/* ===================================================================== 3. floating UI */
/* G1 / S1 / AC1 / N1 — the back-to-top arrow (bottom-left) and the Fanpage bubble (bottom-right) covered footer links, card lines and
   CTAs. Three rules, one system:
   (a) the page always ends with free space under its last line, so nothing a float covers is unreachable;
   (b) on screens < 1024 both floats step out while the visitor scrolls DOWN and return on scroll up / at rest near the top
       (hanopalais-v4.js sets body.hnp-v4-scrolling-down); reduced motion: no slide, just hidden;
   (c) at ≥ 1024 the Fanpage pill is its 48px circle (it opens on hover / keyboard focus); only over a full-bleed hero, before the
       page is scrolled (body.hnp-v4-scrolled), does it show its label — there it sits on the image, not on content; on the checkout it yields entirely (the page has its own help block). */
body.hnps-chrome .hnp-footer { padding-bottom: calc(var(--hnp-v4-float-safe) + 8px); }
@media (max-width: 1023px) {
	body.hnps-chrome:has(.hnps-stickycta) .hnp-footer { padding-bottom: calc(var(--hnp-v4-float-safe) + 72px); }
}
body.hnps-chrome .hnp-totop,
body.hnps-chrome .hnp-support { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, width 0.2s ease, padding 0.2s ease, background-color 0.2s ease; }
@media (max-width: 1023px) {
	/* FBW0311 T2: the back-to-top arrow no longer steps out while scrolling down — that is exactly when a visitor looks for it. */
	body.hnps-chrome.hnp-v4-scrolling-down .hnp-support {
		opacity: 0;
		visibility: hidden;
		transform: translateY(12px);
		pointer-events: none;
	}
}
@media (min-width: 1024px) {
	body.hnps-chrome:is(.hnp-v4-scrolled, :not(:has(.hnps-hero))) .hnp-support:not(:hover):not(:focus-visible) {
		width: 48px;
		height: 48px;
		padding: 0;
		gap: 0;
		justify-content: center;
	}
	body.hnps-chrome:is(.hnp-v4-scrolled, :not(:has(.hnps-hero))) .hnp-support:not(:hover):not(:focus-visible) .hnp-support__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
body.hnps-chrome:has(.hnps-bk) .hnp-support { display: none; } /* checkout / booking summary: the page carries "Cần hỗ trợ ngay?" */
@media (prefers-reduced-motion: reduce) {
	body.hnps-chrome .hnp-totop,
	body.hnps-chrome .hnp-support { transition: none; }
	body.hnps-chrome.hnp-v4-scrolling-down .hnp-totop,
	body.hnps-chrome.hnp-v4-scrolling-down .hnp-support { transform: none; }
}

/* ===================================================================== 4. header · mega menu · drawer */
/* M1 — one link colour for the three brand cards (the brand accent stays on the card's mark / hover rule, not on shared chrome). */
body.hnps-chrome .hnp-mega .hnp-mega__cta { color: var(--hnp-color-accent-text, #7d5636); }
body.hnps-chrome .hnp-mega .hnp-mega__brand:hover .hnp-mega__cta,
body.hnps-chrome .hnp-mega .hnp-mega__brand:focus-visible .hnp-mega__cta { color: var(--hnp-color-ink, #0e1a26); }

/* M3 — 1024–1279: "Đăng nhập" was an unlabeled icon (hanopalais-ui.css hides the word). The word comes back from 1140px, where it fits
   (the clone proof measured a 41px header overflow at 1024 with the word on); below that the icon keeps its aria-label and gets a
   tooltip-sized hit area. The CTA is a touch more compact in this band either way. */
@media (min-width: 1024px) and (max-width: 1279px) {
	body.hnps-chrome .hnp-header .hnp-header__actions .hnp-btn { padding-inline: 18px; letter-spacing: 0.04em; }
}
@media (min-width: 1140px) and (max-width: 1279px) {
	body.hnps-chrome .hnp-header .hnp-header__account span:not(.hnp-nav__caret) { display: inline; }
	body.hnps-chrome .hnp-header .hnp-header__account { padding: 6px 8px; }
}

/* MN2 — on tablets the drawer was a full-screen sheet (700px-wide buttons, hairlines across the screen): a 480px side panel, the page
   behind dimmed. MN1 — the contact links at its foot get a hairline and room, so they read as their own group. */
@media (min-width: 600px) and (max-width: 1023px) {
	body.hnps-chrome .hnp-drawer { left: auto; width: min(480px, 100%); box-shadow: 0 0 0 100vmax rgba(14, 26, 38, 0.42); }
}
body.hnps-chrome .hnp-drawer__foot { padding-bottom: calc(var(--hnp-space-6, 32px) + env(safe-area-inset-bottom, 0px)); }
body.hnps-chrome .hnp-drawer__contact { margin-top: var(--hnp-space-5, 24px); padding-top: var(--hnp-space-4, 16px); border-top: 1px solid var(--hnp-color-border, rgba(14, 26, 38, 0.12)); }

/* ===================================================================== 5. footer */
/* N4 — the footer mark is a 1199×645 canvas with the "H" in its middle: shown at 64px high it sat ~40px right of the text column.
   Cropped to the mark (x 382–817 of 1199 → 44px wide at 64px high), so it aligns with the copy under it. */
body.hnps-chrome .hnp-footer .hnp-footer__logo {
	width: 44px;
	height: 64px;
	object-fit: cover;
	object-position: 50% 50%;
}
/* G2 — the registration line (an official name, in capitals as registered) wrapped to four heavy lines on a phone. */
@media (max-width: 767px) {
	body.hnps-chrome .hnp-footer .hnp-footer__registration { font-size: 0.6875rem; line-height: 1.55; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }
	body.hnps-chrome .hnp-footer .hnp-footer__company { font-size: 0.75rem; }
}

/* ===================================================================== 6. search */
/* H2 / PD1 — at 320–399px the two date fields were ~140px wide with an icon each: the placeholder ("Chọn ngà…") and the CHOSEN time
   ("20/10 · 14…") were cut. The icon steps out and the value may wrap — nothing is ellipsised any more. */
@media (max-width: 399px) {
	body.hnps-chrome .hnp-search .hnp-search__field--in,
	body.hnps-chrome .hnp-search .hnp-search__field--out { padding-inline: 10px; gap: 0; }
	body.hnps-chrome .hnp-search .hnp-search__field--in .hnp-search__icon,
	body.hnps-chrome .hnp-search .hnp-search__field--out .hnp-search__icon { display: none; }
	body.hnps-chrome .hnp-search .hnp-search__field--in .hnp-search__value,
	body.hnps-chrome .hnp-search .hnp-search__field--out .hnp-search__value {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 0.875rem;
		line-height: 1.25;
	}
}
/* G7 — the guest picker says where its limit comes from. */
.hnp-search__pop .hnp-search__stepnote { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--hnp-color-muted, #4f5b66); }

/* S4 — the brand filter: long brand names wrapped inside pill chips. In the sidebar they are a single-choice list, so each option is a
   full-width tile (two lines read as intended). */
body.hnps-chrome .hnp-field--brand .hnp-picks { display: grid; gap: 8px; }
body.hnps-chrome .hnp-field--brand .hnp-pick { display: block; }
body.hnps-chrome .hnp-field--brand .hnp-pick__label {
	display: block;
	width: 100%;
	border-radius: var(--hnp-v4-radius-card);
	text-align: left;
	white-space: normal;
	line-height: 1.35;
	padding: 10px 14px;
}

/* S6 — the count names what is bookable and what is still opening (text set by hanopalais-v4.js). */
body.hnps-chrome .hnp-v4-count-soon { color: var(--hnp-color-muted, #4f5b66); font-weight: 500; }

/* S7 — a coming-soon card with no address / description yet says so instead of standing empty. */
body.hnps-chrome .hnps-result__pending { margin: 6px 0 0; font-size: var(--hnp-text-sm, 0.875rem); color: var(--hnp-color-muted, #4f5b66); }

/* G8 — one clear "hết phòng" state above the room cards (T-0953: the cards are no longer dimmed, Owner FBW2310 §III "khó đọc"). */
body.hnps-chrome .hnps-rooms__empty--soldout { margin-bottom: var(--hnp-space-5, 24px); }
body.hnps-chrome .hnps-rooms__empty--soldout[hidden] { display: none; }

/* ===================================================================== 7. pages */

/* H6 — home hero: the outline CTA now opens the bases listing (content bundle); it reads as the secondary action next to the search. */
/* H5 — brand cards. V4-T72d (Owner Task C): the V4-T28 rules that lived here made the three logos read too small next to Live:
   `padding: 14% 18%` on the absolutely positioned logo <img> shrank the box object-fit draws in to ≈ 64 % × 72 % of the frame, and the
   (0,3,1) selector below beat the (0,3,0) logo-media rule of hanopalais-site.css (2560 / 1418 ratio, the brand's own soft tint), so the
   frame also lost the brand tint for a neutral sand ground. Both are removed: the card is drawn by hanopalais-site.css exactly as on
   Live (frame ratio 2560 / 1418, tint var(--hnps-accent-soft), logo `object-fit: contain` filling the frame). */

/* PL2 — the brand hub: the logo panels were ~600×200 posters with ~200px empty bands between brands. */
body.hnps-chrome .hnps-brandfeat { padding-block: clamp(32px, 4vw, 56px); }
/* V4-T37b: that padding was ADDED to the existing `.hnps-brandrows .hnps-brandfeat + .hnps-brandfeat { margin-top: 56–96px }`, so the
   bands between brands grew to ≈ 300 px at 1440 instead of shrinking (seen while proving NEW-1; live V4-T35 C363 shows the same) — and
   the rows also sit in a grid with gap 56–104 px (grid gaps never collapse with margins). One space now: no block padding, no sibling
   margin, the grid gap alone at 48–72 px between brands. */
body.hnps-chrome .hnps-brandrows .hnps-brandfeat { padding-block: 0; }
body.hnps-chrome .hnps-brandrows .hnps-brandfeat + .hnps-brandfeat { margin-top: 0; }
body.hnps-chrome .hnps-brandrows > .hnp-shell { gap: clamp(48px, 5vw, 72px); }
/* FB16-04 (Owner 15/10, image7 vs image8): the V4-T28 / V4-T37b rules that lived here (media capped at 300 px with object-fit contain, then from 768 px a
   340 px wide 957 / 1024 tile centred in its column) shrank the brand logo block to a small square with empty sides next to a wider text panel. They are
   removed: the logo image area is drawn by hanopalais-site.css exactly as in r3 and on Live (1.3fr / 1fr row, the image fills its column, 4 / 3 on phones,
   min-height 460 px from 1024 px, object-fit cover, rounded 22 px, brand tint ground, panel centred vertically). The spacing between brands (PL2 / V4-T37b
   above) and the phone label rule below are kept. */
/* PL4 — 320: "KHÁM PHÁ THƯƠNG HIỆU →" wrapped to two lines. Narrow screens: tighter tracking, the label stays on one line. */
@media (max-width: 399px) {
	body.hnps-chrome .hnp-btn { letter-spacing: 0.02em; padding-inline: 18px; }
	/* V4-T37b: the tracking alone was not enough (V4-T35: still 2 lines at 320) — the brand hub's long label also steps down a size. */
	body.hnps-chrome .hnps-brandfeat__actions .hnp-btn { white-space: nowrap; font-size: 0.8125rem; letter-spacing: 0.01em; padding-inline: 14px; }
}

/* AB2 — About: a first set of base cards (8 / 4 on phones); "Xem hệ thống cơ sở" opens the full listing (/co-so/). */
body.hnps-chrome .hnps-network--compact > li:nth-child(n+9) { display: none; }
@media (max-width: 767px) {
	body.hnps-chrome .hnps-network--compact > li:nth-child(n+5) { display: none; }
}
body.hnps-chrome .hnps-network__more { margin-top: var(--hnp-space-5, 24px); }

/* PD3 — the intro card names the nearest place; the full list is the "Quanh … có gì?" section. */
body.hnps-chrome .hnps-propintro__nearby-sum { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: var(--hnp-text-sm, 0.875rem); color: var(--hnp-color-text, #1b232c); }
body.hnps-chrome .hnps-propintro__nearby-sum svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ML2 — member landing: one header treatment for the four tiers (ink), the tier's own colour kept as a top rule + on its mark;
   the saturated copper / blue / slate fills were four accent colours side by side. */
body.hnps-chrome .hnps-tiertable .hnps-tierhead {
	background: var(--hnp-color-ink, #0e1a26);
	color: #ffffff;
	box-shadow: inset 0 4px 0 var(--tier, var(--hnp-color-accent, #b08968));
}
body.hnps-chrome .hnps-tiertable .hnps-tierhead .hnps-tierhead__rank { color: rgba(255, 255, 255, 0.72); }
body.hnps-chrome .hnps-tiertable .hnps-tierhead .hnps-tiermark { stroke: var(--tier, rgba(255, 255, 255, 0.92)); }
/* ML3 — phones: stacked tier cards instead of a one-column swipe table. */
.hnps-tiercards { display: none; }
@media (max-width: 599px) {
	body.hnps-chrome .hnps-tiertable__scroll,
	body.hnps-chrome .hnps-tiertable__hint { display: none; }
	body.hnps-chrome .hnps-tiercards { display: grid; gap: 12px; margin: var(--hnp-space-5, 24px) 0 0; padding: 0; list-style: none; }
	body.hnps-chrome .hnps-tiercard {
		border: 1px solid var(--hnp-color-border, rgba(14, 26, 38, 0.12));
		border-top: 4px solid var(--tier, var(--hnp-color-accent, #b08968));
		border-radius: var(--hnp-v4-radius-card);
		background: #ffffff;
		padding: 14px 16px;
	}
	body.hnps-chrome .hnps-tiercard__head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--hnp-font-display); font-weight: 700; font-size: 1.0625rem; color: var(--hnp-color-ink, #0e1a26); }
	body.hnps-chrome .hnps-tiercard__mark svg { width: 28px; height: 28px; }
	body.hnps-chrome .hnps-tiercard__rows { margin: 0; display: grid; gap: 8px; }
	body.hnps-chrome .hnps-tiercard__rows > div { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--hnp-color-border, rgba(14, 26, 38, 0.12)); }
	body.hnps-chrome .hnps-tiercard__rows dt { font-size: 0.8125rem; color: var(--hnp-color-muted, #4f5b66); }
	body.hnps-chrome .hnps-tiercard__rows dd { margin: 0; font-weight: 700; font-size: 0.9375rem; line-height: 1.4; color: var(--hnp-color-ink, #0e1a26); }
	body.hnps-chrome .hnps-tiercard__rows dd small { display: block; margin-top: 2px; line-height: 1.4; font-weight: 400; font-size: 0.8125rem; color: var(--hnp-color-muted, #4f5b66); }
}
/* ML5 — the conditions behind one disclosure. */
body.hnps-chrome .hnps-conditions__more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--hnp-color-accent-text, #7d5636); }
body.hnps-chrome .hnps-conditions__more[open] > summary { margin-bottom: 8px; }
body.hnps-chrome .hnps-conditions__more > summary:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08968); outline-offset: 3px; }
/* V4-T37b (NEW-3): the box kept its old 1fr / 2fr grid, so the disclosure landed mid-box (column 2) and "Điều khoản chương trình"
   dropped a row below the title (V4-T35 C139). Collapsed, it is one line of actions under the title; opened, the list takes the
   full width (two columns on wide screens) and the terms link follows it. */
body.hnps-chrome .hnps-conditions:has(> .hnps-conditions__more) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
body.hnps-chrome .hnps-conditions:has(> .hnps-conditions__more) > .hnps-conditions__title { flex: 1 1 100%; margin-bottom: 4px; }
body.hnps-chrome .hnps-conditions:has(> .hnps-conditions__more) > .hnps-conditions__more { flex: 0 1 auto; }
body.hnps-chrome .hnps-conditions:has(> .hnps-conditions__more) > .hnps-conditions__more[open] { flex-basis: 100%; }
body.hnps-chrome .hnps-conditions:has(> .hnps-conditions__more) > .hnp-link { flex: 0 1 auto; min-height: 44px; display: inline-flex; align-items: center; }
body.hnps-chrome .hnps-conditions__more .hnps-conditions__list { grid-column: auto; margin: 0; }
@media (min-width: 1024px) {
	body.hnps-chrome .hnps-conditions__more[open] .hnps-conditions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* LG1 — login aside: the three tier chips sat 2 + 1; one row of three (stacked on phones), the panel title at the H1's weight. */
body.hnps-chrome .hnps-auth__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.hnps-chrome .hnps-auth__tiers > li { min-width: 0; }
@media (max-width: 599px) {
	body.hnps-chrome .hnps-auth__tiers { grid-template-columns: 1fr; }
}
body.hnps-chrome .hnps-auth__aside-title { font-weight: 700; }

/* AC3 — account snapshot: one card treatment for tier points, reward points and balance (the balance keeps its ink tone as the only
   emphasis, on the same radius / padding / border). AC2 — the activity timeline opens on the latest six (hanopalais-v4.js adds
   "Xem thêm"); layout only, no member data is changed or cached. */
body.hnps-chrome .hnp-member__snapshot .hnp-member__group {
	border-radius: var(--hnp-v4-radius-card);
	border: 1px solid var(--hnp-color-border, rgba(14, 26, 38, 0.12));
	box-shadow: none;
}
body.hnps-chrome .hnp-member__snapshot .hnp-member__group--tier,
body.hnps-chrome .hnp-member__snapshot .hnp-member__group--reward { background: #ffffff; border-top-width: 1px; }
body.hnps-chrome .hnp-member__timeline.hnp-v4-collapsed > .hnp-member__event:nth-child(n+7) { display: none; }
body.hnps-chrome .hnp-v4-more { margin-top: 12px; }

/* CT1 — contact: the two hero actions side by side (Fanpage first). */
body.hnps-chrome .hnps-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* PA4 — partnership "Ba bước": the step lines wrapped to two lines each at 320 in the dark card. */
@media (max-width: 399px) {
	body.hnps-chrome .hnps-px-formaside__steps .elementor-icon-list-text { font-size: 0.875rem; line-height: 1.4; }
	body.hnps-chrome .hnps-px-formaside__steps .elementor-icon-list-item { padding-block: 8px; }
}
/* V4-T37b (NEW-5, pre-existing): the two contact buttons of that card sat in a wrapping row; at 320 the white "Gọi …" button kept its
   text width and ran to the card's right edge (no inner padding left). On phones they stack, each the card's full inner width. */
@media (max-width: 599px) {
	body.hnps-chrome .hnps--partner .e-con.hnps-px-formaside__actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	body.hnps-chrome .hnps-px-formaside__actions > .elementor-widget { align-self: stretch; flex: 0 0 auto; width: 100%; max-width: 100%; }
	body.hnps-chrome .hnps-px-formaside__actions :is(.elementor-widget-container, .elementor-button-wrapper) { display: block; width: 100%; max-width: 100%; }
	body.hnps-chrome .hnps-px-formaside__actions .elementor-widget .elementor-button { display: flex; width: 100%; justify-content: center; box-sizing: border-box; white-space: normal; text-align: center; }
}

/* PT1 / PT2 — policy pages: lists keep one indent (≈210px measure at 320 before), numbered H2s at the system's heading weight. */
body.hnps-chrome .hnps-legal__body ul,
body.hnps-chrome .hnps-legal__body ol { padding-left: 1.15em; margin-left: 0; }
@media (max-width: 599px) {
	body.hnps-chrome .hnps-legal__body ul ul,
	body.hnps-chrome .hnps-legal__body ol ul { padding-left: 0.9em; }
}
body.hnps-chrome .hnps-legal__body h2 { font-weight: 700; letter-spacing: -0.01em; margin-top: clamp(28px, 3vw, 40px); }
body.hnps-chrome .hnps-legal__body h3 { font-weight: 700; }

/* FQ1 — FAQ at ≥ 1024: topics on the left (sticky), questions on the right, inside the full container instead of a 760px column
   pushed to the left edge. */
@media (min-width: 1024px) {
	body.hnps-chrome .hnps-faqpage { max-width: none; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
	body.hnps-chrome .hnps-faqpage__nav { position: sticky; top: calc(var(--hnp-header-h, 76px) + 24px); display: grid; gap: 8px; grid-row: 1 / span 20; }
	body.hnps-chrome .hnps-faqpage__nav .hnp-chip { justify-content: flex-start; text-align: left; }
	body.hnps-chrome .hnps-faqpage > :not(.hnps-faqpage__nav) { grid-column: 2; max-width: 820px; }
}

/* J4 — journal: the featured image is a portrait social graphic — "cover" cut it through a line of its text. Shown whole. */
body.hnps-chrome .hnp-post--featured .hnp-card__media { background: var(--hnp-color-sand, #efe9df); }
body.hnps-chrome .hnp-post--featured .hnp-card__media img { object-fit: contain; }
/* J5 — the featured title broke into four lines with "Check-/in" split: balanced, at a calmer size. */
body.hnps-chrome .hnp-post--featured .hnp-post__title { font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.25rem); line-height: 1.15; text-wrap: balance; }
body.hnps-chrome .hnp-post__title { text-wrap: balance; }
/* J3 — articles: keyword bolding reads as SEO styling; it stays bold, one step lighter, and the hashtag line is a quiet tag row. */
body.hnps-chrome :is(.hnps-article__body, .entry-content) strong { font-weight: 600; }
body.hnps-chrome .hnp-v4-tags { font-size: 0.8125rem; color: var(--hnp-color-muted, #4f5b66); word-spacing: 0.3em; }

/* AR3 — areas: coming-soon bases of the district. */
body.hnps-chrome .hnps-areacard__soon { margin: 4px 0 0; font-size: var(--hnp-text-sm, 0.875rem); color: var(--hnp-color-accent-text, #7d5636); font-weight: 600; }

/* ST1 — stay types: a line icon per card. */
body.hnps-chrome .hnps-staycard__icon { display: block; width: 32px; height: 32px; margin: 4px 0 8px; fill: none; stroke: var(--hnp-color-accent-text, #7d5636); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* N3 — 404: the three recovery actions as one group — equal buttons, the text link on its own line on phones. */
body.hnps-chrome .hnp-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
@media (max-width: 479px) {
	body.hnps-chrome .hnp-404__actions .hnp-btn { flex: 1 1 100%; }
	body.hnps-chrome .hnp-404__actions .hnp-link { flex: 1 1 100%; text-align: center; padding-block: 8px; }
}

/* ===================================================================== 8. V4-T32 (§XIX performance / SEO / a11y) */
/* Search color-contrast ×18 (axe): a price being re-priced faded to opacity .45 (hanopalais-site.css [data-hnps-tariff-busy]), so its
   text fell under 4.5:1 while the fetch ran. It stays fully opaque and turns the muted ink (≈ 7:1 on white) with a progress cursor. */
body.hnps-chrome [data-hnps-tariff-busy] { opacity: 1; cursor: progress; }
body.hnps-chrome [data-hnps-tariff-busy],
body.hnps-chrome [data-hnps-tariff-busy] * { color: var(--hnp-color-muted, #4f5b66); }

/* Visible breadcrumb (HNPS_SEO::visible_breadcrumb — the page's declared BreadcrumbList), a slim strip above the footer. */
body.hnps-chrome .hnp-breadcrumb { border-top: 1px solid var(--hnp-color-border, rgba(14, 26, 38, 0.12)); background: var(--hnp-color-bg, #fbfaf7); }
body.hnps-chrome .hnp-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 14px 0; list-style: none; font-size: var(--hnp-text-sm, 0.875rem); line-height: 1.5; color: var(--hnp-color-muted, #4f5b66); }
body.hnps-chrome .hnp-breadcrumb__item { display: inline-flex; align-items: center; min-width: 0; }
body.hnps-chrome .hnp-breadcrumb__item + .hnp-breadcrumb__item::before { content: "›"; margin: 0 8px; color: var(--hnp-color-muted, #4f5b66); }
body.hnps-chrome .hnp-breadcrumb__item a { color: var(--hnp-color-accent-text, #7d5636); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
body.hnps-chrome .hnp-breadcrumb__item a:hover, body.hnps-chrome .hnp-breadcrumb__item a:focus-visible { color: var(--hnp-color-ink, #0e1a26); }
body.hnps-chrome .hnp-breadcrumb__item[aria-current] span { color: var(--hnp-color-ink, #0e1a26); font-weight: 600; overflow-wrap: anywhere; }

/* Property map (OFB-010 kept: no click): the frame arrives when the box reaches the screen or at the first interaction; until then
   the box shows a quiet waiting line in its final size (no layout shift). */
body.hnps-chrome .hnps-propmap { position: relative; background: var(--hnp-color-sand, #efe9df); }
body.hnps-chrome .hnps-propmap__wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: var(--hnp-text-sm, 0.875rem); color: var(--hnp-color-muted, #4f5b66); }
body.hnps-chrome .hnps-propmap.is-ready .hnps-propmap__wait { display: none; }

/* Search empty-heading (axe, < 1100 px): the count heading shows its short text, which the booking script marks aria-hidden, while the
   long text was display:none — so on phones and tablets the heading had NO accessible text at all. The long text stays in the
   accessibility tree, visually hidden, from the same breakpoint (hnp-booking.css). */
@media (max-width: 1099px) {
	body.hnps-chrome .hnp-results__count .hnp-results__count-long { display: inline; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}

/* ===================================================================== 8. EXC batch A (T-0714, hnp-c08-web) — presentation only */
/* R07(1) — the filter rail stands only from 1024px. Between 768 and 1023 the 300px rail squeezed the result column to 420px and cut
   the sort label ("Theo cơ s"); there the phone's own toolbar (Lọc / Sắp xếp: hnp-booking.js opens the sheet and moves the one
   filter panel into it) takes over. Nothing is duplicated: the panel lives in the rail only while the rail is visible. */
@media (min-width: 768px) and (max-width: 1023px) {
	body.hnps-chrome .hnp-results__layout { grid-template-columns: minmax(0, 1fr); }
	body.hnps-chrome .hnp-results__layout > .hnp-rail { display: none; }
	body.hnps-chrome .hnp-results:has(.hnp-results__header:not([hidden])) .hnp-toolbar[hidden] { display: flex !important; } /* beats .hnp-results [hidden] { display: none !important } */
	body.hnps-chrome .hnp-toolbar__count { display: none; } /* the header keeps the one count */
	body.hnps-chrome .hnp-results__header .hnp-field--sort { display: none; }
}
/* R07(4) — phones: the image banner between the search bar and the results goes; the results start one screen higher. */
@media (max-width: 767px) {
	body.hnps-chrome .hnp-results__main > .hnp-strip { display: none; }
}

/* R08 + N-04 — room dialog on a phone (< 480px). */
@media (max-width: 479px) {
	/* N-04: a 4:3 stage, so a landscape room photograph fills it — no empty navy band above the picture. */
	body.hnps-chrome .hnps-roommodal__stage { height: auto; aspect-ratio: 4 / 3; }
	/* Amenities: two columns, the first six, then "Xem tất cả N tiện ích". */
	body.hnps-chrome .hnps-roommodal .hnps-roommodal__amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
	body.hnps-chrome .hnps-roommodal__amenities li { font-size: 0.875rem; align-items: flex-start; }
	body.hnps-chrome .hnps-roommodal__amenities--fold:not(.is-open) > li:nth-child(n + 7) { display: none; }
	body.hnps-chrome .hnps-roommodal__more { margin-top: 10px; min-height: 44px; }
}
/* T-0768 J-08: the one-row footer for the whole ONE-COLUMN dialog (< 900 px, hanopalais-rooms.css), not only phones. At 768 the
   full footer (status, tags, total, notes, breakdown, price-table link, action) was ~300 px under a ~640 px photo: the sticky footer
   cannot rise above the info column, so "Đặt phòng này" sat below the screen. */
@media (max-width: 899px) {
	/* One-row footer: amount + unit on the left, the action on the right; the availability line stays above it. The price notes,
	   the breakdown and the price-table link stay in the footer behind "Chi tiết giá" (hanopalais-rooms.js). */
	body.hnps-chrome .hnps-roommodal__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
	body.hnps-chrome .hnps-roommodal__foot > * { grid-column: 1 / -1; }
	/* Rows are pinned: availability line, then amount, then "Chi tiết giá"; the action spans the last two and wraps to two lines
	   rather than squeezing the amount. Opened details flow full width below. */
	body.hnps-chrome .hnps-roommodal__foot > .hnps-room__avail { grid-row: 1; }
	body.hnps-chrome .hnps-roommodal__foot > .hnps-price { grid-column: 1; grid-row: 2; }
	body.hnps-chrome .hnps-roommodal__foot > .hnps-roommodal__pricetoggle { grid-column: 1; grid-row: 3; justify-self: start; }
	body.hnps-chrome .hnps-roommodal .hnps-roommodal__foot > .hnps-roommodal__cta { grid-column: 2; grid-row: 2 / span 2; width: auto; max-width: 11rem; min-height: 48px; padding: 6px 16px; white-space: normal; line-height: 1.2; font-size: 0.8125rem; text-align: center; }
	body.hnps-chrome .hnps-roommodal__foot .hnps-room__amount { font-size: 1.25rem; }
	body.hnps-chrome .hnps-roommodal__foot .hnps-room__avail { font-size: 0.8125rem; }
	body.hnps-chrome .hnps-roommodal__foot:not(.is-open) :is(.hnps-tariff-tags, .hnps-room__pricenote, .hnps-pricebreak, .hnps-room__prices, [data-hnps-policy-detail]) { display: none; }
	/* The two fold buttons read as links: the theme's dark button skin (Astra button rules) does not apply to them. */
	body.hnps-chrome .hnps-roommodal button:is(.hnps-roommodal__pricetoggle, .hnps-roommodal__more),
	body.hnps-chrome .hnps-roommodal button:is(.hnps-roommodal__pricetoggle, .hnps-roommodal__more):is(:hover, :focus) {
		display: inline-flex; align-items: center; width: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
		color: var(--hnp-color-accent-text, #7d5636); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; text-transform: none;
		text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; line-height: 1.3;
	}
	body.hnps-chrome .hnps-roommodal button.hnps-roommodal__pricetoggle { min-height: 32px; font-size: 0.8125rem; }
	body.hnps-chrome .hnps-roommodal__foot.is-open .hnps-roommodal__pricetoggle::after { content: " \25B4"; }
	body.hnps-chrome .hnps-roommodal__foot:not(.is-open) .hnps-roommodal__pricetoggle::after { content: " \25BE"; }
}
@media (min-width: 480px) {
	body.hnps-chrome .hnps-roommodal__more { display: none; }
}
@media (min-width: 900px) {
	body.hnps-chrome .hnps-roommodal__pricetoggle { display: none; }
}

/* N-01 — while a sheet or a dialog is open the page's floating buttons step out (they sat over the sheet's chips), and the filter
   sheet is lifted over the sticky header (z 500), so its scrim really covers the page. */
body.hnps-chrome .hnp-sheet { z-index: 600; }
body.hnps-chrome:has(.hnp-sheet:not([hidden]), .hnps-roommodal:not([hidden]), .hnps-gal:not([hidden]), .hnps-lightbox:not([hidden]), .hnp-search__backdrop:not([hidden])) :is(.hnp-support, .hnp-totop) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* R22 — the filter sheet's close button in the system style (the round sand button of the room dialog and the gallery), not the
   theme's square brown button. */
body.hnps-chrome .hnp-sheet button.hnp-sheet__close,
body.hnps-chrome .hnp-sheet button.hnp-sheet__close:focus {
	width: 44px;
	height: 44px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--hnp-color-sand, #efe9df);
	color: var(--hnp-color-ink, #0e1a26);
	font-size: 1.5rem;
	line-height: 1;
	box-shadow: none;
}
body.hnps-chrome .hnp-sheet button.hnp-sheet__close:hover { background: #e4dccd; color: var(--hnp-color-ink, #0e1a26); }
/* R22 — the home date picker overhung a 1440x900 screen by 6px: 10px less inner padding on short desktop screens. */
@media (min-width: 1024px) and (max-height: 940px) {
	body.hnps-chrome .hnp-search__pop[data-picker="in"],
	body.hnps-chrome .hnp-search__pop[data-picker="out"] { padding-top: 12px; padding-bottom: 12px; }
}
/* R22 — footer policy links: no separator left alone at the end of a line; the links wrap as a row with a gap instead. */
body.hnps-chrome .hnp-footer__policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
body.hnps-chrome .hnp-footer__policies > span[aria-hidden="true"] { display: none; }

/* N-05 — a link inside the running text of a notice is an inline link: underlined text, no 44px box (the touch-size rule of
   hanopalais-ui.css made it an inline-flex box whose hairline floated between two lines). */
body.hnps-chrome .hnps-bk__notice .hnp-link {
	display: inline;
	min-height: 0;
	padding: 0;
	letter-spacing: 0;
	font-size: inherit;
	background-image: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* T-0953 (Owner FBW2310 §II): the R06 phone fold of the request notice is gone, so the screenshot + Fanpage instruction is always in full.
   These two lines only hide the old controls in a page rendered before this change. */
body.hnps-chrome .hnps-bk__noticechk,
body.hnps-chrome .hnps-bk__noticemore { display: none; }

/* R14 — checkout under 1024px: a field brought into view (Tab, the browser's own scroll to an invalid field) stops above the
   sticky total bar instead of under it. */
@media (max-width: 1023px) {
	html:has(body.hnps-chrome .hnps-bk) { scroll-padding-bottom: 176px; scroll-padding-top: 80px; }
}

/* Member account (C02_PLAN P1 + P4; the --dup classes come from C02 T-0713) — phones only (max 767px); nothing changes wider. */
@media (max-width: 767px) {
	/* P1.1 — one scrollable pill row instead of a four-row wall. */
	body.hnps-chrome .hnps-acctnav { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
	body.hnps-chrome .hnps-acctnav__list { flex-wrap: nowrap; white-space: nowrap; scroll-snap-type: x proximity; }
	body.hnps-chrome .hnps-acctnav__item { flex: 0 0 auto; scroll-snap-align: start; }
	body.hnps-chrome .hnps-acctnav__item a { display: inline-flex; align-items: center; min-height: 44px; }
	/* P1.2 — the policy links leave the nav; the same links stay in the site footer on every page (.hnp-footer__policies). */
	body.hnps-chrome .hnps-acctnav__legal { display: none; }
	/* P1.3 / P1.4 — shortcut tiles and side cards that repeat a tab. */
	body.hnps-chrome .hnps-acct__action--dup,
	body.hnps-chrome .hnps-acct__side--dup { display: none; }
	/* P4 — the Fanpage bubble never covers the first line of account content. */
	body.hnps-chrome:has(.hnps-acct) .hnp-support { bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
	body.hnps-chrome .hnps-acct__main > :last-child,
	body.hnps-chrome .hnp-verify-banner { padding-right: calc(48px + 16px); }
}

/* R21 — contrast. (a) The home "Xem 12 cơ sở đang đón khách" link turned ink on brown (#0e1a26 on #7d5636 = 2.73:1) on hover:
   white on that brown is 6.45:1, as the other brown buttons already are. (b) The gold focus ring (#b08968) is 2.63:1 on the sand
   sections (#efe9df): a 2px ink ring at the element's edge joins it, so the indicator reads at 15:1 on sand and white, while the
   gold outline keeps it visible on dark surfaces (header over a photo, footer, gallery). */
body.hnps-chrome .hnps-sectionhead__more .elementor-button:is(:hover, :focus-visible),
body.hnps-chrome .hnps-sectionhead__more .elementor-button:is(:hover, :focus-visible) .elementor-button-text,
body.hnps-chrome a.hnps-sectionhead__more:not(.hnp-link):is(:hover, :focus-visible) { color: #fff; } /* T-0750: not the text-link variant (base-6 "Xem tất cả cơ sở" on sand: white was 1.21:1) */
body.hnps-chrome :where(.hnp-btn, .hnp-link, a, button, [role="tab"], summary):focus-visible { box-shadow: 0 0 0 2px var(--hnp-color-ink, #0e1a26); }

/* ===================================================================== 9. EXC batch B (T-0729, hnp-c08-web) — presentation only */
/* C03 (T-0712) price display: a total is followed by its span on a line of its own ("330.000đ" / "Tổng 3 giờ · 14:00–17:00 26/10"),
   so the span never squeezes the amount; the charge line and "Chuyển sang …" sit under it as quiet secondary text. */
body.hnps-chrome .hnps-result[data-hnp-tariff="quote"] .hnps-room__price { flex-wrap: wrap; row-gap: 2px; }
body.hnps-chrome .hnps-result[data-hnp-tariff="quote"] .hnps-room__price .hnps-room__unit { flex: 0 0 100%; font-size: 0.8125rem; line-height: 1.4; }
body.hnps-chrome .hnps-result__staybreak { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--hnps-muted, #4f5b66); overflow-wrap: anywhere; }
body.hnps-chrome .hnps-result__staybreak-line { margin: 0; }
/* The switch was white on white (an inherited button colour): a real link in the accent text colour, 44px tall for a thumb. */
body.hnps-chrome .hnps-room__side a.hnps-fallback-switch,
body.hnps-chrome .hnps-room__side a.hnps-fallback-switch:visited {
	display: inline-flex;
	align-items: center;
	align-self: inherit;
	min-height: 44px;
	padding: 0;
	background: none;
	color: var(--hnp-color-accent-text, #7d5636);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
body.hnps-chrome .hnps-room__side a.hnps-fallback-switch:hover { color: var(--hnp-color-ink, #0e1a26); }
/* C04 (T-0711) R04 (1): "Còn phòng lúc …" says when the base IS free — a short positive line right above "Xem giờ khác". */
body.hnps-chrome .hnps-result__slotnote { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--hnp-color-ink, #0e1a26); overflow-wrap: anywhere; }
/* R03 / R04: a card this search cannot book keeps one action, drawn as the outline (secondary) button C04 asked for, never the dark
   primary fill of "Chọn phòng" (.hnps-result__cta's own fill outranked .hnp-btn--secondary). */
body.hnps-chrome .hnps-room.hnps-result .hnps-result__cta[data-hnps-dead] {
	background: transparent;
	color: var(--hnp-color-ink, #0e1a26);
	border: 1.5px solid var(--hnp-color-ink, #0e1a26);
	box-shadow: none;
	white-space: normal;
	height: auto;
	text-align: center;
}
/* A theme / kit hover rule painted these brown with ink text (2.7:1, seen at 390); their own states win here. */
body.hnps-chrome .hnps-room.hnps-result .hnps-result__cta[data-hnps-dead]:is(:hover, :focus, :focus-visible, :active) { background: var(--hnp-color-ink, #0e1a26) !important; border-color: var(--hnp-color-ink, #0e1a26) !important; color: #fff !important; }
/* R04 (3): every base full — one sand box above the list; each other slot is an outline chip that wraps instead of running off a
   390px screen (it was a dark nowrap button cut at both ends). */
body.hnps-chrome .hnps-slots { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--hnp-radius-medium, 12px); background: var(--hnp-color-sand, #efe9df); }
body.hnps-chrome .hnps-slots__title { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--hnp-color-ink, #0e1a26); }
body.hnps-chrome .hnps-slots__chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.hnps-chrome .hnps-slots a.hnps-slots__chip {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 100%;
	height: auto;
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid var(--hnp-color-ink, #0e1a26);
	border-radius: 22px;
	background: #fff;
	color: var(--hnp-color-ink, #0e1a26);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	white-space: normal;
	overflow-wrap: anywhere;
}
body.hnps-chrome .hnps-slots a.hnps-slots__chip:is(:hover, :focus, :focus-visible, :active) { background: var(--hnp-color-ink, #0e1a26) !important; border-color: var(--hnp-color-ink, #0e1a26) !important; color: #fff !important; }
/* R05 (b) picker notice + R03 guest limit: one soft notice line under the search form; "Chuyển sang Theo ngày" is a link-weight
   action inside it, not a second dark button competing with "Áp dụng". */
body.hnps-chrome .hnp-search__staynote:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 12px;
	margin: 10px 0 0;
	padding: 6px 14px;
	border-radius: 10px;
	background: var(--hnp-color-sand, #efe9df);
	color: var(--hnp-color-ink, #0e1a26);
	font-size: 0.875rem;
	line-height: 1.45;
}
body.hnps-chrome .hnp-search__staynote-text { padding: 6px 0; }
body.hnps-chrome .hnp-search button.hnp-search__staynote-switch,
body.hnps-chrome .hnp-search button.hnp-search__staynote-switch:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	width: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--hnp-color-accent-text, #7d5636);
	font-size: inherit;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
body.hnps-chrome .hnp-search button.hnp-search__staynote-switch:hover { color: var(--hnp-color-ink, #0e1a26); }

/* Phones: the side of a base card is a two-column grid (price | action, hnp-booking.css). The new lines took grid cells of their own
   and pushed "Xem giờ khác" off the card. Fixed order: status, eyebrow, price + action on one row, then the full-width lines. */
@media (max-width: 767px) {
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > * { grid-column: 1 / -1; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-result__avail { order: 1; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-result__from { order: 2; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-room__price { order: 3; grid-column: 1; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-room__cta { order: 4; grid-column: 2; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-result__staybreak { order: 5; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-result__slotnote { order: 6; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-price__policy { order: 7; }
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-result__cta[data-hnps-dead] { min-width: 0; max-width: 11rem; padding-inline: 16px; }
}
/* 700–1023: the side of a search card is a centred wrapping row (hnp-booking.css justify-content: center); the two lines take a full row under the price, centred with it (seen right-aligned at 768 in the first after shot). */
@media (min-width: 700px) and (max-width: 1023px) {
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > :is(.hnps-result__staybreak, .hnps-result__slotnote) { flex: 1 0 100%; align-items: center; text-align: center; }
}
/* 1024–1399: the side is a left-aligned wrapping row under the card (hanopalais-rooms.css) — the lines take a full row. */
@media (min-width: 1024px) and (max-width: 1399px) {
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > :is(.hnps-result__staybreak, .hnps-result__slotnote) { flex: 1 0 100%; }
}
/* 1400+: a right-aligned column; the lines align with the price. */
@media (min-width: 1400px) {
	body.hnps-chrome .hnp-grid .hnps-result .hnps-result__staybreak { align-items: flex-end; text-align: right; }
}

/* ===================================================================== 10. EXC batch C (T-0741, hnp-c08-web) — presentation only */
/* C03 T-0739: a window priced as another stay type says so on the first line under the price ("Khung giờ này được tính theo ngày"),
   no longer in the eyebrow. It is the line the guest must not miss, so it reads in ink, a step above the muted charge line. */
body.hnps-chrome .hnps-result__staybreak-note { color: var(--hnp-color-ink, #0e1a26); font-weight: 600; }

/* C05 T-0730 §3 #5 (axe color-contrast, checkout @1440): the package line under "Giá phòng" (e.g. "Gói Đêm 21h–9h") was the muted
   colour at opacity 0.7 in 12px type — below 4.5:1 on the white summary card (measured in the before probe). Full opacity in the muted ink gives 6.95:1. Scoped to
   the checkout card (.hnps-bk) and to direct children (the price-breakdown list keeps its own colours); the dark summary panels elsewhere
   keep their light-on-dark treatment. */
body.hnps-chrome .hnps-bk .hnps-summary--money dd > span { opacity: 1; color: var(--hnps-muted, #4f5b66); }

/* ===================================================================== 11. EXC round 2 (T-0750, hnp-c08-web) — presentation only */
/* F-8 (AUD R07(2)) — phones: the result card is a decision card — photo, name, status, the total and one action. Address, "Phù hợp",
   amenity chips, description, the charge line and the price-table button fold away; all of it is on the base page the photo, the
   name and the button open. The window's notice ("Khung giờ này được tính theo ngày") and the tax line stay. Measured 870 → see report. */
@media (max-width: 479px) {
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-room__media { aspect-ratio: 2 / 1; height: auto; } /* 2:1 (was 4:3): the facade band; the posters are left-aligned (object-position left) */
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result :is(.hnps-room__address, .hnps-room__suitable, .hnps-result__amenities, .hnps-room__desc, .hnps-result__prices) { display: none; }
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-result__staybreak-line:not(.hnps-result__staybreak-note) { display: none; }
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-room__info { padding-bottom: 4px; }
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-room__info > * + * { margin-top: 6px; }
}
/* F-8 — 768–1023: one column already (no rail; the "Lọc" bar — "Sắp xếp" only appears when a price sort is offered); the 4:3
   photograph of a 718 px card was 539 px tall. A 2:1 band keeps the facade and halves the picture. */
@media (min-width: 700px) and (max-width: 1023px) {
	body.hnps-chrome .hnp-grid .hnps-room.hnps-result .hnps-room__media { aspect-ratio: 2 / 1; height: auto; }
}

/* F-6 (R14) — checkout on phones: the sticky "Tổng … Tiếp tục" bar was 140 px (label, amount and tax note on three lines) and covered
   the guest helper under the selects. One row now: "Tổng 13.500.000đ" with the tax note under it in small type, beside the button. */
@media (max-width: 1023px) {
	body.hnps-chrome .hnps-bk__submit { align-items: center; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
	body.hnps-chrome .hnps-bk__total-mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 0; align-items: baseline; line-height: 1.25; }
	body.hnps-chrome .hnps-bk__total-mobile > span { grid-column: 1; }
	body.hnps-chrome .hnps-bk__total-mobile > strong { grid-column: 2; white-space: nowrap; }
	body.hnps-chrome .hnps-bk__total-mobile > :not(span):not(strong) { grid-column: 1 / -1; max-width: none; font-size: 0.75rem; line-height: 1.3; }
	body.hnps-chrome .hnps-bk__submit .hnps-bk__cta { min-height: 44px; }
}

/* F-11 — "Giữ đăng nhập trên thiết bị này": the box itself 24 px (the whole 44 px label row stays clickable). */
body.hnps-chrome .hnps-check input[type="checkbox"] { width: 24px; height: 24px; margin: 10px 0; }

/* Contrast pass (WCAG AA, measured with computed colours — report §4) */
/* Result cards: the hover of "Xem phòng" / "Xem trước" turns the card's brown (#7d5636); ink text on it was 2.73:1, white is 6.45:1. */
body.hnps-chrome .hnps-room.hnps-result :is(.hnp-btn--primary, .hnp-btn--secondary):not([data-hnps-dead]):is(:hover, :focus-visible) { color: #fff; }
/* Focus indicator ≥ 3:1 against what is next to it: ink on the light surfaces (page, white, sand, the yellow notice — gold was 2.63 /
   2.89:1 there), gold kept on the dark ones (ink footer, gallery, lightbox, the room photo stage, the photographic home hero). Each
   control keeps its own outline width and offset. */
body.hnps-chrome :is(a, button, summary, input, select, textarea, [tabindex], [role="tab"], [role="button"]):focus-visible { outline-color: var(--hnp-color-ink, #0e1a26) !important; box-shadow: 0 0 0 2px #fff !important; }
/* Two-colour indicator (WCAG technique C40): an ink outline outside a 2 px white halo at the edge — on a light surface the ink ring reads
   (≥ 14:1), on a dark band the white one does (≥ 15:1), so no list of dark panels can go stale. The room carousel track drew its ring
   as a gold box-shadow on sand (2.63:1): it gets a real outline too. */
body.hnps-chrome .hnps-roomcar__track:focus-visible { outline: 2px solid var(--hnp-color-ink, #0e1a26); outline-offset: 2px; }
body.hnps-chrome :is(.hnp-footer, .hnps-gal, .hnps-lightbox, .hnps-roommodal__stage, .hnps-hero) :is(a, button, summary, input, select, textarea, [tabindex], [role="tab"], [role="button"]):focus-visible { outline-color: var(--hnp-color-accent, #b08968) !important; }
/* The footer's column headings are <summary>: the browser's own 1 px near-black ring was 1.08:1 on the ink footer. */
body.hnps-chrome .hnp-footer summary:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08968); outline-offset: 2px; }

/* ===================================================================== 12. EXC P3 (T-0754, hnp-c08-web) — presentation only */
/* F-12 — "Trở lại đầu trang" in focus: the theme's button focus colour turned the white 44 px button brown (#7d5636) while its ink
   arrow stayed ink — 2.73:1 for the icon. In focus it keeps its white face (arrow 17.6:1); the ink ring + white halo of §11 marks it. */
body.hnps-chrome button.hnp-totop:is(:focus, :focus-visible) { background: #fff; color: var(--hnp-color-ink, #0e1a26); border-color: rgba(14, 26, 38, 0.12); }
body.hnps-chrome button.hnp-totop:is(:focus, :focus-visible):hover { background: var(--hnp-color-sand, #f1e9df); }
/* F-13 — Google Maps on the base page. Keyboard focus inside the third-party frame cannot be styled from here (Chrome does not match
   :focus / :focus-within for the iframe), so the map's loader marks the box .is-kbfocus while a keyboard user is in the map
   (property-intro.php, T-0414 R7). The ring was gold on white (3.17:1) and on the box only; now an ink ring outside the box (≥ 14:1 on
   the page) and the same ring drawn on the frame's own edge, inside it, so the focused element itself carries a visible indicator
   at every one of its Tab stops. The frame keeps its title ("Bản đồ <cơ sở>") and stays keyboard-usable. */
body.hnps-chrome .hnps-propmap.is-kbfocus { outline: 3px solid var(--hnp-color-ink, #0e1a26); outline-offset: 2px; }
body.hnps-chrome .hnps-propmap.is-kbfocus iframe { outline: 3px solid var(--hnp-color-ink, #0e1a26); outline-offset: -3px; box-shadow: none; }

/* ===================================================================== 13. FBW2310 T06 (T-0768, hnp-c08-web) — presentation only */
/* J-01 — checkout at ≥ 1024: an empty "Tiếp tục" focuses the first invalid field (hanopalais-checkout.js bad.focus()); the browser
   scrolled it only just into view, under the sticky header + sticky stepper (≈ 134 px), so "Họ và tên" and its message were hidden.
   The same 150 px the step script uses for its own scroll (R14 covers < 1024). */
@media (min-width: 1024px) {
	html:has(body.hnps-chrome .hnps-bk) { scroll-padding-top: 150px; }
}

/* ===================================================================== 14. FBL2410 header 1280–1365 (T-0806, hnp-c08-web) — presentation only */
/* Signed-in member at 1280–1365: logo + 6 nav items (755 px) + bell + account + CTA overflowed the header bar by 2 px at 1280 and the name
   was cut to ~3 letters ("Khá…", 4ch cap). The nav is a little tighter in this band only (link padding 14 → 10 px, no gap between items, bar
   gap 16 px, actions gap 8 px: 755 → 687 px), which gives the name a 9ch cap like 1366–1439. Same font size; ≤ 1279 and ≥ 1366 unchanged. */
@media (min-width: 1280px) and (max-width: 1365px) {
	.hnp-header .hnp-nav { gap: 0; }
	.hnp-header .hnp-nav__link,
	.hnp-header button.hnp-nav__link { padding-left: 10px; padding-right: 10px; }
	.hnp-header .hnp-nav__link::after { left: 10px; right: 10px; }
	.hnp-header .hnp-header__bar { gap: 16px; }
	.hnp-header .hnp-header__actions { gap: 8px; }
	.hnp-header__actions:has(.hnp-header__bell) .hnp-header__account span { max-width: 9ch; }
}

/* ===================================================================== 15. FBL2410 /dat-phong/ 1280–1399 (T-0806 P3, hnp-c08-web) — presentation only */
/* At 1024–1399 the results band is a 1000 px shell (hnp-booking.css; 1270 px from 1400): at 1366 the result column was 670 px, ~180 px stayed
   empty each side, and the card fell back to photo | facts with the price row under it (526 px vs 370 at 1440). From 1280 the band takes
   the 1440 shell (1270 px, or the viewport less 80 px) and the card the 1440 layout: photo | facts | price column on the right.
   The values are the computed 1440 ones (obs-cssdiff-p3.json); 1024–1279 keeps the two-row card. */
@media (min-width: 1280px) and (max-width: 1399px) {
	body.hnps-chrome .hnp-results__layout { --hnp-shell: min(1270px, calc(100vw - 80px)); }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__body { grid-template-columns: 280px minmax(0, 1fr) minmax(208px, 24%); }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side {
		grid-column: auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-end;
		justify-content: flex-start;
		gap: 12px 24px;
		padding: 0 0 0 24px;
		border-top: 0;
		border-left: 1px solid var(--hnps-line, rgba(14, 26, 38, 0.12));
		text-align: right;
	}
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > * { text-align: right; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > :is(.hnps-room__avail, .hnps-result__staybreak, .hnps-result__slotnote) { flex: 0 1 auto; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-result__staybreak { align-items: flex-end; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-room__price { flex: 0 1 auto; justify-content: flex-end; }
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__side > .hnps-room__cta { margin-top: 12px; width: auto; min-width: 117px; }
}
@media (min-width: 1366px) and (max-width: 1399px) {
	body.hnps-chrome .hnp-grid .hnps-result .hnps-room__body { grid-template-columns: 300px minmax(0, 1fr) minmax(208px, 24%); }
}

/* ===================================================================== 16. FBL2410 checkout step 2 (T-0818, hnp-c08-web) — presentation only */
/* 1) The member benefit choice is styled in hanopalais-site.css, but the checkout bundle (split/hanopalais-site.checkout.css) does not carry
   those rules, so on /checkout/ the value, badge, title and notes ran together as loose inline text. The same rules, here (v4.css loads
   on every page; the account pages keep their own copy). */
.hnp-benefit__options { display: grid; gap: 8px; }
.hnp-benefit__option { display: flex; align-items: flex-start; gap: 10px; }
.hnp-benefit__radio { flex: 0 0 auto; width: 20px; height: 20px; margin: 13px 0 0; }
.hnp-benefit__card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid rgba(14, 26, 38, 0.16); border-radius: 12px; cursor: pointer; min-height: 44px; line-height: 1.4; flex: 1 1 auto; min-width: 0; }
.hnp-benefit__option.is-unavailable .hnp-benefit__card { cursor: default; opacity: 0.72; }
.hnp-benefit__radio:checked + .hnp-benefit__card, .hnp-benefit__card:has(.hnp-benefit__radio:checked) { border-color: #0e1a26; box-shadow: 0 0 0 1px #0e1a26 inset; }
.hnp-benefit__value { flex: 0 0 auto; min-width: 2.75em; font-weight: 700; font-size: 1.05em; }
.hnp-benefit__body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hnp-benefit__label { display: block; font-weight: 600; }
.hnp-benefit__note { display: block; font-size: 0.875em; color: #4a5561; }
.hnp-benefit__note > span { display: block; }
.hnp-benefit__cmp { display: block; margin-top: 4px; font-weight: 600; color: #3b2a14; }
.hnp-benefit__lead { margin: 0 0 10px; line-height: 1.5; }
/* 2) Phones: the sticky step-2 bar gave "Xác nhận đặt phòng" ~100 px beside the total ("Tổng" + amount on one row, the tax line under it set a
   198 px column), so the label wrapped to 4 lines (5 for "Gửi yêu cầu đặt phòng" at 360). Below 480 px "Tổng" sits above the amount, the tax
   line wraps under it, the total is as wide as its amount and the button takes the rest of the row. */
@media (max-width: 479px) {
	body.hnps-chrome .hnps-bk__submit { flex-wrap: nowrap; gap: 12px; }
	body.hnps-chrome .hnps-bk__submit .hnps-bk__total-mobile { flex: 0 0 auto; grid-template-columns: max-content; max-width: 52%; }
	body.hnps-chrome .hnps-bk__total-mobile > span { font-size: 0.75rem; line-height: 1.2; }
	body.hnps-chrome .hnps-bk__total-mobile > strong { grid-column: 1; }
	body.hnps-chrome .hnps-bk__total-mobile > :not(span):not(strong) { grid-column: 1; max-width: 9.5em; }
	body.hnps-chrome .hnps-bk__submit .hnps-bk__cta { flex: 1 1 auto; min-width: 0; padding-inline: 10px; font-size: 0.875rem; letter-spacing: 0.01em; line-height: 1.2; white-space: normal; text-wrap: balance; }
}

/* ===================================================================== 17. FGL2410 room dialog footer (T-0829, hnp-c08-web) — presentation only */
/* Phones / one-column dialog (< 900 px): amount and "Tổng 1 đêm · 30/10–31/10" shared one inline line, so the unit broke after the "·"
   ("950.000đ Tổng 1 đêm · / 30/10–31/10"). The unit sits on its own line under the amount, balanced. */
@media (max-width: 899px) {
	body.hnps-chrome .hnps-roommodal__foot .hnps-price .hnps-room__unit { display: block; margin-top: 2px; text-wrap: balance; }
}

/* ===================================================================== 18. PHV2 nearby-place links on phones (T-0868, hnp-c08-web) — presentation only */
/* "Khám phá khu phố": the places are links 19 px tall with no space between rows — under the 24 px minimum target size. On phones the clickable
   area of each link grows by 6 px UPWARD (a transparent ::after), so every target is 25 px tall and the targets tile the list without overlapping.
   Layout, row height, underline and text are unchanged (verified: document height identical). */
@media (max-width: 767px) {
	body.hnps-chrome .hnps-place__name a { position: relative; }
	body.hnps-chrome .hnps-place__name a::after { content: ""; position: absolute; inset: -6px -2px 0; }
}

/* ===================================================================== 19. PHV2 checkout: the long-stay discount line (T-0873, hnp-c08-web) — presentation only */
/* The R14 tier line under "Giá phòng" ("15 đêm × 756.000đ (ở dài ngày, giảm 16% …)", "+ 22 giờ thêm …", "Tối đa bằng giá tháng …") is the main
   selling point of a long-stay quote but was 12 px at 70 % opacity. Same size as the label above it (14 px), full text colour. Only the span the
   template marks with .hnps-bk__tier (R14 quotes); every other price-card line keeps its style. */
body.hnps-chrome .hnps-bk .hnps-summary--money dd span.hnps-bk__tier { font-size: 0.875rem; line-height: 1.45; opacity: 1; color: var(--hnp-color-text, #1b232c); }
