/* Isolated MeteoPT table: compact cells, full-width data layout. */
#meteopt-gfs-table .meteopt-table-card{background:linear-gradient(145deg,rgba(18,43,61,.94),rgba(12,31,46,.96));border:1px solid var(--line);border-radius:15px;padding:10px;min-width:0}
#meteopt-gfs-table .meteopt-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:var(--muted);font-size:9px}
#meteopt-gfs-table .meteopt-table-source{display:inline-flex;align-items:center;gap:6px;color:#b9cbd4;font-weight:700}
#meteopt-gfs-table .meteopt-table-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(143,215,186,.1)}
#meteopt-gfs-table .meteopt-table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid rgba(204,225,239,.1);border-radius:9px;scrollbar-color:#315267 transparent}
#meteopt-gfs-table .meteopt-data-table{display:table!important;width:100%!important;min-width:600px!important;max-width:100%!important;margin:0!important;border-collapse:separate;border-spacing:0;table-layout:fixed;font-variant-numeric:tabular-nums;font-size:10px;white-space:nowrap}
#meteopt-gfs-table .meteopt-data-table th{position:sticky;top:0;z-index:2;background:#183447;color:#b8ccd7;font-size:9px;font-weight:700;padding:6px 4px;text-align:center;border-bottom:1px solid rgba(204,225,239,.15)}
#meteopt-gfs-table .meteopt-data-table td{padding:4px 4px;text-align:center;border-bottom:1px solid rgba(204,225,239,.065);color:#d5e2e9;overflow:hidden;text-overflow:clip}
#meteopt-gfs-table .meteopt-data-table th:first-child,#meteopt-gfs-table .meteopt-data-table td:first-child{position:sticky;left:0;z-index:1;background:#102838;width:7%}
#meteopt-gfs-table .meteopt-data-table th:first-child{z-index:3;background:#183447}
#meteopt-gfs-table .meteopt-data-table th:nth-child(2),#meteopt-gfs-table .meteopt-data-table td:nth-child(2){width:22%;padding-left:8px;padding-right:8px}
#meteopt-gfs-table .meteopt-data-table td:nth-child(2){color:#b9cbd4;text-align:left}
#meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),#meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){width:14.2%}
#meteopt-gfs-table .meteopt-data-table tbody tr:nth-child(even){background:rgba(255,255,255,.018)}
#meteopt-gfs-table .meteopt-data-table tbody tr:hover{background:rgba(125,211,215,.055)}
#meteopt-gfs-table .meteopt-data-table tbody tr:last-child td{border-bottom:0}
#meteopt-gfs-table .meteopt-value{display:inline-flex;justify-content:center;align-items:center;min-width:22px;padding:2px 4px;border-radius:6px;font-weight:700;line-height:1.1}
#meteopt-gfs-table .mt-blue{color:#8fd7ff;background:rgba(42,145,218,.17)}
#meteopt-gfs-table .mt-green{color:#8ce2b5;background:rgba(39,166,105,.17)}
#meteopt-gfs-table .mt-yellow{color:#ffe08a;background:rgba(220,174,48,.17)}
#meteopt-gfs-table .mt-orange{color:#ffb477;background:rgba(232,117,50,.18)}
#meteopt-gfs-table .mt-red{color:#ff9292;background:rgba(220,65,65,.18)}
#meteopt-gfs-table .mt-purple{color:#d7a6ff;background:rgba(151,82,205,.2)}
#meteopt-gfs-table .meteopt-table-empty{padding:14px!important;text-align:center!important;color:var(--muted)!important}
@media(max-width:560px){#meteopt-gfs-table .meteopt-table-card{padding:8px;border-radius:12px}#meteopt-gfs-table .meteopt-table-toolbar{align-items:flex-start;flex-direction:column;gap:4px}#meteopt-gfs-table .meteopt-data-table{font-size:9px;min-width:560px!important}#meteopt-gfs-table .meteopt-data-table th{padding:6px 3px}#meteopt-gfs-table .meteopt-data-table td{padding:4px 3px}#meteopt-gfs-table .meteopt-data-table th:nth-child(2),#meteopt-gfs-table .meteopt-data-table td:nth-child(2){padding-left:6px;padding-right:6px}}


/* Tight, left-stacked MeteoPT panel: width follows the data, not the viewport. */
#meteopt-gfs-table{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:auto!important;
}
#meteopt-gfs-table>.section-head{
  width:100%!important;
  max-width:100%!important;
  justify-content:space-between;
}
#meteopt-gfs-table .meteopt-table-card{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
#meteopt-gfs-table .meteopt-table-toolbar{width:100%;margin-bottom:5px}
#meteopt-gfs-table .meteopt-table-scroll{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  overflow-x:auto!important;
}
#meteopt-gfs-table .meteopt-data-table{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  table-layout:auto!important;
  border-spacing:0!important;
}
#meteopt-gfs-table .meteopt-data-table th,
#meteopt-gfs-table .meteopt-data-table td{padding:4px 3px!important}
#meteopt-gfs-table .meteopt-data-table th:first-child,
#meteopt-gfs-table .meteopt-data-table td:first-child{width:38px!important;min-width:38px!important}
#meteopt-gfs-table .meteopt-data-table th:nth-child(2),
#meteopt-gfs-table .meteopt-data-table td:nth-child(2){
  width:116px!important;min-width:116px!important;padding-left:5px!important;padding-right:5px!important
}
#meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
#meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){width:58px!important;min-width:58px!important}
#meteopt-gfs-table .meteopt-value{min-width:0!important;padding:2px 3px!important}
@media(max-width:560px){
  #meteopt-gfs-table{width:100%!important}
  #meteopt-gfs-table .meteopt-table-card{width:100%!important;padding:7px!important}
  #meteopt-gfs-table .meteopt-table-scroll{width:100%!important}
  #meteopt-gfs-table .meteopt-data-table{font-size:9px!important}
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td{padding:4px 2px!important}
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child{width:32px!important;min-width:32px!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2){width:108px!important;min-width:108px!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){width:48px!important;min-width:48px!important}
}

