/* GeoSite-Test v210: Geography sections and PDF page controls. */
.geo-landing{max-width:1020px;min-height:0;padding:12px 4px}
.geo-landing h1{margin:0 0 22px}
.geo-navigation-list{display:flex;flex-direction:column;gap:10px;max-width:720px}
.geo-navigation-list .pub-category-link{width:100%;min-height:58px;text-align:left}
.geo-detail-view{max-width:1180px;min-height:0;padding-bottom:24px}
.geo-detail-view h1{margin-bottom:8px}
.geo-back-button{display:inline-block;padding:5px 1px;border:0;background:transparent;color:#275e96;font:17px Georgia,'Times New Roman',serif;text-decoration:underline;cursor:pointer;margin:2px 0 8px}
.geo-detail-view .stats-country-table-scroll{max-height:none;overflow-y:visible}
.geo-detail-view .stats-cards{margin-top:10px}
.pdf-position-tools{display:flex;align-items:center;gap:5px;white-space:nowrap;font-family:Georgia,'Times New Roman',serif}
.pdf-position-tools label{display:inline-flex;gap:5px;align-items:center;font-size:14px}
.pdf-position-tools input{box-sizing:border-box;width:64px;height:29px;text-align:center;border:1px solid #9daab9;border-radius:4px;background:rgba(255,255,255,.9);font:14px Georgia,serif}
.pdf-position-tools button{width:30px;height:29px;padding:0;border:1px solid #b5bfcb;border-radius:4px;background:rgba(255,255,255,.78);font:19px Georgia,serif;cursor:pointer;color:#254b75}
@media(max-width:950px){.pdf-viewer-header{grid-template-columns:1fr auto!important;gap:4px}.pdf-viewer-links{grid-column:1 / -1;justify-content:flex-start}.pdf-position-tools{justify-content:flex-end}}
@media(max-width:620px){.geo-navigation-list .pub-category-link{min-height:50px}.geo-landing h1{font-size:24px}.pdf-position-tools label{font-size:12px}.pdf-position-tools input{width:54px}}
/* GeoSite-Test v211: one isolated vertical scrollbar on Geography Table / Histogram. */
#content:has(> .geo-detail-view[data-geo-subpage="table"]),
#content:has(> .geo-detail-view[data-geo-subpage="histogram"]){
  overflow:hidden!important;
}
#content > .geo-detail-view[data-geo-subpage="table"],
#content > .geo-detail-view[data-geo-subpage="histogram"]{
  box-sizing:border-box;
  width:100%; max-width:100%; height:100%; min-height:0; min-width:0;
  display:flex; flex-direction:column; overflow:hidden;
  padding:0 0 2px;
}
#content > .geo-detail-view[data-geo-subpage="table"] > h1,
#content > .geo-detail-view[data-geo-subpage="histogram"] > h1{
  flex:0 0 auto; max-width:100%; line-height:1.12;
  font-size:clamp(25px,2.75vw,41px); margin:0 0 5px;
}
#content > .geo-detail-view[data-geo-subpage="table"] > .geo-back-button,
#content > .geo-detail-view[data-geo-subpage="histogram"] > .geo-back-button,
#content > .geo-detail-view[data-geo-subpage="table"] > .stats-updated,
#content > .geo-detail-view[data-geo-subpage="histogram"] > .stats-updated{
  flex:0 0 auto;
}
#content .geo-detail-body{
  box-sizing:border-box; flex:1 1 auto; min-height:0; min-width:0;
  width:100%; overflow-y:auto; overflow-x:hidden;
  scrollbar-width:thin; overscroll-behavior:contain;
  padding:8px 8px 18px 0;
}
/* Disable the old independent table scroller and keep only the detail-body scrollbar. */
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table-scroll{
  max-height:none!important; min-height:0!important;
  overflow:visible!important; scrollbar-gutter:auto!important;
  overscroll-behavior:auto; width:100%; max-width:100%;
  margin:0 0 12px;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table-scroll .stats-country-table{
  display:table; box-sizing:border-box;
  width:100%!important; min-width:0!important;
  table-layout:fixed;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table :is(th,td){
  box-sizing:border-box; white-space:normal!important;
  overflow-wrap:anywhere; word-break:normal; vertical-align:top;
  padding:6px 5px;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table thead th{
  position:sticky!important; top:0!important; z-index:3!important;
  background:#eae9e7!important;
}
#content .geo-detail-view[data-geo-subpage="histogram"] .stats-bars,
#content .geo-detail-view[data-geo-subpage="histogram"] .geo-pub-chart{
  max-width:100%; min-width:0; box-sizing:border-box;
}
#content .geo-detail-view[data-geo-subpage="histogram"] .stats-device-line{
  flex-wrap:wrap; max-width:100%;
}
@media(max-width:720px){
  #content .geo-detail-view[data-geo-subpage="table"] .stats-country-table :is(th,td){font-size:11px!important;padding:5px 2px;}
  #content .geo-detail-view[data-geo-subpage="table"] .stats-source-cell{overflow-wrap:anywhere;}
}

/* GeoSite-Test v212: one scrollbar, pinned page headers for Map/Table/Histogram. */
#content:has(> .geo-detail-view[data-geo-subpage="map"]),
#content:has(> .geo-detail-view[data-geo-subpage="table"]),
#content:has(> .geo-detail-view[data-geo-subpage="histogram"]){
  overflow:hidden!important;
}
#content > .geo-detail-view[data-geo-subpage="map"],
#content > .geo-detail-view[data-geo-subpage="table"],
#content > .geo-detail-view[data-geo-subpage="histogram"]{
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 1px 2px 0!important;
  align-items:stretch!important;
}
#content > .geo-detail-view[data-geo-subpage] > h1{
  flex:0 0 auto!important;
  text-align:left!important;
  font-size:clamp(24px,2.7vw,42px)!important;
  line-height:1.14!important;
  margin:0 0 8px!important;
  max-width:100%;
}
#content > .geo-detail-view[data-geo-subpage] > .geo-back-button{
  display:block!important;
  flex:0 0 auto!important;
  align-self:flex-start!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 8px 0!important;
  padding:0!important;
  text-align:left!important;
  white-space:normal;
}
#content > .geo-detail-view[data-geo-subpage] > .stats-updated{
  flex:0 0 auto!important;
  max-width:100%;
  margin:0 0 7px!important;
  line-height:1.3!important;
}
#content > .geo-detail-view[data-geo-subpage] > .geo-detail-body{
  box-sizing:border-box;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:8px 8px 24px 0!important;
}
/* A physical fixed table header sits above the scrollable BODY (not sticky over rows). */
#content .geo-detail-view[data-geo-subpage="table"] > .geo-table-fixed-head{
  flex:0 0 auto!important;
  box-sizing:border-box;
  width:100%!important;
  padding-right:18px!important;
  background:#eae9e7;
  overflow:hidden!important;
}
#content .geo-table-fixed-head .stats-country-table,
#content .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table{
  display:table!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
