/* Layout corrections only. All approved brand and journey sources are inherited. */
.responsive-study .header .brand{display:flex;align-items:center;min-height:44px}
.responsive-study .dashboard-filters{align-items:stretch}

/* Keep a single, aligned row of filters even on 320px phones. */
@media(max-width:360px){
  .responsive-study .dashboard-filters button{padding-inline:8px;gap:5px;white-space:nowrap}
}

/* Readable entry text prevents focus zoom on touch devices. */
@media(max-width:900px),(pointer:coarse){
  .responsive-study .contact-form input:not([type=checkbox]),
  .responsive-study .contact-form textarea{font-size:16px}
  .responsive-study .contact-form input::placeholder,
  .responsive-study .contact-form textarea::placeholder{font-size:11px}
}

@media(max-width:900px) and (min-height:601px){
  .responsive-study .study-bottom{bottom:max(15%,112px)}
}

/* Fixed copy must clear the header and chapter navigation on shorter screens. */
@media(max-height:600px){
  .responsive-study .identity-heading{top:max(calc(var(--header) + 14px),20%)}
  .responsive-study .study-bottom{bottom:max(16%,100px)}
  .responsive-study .mark-panel h1{top:max(calc(var(--header) + 20px),22%)}
}

/* Landscape phones use the space beside the scene for the existing support copy. */
@media(max-height:450px) and (min-width:500px){
  .responsive-study .identity-heading{top:calc(var(--header) + 14px);max-width:43%}
  .responsive-study .identity-heading h2{font-size:clamp(22px,3.3vw,28px)}
  .responsive-study .study-panel:not(.mark-panel) .study-bottom{
    top:calc(var(--header) + 14px);bottom:auto;left:auto;right:0;width:31%;
    flex-direction:column;align-items:flex-start;gap:12px;
  }
  .responsive-study .study-panel:not(.mark-panel) .study-description{width:100%}
  .responsive-study .mark-panel h1{
    left:0;right:auto;width:32%;flex-direction:column;gap:0;
    font-size:clamp(28px,5vw,42px);
  }
  .responsive-study .mark-panel .study-subline{max-width:32%;font-size:12px}
  .responsive-study .mark-panel .study-description{width:31%}
}

@media(max-height:450px) and (min-width:500px) and (max-width:650px){
  .responsive-study .identity-heading{width:32%;max-width:none}
  .responsive-study .identity-heading h2{font-size:20px}
}