/* Mobile: show all seven columns at once; no horizontal slider. */
@media(max-width:560px){
  #meteopt-gfs-table .meteopt-table-scroll{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    overflow-x:hidden!important;
    border-radius:8px;
  }
  #meteopt-gfs-table .meteopt-data-table{
    display:table!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
    font-size:7.5px!important;
    white-space:normal!important;
  }
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td{
    padding:3px 1px!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    text-align:center!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child{
    width:8%!important;
    min-width:0!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2){
    width:28%!important;
    min-width:0!important;
    padding-left:2px!important;
    padding-right:2px!important;
    white-space:normal!important;
    line-height:1.15!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){
    width:12.8%!important;
    min-width:0!important;
  }
  #meteopt-gfs-table .meteopt-value{
    min-width:0!important;
    max-width:100%!important;
    padding:2px 1px!important;
    font-size:7.5px!important;
    border-radius:4px!important;
  }
}


/* Final mobile override: eliminate horizontal scrolling and tighten every column. */
@media(max-width:560px){
  #meteopt-gfs-table,
  #meteopt-gfs-table .meteopt-table-card,
  #meteopt-gfs-table .meteopt-table-scroll{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:clip!important;
  }
  #meteopt-gfs-table .meteopt-table-scroll{
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    touch-action:pan-y!important;
  }
  #meteopt-gfs-table .meteopt-table-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }
  #meteopt-gfs-table .meteopt-data-table{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
    border-spacing:0!important;
    font-size:7px!important;
  }
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td{
    box-sizing:border-box!important;
    padding:2px 0!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child{
    width:7%!important;
    min-width:0!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2){
    width:24%!important;
    min-width:0!important;
    padding-left:1px!important;
    padding-right:1px!important;
    text-align:center!important;
    line-height:1.05!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){
    width:13.8%!important;
    min-width:0!important;
  }
  #meteopt-gfs-table .meteopt-value{
    display:inline!important;
    min-width:0!important;
    max-width:100%!important;
    padding:1px 0!important;
    font-size:7px!important;
    line-height:1!important;
    background:transparent!important;
    border-radius:0!important;
  }
}


/* Mobile/tablet hard stop: no scroll container for the GFS table. */
@media(max-width:850px){
  #meteopt-gfs-table .meteopt-table-scroll{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    overflow-x:hidden!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    overscroll-behavior:none!important;
  }
  #meteopt-gfs-table .meteopt-table-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
    background:transparent!important;
  }
  #meteopt-gfs-table .meteopt-data-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
}