#content .geo-table-fixed-head .stats-country-table th{
  position:static!important;
  z-index:auto!important;
  background:#eae9e7!important;
  background-clip:padding-box;
  vertical-align:top!important;
  text-align:left!important;
  border-top:1px solid #b8b8b5!important;
  border-bottom:1px solid #b8b8b5!important;
  padding:7px 4px!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table :is(th,td),
#content .geo-table-fixed-head .stats-country-table th{
  overflow-wrap:anywhere;
  word-break:normal;
  box-sizing:border-box;
  white-space:normal!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table-scroll{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  max-height:none!important;
  overflow:visible!important;
  scrollbar-width:none!important;
  scrollbar-gutter:auto!important;
  margin:0 0 12px!important;
}
/* Fixed histogram header: title, explanatory text and filters never move. */
#content > .geo-detail-view[data-geo-subpage="histogram"] > .geo-pub-pinned{
  flex:0 0 auto!important;
  box-sizing:border-box;
  width:100%;
  padding:4px 14px 9px 0;
  margin:0!important;
  min-height:0;
  max-height:55%;
  overflow:visible;
}
#content .geo-pub-pinned h2{
  color:var(--red);
  font:400 23px/1.2 Georgia,"Times New Roman",serif;
  margin:3px 0 7px!important;
}
#content .geo-pub-pinned .geo-pub-sub{
  font-size:15px;
  margin:0 0 8px;
}
#content .geo-pub-pinned .geo-pub-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
  max-width:100%;
}
#content .geo-pub-pinned .geo-pub-filters label{min-width:0;}
#content .geo-detail-view[data-geo-subpage="histogram"] .geo-pub-chart{
  margin:0 0 12px!important;
  padding-top:5px;
  max-width:100%;
}
@media(max-width:730px){
  #content > .geo-detail-view[data-geo-subpage] > h1{font-size:clamp(23px,5vw,33px)!important;}
  #content .geo-detail-view[data-geo-subpage="table"] .stats-country-table td,
  #content .geo-table-fixed-head th{font-size:11px!important;padding:5px 2px!important;}
  #content .geo-table-fixed-head{padding-right:14px!important;}
  #content > .geo-detail-view[data-geo-subpage="histogram"] > .geo-pub-pinned{padding-right:2px;}
}


