/* Shared prize presentation for current results, draw archives and live pages. */
:is(.prize-cell-label,.results-cell-label){display:none}
:is(.prize-cell-value,.results-cell-value){font-variant-numeric:tabular-nums}
.tablewrap .prize-table tbody th{font-size:14px;font-weight:500;letter-spacing:normal;text-transform:none;color:inherit;text-align:left}
.tablewrap .national-football-prizes tbody th{font-size:13px}
.lottery-prize-values>span{display:inline;color:inherit;font-size:inherit}
.lottery-prize-values>span+span::before{content:' · '}
.lottery-prize-values b{font-weight:inherit}
@media screen and (min-width:761px){
  .prize-table tbody tr:first-child th{background:var(--brand-soft)}
  .prize-table tbody tr:hover th{background:var(--surface-2)}
}

@media screen and (max-width:760px){
  /* Match the legacy :not(:first-child):not(:last-child) specificity.
     Grid cells must fill their track instead of keeping desktop percentages. */
  body :is(.prize-table-wrap,.results-table-wrap) :is(.prize-table,.results-prize-table) tbody :is(th,td):nth-child(n){width:auto;min-width:0;justify-self:stretch}
  body :is(.prize-table,.results-prize-table) td :is(.prize-cell-label,.results-cell-label){align-self:stretch;white-space:normal;overflow-wrap:normal;word-break:normal}

  body :is(.prize-table-wrap,.results-table-wrap){max-width:100%;min-width:0;overflow:visible;border:0}
  body .prize-table-wrap::before,body .national-games-wrap::before{display:none}
  body :is(.prize-table-wrap,.results-table-wrap) :is(.prize-table,.results-prize-table){display:block;width:100%;min-width:0;table-layout:auto;font-size:13px;margin:0;border:0}
  body :is(.prize-table,.results-prize-table) caption{display:block;padding-bottom:10px;font-size:11px}
  body :is(.prize-table,.results-prize-table) thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
  body :is(.prize-table,.results-prize-table) tbody{display:grid;gap:10px;min-width:0}
  body :is(.prize-table,.results-prize-table) tbody tr{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);border:1px solid #e6dced;border-radius:10px;overflow:hidden;min-width:0;background:#fff}
  body :is(.prize-table-wrap,.results-table-wrap) :is(.prize-table,.results-prize-table) tbody th{grid-column:1/-1;width:auto;max-width:100%;padding:9px 12px;border:0;background:#f7f3fa;color:#4a2670;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:none;text-align:left;white-space:normal;overflow-wrap:anywhere}
  body :is(.prize-table-wrap,.results-table-wrap) :is(.prize-table,.results-prize-table) td{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:auto;max-width:100%;min-width:0;padding:10px 12px;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.5;letter-spacing:normal;text-transform:none;background:transparent}
  body :is(.prize-table,.results-prize-table) td :is(.prize-cell-label,.results-cell-label){display:block;font-size:10px;line-height:1.4;font-weight:400;color:#71637b}
  body :is(.prize-table,.results-prize-table) :is(.prize-cell-value,.results-cell-value){font-size:14px;line-height:1.5;max-width:100%}
  body :is(.prize-table-wrap,.results-table-wrap) :is(.prize-table,.results-prize-table) td:last-child{align-items:flex-end;text-align:right;color:#4a2670;font-weight:600}
  body .prize-table-wrap .prize-table--international .prize-amount-cell,body .prize-table-wrap .prize-table .prize-match-cell{grid-column:1/-1;border-top:1px solid #eee6f4}
  body .prize-table--international tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .results-lottery-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .results-lottery-table th .results-cell-label{display:inline}
  body .results-table-wrap .results-lottery-table .results-ticket-cell{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #eee6f4;padding-top:8px;padding-bottom:8px}
  body .results-ticket-cell .results-cell-value{font-weight:600;letter-spacing:.04em;color:#4a2670}
  body .national-games-wrap{overflow:visible;border:0}
  body .national-games-wrap .national-games-table{min-width:0;width:100%;table-layout:fixed}
  body .national-games-wrap .national-games-table :is(th,td){padding:10px 5px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
  body .national-games-wrap .national-games-table :is(th,td):first-child{width:52px}
  body .national-games-wrap .national-games-table :is(th,td):last-child{width:58px;text-align:center}
  body .national-games-wrap .national-games-table :is(th,td):nth-child(2){width:auto}
  body :is(.national-prizes,.lottery-prizes){grid-template-columns:minmax(0,1fr)}
  body .lottery-prize-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;min-width:0}
  body .lottery-prize-values>span{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;overflow-wrap:anywhere}
  body .lottery-prize-values>span+span::before{content:none}
  body .lottery-prize-values>span:last-child{text-align:right}
  body .lottery-prize-values b{font-size:14px;font-weight:600;color:#4a2670}
}

/* Identical desktop and mobile presentation, independent of the host page. */
body .unified-prize-wrap{margin-top:14px;max-width:100%}
body .unified-prize-table caption{text-align:left;color:#71637b;font-size:12px;font-weight:400;line-height:1.5;padding:0 0 12px}
body .prize-note{font-size:12px;line-height:1.7;color:#71637b;margin:12px 0 0}
body .unified-prize-table .tier{display:inline;margin-right:6px;font-weight:400;color:#71637b}
@media screen and (min-width:761px){
  body .tablewrap .unified-prize-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:13px}
  body .tablewrap .unified-prize-table :is(th,td):nth-child(n){width:auto;padding:12px 10px;line-height:1.5;white-space:normal;overflow-wrap:normal;text-transform:none;letter-spacing:normal;text-align:right;border-bottom:1px solid #ece6f1;color:#4a2670}
  body .tablewrap .unified-prize-table :is(th,td):first-child{width:34%;text-align:left}
  body .tablewrap .unified-prize-table thead th{font-size:11px;font-weight:500;background:#f7f3fa}
  body .tablewrap .unified-prize-table tbody th{font-size:13px;font-weight:500}
  body .tablewrap .unified-prize-table tbody :is(th,td){background:#fff}
  body .tablewrap .unified-prize-table td:last-child{font-weight:600}
  body .tablewrap .unified-prize-table.results-lottery-table th:first-child{width:14%}
}
@media screen and (max-width:760px){
  body .unified-prize-table .prize-lottery-amount{border-top:1px solid #eee6f4}
  body .unified-prize-wrap .unified-prize-table .results-ticket-cell{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #eee6f4}
}
