/* Build 20: face logo in the header ring, full logo in the footer (no plate behind either), social row,
   footer award row, and the "By the numbers" block. Prefix .sgp- as the rest of the theme. */
.sgp-on-light {display:none;}
html[data-sg-theme="light"] .sgp-on-dark {display:none;}
html[data-sg-theme="light"] .sgp-on-light {display:block;}

.sgp-facemark {position:relative;display:inline-block;width:54px;height:54px;flex:none;color:var(--sg-text);}
.sgp-facering {position:absolute;inset:0;width:100%;height:100%;transition:rotate .8s var(--sg-ease);}
.sgp-logo:hover .sgp-facering {rotate:90deg;}
.sgp-face {position:absolute;inset:5px;border-radius:50%;overflow:hidden;background:none;}
.sgp-face img {position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;}
@media (max-width:900px) {.sgp-facemark {width:46px;height:46px;} .sgp-face {inset:4px;}}

.sgp-logo-plate {display:inline-block;transition:translate .3s var(--sg-ease);}
.sgp-logo-plate:hover {translate:0 -2px;}
.sgp-logo-plate img {width:clamp(200px,22vw,270px);height:auto;display:block;}

/* Build 21a: one horizontal row of round icon buttons. ul.sgp-social out-ranks the footer grid's `.sgp-foot-grid ul`
   (display:grid; gap) rule, which is what stacked the list. The text label stays in the DOM, visually hidden. */
ul.sgp-social,.sgp-foot-grid ul.sgp-social {list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;}
ul.sgp-social li {margin:0;padding:0;display:block;}
ul.sgp-social a,.sgp-foot-grid ul.sgp-social li a {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--sg-line);color:var(--sg-text);opacity:1;text-decoration:none;transition:background .2s,color .2s,box-shadow .2s;}
ul.sgp-social a svg {display:block;width:20px;height:20px;flex:none;}
ul.sgp-social a:hover,ul.sgp-social a:focus-visible,.sgp-foot-grid ul.sgp-social li a:hover {background:var(--sg-text);color:var(--sg-bg);box-shadow:none;opacity:1;}
.sgp-sr {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.sgp-mnav ul.sgp-social {margin:18px 0 0;}

.sgp-foot-awards {margin-top:36px;padding-top:24px;border-top:1px solid var(--sg-line);display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.sgp-foot-awards ul {list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;}
.sgp-foot-awards img {width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 6px 8px var(--sg-drop));}

.sgp-num-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;}
.sgp-num {position:relative;padding:30px 26px 26px;border-radius:var(--sg-r);background:var(--sg-surface);border:1px solid var(--sg-line);display:grid;gap:6px;align-content:start;overflow:hidden;}
.sgp-num-n {font:800 clamp(54px,6.4vw,92px)/.95 var(--sg-display);letter-spacing:-.04em;color:var(--sg-text);font-variant-numeric:tabular-nums;}
.sgp-num-k {font:500 12px/1.3 var(--sg-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--sg-text);margin-top:14px;}
.sgp-num-s {color:var(--sg-muted);font-size:14.5px;}

/* Build 21a: award cards sit in an explicit grid, four per row with the last row centred (seven cards: 4 + 3), from 600px up;
   below 600px the existing one-row horizontal scroller from build16.css stays. Eight columns, each card two wide. */
@media (min-width:600px) {
 .sgp-trophies .sgp-trophy-grid[data-sg-count="7"] {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:14px;overflow:visible;margin-inline:0;padding:0;}
 .sgp-trophies .sgp-trophy-grid[data-sg-count="7"] .sgp-trophy {grid-column:span 2;flex:none;min-width:0;}
 .sgp-trophies .sgp-trophy-grid[data-sg-count="7"] .sgp-trophy:nth-child(5) {grid-column:2 / span 2;}
}
@media (min-width:600px) and (max-width:900px) {
 .sgp-trophies .sgp-trophy {padding:20px 10px 18px;}
 .sgp-trophies .sgp-trophy b {font-size:16px;}
}

/* Build 21: discounts page layout (two even cards, readable headings). */
[data-sg-discounts] .sgp-lede {max-width:62ch;margin-bottom:28px;}
[data-sg-discounts] .sgp-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
[data-sg-discounts] .sgp-card {display:block;padding:28px;border:1px solid var(--sg-line, rgba(255,255,255,.12));border-radius:20px;}
[data-sg-discounts] .sgp-card h2, [data-sg-discounts] #running-now h2 {font-size:clamp(1.25rem,2vw,1.6rem);line-height:1.2;margin:0 0 12px;}
[data-sg-discounts] .sgp-card p {margin:0;max-width:none;}
@media (max-width:760px) {[data-sg-discounts] .sgp-grid {grid-template-columns:1fr;}}