/* Mobile typography + compact spacing refinement. */
@media(max-width:850px){
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td{
    padding-left:0!important;
    padding-right:0!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child{width:6%!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2){width:22%!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){width:14.4%!important}
  #meteopt-gfs-table .meteopt-data-table{font-size:8px!important}
  #meteopt-gfs-table .meteopt-data-table th{font-size:8px!important}
  #meteopt-gfs-table .meteopt-value{font-size:8px!important}
}


/* Android WebView: the GFS table is content, never a vertical scroll container. */
@media (max-width: 850px), (pointer: coarse) {
  #meteopt-gfs-table,
  #meteopt-gfs-table .meteopt-table-card,
  #meteopt-gfs-table .meteopt-table-scroll {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  #meteopt-gfs-table .meteopt-table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #meteopt-gfs-table .meteopt-data-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* Desktop only: enlarge the complete MeteoPT GFS panel by 20%.
   Mobile and touch layouts retain their existing dimensions. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table {
    zoom: 1.2;
  }
}


/* Put the GFS pressure analysis into the unused space beside the table.
   The table's existing desktop zoom is compensated so it fits its grid track. */
@media (min-width: 901px) and (pointer: fine) {
  .gfs-table-pressure-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table {
    width: 83.3333% !important;
    max-width: 83.3333% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-card,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-scroll,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    table-layout: fixed !important;
  }
  .gfs-table-pressure-layout > #basinc {
    min-width: 0;
    margin: 0;
    padding-top: 29px;
  }
  .gfs-table-pressure-layout > #basinc .pressure-card {
    min-height: 150px;
  }
}
@media (max-width: 900px), (pointer: coarse) {
  .gfs-table-pressure-layout {
    display: block;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .gfs-table-pressure-layout > #basinc {
    width: 100%;
    margin: 0;
    padding-top: 8px;
  }
}


/* Zero precipitation: quiet, neutral grey instead of a wet-weather colour. */
#meteopt-gfs-table .mt-gray {
  color: #b7c2ca;
  background: rgba(145, 158, 168, .16);
}

/* Desktop: use compact intrinsic column widths; keep the mobile table rules intact. */
@media (min-width: 851px) and (pointer: fine) {
  .gfs-table-pressure-layout {
    grid-template-columns: max-content minmax(300px, 1fr);
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table {
    width: max-content !important;
    max-width: max-content !important;
    justify-self: start;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-card,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-scroll {
    width: max-content !important;
    max-width: 100% !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child {
    width: 44px !important;
    min-width: 44px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 138px !important;
    min-width: 138px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
    width: 64px !important;
    min-width: 64px !important;
  }
}


/* FINAL: 3-hour GFS table must fit the available screen width. */
#meteopt-gfs-table,
#meteopt-gfs-table .meteopt-table-card,
#meteopt-gfs-table .meteopt-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#meteopt-gfs-table .meteopt-table-scroll {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
#meteopt-gfs-table .meteopt-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  font-variant-numeric: tabular-nums;
}
#meteopt-gfs-table .meteopt-data-table th,
#meteopt-gfs-table .meteopt-data-table td {
  box-sizing: border-box !important;
  padding: 5px 2px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  text-align: center !important;
}
#meteopt-gfs-table .meteopt-data-table th:first-child,
#meteopt-gfs-table .meteopt-data-table td:first-child {
  width: 6% !important;
  min-width: 0 !important;
  position: sticky;
  left: 0;
}
#meteopt-gfs-table .meteopt-data-table th:nth-child(2),
#meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
  width: 22% !important;
  min-width: 0 !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  text-align: center !important;
}
#meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
#meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
  width: 14.4% !important;
  min-width: 0 !important;
}
#meteopt-gfs-table .meteopt-value {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 2px 1px !important;
}
@media (max-width: 560px) {
  #meteopt-gfs-table .meteopt-table-card { padding: 6px !important; }
  #meteopt-gfs-table .meteopt-table-toolbar {
    font-size: 8px !important;
    margin-bottom: 5px !important;
  }
  #meteopt-gfs-table .meteopt-data-table {
    font-size: 7.5px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 7.5px !important;
    line-height: 1.05 !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    line-height: 1.05 !important;
  }
  #meteopt-gfs-table .meteopt-value {
    font-size: 7.5px !important;
    line-height: 1 !important;
    background: transparent !important;
    padding: 1px 0 !important;
  }
}


