/* Inside the Code — compact technical dossiers on phone only. */
@media(max-width:760px){
 body.matrix-body .matrix-dossier{
  height:100dvh!important;max-height:100dvh!important;
  display:flex!important;flex-direction:column!important;min-height:0!important;
 }
 body.matrix-body .matrix-dossier-header{
  min-height:54px!important;height:54px!important;
  padding:7px 11px!important;
 }
 body.matrix-body .matrix-dossier-identity{
  grid-template-columns:6px 1fr!important;column-gap:9px!important;
 }
 body.matrix-body .matrix-dossier-identity strong{
  font-size:clamp(.78rem,3.7vw,1rem)!important;
  line-height:1.2!important;max-width:64vw;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 body.matrix-body .matrix-dossier-identity small{
  font-size:.48rem!important;letter-spacing:.04em!important;
 }
 body.matrix-body .matrix-dossier-actions button{
  min-height:40px!important;padding:7px 10px!important;
  font-size:.61rem!important;
 }
 body.matrix-body .matrix-dossier-menu{
  flex:none!important;min-height:0!important;
  padding:7px 10px 9px!important;gap:.5rem!important;
  border-bottom:1px solid #b18dc45e!important;
  background:linear-gradient(110deg,#191729,#110f1f)!important;
 }
 body.matrix-body .matrix-dossier-menu .matrix-menu-heading{
  display:none!important;
 }
 body.matrix-body .matrix-atlas .eng-index{
  display:none!important;
 }
 body.matrix-body .matrix-mobile-controls{
  display:grid;grid-template-columns:minmax(0,1fr) 76px;
  align-items:center;gap:.45rem;
 }
 body.matrix-body .matrix-mobile-controls select{
  width:100%;min-width:0;min-height:43px;
  border:1px solid #a58dbd96;border-radius:7px;
  padding:.55rem .7rem;
  background:#2b203b;color:#f2e7ff;
  font:700 .69rem/1.2 'IBM Plex Mono',monospace;
  letter-spacing:.02em;
 }
 body.matrix-body .matrix-mobile-controls button{
  min-height:43px;border:1px solid #a58dbd96;border-radius:7px;
  padding:.5rem .38rem;background:#39294e;color:#e9d7f9;
  font:750 .58rem 'IBM Plex Mono',monospace;
 }
 body.matrix-body .matrix-mobile-controls button[aria-expanded='true']{
  background:#664687;border-color:#e1bdff;color:#fff;
 }
 body.matrix-body .matrix-atlas .eng-searchbar{
  display:none!important;padding:0!important;margin:0!important;
 }
 body.matrix-body.matrix-mobile-search-open .matrix-atlas .eng-searchbar{
  display:block!important;
 }
 body.matrix-body .matrix-atlas .eng-search-input{
  min-height:42px!important;
 }
 body.matrix-body .matrix-atlas .eng-search-input input{
  min-height:40px!important;font-size:16px!important;
 }
 body.matrix-body .matrix-mobile-detail-toggle{
  display:block;width:100%;min-height:40px;padding:.55rem .7rem;
  border:1px solid #a98bcc7a;border-radius:6px;
  background:linear-gradient(110deg,#2f213e,#3c2953);
  color:#dfc4ff;font:750 .64rem/1.2 'IBM Plex Mono',monospace;
  letter-spacing:.03em;
 }
 body.matrix-body.matrix-mobile-full .matrix-mobile-detail-toggle{
  border-color:#bc98ea;background:#533677;color:#fff;
 }
 body.matrix-body .matrix-document-scroll{
  flex:1!important;min-height:0!important;
  padding:0!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin;
 }
 body.matrix-body .matrix-atlas .eng-panels{
  width:100%!important;padding:14px 13px 18px!important;
 }
 body.matrix-body .matrix-atlas .eng-panel{
  margin:0!important;padding:0!important;
  animation-duration:.15s!important;
 }
 body.matrix-body .matrix-atlas .eng-panel-head{
  margin:0 0 .45rem!important;padding:0!important;
  gap:.45rem!important;
 }
 body.matrix-body .matrix-atlas .eng-panel-head h3{
  font-size:clamp(1.55rem,6.4vw,2.15rem)!important;
  line-height:1.06!important;margin:0 0 .4rem!important;
 }
 body.matrix-body .matrix-atlas .eng-section-kicker{
  font-size:.59rem!important;margin:0 0 .45rem!important;
 }
 body.matrix-body .matrix-atlas .eng-state{
  font-size:.56rem!important;padding:5px 9px!important;
 }
 body.matrix-body .matrix-atlas .eng-panel-intro{
  font-size:.8rem!important;line-height:1.52!important;
  margin:0 0 .9rem!important;color:#c5bdd4!important;
 }
 body.matrix-body .matrix-atlas .eng-detail-grid{
  display:grid!important;grid-template-columns:1fr!important;
  margin:12px 0!important;padding:0!important;
  border-top:0!important;border-bottom:0!important;
 }
 body.matrix-body .matrix-atlas .eng-detail-grid article{
  padding:11px 0!important;
  border-left:0!important;
 }
 body.matrix-body .matrix-atlas .eng-detail-grid h4{
  font-size:1rem!important;margin:7px 0!important;
 }
 body.matrix-body .matrix-atlas .eng-detail-grid p{
  font-size:.78rem!important;line-height:1.53!important;
 }
 body.matrix-body .matrix-atlas .eng-linkrow{
  gap:.5rem!important;margin:8px 0!important;
 }
 body.matrix-body.matrix-mobile-compact .matrix-atlas .matrix-mobile-extra,
 body.matrix-body.matrix-mobile-compact .matrix-atlas .eng-detail-grid article:nth-child(n+2){
  display:none!important;
 }
 body.matrix-body .matrix-atlas .eng-atlas-bottom{
  margin:12px 13px 20px!important;padding-top:12px!important;
 }
 body.matrix-body .matrix-atlas .eng-atlas-bottom strong{
  font-size:1.1rem!important;
 }
}
@media(max-width:760px) and (max-height:650px){
 body.matrix-body .matrix-dossier-header{
  height:48px!important;min-height:48px!important;
 }
 body.matrix-body .matrix-dossier-menu{
  padding:5px 8px!important;gap:.35rem!important;
 }
 body.matrix-body .matrix-mobile-controls select,
 body.matrix-body .matrix-mobile-controls button{
  min-height:38px!important;
 }
 body.matrix-body .matrix-mobile-detail-toggle{
  min-height:37px!important;
 }
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 body.matrix-body .matrix-atlas .eng-panel{animation:none!important}
}

/* Native Android select lists can invade the device chrome. Keep the entire
   dossier picker in our own bounded, focusable website overlay. */
@media(max-width:760px){
 body.matrix-body .matrix-mobile-topic-trigger{
  width:100%;min-width:0;min-height:43px;
  display:flex;align-items:center;justify-content:space-between;gap:.65rem;
  padding:.55rem .7rem;
  border:1px solid #a58dbd96;border-radius:7px;
  background:#2b203b;color:#f2e7ff;
  font:700 .69rem/1.2 'IBM Plex Mono',monospace;
  text-align:left;letter-spacing:.02em;
 }
 body.matrix-body .matrix-mobile-topic-trigger .matrix-mobile-topic-label{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;
 }
 body.matrix-body .matrix-mobile-topic-trigger>span:last-child{
  flex:none;font-size:1.15rem;color:#d9b9f5;
 }
 body.matrix-body .matrix-mobile-topic-trigger[aria-expanded="true"]{
  border-color:#dfbdff;background:#48305d;
 }
 body.matrix-body .matrix-mobile-topic-scrim{
  position:fixed;z-index:449;inset:0;
  background:#06040dc4;
 }
 body.matrix-body .matrix-mobile-topic-scrim[hidden]{display:none!important}
 body.matrix-body .matrix-mobile-topic-panel{
  position:fixed;z-index:450;
  top:max(65px,env(safe-area-inset-top,0px));
  bottom:max(16px,env(safe-area-inset-bottom,0px));
  left:12px;right:12px;
  max-height:min(76dvh,720px);
  display:flex;flex-direction:column;
  padding:0;border:1px solid #c09ee7;
  border-radius:13px;
  overflow:hidden;
  background:linear-gradient(145deg,#2d1e42,#12111f);
  box-shadow:0 18px 64px #000b;
 }
 body.matrix-body .matrix-mobile-topic-panel[hidden]{display:none!important}
 body.matrix-body .matrix-mobile-topic-head{
  flex:none;display:flex;align-items:center;justify-content:space-between;
  gap:.5rem;padding:11px 13px;
  background:#3a264fe8;border-bottom:1px solid #b28dc16a;
 }
 body.matrix-body .matrix-mobile-topic-head strong{
  color:#e8d4ff;font:800 .71rem 'IBM Plex Mono',monospace;
  letter-spacing:.05em;
 }
 body.matrix-body .matrix-mobile-topic-head button{
  min-width:42px;min-height:42px;border:1px solid #c29cd7a0;
  border-radius:7px;background:#51346a;color:#fff;
  font:800 1.4rem/1 'DM Sans',sans-serif;
 }
 body.matrix-body .matrix-mobile-topic-list{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:9px;display:grid;align-content:start;gap:5px;
  scrollbar-width:thin;scrollbar-color:#9e7ab9 transparent;
 }
 body.matrix-body .matrix-mobile-topic-option{
  display:flex;align-items:center;gap:9px;min-height:43px;
  padding:9px 11px;width:100%;
  border:1px solid #9f8ab44d;border-radius:7px;
  background:#1d1930;color:#e8dff3;text-align:left;
  font:700 .73rem/1.3 'IBM Plex Mono',monospace;
 }
 body.matrix-body .matrix-mobile-topic-option:hover,
 body.matrix-body .matrix-mobile-topic-option:focus-visible{
  border-color:#ddbbff;background:#43315a;
 }
 body.matrix-body .matrix-mobile-topic-option.is-selected{
  border-color:#bd93f7;background:#5b397d;
 }
 body.matrix-body .matrix-mobile-topic-option.is-selected::before{
  content:"✓";font-weight:900;color:#fff;
 }
 body.matrix-body .matrix-mobile-topic-panel :focus-visible{
  outline:2px solid #ddb7ff;outline-offset:2px;
 }
}