/* GeoSite2 v213: compact Geography > Table, one scroll and fixed column headings. */
#content > .geo-detail-view[data-geo-subpage="table"] > h1 {
  font-size:clamp(20px,2.1vw,29px)!important;
  line-height:1.1!important;
  margin:0 0 2px!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] > .geo-back-button {
  font-size:16px!important;
  line-height:1.12!important;
  margin:0 0 3px!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] > .geo-table-fixed-head .stats-country-table th {
  padding:3px 3px!important;
  font-size:12px!important;
  line-height:1.12!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .geo-detail-body {
  padding:0 7px 4px 0!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .stats-country-table-scroll {
  margin:0!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table td {
  padding:3px 3px!important;
  font-size:13px!important;
  line-height:1.16!important;
}
#content .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table td.stats-source-cell {
  font-size:12px!important;
  line-height:1.16!important;
}
@media(max-width:730px) {
  #content > .geo-detail-view[data-geo-subpage="table"] > h1 {
    font-size:22px!important;
  }
  #content .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table td {
    font-size:11px!important;
    padding:3px 2px!important;
  }
}

/* GeoSite2 v214 — compact all Geography headers and eliminate the updated banner. */
#content > .geo-detail-view[data-geo-subpage] > .stats-updated {
  display: none!important;
}
#content > .geo-detail-view[data-geo-subpage] > h1 {
  font-size: clamp(19px, 1.85vw, 26px)!important;
  line-height: 1.08!important;
  margin: 0 0 2px!important;
}
#content > .geo-detail-view[data-geo-subpage] > .geo-back-button {
  font-size: 15px!important;
  line-height: 1.1!important;
  margin: 0 0 2px!important;
  padding: 0!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] > .geo-table-fixed-head .stats-country-table th {
  font-size: 12px!important;
  line-height: 1.08!important;
  padding: 2px 3px!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body {
  padding: 0 6px 2px 0!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] .stats-country-table-scroll {
  margin: 0!important;
  padding: 0!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table th,
#content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table td {
  font-size: 12px!important;
  line-height: 1.1!important;
  padding: 2px 3px!important;
}
#content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table td.stats-source-cell,
#content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table th.stats-source-cell {
  font-size: 11px!important;
  line-height: 1.08!important;
  overflow-wrap: normal!important;
  word-break: normal!important;
}
@media(max-width:730px) {
  #content > .geo-detail-view[data-geo-subpage] > h1 {
    font-size: 20px!important;
  }
  #content > .geo-detail-view[data-geo-subpage="table"] .geo-detail-body .stats-country-table :is(th,td) {
    font-size: 11px!important;
    padding: 2px!important;
  }
}