/* FINAL LAYOUT: one integrated, compact GFS 72-hour forecast panel. */
.gfs-table-pressure-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
}
.gfs-table-pressure-layout > #meteopt-gfs-table,
.gfs-table-pressure-layout > #basinc {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
#meteopt-gfs-table.gfs-table-section {
  padding: 12px 0 !important;
}
#meteopt-gfs-table .meteopt-table-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 15px !important;
  box-sizing: border-box !important;
}
#meteopt-gfs-table .meteopt-table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 7px;
}
#meteopt-gfs-table .meteopt-table-title {
  min-width: 0;
}
#meteopt-gfs-table .meteopt-table-title .section-kicker {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: .13em;
}
#meteopt-gfs-table .meteopt-table-title h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.15;
}
#meteopt-gfs-table .meteopt-table-cycle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #9eb3c0;
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
#meteopt-gfs-table .meteopt-table-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 5px;
  padding: 5px 8px;
  border: 1px solid rgba(204,225,239,.075);
  border-radius: 8px;
  background: rgba(2,15,24,.22);
  font-size: 9px;
  line-height: 1.15;
}
#meteopt-gfs-table .meteopt-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border: 1px solid rgba(204,225,239,.08);
  border-radius: 8px;
}
#meteopt-gfs-table .meteopt-data-table {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-spacing: 0 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
#meteopt-gfs-table .meteopt-data-table th {
  padding: 5px 4px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}
#meteopt-gfs-table .meteopt-data-table td {
  padding: 3px 4px !important;
  height: 23px;
  line-height: 1.1 !important;
}
#meteopt-gfs-table .meteopt-data-table th:first-child,
#meteopt-gfs-table .meteopt-data-table td:first-child {
  width: 7% !important;
  min-width: 0 !important;
}
#meteopt-gfs-table .meteopt-data-table th:nth-child(2),
#meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
  width: 25% !important;
  min-width: 0 !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
#meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
#meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
  width: 13.6% !important;
  min-width: 0 !important;
}
#meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
  text-align: left !important;
}
#meteopt-gfs-table .meteopt-value {
  min-width: 0 !important;
  padding: 1px 4px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}
.gfs-table-pressure-layout > #basinc {
  padding: 8px 0 0 !important;
}
.gfs-table-pressure-layout > #basinc .section-head {
  margin-bottom: 7px;
}
@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-table-card {
    padding: 9px 8px !important;
    border-radius: 12px !important;
  }
  #meteopt-gfs-table .meteopt-table-panel-head {
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 5px;
  }
  #meteopt-gfs-table .meteopt-table-title h2 {
    font-size: 16px;
  }
  #meteopt-gfs-table .meteopt-table-cycle {
    font-size: 8px;
    line-height: 1.2;
  }
  #meteopt-gfs-table .meteopt-table-toolbar {
    padding: 4px 6px;
    font-size: 8px;
  }
  #meteopt-gfs-table .meteopt-data-table {
    font-size: 9px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    padding: 4px 2px !important;
    font-size: 8px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    height: 21px;
    padding: 2px 2px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child {
    width: 7% !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 26% !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
    width: 13.4% !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding: 1px 2px !important;
    font-size: 8.5px !important;
  }
}
@media (max-width: 390px) {
  #meteopt-gfs-table .meteopt-table-cycle {
    max-width: 42%;
    white-space: normal;
  }
  #meteopt-gfs-table .meteopt-data-table {
    font-size: 8px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 7px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 27% !important;
  }
}


/* FINAL DESKTOP WIDTH OVERRIDE:
   Older max-content selectors had higher specificity than the first compact-panel
   rules. Match their full selector weight and use the complete card width. */
@media (min-width: 851px) and (pointer: fine) {
  .gfs-table-pressure-layout > #meteopt-gfs-table,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-card,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-scroll,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    display: table !important;
    table-layout: fixed !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table th:first-child,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table td:first-child {
    width: 7% !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 27% !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
    width: 13.2% !important;
  }
}


/* FINAL PANEL BOUNDARY FIX:
   Keep the single GFS board at its original compact panel width.
   Expand ONLY the forecast table inside that board into the unused right-side
   space. Do not let the board itself span the page. */
@media (min-width: 851px) and (pointer: fine) {
  .gfs-table-pressure-layout > #meteopt-gfs-table {
    width: 100% !important;
    max-width: 860px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    align-self: center !important;
  }

  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-card,
  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .gfs-table-pressure-layout > #meteopt-gfs-table .meteopt-data-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }
}


