
/* Only for the mobile preview; the existing desktop keeps its 600px design. */
.gg-tm {display:none;}
@media screen and (max-width:680px) {
  html,body{min-width:0!important;max-width:100%!important;overflow-x:hidden!important;}
  body{margin:0!important;min-height:100vh;background:#050505 url('img/tarnovski.jpg') center top / 960px 720px repeat-y!important;}
  body > div[align="center"] {display:none!important;}
  .gg-tm{display:block; width:min(312px, calc(100% - 64px)); min-width:0;
     box-sizing:border-box; margin:0 auto; padding:18px 12px 35px;
     background:#fff; min-height:100vh; color:#000;
     font-family:Arial,sans-serif;font-size:8pt;line-height:14px;word-spacing:1pt;}
  .gg-tm a,.gg-tm a:visited,.gg-tm a:hover{color:#000;text-decoration:none;}
  .gg-tm-title{margin:0 0 17px;line-height:20px;}
  .gg-tm-title a{display:inline; background:#f27bb1;color:#fff!important;
     font-weight:bold; padding:3px;line-height:20px;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
  .gg-tm-projects{line-height:26px;margin:0 0 15px;}
  .gg-tm-projects a,.gg-tm-projects a:visited {display:inline; font-weight:normal!important;
     background:#eee;padding:3px; margin-right:4px;line-height:20px;
     box-decoration-break:clone;-webkit-box-decoration-break:clone;}
  .gg-tm-projects a:hover{background:#ddd;}
  .gg-tm-materials{margin:0 0 20px;line-height:21px;font-size:8pt;}
  .gg-tm-materials a{font-weight:bold;white-space:nowrap;}
  .gg-tm-jumps{margin:0 0 22px;line-height:24px;}
  .gg-tm-jumps a{display:inline;background:#eee;font-weight:normal!important;
    padding:3px; margin-right:6px;line-height:20px;
    box-decoration-break:clone;-webkit-box-decoration-break:clone;}
  .gg-tm-page-note{margin:0 0 16px;}
  .gg-tm-section{margin:0 0 27px;scroll-margin-top:14px;}
  .gg-tm-section h2{font:bold 8pt/20px Arial,sans-serif;margin:0 0 15px;}
  .gg-tm-section h2 span{background:#f27bb1;color:#fff;padding:3px;
     line-height:20px; box-decoration-break:clone;-webkit-box-decoration-break:clone;}
  .gg-tm-entry{font:normal 8pt/14px Arial,sans-serif;margin-bottom:12px;
     overflow-wrap:break-word;word-spacing:1pt;}
  .gg-tm-entry a {font-weight:bold;}
  .gg-tm-entry strong{font-weight:bold;}
  .gg-tm-entry img{max-width:100%;height:auto;}
  .gg-tm-arrows{display:flex;align-items:center;justify-content:space-between;
     font:bold 8pt/18px Arial,sans-serif;margin-top:9px;}
  .gg-tm-arrows a{font-weight:bold;cursor:pointer;}
  .gg-tm-arrows a[aria-disabled="true"]{visibility:hidden;}
  .gg-tm-count{font:normal 8pt/14px Arial,sans-serif;}
}
@media screen and (max-width:350px) {
  .gg-tm {width:calc(100% - 50px); padding:14px 10px 30px;}
  .gg-tm-projects{line-height:25px;}
}
@media screen and (max-width:680px) {
  /* Legacy tables remain DOM source data only: never show below the mobile page. */
  .gg-tarnovski-header, .gg-tarnovski-main {display:none!important;}
  .gg-tm-projects {line-height:normal; margin-bottom:14px;}
  .gg-tm-projects a,.gg-tm-projects a:visited {
    display:inline-block;max-width:100%;white-space:nowrap;
    line-height:14px; padding:3px; margin:0 3px 6px 0;
    vertical-align:baseline;
  }
}
@media screen and (max-width:350px) {
  .gg-tm-projects a {white-space:normal;}
}

/* V97: agreed mobile-only header. Maintain original grey/pink label palette. */
@media screen and (max-width:680px) {
  .gg-tm-title {margin-bottom:17px;}
  .gg-tm-projects {display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;
     line-height:20px;margin-bottom:14px;}
  .gg-tm-projects a,.gg-tm-projects a:visited {
     margin:0!important;display:inline-block;flex:0 0 auto;
     padding:3px 2px;line-height:14px;white-space:nowrap;
     background:#eeeeee;box-sizing:border-box;
  }
  .gg-tm-materials {display:flex;flex-wrap:wrap;align-items:center;gap:4px;
    line-height:20px;margin-bottom:26px;}
  .gg-tm-materials a {display:inline-block;white-space:nowrap;font-size:8pt;
    line-height:14px;padding:2px 0;}
  .gg-tm-jumps{display:none!important;}
}
@media screen and (max-width:680px) {
 .gg-tm-materials {gap:8px;}
}

/* V98 – same compact, right-aligned pager as NEWS and archive articles. */
@media screen and (max-width:680px) {
 .gg-tm-arrows{justify-content:flex-end!important;gap:10px!important;}
 .gg-tm-arrows a{display:inline-block;min-width:20px;text-align:center;}
}