/* GeoSite Geography Map: cumulative city visits and publication openings; no extra vertical scrollbar. */
#content .geo-cumulative{margin:13px 0 18px;max-width:100%;font:inherit}
#content .geo-cumulative-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 14px;margin-bottom:8px}
#content .geo-cumulative-bar h2{font-size:16px!important;line-height:1.25;margin:0!important;color:inherit}
#content .geo-cumulative-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}
#content .geo-cumulative-filters label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer}
#content .geo-cumulative-filters select{font:inherit;padding:3px 5px;min-width:85px}
#content .geo-cumulative-table-wrap{width:100%;overflow-x:auto}
#content .geo-cumulative-table{border-collapse:collapse;width:100%;min-width:580px;table-layout:fixed;font-size:13px}
#content .geo-cumulative-table th,#content .geo-cumulative-table td{text-align:left;vertical-align:top;padding:8px 9px;border-bottom:1px solid #e3e6ea;overflow-wrap:anywhere}
#content .geo-cumulative-table th{background:transparent;font-weight:600;color:inherit;white-space:normal}
#content .geo-cumulative-table th:nth-child(1){width:19%}
#content .geo-cumulative-table th:nth-child(2){width:20%}
#content .geo-cumulative-table th:nth-child(3){width:11%;text-align:right}
#content .geo-cumulative-table th:nth-child(4){width:50%}
#content .geo-cumulative-table .geo-cumulative-number{text-align:right;font-variant-numeric:tabular-nums}
#content .geo-cumulative-work{display:block;margin-bottom:3px}
#content .geo-cumulative-work:last-child{margin-bottom:0}
#content .geo-cumulative-work small{font-size:11px;color:#667484}
#content .geo-cumulative-note{font-size:11px;opacity:.75;margin:7px 0 0;line-height:1.45}
@media(max-width:680px){#content .geo-cumulative-bar h2{font-size:14px!important}#content .geo-cumulative-table{min-width:480px;font-size:12px}#content .geo-cumulative-table th,#content .geo-cumulative-table td{padding:6px 5px}}

/* GeoSite2: Four compact Geography choices and a separate Activity view. */
@media (min-width:701px) and (min-height:431px){
 #content:has(> .geo-landing){overflow-y:hidden;}
}
#content .geo-landing{box-sizing:border-box;max-height:100%;min-height:0;padding:7px 4px;}
#content .geo-landing h1{margin:0 0 12px;line-height:1.15;}
#content .geo-navigation-list{gap:6px;margin-top:0;max-width:720px;}
#content .geo-navigation-list .pub-category-link{min-height:44px;padding:6px 14px;gap:10px;}
#content .geo-navigation-list .pub-category-heading{font-size:clamp(18px,2vw,23px);line-height:1.14;}
#content .geo-navigation-list .pub-category-arrow{font-size:24px;line-height:1;}
@media (max-width:700px){
 #content .geo-landing{max-height:none;}
 #content .geo-navigation-list{gap:5px;}
 #content .geo-navigation-list .pub-category-link{padding:7px 12px;min-height:42px;}
}
/* Activity: bring Visits closer to Country and keep its complete heading in one row. */
#content .geo-cumulative-table th:nth-child(1){width:18%;}
#content .geo-cumulative-table th:nth-child(2){width:18%;}
#content .geo-cumulative-table th:nth-child(3){width:16%;text-align:right;white-space:nowrap;overflow-wrap:normal;}
#content .geo-cumulative-table th:nth-child(4){width:48%;}
@media (max-width:680px){#content .geo-cumulative-table{min-width:680px;}}

/* GeoSite2 Activity v20261116: fixed title, back link, period filters and column headings. */
#content:has(> .geo-detail-view[data-geo-subpage="activity"]){overflow:hidden!important;}
#content > .geo-detail-view[data-geo-subpage="activity"]{
 box-sizing:border-box;width:100%;max-width:100%;height:100%;min-height:0;min-width:0;
 display:flex;flex-direction:column;overflow:hidden;padding:0 0 2px;
}
#content > .geo-detail-view[data-geo-subpage="activity"] > h1{
 flex:0 0 auto;margin:0 0 6px;line-height:1.15;
}
#content > .geo-detail-view[data-geo-subpage="activity"] > .geo-back-button{
 flex:0 0 auto;margin:0 0 8px;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative{
 box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;
 min-height:0;min-width:0;max-width:100%;margin:4px 0 0;overflow:hidden;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-bar{
 flex:0 0 auto;min-height:0;margin-bottom:7px;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table-wrap{
 box-sizing:border-box;flex:1 1 auto;min-height:0;min-width:0;
 overflow-x:auto;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table thead th{
 position:sticky;top:0;z-index:2;background:transparent;
 box-shadow:0 1px 0 #c7c7c3;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-total > th,
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-total > td{
 border-top:2px solid #8a9299;border-bottom:0;font-weight:700;
 background:transparent;vertical-align:middle;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-total > th{white-space:nowrap;}

/* GeoSite2 Activity: filter field backgrounds match the table column-heading row. */
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-filters select,
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-filters input[type="number"]{
 background:transparent;
}

/* GeoSite2 Map: display only world geography through southern South America. */
#content .geo-detail-view[data-geo-subpage="map"] .geo-detail-body{
 padding:0 8px 8px 0!important;
}
#content .geo-detail-view[data-geo-subpage="map"] .geo-map-crop{
 position:relative;box-sizing:border-box;
 width:100%;max-width:1050px;
 aspect-ratio:1960 / 815;
 height:auto;overflow:hidden;flex:0 0 auto;
}
#content .geo-detail-view[data-geo-subpage="map"] .geo-map-crop .stats-map-wrap{
 width:100%;max-width:none;overflow:visible;
}
#content .geo-detail-view[data-geo-subpage="map"] .geo-map-crop .stats-world-map{
 display:block;width:100%;height:auto;max-width:none;
}
#content .geo-detail-view[data-geo-subpage="map"] .stats-device-line{
 margin-top:6px;max-width:100%;
}
#content .geo-detail-view[data-geo-subpage="map"] .stats-device-line h2{
 margin:3px 0;
}