/* COLUMN GAP -10%:
   Tighten only horizontal cell padding so columns sit 10% closer together.
   Column widths and the outer panel dimensions remain unchanged. */
@media (min-width: 701px) {
  #meteopt-gfs-table .meteopt-data-table th {
    padding-left: 3.6px !important;
    padding-right: 3.6px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 3.6px !important;
    padding-right: 3.6px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 5.4px !important;
    padding-right: 5.4px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 3.6px !important;
    padding-right: 3.6px !important;
  }
}

@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-data-table th {
    padding-left: 1.8px !important;
    padding-right: 1.8px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 1.8px !important;
    padding-right: 1.8px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 2.7px !important;
    padding-right: 2.7px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 1.8px !important;
    padding-right: 1.8px !important;
  }
}


/* COLUMN GAP -20% TOTAL:
   Apply a second 10% tightening to the current spacing.
   This is additive to the previous -10% pass. */
@media (min-width: 701px) {
  #meteopt-gfs-table .meteopt-data-table th {
    padding-left: 3.24px !important;
    padding-right: 3.24px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 3.24px !important;
    padding-right: 3.24px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 4.86px !important;
    padding-right: 4.86px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 3.24px !important;
    padding-right: 3.24px !important;
  }
}

@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-data-table th {
    padding-left: 1.62px !important;
    padding-right: 1.62px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 1.62px !important;
    padding-right: 1.62px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 2.43px !important;
    padding-right: 2.43px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 1.62px !important;
    padding-right: 1.62px !important;
  }
}


/* AGGRESSIVE COLUMN COMPRESSION:
   Keep the panel/table width unchanged, but substantially reduce horizontal
   whitespace inside every column and value pill. */
@media (min-width: 701px) {
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 1.6px !important;
    padding-right: 1.6px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 2.4px !important;
    padding-right: 2.4px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 0.8px !important;
    padding-right: 0.8px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 1.2px !important;
    padding-right: 1.2px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
}


/* AGGRESSIVE -20% ADDITIONAL:
   Reduce horizontal cell/value padding another 20% while preserving
   the panel and table outer widths. */
@media (min-width: 701px) {
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 1.28px !important;
    padding-right: 1.28px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 1.92px !important;
    padding-right: 1.92px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 1.6px !important;
    padding-right: 1.6px !important;
  }
}

@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 0.64px !important;
    padding-right: 0.64px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    padding-left: 0.96px !important;
    padding-right: 0.96px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    padding-left: 0.8px !important;
    padding-right: 0.8px !important;
  }
}


/* FINAL SPACING-ONLY FIX:
   Keep typography unchanged. Reduce horizontal whitespace only. */
@media (min-width: 701px) {
  #meteopt-gfs-table .meteopt-data-table {
    font-size: 11px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 9px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    font-size: 10px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

@media (max-width: 700px) {
  #meteopt-gfs-table .meteopt-data-table {
    font-size: 9px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 8px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
  #meteopt-gfs-table .meteopt-data-table td {
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    font-size: 8.5px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
}

/* FINAL EXACT COLUMN WIDTHS — desktop:
   Reduce only the physical column widths. Typography remains unchanged. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-data-table {
    width: 705px !important;
    min-width: 705px !important;
    max-width: 705px !important;
    table-layout: fixed !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
  }

  #meteopt-gfs-table .meteopt-data-table {
    font-size: 11px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 9px !important;
  }
  #meteopt-gfs-table .meteopt-value {
    font-size: 10px !important;
  }
}

/* FINAL PANEL WIDTH + CYCLE CENTERING */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-card {
    width: 733px !important;
    max-width: 733px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #meteopt-gfs-table .meteopt-table-panel-head {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
  }

  #meteopt-gfs-table .meteopt-table-title {
    grid-column: 1 !important;
  }

  #meteopt-gfs-table .meteopt-table-cycle {
    grid-column: 2 !important;
    align-items: center !important;
    text-align: center !important;
    justify-self: center !important;
  }

  #meteopt-gfs-table .meteopt-table-toolbar,
  #meteopt-gfs-table .meteopt-table-scroll {
    width: 705px !important;
    max-width: 705px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* FINAL LEFT ALIGNMENT FOR TABLE META */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-toolbar {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #meteopt-gfs-table .meteopt-table-toolbar > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* FINAL: source/meta strip flush to the left and right edges of the GFS panel. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-toolbar {
    width: calc(100% + 28px) !important;
    max-width: none !important;
    margin-left: -14px !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
  #meteopt-gfs-table .meteopt-table-toolbar > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* FINAL: remove the unused right-side space inside the GFS panel. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #meteopt-gfs-table .meteopt-data-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    table-layout: fixed !important;
  }
}


