/* Mobile fit and rhythm only. Preserve desktop composition, colors and interactions. */
@media(max-width:767px){
  body.hn-site {--hn-mobile-gutter:16px;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  body.hn-site .hn-bottom-nav {bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  /* Prevent content's intrinsic width from widening flex/grid columns. */
  body.hn-site #content :is(.hn-layout-inner,.hn-widget-container,.hnf-field,.hn-post-hero-heading),
  body.hn-site .hd-site :is(.hd-hero-copy,.hd-ticket-summary,.hd-ticket-booking,.hd-story,.hd-event-companion,.hd-card-info) {min-width:0}
  body.hn-site #content :is(.hn-widget-text-editor,.hn-widget-theme-post-content,.hnf-region) {overflow-wrap:break-word}
  /* The blog frame already supplies the gutter: remove the extra nested 20px. */
  body.hn-site #content.hn-8537 .hn-widget-theme-post-content {padding-inline:0!important}
  body.hn-site #content.hn-8537 .hn-post-hero {margin-block:20px 24px}
  body.hn-site #content.hn-8537 .hn-post-hero-heading {margin-right:16px;padding-inline:12px 0}
  body.hn-site.hn-kit-7271 #content .hn-post-hero h1 {font-size:clamp(24px,6.4vw,30px)!important;line-height:1.65!important;margin-block:14px}
  body.hn-site #content .hn-post-hero .hn-post-meta {display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px}
  body.hn-site #content .hn-post-hero .hn-post-meta span {min-width:0;white-space:normal;overflow-wrap:anywhere}
  body.hn-site #content .hn-post-hero .hn-breadcrumb {font-size:12px;line-height:1.8;padding:8px 10px}
  body.hn-site #content .hn-post-hero .hn-hero-toc {margin-top:20px}
  body.hn-site #content .hn-post-hero .hn-hero-toc summary {min-height:52px;padding:12px 14px;line-height:1.7}
  body.hn-site #content .hn-hero-toc nav {max-height:50dvh;padding:10px 12px}
  body.hn-site #content .hn-widget-theme-post-content :is(ul,ol) {padding-inline-start:24px;padding-inline-end:0}
  body.hn-site #content .hn-widget-theme-post-content :is(blockquote,pre) {margin-inline:0;max-width:100%;box-sizing:border-box}
  body.hn-site #content .hn-widget-theme-post-content table {display:block;max-width:100%;overflow-x:auto}
  body.hn-site #content .hn-widget-theme-post-content :is(iframe,video) {max-width:100%}
  body.hn-site #content :is(.hn-post-grid,.hn-addon-post-grid,.hn-recent-cards) {gap:20px 16px}
  body.hn-site #content .premium-blog-content-wrapper {padding:16px!important}
  /* Legacy card span padding otherwise accumulates inside each meta line. */
  body.hn-site #content .hn-recent-card-meta span {padding:0;font:inherit;line-height:inherit}
  body.hn-site #content .hn-recent-card-meta {flex-wrap:wrap;gap:6px}
  /* Forms and download instructions remain comfortable at 320px. */
  body.hn-site .hnf-form {gap:16px}
  body.hn-site .hnf-consent {gap:10px;align-items:flex-start}
  body.hn-site .hnf-consent input {flex-shrink:0}
  body.hn-site .hnf-field :is(input,select,textarea) {min-width:0;max-width:100%;box-sizing:border-box}
  body.hn-site #hm-download-root :is(.download-card,.store,.card-title,.installation-guide) {min-width:0}
  body.hn-site #hm-download-root .store>span {min-width:0}
  body.hn-site #hm-download-root [role=tablist] {display:flex;flex-wrap:wrap;gap:8px}
  body.hn-site #hm-download-root [role=tab] {flex:1 1 auto;white-space:normal;min-height:44px}
  body.hn-site #content iframe[src*="maps.google"] {width:100%;max-width:100%;height:280px}
}
@media(max-width:700px){
  /* The event cover keeps its existing full-width position and ticket overlap. */
  body.hn-site .hd-event-inner {padding-inline:16px}
  body.hn-site .hd-event-page .hd-ticket-summary {padding:20px}
  body.hn-site .hd-event-page .hd-ticket-booking {padding:20px}
  body.hn-site.hn-kit-7271 .hd-event-page .hd-ticket-summary h1 {font-size:clamp(24px,6.4vw,30px)!important;line-height:1.6!important;overflow-wrap:break-word}
  body.hn-site .hd-event-page .hd-ticket-facts {gap:16px;margin-top:20px}
  body.hn-site .hd-event-page .hd-ticket-facts dd {overflow-wrap:anywhere;line-height:1.75}
  body.hn-site .hd-event-page .hd-event-content {gap:24px;margin-top:28px}
  body.hn-site .hd-event-page .hd-event-content-image {--photo-bleed:0px}
  body.hn-site .hd-event-page .hd-description {overflow-wrap:break-word;line-height:1.85}
  body.hn-site .hd-event-page .hd-description :is(ul,ol) {padding-inline-start:24px;padding-inline-end:0}
  body.hn-site .hd-site .hd-filters {gap:12px;padding:16px}
  body.hn-site .hd-site .hd-filters label {min-width:0}
  body.hn-site .hd-site .hd-editorial {padding:20px}
  body.hn-site .hd-site .hd-section-heading {align-items:flex-start;gap:10px 16px}
  body.hn-site .hd-site .hd-section-heading>* {min-width:0;max-width:100%}
  body.hn-site :is(.hd-picker-dialog,.hd-comments-dialog) {box-sizing:border-box;max-height:calc(100dvh - 24px)}
}
@media(max-width:380px){
  body.hn-site .hd-event-page :is(.hd-ticket-summary,.hd-ticket-booking) {padding:16px}
  body.hn-site .hd-site .hd-filters {grid-template-columns:minmax(0,1fr)}
  body.hn-site .hd-site .hd-filters>* {grid-column:1/-1}
  body.hn-site #hm-download-root .store-grid {grid-template-columns:minmax(0,1fr)}
}