/* Activity transparent filter labels, controls, headings: no filled panels. */
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-bar,
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-filters,
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-filters label{background:transparent;}

/* GeoSite2 Activity independent fixed heading separated from scroll. */
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table-wrap{display:flex;flex-direction:column;min-width:0;min-height:0;overflow-x:auto!important;overflow-y:hidden!important;}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-fixed-head{flex:0 0 auto;box-sizing:border-box;width:100%;min-width:680px;padding-right:var(--geo-activity-scrollbar-width,0px);background:transparent;overflow:hidden;}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-fixed-head th{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-row-scroll{flex:1 1 auto;box-sizing:border-box;width:100%;min-width:680px;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain;}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table{width:100%;min-width:0;table-layout:fixed;}


/* GeoSite2 TEST Activity: one two-axis scroller, fixed headings, and visible mobile TOTAL. */
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total{
 display:flex;align-items:baseline;flex-wrap:wrap;
 gap:6px 14px;margin:8px 0 9px;padding:8px 0;
 border-top:2px solid #8a9299;border-bottom:1px solid #c7c7c3;
 background:transparent;font-size:13px;line-height:1.4;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total-title{
 flex:0 0 100%;font-weight:700;
}
#content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total-item{
 display:inline-flex;gap:4px;white-space:nowrap;align-items:baseline;
}
/* Keep the existing desktop-only bottom TOTAL without a duplicate banner. */
@media screen and (min-width:1201px) and (pointer:fine){
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total{
  display:none;
 }
}
@media screen and (max-width:1200px), screen and (pointer:coarse){
 #content:has(> .geo-detail-view[data-geo-subpage="activity"]){
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;
 }
 #content > .geo-detail-view[data-geo-subpage="activity"]{
  display:block!important;height:auto!important;max-height:none!important;
  min-height:0!important;overflow:visible!important;
 }
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative{
  display:block!important;height:auto!important;max-height:none!important;
  min-height:0!important;overflow:visible!important;
 }
 /* The wide table lives INSIDE a viewport-width scroller (not a 680px scroller). */
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table-wrap{
  display:block!important;flex:none!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  height:auto!important;max-height:none!important;
  overflow:hidden!important;
 }
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-fixed-head{
  display:block!important;flex:none!important;position:static!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:100%!important;height:auto!important;
  padding-right:0!important;overflow:hidden!important;
  background:transparent;
 }
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-row-scroll{
  display:block!important;flex:none!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:100%!important;height:60vh!important;height:60dvh!important;
  min-height:200px!important;max-height:540px!important;
  overflow-x:auto!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  touch-action:auto;
 }
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table{
  width:100%!important;min-width:680px!important;table-layout:fixed!important;
 }
}

