.strategy-page { max-width: 78rem; margin: 0 auto; padding: clamp(12px, 2vw, 32px); color: #142f29; }
.strategy-page h1 { text-align: center; margin: 0 0 .8em; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.1; }
.strategy-page [hidden] { display: none; }
#chartRules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
#chartRules label { display: grid; align-content: end; gap: .25rem; font-size: .9rem; font-weight: 600; }
#chartRules select { width: 100%; min-width: 0; padding: .35rem; font: inherit; background: #fff; color: #172f29; border: 1px solid #697d73; border-radius: 4px; }
#chartRules select:disabled { color: #53625d; background: #edf0ed; }
.chart-toolbar,.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.chart-toolbar { justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid #9b782b; }
#strategyTabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.chart-toolbar button { border: 1px solid #355c4d; border-radius: 4px; background: #fff; color: #183e32; padding: .45rem .65rem; font: inherit; cursor: pointer; }
.chart-toolbar button[aria-pressed="true"] { background: #235548; color: #fff; }
.strategy-scroll { overflow-x: auto; }
.strategy-table { width: 100%; min-width: 470px; border-collapse: collapse; table-layout: fixed; text-align: center; }
.strategy-table caption { text-align: left; font-size: 1.25rem; font-weight: bold; margin: .7rem 0 .35rem; }
.strategy-table th,.strategy-table td { padding: .38rem .2rem; border: 1px solid #9daaa0; }
.strategy-table thead th { background: #dce9e3; }
.strategy-table th:first-child { width: 17%; }
.strategy-table tbody th { background: #f3f1ea; }
.strategy-table td { font-weight: bold; }
.strategy-page [data-action="H"] { background: #F88017; }
.strategy-page [data-action="S"] { background: #4CC552; }
.strategy-page [data-action="D"] { background: #52F3FF; }
.strategy-page [data-action="P"] { background: #cda6e1; }
.strategy-page [data-action="R"],.strategy-page [data-action="RH"] { background: #f1f336; }
.chart-legend { gap: .5rem 1rem; }
.chart-legend b { display: inline-block; min-width: 1.5em; text-align: center; border-radius: 3px; }
.chart-fallbacks,#strategyNotice,#chartShareStatus { font-size: .9rem; }
#strategyNotice:empty,#chartShareStatus:empty { display: none; }
#chartShareUrl { width: 100%; box-sizing: border-box; }
@media(max-width: 950px) { #chartRules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 540px) { #chartRules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .guylogo,.guysidebar,.chart-toolbar { display: none; } }
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.chart-edge { white-space: nowrap; font-size: .9rem; }
.chart-edge strong { font-variant-numeric: tabular-nums; }

/* The same controls fit the narrower centre column in the two-sidebar template. */
.strategy-page { container-type: inline-size; padding-inline: clamp(6px, 1vw, 18px); }
@container (max-width: 760px) { #chartRules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 460px) { #chartRules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.strategy-table caption::after {
  content: "Hundred Percent Gambling";
  float: right;
  margin-inline-start: .8em;
  font-size: .75rem;
  font-weight: 400;
  color: #53625d;
}
