/* UI-296 Home tabbed block (Owner 2026-11-05), from prototypes/home-food-tabs-v1. Classes prefixed ht-. */
.ht{--text:var(--color-text,#171614);--muted:var(--color-text-muted,#6f6c66);--border:var(--color-border,#e6e3dc);--accent:var(--color-accent,#b08a52);--serif:var(--font-serif,'Source Serif 4',Georgia,serif);--sans:var(--font-sans,Inter,system-ui,sans-serif)}
.ht *,.ht *::before,.ht *::after{box-sizing:border-box}
.ht .container{min-width:0}
.ht .ht-cta{display:inline-flex;white-space:nowrap;align-items:center;gap:12px;padding:16px 34px;border:1px solid var(--text);color:var(--text);text-decoration:none;font:500 11px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;transition:background .15s,color .15s}
.ht .ht-cta:hover{background:var(--text);color:#fff}
.ht .ht-cta svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ht .ht-tabs{display:flex;gap:28px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border);-webkit-overflow-scrolling:touch}
.ht .ht-tabs::-webkit-scrollbar{display:none}
.ht .ht-tab{appearance:none;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:12px 0;font:500 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);cursor:pointer;white-space:nowrap}
.ht .ht-tab[aria-selected=true]{color:var(--text);border-bottom-color:var(--accent)}
.ht .ht-subwrap{position:relative}
.ht .ht-subtabs{display:flex;gap:16px;align-items:center;padding:14px 0 4px;min-height:44px;max-width:100%}
.ht .ht-more{position:relative;margin-left:auto}
.ht .ht-more-btn{display:inline-flex;align-items:center;gap:7px;appearance:none;border:0;background:none;padding:8px 10px;font:600 13px/1 var(--sans);color:var(--text);cursor:pointer;white-space:nowrap}
.ht .ht-more-btn svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.ht .ht-more-btn[aria-selected=true]{box-shadow:inset 0 -1px 0 var(--text)}
.ht .ht-more-btn[aria-expanded=true]{background:var(--text);color:#fff;box-shadow:none}
.ht .ht-more-btn[aria-expanded=true] svg{transform:rotate(180deg)}
.ht .ht-more-menu{position:absolute;right:0;top:100%;z-index:5;min-width:200px;background:#fff;border:1px solid var(--border);box-shadow:0 12px 28px rgba(14,13,12,.12);padding:6px 0;display:none}
.ht .ht-more-menu.ht-open{display:block}
.ht .ht-more-menu button{display:block;width:100%;text-align:right;appearance:none;border:0;background:none;padding:11px 18px;font:400 13px/1.2 var(--sans);color:var(--muted);cursor:pointer}
.ht .ht-more-menu button:hover{color:var(--text);background:#f7f6f3}
.ht .ht-more-menu button[aria-selected=true]{color:var(--text);font-weight:500}
.ht .ht-sub{appearance:none;background:none;border:0;padding:4px 0;font:400 13px/1 var(--sans);color:var(--muted);cursor:pointer;white-space:nowrap;border-bottom:1px solid transparent}
.ht .ht-sub[aria-selected=true]{color:var(--text);border-bottom-color:var(--text)}
.ht .ht-page{margin-top:22px}
.ht .ht-big{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ht .ht-small{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px;margin-top:28px;border-top:1px solid var(--border)}
.ht .ht-card{min-width:0}
.ht .ht-card a{color:inherit;text-decoration:none;display:block;min-width:0}
.ht .ht-card .ht-img{aspect-ratio:3/2;background:#ddd;overflow:hidden}
.ht .ht-card img{width:100%;height:100%;max-width:100%;object-fit:cover;display:block}
.ht .ht-eyebrow{margin:12px 0 6px;font-size:10px;line-height:14px;letter-spacing:1.4px;text-transform:uppercase;color:var(--accent);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht .ht-eyebrow i{font-style:normal;color:var(--border);margin:0 2.6px}
.ht .ht-eyebrow span{color:var(--muted)}
.ht .ht-big h3{font-family:var(--serif);font-weight:450;font-size:22px;line-height:1.3;margin:0}
.ht .ht-dek{margin:10px 0 0;font-size:15px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ht .ht-small .ht-card{padding:18px 0;border-bottom:1px solid var(--border)}
.ht .ht-small .ht-card a{display:flex;gap:16px;align-items:flex-start}
.ht .ht-small .ht-card .ht-img{flex:0 0 clamp(112px,36.5vw,160px);width:clamp(112px,36.5vw,160px)}
.ht .ht-small .ht-card .ht-tx{min-width:0}
.ht .ht-small .ht-eyebrow{margin:0 0 6px}
.ht .ht-small h3{font-family:var(--serif);font-weight:450;font-size:18px;line-height:23.4px;margin:0}
.ht .ht-empty{margin:28px 0;color:var(--muted);font-size:14px}
.ht .ht-foot{display:flex;align-items:center;justify-content:space-between;margin-top:24px}
.ht .ht-arrows{display:flex;gap:10px}
.ht .ht-arrow{width:52px;height:52px;border-radius:50%;border:0;background:var(--text);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .15s,transform .15s}
.ht .ht-arrow svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ht .ht-arrow:hover:not([disabled]){background:var(--accent);transform:scale(1.05)}
.ht .ht-arrow[disabled]{background:#e6e3dc;color:#a8a49b;cursor:default}
@media (min-width:641px){.ht .ht-small .ht-card a{gap:22px}.ht .ht-small .ht-card .ht-img{flex:0 0 220px;width:220px}.ht .ht-small h3{font-size:20px;line-height:26px}}
@media (max-width:900px){.ht .ht-big{grid-template-columns:minmax(0,1fr);gap:26px}.ht .ht-small{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.ht .ht-tabs,.ht .ht-subtabs{justify-content:space-between;gap:6px}.ht .ht-more{margin-left:0}.ht .ht-tab{font-size:10px;letter-spacing:0}.ht .ht-foot{gap:12px}.ht .ht-cta{flex:1;min-width:0;justify-content:center;padding:12px 10px;white-space:normal;text-align:center;line-height:1.35;letter-spacing:.12em}.ht .ht-cta svg{display:none}.ht .ht-arrow{width:44px;height:44px}.ht .ht-big h3{font-size:24px;line-height:1.3}.ht .ht-dek{font-size:14px}.ht .ht-arrow{width:48px;height:48px}}
.ht .ht-tab .ht-sm{display:none}
@media (max-width:640px){.ht .ht-tab .ht-lg{display:none}.ht .ht-tab .ht-sm{display:inline}}
/* UI-296e (Owner 2026-11-05): desktop and tablet (>=641px) tab labels and sub-tabs 16px. Phone unchanged. */
@media (min-width:641px){.ht .ht-tab{font-size:16px;letter-spacing:.1em;padding:14px 0}.ht .ht-sub{font-size:16px}.ht .ht-more-btn{font-size:16px}.ht .ht-more-menu button{font-size:16px}.ht .ht-tabs{gap:32px}.ht .ht-subtabs{gap:22px}}
/* UI-296f (Owner 2026-11-05): phone (<=640px) sub-tabs and More 14px (were 13px). Tab labels stay 10px: five labels do not fit one row at 14px. */
@media (max-width:640px){.ht .ht-sub{font-size:14px}.ht .ht-more-btn{font-size:14px}.ht .ht-more-menu button{font-size:14px}}
/* UI-296g (Owner 2026-11-05): phone (<=640px) top tab labels 12px (were 10px); gap 0 so five labels fit 393px. */
@media (max-width:640px){.ht .ht-tabs{gap:0}.ht .ht-tab{font-size:12px}}
/* UI-296h (Owner 2026-11-05): phone (<=640px) gold underline closer to the tab label (bottom padding 12px -> 6px). */
@media (max-width:640px){.ht .ht-tab{padding:12px 0 6px}}
/* UI-296i (Owner 2026-11-05): desktop (>=641px) top tab labels 14px (were 16px); large card title 24px (were 22px); gold underline no longer clipped by the scroll container (margin-bottom 0, line sits above the grey rule). */
.ht .ht-tab{margin-bottom:0}
.ht .ht-tabs{padding-bottom:1px}
@media (min-width:641px){.ht .ht-tab{font-size:14px}.ht .ht-big h3{font-size:24px}}
/* UI-296j (Owner 2026-11-05): CTA matches the other Home buttons (.btn-outline-dark): gold 1px frame, dark text, 12px/500/.08em uppercase, hover gold tint, 14px arrow. */
.ht .ht-cta{border:1px solid var(--accent);color:var(--text);font:500 12px/18px var(--sans);letter-spacing:.08em;gap:10px;padding:16px 32px}
.ht .ht-cta:hover{background:rgba(176,138,82,.08);color:var(--text)}
.ht .ht-cta svg{width:14px;height:14px}
@media (min-width:641px){.ht .ht-cta{min-width:300px;justify-content:center}}
@media (max-width:640px){.ht .ht-cta{padding:15px 12px;letter-spacing:.08em;line-height:18px}}
/* UI-305 (Owner 2026-11-05): grouped sub-tab dropdown (Hotels > Signature > Perspectives). */
.ht .ht-more.ht-grp{margin-left:0}
.ht .ht-grp .ht-more-menu{left:0;right:auto}
.ht .ht-grp .ht-more-menu button{text-align:left}
/* UI-305b: grouped dropdown button tighter on phone so Perspectives fits the row. */
@media (max-width:640px){.ht .ht-grp .ht-more-btn{padding:8px 6px 8px 8px;gap:5px}}
/* UI-305c: Perspectives dropdown fits a 393px row. */
@media (max-width:640px){.ht .ht-subtabs{gap:4px}.ht .ht-grp .ht-more-btn{padding:8px 2px 8px 4px;gap:4px}}
/* UI-305d: on phone the grouped dropdown menu aligns to the right edge of its button (same as More). */
@media (max-width:640px){.ht .ht-grp .ht-more-menu{left:auto;right:0}.ht .ht-grp .ht-more-menu button{text-align:right}}
/* UI-306 (Owner 2026-11-05): tabbed block card descriptions use the site description weight 300 (same as the older cards). */
.ht .ht-dek{font-weight:300}
/* UI-307 (Owner 2026-11-05): tabbed block card description 16px / 1.6 like the older cards (phone stays 14px). */
@media (min-width:641px){.ht .ht-dek{font-size:16px;line-height:1.6}}
/* UI-309 (Owner 2026-11-05): Travel Products tabs wrap onto several lines on phone (no sub-tabs in this block). */
@media (max-width:640px){#products.ht .ht-tabs{flex-wrap:wrap;overflow:visible;justify-content:flex-start;gap:4px 22px}#products.ht .ht-tab{margin-bottom:0;padding:10px 0;border-bottom-width:2px}#products.ht .ht-tabs{padding-bottom:0}}
/* UI-311 (Owner 2026-11-05): Travel Products tabs on phone: 2 rows. Packing Lists shown before Travel Accessories (phone only) so the rows balance; font 9.5px. */
@media (max-width:640px){#products.ht .ht-tabs{justify-content:space-between;gap:6px 6px}#products.ht .ht-tab{font-size:9.5px}#products.ht .ht-tab:nth-child(5){order:1}#products.ht .ht-tab:nth-child(4){order:2}#products.ht .ht-tab:nth-child(6){order:3}#products.ht .ht-tab:nth-child(7){order:4}}
/* UI-312 (Owner 2026-11-05): corrects UI-311. Travel Products tabs on phone keep the standard tab size (10px) and the normal order (Travel Kits last); two rows: All + 3 tabs, then 3 tabs. */
@media (max-width:640px){#products.ht .ht-tab{font-size:10px}#products.ht .ht-tab:nth-child(4),#products.ht .ht-tab:nth-child(5),#products.ht .ht-tab:nth-child(6),#products.ht .ht-tab:nth-child(7){order:0}#products.ht .ht-tabs{gap:6px 10px}}
/* UI-313 (Owner 2026-11-05): Travel Products phone tabs use exactly the Journeys tab typography (12px, line-height 12px, padding 12px 0 6px). Rows wrap naturally. */
@media (max-width:640px){#products.ht .ht-tab{font-size:12px;line-height:12px;padding:12px 0 6px;letter-spacing:normal}#products.ht .ht-tabs{gap:0 12px}}
/* UI-314 (Owner 2026-11-05): Travel News section label 18px on desktop (phone unchanged); "More from Vietnam" band label 15px on phone (desktop unchanged). */
@media (min-width:641px){html #travel-news .section-label{font-size:18px;line-height:27px}}
@media (max-width:640px){html #destinations .trending-band-label{font-size:15px;line-height:22px}}

/* TN-TABS-CSS (Owner 2026-11-06): Home Travel News tabs on phone: tabs that do not fit one row wrap onto the next row, centred (like Travel Products, UI-313). */
@media (max-width:640px){#travelnews.ht .ht-tabs{flex-wrap:wrap;overflow:visible;justify-content:center;gap:0 18px;padding-bottom:0}#travelnews.ht .ht-tab{font-size:12px;line-height:12px;padding:12px 0 6px;letter-spacing:normal}}

/* TN-TABS-CSS2 (Owner 2026-11-06): phone: first row of tabs justified to the full width, only the wrapped row is centred. All five tabs fit one row from about 542px, so the centring (auto margins on the last tab) is limited to 541px and below. */
@media (max-width:640px){#travelnews.ht .ht-tabs{justify-content:space-between;gap:0 12px}}
@media (max-width:541px){#travelnews.ht .ht-tab:last-child{margin-left:auto;margin-right:auto}}

/* TP-TABS-ROWS (Owner 2026-11-06): Home Travel Products tabs on phone: every full row justified edge to edge, only the last wrapped row centred (the centring is done by home-tabs.js with auto margins). Replaces the equal-thirds rule of UI-328, which assumed a 4+3 wrap (iPhone); Android wraps 3/2/2. */
@media (max-width:640px){html:not(#tp1):not(#tp2):not(#tp3):not(#tp4) #products.ht .ht-tabs{justify-content:space-between;gap:0 12px}html:not(#tp1):not(#tp2):not(#tp3):not(#tp4) #products.ht .ht-tab:nth-child(n+5){flex:0 0 auto;text-align:left}}

/* TP-TABS-ROWS2 (Owner 2026-11-06): Home Travel Products tabs on phone must fit TWO rows (4 + 3), also on Android Chrome (Samsung), whose text is wider than iOS Safari. Gap 6px and a fluid font size (9px at 327px wide up to 12px at 436px). iOS keeps 12px. */
@media (max-width:640px){html:not(#tp1):not(#tp2):not(#tp3):not(#tp4) #products.ht .ht-tabs{column-gap:6px}html:not(#tp1):not(#tp2):not(#tp3):not(#tp4) #products.ht .ht-tab{font-size:clamp(9px,2.75vw,12px)}}
@supports (-webkit-touch-callout:none){@media (max-width:640px){html:not(#tp1):not(#tp2):not(#tp3):not(#tp4) #products.ht .ht-tab{font-size:12px}}}

/* HT-HOTELS-LAYOUT-B 2026-11-06 (Owner): Home Hotels block, desktop + tablet (>=641px) = Layout B: 1 hero (3:2) + 2 supporting (16:9, no description) + 4 compact in 4 columns (4:3, image on top). Phone (<=640px) unchanged. Prototype: prototypes/home-hotels-layout-b-v1 v1.3. */
@media (min-width:641px){
#hotels.ht .ht-big{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:24px 16px}
#hotels.ht .ht-big>.ht-card:first-child{grid-column:1;grid-row:1/span 2}
#hotels.ht .ht-big>.ht-card:nth-child(n+2){grid-column:2;align-self:start}
#hotels.ht .ht-big .ht-card .ht-img{aspect-ratio:16/9}
#hotels.ht .ht-big>.ht-card:first-child .ht-img{aspect-ratio:3/2}
#hotels.ht .ht-big>.ht-card:first-child h3{font-size:28px;line-height:1.3}
#hotels.ht .ht-big>.ht-card:nth-child(n+2) h3{font-size:22px;line-height:1.3}
#hotels.ht .ht-big>.ht-card:nth-child(n+2) .ht-dek{display:none}
#hotels.ht .ht-small{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:28px;padding-top:28px}
#hotels.ht .ht-small .ht-card{padding:0;border-bottom:0}
#hotels.ht .ht-small .ht-card a{display:block}
#hotels.ht .ht-small .ht-card .ht-img{flex:none;width:auto;aspect-ratio:4/3}
#hotels.ht .ht-small .ht-eyebrow{margin:12px 0 6px}
#hotels.ht .ht-small h3{font-size:20px;line-height:26px}
}

/* HT-HOTELS-LAYOUT-B2 2026-11-06 (Owner): 3 large cards take the Home Destinations block as the standard (column gap 32px, supporting gap 28px, image to eyebrow 8px, eyebrow to title 8px, title to description 6px, lead title line-height 1.2; 24px at 641-1040px). 4 compact cards: column gap 32px, image 16:9. Phone unchanged. Overrides HT-HOTELS-LAYOUT-B. */
@media (min-width:641px){
#hotels.ht .ht-big{column-gap:32px;row-gap:28px}
#hotels.ht .ht-big .ht-eyebrow{margin:8px 0 8px}
#hotels.ht .ht-big>.ht-card:first-child h3{line-height:1.2}
#hotels.ht .ht-big .ht-dek{margin-top:6px}
#hotels.ht .ht-small{column-gap:24px}
#hotels.ht .ht-small .ht-card .ht-img{aspect-ratio:3/2}
#hotels.ht .ht-small .ht-eyebrow{margin:8px 0 8px}
}
@media (min-width:641px) and (max-width:1040px){
#hotels.ht .ht-big>.ht-card:first-child h3{font-size:24px}
}

/* HT-SRCSET 2026-11-06: the Hotels lead image may sit inside <picture>; keep it filling the card frame. */
.ht .ht-img picture{display:block;width:100%;height:100%}

/* JH-1 2026-11-22 (Owner, Japan Hub): Hotels block with 6 cards (1 hero + 2 supporting + 3 compact): the compact row has 3 columns. Home keeps 7 cards (no .ht--n6 class there). Phone/tablet <=900px already use one column. */
@media (min-width:641px){#hotels.ht.ht--n6 .ht-small{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* JH-1: a block with a single list (Japan Food) hides the empty tab bar but keeps the arrows. */
.ht.ht--notabs .ht-tabs,.ht.ht--notabs .ht-subwrap{display:none}