/* GeoSite2 TEST: standalone Activity uses one bounded two-axis touch scroller. */
#content .geo-cumulative-open-tab{
 color:#275e96;text-decoration:underline;font:inherit;font-size:13px;
 white-space:normal;align-self:center;
}
#content .geo-navigation-list > a.pub-category-link{text-decoration:none;font:inherit;}
@media screen and (min-width:1201px) and (pointer:fine){
 #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total{display:none;}
}
html.geo-activity-tab,html.geo-activity-tab body{
 width:100%!important;height:auto!important;min-height:100%!important;
 overflow-x:hidden!important;overflow-y:auto!important;
}
html.geo-activity-tab .shell{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;height:auto!important;min-height:100dvh!important;
 max-height:none!important;margin:0!important;padding:8px 10px 16px!important;
 zoom:1!important;
}
html.geo-activity-tab .topbar,
html.geo-activity-tab .sidebar,
html.geo-activity-tab #siteNews{display:none!important;}
html.geo-activity-tab .workspace,
html.geo-activity-tab .content-panel,
html.geo-activity-tab #content,
html.geo-activity-tab #content > .geo-detail-view[data-geo-subpage="activity"]{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;margin:0!important;padding:0!important;
}
html.geo-activity-tab #content > .geo-detail-view[data-geo-subpage="activity"] > h1{
 font-size:clamp(19px,2.6vw,27px)!important;margin:0 0 4px!important;
}
html.geo-activity-tab #content > .geo-detail-view[data-geo-subpage="activity"] > .geo-back-button{
 display:none!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;margin:0!important;padding:0!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-open-tab{
 display:none!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-bar{
 display:flex!important;position:static!important;min-height:0!important;
 margin:0 0 3px!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-mobile-total{
 display:flex!important;align-items:baseline;flex-wrap:wrap;
 gap:4px 14px;padding:5px 0!important;margin:4px 0 6px!important;
 background:transparent;
}
/* Fixed, separately aligned header; width follows the visible table viewport. */
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table-wrap{
 display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:hidden!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-fixed-head{
 display:block!important;flex:0 0 auto!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:auto!important;min-height:0!important;
 padding-right:0!important;overflow:hidden!important;
}
/* Critical fix: force positive viewport height on the INNER scroller itself.
   Both axes belong to this one box; its contents are a wide, tall table. */
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-row-scroll{
 display:block!important;flex:none!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:65vh!important;height:65dvh!important;min-height:220px!important;
 max-height:760px!important;
 overflow-x:auto!important;overflow-y:auto!important;
 -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
 touch-action:auto;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table{
 width:100%!important;min-width:760px!important;table-layout:fixed!important;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-work{
 display:inline;margin-right:5px;
}
html.geo-activity-tab #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-work:not(:last-child)::after{
 content:"; ";
}

/* GeoSite2 TEST: compact top-level section choices and small Textbooks image on mobile. */
/* Limit compaction to the main-menu landing screens, not chapter/book text. */
@media screen and (max-width:980px){
  /* Keep the existing four-left/two-right menu order and portrait intact. */
  #mainMenu.main-menu{
    row-gap:0!important;
    column-gap:4px!important;
  }
  #mainMenu.main-menu > button{
    font-size:clamp(12px,3vw,15px)!important;
    line-height:1.08!important;
    padding:3px 2px!important;
  }
  /* Publications, CubeTechnology, Textbooks, Biography, Geography. */
  #content > .section-placeholder:has(> .pub-landing-layout) > h1,
  #content > .biography-landing > h1,
  #content > .geo-landing > h1{
    font-size:clamp(21px,4.8vw,29px)!important;
    line-height:1.1!important;
    margin:0 0 5px!important;
  }
  #content > .section-placeholder > .pub-category-list,
  #content > .section-placeholder > .pub-landing-layout .pub-category-list{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin-top:5px!important;
    row-gap:4px!important;
  }
  #content > .section-placeholder .pub-category-list > .pub-category-link{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:31px!important;
    padding:5px 9px!important;
    gap:8px!important;
    border-radius:7px!important;
  }
  #content > .section-placeholder .pub-category-list .pub-category-heading{
    font-size:clamp(13px,3.25vw,16px)!important;
    line-height:1.14!important;
    overflow-wrap:anywhere;
  }
  #content > .section-placeholder .pub-category-list .pub-category-arrow{
    font-size:20px!important;
    line-height:1!important;
  }
  /* Limit the existing Publications and CubeTechnology image on tablets. */
  #content > .section-placeholder > .pub-landing-layout > img.pub-archive-illustration{
    max-height:min(25dvh,175px)!important;
  }
  /* Textbooks: the same small top-right illustration treatment as the other
     two illustrated top-level pages, instead of a full-width picture below. */
  #content > .textbooks-landing{
    position:relative!important;
  }
  #content > .textbooks-landing > .textbooks-layout{
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  #content > .textbooks-landing > h1{
    max-width:65%!important;
  }
  #content > .textbooks-landing > .textbooks-layout > .textbooks-categories{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin-top:5px!important;
    gap:4px!important;
  }
  #content > .textbooks-landing > .textbooks-layout > img.pub-archive-illustration.textbooks-illustration{
    display:block!important;
    position:absolute!important;
    top:-109px!important;
    right:4px!important;
    left:auto!important;
    bottom:auto!important;
    width:min(29vw,100px)!important;
    max-width:min(29vw,100px)!important;
    height:100px!important;
    max-height:100px!important;
    min-width:0!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:left center!important;
    transform:translate(-30px,-10px) scale(1.10)!important;
    transform-origin:top right!important;
    float:none!important;
    z-index:1;
  }
}
/* On small/short phones, leave adequate space for all options. */
@media screen and (max-width:700px) and (max-height:700px){
  #content > .section-placeholder > .pub-category-list,
  #content > .section-placeholder > .pub-landing-layout .pub-category-list{
    row-gap:3px!important;
  }
  #content > .section-placeholder .pub-category-list > .pub-category-link{
    min-height:29px!important;
    padding:4px 8px!important;
  }
  #content > .section-placeholder .pub-category-list .pub-category-heading{
    font-size:clamp(12.5px,3.1vw,15px)!important;
  }
  #content > .textbooks-landing > .textbooks-layout > .textbooks-categories{
    margin-top:5px!important;
  }
}


