/* Hobby Horse Academy app home: sleek premium dark (Apple Fitness / Spotify family).
   Layout concept: a large-title app screen. Big photo-led feature, then swipeable rows
   (lessons, groups, coaches, shop) and quiet grouped lists (members, events), all on true black.
   Tokens come from app-skin.css (:root). */

.hx {
  --hx-pad: max(16px, env(safe-area-inset-left, 0px));
  --hx-gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(14px) var(--hx-pad) 24px;
  color: var(--hha-ink);
  font-family: var(--hha-font-body);
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* sideways rows must never widen the page */
  gap: 34px;
}
.hx > *, .hx-top > *, .hx-sec { min-width: 0; }
.hx a { color: inherit; text-decoration: none; }
.hx img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-noimg { display: block; width: 100%; height: 100%; background: #161618; }
.hx img { background: #161618; } /* calm dark space while a photo loads, never a light bar */

/* large title */
.hx-hello { display: grid; gap: 6px; padding-top: 6px; justify-items: center; text-align: center; }
.hx-title {
  margin: 0;
  font: 800 clamp(32px, 8.6vw, 44px) / 1.05 var(--hha-font-display) !important;
  letter-spacing: -0.035em !important;
  color: var(--hha-ink);
}
.hx-lede { margin: 0; color: var(--hha-muted); font-size: 15px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; }
.hx-points { display: inline-flex; align-items: center; gap: 6px; color: var(--hha-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-points svg { width: 16px; height: 16px; color: var(--hha-pink); }
.hx-lede-link { color: var(--hha-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600; }

/* section header */
.hx-sec { display: grid; gap: 14px; min-width: 0; }
.hx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hx-h2 { margin: 0; font: 700 22px / 1.2 var(--hha-font-display) !important; letter-spacing: -0.02em !important; color: var(--hha-ink); }
.hx-see { color: var(--hha-muted) !important; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* swipeable rows */
.hx-rail {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--hx-pad);
  margin-inline: calc(var(--hx-pad) * -1);
  padding-inline: var(--hx-pad);
  padding-bottom: 4px;
  scrollbar-width: none;
}
.hx-rail::-webkit-scrollbar { display: none; }
.hx-rail > * { scroll-snap-align: start; }

/* stories */
.hx-rail--stories { grid-auto-columns: 74px; gap: 14px; }
.hx-story { display: grid; gap: 7px; justify-items: center; }
.hx-story-ring { width: 74px; height: 74px; border-radius: 50%; padding: 2.5px; background: #fff; }
.hx-story-ring img, .hx-story-ring .hx-noimg { border-radius: 50%; border: 2.5px solid var(--hha-bg); }
.hx-story-name { font-size: 11.5px; color: var(--hha-muted); text-align: center; line-height: 1.25; max-width: 74px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* feature + two tiles */
.hx-top { display: grid; gap: var(--hx-gap); }
.hx-feature {
  position: relative;
  display: grid;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #121214;
  isolation: isolate;
}
.hx-feature-media { display: block; aspect-ratio: 1373 / 706; overflow: hidden; }
.hx-feature-img { animation: hx-settle 1400ms var(--hha-ease-out) both; }
.hx-feature-body { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 18px 20px 24px; }
.hx-feature-title { font: 800 28px / 1.08 var(--hha-font-display); letter-spacing: -0.03em; text-wrap: balance; }
.hx-feature-sub { color: var(--hha-muted); font-size: 15px; line-height: 1.4; max-width: 34ch; margin: 0 auto 6px; }

.hx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hx-gap); }
.hx-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #121214; isolation: isolate; }
.hx-tile-img { position: absolute; inset: 0; z-index: -2; }
.hx-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.88) 100%); }
.hx-tile-body { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; gap: 4px; text-align: center; }
.hx-tile-title { font: 700 17px / 1.15 var(--hha-font-display); letter-spacing: -0.02em; text-wrap: balance; }
.hx-tile-sub { font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,0.75); }

/* buttons inside the home */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 600 15px / 1 var(--hha-font-body); letter-spacing: -0.01em;
  transition: transform 160ms var(--hha-ease-out);
}
.hx-btn--light { background: #fff; color: #0a0a0b; }

/* lessons */
.hx-sec .hx-rail { grid-auto-columns: min(72vw, 270px); }
.hx-course { display: grid; gap: 10px; align-content: start; }
.hx-course-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #121214; }
.hx-course-title { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--hha-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-tag {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 600; color: #fff; letter-spacing: 0.01em;
}
.hx-tag--quiet { position: static; background: #1f1f23; color: var(--hha-muted); }

/* groups */
.hx-sec .hx-rail:has(.hx-group) { grid-auto-columns: 118px; }
.hx-group { display: grid; gap: 8px; }
.hx-group img, .hx-group .hx-noimg { aspect-ratio: 1; border-radius: 20px; height: auto; }
.hx-group-name { font-size: 13.5px; font-weight: 600; text-align: center; color: var(--hha-ink); }

/* coaches */
.hx-sec .hx-rail:has(.hx-coach) { grid-auto-columns: 118px; }
.hx-coach { display: grid; gap: 8px; }
.hx-coach img, .hx-coach .hx-noimg { aspect-ratio: 1; height: auto; border-radius: 20px; object-fit: cover; }
.hx-coach-name { font-size: 13.5px; font-weight: 600; text-align: center; color: var(--hha-ink); }
.hx-coach-handle { display: none; }
@media (min-width: 1000px) { .hx-sec .hx-rail:has(.hx-coach) { grid-auto-columns: min(44vw, 230px); } }

/* grouped lists (iOS settings-style) */
.hx-list { display: grid; gap: 8px; }
.hx-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 10px 14px 10px 10px; position: relative;
  border-radius: 18px; background: #121214;
  transition: background-color 160ms ease, transform 200ms var(--hha-ease-out);
}
.hx-row:active { background: #1b1b1f; }
.hx-row-img, .hx-row .hx-noimg { width: 52px !important; height: 52px !important; border-radius: 12px; }
.hx-row-text { display: grid; gap: 3px; min-width: 0; }
.hx-row-title { font-weight: 600; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-row-sub { font-size: 13px; color: var(--hha-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-row-cta { font-size: 13px; font-weight: 600; color: var(--hha-ink); white-space: nowrap; }
.hx-chev { width: 18px; height: 18px; color: #5a5a60; }
.hx-date { width: 52px; height: 52px; border-radius: 12px; background: #1c1c20; display: grid; place-content: center; text-align: center; line-height: 1; gap: 3px; }
.hx-date-mon { font-size: 11px; font-weight: 700; color: var(--hha-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hx-date-day { font: 700 20px / 1 var(--hha-font-display); font-variant-numeric: tabular-nums; }

/* members + events: stacked on phones, side by side on wide screens */
.hx-pair { display: grid; gap: 34px; min-width: 0; }

/* shop */
.hx-sec .hx-rail:has(.hx-product) { grid-auto-columns: 158px; }
.hx-product { display: grid; gap: 4px; align-content: start; }
.hx-product img, .hx-product .hx-noimg { aspect-ratio: 1; height: auto; border-radius: 18px; background: #121214; margin-bottom: 6px; }
.hx-product-title { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-product-price { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.hx-note { margin: 0; font-size: 12px; line-height: 1.5; color: #75757b; max-width: 70ch; }

/* press feedback */
.hx-press { transition: transform 200ms var(--hha-ease-out); -webkit-user-select: none; user-select: none; }
.hx-press:active { transform: scale(0.97); }
.hx-feature.hx-press:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .hx-feature:hover .hx-feature-img, .hx-tile:hover .hx-tile-img, .hx-course:hover img, .hx-product:hover img { transform: scale(1.03); }
  .hx-feature-img, .hx-tile-img, .hx-course img, .hx-product img { transition: transform 600ms var(--hha-ease-out); }
  .hx-row:hover { background: #18181c; }
  .hx-btn--light:hover { transform: scale(1.03); }
}

/* the one authored moment: the hero photo settles in, sections follow */
@keyframes hx-settle { from { transform: scale(1.08); filter: brightness(0.6); } }
/* backwards, not both: a held transform traps position:fixed children (cart Checkout bar slid under the tab bar) */
.hx > * { animation: hx-rise 700ms var(--hha-ease-out) backwards; }
.hx > *:nth-child(2) { animation-delay: 60ms; }
.hx > *:nth-child(3) { animation-delay: 120ms; }
.hx > *:nth-child(4) { animation-delay: 180ms; }
.hx > *:nth-child(n+5) { animation-delay: 220ms; }
@keyframes hx-rise { from { transform: translateY(14px); } }

/* wider screens: a real desktop layout instead of a stretched phone */
@media (min-width: 900px) {
  .hx { gap: 44px; padding-top: 28px; max-width: 1000px; }
  .hx-top { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .hx-feature { align-content: start; }
  .hx-duo { grid-template-columns: 1fr; }
  .hx-tile { aspect-ratio: auto; min-height: 250px; }
  .hx-feature-title { font-size: 40px; }
  .hx-sec .hx-rail { grid-auto-columns: 280px; }
  .hx-pair { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hx > *, .hx-feature-img { animation: none !important; }
  .hx-press, .hx-btn, .hx-feature-img, .hx-tile-img { transition: none !important; }
}

/* ===================== App screens (shop, product, events, stable, compete, account) ===================== */
.hx-page { gap: 26px; max-width: 760px; }
.hx-native-scope { display: grid; gap: 26px; min-width: 0; }
.hx-block { display: grid; gap: 14px; min-width: 0; justify-items: stretch; text-align: center; }
.hx-anchor { display: block; position: relative; top: -70px; height: 0; }
.hx-media { display: block; border-radius: 22px; overflow: hidden; background: #121214; }
.hx-media img { width: 100%; height: auto !important; object-fit: contain; display: block; }
.hx-btitle { display: grid; gap: 4px; justify-items: center; }
.hx-btitle .hx-h2 { font-size: 24px !important; }
.hx-btitle a { color: inherit !important; }
.hx-bsub { margin: 0; color: var(--hha-muted); font-size: 15px; line-height: 1.4; }
.hx-text { color: #d6d6db; font-size: 15.5px; line-height: 1.6; text-align: left; max-width: 62ch; margin: 0 auto; width: 100%; }
.hx-text p { margin: 0 0 10px; }
.hx-text a { color: var(--hha-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.hx-text ul, .hx-text ol { padding-left: 1.2em; margin: 0 0 10px; }
.hx-bbtn { display: flex; justify-content: center; }
.hx-btn--pink { background: var(--hha-grad); color: #fff !important; min-height: 48px; padding: 0 28px; font-size: 16px; }
.hx-btn--quiet { background: #1c1c1e; color: var(--hha-muted) !important; min-height: 44px; }
.hx-btn:active { transform: scale(0.96); }

/* category tiles: two per row on phones, photo with the name under it */
.hx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hx-tiles--one { grid-template-columns: 1fr; }
.hx-tile2 { display: grid; gap: 8px; color: var(--hha-ink) !important; }
.hx-tile2 img, .hx-tile2 .hx-noimg { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 18px; background: #121214; }
.hx-tiles--one .hx-tile2 img { aspect-ratio: 16 / 7; }
.hx-tile2 span { font-weight: 700; font-size: 15px; }

/* working parts drawn by Elementor itself (forms, product lists, points, panels) */
.hx-native { text-align: left; min-width: 0; }
.hx-native .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
.hx-native--woocommerce-products ul.products {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; margin: 0 !important;
}
.hx-native--woocommerce-products ul.products::before, .hx-native--woocommerce-products ul.products::after { display: none !important; }
.hx-native--woocommerce-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: center; }
.hx-native details, .hx-native .e-n-accordion-item { background: #121214; border-radius: 16px; overflow: hidden; }
.hx-native .e-n-accordion-item-title { padding: 16px 18px !important; font-weight: 600; }
.hx-native form .elementor-field-group { margin-bottom: 10px; }

/* shop list */
.hx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--hx-pad) * -1); padding-inline: var(--hx-pad); }
.hx-chips::-webkit-scrollbar { display: none; }
.hx-chip { flex: none; padding: 9px 16px; border-radius: 999px; background: #1c1c1e; color: var(--hha-ink) !important; font-weight: 600; font-size: 14px; white-space: nowrap; }
.hx-chip.is-here { background: var(--hha-ink); color: #000 !important; }
.hx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.hx-grid .hx-product img, .hx-grid .hx-product .hx-noimg { aspect-ratio: 1; }
.hx-product-price del { color: var(--hha-muted); margin-right: 6px; }
.hx-product-price ins { text-decoration: none; }
.hx-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hx-pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; background: #1c1c1e; color: var(--hha-ink) !important; font-weight: 600; }
.hx-pager .current { background: var(--hha-ink); color: #000 !important; }
.hx-empty { margin: 0; color: var(--hha-muted); text-align: center; padding: 18px; background: #121214; border-radius: 18px; }

/* product */
.hx-pp { display: grid; gap: 22px; }
.hx-pp-rail { grid-auto-columns: 100% !important; gap: 10px; }
.hx-pp-shot { display: block; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #121214; }
.hx-pp-hint { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--hha-muted); }
.hx-pp-info { display: grid; gap: 12px; text-align: center; justify-items: center; }
.hx-pp-title { margin: 0; font: 800 26px / 1.15 var(--hha-font-display) !important; letter-spacing: -0.03em !important; text-wrap: balance; }
.hx-pp-price { margin: 0; font-size: 22px; font-weight: 700; color: var(--hha-ink); font-variant-numeric: tabular-nums; }
.hx-pp-info .hx-text { text-align: center; }
.hx-pp-buy { width: 100%; }
.hx-pp-buy form.cart { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 0 !important; }
.hx-pp-buy table.variations { width: 100%; margin: 0 0 6px !important; }
.hx-pp-buy table.variations th, .hx-pp-buy table.variations td { display: block; text-align: left; padding: 4px 0 !important; }
.hx-pp-buy select { width: 100%; min-height: 48px; border-radius: 14px; background: #1c1c1e; color: var(--hha-ink); border: 0; padding: 0 14px; font-size: 16px; }
.hx-pp-buy .single_add_to_cart_button { flex: 1 1 180px; }
.hx-details { width: 100%; background: #121214; border-radius: 18px; text-align: left; }
.hx-details summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.hx-details summary::-webkit-details-marker { display: none; }
.hx-details .hx-text { padding: 0 18px 16px; }

/* account */
.hx-account-body { text-align: left; }
.hx-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.hx-account .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px; background: #121214; color: var(--hha-ink) !important; font-weight: 600; }
.hx-account .woocommerce-MyAccount-navigation .is-active a { background: #1c1c1e; color: var(--hha-ink) !important; }

@media (min-width: 900px) {
  .hx-page { max-width: 980px; }
  .hx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-grid, .hx-native--woocommerce-products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .hx-pp { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .hx-pp-info { text-align: left; justify-items: start; position: sticky; top: 24px; }
  .hx-pp-info .hx-text { text-align: left; }
  .hx-pp-buy form.cart { justify-content: flex-start; }
}

/* the first photo of a screen stays a calm size (big logos and banners) */
.hx-native-scope > .hx-block:first-child > .hx-media:first-child img { max-height: 300px; width: auto; max-width: 100%; margin: 0 auto; }
.hx-native-scope > .hx-block:first-child > .hx-media:first-child { background: transparent; }

/* old in-page back buttons: the app frame already has navigation */
.hx-native--html:has(button[onclick*="history.back"]) { display: none !important; }
/* shortcodes that print nothing (e.g. a sign-in add-on that is switched off) */
.hx-native:has(.elementor-shortcode:empty) { display: none !important; }
/* points: a small badge, not a giant logo */
.hx-native--wp-widget-gamipress_user_points_widget { display: flex; justify-content: center; }
.hx-native--wp-widget-gamipress_user_points_widget .gamipress-inline-points-wrapper,
.hx-native--wp-widget-gamipress_user_points_widget .gamipress-inline-points {
  display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #1c1c1e; color: var(--hha-ink); font-weight: 700; font-size: 15px;
}
.hx-native--wp-widget-gamipress_user_points_widget img { width: 26px !important; height: 26px !important; max-width: 26px !important; object-fit: contain; }
/* single photos and logos never take over the screen */
.hx-media img { max-height: 380px; width: auto !important; max-width: 100%; margin: 0 auto; }
.hx-block > .hx-media:only-child, .hx-media:has(img[src*="logo"]), .hx-media:has(img[src*="HobbyHorse-Academy"]) { background: transparent; }
.hx-media:has(img[src*="logo"]) img, .hx-media:has(img[src*="HobbyHorse-Academy"]) img { max-height: 200px; }

/* ===================== Cart and checkout (WooCommerce's own parts, app styling) ===================== */
.hx-wc, .hx-native--woocommerce-checkout-page { text-align: left; }
/* cart block */
.hx-wc .wp-block-woocommerce-cart { margin: 0 !important; }
.hx-wc .wc-block-cart-items, .hx-wc .wc-block-cart-items th, .hx-wc .wc-block-cart-items td,
.hx-wc .wc-block-components-totals-wrapper, .hx-wc .wc-block-components-panel { border-color: transparent !important; }
.hx-wc .wc-block-cart-items__row { background: #121214; border-radius: 18px; }
.hx-wc .wc-block-cart-item__image img { border-radius: 14px; }
.hx-wc .wc-block-cart__sidebar, .hx-wc .wp-block-woocommerce-cart-order-summary-block {
  background: #121214; border-radius: 22px; padding: 16px !important;
}
.hx-wc .wc-block-components-quantity-selector { border-radius: 999px !important; background: #1c1c1e; border: 0 !important; }
.hx-wc .wc-block-components-quantity-selector:after { display: none !important; }
.hx-wc .wc-block-components-product-name { color: var(--hha-ink) !important; font-weight: 600; text-decoration: none; }
.hx-wc .wc-block-cart__submit-button, .hx-wc .wc-block-components-button:not(.is-link) { width: 100%; }
.hx-wc .wc-block-components-totals-item__value, .hx-wc .wc-block-formatted-money-amount { font-variant-numeric: tabular-nums; }
/* empty cart: keep it calm and centered */
.hx-wc .wp-block-woocommerce-empty-cart-block { text-align: center; }
.hx-wc .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: 20px !important; }
.hx-wc .wp-block-woocommerce-empty-cart-block .wp-block-separator { display: none; }

/* checkout widget (Elementor Pro) */
.hx-native--woocommerce-checkout-page .e-checkout__container { display: grid !important; gap: 16px; }
.hx-native--woocommerce-checkout-page .e-checkout__column, .hx-native--woocommerce-checkout-page .e-checkout__order_review,
.hx-native--woocommerce-checkout-page .e-checkout__order_review-2, .hx-native--woocommerce-checkout-page #payment,
.hx-native--woocommerce-checkout-page .e-coupon-box, .hx-native--woocommerce-checkout-page .woocommerce-billing-fields,
.hx-native--woocommerce-checkout-page .woocommerce-shipping-fields, .hx-native--woocommerce-checkout-page .woocommerce-additional-fields {
  background: #121214 !important; border: 0 !important; border-radius: 22px !important; box-shadow: none !important;
}
.hx-native--woocommerce-checkout-page .e-checkout__column-inner, .hx-native--woocommerce-checkout-page .woocommerce-billing-fields { padding: 4px; }
.hx-native--woocommerce-checkout-page h3, .hx-native--woocommerce-checkout-page .e-checkout-secondary-title {
  font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.01em !important; color: var(--hha-ink) !important;
}
.hx-native--woocommerce-checkout-page table.shop_table, .hx-native--woocommerce-checkout-page table.shop_table th,
.hx-native--woocommerce-checkout-page table.shop_table td { border-color: rgba(255,255,255,0.06) !important; background: transparent !important; color: var(--hha-ink) !important; }
.hx-native--woocommerce-checkout-page #payment ul.payment_methods { border: 0 !important; padding: 12px !important; }
.hx-native--woocommerce-checkout-page #payment div.payment_box { background: #1c1c1e !important; border-radius: 14px; color: var(--hha-ink); }
.hx-native--woocommerce-checkout-page #payment div.payment_box::before { display: none !important; }
.hx-native--woocommerce-checkout-page #place_order { width: 100%; min-height: 54px !important; font-size: 17px !important; }
.hx-native--woocommerce-checkout-page .select2-container--default .select2-selection--single {
  background: #1c1c1e !important; border: 0 !important; border-radius: 14px !important; min-height: 50px; display: flex; align-items: center;
}
.hx-native--woocommerce-checkout-page .select2-selection__rendered { color: var(--hha-ink) !important; }
.select2-dropdown { background: #1c1c1e !important; border: 0 !important; color: var(--hha-ink); }
.select2-results__option--highlighted { background: var(--hha-grad) !important; }
.hx-native--woocommerce-product-upsell ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
.hx-native--woocommerce-product-upsell ul.products::before, .hx-native--woocommerce-product-upsell ul.products::after { display: none !important; }
.hx-native--woocommerce-product-upsell ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (min-width: 900px) {
  .hx-native--woocommerce-checkout-page .e-checkout__container { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
/* checkout: one card per part, never a card inside a card */
.hx-native--woocommerce-checkout-page .e-checkout__column .woocommerce-billing-fields,
.hx-native--woocommerce-checkout-page .e-checkout__column .woocommerce-shipping-fields,
.hx-native--woocommerce-checkout-page .e-checkout__column .woocommerce-additional-fields { background: transparent !important; border-radius: 0 !important; }
.hx-native--woocommerce-checkout-page .e-checkout__column { padding: 18px !important; }
/* form dropdowns look like the other fields (filled, no outline) */
.elementor-field-group select, .elementor-field-group .elementor-field-textual {
  background: #1c1c1e !important; color: var(--hha-ink) !important; border: 0 !important; border-radius: 14px !important; min-height: 50px;
}
html body .hx-native .elementor-field-group select.elementor-field-textual,
html body .hx-native .elementor-field-group .elementor-select-wrapper select { border: 0 !important; border-color: transparent !important; background: #1c1c1e !important; }

/* ---------- Computers: the same two columns as the portal (680px content + 306px side column) ---------- */
.hx-side { display: none; }
@media (min-width: 1200px) {
  .hx:has(> .hx-side) { position: relative; max-width: calc(1016px + 2 * var(--hx-pad)); padding-right: calc(var(--hx-pad) + 336px); }
  .hx:has(> .hx-side) > .hx-hello { margin-right: -336px; }
  .hx > .hx-side { display: grid; gap: 16px; position: absolute; top: var(--hx-side-top, 100px); right: var(--hx-pad); width: 306px; }
  .hx-page > .hx-side { --hx-side-top: 92px; }
}
.hx-side-box { display: grid; gap: 4px; padding: 14px 10px 10px; border-radius: 20px; background: #121214; }
.hx-side-h { margin: 0 6px 6px; font: 700 15px / 1.2 var(--hha-font-display) !important; letter-spacing: -0.01em !important; color: var(--hha-ink); }
.hx-side-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 6px; border-radius: 14px; }
.hx-side-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1f1f22; display: block; }
.hx .hx-side-av { width: 36px; height: 36px; }
.hx-side-text { display: grid; gap: 3px; min-width: 0; }
.hx-side-msg { font-size: 13.5px; line-height: 1.35; color: var(--hha-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hx-side-msg .fcom_user_name { font-weight: 700; }
.hx-side-msg .fcom_feed_excerpt { color: var(--hha-muted); }
.hx-side-meta { font-size: 12px; color: var(--hha-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .hx-side-item { transition: background-color 160ms ease; }
  .hx-side-item:hover { background: #1a1a1d; }
}

/* the home has no visible title (only for screen readers) */
.hx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-hello:has(> .hx-sr:only-child) { display: contents; }

/* stories: Instagram-style white ring, no names under the circles (still read out by screen readers) */
.hx-story-name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-story { position: relative; }

/* ---------- home, the way it was loved: notice bar, big stacked cards, big group pictures ---------- */
.hx-notice { overflow: hidden; border-radius: 999px; border: 1.5px solid #48484d; padding: 12px 0; color: #c7c7cc; font-size: 15px; line-height: 1.2; }
.hx-notice-track { display: flex; width: max-content; animation: hx-marquee 38s linear infinite; }
.hx-notice-track span { padding: 0 28px; white-space: nowrap; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hx-notice { border-radius: 18px; padding: 12px 16px; }
  .hx-notice-track { animation: none; width: auto; }
  .hx-notice-track span { white-space: normal; padding: 0; }
  .hx-notice-track span + span { display: none; }
}
.hx-cards { display: grid; gap: 20px; }
.hx-card { display: grid; border-radius: 20px; overflow: hidden; background: #121214; border: 1.5px solid #222225; color: var(--hha-ink); }
.hx .hx-card-media img { height: auto; aspect-ratio: auto; }
.hx-card-media { display: block; background: #161618; }
.hx-card-body { display: grid; justify-items: center; gap: 10px; padding: 22px 20px 26px; text-align: center; }
.hx-card-title { font: 700 clamp(24px, 6.6vw, 30px) / 1.15 var(--hha-font-display); letter-spacing: -0.01em; text-wrap: balance; }
.hx-card-sub { font-size: 17px; line-height: 1.35; color: #e0e0e0; }
.hx-card-btn {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px; border-radius: 999px;
  background: #e51e98; color: #fff; font: 500 22px / 1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: 0.01em; text-transform: uppercase;
}
.hx-card.hx-press:active { transform: scale(0.985); }
.hx-sec .hx-rail:has(.hx-group) { grid-auto-columns: min(44vw, 230px); }
.hx-group { display: grid; gap: 10px; }
.hx .hx-group-img { aspect-ratio: 1.62; height: auto; border-radius: 18px; }
.hx-group-name { font-size: 17px !important; font-weight: 600; text-align: left !important; color: var(--hha-ink); }

/* ---------- One spacing system for every app screen (4px base: 4 8 12 16 24 32 40) ----------
   tight inside a group, generous between groups, more space above a heading than below it */
.hx { padding: 20px var(--hx-pad) 40px; gap: 32px; }
.hx-page, .hx-native-scope { gap: 32px; }
.hx-hello { margin-bottom: -8px; }                 /* page title sits 24px above its content */
.hx-sec { gap: 12px; }                             /* section heading to its content */
.hx-block { gap: 12px; }
@media (min-width: 1000px) {
  .hx { padding-top: 28px; gap: 40px; }
  .hx-page, .hx-native-scope { gap: 40px; }
}
/* text from the page builder: same font and colours as the app, left aligned, calm headings */
.hx-block:has(> .hx-text) { text-align: left; justify-items: stretch; }
.hx-text { max-width: none; margin: 0; }
.hx-text, .hx-text * { font-family: var(--hha-font-body) !important; }
.hx-text h1, .hx-text h2, .hx-text h3, .hx-text h4 {
  margin: 28px 0 8px !important; color: var(--hha-ink) !important; text-align: left !important;
  font: 700 21px / 1.25 var(--hha-font-display) !important; letter-spacing: -0.015em !important;
}
.hx-text h3, .hx-text h4 { font-size: 18px !important; }
.hx-text > :first-child { margin-top: 0 !important; }
.hx-text p:last-child { margin-bottom: 0; }
.hx-text [style*="color"] { color: inherit !important; }
.hx-block > .hx-h2, .hx-block > h2.hx-h2 { text-align: left; }
/* page-builder forms use the full column, like every other form in the app */
.hx-native .elementor-widget-form, .hx-native .elementor-form, .hx-native form { width: 100% !important; max-width: none !important; }
.hx-native .elementor-widget-form { --container-widget-width: 100% !important; }
.hx-native > .elementor-element, .hx-native .elementor-widget-form { margin-left: 0 !important; margin-right: 0 !important; }
.hx-block:has(> .hx-text) .hx-btitle { text-align: left; justify-content: flex-start; justify-items: start; }
/* a heading inside a block always gets more room above it than below */
.hx-block > .hx-btitle:not(:first-child) { margin-top: 20px; }

/* ---------- Page title band: a lighter black strip with a thin line, edge to edge ----------
   painted with a spread shadow, so it never makes the page wider than the screen */
.hx-hello:not(:has(> .hx-sr:only-child)) {
  position: relative; isolation: isolate;
  margin: -20px 0 -8px; padding: 16px 0 18px;
}
.hx-hello:not(:has(> .hx-sr:only-child))::before,
.hx-hello:not(:has(> .hx-sr:only-child))::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; clip-path: inset(0 -100vmax); pointer-events: none; }
.hx-hello:not(:has(> .hx-sr:only-child))::before { top: 0; bottom: 0; background: #161619; box-shadow: 0 0 0 100vmax #161619; }
.hx-hello:not(:has(> .hx-sr:only-child))::after { bottom: 0; height: 1px; background: #2c2c30; box-shadow: 0 0 0 100vmax #2c2c30; }
.hx-hello .hx-title { font-size: clamp(28px, 7.6vw, 38px) !important; }
@media (min-width: 1000px) {
  .hx-hello:not(:has(> .hx-sr:only-child)) { margin-top: -28px; padding: 22px 0 22px; }
}

/* our screens' header row matches the portal: back arrow, then the title on the left */
.hx-hello:not(:has(> .hx-sr:only-child)) { display: flex; align-items: center; gap: 12px; justify-items: start; text-align: left; }
.hx-hello .hs-back { position: static; transform: none; flex: none; }
.hx-hello .hs-back:active { transform: scale(0.94); }
.hx-hello:has(> .hs-back) .hx-title { padding: 0; }
.hx-hello .hx-title { flex: 1 1 0; min-width: 0; text-align: left; font-size: clamp(24px, 6.4vw, 32px) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* story circles like the live site: thin light-gray ring, small dark gap */
.hx-story-ring { width: 80px; height: 80px; padding: 2px; background: transparent; border: 2px solid #ccc; }
.hx-story-ring img, .hx-story-ring .hx-noimg { border: 0; }
/* translation notice: lighter black, smaller text */
.hx-notice { background: #161619; border: 1px solid #2c2c30; color: #b5b5ba; font-size: 13px; padding: 10px 0; }
@media (prefers-reduced-motion: reduce) { .hx-notice { padding: 10px 14px; } }

/* page titles: smaller band, one row */
.hx-hello:not(:has(> .hx-sr:only-child)) { padding: 12px 0 12px; flex-wrap: nowrap; }
.hx-hello .hx-title { font-size: clamp(21px, 5.6vw, 27px) !important; line-height: 1.15 !important; }
@media (min-width: 1000px) { .hx-hello:not(:has(> .hx-sr:only-child)) { padding: 16px 0 16px; } }

/* stories: a little more room between circles, less empty space under them */
.hx-rail--stories { gap: 24px !important; padding-bottom: 0 !important; }
.hx-stories { margin-bottom: -14px; }

/* nothing on the left of a page title: centred and a little smaller */
.hx-hello:not(:has(> .hs-back)):not(:has(> .hx-sr:only-child)) { justify-content: center; }
.hx-hello:not(:has(> .hs-back)):not(:has(> .hx-sr:only-child)) .hx-title { flex: 0 1 auto; text-align: center; font-size: clamp(18px, 4.8vw, 22px) !important; }

/* home: the "Explore" band, then one slim row of shortcuts (one line, never scrolls) */
.hx-shortcuts { position: relative; isolation: isolate; display: flex; gap: 6px; margin: -24px 0 -8px; padding: 10px 0; }
.hx-shortcuts::before, .hx-shortcuts::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; clip-path: inset(0 -100vmax); pointer-events: none; }
.hx-shortcuts::before { top: 0; bottom: 0; background: #161619; box-shadow: 0 0 0 100vmax #161619; }
.hx-shortcuts::after { bottom: 0; height: 1px; background: #2c2c30; box-shadow: 0 0 0 100vmax #2c2c30; }
.hx-shortcuts a { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; padding: 0 8px; border-radius: 999px;
  background: #232327; color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease; }
.hx-shortcuts a span { font-size: 15px; line-height: 1; }
.hx-shortcuts a:active { transform: scale(0.95); background: #2c2c30; }
@media (hover: hover) and (pointer: fine) { .hx-shortcuts a:hover { background: #2c2c30; } }
@media (max-width: 350px) { .hx-shortcuts a { font-size: 12px; gap: 3px; padding: 0 5px; } .hx-shortcuts a span { font-size: 13px; } }
.hx-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: -32px; }
.hx-shortcuts a { padding: 0 4px; gap: 4px; font-size: 12.5px; overflow: hidden; }
.hx-shortcuts a span { font-size: 14px; flex: none; }
@media (min-width: 1000px) { .hx-shortcuts { margin-top: -40px; gap: 8px; } .hx-shortcuts a { font-size: 14px; height: 40px; } }
/* the site's old Additional CSS hides every link to /events/: not here */
.hx .hx-shortcuts a, .hx .hx-shortcuts a[href*="/events"] { display: inline-flex !important; visibility: visible !important; }
@media (max-width: 999px) { .hx-shortcuts a { font-size: 12px; letter-spacing: -0.01em; padding: 0 3px; gap: 3px; } .hx-shortcuts a span { font-size: 13px; } }

/* page header band: slimmer (title, back arrow, buttons all smaller) */
.hx-hello:not(:has(> .hx-sr:only-child)) { padding: 8px 0 !important; gap: 10px; }
.hx-hello .hx-title { font-size: clamp(18px, 4.8vw, 21px) !important; }
.hx-hello .hs-back { width: 36px !important; height: 36px !important; }
.hx-hello .hs-back svg { width: 20px; height: 20px; }
.hx-hello .ms-new { width: 36px !important; height: 36px !important; }
@media (min-width: 1000px) { .hx-hello:not(:has(> .hx-sr:only-child)) { padding: 12px 0 !important; } .hx-hello .hx-title { font-size: 22px !important; } }

/* shortcuts: plain emoji + text (no buttons), thin dividers; the heading above keeps its own line */
.hx .hx-shortcuts { gap: 0; padding: 4px 0; }
.hx .hx-shortcuts a { height: 40px; border-radius: 0; background: transparent !important; position: relative; color: #e8e8ed !important; font-weight: 600; }
.hx .hx-shortcuts a + a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: #2c2c30; }
.hx .hx-shortcuts a:active { transform: none; opacity: 0.6; background: transparent !important; }
@media (hover: hover) and (pointer: fine) { .hx .hx-shortcuts a:hover { background: transparent !important; color: #fff !important; } }

.hx-shortcuts { display: none !important; }

/* translation notice sits closer to the banner below it */
.hx-notice { margin-bottom: -14px; }

/* ---------- "Your day": streak, points, level, the lesson to continue (logged-in riders) ---------- */
.hx-today { display: grid; gap: 8px; }
.hx-today-main { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 80px; padding: 12px 16px 12px 12px; border-radius: 22px; background: #121214; color: var(--hha-ink) !important; }
.hx-today-flame { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: #1c1c1e; }
.hx-today-flame svg { width: 36px; height: 36px; }
.hx-flame-out { fill: #3a3a3f; } .hx-flame-in { fill: #57575d; }
.hx-today.is-lit .hx-today-flame { background: rgba(255, 61, 154, 0.14); }
.hx-today.is-lit .hx-flame-out { fill: var(--hha-pink); } .hx-today.is-lit .hx-flame-in { fill: #ffcf5a; }
.hx-today.is-lit .hx-today-flame svg { transform-origin: 50% 90%; animation: hx-flicker 2600ms ease-in-out infinite; }
@keyframes hx-flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, 0.97) rotate(-2deg); } 60% { transform: scale(0.98, 1.04) rotate(1.5deg); } }
.hx-today-text { display: grid; gap: 3px; min-width: 0; }
.hx-today-text b { font: 800 19px / 1.1 var(--hha-font-display); letter-spacing: -0.02em; }
.hx-today-text small { font-size: 13px; color: var(--hha-muted); }
.hx-today.is-lit .hx-today-text small { color: #ff5aa8; font-weight: 600; }
.hx-today-pts { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 7px; border-radius: 999px; background: #1c1c1e; font-size: 15px; font-variant-numeric: tabular-nums; }
.hx-today-pts svg { width: 22px; height: 22px; }
.hx-today-pts b { font-weight: 800; }
.hx-today-level, .hx-today-lesson { display: grid; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 18px; background: #121214; color: var(--hha-ink) !important; }
.hx-today-level { grid-template-columns: 1fr auto; }
.hx-today-lvl { font-size: 13.5px; color: var(--hha-muted); }
.hx-today-lvl b { color: var(--hha-ink); margin-right: 4px; }
.hx-today-level small { font-size: 12.5px; color: var(--hha-muted); text-align: right; }
.hx-today-bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.hx-today-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: #ffcf5a; transform-origin: left; animation: hx-grow 900ms var(--hha-ease-out) 300ms both; }
@keyframes hx-grow { from { transform: scaleX(0); } }
.hx-today-lesson { grid-template-columns: 48px minmax(0, 1fr) 18px; padding: 10px 14px 10px 10px; }
.hx-today-lesson-img, .hx-today-lesson .hx-noimg { width: 48px !important; height: 48px !important; border-radius: 12px; }
.hx-today-lesson-text { display: grid; gap: 2px; min-width: 0; }
.hx-today-lesson-text small { font-size: 12.5px; color: #ff5aa8; font-weight: 600; }
.hx-today-lesson-text b { font-size: 15px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  .hx-today { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; }
  .hx-today-main { grid-row: 1 / 3; min-height: 100%; }
  .hx-today:not(:has(.hx-today-lesson)) { grid-template-columns: minmax(0, 1fr); } /* the lesson card moved under the sewing pattern */
}
@media (hover: hover) and (pointer: fine) { .hx-today-main:hover, .hx-today-level:hover, .hx-today-lesson:hover { background: #18181c; } }
@media (prefers-reduced-motion: reduce) { .hx-today.is-lit .hx-today-flame svg, .hx-today-bar i { animation: none !important; } }

/* stories row (new): same place as the old rings */
.hx-stories { min-height: 0; padding-top: 0; margin-top: -10px; margin-bottom: -20px; }
.hx-stories:empty, .hx-stories[hidden] { display: none; }

/* ---------- product page: size buttons and a sticky Add to cart ---------- */
.pp-buy { display: grid; gap: 14px; width: 100%; text-align: left; }
.pp-opt { display: grid; gap: 8px; }
.pp-opt-label { margin: 0; font-size: 14px; color: var(--hha-muted) !important; }
.pp-opt-label b { color: var(--hha-ink); }
.pp-opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-val { min-width: 56px; min-height: 48px; padding: 0 18px; border: 1.5px solid #2c2c30; border-radius: 14px; background: transparent; color: var(--hha-ink); font: 700 15px / 1 var(--hha-font-body); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--hha-ease-out); }
.pp-val:active { transform: scale(0.96); }
.pp-val.is-on { background: #fff; border-color: #fff; color: #000; }
.pp-val[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.pp-sizehint { margin: 12px 0 0; font-size: 13px; color: var(--hha-muted) !important; }
.pp-sticky { position: sticky; z-index: 5; bottom: calc(var(--hs-tabs, 58px) + 10px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; padding-top: 6px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 40%); }
.pp-add { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: #d4148a; color: #fff; font: 500 17px / 1 Oswald, var(--hha-font-body); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(212, 20, 138, 0.7); transition: transform 160ms var(--hha-ease-out), background-color 200ms ease; }
.pp-add:active { transform: scale(0.97); }
.pp-add[disabled] { background: #2a2a2e; color: #8e8e93; box-shadow: none; cursor: default; }
.pp-add.is-done { background: #2fae74; }
.pp-cartlink { justify-self: center; font-size: 14px; font-weight: 600; color: #ff5aa8 !important; }
.pp-cartlink[hidden] { display: none; }
.pp-msg { margin: 0; font-size: 14px; color: var(--hha-muted) !important; }
.pp-msg:empty { display: none; }
@media (min-width: 1000px) { .pp-sticky { bottom: 16px; } }

/* product photos: small thumbnails under the slider */
.hx-pp-hint { display: none; }
.pp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #161618; cursor: pointer; transition: border-color 160ms ease, opacity 160ms ease; opacity: 0.6; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb.is-on { border-color: #ff3d9a; opacity: 1; }

/* form controls stay inside their box everywhere */
.hx input, .hx textarea, .hx select, .hx button, .hs input, .hs button, .st-view input, .st-view textarea, .st-view button, .hha-lsheet button, .hx .cp-field input, .hx .cp-field select { box-sizing: border-box; max-width: 100%; }
.hx .cp-sheet-panel, .hx .sh-sheet-panel, .hx .ls-sheet-panel { box-sizing: border-box; }
.hx .cp-check { max-width: 100%; }
.hx .cp-form, .hx .cp-sheet-panel > * { min-width: 0; max-width: 100%; }

.hx-bye { margin: 12px 16px 0; padding: 12px 16px; border-radius: 14px; background: #121214; color: #e5e5ea; font-size: 14px; text-align: center; }

@media (min-width: 1000px) { .hx-pp-rail { gap: 0 !important; overflow-x: hidden !important; border-radius: 24px; } .hx-pp-shot { border-radius: 0; } .hx-pp-media { border-radius: 24px; overflow: hidden; } }

@media (min-width: 1000px) {
  .hx-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 20px; }
  .hx-cards .hx-card:first-child { grid-row: 1 / 3; }
  .hx-cards .hx-card:nth-child(n+2) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .hx-cards .hx-card:nth-child(n+2) .hx-card-media { height: 100%; }
  .hx-cards .hx-card:nth-child(n+2) .hx-card-media img, .hx-cards .hx-card:nth-child(n+2) .hx-card-media picture { width: 100%; height: 100%; object-fit: cover; }
  .hx-cards .hx-card:nth-child(n+2) .hx-card-body { justify-items: start; text-align: left; padding: 24px 24px 24px 22px; align-content: center; }
  .hx-cards .hx-card:nth-child(n+2) .hx-card-title { font-size: 26px; }
  .hx-cards .hx-card:nth-child(n+2) .hx-card-sub { font-size: 15px; }
}

/* upcoming events on the home: the same cards as the Events screen */
.hx-ev { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: #121214; color: var(--hha-ink) !important; text-decoration: none !important; }
.hx-ev-date { display: grid; justify-items: center; align-content: center; height: 60px; border-radius: 14px; background: #1c1c20; line-height: 1; gap: 3px; }
.hx-ev-mon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hha-muted); }
.hx-ev-day { font: 700 24px / 1 var(--hha-font-display); font-variant-numeric: tabular-nums; }
.hx-ev-text { display: grid; gap: 4px; min-width: 0; }
.hx-ev-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.hx-ev-flag { margin-right: 6px; }
.hx-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: var(--hha-muted); }
.hx-ev-place { display: inline-flex; align-items: center; gap: 4px; }
.hx-ev-place svg { width: 14px; height: 14px; }

.hx-product-price, .hx-pp-price, .hx .hx-price { color: #fff !important; }

/* legal pages: a quiet reading column */
.hs-legal { gap: 18px; }
.hs-legal .hx-title { font-size: 24px; }
.hs-legal .hx-sec, .hs-legal .hx-text, .hs-legal .hx-block { max-width: 680px; }
.hs-legal p, .hs-legal li { font-size: 15.5px; line-height: 1.65; color: #d1d1d6; }
.hs-legal h2, .hs-legal .hx-h2 { margin: 18px 0 6px; padding-left: 12px; border-left: 3px solid #ff3d9a; font-size: 18px; line-height: 1.25; color: #fff; }
.hs-legal h3 { margin: 14px 0 4px; font-size: 16px; color: #fff; }
.hs-legal ul, .hs-legal ol { padding-left: 22px; }
.hs-legal li { margin-bottom: 6px; }
.hs-legal li::marker { color: #ff5aa8; }
.hs-legal a { color: #ff5aa8; }
.hs-legal strong { color: #fff; }
.hs-legal .hx-card, .hs-legal section { background: transparent; }
.hs-legal .hx-text-block, .hs-legal .hx-section { padding: 16px 18px; border-radius: 18px; background: #121214; }
@media (min-width: 1000px) { .hs-legal { max-width: 760px; } }

.hs-legal .hx-text, .hs-legal .hx-text > *, .hs-legal [style*="width"] { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
.hs-legal { overflow-x: hidden; }
/* the level card under the monthly gift */
.hx-level { display: grid; }
.hx-level .hx-today-level { background: #121214; }
.hx-today-lesson.is-done .hx-today-lesson-text small { color: #34c759; }

/* home: no Trending posts box (it stays on the portal) */
[data-hha-home] .hx-side-box:first-child { display: none; }

/* coaches: wide rectangle photos (the originals are landscape) */
.hx-sec .hx-rail:has(.hx-coach) { grid-auto-columns: 224px !important; }
.hx-coach img, .hx-coach .hx-noimg { aspect-ratio: 862 / 542 !important; width: 100%; border-radius: 18px; object-fit: cover; }
.hx-coach-name { text-align: left; padding-left: 2px; }
@media (min-width: 1000px) { .hx-sec .hx-rail:has(.hx-coach) { grid-auto-columns: 280px !important; } }
/* the level card matches the row in the menu */
.hx-level .hx-today-level { grid-template-columns: auto 1fr auto; gap: 2px 10px; min-height: 60px; padding: 12px 14px 16px; border-radius: 16px; background: #1c1c1e; }
.hx-level .hx-lvl-ico { width: 26px; height: 26px; grid-row: 1; color: #fff; }
.hx-level .hx-today-lvl { font-size: 16px; font-weight: 600; color: #a1a1a6; }
.hx-level .hx-today-lvl b { font-size: 17px; font-weight: 800; }
.hx-level .hx-today-level small { font-size: 13px; }
.hx-level .hx-today-bar { grid-column: 1 / -1; height: 3px; margin-top: 4px; }
/* community rules on the guidelines page */
.hx-rules { padding: 18px; border-radius: 20px; background: #121214; }
.hx-rules-h { margin: 0 0 12px; font: 800 20px / 1.2 var(--hha-font-display, inherit); color: var(--hha-ink, #fff); }
.hx-rules-list { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.hx-rules-list li { counter-increment: r; position: relative; padding: 12px 12px 12px 52px; border-radius: 14px; background: #1c1c1e; }
.hx-rules-list li::before { content: counter(r); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #d4148a; color: #fff; font-weight: 800; font-size: 14px; }
.hx-rules-list b { display: block; font-size: 16px; color: var(--hha-ink, #fff); }
.hx-rules-list span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--hha-muted, #c7c7cc); }
.hx-rules-note { margin: 12px 2px 0; font-size: 13.5px; color: var(--hha-muted, #a1a1a6); }