/* FINAL: tighten the horizontal distance between forecast columns without changing typography. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-scroll {
    width: 640px !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #meteopt-gfs-table .meteopt-data-table {
    width: 640px !important;
    min-width: 640px !important;
    max-width: 640px !important;
    table-layout: fixed !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 11px !important;
  }
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    font-size: inherit !important;
  }
  #meteopt-gfs-table .meteopt-value {
    font-size: 10px !important;
  }
}


/* FINAL: center Date/Hour column content horizontally. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    text-align: center !important;
  }
}


/* FINAL: pin the GFS table/panel to the left edge of the page content. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table .meteopt-table-card {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  #meteopt-gfs-table .meteopt-table-scroll {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  #meteopt-gfs-table .meteopt-data-table {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}


/* FINAL: move the GFS table layout to the far-left edge of the viewport. */
@media (min-width: 851px) and (pointer: fine) {
  .gfs-table-pressure-layout {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
  }
  .gfs-table-pressure-layout > #meteopt-gfs-table {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* FINAL: hard-pin the GFS panel to the page's left edge without changing its own width. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table.gfs-table-section {
    position: relative !important;
    left: calc((100vw - min(1120px, calc(100vw - 40px))) / -2) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}


/* HOMEPAGE: use the same GFS layout rules as /koy. */
.water-gfs-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
#meteopt-gfs-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
#meteopt-gfs-table .meteopt-table-card {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#meteopt-gfs-table .meteopt-table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}
#meteopt-gfs-table .meteopt-data-table {
  width: 100% !important;
  min-width: 680px !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (min-width: 900px) {
  .water-gfs-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr) !important;
  }
}
@media (max-width: 899px) {
  .water-gfs-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* FINAL: align homepage GFS panel with the station-observation panel's left edge. */
@media (min-width: 851px) and (pointer: fine) {
  #meteopt-gfs-table.gfs-table-section {
    position: static !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .water-gfs-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* FINAL KOY PALETTE: exact value-band colors used by /koy. */
#meteopt-gfs-table .meteopt-value.mt-blue{color:#8fd7ff !important;background:rgba(42,145,218,.17) !important}
#meteopt-gfs-table .meteopt-value.mt-green{color:#8ce2b5 !important;background:rgba(39,166,105,.17) !important}
#meteopt-gfs-table .meteopt-value.mt-yellow{color:#ffe08a !important;background:rgba(220,174,48,.17) !important}
#meteopt-gfs-table .meteopt-value.mt-orange{color:#ffb477 !important;background:rgba(232,117,50,.18) !important}
#meteopt-gfs-table .meteopt-value.mt-red{color:#ff9292 !important;background:rgba(220,65,65,.18) !important}
#meteopt-gfs-table .meteopt-value.mt-purple{color:#d7a6ff !important;background:rgba(151,82,205,.20) !important}
#meteopt-gfs-table .meteopt-value.mt-gray{color:#b7c2ca !important;background:rgba(145,158,168,.16) !important}


/* FINAL MOBILE FIT — MeteoPT GFS
   The GFS header and 7-column forecast table are a single fixed-width
   mobile composition: no horizontal swipe/scroll and no oversized table. */
@media (max-width: 850px), (pointer: coarse) {
  #meteopt-gfs-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #meteopt-gfs-table .meteopt-table-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  #meteopt-gfs-table .meteopt-table-panel-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 0 6px !important;
  }

  #meteopt-gfs-table .meteopt-table-title {
    min-width: 0 !important;
  }

  #meteopt-gfs-table .meteopt-table-title .section-kicker {
    margin: 0 0 2px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    letter-spacing: .11em !important;
  }

  #meteopt-gfs-table .meteopt-table-title h2 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
  }

  #meteopt-gfs-table .meteopt-table-cycle {
    min-width: 0 !important;
    max-width: 48% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 1px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  #meteopt-gfs-table .meteopt-table-cycle span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  #meteopt-gfs-table .meteopt-table-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 4px !important;
    padding: 3px 5px !important;
    min-height: 0 !important;
    font-size: 7.5px !important;
    line-height: 1.1 !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  #meteopt-gfs-table .meteopt-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    border-radius: 7px !important;
    overscroll-behavior: none !important;
  }

  #meteopt-gfs-table .meteopt-data-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    font-size: 7.5px !important;
    white-space: nowrap !important;
  }

  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td {
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 3px 1px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: center !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child {
    width: 7% !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2) {
    width: 25% !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    text-align: center !important;
  }

  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3) {
    width: 13.6% !important;
  }

  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 7px !important;
    font-weight: 700 !important;
  }

  #meteopt-gfs-table .meteopt-data-table td {
    height: 20px !important;
    font-size: 7.5px !important;
  }

  #meteopt-gfs-table .meteopt-value {
    display:inline !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 1px 0 !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
    border-radius: 3px !important;
  }
}