/* GeoSite2 TEST: Activity phone shows the start of Publications and keeps horizontal scrolling. */
/* Keep the frozen heading and scrollable body in the same column geometry.
   The first three columns use compact capped widths; Publications fills the
   wide table. The Publications column starts within the phone viewport;
   the remainder can be read by horizontal scrolling. */
@media screen and (max-width:980px) {
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table-wrap{
  width:100%!important;min-width:0!important;max-width:100%!important;
  overflow-x:hidden!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-fixed-head{
  min-width:0!important;max-width:100%!important;
  padding-right:var(--geo-activity-scrollbar-width,0px)!important;
  overflow-x:hidden!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-row-scroll{
  width:100%!important;min-width:0!important;max-width:100%!important;
  overflow-x:auto!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  touch-action:auto!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table{
  width:100%!important;min-width:600px!important;max-width:none!important;
  table-layout:fixed!important;font-size:clamp(10px,2.8vw,13px)!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table col:nth-child(1){
  width:clamp(43px,15vw,85px)!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table col:nth-child(2){
  width:clamp(45px,14vw,74px)!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table col:nth-child(3){
  width:clamp(72px,22vw,93px)!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table col:nth-child(4){
  width:auto!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th,
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table td{
  box-sizing:border-box!important;padding:6px 2px!important;
  line-height:1.3!important;overflow-wrap:anywhere!important;
  word-break:normal!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(1),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(2),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(3),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(4){
  width:auto!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(3){
  white-space:nowrap!important;overflow-wrap:normal!important;
 }
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(3),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table td:nth-child(3),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table .geo-cumulative-number,
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table th:nth-child(4),
 html:root #content .geo-detail-view[data-geo-subpage="activity"] .geo-cumulative-table td:nth-child(4){
  text-align:left!important;
 }
}
