/* Pipeline Guide / app release candidate: visual polish, not a workflow redesign.
   Typography and artwork clarity take priority over adding interface clutter.
   This layer deliberately loads AFTER the shared chrome and bundled styles.
   Map geometry, swipe controls, event routing and preferences are unchanged. */
@media (orientation:landscape) and (max-width:1200px) {
 :root {
   --pipeline-visual-ink:#12394a;
   --pipeline-visual-gold:#ceb27c;
   --pipeline-visual-cream:#fbf5e8;
   --pipeline-visual-mist:#d8e8e4;
   --pipeline-visual-coral:#c96244;
 }
 /* Optical balance: restore just a few pixels after the over-thin app header.
    It is still far smaller than the previous full-height status-bar design. */
 body.mobile-shell-active.pipeline-immersive-app,
 body.mobile-shell-active.pipeline-browser-fullscreen,
 html:fullscreen body.mobile-shell-active,
 html:-webkit-full-screen body.mobile-shell-active {
   --pipeline-shared-header-height:clamp(52px,11.1vh,60px);
   --pipeline-shared-header-clearance:0px;
 }
 body.mobile-shell-active .mobile-list-page .mobile-page-head.mobile-list-heading,
 body.mobile-shell-active .mobile-editorial-page>.mobile-page-head,
 body.mobile-shell-active.pipeline-native-app .mobile-settings-page>.pipeline-tastes>header {
   padding-inline:clamp(14px,1.9vw,26px)!important;
   box-shadow:inset 0 -3px 0 var(--pipeline-visual-gold),0 2px 0 rgba(13,52,66,.12)!important;
 }
 body.mobile-shell-active .mobile-list-page .mobile-list-heading-copy>strong,
 body.mobile-shell-active .mobile-editorial-page>.mobile-page-head>strong,
 body.mobile-shell-active.pipeline-native-app .mobile-settings-page>.pipeline-tastes>header strong {
   font:750 clamp(20px,4.7vh,30px)/1.05 Georgia,serif!important;
   letter-spacing:-.016em!important;
   text-shadow:0 1px 2px rgba(0,20,28,.38);
 }
 /* Small navigation is quieter, while still clear and operable. */
 body.mobile-shell-active .mobile-list-heading .mobile-list-header-links a,
 body.mobile-shell-active .mobile-editorial-jumps a {
   text-underline-offset:3px!important;
   text-decoration-thickness:1px!important;
   text-decoration-color:rgba(239,215,174,.44)!important;
 }
 body.mobile-shell-active .mobile-list-page .mobile-page-head .pipeline-list-view-switch button,
 body.mobile-shell-active .mobile-list-page .mobile-page-head .pipeline-list-header-links>button.pipeline-tastes-secondary {
   letter-spacing:.01em!important;
 }
 /* Printed gig-guide rows: same information, more deliberate rhythm and
    clearer time -> headline -> venue -> genre hierarchy. */
 body.mobile-shell-active .mobile-list-day{margin-bottom:9px!important}
 body.mobile-shell-active .mobile-list-day h3{
   font:850 clamp(9px,1.35vw,12px)/1.15 system-ui,sans-serif!important;
   letter-spacing:.055em!important;
   box-shadow:3px 2px 0 rgba(204,167,104,.65)!important;
   padding:5px 12px!important;
   margin:6px 0 4px!important;
 }
 body.mobile-shell-active .mobile-list-row{
   grid-template-columns:42px minmax(0,1.9fr) minmax(0,.75fr) minmax(0,2.3fr) 42px 58px!important;
   min-height:clamp(24px,4vh,30px)!important;
   align-items:center!important;
   gap:clamp(6px,.95vw,15px)!important;
   padding:3px 7px!important;
   border-bottom:1px solid rgba(12,61,78,.13)!important;
   border-left:3px solid transparent!important;
   transition:background-color .15s ease,box-shadow .15s ease!important;
 }
 body.mobile-shell-active .mobile-list-row strong{
   font:800 clamp(10px,1.45vw,13px)/1.14 system-ui,sans-serif!important;
   letter-spacing:-.015em!important;
 }
 body.mobile-shell-active .mobile-list-row time{
   font:850 clamp(9px,1.28vw,12px)/1 system-ui,sans-serif!important;
   font-variant-numeric:tabular-nums;
   letter-spacing:0!important;
 }
 body.mobile-shell-active .mobile-list-row span{
   font:500 clamp(9px,1.2vw,11px)/1.2 system-ui,sans-serif!important;
   color:#3e6270!important;
 }
 body.mobile-shell-active .mobile-list-row em{
   display:block!important;
   text-align:right!important;
   font:850 clamp(8px,1.05vw,10px)/1 system-ui,sans-serif!important;
   letter-spacing:.025em!important;
   color:#8b6543!important;
 }
 body.mobile-shell-active .mobile-list-row:hover,
 body.mobile-shell-active .mobile-list-row:focus-within{
   background:rgba(246,224,184,.95)!important;
   border-left-color:#bf6b45!important;
   box-shadow:inset 0 0 0 1px rgba(18,57,74,.1)!important;
 }
 body.mobile-shell-active .mobile-list-row strong a{
   color:inherit!important;
   text-decoration:none!important;
 }
 body.mobile-shell-active .mobile-list-row strong a:focus-visible{
   outline:2px solid #c96244!important;outline-offset:2px!important;
 }
 /* Headfirst's useful lesson is artwork prominence, not dark UI imitation.
    Keep posters true to the source while framing them like a curated journal. */
 body.mobile-shell-active .mobile-editorial-group{margin-bottom:20px!important}
 body.mobile-shell-active .mobile-editorial-group>header{
   display:flex!important;align-items:center!important;
   gap:10px!important;border-bottom:1px solid rgba(30,93,107,.54)!important;
   padding:5px 0 4px!important;
 }
 body.mobile-shell-active .mobile-editorial-group>header span{
   background:#c86649!important;
   border-radius:4px!important;
   font:850 9px/1 system-ui,sans-serif!important;
   padding:5px 8px!important;
   box-shadow:none!important;
 }
 body.mobile-shell-active .mobile-editorial-group>header h3{
   font:800 clamp(14px,2.55vw,20px)/1.1 system-ui,sans-serif!important;
   color:var(--pipeline-visual-ink)!important;
   letter-spacing:-.025em!important;
 }
 body.mobile-shell-active .mobile-editorial-grid{gap:clamp(7px,.9vw,12px)!important;margin-top:6px!important}
 body.mobile-shell-active .mobile-editorial-card{
   border:1px solid rgba(19,61,77,.34)!important;
   border-radius:11px!important;
   background:#fbf5e8!important;
   box-shadow:0 3px 0 rgba(10,46,60,.2),0 7px 18px rgba(10,46,60,.09)!important;
   transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease!important;
 }
 body.mobile-shell-active .mobile-editorial-card:hover,
 body.mobile-shell-active .mobile-editorial-card:focus-within{
   border-color:#a2734f!important;
   box-shadow:0 5px 0 rgba(10,46,60,.16),0 10px 24px rgba(10,46,60,.19)!important;
 }
 body.mobile-shell-active .mobile-editorial-art{position:relative;background:#e4e9e5!important}
 body.mobile-shell-active .mobile-editorial-art img{
   filter:none!important;
   transition:transform .23s ease!important;
 }
 body.mobile-shell-active .mobile-editorial-card:hover .mobile-editorial-art img{
   transform:scale(1.025);
 }
 body.mobile-shell-active .mobile-editorial-copy{
   padding:clamp(7px,.95vw,13px)!important;
   background:#fff7e9!important;
   background-image:none!important;
 }
 body.mobile-shell-active .mobile-editorial-copy>span{
   font:850 clamp(9px,1.08vw,11px)/1.1 system-ui,sans-serif!important;
   letter-spacing:.055em!important;
   color:#be5c3d!important;
 }
 body.mobile-shell-active .mobile-editorial-copy strong{
   margin-top:4px!important;
   font:800 clamp(12px,2.1vw,19px)/1.08 system-ui,sans-serif!important;
   letter-spacing:-.026em!important;
   color:#173c4e!important;
 }
 body.mobile-shell-active .layout-five .mobile-editorial-card:nth-child(-n+2) .mobile-editorial-copy strong{
   font-size:clamp(15px,2.45vw,25px)!important;
 }
 body.mobile-shell-active .mobile-editorial-copy strong a{color:inherit!important;text-decoration:none!important}
 body.mobile-shell-active .mobile-editorial-copy em{
   margin-top:5px!important;
   font:550 clamp(8px,1vw,10.5px)/1.25 system-ui,sans-serif!important;
   color:#3e6370!important;
 }
 body.mobile-shell-active .mobile-editorial-copy p{
   font:450 clamp(9px,1.1vw,11px)/1.35 system-ui,sans-serif!important;
   color:#45616a!important;margin-top:5px!important;
 }
 body.mobile-shell-active .layout-five .mobile-editorial-card:nth-child(n+3) .mobile-editorial-copy p{
   -webkit-line-clamp:1!important;
 }
 body.mobile-shell-active .mobile-editorial-card .kevewi-card-share{
   border-radius:6px!important;
   background:rgba(255,250,238,.95)!important;
   color:#17465a!important;
   border-color:rgba(13,64,82,.4)!important;
   box-shadow:0 1px 5px rgba(0,20,27,.12)!important;
 }
 /* Three-column My Music forms: editorial consistency rather than a utility
    panel. One natural-height vertical scroller remains the only scroll area. */
 body.mobile-shell-active .pipeline-tastes-content>.pipeline-tastes-body{
   background:#f4ecdb!important;
   border:0!important;
   column-gap:0!important;
 }
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-controls,
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-places,
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-notification-settings{
   padding:clamp(12px,1.6vw,22px)!important;
   box-shadow:inset -1px 0 0 rgba(13,70,83,.18)!important;
 }
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-controls{background:#f6eddc!important}
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-places{background:#fbf7ed!important}
 body.mobile-shell-active .pipeline-tastes-content .pipeline-tastes-notification-settings{background:#f3f2e8!important}
 body.mobile-shell-active .pipeline-tastes h2{
   font:800 clamp(16px,2.1vw,23px)/1.1 Georgia,serif!important;
   letter-spacing:-.01em!important;margin:7px 0 10px!important;
 }
 body.mobile-shell-active .pipeline-tastes label{
   color:#234a58!important;
 }
 body.mobile-shell-active .pipeline-tastes button,
 body.mobile-shell-active .pipeline-tastes select,
 body.mobile-shell-active .pipeline-tastes input{
   transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease!important;
 }
 body.mobile-shell-active .pipeline-tastes input:focus-visible,
 body.mobile-shell-active .pipeline-tastes select:focus-visible,
 body.mobile-shell-active .pipeline-tastes button:focus-visible{
   outline:2px solid #bd6b47!important;outline-offset:2px!important;
 }
}
@media (prefers-reduced-motion:reduce){
 body.mobile-shell-active .mobile-editorial-art img,
 body.mobile-shell-active .mobile-editorial-card,
 body.mobile-shell-active .mobile-list-row{
   transition:none!important;
 }
}

/* The printed-guide rows and the sticky heading must share the same six
   columns. Older four-column polish previously displaced Town/Address/Price. */
@media (max-width:1200px) {
  body.mobile-shell-active .mobile-list-scroll .mobile-list-columns,
  body.mobile-shell-active .mobile-list-scroll .mobile-list-row {
    display:grid!important;
    grid-template-columns:42px minmax(0,1.9fr) minmax(0,.75fr) minmax(0,2.3fr) 42px 58px!important;
    column-gap:6px!important;
    align-items:start!important;
  }
  body.mobile-shell-active .mobile-list-scroll .mobile-list-columns{
    gap:6px!important;font:800 8px/1.2 Arial,sans-serif!important;
  }
  body.mobile-shell-active .mobile-list-scroll .mobile-list-row {
    gap:6px!important;
    padding:4px 2px!important;
  }
  body.mobile-shell-active .mobile-list-row .mobile-list-town {
    font:700 8px/1.25 Arial,sans-serif!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.mobile-shell-active .mobile-list-row .mobile-list-venue {
    font:600 8px/1.25 Arial,sans-serif!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.mobile-shell-active .mobile-list-row .mobile-list-venue-name {font-weight:700!important}\n  body.mobile-shell-active .mobile-list-row .mobile-list-address {
    font:500 7.5px/1.25 Arial,sans-serif!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.mobile-shell-active .mobile-list-row .mobile-list-price {
    font:800 8px/1.25 Arial,sans-serif!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    color:#235363!important;
  }
}

/* Equal frame clearance and internal panel spacing in mobile landscape.
   Percent-based right/bottom offsets made unequal gaps on wide phone screens. */
@media (orientation:landscape) and (max-width:1200px) {
  body.mobile-shell-active .mobile-map-page{
    --pipeline-panel-edge:clamp(10px,2.2vw,22px);
    --pipeline-panel-gap:10px;
  }
  html body.mobile-shell-active .mobile-map-page > .pipeline-stage-head{
    left:var(--pipeline-panel-edge)!important;
    top:var(--pipeline-panel-edge)!important;
  }
  html body.mobile-shell-active .mobile-map-page > .pipeline-genre-key{
    left:var(--pipeline-panel-edge)!important;
  }
  html body.mobile-shell-active .mobile-map-page > .pipeline-filter-key,
  html body.mobile-shell-active.street-map-open .mobile-map-page > .pipeline-filter-key{
    right:var(--pipeline-panel-edge)!important;
    bottom:var(--pipeline-panel-edge)!important;
  }
  html body.mobile-shell-active .mobile-map-page .map-filter-count{
    left:var(--pipeline-panel-edge)!important;
    bottom:var(--pipeline-panel-edge)!important;
  }
  html body.mobile-shell-active.street-map-open .mobile-map-page > .street-map-venue-list:not([hidden]){
    bottom:var(--pipeline-panel-edge)!important;
  }
}

/* Opaque sticky header prevents scrolled event titles showing through the
   columns, especially when the day heading moves underneath the row. */
@media (max-width:1200px) {
  html body.mobile-shell-active .mobile-list-scroll > .mobile-list-columns {
    position:sticky!important;top:0!important;z-index:30!important;
    background:#f7efdc!important;opacity:1!important;
    box-shadow:0 4px 0 #f7efdc!important;
    padding:7px 2px 6px!important;
  }
}

/* Street-map frame alignment.
   The logo, genre key and venue list share one measured column. The map
   begins exactly one gutter to its right and the event preview uses the
   map's left edge. Re-use the same close 10px gutters on landscape phones. */
@media (orientation:landscape) and (max-height:850px) {
  html body.mobile-shell-active.street-map-open .mobile-map-page > .pipeline-stage-head {
    box-sizing:border-box!important;
    left:var(--town-column-left,var(--pipeline-panel-edge))!important;
    width:var(--town-column-width,max-content)!important;
    min-width:0!important;
    max-width:var(--town-column-width,50vw)!important;
  }
  html body.mobile-shell-active.street-map-open .mobile-map-page > .pipeline-genre-key {
    box-sizing:border-box!important;
    left:var(--town-column-left,var(--pipeline-panel-edge))!important;
    top:var(--town-genre-top,20vh)!important;
    width:var(--town-column-width,24vw)!important;
    min-width:0!important;
    max-width:var(--town-column-width,24vw)!important;
  }
  html body.mobile-shell-active.street-map-open .mobile-map-page > .street-map-venue-list:not([hidden]) {
    box-sizing:border-box!important;
    left:var(--town-list-left,var(--town-column-left,2%))!important;
    width:var(--town-list-width,var(--town-column-width,28vw))!important;
    min-width:0!important;
    max-width:var(--town-column-width,28vw)!important;
    right:auto!important;
  }
  html body.mobile-shell-active.street-map-open .mobile-map-page > .street-map-detail:not([hidden]) {
    left:var(--town-map-left,34%)!important;
    right:var(--town-map-right,2%)!important;
  }
  html body.mobile-shell-active.street-map-open .mobile-map-page #mapPopover.map-venue-peek:not([hidden]) {
    box-sizing:border-box!important;
    min-width:0!important;
  }
}

/* Editorial photo-first cards: spread short metadata across the full width.
   Full descriptions remain on the event detail page, not over the artwork. */
@media (orientation:landscape) and (max-width:1200px) {
  body.mobile-shell-active .mobile-editorial-copy {
    gap:3px!important;
    padding:clamp(5px,.65vw,9px)!important;
    justify-content:flex-start!important;
    min-width:0!important;
  }
  body.mobile-shell-active .mobile-editorial-topline {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:baseline!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-width:0!important;
  }
  body.mobile-shell-active .mobile-editorial-copy .mobile-editorial-topline .mobile-editorial-genre {
    flex:1 1 auto!important;
    display:block!important;
    min-width:0!important;
    margin:0!important;
    font:850 clamp(8px,.95vw,11px)/1.1 system-ui,sans-serif!important;
    letter-spacing:.04em!important;
    color:#be5c3d!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.mobile-shell-active .mobile-editorial-topline time {
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font:700 clamp(8px,.86vw,10px)/1.1 system-ui,sans-serif!important;
    color:#355762!important;
  }
  body.mobile-shell-active .mobile-editorial-copy strong {
    margin:0!important;
    line-height:1.06!important;
    font-size:clamp(12px,1.6vw,19px)!important;
  }
  body.mobile-shell-active .layout-five .mobile-editorial-card:nth-child(-n+2) .mobile-editorial-copy strong {
    font-size:clamp(15px,2.15vw,22px)!important;
  }
  body.mobile-shell-active .layout-five .mobile-editorial-card:nth-child(n+3) .mobile-editorial-copy strong {
    font-size:clamp(11px,1.5vw,16px)!important;
  }
  body.mobile-shell-active .mobile-editorial-copy .mobile-editorial-meta {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:baseline!important;
    justify-content:space-between!important;
    gap:8px!important;
    margin:1px 0 0!important;
    min-width:0!important;
  }
  body.mobile-shell-active .mobile-editorial-copy .mobile-editorial-meta .mobile-editorial-venue {
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    font:750 clamp(8px,.88vw,10px)/1.15 system-ui,sans-serif!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    letter-spacing:normal!important;
  }
  body.mobile-shell-active .mobile-editorial-copy .mobile-editorial-meta .mobile-editorial-hour {
    display:block!important;
    flex:0 0 auto!important;
    font:700 clamp(8px,.86vw,10px)/1.15 system-ui,sans-serif!important;
    color:#3e6370!important;
  }
  body.mobile-shell-active .mobile-editorial-copy>p {
    display:none!important;
  }
  body.mobile-shell-active .layout-five .mobile-editorial-card:not(.art-side):not(.art-auto-side):not(.art-square):not(.art-portrait) {
    grid-template-rows:minmax(48%,1fr) auto!important;
  }
  /* Keep Share over the photograph on side-layout cards, not over the date. */
  body.mobile-shell-active .mobile-editorial-card:is(.art-side,.art-auto-side,.art-square,.art-portrait)>.kevewi-card-share {
    left:5px!important;
    right:auto!important;
  }
}