@media (max-width: 390px) {
  #meteopt-gfs-table .meteopt-table-card {
    padding: 7px 8px !important;
  }

  #meteopt-gfs-table .meteopt-table-title h2 {
    font-size: 15px !important;
  }

  #meteopt-gfs-table .meteopt-table-cycle {
    font-size: 7.5px !important;
  }

  #meteopt-gfs-table .meteopt-data-table {
    font-size: 7px !important;
  }

  #meteopt-gfs-table .meteopt-data-table th {
    font-size: 6.5px !important;
  }

  #meteopt-gfs-table .meteopt-data-table td {
    font-size: 7px !important;
  }
}


/* FINAL 2026-11-08 — MeteoPT GFS mobile single-screen composition.
   The header never becomes a horizontal scrolling surface; Run/Yayın stay
   inside the same compact panel. The seven-column table is fluid and never
   creates a horizontal page scroll. */
#meteopt-gfs-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
#meteopt-gfs-table > .section-head{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,auto)!important;
  align-items:end!important;
  gap:12px!important;
  margin-bottom:10px!important;
}
#meteopt-gfs-table > .section-head > div:first-child{
  min-width:0!important;
}
#meteopt-gfs-table > .section-head .section-kicker{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#meteopt-gfs-table > .section-head h2{
  margin:2px 0 0!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#meteopt-gfs-table > .section-head .section-note{
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  text-align:right!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
#meteopt-gfs-table .meteopt-table-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#meteopt-gfs-table .meteopt-table-scroll{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  box-sizing:border-box!important;
  touch-action:pan-y!important;
}
#meteopt-gfs-table .meteopt-data-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
  box-sizing:border-box!important;
}
#meteopt-gfs-table .meteopt-data-table th,
#meteopt-gfs-table .meteopt-data-table td{
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

@media(max-width:700px),(pointer:coarse){
  #meteopt-gfs-table > .section-head{
    grid-template-columns:minmax(0,1fr) minmax(0,44%)!important;
    gap:8px!important;
    align-items:end!important;
    margin-bottom:7px!important;
  }
  #meteopt-gfs-table > .section-head .section-kicker{
    font-size:8px!important;
    letter-spacing:.11em!important;
    line-height:1.1!important;
  }
  #meteopt-gfs-table > .section-head h2{
    font-size:16px!important;
    letter-spacing:-.02em!important;
  }
  #meteopt-gfs-table > .section-head .section-note{
    font-size:8px!important;
    line-height:1.15!important;
  }
  #meteopt-gfs-table .meteopt-table-card{
    padding:7px!important;
    border-radius:12px!important;
  }
  #meteopt-gfs-table .meteopt-table-toolbar{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:0 0 4px!important;
    padding:3px 5px!important;
    font-size:7.5px!important;
    line-height:1.1!important;
  }
  #meteopt-gfs-table .meteopt-table-scroll{
    overflow-x:hidden!important;
    overflow-y:visible!important;
    overscroll-behavior:none!important;
    scrollbar-width:none!important;
  }
  #meteopt-gfs-table .meteopt-data-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
    font-size:7.5px!important;
    white-space:nowrap!important;
  }
  #meteopt-gfs-table .meteopt-data-table th,
  #meteopt-gfs-table .meteopt-data-table td{
    padding:3px 1px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  #meteopt-gfs-table .meteopt-data-table th:first-child,
  #meteopt-gfs-table .meteopt-data-table td:first-child{width:7%!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(2),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(2){width:25%!important}
  #meteopt-gfs-table .meteopt-data-table th:nth-child(n+3),
  #meteopt-gfs-table .meteopt-data-table td:nth-child(n+3){width:13.6%!important}
  #meteopt-gfs-table .meteopt-data-table th{font-size:7px!important}
  #meteopt-gfs-table .meteopt-data-table td{font-size:7.5px!important;height:20px!important}
  #meteopt-gfs-table .meteopt-value{
    display:inline!important;
    min-width:0!important;
    max-width:100%!important;
    padding:1px 0!important;
    font-size:7.5px!important;
    line-height:1!important;
    background:transparent!important;
  }
}

