/* Tianheng: readability and input access without changing the black/gold layout. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
img,svg,canvas,video{max-width:100%}
input,select,textarea,button{max-width:100%;font-family:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:rgba(229,196,116,.18)}
:focus-visible{outline:2px solid #e5c474;outline-offset:4px}
.gateway-text,.thb-head>span:nth-child(2),.card-h .nm{min-width:0;overflow-wrap:anywhere}
.thb-open{flex-shrink:0}
.thb-body,.thb-proof{overflow-wrap:anywhere}
.thb-body{font-size:15px;line-height:1.9}
.thb-part h4{font-size:16px}
.thb-proof{font-size:12px;line-height:1.8;color:#bcae98}
.thb-btn{min-height:48px;cursor:pointer}
[id]{scroll-margin-top:18px}
.grid>*,.form-grid>*,.actions>*{min-width:0}
.notice,.lead,.muted,.empty,.decision-note,.narrative-part p,.evidence-box,.advice-card{overflow-wrap:anywhere}
@media(max-width:560px){
  input,select,textarea{font-size:16px}
  button{min-height:44px}
  .card-h{flex-wrap:wrap}
  .card-h .nm{flex:1 1 55%}
  .card-h .mini{white-space:normal;overflow-wrap:anywhere}
  .thb-grid{grid-template-columns:minmax(0,1fr)}
  .thb-name{font-size:17px;line-height:1.6}
  .thb-tag{font-size:12px;line-height:1.6}
  .thb-body{padding:0 16px 20px;font-size:16px}
  .thb-facts span{font-size:12px}
  .actions{flex-wrap:wrap}
  .actions>button,.actions>a{flex:1 1 100%}
  .scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
