/* WordPress layer: skip link, server-rendered fallback, admin bar. */
.skip{position:absolute;left:-9999px;top:8px;z-index:200;background:var(--ink);color:var(--paper);padding:10px 14px}
.skip:focus{left:16px}
main.ssr .wrap{max-width:1360px;margin:0 auto;padding-inline:clamp(16px,3.2vw,48px)}

/* Keep legacy plugin styles from replacing the IJC brass hover colour. */
body a:hover,
body a:focus-visible{color:var(--brass)!important}

body .dark a:hover,
body .dark a:focus-visible,
body footer a:hover,
body footer a:focus-visible{color:var(--brassL)!important}

/* The legacy directory plugin ships broad heading rules. Keep the engine's
   typography and contrast inside its own application surface. */
#view h1,#view h2,#view h3,#view h4,#view h5,#view h6{color:inherit}
#view .dark h1,#view .dark h2,#view .dark h3,#view .dark h4,
#view .ctab h1,#view .ctab h2,#view .ctab h3,#view .ctab h4{color:var(--dfg)!important}
#view .ctab p,#view .dark p{color:var(--dmid)}

/* Last-line responsive safeguards for every engine template and public form. */
@media (max-width:760px){
  .wrap{padding-inline:16px}
  .two,.side-r,.row2,.ctab{grid-template-columns:minmax(0,1fr)!important}
  .side-r{gap:28px}
  .sticky{position:static!important;top:auto!important}
  .fm fieldset{padding-block:20px}
  .fm .pill{min-height:42px}
  .ctab{padding:28px 20px}
  .ctab h3{font-size:clamp(30px,10vw,46px)}
  .ph .facts,.facts{grid-template-columns:1fr 1fr!important}
  .table-wrap,.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:420px){
  .ph .facts,.facts{grid-template-columns:1fr!important}
  .pill{max-width:100%;white-space:normal;height:auto;min-height:38px;padding-block:8px}
}