@media(max-width:390px){
  #meteopt-gfs-table > .section-head{
    grid-template-columns:minmax(0,1fr) minmax(0,46%)!important;
    gap:6px!important;
  }
  #meteopt-gfs-table > .section-head h2{font-size:15px!important}
  #meteopt-gfs-table > .section-head .section-note{font-size:7.5px!important}
  #meteopt-gfs-table .meteopt-table-card{padding:6px!important}
  #meteopt-gfs-table .meteopt-data-table{font-size:7px!important}
  #meteopt-gfs-table .meteopt-data-table th{font-size:6.5px!important}
  #meteopt-gfs-table .meteopt-data-table td{font-size:7px!important}
}

/* Prevent the document itself from gaining a horizontal overflow from this module. */
html,body{
  overflow-x:hidden!important;
}

/* 20261108: MeteoPT GFS header — locked to viewport, compact on mobile. */
#meteopt-gfs-table .meteopt-table-panel-head{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(118px,42%)!important;
  align-items:center!important;
  gap:8px!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
#meteopt-gfs-table .meteopt-table-title,
#meteopt-gfs-table .meteopt-table-cycle{min-width:0!important;max-width:100%!important;overflow:hidden!important}
#meteopt-gfs-table .meteopt-table-title .section-kicker,
#meteopt-gfs-table .meteopt-table-title h2,
#meteopt-gfs-table .meteopt-table-cycle span{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#meteopt-gfs-table .meteopt-table-title h2{white-space:nowrap!important}
#meteopt-gfs-table .meteopt-table-cycle{display:grid!important;grid-template-columns:minmax(0,1fr);gap:2px!important;justify-items:end!important;text-align:right!important;white-space:nowrap!important}
#meteopt-gfs-table .meteopt-table-cycle span{display:block!important;width:100%!important;white-space:nowrap!important}
@media(max-width:560px){
  #meteopt-gfs-table .meteopt-table-panel-head{grid-template-columns:minmax(0,1fr) minmax(108px,43%)!important;gap:6px!important;margin-bottom:5px!important}
  #meteopt-gfs-table .meteopt-table-title .section-kicker{font-size:7.5px!important;line-height:1!important;letter-spacing:.1em!important;margin-bottom:2px!important}
  #meteopt-gfs-table .meteopt-table-title h2{font-size:15px!important;line-height:1.08!important;letter-spacing:-.025em!important}
  #meteopt-gfs-table .meteopt-table-cycle{font-size:7.5px!important;line-height:1.15!important;gap:1px!important}
  #meteopt-gfs-table .meteopt-table-card{padding:7px 8px!important}
}
@media(max-width:370px){
  #meteopt-gfs-table .meteopt-table-panel-head{grid-template-columns:minmax(0,1fr) minmax(96px,42%)!important}
  #meteopt-gfs-table .meteopt-table-title h2{font-size:14px!important}
  #meteopt-gfs-table .meteopt-table-cycle{font-size:7px!important}
}

/* GFS table is a normal document block: no nested scrolling, no touch interception. */
#meteopt-gfs-table .meteopt-table-scroll{
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
  -webkit-overflow-scrolling:auto!important;
  scrollbar-width:auto!important;
}

/* Native document scrolling: the GFS table wrapper must not become a scroll container. */
#meteopt-gfs-table .meteopt-table-scroll{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  overflow:clip visible!important;
  overscroll-behavior-x:auto!important;
  overscroll-behavior-y:auto!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
  -webkit-overflow-scrolling:auto!important;
  contain:none!important;
  scrollbar-width:none!important;
}
#meteopt-gfs-table .meteopt-table-card,
#meteopt-gfs-table{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
}
@media(max-width:850px),(pointer:coarse){
  #meteopt-gfs-table .meteopt-table-scroll{
    overflow-x:clip!important;
    overflow-y:visible!important;
    overflow:clip visible!important;
    overscroll-behavior:auto!important;
    touch-action:auto!important;
  }
}
